autotool.patch 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur libogg-1.1.3.orig/aclocal.m4 libogg-1.1.3/aclocal.m4
  6. --- libogg-1.1.3.orig/aclocal.m4 2005-11-28 05:26:23.000000000 +0100
  7. +++ libogg-1.1.3/aclocal.m4 2011-02-17 18:12:11.903575078 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,104 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. +
  28. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29. +#
  30. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  32. +# Written by Gordon Matzigkeit, 1996
  33. +#
  34. +# This file is free software; the Free Software Foundation gives
  35. +# unlimited permission to copy and/or distribute it, with or without
  36. +# modifications, as long as this notice is preserved.
  37. +
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. -# serial 47 AC_PROG_LIBTOOL
  67. -# Debian $Rev: 214 $
  68. +# serial 56 LT_INIT
  69. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  70. -# -----------------------------------------------------------
  71. -# If this macro is not defined by Autoconf, define it here.
  72. -m4_ifdef([AC_PROVIDE_IFELSE],
  73. - [],
  74. - [m4_define([AC_PROVIDE_IFELSE],
  75. - [m4_ifdef([AC_PROVIDE_$1],
  76. - [$2], [$3])])])
  77. +# LT_PREREQ(VERSION)
  78. +# ------------------
  79. +# Complain and exit if this libtool version is less that VERSION.
  80. +m4_defun([LT_PREREQ],
  81. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  82. + [m4_default([$3],
  83. + [m4_fatal([Libtool version $1 or higher is required],
  84. + 63)])],
  85. + [$2])])
  86. -# AC_PROG_LIBTOOL
  87. -# ---------------
  88. -AC_DEFUN([AC_PROG_LIBTOOL],
  89. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  90. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  91. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  92. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  93. - [AC_LIBTOOL_CXX],
  94. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  95. - ])])
  96. -dnl And a similar setup for Fortran 77 support
  97. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  98. - [AC_LIBTOOL_F77],
  99. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  100. -])])
  101. -
  102. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  103. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  104. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  105. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  106. - [AC_LIBTOOL_GCJ],
  107. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  108. - [AC_LIBTOOL_GCJ],
  109. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  110. - [AC_LIBTOOL_GCJ],
  111. - [ifdef([AC_PROG_GCJ],
  112. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  113. - ifdef([A][M_PROG_GCJ],
  114. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  115. - ifdef([LT_AC_PROG_GCJ],
  116. - [define([LT_AC_PROG_GCJ],
  117. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  118. -])])# AC_PROG_LIBTOOL
  119. +# _LT_CHECK_BUILDDIR
  120. +# ------------------
  121. +# Complain if the absolute build directory name contains unusual characters
  122. +m4_defun([_LT_CHECK_BUILDDIR],
  123. +[case `pwd` in
  124. + *\ * | *\ *)
  125. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  126. +esac
  127. +])
  128. -# _AC_PROG_LIBTOOL
  129. -# ----------------
  130. -AC_DEFUN([_AC_PROG_LIBTOOL],
  131. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  134. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  135. +# LT_INIT([OPTIONS])
  136. +# ------------------
  137. +AC_DEFUN([LT_INIT],
  138. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  139. +AC_BEFORE([$0], [LT_LANG])dnl
  140. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  141. +AC_BEFORE([$0], [LTDL_INIT])dnl
  142. +m4_require([_LT_CHECK_BUILDDIR])dnl
  143. +
  144. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  145. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  146. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  147. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  148. +dnl unless we require an AC_DEFUNed macro:
  149. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  150. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  151. +AC_REQUIRE([LTVERSION_VERSION])dnl
  152. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  153. +m4_require([_LT_PROG_LTMAIN])dnl
  154. +
  155. +dnl Parse OPTIONS
  156. +_LT_SET_OPTIONS([$0], [$1])
  157. # This can be used to rebuild libtool when needed
  158. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  159. +LIBTOOL_DEPS="$ltmain"
  160. # Always use our own libtool.
  161. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  162. AC_SUBST(LIBTOOL)dnl
  163. -# Prevent multiple expansion
  164. -define([AC_PROG_LIBTOOL], [])
  165. -])# _AC_PROG_LIBTOOL
  166. +_LT_SETUP
  167. +# Only expand once:
  168. +m4_define([LT_INIT])
  169. +])# LT_INIT
  170. -# AC_LIBTOOL_SETUP
  171. -# ----------------
  172. -AC_DEFUN([AC_LIBTOOL_SETUP],
  173. -[AC_PREREQ(2.50)dnl
  174. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  175. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  176. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  177. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  178. +# Old names:
  179. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  180. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  181. +dnl aclocal-1.4 backwards compatibility:
  182. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  183. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  184. +
  185. +
  186. +# _LT_CC_BASENAME(CC)
  187. +# -------------------
  188. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  189. +m4_defun([_LT_CC_BASENAME],
  190. +[for cc_temp in $1""; do
  191. + case $cc_temp in
  192. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  193. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  194. + \-*) ;;
  195. + *) break;;
  196. + esac
  197. +done
  198. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  199. +])
  200. +
  201. +
  202. +# _LT_FILEUTILS_DEFAULTS
  203. +# ----------------------
  204. +# It is okay to use these file commands and assume they have been set
  205. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  206. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  207. +[: ${CP="cp -f"}
  208. +: ${MV="mv -f"}
  209. +: ${RM="rm -f"}
  210. +])# _LT_FILEUTILS_DEFAULTS
  211. +
  212. +
  213. +# _LT_SETUP
  214. +# ---------
  215. +m4_defun([_LT_SETUP],
  216. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  217. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  218. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  219. +_LT_DECL([], [host], [0])dnl
  220. +_LT_DECL([], [host_os], [0])dnl
  221. +dnl
  222. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  223. +_LT_DECL([], [build], [0])dnl
  224. +_LT_DECL([], [build_os], [0])dnl
  225. +dnl
  226. AC_REQUIRE([AC_PROG_CC])dnl
  227. -AC_REQUIRE([AC_PROG_LD])dnl
  228. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  229. -AC_REQUIRE([AC_PROG_NM])dnl
  230. -
  231. +AC_REQUIRE([LT_PATH_LD])dnl
  232. +AC_REQUIRE([LT_PATH_NM])dnl
  233. +dnl
  234. AC_REQUIRE([AC_PROG_LN_S])dnl
  235. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  236. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  237. -AC_REQUIRE([AC_OBJEXT])dnl
  238. -AC_REQUIRE([AC_EXEEXT])dnl
  239. +test -z "$LN_S" && LN_S="ln -s"
  240. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  241. dnl
  242. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  243. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  244. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  245. +dnl
  246. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  247. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  248. +m4_require([_LT_CMD_RELOAD])dnl
  249. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  250. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  251. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  252. +
  253. +_LT_CONFIG_LIBTOOL_INIT([
  254. +# See if we are running on zsh, and set the options which allow our
  255. +# commands through without removal of \ escapes INIT.
  256. +if test -n "\${ZSH_VERSION+set}" ; then
  257. + setopt NO_GLOB_SUBST
  258. +fi
  259. +])
  260. +if test -n "${ZSH_VERSION+set}" ; then
  261. + setopt NO_GLOB_SUBST
  262. +fi
  263. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  264. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  265. -AC_LIBTOOL_OBJDIR
  266. +_LT_CHECK_OBJDIR
  267. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  268. -_LT_AC_PROG_ECHO_BACKSLASH
  269. +m4_require([_LT_TAG_COMPILER])dnl
  270. +_LT_PROG_ECHO_BACKSLASH
  271. case $host_os in
  272. aix3*)
  273. @@ -124,174 +216,879 @@
  274. # Sed substitution that helps us do robust quoting. It backslashifies
  275. # metacharacters that are still active within double-quoted strings.
  276. -Xsed='sed -e s/^X//'
  277. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  278. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  279. # Same as above, but do not quote variable references.
  280. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  281. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  282. # Sed substitution to delay expansion of an escaped shell variable in a
  283. # double_quote_subst'ed string.
  284. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  285. +# Sed substitution to delay expansion of an escaped single quote.
  286. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  287. +
  288. # Sed substitution to avoid accidental globbing in evaled expressions
  289. no_glob_subst='s/\*/\\\*/g'
  290. -# Constants:
  291. -rm="rm -f"
  292. -
  293. # Global variables:
  294. -default_ofile=libtool
  295. +ofile=libtool
  296. can_build_shared=yes
  297. -# All known linkers require a `.a' archive for static linking (except M$VC,
  298. +# All known linkers require a `.a' archive for static linking (except MSVC,
  299. # which needs '.lib').
  300. libext=a
  301. -ltmain="$ac_aux_dir/ltmain.sh"
  302. -ofile="$default_ofile"
  303. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  304. -AC_CHECK_TOOL(AR, ar, false)
  305. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  306. -AC_CHECK_TOOL(STRIP, strip, :)
  307. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  308. old_CC="$CC"
  309. old_CFLAGS="$CFLAGS"
  310. # Set sane defaults for various variables
  311. -test -z "$AR" && AR=ar
  312. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  313. -test -z "$AS" && AS=as
  314. test -z "$CC" && CC=cc
  315. test -z "$LTCC" && LTCC=$CC
  316. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  317. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  318. test -z "$LD" && LD=ld
  319. -test -z "$LN_S" && LN_S="ln -s"
  320. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  321. -test -z "$NM" && NM=nm
  322. -test -z "$SED" && SED=sed
  323. -test -z "$OBJDUMP" && OBJDUMP=objdump
  324. -test -z "$RANLIB" && RANLIB=:
  325. -test -z "$STRIP" && STRIP=:
  326. test -z "$ac_objext" && ac_objext=o
  327. -# Determine commands to create old-style static archives.
  328. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  329. -old_postinstall_cmds='chmod 644 $oldlib'
  330. -old_postuninstall_cmds=
  331. -
  332. -if test -n "$RANLIB"; then
  333. - case $host_os in
  334. - openbsd*)
  335. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  336. - ;;
  337. - *)
  338. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  339. - ;;
  340. - esac
  341. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  342. -fi
  343. +_LT_CC_BASENAME([$compiler])
  344. # Only perform the check for file, if the check method requires it
  345. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  346. case $deplibs_check_method in
  347. file_magic*)
  348. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  349. - AC_PATH_MAGIC
  350. + _LT_PATH_MAGIC
  351. fi
  352. ;;
  353. esac
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  355. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  356. -enable_win32_dll=yes, enable_win32_dll=no)
  357. -
  358. -AC_ARG_ENABLE([libtool-lock],
  359. - [AC_HELP_STRING([--disable-libtool-lock],
  360. - [avoid locking (might break parallel builds)])])
  361. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  362. +# Use C for the default configuration in the libtool script
  363. +LT_SUPPORTED_TAG([CC])
  364. +_LT_LANG_C_CONFIG
  365. +_LT_LANG_DEFAULT_CONFIG
  366. +_LT_CONFIG_COMMANDS
  367. +])# _LT_SETUP
  368. -AC_ARG_WITH([pic],
  369. - [AC_HELP_STRING([--with-pic],
  370. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  371. - [pic_mode="$withval"],
  372. - [pic_mode=default])
  373. -test -z "$pic_mode" && pic_mode=default
  374. -# Use C for the default configuration in the libtool script
  375. -tagname=
  376. -AC_LIBTOOL_LANG_C_CONFIG
  377. -_LT_AC_TAGCONFIG
  378. -])# AC_LIBTOOL_SETUP
  379. +# _LT_PROG_LTMAIN
  380. +# ---------------
  381. +# Note that this code is called both from `configure', and `config.status'
  382. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  383. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  384. +# so we pass a copy along to make sure it has a sensible value anyway.
  385. +m4_defun([_LT_PROG_LTMAIN],
  386. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  387. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  388. +ltmain="$ac_aux_dir/ltmain.sh"
  389. +])# _LT_PROG_LTMAIN
  390. +
  391. +
  392. +
  393. +# So that we can recreate a full libtool script including additional
  394. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  395. +# in macros and then make a single call at the end using the `libtool'
  396. +# label.
  397. +
  398. +
  399. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  400. +# ----------------------------------------
  401. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  402. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  403. +[m4_ifval([$1],
  404. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  405. + [$1
  406. +])])])
  407. +
  408. +# Initialize.
  409. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  410. +
  411. +
  412. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  413. +# ------------------------------
  414. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  415. +m4_define([_LT_CONFIG_LIBTOOL],
  416. +[m4_ifval([$1],
  417. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  418. + [$1
  419. +])])])
  420. +
  421. +# Initialize.
  422. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  423. +
  424. +
  425. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  426. +# -----------------------------------------------------
  427. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  428. +[_LT_CONFIG_LIBTOOL([$1])
  429. +_LT_CONFIG_LIBTOOL_INIT([$2])
  430. +])
  431. +
  432. +
  433. +# _LT_FORMAT_COMMENT([COMMENT])
  434. +# -----------------------------
  435. +# Add leading comment marks to the start of each line, and a trailing
  436. +# full-stop to the whole comment if one is not present already.
  437. +m4_define([_LT_FORMAT_COMMENT],
  438. +[m4_ifval([$1], [
  439. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  440. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  441. +)])
  442. +
  443. +
  444. +
  445. +
  446. +
  447. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  448. +# -------------------------------------------------------------------
  449. +# CONFIGNAME is the name given to the value in the libtool script.
  450. +# VARNAME is the (base) name used in the configure script.
  451. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  452. +# VARNAME. Any other value will be used directly.
  453. +m4_define([_LT_DECL],
  454. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  455. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  456. + [m4_ifval([$1], [$1], [$2])])
  457. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  458. + m4_ifval([$4],
  459. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  460. + lt_dict_add_subkey([lt_decl_dict], [$2],
  461. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  462. +])
  463. +
  464. +
  465. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  466. +# --------------------------------------------------------
  467. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  468. +
  469. +
  470. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  471. +# ------------------------------------------------
  472. +m4_define([lt_decl_tag_varnames],
  473. +[_lt_decl_filter([tagged?], [yes], $@)])
  474. +
  475. +
  476. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  477. +# ---------------------------------------------------------
  478. +m4_define([_lt_decl_filter],
  479. +[m4_case([$#],
  480. + [0], [m4_fatal([$0: too few arguments: $#])],
  481. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  482. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  483. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  484. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  485. +])
  486. +
  487. +
  488. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  489. +# --------------------------------------------------
  490. +m4_define([lt_decl_quote_varnames],
  491. +[_lt_decl_filter([value], [1], $@)])
  492. +
  493. +
  494. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  495. +# ---------------------------------------------------
  496. +m4_define([lt_decl_dquote_varnames],
  497. +[_lt_decl_filter([value], [2], $@)])
  498. +
  499. +
  500. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  501. +# ---------------------------------------------------
  502. +m4_define([lt_decl_varnames_tagged],
  503. +[m4_assert([$# <= 2])dnl
  504. +_$0(m4_quote(m4_default([$1], [[, ]])),
  505. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  506. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  507. +m4_define([_lt_decl_varnames_tagged],
  508. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  509. +
  510. +
  511. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  512. +# ------------------------------------------------
  513. +m4_define([lt_decl_all_varnames],
  514. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  515. + m4_if([$2], [],
  516. + m4_quote(lt_decl_varnames),
  517. + m4_quote(m4_shift($@))))[]dnl
  518. +])
  519. +m4_define([_lt_decl_all_varnames],
  520. +[lt_join($@, lt_decl_varnames_tagged([$1],
  521. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  522. +])
  523. +
  524. +
  525. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  526. +# ------------------------------------
  527. +# Quote a variable value, and forward it to `config.status' so that its
  528. +# declaration there will have the same value as in `configure'. VARNAME
  529. +# must have a single quote delimited value for this to work.
  530. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  531. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  532. +
  533. +
  534. +# _LT_CONFIG_STATUS_DECLARATIONS
  535. +# ------------------------------
  536. +# We delimit libtool config variables with single quotes, so when
  537. +# we write them to config.status, we have to be sure to quote all
  538. +# embedded single quotes properly. In configure, this macro expands
  539. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  540. +#
  541. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  542. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  543. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  544. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  545. +
  546. +
  547. +# _LT_LIBTOOL_TAGS
  548. +# ----------------
  549. +# Output comment and list of tags supported by the script
  550. +m4_defun([_LT_LIBTOOL_TAGS],
  551. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  552. +available_tags="_LT_TAGS"dnl
  553. +])
  554. -# _LT_AC_SYS_COMPILER
  555. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  556. +# -----------------------------------
  557. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  558. +# expand to a commented shell variable setting:
  559. +#
  560. +# # Some comment about what VAR is for.
  561. +# visible_name=$lt_internal_name
  562. +m4_define([_LT_LIBTOOL_DECLARE],
  563. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  564. + [description])))[]dnl
  565. +m4_pushdef([_libtool_name],
  566. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  567. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  568. + [0], [_libtool_name=[$]$1],
  569. + [1], [_libtool_name=$lt_[]$1],
  570. + [2], [_libtool_name=$lt_[]$1],
  571. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  572. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  573. +])
  574. +
  575. +
  576. +# _LT_LIBTOOL_CONFIG_VARS
  577. +# -----------------------
  578. +# Produce commented declarations of non-tagged libtool config variables
  579. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  580. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  581. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  582. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  583. +[m4_foreach([_lt_var],
  584. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  585. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  586. +
  587. +
  588. +# _LT_LIBTOOL_TAG_VARS(TAG)
  589. +# -------------------------
  590. +m4_define([_LT_LIBTOOL_TAG_VARS],
  591. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  592. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  593. +
  594. +
  595. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  596. +# ------------------------------
  597. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  598. +
  599. +
  600. +# _LT_CONFIG_COMMANDS
  601. # -------------------
  602. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  603. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  604. +# variables for single and double quote escaping we saved from calls
  605. +# to _LT_DECL, we can put quote escaped variables declarations
  606. +# into `config.status', and then the shell code to quote escape them in
  607. +# for loops in `config.status'. Finally, any additional code accumulated
  608. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  609. +m4_defun([_LT_CONFIG_COMMANDS],
  610. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  611. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  612. + dnl instead of duplicating it all over again into config.status,
  613. + dnl then we will have config.status run $CONFIG_LT later, so it
  614. + dnl needs to know what name is stored there:
  615. + [AC_CONFIG_COMMANDS([libtool],
  616. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  617. + dnl If the libtool generation code is destined for config.status,
  618. + dnl expand the accumulated commands and init code now:
  619. + [AC_CONFIG_COMMANDS([libtool],
  620. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  621. +])#_LT_CONFIG_COMMANDS
  622. +
  623. +
  624. +# Initialize.
  625. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  626. +[
  627. +
  628. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  629. +# if CDPATH is set.
  630. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  631. +
  632. +sed_quote_subst='$sed_quote_subst'
  633. +double_quote_subst='$double_quote_subst'
  634. +delay_variable_subst='$delay_variable_subst'
  635. +_LT_CONFIG_STATUS_DECLARATIONS
  636. +LTCC='$LTCC'
  637. +LTCFLAGS='$LTCFLAGS'
  638. +compiler='$compiler_DEFAULT'
  639. +
  640. +# Quote evaled strings.
  641. +for var in lt_decl_all_varnames([[ \
  642. +]], lt_decl_quote_varnames); do
  643. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  644. + *[[\\\\\\\`\\"\\\$]]*)
  645. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  646. + ;;
  647. + *)
  648. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  649. + ;;
  650. + esac
  651. +done
  652. +
  653. +# Double-quote double-evaled strings.
  654. +for var in lt_decl_all_varnames([[ \
  655. +]], lt_decl_dquote_varnames); do
  656. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  657. + *[[\\\\\\\`\\"\\\$]]*)
  658. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  659. + ;;
  660. + *)
  661. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  662. + ;;
  663. + esac
  664. +done
  665. +
  666. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  667. +case \$lt_ECHO in
  668. +*'\\\[$]0 --fallback-echo"')dnl "
  669. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  670. + ;;
  671. +esac
  672. +
  673. +_LT_OUTPUT_LIBTOOL_INIT
  674. +])
  675. +
  676. +
  677. +# LT_OUTPUT
  678. +# ---------
  679. +# This macro allows early generation of the libtool script (before
  680. +# AC_OUTPUT is called), incase it is used in configure for compilation
  681. +# tests.
  682. +AC_DEFUN([LT_OUTPUT],
  683. +[: ${CONFIG_LT=./config.lt}
  684. +AC_MSG_NOTICE([creating $CONFIG_LT])
  685. +cat >"$CONFIG_LT" <<_LTEOF
  686. +#! $SHELL
  687. +# Generated by $as_me.
  688. +# Run this file to recreate a libtool stub with the current configuration.
  689. +
  690. +lt_cl_silent=false
  691. +SHELL=\${CONFIG_SHELL-$SHELL}
  692. +_LTEOF
  693. +
  694. +cat >>"$CONFIG_LT" <<\_LTEOF
  695. +AS_SHELL_SANITIZE
  696. +_AS_PREPARE
  697. +
  698. +exec AS_MESSAGE_FD>&1
  699. +exec AS_MESSAGE_LOG_FD>>config.log
  700. +{
  701. + echo
  702. + AS_BOX([Running $as_me.])
  703. +} >&AS_MESSAGE_LOG_FD
  704. +
  705. +lt_cl_help="\
  706. +\`$as_me' creates a local libtool stub from the current configuration,
  707. +for use in further configure time tests before the real libtool is
  708. +generated.
  709. +
  710. +Usage: $[0] [[OPTIONS]]
  711. +
  712. + -h, --help print this help, then exit
  713. + -V, --version print version number, then exit
  714. + -q, --quiet do not print progress messages
  715. + -d, --debug don't remove temporary files
  716. +
  717. +Report bugs to <bug-libtool@gnu.org>."
  718. +
  719. +lt_cl_version="\
  720. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  721. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  722. +configured by $[0], generated by m4_PACKAGE_STRING.
  723. +
  724. +Copyright (C) 2008 Free Software Foundation, Inc.
  725. +This config.lt script is free software; the Free Software Foundation
  726. +gives unlimited permision to copy, distribute and modify it."
  727. +
  728. +while test $[#] != 0
  729. +do
  730. + case $[1] in
  731. + --version | --v* | -V )
  732. + echo "$lt_cl_version"; exit 0 ;;
  733. + --help | --h* | -h )
  734. + echo "$lt_cl_help"; exit 0 ;;
  735. + --debug | --d* | -d )
  736. + debug=: ;;
  737. + --quiet | --q* | --silent | --s* | -q )
  738. + lt_cl_silent=: ;;
  739. +
  740. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  741. +Try \`$[0] --help' for more information.]) ;;
  742. +
  743. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  744. +Try \`$[0] --help' for more information.]) ;;
  745. + esac
  746. + shift
  747. +done
  748. +
  749. +if $lt_cl_silent; then
  750. + exec AS_MESSAGE_FD>/dev/null
  751. +fi
  752. +_LTEOF
  753. +
  754. +cat >>"$CONFIG_LT" <<_LTEOF
  755. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  756. +_LTEOF
  757. +
  758. +cat >>"$CONFIG_LT" <<\_LTEOF
  759. +AC_MSG_NOTICE([creating $ofile])
  760. +_LT_OUTPUT_LIBTOOL_COMMANDS
  761. +AS_EXIT(0)
  762. +_LTEOF
  763. +chmod +x "$CONFIG_LT"
  764. +
  765. +# configure is writing to config.log, but config.lt does its own redirection,
  766. +# appending to config.log, which fails on DOS, as config.log is still kept
  767. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  768. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  769. +if test "$no_create" != yes; then
  770. + lt_cl_success=:
  771. + test "$silent" = yes &&
  772. + lt_config_lt_args="$lt_config_lt_args --quiet"
  773. + exec AS_MESSAGE_LOG_FD>/dev/null
  774. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  775. + exec AS_MESSAGE_LOG_FD>>config.log
  776. + $lt_cl_success || AS_EXIT(1)
  777. +fi
  778. +])# LT_OUTPUT
  779. +
  780. +
  781. +# _LT_CONFIG(TAG)
  782. +# ---------------
  783. +# If TAG is the built-in tag, create an initial libtool script with a
  784. +# default configuration from the untagged config vars. Otherwise add code
  785. +# to config.status for appending the configuration named by TAG from the
  786. +# matching tagged config vars.
  787. +m4_defun([_LT_CONFIG],
  788. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  789. +_LT_CONFIG_SAVE_COMMANDS([
  790. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  791. + m4_if(_LT_TAG, [C], [
  792. + # See if we are running on zsh, and set the options which allow our
  793. + # commands through without removal of \ escapes.
  794. + if test -n "${ZSH_VERSION+set}" ; then
  795. + setopt NO_GLOB_SUBST
  796. + fi
  797. +
  798. + cfgfile="${ofile}T"
  799. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  800. + $RM "$cfgfile"
  801. +
  802. + cat <<_LT_EOF >> "$cfgfile"
  803. +#! $SHELL
  804. +
  805. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  806. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  807. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  808. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  809. +#
  810. +_LT_COPYING
  811. +_LT_LIBTOOL_TAGS
  812. +
  813. +# ### BEGIN LIBTOOL CONFIG
  814. +_LT_LIBTOOL_CONFIG_VARS
  815. +_LT_LIBTOOL_TAG_VARS
  816. +# ### END LIBTOOL CONFIG
  817. +
  818. +_LT_EOF
  819. +
  820. + case $host_os in
  821. + aix3*)
  822. + cat <<\_LT_EOF >> "$cfgfile"
  823. +# AIX sometimes has problems with the GCC collect2 program. For some
  824. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  825. +# vanish in a puff of smoke.
  826. +if test "X${COLLECT_NAMES+set}" != Xset; then
  827. + COLLECT_NAMES=
  828. + export COLLECT_NAMES
  829. +fi
  830. +_LT_EOF
  831. + ;;
  832. + esac
  833. +
  834. + _LT_PROG_LTMAIN
  835. +
  836. + # We use sed instead of cat because bash on DJGPP gets confused if
  837. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  838. + # text mode, it properly converts lines to CR/LF. This bash problem
  839. + # is reportedly fixed, but why not run on old versions too?
  840. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  841. + || (rm -f "$cfgfile"; exit 1)
  842. +
  843. + _LT_PROG_XSI_SHELLFNS
  844. +
  845. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  846. + || (rm -f "$cfgfile"; exit 1)
  847. +
  848. + mv -f "$cfgfile" "$ofile" ||
  849. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  850. + chmod +x "$ofile"
  851. +],
  852. +[cat <<_LT_EOF >> "$ofile"
  853. +
  854. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  855. +dnl in a comment (ie after a #).
  856. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  857. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  858. +# ### END LIBTOOL TAG CONFIG: $1
  859. +_LT_EOF
  860. +])dnl /m4_if
  861. +],
  862. +[m4_if([$1], [], [
  863. + PACKAGE='$PACKAGE'
  864. + VERSION='$VERSION'
  865. + TIMESTAMP='$TIMESTAMP'
  866. + RM='$RM'
  867. + ofile='$ofile'], [])
  868. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  869. +])# _LT_CONFIG
  870. +
  871. +
  872. +# LT_SUPPORTED_TAG(TAG)
  873. +# ---------------------
  874. +# Trace this macro to discover what tags are supported by the libtool
  875. +# --tag option, using:
  876. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  877. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  878. +
  879. +
  880. +# C support is built-in for now
  881. +m4_define([_LT_LANG_C_enabled], [])
  882. +m4_define([_LT_TAGS], [])
  883. +
  884. +
  885. +# LT_LANG(LANG)
  886. +# -------------
  887. +# Enable libtool support for the given language if not already enabled.
  888. +AC_DEFUN([LT_LANG],
  889. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  890. +m4_case([$1],
  891. + [C], [_LT_LANG(C)],
  892. + [C++], [_LT_LANG(CXX)],
  893. + [Java], [_LT_LANG(GCJ)],
  894. + [Fortran 77], [_LT_LANG(F77)],
  895. + [Fortran], [_LT_LANG(FC)],
  896. + [Windows Resource], [_LT_LANG(RC)],
  897. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  898. + [_LT_LANG($1)],
  899. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  900. +])# LT_LANG
  901. +
  902. +
  903. +# _LT_LANG(LANGNAME)
  904. +# ------------------
  905. +m4_defun([_LT_LANG],
  906. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  907. + [LT_SUPPORTED_TAG([$1])dnl
  908. + m4_append([_LT_TAGS], [$1 ])dnl
  909. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  910. + _LT_LANG_$1_CONFIG($1)])dnl
  911. +])# _LT_LANG
  912. +
  913. +
  914. +# _LT_LANG_DEFAULT_CONFIG
  915. +# -----------------------
  916. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  917. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  918. + [LT_LANG(CXX)],
  919. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  920. +
  921. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  922. + [LT_LANG(F77)],
  923. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  924. +
  925. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  926. + [LT_LANG(FC)],
  927. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  928. +
  929. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  930. +dnl pulling things in needlessly.
  931. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  932. + [LT_LANG(GCJ)],
  933. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  934. + [LT_LANG(GCJ)],
  935. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  936. + [LT_LANG(GCJ)],
  937. + [m4_ifdef([AC_PROG_GCJ],
  938. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  939. + m4_ifdef([A][M_PROG_GCJ],
  940. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  941. + m4_ifdef([LT_PROG_GCJ],
  942. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  943. +
  944. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  945. + [LT_LANG(RC)],
  946. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  947. +])# _LT_LANG_DEFAULT_CONFIG
  948. +
  949. +# Obsolete macros:
  950. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  951. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  952. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  953. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  954. +dnl aclocal-1.4 backwards compatibility:
  955. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  956. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  957. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  958. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  959. +
  960. +
  961. +# _LT_TAG_COMPILER
  962. +# ----------------
  963. +m4_defun([_LT_TAG_COMPILER],
  964. [AC_REQUIRE([AC_PROG_CC])dnl
  965. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  966. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  967. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  968. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  969. +
  970. # If no C compiler was specified, use CC.
  971. LTCC=${LTCC-"$CC"}
  972. +# If no C compiler flags were specified, use CFLAGS.
  973. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  974. +
  975. # Allow CC to be a program name with arguments.
  976. compiler=$CC
  977. -])# _LT_AC_SYS_COMPILER
  978. +])# _LT_TAG_COMPILER
  979. +
  980. +
  981. +# _LT_COMPILER_BOILERPLATE
  982. +# ------------------------
  983. +# Check for compiler boilerplate output or warnings with
  984. +# the simple compiler test code.
  985. +m4_defun([_LT_COMPILER_BOILERPLATE],
  986. +[m4_require([_LT_DECL_SED])dnl
  987. +ac_outfile=conftest.$ac_objext
  988. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  989. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  990. +_lt_compiler_boilerplate=`cat conftest.err`
  991. +$RM conftest*
  992. +])# _LT_COMPILER_BOILERPLATE
  993. -# _LT_AC_SYS_LIBPATH_AIX
  994. +# _LT_LINKER_BOILERPLATE
  995. # ----------------------
  996. +# Check for linker boilerplate output or warnings with
  997. +# the simple link test code.
  998. +m4_defun([_LT_LINKER_BOILERPLATE],
  999. +[m4_require([_LT_DECL_SED])dnl
  1000. +ac_outfile=conftest.$ac_objext
  1001. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1002. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1003. +_lt_linker_boilerplate=`cat conftest.err`
  1004. +$RM -r conftest*
  1005. +])# _LT_LINKER_BOILERPLATE
  1006. +
  1007. +# _LT_REQUIRED_DARWIN_CHECKS
  1008. +# -------------------------
  1009. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1010. + case $host_os in
  1011. + rhapsody* | darwin*)
  1012. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1013. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1014. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1015. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1016. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1017. + _LT_DECL([], [DSYMUTIL], [1],
  1018. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1019. + _LT_DECL([], [NMEDIT], [1],
  1020. + [Tool to change global to local symbols on Mac OS X])
  1021. + _LT_DECL([], [LIPO], [1],
  1022. + [Tool to manipulate fat objects and archives on Mac OS X])
  1023. + _LT_DECL([], [OTOOL], [1],
  1024. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1025. + _LT_DECL([], [OTOOL64], [1],
  1026. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1027. +
  1028. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1029. + [lt_cv_apple_cc_single_mod=no
  1030. + if test -z "${LT_MULTI_MODULE}"; then
  1031. + # By default we will add the -single_module flag. You can override
  1032. + # by either setting the environment variable LT_MULTI_MODULE
  1033. + # non-empty at configure time, or by adding -multi_module to the
  1034. + # link flags.
  1035. + rm -rf libconftest.dylib*
  1036. + echo "int foo(void){return 1;}" > conftest.c
  1037. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1038. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1039. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1040. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1041. + _lt_result=$?
  1042. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1043. + lt_cv_apple_cc_single_mod=yes
  1044. + else
  1045. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1046. + fi
  1047. + rm -rf libconftest.dylib*
  1048. + rm -f conftest.*
  1049. + fi])
  1050. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1051. + [lt_cv_ld_exported_symbols_list],
  1052. + [lt_cv_ld_exported_symbols_list=no
  1053. + save_LDFLAGS=$LDFLAGS
  1054. + echo "_main" > conftest.sym
  1055. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1056. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1057. + [lt_cv_ld_exported_symbols_list=yes],
  1058. + [lt_cv_ld_exported_symbols_list=no])
  1059. + LDFLAGS="$save_LDFLAGS"
  1060. + ])
  1061. + case $host_os in
  1062. + rhapsody* | darwin1.[[012]])
  1063. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1064. + darwin1.*)
  1065. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1066. + darwin*) # darwin 5.x on
  1067. + # if running on 10.5 or later, the deployment target defaults
  1068. + # to the OS version, if on x86, and 10.4, the deployment
  1069. + # target defaults to 10.4. Don't you love it?
  1070. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1071. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1072. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1073. + 10.[[012]]*)
  1074. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1075. + 10.*)
  1076. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1077. + esac
  1078. + ;;
  1079. + esac
  1080. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1081. + _lt_dar_single_mod='$single_module'
  1082. + fi
  1083. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1084. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1085. + else
  1086. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1087. + fi
  1088. + if test "$DSYMUTIL" != ":"; then
  1089. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1090. + else
  1091. + _lt_dsymutil=
  1092. + fi
  1093. + ;;
  1094. + esac
  1095. +])
  1096. +
  1097. +
  1098. +# _LT_DARWIN_LINKER_FEATURES
  1099. +# --------------------------
  1100. +# Checks for linker and compiler features on darwin
  1101. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1102. +[
  1103. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1104. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1105. + _LT_TAGVAR(hardcode_direct, $1)=no
  1106. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1107. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1108. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1109. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1110. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1111. + case $cc_basename in
  1112. + ifort*) _lt_dar_can_shared=yes ;;
  1113. + *) _lt_dar_can_shared=$GCC ;;
  1114. + esac
  1115. + if test "$_lt_dar_can_shared" = "yes"; then
  1116. + output_verbose_link_cmd=echo
  1117. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1118. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1119. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1120. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1121. + m4_if([$1], [CXX],
  1122. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1123. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1124. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1125. + fi
  1126. +],[])
  1127. + else
  1128. + _LT_TAGVAR(ld_shlibs, $1)=no
  1129. + fi
  1130. +])
  1131. +
  1132. +# _LT_SYS_MODULE_PATH_AIX
  1133. +# -----------------------
  1134. # Links a minimal program and checks the executable
  1135. # for the system default hardcoded library path. In most cases,
  1136. # this is /usr/lib:/lib, but when the MPI compilers are used
  1137. # the location of the communication and MPI libs are included too.
  1138. # If we don't find anything, use the default library path according
  1139. # to the aix ld manual.
  1140. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1141. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1142. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1143. -}'`
  1144. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1145. +[m4_require([_LT_DECL_SED])dnl
  1146. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1147. +lt_aix_libpath_sed='
  1148. + /Import File Strings/,/^$/ {
  1149. + /^0/ {
  1150. + s/^0 *\(.*\)$/\1/
  1151. + p
  1152. + }
  1153. + }'
  1154. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1155. # Check for a 64-bit object if we didn't find anything.
  1156. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1157. -}'`; fi],[])
  1158. +if test -z "$aix_libpath"; then
  1159. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1160. +fi],[])
  1161. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1162. -])# _LT_AC_SYS_LIBPATH_AIX
  1163. +])# _LT_SYS_MODULE_PATH_AIX
  1164. -# _LT_AC_SHELL_INIT(ARG)
  1165. -# ----------------------
  1166. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1167. +# _LT_SHELL_INIT(ARG)
  1168. +# -------------------
  1169. +m4_define([_LT_SHELL_INIT],
  1170. [ifdef([AC_DIVERSION_NOTICE],
  1171. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1172. [AC_DIVERT_PUSH(NOTICE)])
  1173. $1
  1174. AC_DIVERT_POP
  1175. -])# _LT_AC_SHELL_INIT
  1176. +])# _LT_SHELL_INIT
  1177. -# _LT_AC_PROG_ECHO_BACKSLASH
  1178. -# --------------------------
  1179. +# _LT_PROG_ECHO_BACKSLASH
  1180. +# -----------------------
  1181. # Add some code to the start of the generated configure script which
  1182. # will find an echo command which doesn't interpret backslashes.
  1183. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1184. -[_LT_AC_SHELL_INIT([
  1185. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1186. +[_LT_SHELL_INIT([
  1187. # Check that we are running under the correct shell.
  1188. SHELL=${CONFIG_SHELL-/bin/sh}
  1189. -case X$ECHO in
  1190. +case X$lt_ECHO in
  1191. X*--fallback-echo)
  1192. # Remove one level of quotation (which was required for Make).
  1193. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1194. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1195. ;;
  1196. esac
  1197. -echo=${ECHO-echo}
  1198. +ECHO=${lt_ECHO-echo}
  1199. if test "X[$]1" = X--no-reexec; then
  1200. # Discard the --no-reexec flag, and continue.
  1201. shift
  1202. elif test "X[$]1" = X--fallback-echo; then
  1203. # Avoid inline document here, it may be left over
  1204. :
  1205. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1206. - # Yippee, $echo works!
  1207. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1208. + # Yippee, $ECHO works!
  1209. :
  1210. else
  1211. # Restart under the correct shell.
  1212. @@ -301,134 +1098,137 @@
  1213. if test "X[$]1" = X--fallback-echo; then
  1214. # used as fallback echo
  1215. shift
  1216. - cat <<EOF
  1217. + cat <<_LT_EOF
  1218. [$]*
  1219. -EOF
  1220. +_LT_EOF
  1221. exit 0
  1222. fi
  1223. # The HP-UX ksh and POSIX shell print the target directory to stdout
  1224. # if CDPATH is set.
  1225. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1226. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1227. -if test -z "$ECHO"; then
  1228. -if test "X${echo_test_string+set}" != Xset; then
  1229. -# find a string as large as possible, as long as the shell can cope with it
  1230. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1231. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1232. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  1233. - echo_test_string="`eval $cmd`" &&
  1234. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1235. - then
  1236. - break
  1237. - fi
  1238. - done
  1239. -fi
  1240. +if test -z "$lt_ECHO"; then
  1241. + if test "X${echo_test_string+set}" != Xset; then
  1242. + # find a string as large as possible, as long as the shell can cope with it
  1243. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1244. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1245. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1246. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1247. + then
  1248. + break
  1249. + fi
  1250. + done
  1251. + fi
  1252. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1253. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1254. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1255. - :
  1256. -else
  1257. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1258. - # backslashes. This makes it impossible to quote backslashes using
  1259. - # echo "$something" | sed 's/\\/\\\\/g'
  1260. - #
  1261. - # So, first we look for a working echo in the user's PATH.
  1262. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1263. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1264. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1265. + :
  1266. + else
  1267. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1268. + # backslashes. This makes it impossible to quote backslashes using
  1269. + # echo "$something" | sed 's/\\/\\\\/g'
  1270. + #
  1271. + # So, first we look for a working echo in the user's PATH.
  1272. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1273. - for dir in $PATH /usr/ucb; do
  1274. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1275. + for dir in $PATH /usr/ucb; do
  1276. + IFS="$lt_save_ifs"
  1277. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1278. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1279. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1280. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1281. + ECHO="$dir/echo"
  1282. + break
  1283. + fi
  1284. + done
  1285. IFS="$lt_save_ifs"
  1286. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1287. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1288. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1289. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1290. - echo="$dir/echo"
  1291. - break
  1292. - fi
  1293. - done
  1294. - IFS="$lt_save_ifs"
  1295. - if test "X$echo" = Xecho; then
  1296. - # We didn't find a better echo, so look for alternatives.
  1297. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1298. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1299. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1300. - # This shell has a builtin print -r that does the trick.
  1301. - echo='print -r'
  1302. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1303. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1304. - # If we have ksh, try running configure again with it.
  1305. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1306. - export ORIGINAL_CONFIG_SHELL
  1307. - CONFIG_SHELL=/bin/ksh
  1308. - export CONFIG_SHELL
  1309. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1310. - else
  1311. - # Try using printf.
  1312. - echo='printf %s\n'
  1313. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1314. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1315. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1316. - # Cool, printf works
  1317. - :
  1318. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1319. - test "X$echo_testing_string" = 'X\t' &&
  1320. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1321. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1322. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1323. - export CONFIG_SHELL
  1324. - SHELL="$CONFIG_SHELL"
  1325. - export SHELL
  1326. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1327. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1328. - test "X$echo_testing_string" = 'X\t' &&
  1329. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1330. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1331. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1332. + if test "X$ECHO" = Xecho; then
  1333. + # We didn't find a better echo, so look for alternatives.
  1334. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1335. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1336. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1337. + # This shell has a builtin print -r that does the trick.
  1338. + ECHO='print -r'
  1339. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1340. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1341. + # If we have ksh, try running configure again with it.
  1342. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1343. + export ORIGINAL_CONFIG_SHELL
  1344. + CONFIG_SHELL=/bin/ksh
  1345. + export CONFIG_SHELL
  1346. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1347. else
  1348. - # maybe with a smaller string...
  1349. - prev=:
  1350. + # Try using printf.
  1351. + ECHO='printf %s\n'
  1352. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1353. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1354. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1355. + # Cool, printf works
  1356. + :
  1357. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1358. + test "X$echo_testing_string" = 'X\t' &&
  1359. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1360. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1361. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1362. + export CONFIG_SHELL
  1363. + SHELL="$CONFIG_SHELL"
  1364. + export SHELL
  1365. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1366. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1367. + test "X$echo_testing_string" = 'X\t' &&
  1368. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1369. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1370. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1371. + else
  1372. + # maybe with a smaller string...
  1373. + prev=:
  1374. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1375. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1376. - then
  1377. - break
  1378. - fi
  1379. - prev="$cmd"
  1380. - done
  1381. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1382. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1383. + then
  1384. + break
  1385. + fi
  1386. + prev="$cmd"
  1387. + done
  1388. - if test "$prev" != 'sed 50q "[$]0"'; then
  1389. - echo_test_string=`eval $prev`
  1390. - export echo_test_string
  1391. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1392. - else
  1393. - # Oops. We lost completely, so just stick with echo.
  1394. - echo=echo
  1395. - fi
  1396. + if test "$prev" != 'sed 50q "[$]0"'; then
  1397. + echo_test_string=`eval $prev`
  1398. + export echo_test_string
  1399. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1400. + else
  1401. + # Oops. We lost completely, so just stick with echo.
  1402. + ECHO=echo
  1403. + fi
  1404. + fi
  1405. fi
  1406. fi
  1407. fi
  1408. fi
  1409. -fi
  1410. # Copy echo and quote the copy suitably for passing to libtool from
  1411. # the Makefile, instead of quoting the original, which is used later.
  1412. -ECHO=$echo
  1413. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1414. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1415. +lt_ECHO=$ECHO
  1416. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1417. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1418. fi
  1419. -AC_SUBST(ECHO)
  1420. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1421. +AC_SUBST(lt_ECHO)
  1422. +])
  1423. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1424. +_LT_DECL([], [ECHO], [1],
  1425. + [An echo program that does not interpret backslashes])
  1426. +])# _LT_PROG_ECHO_BACKSLASH
  1427. -# _LT_AC_LOCK
  1428. -# -----------
  1429. -AC_DEFUN([_LT_AC_LOCK],
  1430. +# _LT_ENABLE_LOCK
  1431. +# ---------------
  1432. +m4_defun([_LT_ENABLE_LOCK],
  1433. [AC_ARG_ENABLE([libtool-lock],
  1434. - [AC_HELP_STRING([--disable-libtool-lock],
  1435. - [avoid locking (might break parallel builds)])])
  1436. + [AS_HELP_STRING([--disable-libtool-lock],
  1437. + [avoid locking (might break parallel builds)])])
  1438. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1439. # Some flags need to be propagated to the compiler or linker for good
  1440. @@ -439,12 +1239,12 @@
  1441. echo 'int i;' > conftest.$ac_ext
  1442. if AC_TRY_EVAL(ac_compile); then
  1443. case `/usr/bin/file conftest.$ac_objext` in
  1444. - *ELF-32*)
  1445. - HPUX_IA64_MODE="32"
  1446. - ;;
  1447. - *ELF-64*)
  1448. - HPUX_IA64_MODE="64"
  1449. - ;;
  1450. + *ELF-32*)
  1451. + HPUX_IA64_MODE="32"
  1452. + ;;
  1453. + *ELF-64*)
  1454. + HPUX_IA64_MODE="64"
  1455. + ;;
  1456. esac
  1457. fi
  1458. rm -rf conftest*
  1459. @@ -453,72 +1253,79 @@
  1460. # Find out which ABI we are using.
  1461. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1462. if AC_TRY_EVAL(ac_compile); then
  1463. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1464. - case `/usr/bin/file conftest.$ac_objext` in
  1465. - *32-bit*)
  1466. - LD="${LD-ld} -melf32bsmip"
  1467. - ;;
  1468. - *N32*)
  1469. - LD="${LD-ld} -melf32bmipn32"
  1470. - ;;
  1471. - *64-bit*)
  1472. - LD="${LD-ld} -melf64bmip"
  1473. - ;;
  1474. - esac
  1475. - else
  1476. - case `/usr/bin/file conftest.$ac_objext` in
  1477. - *32-bit*)
  1478. - LD="${LD-ld} -32"
  1479. - ;;
  1480. - *N32*)
  1481. - LD="${LD-ld} -n32"
  1482. - ;;
  1483. - *64-bit*)
  1484. - LD="${LD-ld} -64"
  1485. - ;;
  1486. - esac
  1487. - fi
  1488. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1489. + case `/usr/bin/file conftest.$ac_objext` in
  1490. + *32-bit*)
  1491. + LD="${LD-ld} -melf32bsmip"
  1492. + ;;
  1493. + *N32*)
  1494. + LD="${LD-ld} -melf32bmipn32"
  1495. + ;;
  1496. + *64-bit*)
  1497. + LD="${LD-ld} -melf64bmip"
  1498. + ;;
  1499. + esac
  1500. + else
  1501. + case `/usr/bin/file conftest.$ac_objext` in
  1502. + *32-bit*)
  1503. + LD="${LD-ld} -32"
  1504. + ;;
  1505. + *N32*)
  1506. + LD="${LD-ld} -n32"
  1507. + ;;
  1508. + *64-bit*)
  1509. + LD="${LD-ld} -64"
  1510. + ;;
  1511. + esac
  1512. + fi
  1513. fi
  1514. rm -rf conftest*
  1515. ;;
  1516. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  1517. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1518. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1519. # Find out which ABI we are using.
  1520. echo 'int i;' > conftest.$ac_ext
  1521. if AC_TRY_EVAL(ac_compile); then
  1522. - case "`/usr/bin/file conftest.o`" in
  1523. - *32-bit*)
  1524. - case $host in
  1525. - x86_64-*linux*)
  1526. - LD="${LD-ld} -m elf_i386"
  1527. - ;;
  1528. - ppc64-*linux*|powerpc64-*linux*)
  1529. - LD="${LD-ld} -m elf32ppclinux"
  1530. - ;;
  1531. - s390x-*linux*)
  1532. - LD="${LD-ld} -m elf_s390"
  1533. - ;;
  1534. - sparc64-*linux*)
  1535. - LD="${LD-ld} -m elf32_sparc"
  1536. - ;;
  1537. - esac
  1538. - ;;
  1539. - *64-bit*)
  1540. - case $host in
  1541. - x86_64-*linux*)
  1542. - LD="${LD-ld} -m elf_x86_64"
  1543. - ;;
  1544. - ppc*-*linux*|powerpc*-*linux*)
  1545. - LD="${LD-ld} -m elf64ppc"
  1546. - ;;
  1547. - s390*-*linux*)
  1548. - LD="${LD-ld} -m elf64_s390"
  1549. - ;;
  1550. - sparc*-*linux*)
  1551. - LD="${LD-ld} -m elf64_sparc"
  1552. - ;;
  1553. - esac
  1554. - ;;
  1555. + case `/usr/bin/file conftest.o` in
  1556. + *32-bit*)
  1557. + case $host in
  1558. + x86_64-*kfreebsd*-gnu)
  1559. + LD="${LD-ld} -m elf_i386_fbsd"
  1560. + ;;
  1561. + x86_64-*linux*)
  1562. + LD="${LD-ld} -m elf_i386"
  1563. + ;;
  1564. + ppc64-*linux*|powerpc64-*linux*)
  1565. + LD="${LD-ld} -m elf32ppclinux"
  1566. + ;;
  1567. + s390x-*linux*)
  1568. + LD="${LD-ld} -m elf_s390"
  1569. + ;;
  1570. + sparc64-*linux*)
  1571. + LD="${LD-ld} -m elf32_sparc"
  1572. + ;;
  1573. + esac
  1574. + ;;
  1575. + *64-bit*)
  1576. + case $host in
  1577. + x86_64-*kfreebsd*-gnu)
  1578. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1579. + ;;
  1580. + x86_64-*linux*)
  1581. + LD="${LD-ld} -m elf_x86_64"
  1582. + ;;
  1583. + ppc*-*linux*|powerpc*-*linux*)
  1584. + LD="${LD-ld} -m elf64ppc"
  1585. + ;;
  1586. + s390*-*linux*|s390*-*tpf*)
  1587. + LD="${LD-ld} -m elf64_s390"
  1588. + ;;
  1589. + sparc*-*linux*)
  1590. + LD="${LD-ld} -m elf64_sparc"
  1591. + ;;
  1592. + esac
  1593. + ;;
  1594. esac
  1595. fi
  1596. rm -rf conftest*
  1597. @@ -530,37 +1337,90 @@
  1598. CFLAGS="$CFLAGS -belf"
  1599. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1600. [AC_LANG_PUSH(C)
  1601. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1602. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1603. AC_LANG_POP])
  1604. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1605. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1606. CFLAGS="$SAVE_CFLAGS"
  1607. fi
  1608. ;;
  1609. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1610. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1611. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1612. - AC_CHECK_TOOL(AS, as, false)
  1613. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1614. +sparc*-*solaris*)
  1615. + # Find out which ABI we are using.
  1616. + echo 'int i;' > conftest.$ac_ext
  1617. + if AC_TRY_EVAL(ac_compile); then
  1618. + case `/usr/bin/file conftest.o` in
  1619. + *64-bit*)
  1620. + case $lt_cv_prog_gnu_ld in
  1621. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1622. + *)
  1623. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1624. + LD="${LD-ld} -64"
  1625. + fi
  1626. + ;;
  1627. + esac
  1628. + ;;
  1629. + esac
  1630. + fi
  1631. + rm -rf conftest*
  1632. ;;
  1633. - ])
  1634. esac
  1635. need_locks="$enable_libtool_lock"
  1636. +])# _LT_ENABLE_LOCK
  1637. +
  1638. +
  1639. +# _LT_CMD_OLD_ARCHIVE
  1640. +# -------------------
  1641. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1642. +[AC_CHECK_TOOL(AR, ar, false)
  1643. +test -z "$AR" && AR=ar
  1644. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1645. +_LT_DECL([], [AR], [1], [The archiver])
  1646. +_LT_DECL([], [AR_FLAGS], [1])
  1647. +
  1648. +AC_CHECK_TOOL(STRIP, strip, :)
  1649. +test -z "$STRIP" && STRIP=:
  1650. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1651. +
  1652. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1653. +test -z "$RANLIB" && RANLIB=:
  1654. +_LT_DECL([], [RANLIB], [1],
  1655. + [Commands used to install an old-style archive])
  1656. +
  1657. +# Determine commands to create old-style static archives.
  1658. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1659. +old_postinstall_cmds='chmod 644 $oldlib'
  1660. +old_postuninstall_cmds=
  1661. -])# _LT_AC_LOCK
  1662. +if test -n "$RANLIB"; then
  1663. + case $host_os in
  1664. + openbsd*)
  1665. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1666. + ;;
  1667. + *)
  1668. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1669. + ;;
  1670. + esac
  1671. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1672. +fi
  1673. +_LT_DECL([], [old_postinstall_cmds], [2])
  1674. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1675. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1676. + [Commands used to build an old-style archive])
  1677. +])# _LT_CMD_OLD_ARCHIVE
  1678. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1679. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1680. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1681. # ----------------------------------------------------------------
  1682. # Check whether the given compiler option works
  1683. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1684. -[AC_REQUIRE([LT_AC_PROG_SED])
  1685. +AC_DEFUN([_LT_COMPILER_OPTION],
  1686. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1687. +m4_require([_LT_DECL_SED])dnl
  1688. AC_CACHE_CHECK([$1], [$2],
  1689. [$2=no
  1690. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1691. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1692. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1693. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1694. lt_compiler_flag="$3"
  1695. # Insert the option either (1) after the last *FLAGS variable, or
  1696. # (2) before a word containing "conftest.", or (3) at the end.
  1697. @@ -568,7 +1428,7 @@
  1698. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1699. # The option is referenced via a variable to avoid confusing sed.
  1700. lt_compile=`echo "$ac_compile" | $SED \
  1701. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1702. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1703. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1704. -e 's:$: $lt_compiler_flag:'`
  1705. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1706. @@ -578,58 +1438,78 @@
  1707. echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1708. if (exit $ac_status) && test -s "$ac_outfile"; then
  1709. # The compiler can only warn and ignore the option if not recognized
  1710. - # So say no if there are warnings
  1711. - if test ! -s conftest.err; then
  1712. + # So say no if there are warnings other than the usual output.
  1713. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1714. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1715. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1716. $2=yes
  1717. fi
  1718. fi
  1719. - $rm conftest*
  1720. + $RM conftest*
  1721. ])
  1722. if test x"[$]$2" = xyes; then
  1723. - ifelse([$5], , :, [$5])
  1724. + m4_if([$5], , :, [$5])
  1725. else
  1726. - ifelse([$6], , :, [$6])
  1727. + m4_if([$6], , :, [$6])
  1728. fi
  1729. -])# AC_LIBTOOL_COMPILER_OPTION
  1730. +])# _LT_COMPILER_OPTION
  1731. -
  1732. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1733. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1734. -# ------------------------------------------------------------
  1735. -# Check whether the given compiler option works
  1736. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1737. -[AC_CACHE_CHECK([$1], [$2],
  1738. +# Old name:
  1739. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1740. +dnl aclocal-1.4 backwards compatibility:
  1741. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1742. +
  1743. +
  1744. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1745. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1746. +# ----------------------------------------------------
  1747. +# Check whether the given linker option works
  1748. +AC_DEFUN([_LT_LINKER_OPTION],
  1749. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1750. +m4_require([_LT_DECL_SED])dnl
  1751. +AC_CACHE_CHECK([$1], [$2],
  1752. [$2=no
  1753. save_LDFLAGS="$LDFLAGS"
  1754. LDFLAGS="$LDFLAGS $3"
  1755. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1756. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1757. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1758. - # The compiler can only warn and ignore the option if not recognized
  1759. + # The linker can only warn and ignore the option if not recognized
  1760. # So say no if there are warnings
  1761. if test -s conftest.err; then
  1762. # Append any errors to the config.log.
  1763. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1764. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1765. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1766. + if diff conftest.exp conftest.er2 >/dev/null; then
  1767. + $2=yes
  1768. + fi
  1769. else
  1770. $2=yes
  1771. fi
  1772. fi
  1773. - $rm conftest*
  1774. + $RM -r conftest*
  1775. LDFLAGS="$save_LDFLAGS"
  1776. ])
  1777. if test x"[$]$2" = xyes; then
  1778. - ifelse([$4], , :, [$4])
  1779. + m4_if([$4], , :, [$4])
  1780. else
  1781. - ifelse([$5], , :, [$5])
  1782. + m4_if([$5], , :, [$5])
  1783. fi
  1784. -])# AC_LIBTOOL_LINKER_OPTION
  1785. +])# _LT_LINKER_OPTION
  1786. +# Old name:
  1787. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1788. +dnl aclocal-1.4 backwards compatibility:
  1789. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1790. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1791. -# --------------------------
  1792. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1793. -[# find the maximum length of command line arguments
  1794. +
  1795. +# LT_CMD_MAX_LEN
  1796. +#---------------
  1797. +AC_DEFUN([LT_CMD_MAX_LEN],
  1798. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1799. +# find the maximum length of command line arguments
  1800. AC_MSG_CHECKING([the maximum length of command line arguments])
  1801. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1802. i=0
  1803. @@ -651,7 +1531,7 @@
  1804. lt_cv_sys_max_cmd_len=-1;
  1805. ;;
  1806. - cygwin* | mingw*)
  1807. + cygwin* | mingw* | cegcc*)
  1808. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1809. # about 5 minutes as the teststring grows exponentially.
  1810. # Worse, since 9x/ME are not pre-emptively multitasking,
  1811. @@ -668,24 +1548,79 @@
  1812. lt_cv_sys_max_cmd_len=8192;
  1813. ;;
  1814. - *)
  1815. - # If test is not a shell built-in, we'll probably end up computing a
  1816. - # maximum length that is only half of the actual maximum length, but
  1817. - # we can't tell.
  1818. - while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1819. - = "XX$teststring") >/dev/null 2>&1 &&
  1820. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1821. - lt_cv_sys_max_cmd_len=$new_result &&
  1822. - test $i != 17 # 1/2 MB should be enough
  1823. - do
  1824. - i=`expr $i + 1`
  1825. - teststring=$teststring$teststring
  1826. - done
  1827. - teststring=
  1828. - # Add a significant safety factor because C++ compilers can tack on massive
  1829. - # amounts of additional arguments before passing them to the linker.
  1830. - # It appears as though 1/2 is a usable value.
  1831. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1832. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1833. + # This has been around since 386BSD, at least. Likely further.
  1834. + if test -x /sbin/sysctl; then
  1835. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1836. + elif test -x /usr/sbin/sysctl; then
  1837. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1838. + else
  1839. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1840. + fi
  1841. + # And add a safety zone
  1842. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1843. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1844. + ;;
  1845. +
  1846. + interix*)
  1847. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1848. + lt_cv_sys_max_cmd_len=196608
  1849. + ;;
  1850. +
  1851. + osf*)
  1852. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1853. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1854. + # nice to cause kernel panics so lets avoid the loop below.
  1855. + # First set a reasonable default.
  1856. + lt_cv_sys_max_cmd_len=16384
  1857. + #
  1858. + if test -x /sbin/sysconfig; then
  1859. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1860. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1861. + esac
  1862. + fi
  1863. + ;;
  1864. + sco3.2v5*)
  1865. + lt_cv_sys_max_cmd_len=102400
  1866. + ;;
  1867. + sysv5* | sco5v6* | sysv4.2uw2*)
  1868. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1869. + if test -n "$kargmax"; then
  1870. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1871. + else
  1872. + lt_cv_sys_max_cmd_len=32768
  1873. + fi
  1874. + ;;
  1875. + *)
  1876. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1877. + if test -n "$lt_cv_sys_max_cmd_len"; then
  1878. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1879. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1880. + else
  1881. + # Make teststring a little bigger before we do anything with it.
  1882. + # a 1K string should be a reasonable start.
  1883. + for i in 1 2 3 4 5 6 7 8 ; do
  1884. + teststring=$teststring$teststring
  1885. + done
  1886. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1887. + # If test is not a shell built-in, we'll probably end up computing a
  1888. + # maximum length that is only half of the actual maximum length, but
  1889. + # we can't tell.
  1890. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1891. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1892. + test $i != 17 # 1/2 MB should be enough
  1893. + do
  1894. + i=`expr $i + 1`
  1895. + teststring=$teststring$teststring
  1896. + done
  1897. + # Only check the string length outside the loop.
  1898. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1899. + teststring=
  1900. + # Add a significant safety factor because C++ compilers can tack on
  1901. + # massive amounts of additional arguments before passing them to the
  1902. + # linker. It appears as though 1/2 is a usable value.
  1903. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1904. + fi
  1905. ;;
  1906. esac
  1907. ])
  1908. @@ -694,27 +1629,35 @@
  1909. else
  1910. AC_MSG_RESULT(none)
  1911. fi
  1912. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1913. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1914. +_LT_DECL([], [max_cmd_len], [0],
  1915. + [What is the maximum length of a command?])
  1916. +])# LT_CMD_MAX_LEN
  1917. +# Old name:
  1918. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1919. +dnl aclocal-1.4 backwards compatibility:
  1920. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1921. -# _LT_AC_CHECK_DLFCN
  1922. -# --------------------
  1923. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1924. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1925. -])# _LT_AC_CHECK_DLFCN
  1926. +
  1927. +# _LT_HEADER_DLFCN
  1928. +# ----------------
  1929. +m4_defun([_LT_HEADER_DLFCN],
  1930. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1931. +])# _LT_HEADER_DLFCN
  1932. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1933. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1934. -# ------------------------------------------------------------------
  1935. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1936. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1937. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1938. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1939. +# ----------------------------------------------------------------
  1940. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1941. +[m4_require([_LT_HEADER_DLFCN])dnl
  1942. if test "$cross_compiling" = yes; then :
  1943. [$4]
  1944. else
  1945. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1946. lt_status=$lt_dlunknown
  1947. - cat > conftest.$ac_ext <<EOF
  1948. + cat > conftest.$ac_ext <<_LT_EOF
  1949. [#line __oline__ "configure"
  1950. #include "confdefs.h"
  1951. @@ -756,10 +1699,6 @@
  1952. # endif
  1953. #endif
  1954. -#ifdef __cplusplus
  1955. -extern "C" void exit (int);
  1956. -#endif
  1957. -
  1958. void fnord() { int i=42;}
  1959. int main ()
  1960. {
  1961. @@ -772,17 +1711,19 @@
  1962. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1963. /* dlclose (self); */
  1964. }
  1965. + else
  1966. + puts (dlerror ());
  1967. - exit (status);
  1968. + return status;
  1969. }]
  1970. -EOF
  1971. +_LT_EOF
  1972. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1973. - (./conftest; exit; ) 2>/dev/null
  1974. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1975. lt_status=$?
  1976. case x$lt_status in
  1977. x$lt_dlno_uscore) $1 ;;
  1978. x$lt_dlneed_uscore) $2 ;;
  1979. - x$lt_unknown|x*) $3 ;;
  1980. + x$lt_dlunknown|x*) $3 ;;
  1981. esac
  1982. else :
  1983. # compilation failed
  1984. @@ -790,13 +1731,13 @@
  1985. fi
  1986. fi
  1987. rm -fr conftest*
  1988. -])# _LT_AC_TRY_DLOPEN_SELF
  1989. +])# _LT_TRY_DLOPEN_SELF
  1990. -# AC_LIBTOOL_DLOPEN_SELF
  1991. -# -------------------
  1992. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1993. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1994. +# LT_SYS_DLOPEN_SELF
  1995. +# ------------------
  1996. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1997. +[m4_require([_LT_HEADER_DLFCN])dnl
  1998. if test "x$enable_dlopen" != xyes; then
  1999. enable_dlopen=unknown
  2000. enable_dlopen_self=unknown
  2001. @@ -812,15 +1753,15 @@
  2002. lt_cv_dlopen_self=yes
  2003. ;;
  2004. - mingw* | pw32*)
  2005. + mingw* | pw32* | cegcc*)
  2006. lt_cv_dlopen="LoadLibrary"
  2007. lt_cv_dlopen_libs=
  2008. - ;;
  2009. + ;;
  2010. cygwin*)
  2011. lt_cv_dlopen="dlopen"
  2012. lt_cv_dlopen_libs=
  2013. - ;;
  2014. + ;;
  2015. darwin*)
  2016. # if libdl is installed we need to link against it
  2017. @@ -830,13 +1771,13 @@
  2018. lt_cv_dlopen_libs=
  2019. lt_cv_dlopen_self=yes
  2020. ])
  2021. - ;;
  2022. + ;;
  2023. *)
  2024. AC_CHECK_FUNC([shl_load],
  2025. [lt_cv_dlopen="shl_load"],
  2026. [AC_CHECK_LIB([dld], [shl_load],
  2027. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  2028. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  2029. [AC_CHECK_FUNC([dlopen],
  2030. [lt_cv_dlopen="dlopen"],
  2031. [AC_CHECK_LIB([dl], [dlopen],
  2032. @@ -844,7 +1785,7 @@
  2033. [AC_CHECK_LIB([svld], [dlopen],
  2034. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  2035. [AC_CHECK_LIB([dld], [dld_link],
  2036. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  2037. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  2038. ])
  2039. ])
  2040. ])
  2041. @@ -865,23 +1806,23 @@
  2042. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  2043. save_LDFLAGS="$LDFLAGS"
  2044. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2045. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  2046. save_LIBS="$LIBS"
  2047. LIBS="$lt_cv_dlopen_libs $LIBS"
  2048. AC_CACHE_CHECK([whether a program can dlopen itself],
  2049. lt_cv_dlopen_self, [dnl
  2050. - _LT_AC_TRY_DLOPEN_SELF(
  2051. + _LT_TRY_DLOPEN_SELF(
  2052. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  2053. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  2054. ])
  2055. if test "x$lt_cv_dlopen_self" = xyes; then
  2056. - LDFLAGS="$LDFLAGS $link_static_flag"
  2057. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  2058. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  2059. - lt_cv_dlopen_self_static, [dnl
  2060. - _LT_AC_TRY_DLOPEN_SELF(
  2061. + lt_cv_dlopen_self_static, [dnl
  2062. + _LT_TRY_DLOPEN_SELF(
  2063. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  2064. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  2065. ])
  2066. @@ -903,22 +1844,36 @@
  2067. *) enable_dlopen_self_static=unknown ;;
  2068. esac
  2069. fi
  2070. -])# AC_LIBTOOL_DLOPEN_SELF
  2071. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  2072. + [Whether dlopen is supported])
  2073. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  2074. + [Whether dlopen of programs is supported])
  2075. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  2076. + [Whether dlopen of statically linked programs is supported])
  2077. +])# LT_SYS_DLOPEN_SELF
  2078. +
  2079. +# Old name:
  2080. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  2081. +dnl aclocal-1.4 backwards compatibility:
  2082. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  2083. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  2084. -# ---------------------------------
  2085. -# Check to see if options -c and -o are simultaneously supported by compiler
  2086. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  2087. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  2088. +# _LT_COMPILER_C_O([TAGNAME])
  2089. +# ---------------------------
  2090. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2091. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2092. +m4_defun([_LT_COMPILER_C_O],
  2093. +[m4_require([_LT_DECL_SED])dnl
  2094. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2095. +m4_require([_LT_TAG_COMPILER])dnl
  2096. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2097. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2098. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2099. - $rm -r conftest 2>/dev/null
  2100. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2101. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2102. + $RM -r conftest 2>/dev/null
  2103. mkdir conftest
  2104. cd conftest
  2105. mkdir out
  2106. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  2107. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2108. lt_compiler_flag="-o out/conftest2.$ac_objext"
  2109. # Insert the option either (1) after the last *FLAGS variable, or
  2110. @@ -926,7 +1881,7 @@
  2111. # Note that $ac_compile itself does not contain backslashes and begins
  2112. # with a dollar sign (not a hyphen), so the echo should work correctly.
  2113. lt_compile=`echo "$ac_compile" | $SED \
  2114. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  2115. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2116. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2117. -e 's:$: $lt_compiler_flag:'`
  2118. (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2119. @@ -938,35 +1893,41 @@
  2120. then
  2121. # The compiler can only warn and ignore the option if not recognized
  2122. # So say no if there are warnings
  2123. - if test ! -s out/conftest.err; then
  2124. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2125. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2126. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2127. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2128. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2129. fi
  2130. fi
  2131. - chmod u+w .
  2132. - $rm conftest*
  2133. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2134. + $RM conftest*
  2135. # SGI C++ compiler will create directory out/ii_files/ for
  2136. # template instantiation
  2137. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2138. - $rm out/* && rmdir out
  2139. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2140. + $RM out/* && rmdir out
  2141. cd ..
  2142. - rmdir conftest
  2143. - $rm conftest*
  2144. + $RM -r conftest
  2145. + $RM conftest*
  2146. ])
  2147. -])# AC_LIBTOOL_PROG_CC_C_O
  2148. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2149. + [Does compiler simultaneously support -c and -o options?])
  2150. +])# _LT_COMPILER_C_O
  2151. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2152. -# -----------------------------------------
  2153. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2154. +# ----------------------------------
  2155. # Check to see if we can do hard links to lock some files if needed
  2156. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2157. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2158. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2159. +[m4_require([_LT_ENABLE_LOCK])dnl
  2160. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2161. +_LT_COMPILER_C_O([$1])
  2162. hard_links="nottested"
  2163. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2164. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2165. # do not overwrite the value of need_locks provided by the user
  2166. AC_MSG_CHECKING([if we can lock with hard links])
  2167. hard_links=yes
  2168. - $rm conftest*
  2169. + $RM conftest*
  2170. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2171. touch conftest.a
  2172. ln conftest.a conftest.b 2>&5 || hard_links=no
  2173. @@ -979,12 +1940,13 @@
  2174. else
  2175. need_locks=no
  2176. fi
  2177. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2178. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2179. +])# _LT_COMPILER_FILE_LOCKS
  2180. -# AC_LIBTOOL_OBJDIR
  2181. -# -----------------
  2182. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2183. +# _LT_CHECK_OBJDIR
  2184. +# ----------------
  2185. +m4_defun([_LT_CHECK_OBJDIR],
  2186. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2187. [rm -f .libs 2>/dev/null
  2188. mkdir .libs 2>/dev/null
  2189. @@ -996,40 +1958,46 @@
  2190. fi
  2191. rmdir .libs 2>/dev/null])
  2192. objdir=$lt_cv_objdir
  2193. -])# AC_LIBTOOL_OBJDIR
  2194. +_LT_DECL([], [objdir], [0],
  2195. + [The name of the directory that contains temporary libtool files])dnl
  2196. +m4_pattern_allow([LT_OBJDIR])dnl
  2197. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2198. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2199. +])# _LT_CHECK_OBJDIR
  2200. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2201. -# ----------------------------------------------
  2202. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2203. +# --------------------------------------
  2204. # Check hardcoding attributes.
  2205. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2206. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2207. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2208. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2209. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2210. - test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  2211. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  2212. +_LT_TAGVAR(hardcode_action, $1)=
  2213. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2214. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2215. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2216. - # We can hardcode non-existant directories.
  2217. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2218. + # We can hardcode non-existent directories.
  2219. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2220. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2221. # have to relink, otherwise we might link with an installed library
  2222. # when we should be linking with a yet-to-be-installed one
  2223. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2224. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2225. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2226. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2227. # Linking always hardcodes the temporary library directory.
  2228. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2229. + _LT_TAGVAR(hardcode_action, $1)=relink
  2230. else
  2231. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2232. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2233. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2234. fi
  2235. else
  2236. # We cannot hardcode anything, or else we can only hardcode existing
  2237. # directories.
  2238. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2239. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2240. fi
  2241. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2242. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2243. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2244. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2245. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2246. # Fast installation is not supported
  2247. enable_fast_install=no
  2248. elif test "$shlibpath_overrides_runpath" = yes ||
  2249. @@ -1037,43 +2005,107 @@
  2250. # Fast installation is not necessary
  2251. enable_fast_install=needless
  2252. fi
  2253. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2254. +_LT_TAGDECL([], [hardcode_action], [0],
  2255. + [How to hardcode a shared library path into an executable])
  2256. +])# _LT_LINKER_HARDCODE_LIBPATH
  2257. -# AC_LIBTOOL_SYS_LIB_STRIP
  2258. -# ------------------------
  2259. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2260. -[striplib=
  2261. +# _LT_CMD_STRIPLIB
  2262. +# ----------------
  2263. +m4_defun([_LT_CMD_STRIPLIB],
  2264. +[m4_require([_LT_DECL_EGREP])
  2265. +striplib=
  2266. old_striplib=
  2267. AC_MSG_CHECKING([whether stripping libraries is possible])
  2268. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2269. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2270. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2271. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2272. AC_MSG_RESULT([yes])
  2273. else
  2274. # FIXME - insert some real tests, host_os isn't really good enough
  2275. case $host_os in
  2276. - darwin*)
  2277. - if test -n "$STRIP" ; then
  2278. - striplib="$STRIP -x"
  2279. - AC_MSG_RESULT([yes])
  2280. - else
  2281. - AC_MSG_RESULT([no])
  2282. -fi
  2283. - ;;
  2284. - *)
  2285. - AC_MSG_RESULT([no])
  2286. + darwin*)
  2287. + if test -n "$STRIP" ; then
  2288. + striplib="$STRIP -x"
  2289. + old_striplib="$STRIP -S"
  2290. + AC_MSG_RESULT([yes])
  2291. + else
  2292. + AC_MSG_RESULT([no])
  2293. + fi
  2294. + ;;
  2295. + *)
  2296. + AC_MSG_RESULT([no])
  2297. ;;
  2298. esac
  2299. fi
  2300. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2301. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2302. +_LT_DECL([], [striplib], [1])
  2303. +])# _LT_CMD_STRIPLIB
  2304. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2305. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2306. # -----------------------------
  2307. # PORTME Fill in your ld.so characteristics
  2308. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2309. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2310. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2311. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2312. +m4_require([_LT_DECL_EGREP])dnl
  2313. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2314. +m4_require([_LT_DECL_OBJDUMP])dnl
  2315. +m4_require([_LT_DECL_SED])dnl
  2316. +AC_MSG_CHECKING([dynamic linker characteristics])
  2317. +m4_if([$1],
  2318. + [], [
  2319. +if test "$GCC" = yes; then
  2320. + case $host_os in
  2321. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2322. + *) lt_awk_arg="/^libraries:/" ;;
  2323. + esac
  2324. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2325. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2326. + # if the path contains ";" then we assume it to be the separator
  2327. + # otherwise default to the standard path separator (i.e. ":") - it is
  2328. + # assumed that no part of a normal pathname contains ";" but that should
  2329. + # okay in the real world where ";" in dirpaths is itself problematic.
  2330. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2331. + else
  2332. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2333. + fi
  2334. + # Ok, now we have the path, separated by spaces, we can step through it
  2335. + # and add multilib dir if necessary.
  2336. + lt_tmp_lt_search_path_spec=
  2337. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2338. + for lt_sys_path in $lt_search_path_spec; do
  2339. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  2340. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  2341. + else
  2342. + test -d "$lt_sys_path" && \
  2343. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2344. + fi
  2345. + done
  2346. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2347. +BEGIN {RS=" "; FS="/|\n";} {
  2348. + lt_foo="";
  2349. + lt_count=0;
  2350. + for (lt_i = NF; lt_i > 0; lt_i--) {
  2351. + if ($lt_i != "" && $lt_i != ".") {
  2352. + if ($lt_i == "..") {
  2353. + lt_count++;
  2354. + } else {
  2355. + if (lt_count == 0) {
  2356. + lt_foo="/" $lt_i lt_foo;
  2357. + } else {
  2358. + lt_count--;
  2359. + }
  2360. + }
  2361. + }
  2362. + }
  2363. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2364. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2365. +}'`
  2366. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2367. +else
  2368. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2369. +fi])
  2370. library_names_spec=
  2371. libname_spec='lib$name'
  2372. soname_spec=
  2373. @@ -1087,20 +2119,6 @@
  2374. version_type=none
  2375. dynamic_linker="$host_os ld.so"
  2376. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2377. -if test "$GCC" = yes; then
  2378. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2379. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2380. - # if the path contains ";" then we assume it to be the separator
  2381. - # otherwise default to the standard path separator (i.e. ":") - it is
  2382. - # assumed that no part of a normal pathname contains ";" but that should
  2383. - # okay in the real world where ";" in dirpaths is itself problematic.
  2384. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2385. - else
  2386. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2387. - fi
  2388. -else
  2389. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2390. -fi
  2391. need_lib_prefix=unknown
  2392. hardcode_into_libs=no
  2393. @@ -1118,7 +2136,7 @@
  2394. soname_spec='${libname}${release}${shared_ext}$major'
  2395. ;;
  2396. -aix4* | aix5*)
  2397. +aix[[4-9]]*)
  2398. version_type=linux
  2399. need_lib_prefix=no
  2400. need_version=no
  2401. @@ -1137,7 +2155,7 @@
  2402. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2403. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2404. echo ' yes '
  2405. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2406. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2407. :
  2408. else
  2409. can_build_shared=no
  2410. @@ -1163,9 +2181,18 @@
  2411. ;;
  2412. amigaos*)
  2413. - library_names_spec='$libname.ixlibrary $libname.a'
  2414. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2415. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2416. + case $host_cpu in
  2417. + powerpc)
  2418. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2419. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2420. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2421. + ;;
  2422. + m68k)
  2423. + library_names_spec='$libname.ixlibrary $libname.a'
  2424. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2425. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  2426. + ;;
  2427. + esac
  2428. ;;
  2429. beos*)
  2430. @@ -1174,7 +2201,7 @@
  2431. shlibpath_var=LIBRARY_PATH
  2432. ;;
  2433. -bsdi4*)
  2434. +bsdi[[45]]*)
  2435. version_type=linux
  2436. need_version=no
  2437. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2438. @@ -1188,24 +2215,28 @@
  2439. # libtool to hard-code these into programs
  2440. ;;
  2441. -cygwin* | mingw* | pw32*)
  2442. +cygwin* | mingw* | pw32* | cegcc*)
  2443. version_type=windows
  2444. shrext_cmds=".dll"
  2445. need_version=no
  2446. need_lib_prefix=no
  2447. case $GCC,$host_os in
  2448. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2449. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2450. library_names_spec='$libname.dll.a'
  2451. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2452. postinstall_cmds='base_file=`basename \${file}`~
  2453. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2454. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2455. dldir=$destdir/`dirname \$dlpath`~
  2456. test -d \$dldir || mkdir -p \$dldir~
  2457. - $install_prog $dir/$dlname \$dldir/$dlname'
  2458. + $install_prog $dir/$dlname \$dldir/$dlname~
  2459. + chmod a+x \$dldir/$dlname~
  2460. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2461. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2462. + fi'
  2463. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2464. dlpath=$dir/\$dldll~
  2465. - $rm \$dlpath'
  2466. + $RM \$dlpath'
  2467. shlibpath_overrides_runpath=yes
  2468. case $host_os in
  2469. @@ -1214,25 +2245,25 @@
  2470. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2471. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2472. ;;
  2473. - mingw*)
  2474. + mingw* | cegcc*)
  2475. # MinGW DLLs use traditional 'lib' prefix
  2476. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2477. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2478. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2479. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2480. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2481. # It is most probably a Windows format PATH printed by
  2482. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2483. # path with ; separators, and with drive letters. We can handle the
  2484. # drive letters (cygwin fileutils understands them), so leave them,
  2485. # especially as we might pass files found there to a mingw objdump,
  2486. # which wouldn't understand a cygwinified path. Ahh.
  2487. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2488. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2489. else
  2490. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2491. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2492. fi
  2493. ;;
  2494. pw32*)
  2495. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2496. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  2497. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2498. ;;
  2499. esac
  2500. ;;
  2501. @@ -1251,17 +2282,13 @@
  2502. version_type=darwin
  2503. need_lib_prefix=no
  2504. need_version=no
  2505. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2506. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2507. soname_spec='${libname}${release}${major}$shared_ext'
  2508. shlibpath_overrides_runpath=yes
  2509. shlibpath_var=DYLD_LIBRARY_PATH
  2510. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  2511. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2512. - if test "$GCC" = yes; then
  2513. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  2514. - else
  2515. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2516. - fi
  2517. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2518. +m4_if([$1], [],[
  2519. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2520. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2521. ;;
  2522. @@ -1278,20 +2305,17 @@
  2523. dynamic_linker=no
  2524. ;;
  2525. -kfreebsd*-gnu)
  2526. - version_type=linux
  2527. - need_lib_prefix=no
  2528. - need_version=no
  2529. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2530. - soname_spec='${libname}${release}${shared_ext}$major'
  2531. - shlibpath_var=LD_LIBRARY_PATH
  2532. - shlibpath_overrides_runpath=no
  2533. - hardcode_into_libs=yes
  2534. - dynamic_linker='GNU ld.so'
  2535. - ;;
  2536. -
  2537. -freebsd*)
  2538. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2539. +freebsd* | dragonfly*)
  2540. + # DragonFly does not have aout. When/if they implement a new
  2541. + # versioning mechanism, adjust this.
  2542. + if test -x /usr/bin/objformat; then
  2543. + objformat=`/usr/bin/objformat`
  2544. + else
  2545. + case $host_os in
  2546. + freebsd[[123]]*) objformat=aout ;;
  2547. + *) objformat=elf ;;
  2548. + esac
  2549. + fi
  2550. version_type=freebsd-$objformat
  2551. case $version_type in
  2552. freebsd-elf*)
  2553. @@ -1309,14 +2333,19 @@
  2554. freebsd2*)
  2555. shlibpath_overrides_runpath=yes
  2556. ;;
  2557. - freebsd3.[01]* | freebsdelf3.[01]*)
  2558. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2559. shlibpath_overrides_runpath=yes
  2560. hardcode_into_libs=yes
  2561. ;;
  2562. - *) # from 3.2 on
  2563. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2564. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2565. shlibpath_overrides_runpath=no
  2566. hardcode_into_libs=yes
  2567. ;;
  2568. + *) # from 4.6 on, and DragonFly
  2569. + shlibpath_overrides_runpath=yes
  2570. + hardcode_into_libs=yes
  2571. + ;;
  2572. esac
  2573. ;;
  2574. @@ -1336,7 +2365,7 @@
  2575. version_type=sunos
  2576. need_lib_prefix=no
  2577. need_version=no
  2578. - case "$host_cpu" in
  2579. + case $host_cpu in
  2580. ia64*)
  2581. shrext_cmds='.so'
  2582. hardcode_into_libs=yes
  2583. @@ -1352,18 +2381,18 @@
  2584. fi
  2585. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2586. ;;
  2587. - hppa*64*)
  2588. - shrext_cmds='.sl'
  2589. - hardcode_into_libs=yes
  2590. - dynamic_linker="$host_os dld.sl"
  2591. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2592. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2594. - soname_spec='${libname}${release}${shared_ext}$major'
  2595. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2596. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2597. - ;;
  2598. - *)
  2599. + hppa*64*)
  2600. + shrext_cmds='.sl'
  2601. + hardcode_into_libs=yes
  2602. + dynamic_linker="$host_os dld.sl"
  2603. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2604. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2605. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2606. + soname_spec='${libname}${release}${shared_ext}$major'
  2607. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2608. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2609. + ;;
  2610. + *)
  2611. shrext_cmds='.sl'
  2612. dynamic_linker="$host_os dld.sl"
  2613. shlibpath_var=SHLIB_PATH
  2614. @@ -1376,13 +2405,25 @@
  2615. postinstall_cmds='chmod 555 $lib'
  2616. ;;
  2617. -irix5* | irix6* | nonstopux*)
  2618. - case $host_os in
  2619. - nonstopux*) version_type=nonstopux ;;
  2620. - *)
  2621. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2622. - version_type=linux
  2623. - else
  2624. +interix[[3-9]]*)
  2625. + version_type=linux
  2626. + need_lib_prefix=no
  2627. + need_version=no
  2628. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2629. + soname_spec='${libname}${release}${shared_ext}$major'
  2630. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2631. + shlibpath_var=LD_LIBRARY_PATH
  2632. + shlibpath_overrides_runpath=no
  2633. + hardcode_into_libs=yes
  2634. + ;;
  2635. +
  2636. +irix5* | irix6* | nonstopux*)
  2637. + case $host_os in
  2638. + nonstopux*) version_type=nonstopux ;;
  2639. + *)
  2640. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2641. + version_type=linux
  2642. + else
  2643. version_type=irix
  2644. fi ;;
  2645. esac
  2646. @@ -1419,7 +2460,7 @@
  2647. ;;
  2648. # This must be Linux ELF.
  2649. -linux*)
  2650. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2651. version_type=linux
  2652. need_lib_prefix=no
  2653. need_version=no
  2654. @@ -1428,6 +2469,17 @@
  2655. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2656. shlibpath_var=LD_LIBRARY_PATH
  2657. shlibpath_overrides_runpath=no
  2658. + # Some binutils ld are patched to set DT_RUNPATH
  2659. + save_LDFLAGS=$LDFLAGS
  2660. + save_libdir=$libdir
  2661. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2662. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2663. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2664. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2665. + [shlibpath_overrides_runpath=yes])])
  2666. + LDFLAGS=$save_LDFLAGS
  2667. + libdir=$save_libdir
  2668. +
  2669. # This implies no fast_install, which is unacceptable.
  2670. # Some rework will be needed to allow for fast_install
  2671. # before this can be enabled.
  2672. @@ -1435,7 +2487,7 @@
  2673. # Append ld.so.conf contents to the search path
  2674. if test -f /etc/ld.so.conf; then
  2675. - lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  2676. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2677. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2678. fi
  2679. @@ -1460,23 +2512,11 @@
  2680. dynamic_linker='NetBSD ld.elf_so'
  2681. ;;
  2682. -knetbsd*-gnu)
  2683. - version_type=linux
  2684. - need_lib_prefix=no
  2685. - need_version=no
  2686. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2687. - soname_spec='${libname}${release}${shared_ext}$major'
  2688. - shlibpath_var=LD_LIBRARY_PATH
  2689. - shlibpath_overrides_runpath=no
  2690. - hardcode_into_libs=yes
  2691. - dynamic_linker='GNU ld.so'
  2692. - ;;
  2693. -
  2694. netbsd*)
  2695. version_type=sunos
  2696. need_lib_prefix=no
  2697. need_version=no
  2698. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2699. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2700. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2701. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2702. dynamic_linker='NetBSD (a.out) ld.so'
  2703. @@ -1497,24 +2537,31 @@
  2704. shlibpath_overrides_runpath=yes
  2705. ;;
  2706. -nto-qnx*)
  2707. - version_type=linux
  2708. +*nto* | *qnx*)
  2709. + version_type=qnx
  2710. need_lib_prefix=no
  2711. need_version=no
  2712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2713. soname_spec='${libname}${release}${shared_ext}$major'
  2714. shlibpath_var=LD_LIBRARY_PATH
  2715. - shlibpath_overrides_runpath=yes
  2716. + shlibpath_overrides_runpath=no
  2717. + hardcode_into_libs=yes
  2718. + dynamic_linker='ldqnx.so'
  2719. ;;
  2720. openbsd*)
  2721. version_type=sunos
  2722. + sys_lib_dlsearch_path_spec="/usr/lib"
  2723. need_lib_prefix=no
  2724. - need_version=yes
  2725. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2726. + case $host_os in
  2727. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2728. + *) need_version=no ;;
  2729. + esac
  2730. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2731. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2732. shlibpath_var=LD_LIBRARY_PATH
  2733. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2734. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2735. case $host_os in
  2736. openbsd2.[[89]] | openbsd2.[[89]].*)
  2737. shlibpath_overrides_runpath=no
  2738. @@ -1548,11 +2595,8 @@
  2739. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2740. ;;
  2741. -sco3.2v5*)
  2742. - version_type=osf
  2743. - soname_spec='${libname}${release}${shared_ext}$major'
  2744. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2745. - shlibpath_var=LD_LIBRARY_PATH
  2746. +rdos*)
  2747. + dynamic_linker=no
  2748. ;;
  2749. solaris*)
  2750. @@ -1580,7 +2624,7 @@
  2751. need_version=yes
  2752. ;;
  2753. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2754. +sysv4 | sysv4.3*)
  2755. version_type=linux
  2756. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2757. soname_spec='${libname}${release}${shared_ext}$major'
  2758. @@ -1589,7 +2633,6 @@
  2759. sni)
  2760. shlibpath_overrides_runpath=no
  2761. need_lib_prefix=no
  2762. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2763. runpath_var=LD_RUN_PATH
  2764. ;;
  2765. siemens)
  2766. @@ -1613,6 +2656,39 @@
  2767. fi
  2768. ;;
  2769. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2770. + version_type=freebsd-elf
  2771. + need_lib_prefix=no
  2772. + need_version=no
  2773. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2774. + soname_spec='${libname}${release}${shared_ext}$major'
  2775. + shlibpath_var=LD_LIBRARY_PATH
  2776. + shlibpath_overrides_runpath=yes
  2777. + hardcode_into_libs=yes
  2778. + if test "$with_gnu_ld" = yes; then
  2779. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2780. + else
  2781. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2782. + case $host_os in
  2783. + sco3.2v5*)
  2784. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2785. + ;;
  2786. + esac
  2787. + fi
  2788. + sys_lib_dlsearch_path_spec='/usr/lib'
  2789. + ;;
  2790. +
  2791. +tpf*)
  2792. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2793. + version_type=linux
  2794. + need_lib_prefix=no
  2795. + need_version=no
  2796. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2797. + shlibpath_var=LD_LIBRARY_PATH
  2798. + shlibpath_overrides_runpath=no
  2799. + hardcode_into_libs=yes
  2800. + ;;
  2801. +
  2802. uts4*)
  2803. version_type=linux
  2804. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2805. @@ -1626,271 +2702,59 @@
  2806. esac
  2807. AC_MSG_RESULT([$dynamic_linker])
  2808. test "$dynamic_linker" = no && can_build_shared=no
  2809. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2810. -
  2811. -
  2812. -# _LT_AC_TAGCONFIG
  2813. -# ----------------
  2814. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2815. -[AC_ARG_WITH([tags],
  2816. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2817. - [include additional configurations @<:@automatic@:>@])],
  2818. - [tagnames="$withval"])
  2819. -
  2820. -if test -f "$ltmain" && test -n "$tagnames"; then
  2821. - if test ! -f "${ofile}"; then
  2822. - AC_MSG_WARN([output file `$ofile' does not exist])
  2823. - fi
  2824. -
  2825. - if test -z "$LTCC"; then
  2826. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2827. - if test -z "$LTCC"; then
  2828. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2829. - else
  2830. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2831. - fi
  2832. - fi
  2833. -
  2834. - # Extract list of available tagged configurations in $ofile.
  2835. - # Note that this assumes the entire list is on one line.
  2836. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2837. -
  2838. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2839. - for tagname in $tagnames; do
  2840. - IFS="$lt_save_ifs"
  2841. - # Check whether tagname contains only valid characters
  2842. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2843. - "") ;;
  2844. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2845. - ;;
  2846. - esac
  2847. -
  2848. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2849. - then
  2850. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2851. - fi
  2852. -
  2853. - # Update the list of available tags.
  2854. - if test -n "$tagname"; then
  2855. - echo appending configuration tag \"$tagname\" to $ofile
  2856. -
  2857. - case $tagname in
  2858. - CXX)
  2859. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  2860. - AC_LIBTOOL_LANG_CXX_CONFIG
  2861. - else
  2862. - tagname=""
  2863. - fi
  2864. - ;;
  2865. -
  2866. - F77)
  2867. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2868. - AC_LIBTOOL_LANG_F77_CONFIG
  2869. - else
  2870. - tagname=""
  2871. - fi
  2872. - ;;
  2873. -
  2874. - GCJ)
  2875. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2876. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2877. - else
  2878. - tagname=""
  2879. - fi
  2880. - ;;
  2881. -
  2882. - RC)
  2883. - AC_LIBTOOL_LANG_RC_CONFIG
  2884. - ;;
  2885. -
  2886. - *)
  2887. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2888. - ;;
  2889. - esac
  2890. -
  2891. - # Append the new tag name to the list of available tags.
  2892. - if test -n "$tagname" ; then
  2893. - available_tags="$available_tags $tagname"
  2894. - fi
  2895. - fi
  2896. - done
  2897. - IFS="$lt_save_ifs"
  2898. - # Now substitute the updated list of available tags.
  2899. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2900. - mv "${ofile}T" "$ofile"
  2901. - chmod +x "$ofile"
  2902. - else
  2903. - rm -f "${ofile}T"
  2904. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2905. - fi
  2906. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2907. +if test "$GCC" = yes; then
  2908. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2909. fi
  2910. -])# _LT_AC_TAGCONFIG
  2911. -
  2912. -
  2913. -# AC_LIBTOOL_DLOPEN
  2914. -# -----------------
  2915. -# enable checks for dlopen support
  2916. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2917. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2918. -])# AC_LIBTOOL_DLOPEN
  2919. -
  2920. -
  2921. -# AC_LIBTOOL_WIN32_DLL
  2922. -# --------------------
  2923. -# declare package support for building win32 dll's
  2924. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2925. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2926. -])# AC_LIBTOOL_WIN32_DLL
  2927. -
  2928. -
  2929. -# AC_ENABLE_SHARED([DEFAULT])
  2930. -# ---------------------------
  2931. -# implement the --enable-shared flag
  2932. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2933. -AC_DEFUN([AC_ENABLE_SHARED],
  2934. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2935. -AC_ARG_ENABLE([shared],
  2936. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2937. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2938. - [p=${PACKAGE-default}
  2939. - case $enableval in
  2940. - yes) enable_shared=yes ;;
  2941. - no) enable_shared=no ;;
  2942. - *)
  2943. - enable_shared=no
  2944. - # Look at the argument we got. We use all the common list separators.
  2945. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2946. - for pkg in $enableval; do
  2947. - IFS="$lt_save_ifs"
  2948. - if test "X$pkg" = "X$p"; then
  2949. - enable_shared=yes
  2950. - fi
  2951. - done
  2952. - IFS="$lt_save_ifs"
  2953. - ;;
  2954. - esac],
  2955. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2956. -])# AC_ENABLE_SHARED
  2957. -
  2958. -
  2959. -# AC_DISABLE_SHARED
  2960. -# -----------------
  2961. -#- set the default shared flag to --disable-shared
  2962. -AC_DEFUN([AC_DISABLE_SHARED],
  2963. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2964. -AC_ENABLE_SHARED(no)
  2965. -])# AC_DISABLE_SHARED
  2966. -
  2967. -
  2968. -# AC_ENABLE_STATIC([DEFAULT])
  2969. -# ---------------------------
  2970. -# implement the --enable-static flag
  2971. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2972. -AC_DEFUN([AC_ENABLE_STATIC],
  2973. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2974. -AC_ARG_ENABLE([static],
  2975. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2976. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2977. - [p=${PACKAGE-default}
  2978. - case $enableval in
  2979. - yes) enable_static=yes ;;
  2980. - no) enable_static=no ;;
  2981. - *)
  2982. - enable_static=no
  2983. - # Look at the argument we got. We use all the common list separators.
  2984. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2985. - for pkg in $enableval; do
  2986. - IFS="$lt_save_ifs"
  2987. - if test "X$pkg" = "X$p"; then
  2988. - enable_static=yes
  2989. - fi
  2990. - done
  2991. - IFS="$lt_save_ifs"
  2992. - ;;
  2993. - esac],
  2994. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2995. -])# AC_ENABLE_STATIC
  2996. -
  2997. -
  2998. -# AC_DISABLE_STATIC
  2999. -# -----------------
  3000. -# set the default static flag to --disable-static
  3001. -AC_DEFUN([AC_DISABLE_STATIC],
  3002. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3003. -AC_ENABLE_STATIC(no)
  3004. -])# AC_DISABLE_STATIC
  3005. -
  3006. -
  3007. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3008. -# ---------------------------------
  3009. -# implement the --enable-fast-install flag
  3010. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3011. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3012. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3013. -AC_ARG_ENABLE([fast-install],
  3014. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3015. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3016. - [p=${PACKAGE-default}
  3017. - case $enableval in
  3018. - yes) enable_fast_install=yes ;;
  3019. - no) enable_fast_install=no ;;
  3020. - *)
  3021. - enable_fast_install=no
  3022. - # Look at the argument we got. We use all the common list separators.
  3023. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3024. - for pkg in $enableval; do
  3025. - IFS="$lt_save_ifs"
  3026. - if test "X$pkg" = "X$p"; then
  3027. - enable_fast_install=yes
  3028. - fi
  3029. - done
  3030. - IFS="$lt_save_ifs"
  3031. - ;;
  3032. - esac],
  3033. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3034. -])# AC_ENABLE_FAST_INSTALL
  3035. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  3036. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  3037. +fi
  3038. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  3039. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  3040. +fi
  3041. -# AC_DISABLE_FAST_INSTALL
  3042. -# -----------------------
  3043. -# set the default to --disable-fast-install
  3044. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3045. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3046. -AC_ENABLE_FAST_INSTALL(no)
  3047. -])# AC_DISABLE_FAST_INSTALL
  3048. +_LT_DECL([], [variables_saved_for_relink], [1],
  3049. + [Variables whose values should be saved in libtool wrapper scripts and
  3050. + restored at link time])
  3051. +_LT_DECL([], [need_lib_prefix], [0],
  3052. + [Do we need the "lib" prefix for modules?])
  3053. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  3054. +_LT_DECL([], [version_type], [0], [Library versioning type])
  3055. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  3056. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  3057. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  3058. + [Is shlibpath searched before the hard-coded library search path?])
  3059. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  3060. +_LT_DECL([], [library_names_spec], [1],
  3061. + [[List of archive names. First name is the real one, the rest are links.
  3062. + The last name is the one that the linker finds with -lNAME]])
  3063. +_LT_DECL([], [soname_spec], [1],
  3064. + [[The coded name of the library, if different from the real name]])
  3065. +_LT_DECL([], [postinstall_cmds], [2],
  3066. + [Command to use after installation of a shared archive])
  3067. +_LT_DECL([], [postuninstall_cmds], [2],
  3068. + [Command to use after uninstallation of a shared archive])
  3069. +_LT_DECL([], [finish_cmds], [2],
  3070. + [Commands used to finish a libtool library installation in a directory])
  3071. +_LT_DECL([], [finish_eval], [1],
  3072. + [[As "finish_cmds", except a single script fragment to be evaled but
  3073. + not shown]])
  3074. +_LT_DECL([], [hardcode_into_libs], [0],
  3075. + [Whether we should hardcode library paths into libraries])
  3076. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  3077. + [Compile-time system search path for libraries])
  3078. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  3079. + [Run-time system search path for libraries])
  3080. +])# _LT_SYS_DYNAMIC_LINKER
  3081. -# AC_LIBTOOL_PICMODE([MODE])
  3082. +# _LT_PATH_TOOL_PREFIX(TOOL)
  3083. # --------------------------
  3084. -# implement the --with-pic flag
  3085. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3086. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3087. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3088. -pic_mode=ifelse($#,1,$1,default)
  3089. -])# AC_LIBTOOL_PICMODE
  3090. -
  3091. -
  3092. -# AC_PROG_EGREP
  3093. -# -------------
  3094. -# This is predefined starting with Autoconf 2.54, so this conditional
  3095. -# definition can be removed once we require Autoconf 2.54 or later.
  3096. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3097. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3098. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3099. - then ac_cv_prog_egrep='grep -E'
  3100. - else ac_cv_prog_egrep='egrep'
  3101. - fi])
  3102. - EGREP=$ac_cv_prog_egrep
  3103. - AC_SUBST([EGREP])
  3104. -])])
  3105. -
  3106. -
  3107. -# AC_PATH_TOOL_PREFIX
  3108. -# -------------------
  3109. -# find a file program which can recognise shared library
  3110. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3111. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3112. +# find a file program which can recognize shared library
  3113. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  3114. +[m4_require([_LT_DECL_EGREP])dnl
  3115. AC_MSG_CHECKING([for $1])
  3116. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3117. [case $MAGIC_CMD in
  3118. @@ -1903,7 +2767,7 @@
  3119. dnl $ac_dummy forces splitting on constant user-supplied paths.
  3120. dnl POSIX.2 word splitting is done only on the output of word expansions,
  3121. dnl not every word. This closes a longstanding sh security hole.
  3122. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3123. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  3124. for ac_dir in $ac_dummy; do
  3125. IFS="$lt_save_ifs"
  3126. test -z "$ac_dir" && ac_dir=.
  3127. @@ -1912,13 +2776,13 @@
  3128. if test -n "$file_magic_test_file"; then
  3129. case $deplibs_check_method in
  3130. "file_magic "*)
  3131. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3132. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  3133. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3134. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3135. $EGREP "$file_magic_regex" > /dev/null; then
  3136. :
  3137. else
  3138. - cat <<EOF 1>&2
  3139. + cat <<_LT_EOF 1>&2
  3140. *** Warning: the command libtool uses to detect shared libraries,
  3141. *** $file_magic_cmd, produces output that libtool cannot recognize.
  3142. @@ -1929,7 +2793,7 @@
  3143. *** may want to report the problem to your system manager and/or to
  3144. *** bug-libtool@gnu.org
  3145. -EOF
  3146. +_LT_EOF
  3147. fi ;;
  3148. esac
  3149. fi
  3150. @@ -1946,37 +2810,47 @@
  3151. else
  3152. AC_MSG_RESULT(no)
  3153. fi
  3154. -])# AC_PATH_TOOL_PREFIX
  3155. +_LT_DECL([], [MAGIC_CMD], [0],
  3156. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  3157. +])# _LT_PATH_TOOL_PREFIX
  3158. +# Old name:
  3159. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  3160. +dnl aclocal-1.4 backwards compatibility:
  3161. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  3162. -# AC_PATH_MAGIC
  3163. -# -------------
  3164. -# find a file program which can recognise a shared library
  3165. -AC_DEFUN([AC_PATH_MAGIC],
  3166. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3167. +
  3168. +# _LT_PATH_MAGIC
  3169. +# --------------
  3170. +# find a file program which can recognize a shared library
  3171. +m4_defun([_LT_PATH_MAGIC],
  3172. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3173. if test -z "$lt_cv_path_MAGIC_CMD"; then
  3174. if test -n "$ac_tool_prefix"; then
  3175. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3176. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3177. else
  3178. MAGIC_CMD=:
  3179. fi
  3180. fi
  3181. -])# AC_PATH_MAGIC
  3182. +])# _LT_PATH_MAGIC
  3183. -# AC_PROG_LD
  3184. +# LT_PATH_LD
  3185. # ----------
  3186. # find the pathname to the GNU or non-GNU linker
  3187. -AC_DEFUN([AC_PROG_LD],
  3188. -[AC_ARG_WITH([gnu-ld],
  3189. - [AC_HELP_STRING([--with-gnu-ld],
  3190. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3191. - [test "$withval" = no || with_gnu_ld=yes],
  3192. - [with_gnu_ld=no])
  3193. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3194. -AC_REQUIRE([AC_PROG_CC])dnl
  3195. +AC_DEFUN([LT_PATH_LD],
  3196. +[AC_REQUIRE([AC_PROG_CC])dnl
  3197. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3198. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3199. +m4_require([_LT_DECL_SED])dnl
  3200. +m4_require([_LT_DECL_EGREP])dnl
  3201. +
  3202. +AC_ARG_WITH([gnu-ld],
  3203. + [AS_HELP_STRING([--with-gnu-ld],
  3204. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3205. + [test "$withval" = no || with_gnu_ld=yes],
  3206. + [with_gnu_ld=no])dnl
  3207. +
  3208. ac_prog=ld
  3209. if test "$GCC" = yes; then
  3210. # Check if gcc -print-prog-name=ld gives a path.
  3211. @@ -1993,9 +2867,9 @@
  3212. [[\\/]]* | ?:[[\\/]]*)
  3213. re_direlt='/[[^/]][[^/]]*/\.\./'
  3214. # Canonicalize the pathname of ld
  3215. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3216. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3217. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3218. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3219. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3220. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3221. done
  3222. test -z "$LD" && LD="$ac_prog"
  3223. ;;
  3224. @@ -2022,7 +2896,7 @@
  3225. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3226. lt_cv_path_LD="$ac_dir/$ac_prog"
  3227. # Check to see if the program is GNU ld. I'd rather use --version,
  3228. - # but apparently some GNU ld's only accept -v.
  3229. + # but apparently some variants of GNU ld only accept -v.
  3230. # Break only if it was the GNU/non-GNU ld that we prefer.
  3231. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3232. *GNU* | *'with BFD'*)
  3233. @@ -2045,16 +2919,25 @@
  3234. AC_MSG_RESULT(no)
  3235. fi
  3236. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3237. -AC_PROG_LD_GNU
  3238. -])# AC_PROG_LD
  3239. +_LT_PATH_LD_GNU
  3240. +AC_SUBST([LD])
  3241. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3242. +])# LT_PATH_LD
  3243. -# AC_PROG_LD_GNU
  3244. -# --------------
  3245. -AC_DEFUN([AC_PROG_LD_GNU],
  3246. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3247. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3248. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3249. +# Old names:
  3250. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3251. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3252. +dnl aclocal-1.4 backwards compatibility:
  3253. +dnl AC_DEFUN([AM_PROG_LD], [])
  3254. +dnl AC_DEFUN([AC_PROG_LD], [])
  3255. +
  3256. +
  3257. +# _LT_PATH_LD_GNU
  3258. +#- --------------
  3259. +m4_defun([_LT_PATH_LD_GNU],
  3260. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3261. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3262. case `$LD -v 2>&1 </dev/null` in
  3263. *GNU* | *'with BFD'*)
  3264. lt_cv_prog_gnu_ld=yes
  3265. @@ -2064,14 +2947,14 @@
  3266. ;;
  3267. esac])
  3268. with_gnu_ld=$lt_cv_prog_gnu_ld
  3269. -])# AC_PROG_LD_GNU
  3270. +])# _LT_PATH_LD_GNU
  3271. -# AC_PROG_LD_RELOAD_FLAG
  3272. -# ----------------------
  3273. +# _LT_CMD_RELOAD
  3274. +# --------------
  3275. # find reload flag for linker
  3276. # -- PORTME Some linkers may need a different reload flag.
  3277. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3278. +m4_defun([_LT_CMD_RELOAD],
  3279. [AC_CACHE_CHECK([for $LD option to reload object files],
  3280. lt_cv_ld_reload_flag,
  3281. [lt_cv_ld_reload_flag='-r'])
  3282. @@ -2081,15 +2964,28 @@
  3283. *) reload_flag=" $reload_flag" ;;
  3284. esac
  3285. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3286. -])# AC_PROG_LD_RELOAD_FLAG
  3287. +case $host_os in
  3288. + darwin*)
  3289. + if test "$GCC" = yes; then
  3290. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  3291. + else
  3292. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3293. + fi
  3294. + ;;
  3295. +esac
  3296. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3297. +_LT_DECL([], [reload_cmds], [2])dnl
  3298. +])# _LT_CMD_RELOAD
  3299. -# AC_DEPLIBS_CHECK_METHOD
  3300. -# -----------------------
  3301. +# _LT_CHECK_MAGIC_METHOD
  3302. +# ----------------------
  3303. # how to check for library dependencies
  3304. # -- PORTME fill in with the dynamic library characteristics
  3305. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3306. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3307. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3308. +[m4_require([_LT_DECL_EGREP])
  3309. +m4_require([_LT_DECL_OBJDUMP])
  3310. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3311. lt_cv_deplibs_check_method,
  3312. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3313. lt_cv_file_magic_test_file=
  3314. @@ -2106,7 +3002,7 @@
  3315. # whether `pass_all' will *always* work, you probably want this one.
  3316. case $host_os in
  3317. -aix4* | aix5*)
  3318. +aix[[4-9]]*)
  3319. lt_cv_deplibs_check_method=pass_all
  3320. ;;
  3321. @@ -2114,7 +3010,7 @@
  3322. lt_cv_deplibs_check_method=pass_all
  3323. ;;
  3324. -bsdi4*)
  3325. +bsdi[[45]]*)
  3326. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3327. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3328. lt_cv_file_magic_test_file=/shlib/libc.so
  3329. @@ -2128,8 +3024,20 @@
  3330. mingw* | pw32*)
  3331. # Base MSYS/MinGW do not provide the 'file' command needed by
  3332. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3333. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3334. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3335. + # unless we find 'file', for example because we are cross-compiling.
  3336. + if ( file / ) >/dev/null 2>&1; then
  3337. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3338. + lt_cv_file_magic_cmd='func_win32_libid'
  3339. + else
  3340. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3341. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3342. + fi
  3343. + ;;
  3344. +
  3345. +cegcc)
  3346. + # use the weaker test based on 'objdump'. See mingw*.
  3347. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3348. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3349. ;;
  3350. @@ -2137,13 +3045,13 @@
  3351. lt_cv_deplibs_check_method=pass_all
  3352. ;;
  3353. -freebsd* | kfreebsd*-gnu)
  3354. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3355. +freebsd* | dragonfly*)
  3356. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3357. case $host_cpu in
  3358. i*86 )
  3359. # Not sure whether the presence of OpenBSD here was a mistake.
  3360. # Let's accept both of them until this is cleared up.
  3361. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3362. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3363. lt_cv_file_magic_cmd=/usr/bin/file
  3364. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3365. ;;
  3366. @@ -2159,7 +3067,7 @@
  3367. hpux10.20* | hpux11*)
  3368. lt_cv_file_magic_cmd=/usr/bin/file
  3369. - case "$host_cpu" in
  3370. + case $host_cpu in
  3371. ia64*)
  3372. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3373. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3374. @@ -2175,6 +3083,11 @@
  3375. esac
  3376. ;;
  3377. +interix[[3-9]]*)
  3378. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3379. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3380. + ;;
  3381. +
  3382. irix5* | irix6* | nonstopux*)
  3383. case $LD in
  3384. *-32|*"-32 ") libmagic=32-bit;;
  3385. @@ -2186,12 +3099,12 @@
  3386. ;;
  3387. # This must be Linux ELF.
  3388. -linux*)
  3389. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3390. lt_cv_deplibs_check_method=pass_all
  3391. ;;
  3392. -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3393. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3394. +netbsd* | netbsdelf*-gnu)
  3395. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3396. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3397. else
  3398. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3399. @@ -2204,17 +3117,15 @@
  3400. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3401. ;;
  3402. -nto-qnx*)
  3403. - lt_cv_deplibs_check_method=unknown
  3404. +*nto* | *qnx*)
  3405. + lt_cv_deplibs_check_method=pass_all
  3406. ;;
  3407. openbsd*)
  3408. - lt_cv_file_magic_cmd=/usr/bin/file
  3409. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3410. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3411. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3412. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3413. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3414. else
  3415. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3416. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3417. fi
  3418. ;;
  3419. @@ -2222,7 +3133,7 @@
  3420. lt_cv_deplibs_check_method=pass_all
  3421. ;;
  3422. -sco3.2v5*)
  3423. +rdos*)
  3424. lt_cv_deplibs_check_method=pass_all
  3425. ;;
  3426. @@ -2230,7 +3141,11 @@
  3427. lt_cv_deplibs_check_method=pass_all
  3428. ;;
  3429. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3430. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3431. + lt_cv_deplibs_check_method=pass_all
  3432. + ;;
  3433. +
  3434. +sysv4 | sysv4.3*)
  3435. case $host_vendor in
  3436. motorola)
  3437. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
  3438. @@ -2251,10 +3166,13 @@
  3439. siemens)
  3440. lt_cv_deplibs_check_method=pass_all
  3441. ;;
  3442. + pc)
  3443. + lt_cv_deplibs_check_method=pass_all
  3444. + ;;
  3445. esac
  3446. ;;
  3447. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  3448. +tpf*)
  3449. lt_cv_deplibs_check_method=pass_all
  3450. ;;
  3451. esac
  3452. @@ -2262,58 +3180,106 @@
  3453. file_magic_cmd=$lt_cv_file_magic_cmd
  3454. deplibs_check_method=$lt_cv_deplibs_check_method
  3455. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3456. -])# AC_DEPLIBS_CHECK_METHOD
  3457. +_LT_DECL([], [deplibs_check_method], [1],
  3458. + [Method to check whether dependent libraries are shared objects])
  3459. +_LT_DECL([], [file_magic_cmd], [1],
  3460. + [Command to use when deplibs_check_method == "file_magic"])
  3461. +])# _LT_CHECK_MAGIC_METHOD
  3462. -# AC_PROG_NM
  3463. +
  3464. +# LT_PATH_NM
  3465. # ----------
  3466. -# find the pathname to a BSD-compatible name lister
  3467. -AC_DEFUN([AC_PROG_NM],
  3468. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3469. +# find the pathname to a BSD- or MS-compatible name lister
  3470. +AC_DEFUN([LT_PATH_NM],
  3471. +[AC_REQUIRE([AC_PROG_CC])dnl
  3472. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3473. [if test -n "$NM"; then
  3474. # Let the user override the test.
  3475. lt_cv_path_NM="$NM"
  3476. else
  3477. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3478. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3479. - IFS="$lt_save_ifs"
  3480. - test -z "$ac_dir" && ac_dir=.
  3481. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3482. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3483. - # Check to see if the nm accepts a BSD-compat flag.
  3484. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3485. - # nm: unknown option "B" ignored
  3486. - # Tru64's nm complains that /dev/null is an invalid object file
  3487. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3488. - */dev/null* | *'Invalid file or object type'*)
  3489. - lt_cv_path_NM="$tmp_nm -B"
  3490. - break
  3491. - ;;
  3492. - *)
  3493. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3494. - */dev/null*)
  3495. - lt_cv_path_NM="$tmp_nm -p"
  3496. + lt_nm_to_check="${ac_tool_prefix}nm"
  3497. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3498. + lt_nm_to_check="$lt_nm_to_check nm"
  3499. + fi
  3500. + for lt_tmp_nm in $lt_nm_to_check; do
  3501. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3502. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3503. + IFS="$lt_save_ifs"
  3504. + test -z "$ac_dir" && ac_dir=.
  3505. + tmp_nm="$ac_dir/$lt_tmp_nm"
  3506. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3507. + # Check to see if the nm accepts a BSD-compat flag.
  3508. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3509. + # nm: unknown option "B" ignored
  3510. + # Tru64's nm complains that /dev/null is an invalid object file
  3511. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3512. + */dev/null* | *'Invalid file or object type'*)
  3513. + lt_cv_path_NM="$tmp_nm -B"
  3514. break
  3515. ;;
  3516. *)
  3517. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3518. - continue # so that we can try to find one that supports BSD flags
  3519. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3520. + */dev/null*)
  3521. + lt_cv_path_NM="$tmp_nm -p"
  3522. + break
  3523. + ;;
  3524. + *)
  3525. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3526. + continue # so that we can try to find one that supports BSD flags
  3527. + ;;
  3528. + esac
  3529. ;;
  3530. esac
  3531. - esac
  3532. - fi
  3533. + fi
  3534. + done
  3535. + IFS="$lt_save_ifs"
  3536. done
  3537. - IFS="$lt_save_ifs"
  3538. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3539. + : ${lt_cv_path_NM=no}
  3540. fi])
  3541. -NM="$lt_cv_path_NM"
  3542. -])# AC_PROG_NM
  3543. +if test "$lt_cv_path_NM" != "no"; then
  3544. + NM="$lt_cv_path_NM"
  3545. +else
  3546. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3547. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3548. + AC_SUBST([DUMPBIN])
  3549. + if test "$DUMPBIN" != ":"; then
  3550. + NM="$DUMPBIN"
  3551. + fi
  3552. +fi
  3553. +test -z "$NM" && NM=nm
  3554. +AC_SUBST([NM])
  3555. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3556. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3557. + [lt_cv_nm_interface="BSD nm"
  3558. + echo "int some_variable = 0;" > conftest.$ac_ext
  3559. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3560. + (eval "$ac_compile" 2>conftest.err)
  3561. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3562. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3563. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3564. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3565. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3566. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3567. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3568. + lt_cv_nm_interface="MS dumpbin"
  3569. + fi
  3570. + rm -f conftest*])
  3571. +])# LT_PATH_NM
  3572. +
  3573. +# Old names:
  3574. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3575. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3576. +dnl aclocal-1.4 backwards compatibility:
  3577. +dnl AC_DEFUN([AM_PROG_NM], [])
  3578. +dnl AC_DEFUN([AC_PROG_NM], [])
  3579. -# AC_CHECK_LIBM
  3580. -# -------------
  3581. +
  3582. +# LT_LIB_M
  3583. +# --------
  3584. # check for math library
  3585. -AC_DEFUN([AC_CHECK_LIBM],
  3586. +AC_DEFUN([LT_LIB_M],
  3587. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3588. LIBM=
  3589. case $host in
  3590. @@ -2328,3606 +3294,4698 @@
  3591. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3592. ;;
  3593. esac
  3594. -])# AC_CHECK_LIBM
  3595. -
  3596. -
  3597. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3598. -# -----------------------------------
  3599. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3600. -# LTDLINCL to the include flags for the libltdl header and adds
  3601. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  3602. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3603. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  3604. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  3605. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3606. -# flat and you're not using automake, define top_builddir and
  3607. -# top_srcdir appropriately in the Makefiles.
  3608. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3609. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3610. - case $enable_ltdl_convenience in
  3611. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3612. - "") enable_ltdl_convenience=yes
  3613. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3614. - esac
  3615. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3616. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3617. - # For backwards non-gettext consistent compatibility...
  3618. - INCLTDL="$LTDLINCL"
  3619. -])# AC_LIBLTDL_CONVENIENCE
  3620. -
  3621. -
  3622. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3623. -# -----------------------------------
  3624. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3625. -# LTDLINCL to the include flags for the libltdl header and adds
  3626. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  3627. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3628. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  3629. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  3630. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  3631. -# quotes!). If your package is not flat and you're not using automake,
  3632. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  3633. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3634. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3635. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3636. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3637. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3638. - [if test x"$enable_ltdl_install" = xno; then
  3639. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3640. - else
  3641. - enable_ltdl_install=yes
  3642. - fi
  3643. - ])
  3644. - if test x"$enable_ltdl_install" = x"yes"; then
  3645. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3646. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3647. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3648. - else
  3649. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3650. - LIBLTDL="-lltdl"
  3651. - LTDLINCL=
  3652. - fi
  3653. - # For backwards non-gettext consistent compatibility...
  3654. - INCLTDL="$LTDLINCL"
  3655. -])# AC_LIBLTDL_INSTALLABLE
  3656. -
  3657. -
  3658. -# AC_LIBTOOL_CXX
  3659. -# --------------
  3660. -# enable support for C++ libraries
  3661. -AC_DEFUN([AC_LIBTOOL_CXX],
  3662. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3663. -])# AC_LIBTOOL_CXX
  3664. -
  3665. -
  3666. -# _LT_AC_LANG_CXX
  3667. -# ---------------
  3668. -AC_DEFUN([_LT_AC_LANG_CXX],
  3669. -[AC_REQUIRE([AC_PROG_CXX])
  3670. -AC_REQUIRE([AC_PROG_CXXCPP])
  3671. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3672. -])# _LT_AC_LANG_CXX
  3673. -
  3674. -
  3675. -# AC_LIBTOOL_F77
  3676. -# --------------
  3677. -# enable support for Fortran 77 libraries
  3678. -AC_DEFUN([AC_LIBTOOL_F77],
  3679. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3680. -])# AC_LIBTOOL_F77
  3681. -
  3682. -
  3683. -# _LT_AC_LANG_F77
  3684. -# ---------------
  3685. -AC_DEFUN([_LT_AC_LANG_F77],
  3686. -[AC_REQUIRE([AC_PROG_F77])
  3687. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3688. -])# _LT_AC_LANG_F77
  3689. +AC_SUBST([LIBM])
  3690. +])# LT_LIB_M
  3691. -
  3692. -# AC_LIBTOOL_GCJ
  3693. -# --------------
  3694. -# enable support for GCJ libraries
  3695. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3696. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3697. -])# AC_LIBTOOL_GCJ
  3698. -
  3699. -
  3700. -# _LT_AC_LANG_GCJ
  3701. -# ---------------
  3702. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3703. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3704. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3705. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3706. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3707. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3708. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3709. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3710. -])# _LT_AC_LANG_GCJ
  3711. -
  3712. -
  3713. -# AC_LIBTOOL_RC
  3714. -# --------------
  3715. -# enable support for Windows resource files
  3716. -AC_DEFUN([AC_LIBTOOL_RC],
  3717. -[AC_REQUIRE([LT_AC_PROG_RC])
  3718. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3719. -])# AC_LIBTOOL_RC
  3720. +# Old name:
  3721. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3722. +dnl aclocal-1.4 backwards compatibility:
  3723. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3724. -# AC_LIBTOOL_LANG_C_CONFIG
  3725. -# ------------------------
  3726. -# Ensure that the configuration vars for the C compiler are
  3727. -# suitably defined. Those variables are subsequently used by
  3728. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3729. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3730. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3731. -[lt_save_CC="$CC"
  3732. -AC_LANG_PUSH(C)
  3733. -
  3734. -# Source file extension for C test sources.
  3735. -ac_ext=c
  3736. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  3737. +# -------------------------------
  3738. +m4_defun([_LT_COMPILER_NO_RTTI],
  3739. +[m4_require([_LT_TAG_COMPILER])dnl
  3740. -# Object file extension for compiled C test sources.
  3741. -objext=o
  3742. -_LT_AC_TAGVAR(objext, $1)=$objext
  3743. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3744. -# Code to be used in simple compile tests
  3745. -lt_simple_compile_test_code="int some_variable = 0;\n"
  3746. +if test "$GCC" = yes; then
  3747. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3748. -# Code to be used in simple link tests
  3749. -lt_simple_link_test_code='int main(){return(0);}\n'
  3750. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3751. + lt_cv_prog_compiler_rtti_exceptions,
  3752. + [-fno-rtti -fno-exceptions], [],
  3753. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3754. +fi
  3755. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3756. + [Compiler flag to turn off builtin functions])
  3757. +])# _LT_COMPILER_NO_RTTI
  3758. -_LT_AC_SYS_COMPILER
  3759. -#
  3760. -# Check for any special shared library compilation flags.
  3761. -#
  3762. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  3763. -if test "$GCC" = no; then
  3764. - case $host_os in
  3765. - sco3.2v5*)
  3766. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  3767. - ;;
  3768. - esac
  3769. -fi
  3770. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  3771. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  3772. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  3773. - else
  3774. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  3775. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  3776. - fi
  3777. -fi
  3778. +# _LT_CMD_GLOBAL_SYMBOLS
  3779. +# ----------------------
  3780. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3781. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3782. +AC_REQUIRE([AC_PROG_CC])dnl
  3783. +AC_REQUIRE([LT_PATH_NM])dnl
  3784. +AC_REQUIRE([LT_PATH_LD])dnl
  3785. +m4_require([_LT_DECL_SED])dnl
  3786. +m4_require([_LT_DECL_EGREP])dnl
  3787. +m4_require([_LT_TAG_COMPILER])dnl
  3788. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  3789. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3790. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3791. +[
  3792. +# These are sane defaults that work on at least a few old systems.
  3793. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3794. -#
  3795. -# Check to make sure the static flag actually works.
  3796. -#
  3797. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  3798. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  3799. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  3800. - [],
  3801. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  3802. +# Character class describing NM global symbol codes.
  3803. +symcode='[[BCDEGRST]]'
  3804. +# Regexp to match symbols that can be accessed directly from C.
  3805. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3806. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3807. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3808. -AC_LIBTOOL_PROG_CC_C_O($1)
  3809. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3810. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3811. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3812. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3813. -AC_LIBTOOL_SYS_LIB_STRIP
  3814. -AC_LIBTOOL_DLOPEN_SELF($1)
  3815. -
  3816. -# Report which librarie types wil actually be built
  3817. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3818. -AC_MSG_RESULT([$can_build_shared])
  3819. -
  3820. -AC_MSG_CHECKING([whether to build shared libraries])
  3821. -test "$can_build_shared" = "no" && enable_shared=no
  3822. -
  3823. -# On AIX, shared libraries and static libraries use the same namespace, and
  3824. -# are all built from PIC.
  3825. -case "$host_os" in
  3826. -aix3*)
  3827. - test "$enable_shared" = yes && enable_static=no
  3828. - if test -n "$RANLIB"; then
  3829. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3830. - postinstall_cmds='$RANLIB $lib'
  3831. - fi
  3832. +# Define system-specific variables.
  3833. +case $host_os in
  3834. +aix*)
  3835. + symcode='[[BCDT]]'
  3836. ;;
  3837. -
  3838. -aix4* | aix5*)
  3839. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3840. - test "$enable_shared" = yes && enable_static=no
  3841. - fi
  3842. +cygwin* | mingw* | pw32* | cegcc*)
  3843. + symcode='[[ABCDGISTW]]'
  3844. ;;
  3845. - darwin* | rhapsody*)
  3846. - if test "$GCC" = yes; then
  3847. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3848. - case "$host_os" in
  3849. - rhapsody* | darwin1.[[012]])
  3850. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  3851. - ;;
  3852. - *) # Darwin 1.3 on
  3853. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  3854. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3855. - else
  3856. - case ${MACOSX_DEPLOYMENT_TARGET} in
  3857. - 10.[[012]])
  3858. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  3859. - ;;
  3860. - 10.*)
  3861. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  3862. - ;;
  3863. - esac
  3864. - fi
  3865. - ;;
  3866. - esac
  3867. - output_verbose_link_cmd='echo'
  3868. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  3869. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3870. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  3871. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3872. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  3873. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3874. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3875. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3876. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  3877. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3878. - else
  3879. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3880. +hpux*)
  3881. + if test "$host_cpu" = ia64; then
  3882. + symcode='[[ABCDEGRST]]'
  3883. fi
  3884. - ;;
  3885. + ;;
  3886. +irix* | nonstopux*)
  3887. + symcode='[[BCDEGRST]]'
  3888. + ;;
  3889. +osf*)
  3890. + symcode='[[BCDEGQRST]]'
  3891. + ;;
  3892. +solaris*)
  3893. + symcode='[[BDRT]]'
  3894. + ;;
  3895. +sco3.2v5*)
  3896. + symcode='[[DT]]'
  3897. + ;;
  3898. +sysv4.2uw2*)
  3899. + symcode='[[DT]]'
  3900. + ;;
  3901. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3902. + symcode='[[ABDT]]'
  3903. + ;;
  3904. +sysv4)
  3905. + symcode='[[DFNSTU]]'
  3906. + ;;
  3907. esac
  3908. -AC_MSG_RESULT([$enable_shared])
  3909. -
  3910. -AC_MSG_CHECKING([whether to build static libraries])
  3911. -# Make sure either enable_shared or enable_static is yes.
  3912. -test "$enable_shared" = yes || enable_static=yes
  3913. -AC_MSG_RESULT([$enable_static])
  3914. -
  3915. -AC_LIBTOOL_CONFIG($1)
  3916. -
  3917. -AC_LANG_POP
  3918. -CC="$lt_save_CC"
  3919. -])# AC_LIBTOOL_LANG_C_CONFIG
  3920. +# If we're using GNU nm, then use its standard symbol codes.
  3921. +case `$NM -V 2>&1` in
  3922. +*GNU* | *'with BFD'*)
  3923. + symcode='[[ABCDGIRSTW]]' ;;
  3924. +esac
  3925. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3926. -# --------------------------
  3927. -# Ensure that the configuration vars for the C compiler are
  3928. -# suitably defined. Those variables are subsequently used by
  3929. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3930. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3931. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3932. -[AC_LANG_PUSH(C++)
  3933. -AC_REQUIRE([AC_PROG_CXX])
  3934. -AC_REQUIRE([AC_PROG_CXXCPP])
  3935. -
  3936. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3937. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3938. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3939. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3940. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3941. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3942. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3943. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3944. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3945. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3946. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3947. -_LT_AC_TAGVAR(module_cmds, $1)=
  3948. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3949. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3950. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3951. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3952. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3953. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3954. +# Transform an extracted symbol line into a proper C declaration.
  3955. +# Some systems (esp. on ia64) link data and code symbols differently,
  3956. +# so use this general approach.
  3957. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3958. -# Dependencies to place before and after the object being linked:
  3959. -_LT_AC_TAGVAR(predep_objects, $1)=
  3960. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3961. -_LT_AC_TAGVAR(predeps, $1)=
  3962. -_LT_AC_TAGVAR(postdeps, $1)=
  3963. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3964. +# Transform an extracted symbol line into symbol name and symbol address
  3965. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3966. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  3967. -# Source file extension for C++ test sources.
  3968. -ac_ext=cc
  3969. +# Handle CRLF in mingw tool chain
  3970. +opt_cr=
  3971. +case $build_os in
  3972. +mingw*)
  3973. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3974. + ;;
  3975. +esac
  3976. -# Object file extension for compiled C++ test sources.
  3977. -objext=o
  3978. -_LT_AC_TAGVAR(objext, $1)=$objext
  3979. +# Try without a prefix underscore, then with it.
  3980. +for ac_symprfx in "" "_"; do
  3981. -# Code to be used in simple compile tests
  3982. -lt_simple_compile_test_code="int some_variable = 0;\n"
  3983. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3984. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  3985. -# Code to be used in simple link tests
  3986. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  3987. + # Write the raw and C identifiers.
  3988. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3989. + # Fake it for dumpbin and say T for any non-static function
  3990. + # and D for any global variable.
  3991. + # Also find C++ and __fastcall symbols from MSVC++,
  3992. + # which start with @ or ?.
  3993. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3994. +" {last_section=section; section=\$ 3};"\
  3995. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3996. +" \$ 0!~/External *\|/{next};"\
  3997. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3998. +" {if(hide[section]) next};"\
  3999. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  4000. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  4001. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  4002. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  4003. +" ' prfx=^$ac_symprfx]"
  4004. + else
  4005. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  4006. + fi
  4007. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4008. -_LT_AC_SYS_COMPILER
  4009. + # Check to see that the pipe works correctly.
  4010. + pipe_works=no
  4011. -# Allow CC to be a program name with arguments.
  4012. -lt_save_CC=$CC
  4013. -lt_save_LD=$LD
  4014. -lt_save_GCC=$GCC
  4015. -GCC=$GXX
  4016. -lt_save_with_gnu_ld=$with_gnu_ld
  4017. -lt_save_path_LD=$lt_cv_path_LD
  4018. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4019. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4020. -else
  4021. - unset lt_cv_prog_gnu_ld
  4022. -fi
  4023. -if test -n "${lt_cv_path_LDCXX+set}"; then
  4024. - lt_cv_path_LD=$lt_cv_path_LDCXX
  4025. -else
  4026. - unset lt_cv_path_LD
  4027. -fi
  4028. -test -z "${LDCXX+set}" || LD=$LDCXX
  4029. -CC=${CXX-"c++"}
  4030. -compiler=$CC
  4031. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4032. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4033. + rm -f conftest*
  4034. + cat > conftest.$ac_ext <<_LT_EOF
  4035. +#ifdef __cplusplus
  4036. +extern "C" {
  4037. +#endif
  4038. +char nm_test_var;
  4039. +void nm_test_func(void);
  4040. +void nm_test_func(void){}
  4041. +#ifdef __cplusplus
  4042. +}
  4043. +#endif
  4044. +int main(){nm_test_var='a';nm_test_func();return(0);}
  4045. +_LT_EOF
  4046. -# We don't want -fno-exception wen compiling C++ code, so set the
  4047. -# no_builtin_flag separately
  4048. -if test "$GXX" = yes; then
  4049. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4050. -else
  4051. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4052. -fi
  4053. + if AC_TRY_EVAL(ac_compile); then
  4054. + # Now try to grab the symbols.
  4055. + nlist=conftest.nm
  4056. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  4057. + # Try sorting and uniquifying the output.
  4058. + if sort "$nlist" | uniq > "$nlist"T; then
  4059. + mv -f "$nlist"T "$nlist"
  4060. + else
  4061. + rm -f "$nlist"T
  4062. + fi
  4063. -if test "$GXX" = yes; then
  4064. - # Set up default GNU C++ configuration
  4065. + # Make sure that we snagged all the symbols we need.
  4066. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  4067. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  4068. + cat <<_LT_EOF > conftest.$ac_ext
  4069. +#ifdef __cplusplus
  4070. +extern "C" {
  4071. +#endif
  4072. - AC_PROG_LD
  4073. +_LT_EOF
  4074. + # Now generate the symbol file.
  4075. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  4076. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4077. - # archiving commands below assume that GNU ld is being used.
  4078. - if test "$with_gnu_ld" = yes; then
  4079. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4080. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4081. + cat <<_LT_EOF >> conftest.$ac_ext
  4082. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4083. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4084. +/* The mapping between symbol names and symbols. */
  4085. +const struct {
  4086. + const char *name;
  4087. + void *address;
  4088. +}
  4089. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  4090. +{
  4091. + { "@PROGRAM@", (void *) 0 },
  4092. +_LT_EOF
  4093. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  4094. + cat <<\_LT_EOF >> conftest.$ac_ext
  4095. + {0, (void *) 0}
  4096. +};
  4097. - # If archive_cmds runs LD, not CC, wlarc should be empty
  4098. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4099. - # investigate it a little bit more. (MM)
  4100. - wlarc='${wl}'
  4101. +/* This works around a problem in FreeBSD linker */
  4102. +#ifdef FREEBSD_WORKAROUND
  4103. +static const void *lt_preloaded_setup() {
  4104. + return lt__PROGRAM__LTX_preloaded_symbols;
  4105. +}
  4106. +#endif
  4107. - # ancient GNU ld didn't support --whole-archive et. al.
  4108. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4109. - grep 'no-whole-archive' > /dev/null; then
  4110. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4111. +#ifdef __cplusplus
  4112. +}
  4113. +#endif
  4114. +_LT_EOF
  4115. + # Now try linking the two files.
  4116. + mv conftest.$ac_objext conftstm.$ac_objext
  4117. + lt_save_LIBS="$LIBS"
  4118. + lt_save_CFLAGS="$CFLAGS"
  4119. + LIBS="conftstm.$ac_objext"
  4120. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  4121. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  4122. + pipe_works=yes
  4123. + fi
  4124. + LIBS="$lt_save_LIBS"
  4125. + CFLAGS="$lt_save_CFLAGS"
  4126. + else
  4127. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  4128. + fi
  4129. + else
  4130. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  4131. + fi
  4132. else
  4133. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4134. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  4135. fi
  4136. else
  4137. - with_gnu_ld=no
  4138. - wlarc=
  4139. -
  4140. - # A generic and very simple default shared library creation
  4141. - # command for GNU C++ for the case where it uses the native
  4142. - # linker, instead of GNU ld. If possible, this setting should
  4143. - # overridden to take advantage of the native linker features on
  4144. - # the platform it is being used on.
  4145. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4146. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  4147. + cat conftest.$ac_ext >&5
  4148. fi
  4149. + rm -rf conftest* conftst*
  4150. - # Commands to make compiler produce verbose output that lists
  4151. - # what "hidden" libraries, object files and flags are used when
  4152. - # linking a shared library.
  4153. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4154. -
  4155. + # Do not use the global_symbol_pipe unless it works.
  4156. + if test "$pipe_works" = yes; then
  4157. + break
  4158. + else
  4159. + lt_cv_sys_global_symbol_pipe=
  4160. + fi
  4161. +done
  4162. +])
  4163. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  4164. + lt_cv_sys_global_symbol_to_cdecl=
  4165. +fi
  4166. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  4167. + AC_MSG_RESULT(failed)
  4168. else
  4169. - GXX=no
  4170. - with_gnu_ld=no
  4171. - wlarc=
  4172. + AC_MSG_RESULT(ok)
  4173. fi
  4174. -# PORTME: fill in a description of your system's C++ link characteristics
  4175. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4176. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4177. -case $host_os in
  4178. - aix3*)
  4179. - # FIXME: insert proper C++ library support
  4180. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4181. - ;;
  4182. - aix4* | aix5*)
  4183. - if test "$host_cpu" = ia64; then
  4184. - # On IA64, the linker does run time linking by default, so we don't
  4185. - # have to do anything special.
  4186. - aix_use_runtimelinking=no
  4187. - exp_sym_flag='-Bexport'
  4188. - no_entry_flag=""
  4189. - else
  4190. - aix_use_runtimelinking=no
  4191. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  4192. + [Take the output of nm and produce a listing of raw symbols and C names])
  4193. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  4194. + [Transform the output of nm in a proper C declaration])
  4195. +_LT_DECL([global_symbol_to_c_name_address],
  4196. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  4197. + [Transform the output of nm in a C name address pair])
  4198. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  4199. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  4200. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  4201. +]) # _LT_CMD_GLOBAL_SYMBOLS
  4202. - # Test if we are trying to use run time linking or normal
  4203. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4204. - # need to do runtime linking.
  4205. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  4206. - for ld_flag in $LDFLAGS; do
  4207. - case $ld_flag in
  4208. - *-brtl*)
  4209. - aix_use_runtimelinking=yes
  4210. - break
  4211. - ;;
  4212. - esac
  4213. - done
  4214. - esac
  4215. - exp_sym_flag='-bexport'
  4216. - no_entry_flag='-bnoentry'
  4217. - fi
  4218. +# _LT_COMPILER_PIC([TAGNAME])
  4219. +# ---------------------------
  4220. +m4_defun([_LT_COMPILER_PIC],
  4221. +[m4_require([_LT_TAG_COMPILER])dnl
  4222. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  4223. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4224. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  4225. - # When large executables or shared objects are built, AIX ld can
  4226. - # have problems creating the table of contents. If linking a library
  4227. - # or program results in "error TOC overflow" add -mminimal-toc to
  4228. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4229. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4230. -
  4231. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  4232. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4233. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4234. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4235. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  4236. +m4_if([$1], [CXX], [
  4237. + # C++ specific cases for pic, static, wl, etc.
  4238. + if test "$GXX" = yes; then
  4239. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4240. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4241. - if test "$GXX" = yes; then
  4242. - case $host_os in aix4.[012]|aix4.[012].*)
  4243. - # We only want to do this on AIX 4.2 and lower, the check
  4244. - # below for broken collect2 doesn't work under 4.3+
  4245. - collect2name=`${CC} -print-prog-name=collect2`
  4246. - if test -f "$collect2name" && \
  4247. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  4248. - then
  4249. - # We have reworked collect2
  4250. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4251. - else
  4252. - # We have old collect2
  4253. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4254. - # It fails to find uninstalled libraries when the uninstalled
  4255. - # path is not listed in the libpath. Setting hardcode_minus_L
  4256. - # to unsupported forces relinking
  4257. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4258. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4259. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4260. - fi
  4261. - esac
  4262. - shared_flag='-shared'
  4263. - else
  4264. - # not using gcc
  4265. - if test "$host_cpu" = ia64; then
  4266. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4267. - # chokes on -Wl,-G. The following line is correct:
  4268. - shared_flag='-G'
  4269. - else
  4270. - if test "$aix_use_runtimelinking" = yes; then
  4271. - shared_flag='${wl}-G'
  4272. - else
  4273. - shared_flag='${wl}-bM:SRE'
  4274. - fi
  4275. - fi
  4276. - fi
  4277. -
  4278. - # It seems that -bexpall does not export symbols beginning with
  4279. - # underscore (_), so it is better to generate a list of symbols to export.
  4280. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4281. - if test "$aix_use_runtimelinking" = yes; then
  4282. - # Warning - without using the other runtime loading flags (-brtl),
  4283. - # -berok will link without error, but may produce a broken library.
  4284. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  4285. - # Determine the default libpath from the value encoded in an empty executable.
  4286. - _LT_AC_SYS_LIBPATH_AIX
  4287. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4288. -
  4289. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4290. - else
  4291. + case $host_os in
  4292. + aix*)
  4293. + # All AIX code is PIC.
  4294. if test "$host_cpu" = ia64; then
  4295. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4296. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4297. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  4298. - else
  4299. - # Determine the default libpath from the value encoded in an empty executable.
  4300. - _LT_AC_SYS_LIBPATH_AIX
  4301. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4302. - # Warning - without using the other run time loading flags,
  4303. - # -berok will link without error, but may produce a broken library.
  4304. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4305. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4306. - # -bexpall does not export symbols beginning with underscore (_)
  4307. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4308. - # Exported symbols can be pulled into shared objects from archives
  4309. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4310. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4311. - # This is similar to how AIX traditionally builds it's shared libraries.
  4312. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  4313. + # AIX 5 now supports IA64 processor
  4314. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4315. fi
  4316. - fi
  4317. - ;;
  4318. - chorus*)
  4319. - case $cc_basename in
  4320. - *)
  4321. - # FIXME: insert proper C++ library support
  4322. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4323. - ;;
  4324. - esac
  4325. - ;;
  4326. + ;;
  4327. - cygwin* | mingw* | pw32*)
  4328. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4329. - # as there is no search path for DLLs.
  4330. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4331. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4332. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4333. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4334. -
  4335. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4336. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4337. - # If the export-symbols file already is a .def file (1st line
  4338. - # is EXPORTS), use it as is; otherwise, prepend...
  4339. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4340. - cp $export_symbols $output_objdir/$soname.def;
  4341. - else
  4342. - echo EXPORTS > $output_objdir/$soname.def;
  4343. - cat $export_symbols >> $output_objdir/$soname.def;
  4344. - fi~
  4345. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  4346. - else
  4347. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4348. - fi
  4349. - ;;
  4350. + amigaos*)
  4351. + case $host_cpu in
  4352. + powerpc)
  4353. + # see comment about AmigaOS4 .so support
  4354. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4355. + ;;
  4356. + m68k)
  4357. + # FIXME: we need at least 68020 code to build shared libraries, but
  4358. + # adding the `-m68020' flag to GCC prevents building anything better,
  4359. + # like `-m68040'.
  4360. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4361. + ;;
  4362. + esac
  4363. + ;;
  4364. - darwin* | rhapsody*)
  4365. - if test "$GXX" = yes; then
  4366. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4367. - case "$host_os" in
  4368. - rhapsody* | darwin1.[[012]])
  4369. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4370. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4371. + # PIC is the default for these OSes.
  4372. ;;
  4373. - *) # Darwin 1.3 on
  4374. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4375. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4376. - else
  4377. - case ${MACOSX_DEPLOYMENT_TARGET} in
  4378. - 10.[[012]])
  4379. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4380. - ;;
  4381. - 10.*)
  4382. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4383. - ;;
  4384. - esac
  4385. - fi
  4386. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  4387. + # This hack is so that the source file can tell whether it is being
  4388. + # built for inclusion in a dll (and should export symbols for example).
  4389. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4390. + # (--disable-auto-import) libraries
  4391. + m4_if([$1], [GCJ], [],
  4392. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4393. ;;
  4394. - esac
  4395. - lt_int_apple_cc_single_mod=no
  4396. - output_verbose_link_cmd='echo'
  4397. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  4398. - lt_int_apple_cc_single_mod=yes
  4399. - fi
  4400. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4401. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4402. - else
  4403. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4404. - fi
  4405. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4406. -
  4407. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4408. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4409. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4410. - else
  4411. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4412. - fi
  4413. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4414. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4415. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4416. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4417. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4418. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4419. - else
  4420. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4421. - fi
  4422. - ;;
  4423. -
  4424. - dgux*)
  4425. - case $cc_basename in
  4426. - ec++)
  4427. - # FIXME: insert proper C++ library support
  4428. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4429. - ;;
  4430. - ghcx)
  4431. - # Green Hills C++ Compiler
  4432. - # FIXME: insert proper C++ library support
  4433. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4434. - ;;
  4435. - *)
  4436. - # FIXME: insert proper C++ library support
  4437. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4438. - ;;
  4439. - esac
  4440. - ;;
  4441. - freebsd[12]*)
  4442. - # C++ shared libraries reported to be fairly broken before switch to ELF
  4443. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4444. - ;;
  4445. - freebsd-elf*)
  4446. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4447. - ;;
  4448. - freebsd* | kfreebsd*-gnu)
  4449. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4450. - # conventions
  4451. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4452. - ;;
  4453. - gnu*)
  4454. - ;;
  4455. - hpux9*)
  4456. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4457. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4458. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4459. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4460. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4461. - # but as the default
  4462. - # location of the library.
  4463. -
  4464. - case $cc_basename in
  4465. - CC)
  4466. - # FIXME: insert proper C++ library support
  4467. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4468. + darwin* | rhapsody*)
  4469. + # PIC is the default on this platform
  4470. + # Common symbols not allowed in MH_DYLIB files
  4471. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4472. ;;
  4473. - aCC)
  4474. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4475. - # Commands to make compiler produce verbose output that lists
  4476. - # what "hidden" libraries, object files and flags are used when
  4477. - # linking a shared library.
  4478. - #
  4479. - # There doesn't appear to be a way to prevent this compiler from
  4480. - # explicitly linking system object files so we need to strip them
  4481. - # from the output so that they don't get included in the library
  4482. - # dependencies.
  4483. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4484. + *djgpp*)
  4485. + # DJGPP does not support shared libraries at all
  4486. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4487. ;;
  4488. - *)
  4489. - if test "$GXX" = yes; then
  4490. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4491. - else
  4492. - # FIXME: insert proper C++ library support
  4493. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4494. + interix[[3-9]]*)
  4495. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4496. + # Instead, we relocate shared libraries at runtime.
  4497. + ;;
  4498. + sysv4*MP*)
  4499. + if test -d /usr/nec; then
  4500. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4501. fi
  4502. ;;
  4503. - esac
  4504. - ;;
  4505. - hpux10*|hpux11*)
  4506. - if test $with_gnu_ld = no; then
  4507. - case "$host_cpu" in
  4508. + hpux*)
  4509. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4510. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4511. + # sets the default TLS model and affects inlining.
  4512. + case $host_cpu in
  4513. hppa*64*)
  4514. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4515. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4516. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4517. - ;;
  4518. - ia64*)
  4519. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4520. - ;;
  4521. + ;;
  4522. *)
  4523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4524. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4525. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4526. - ;;
  4527. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4528. + ;;
  4529. esac
  4530. - fi
  4531. - case "$host_cpu" in
  4532. - hppa*64*)
  4533. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4534. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4535. - ;;
  4536. - ia64*)
  4537. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4538. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4539. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4540. - # but as the default
  4541. - # location of the library.
  4542. + ;;
  4543. + *qnx* | *nto*)
  4544. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4545. + # it will coredump.
  4546. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4547. ;;
  4548. *)
  4549. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4550. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4551. - # but as the default
  4552. - # location of the library.
  4553. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4554. ;;
  4555. esac
  4556. -
  4557. - case $cc_basename in
  4558. - CC)
  4559. - # FIXME: insert proper C++ library support
  4560. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4561. + else
  4562. + case $host_os in
  4563. + aix[[4-9]]*)
  4564. + # All AIX code is PIC.
  4565. + if test "$host_cpu" = ia64; then
  4566. + # AIX 5 now supports IA64 processor
  4567. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4568. + else
  4569. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4570. + fi
  4571. ;;
  4572. - aCC)
  4573. - case "$host_cpu" in
  4574. - hppa*64*|ia64*)
  4575. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4576. - ;;
  4577. - *)
  4578. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4579. + chorus*)
  4580. + case $cc_basename in
  4581. + cxch68*)
  4582. + # Green Hills C++ Compiler
  4583. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  4584. ;;
  4585. esac
  4586. - # Commands to make compiler produce verbose output that lists
  4587. - # what "hidden" libraries, object files and flags are used when
  4588. - # linking a shared library.
  4589. - #
  4590. - # There doesn't appear to be a way to prevent this compiler from
  4591. - # explicitly linking system object files so we need to strip them
  4592. - # from the output so that they don't get included in the library
  4593. - # dependencies.
  4594. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4595. ;;
  4596. - *)
  4597. - if test "$GXX" = yes; then
  4598. - if test $with_gnu_ld = no; then
  4599. - case "$host_cpu" in
  4600. - ia64*|hppa*64*)
  4601. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4602. + dgux*)
  4603. + case $cc_basename in
  4604. + ec++*)
  4605. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4606. + ;;
  4607. + ghcx*)
  4608. + # Green Hills C++ Compiler
  4609. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4610. + ;;
  4611. + *)
  4612. + ;;
  4613. + esac
  4614. + ;;
  4615. + freebsd* | dragonfly*)
  4616. + # FreeBSD uses GNU C++
  4617. + ;;
  4618. + hpux9* | hpux10* | hpux11*)
  4619. + case $cc_basename in
  4620. + CC*)
  4621. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4622. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4623. + if test "$host_cpu" != ia64; then
  4624. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4625. + fi
  4626. + ;;
  4627. + aCC*)
  4628. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4629. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  4630. + case $host_cpu in
  4631. + hppa*64*|ia64*)
  4632. + # +Z the default
  4633. ;;
  4634. *)
  4635. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4636. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4637. ;;
  4638. esac
  4639. - fi
  4640. - else
  4641. - # FIXME: insert proper C++ library support
  4642. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4643. - fi
  4644. - ;;
  4645. - esac
  4646. - ;;
  4647. - irix5* | irix6*)
  4648. - case $cc_basename in
  4649. - CC)
  4650. - # SGI C++
  4651. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4652. -
  4653. - # Archives containing C++ object files must be created using
  4654. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4655. - # necessary to make sure instantiated templates are included
  4656. - # in the archive.
  4657. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4658. + ;;
  4659. + *)
  4660. + ;;
  4661. + esac
  4662. ;;
  4663. - *)
  4664. - if test "$GXX" = yes; then
  4665. - if test "$with_gnu_ld" = no; then
  4666. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4667. - else
  4668. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  4669. - fi
  4670. - fi
  4671. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4672. + interix*)
  4673. + # This is c89, which is MS Visual C++ (no shared libs)
  4674. + # Anyone wants to do a port?
  4675. ;;
  4676. - esac
  4677. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4678. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4679. - ;;
  4680. - linux*)
  4681. - case $cc_basename in
  4682. - KCC)
  4683. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4684. -
  4685. - # KCC will only create a shared library if the output file
  4686. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4687. - # to its proper name (with version) after linking.
  4688. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4689. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  4690. - # Commands to make compiler produce verbose output that lists
  4691. - # what "hidden" libraries, object files and flags are used when
  4692. - # linking a shared library.
  4693. - #
  4694. - # There doesn't appear to be a way to prevent this compiler from
  4695. - # explicitly linking system object files so we need to strip them
  4696. - # from the output so that they don't get included in the library
  4697. - # dependencies.
  4698. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4699. -
  4700. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4701. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4702. -
  4703. - # Archives containing C++ object files must be created using
  4704. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4705. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4706. - ;;
  4707. - icpc)
  4708. - # Intel C++
  4709. - with_gnu_ld=yes
  4710. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4711. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4712. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4713. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4714. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4715. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4716. - ;;
  4717. - cxx)
  4718. - # Compaq C++
  4719. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4720. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  4721. -
  4722. - runpath_var=LD_RUN_PATH
  4723. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4724. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4725. -
  4726. - # Commands to make compiler produce verbose output that lists
  4727. - # what "hidden" libraries, object files and flags are used when
  4728. - # linking a shared library.
  4729. - #
  4730. - # There doesn't appear to be a way to prevent this compiler from
  4731. - # explicitly linking system object files so we need to strip them
  4732. - # from the output so that they don't get included in the library
  4733. - # dependencies.
  4734. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4735. + irix5* | irix6* | nonstopux*)
  4736. + case $cc_basename in
  4737. + CC*)
  4738. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4739. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4740. + # CC pic flag -KPIC is the default.
  4741. + ;;
  4742. + *)
  4743. + ;;
  4744. + esac
  4745. ;;
  4746. - esac
  4747. - ;;
  4748. - lynxos*)
  4749. - # FIXME: insert proper C++ library support
  4750. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4751. - ;;
  4752. - m88k*)
  4753. - # FIXME: insert proper C++ library support
  4754. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4755. - ;;
  4756. - mvs*)
  4757. - case $cc_basename in
  4758. - cxx)
  4759. - # FIXME: insert proper C++ library support
  4760. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4761. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4762. + case $cc_basename in
  4763. + KCC*)
  4764. + # KAI C++ Compiler
  4765. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4766. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4767. + ;;
  4768. + ecpc* )
  4769. + # old Intel C++ for x86_64 which still supported -KPIC.
  4770. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4771. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4772. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4773. + ;;
  4774. + icpc* )
  4775. + # Intel C++, used to be incompatible with GCC.
  4776. + # ICC 10 doesn't accept -KPIC any more.
  4777. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4778. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4779. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4780. + ;;
  4781. + pgCC* | pgcpp*)
  4782. + # Portland Group C++ compiler
  4783. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4784. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4785. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4786. + ;;
  4787. + cxx*)
  4788. + # Compaq C++
  4789. + # Make sure the PIC flag is empty. It appears that all Alpha
  4790. + # Linux and Compaq Tru64 Unix objects are PIC.
  4791. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4792. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4793. + ;;
  4794. + xlc* | xlC*)
  4795. + # IBM XL 8.0 on PPC
  4796. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4797. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4798. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4799. + ;;
  4800. + *)
  4801. + case `$CC -V 2>&1 | sed 5q` in
  4802. + *Sun\ C*)
  4803. + # Sun C++ 5.9
  4804. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4805. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4806. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4807. + ;;
  4808. + esac
  4809. + ;;
  4810. + esac
  4811. ;;
  4812. - *)
  4813. - # FIXME: insert proper C++ library support
  4814. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4815. + lynxos*)
  4816. ;;
  4817. - esac
  4818. - ;;
  4819. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  4820. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4821. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4822. - wlarc=
  4823. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4824. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4825. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4826. - fi
  4827. - # Workaround some broken pre-1.5 toolchains
  4828. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4829. - ;;
  4830. - osf3*)
  4831. - case $cc_basename in
  4832. - KCC)
  4833. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4834. -
  4835. - # KCC will only create a shared library if the output file
  4836. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4837. - # to its proper name (with version) after linking.
  4838. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4839. -
  4840. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4841. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4842. -
  4843. - # Archives containing C++ object files must be created using
  4844. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4845. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4846. -
  4847. - ;;
  4848. - RCC)
  4849. - # Rational C++ 2.4.1
  4850. - # FIXME: insert proper C++ library support
  4851. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4852. - ;;
  4853. - cxx)
  4854. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4855. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4856. -
  4857. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4858. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4859. -
  4860. - # Commands to make compiler produce verbose output that lists
  4861. - # what "hidden" libraries, object files and flags are used when
  4862. - # linking a shared library.
  4863. - #
  4864. - # There doesn't appear to be a way to prevent this compiler from
  4865. - # explicitly linking system object files so we need to strip them
  4866. - # from the output so that they don't get included in the library
  4867. - # dependencies.
  4868. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4869. + m88k*)
  4870. ;;
  4871. - *)
  4872. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4873. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4874. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4875. -
  4876. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4877. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4878. -
  4879. - # Commands to make compiler produce verbose output that lists
  4880. - # what "hidden" libraries, object files and flags are used when
  4881. - # linking a shared library.
  4882. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4883. -
  4884. - else
  4885. - # FIXME: insert proper C++ library support
  4886. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4887. - fi
  4888. + mvs*)
  4889. + case $cc_basename in
  4890. + cxx*)
  4891. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4892. + ;;
  4893. + *)
  4894. + ;;
  4895. + esac
  4896. ;;
  4897. - esac
  4898. - ;;
  4899. - osf4* | osf5*)
  4900. - case $cc_basename in
  4901. - KCC)
  4902. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4903. -
  4904. - # KCC will only create a shared library if the output file
  4905. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4906. - # to its proper name (with version) after linking.
  4907. - _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  4908. -
  4909. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4910. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4911. -
  4912. - # Archives containing C++ object files must be created using
  4913. - # the KAI C++ compiler.
  4914. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4915. - ;;
  4916. - RCC)
  4917. - # Rational C++ 2.4.1
  4918. - # FIXME: insert proper C++ library support
  4919. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4920. - ;;
  4921. - cxx)
  4922. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4923. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4924. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4925. - echo "-hidden">> $lib.exp~
  4926. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  4927. - $rm $lib.exp'
  4928. -
  4929. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4930. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4931. -
  4932. - # Commands to make compiler produce verbose output that lists
  4933. - # what "hidden" libraries, object files and flags are used when
  4934. - # linking a shared library.
  4935. - #
  4936. - # There doesn't appear to be a way to prevent this compiler from
  4937. - # explicitly linking system object files so we need to strip them
  4938. - # from the output so that they don't get included in the library
  4939. - # dependencies.
  4940. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  4941. + netbsd* | netbsdelf*-gnu)
  4942. ;;
  4943. - *)
  4944. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4945. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4946. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4947. -
  4948. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4949. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4950. -
  4951. - # Commands to make compiler produce verbose output that lists
  4952. - # what "hidden" libraries, object files and flags are used when
  4953. - # linking a shared library.
  4954. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4955. -
  4956. - else
  4957. - # FIXME: insert proper C++ library support
  4958. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4959. - fi
  4960. + *qnx* | *nto*)
  4961. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  4962. + # it will coredump.
  4963. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4964. + ;;
  4965. + osf3* | osf4* | osf5*)
  4966. + case $cc_basename in
  4967. + KCC*)
  4968. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4969. + ;;
  4970. + RCC*)
  4971. + # Rational C++ 2.4.1
  4972. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4973. + ;;
  4974. + cxx*)
  4975. + # Digital/Compaq C++
  4976. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4977. + # Make sure the PIC flag is empty. It appears that all Alpha
  4978. + # Linux and Compaq Tru64 Unix objects are PIC.
  4979. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4980. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4981. + ;;
  4982. + *)
  4983. + ;;
  4984. + esac
  4985. ;;
  4986. - esac
  4987. - ;;
  4988. - psos*)
  4989. - # FIXME: insert proper C++ library support
  4990. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4991. - ;;
  4992. - sco*)
  4993. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4994. - case $cc_basename in
  4995. - CC)
  4996. - # FIXME: insert proper C++ library support
  4997. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4998. + psos*)
  4999. ;;
  5000. - *)
  5001. - # FIXME: insert proper C++ library support
  5002. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5003. + solaris*)
  5004. + case $cc_basename in
  5005. + CC*)
  5006. + # Sun C++ 4.2, 5.x and Centerline C++
  5007. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5008. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5009. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5010. + ;;
  5011. + gcx*)
  5012. + # Green Hills C++ Compiler
  5013. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5014. + ;;
  5015. + *)
  5016. + ;;
  5017. + esac
  5018. ;;
  5019. - esac
  5020. - ;;
  5021. - sunos4*)
  5022. - case $cc_basename in
  5023. - CC)
  5024. - # Sun C++ 4.x
  5025. - # FIXME: insert proper C++ library support
  5026. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5027. - ;;
  5028. - lcc)
  5029. - # Lucid
  5030. - # FIXME: insert proper C++ library support
  5031. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5032. + sunos4*)
  5033. + case $cc_basename in
  5034. + CC*)
  5035. + # Sun C++ 4.x
  5036. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5037. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5038. + ;;
  5039. + lcc*)
  5040. + # Lucid
  5041. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5042. + ;;
  5043. + *)
  5044. + ;;
  5045. + esac
  5046. ;;
  5047. - *)
  5048. - # FIXME: insert proper C++ library support
  5049. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5050. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5051. + case $cc_basename in
  5052. + CC*)
  5053. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5054. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5055. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5056. + ;;
  5057. + esac
  5058. ;;
  5059. - esac
  5060. - ;;
  5061. - solaris*)
  5062. - case $cc_basename in
  5063. - CC)
  5064. - # Sun C++ 4.2, 5.x and Centerline C++
  5065. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5066. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5067. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5068. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5069. -
  5070. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5071. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5072. - case $host_os in
  5073. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  5074. + tandem*)
  5075. + case $cc_basename in
  5076. + NCC*)
  5077. + # NonStop-UX NCC 3.20
  5078. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5079. + ;;
  5080. *)
  5081. - # The C++ compiler is used as linker so we must use $wl
  5082. - # flag to pass the commands to the underlying system
  5083. - # linker.
  5084. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  5085. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5086. ;;
  5087. esac
  5088. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5089. -
  5090. - # Commands to make compiler produce verbose output that lists
  5091. - # what "hidden" libraries, object files and flags are used when
  5092. - # linking a shared library.
  5093. - #
  5094. - # There doesn't appear to be a way to prevent this compiler from
  5095. - # explicitly linking system object files so we need to strip them
  5096. - # from the output so that they don't get included in the library
  5097. - # dependencies.
  5098. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  5099. -
  5100. - # Archives containing C++ object files must be created using
  5101. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5102. - # necessary to make sure instantiated templates are included
  5103. - # in the archive.
  5104. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5105. - ;;
  5106. - gcx)
  5107. - # Green Hills C++ Compiler
  5108. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5109. -
  5110. - # The C++ compiler must be used to create the archive.
  5111. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5112. + ;;
  5113. + vxworks*)
  5114. ;;
  5115. *)
  5116. - # GNU C++ compiler with Solaris linker
  5117. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5118. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5119. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  5120. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5121. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5122. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5123. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5124. + ;;
  5125. + esac
  5126. + fi
  5127. +],
  5128. +[
  5129. + if test "$GCC" = yes; then
  5130. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5131. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5132. - # Commands to make compiler produce verbose output that lists
  5133. - # what "hidden" libraries, object files and flags are used when
  5134. - # linking a shared library.
  5135. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5136. - else
  5137. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5138. - # platform.
  5139. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5140. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5141. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5142. -
  5143. - # Commands to make compiler produce verbose output that lists
  5144. - # what "hidden" libraries, object files and flags are used when
  5145. - # linking a shared library.
  5146. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5147. - fi
  5148. -
  5149. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5150. - fi
  5151. - ;;
  5152. - esac
  5153. - ;;
  5154. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5155. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5156. - ;;
  5157. - tandem*)
  5158. - case $cc_basename in
  5159. - NCC)
  5160. - # NonStop-UX NCC 3.20
  5161. - # FIXME: insert proper C++ library support
  5162. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5163. - ;;
  5164. - *)
  5165. - # FIXME: insert proper C++ library support
  5166. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5167. - ;;
  5168. - esac
  5169. - ;;
  5170. - vxworks*)
  5171. - # FIXME: insert proper C++ library support
  5172. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5173. - ;;
  5174. - *)
  5175. - # FIXME: insert proper C++ library support
  5176. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5177. - ;;
  5178. -esac
  5179. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5180. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5181. -
  5182. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  5183. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5184. -
  5185. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  5186. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5187. -AC_LIBTOOL_PROG_CC_C_O($1)
  5188. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5189. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5190. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5191. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5192. -AC_LIBTOOL_SYS_LIB_STRIP
  5193. -AC_LIBTOOL_DLOPEN_SELF($1)
  5194. + case $host_os in
  5195. + aix*)
  5196. + # All AIX code is PIC.
  5197. + if test "$host_cpu" = ia64; then
  5198. + # AIX 5 now supports IA64 processor
  5199. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5200. + fi
  5201. + ;;
  5202. -AC_LIBTOOL_CONFIG($1)
  5203. + amigaos*)
  5204. + case $host_cpu in
  5205. + powerpc)
  5206. + # see comment about AmigaOS4 .so support
  5207. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5208. + ;;
  5209. + m68k)
  5210. + # FIXME: we need at least 68020 code to build shared libraries, but
  5211. + # adding the `-m68020' flag to GCC prevents building anything better,
  5212. + # like `-m68040'.
  5213. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5214. + ;;
  5215. + esac
  5216. + ;;
  5217. -AC_LANG_POP
  5218. -CC=$lt_save_CC
  5219. -LDCXX=$LD
  5220. -LD=$lt_save_LD
  5221. -GCC=$lt_save_GCC
  5222. -with_gnu_ldcxx=$with_gnu_ld
  5223. -with_gnu_ld=$lt_save_with_gnu_ld
  5224. -lt_cv_path_LDCXX=$lt_cv_path_LD
  5225. -lt_cv_path_LD=$lt_save_path_LD
  5226. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5227. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5228. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  5229. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5230. + # PIC is the default for these OSes.
  5231. + ;;
  5232. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  5233. -# ------------------------
  5234. -# Figure out "hidden" library dependencies from verbose
  5235. -# compiler output when linking a shared library.
  5236. -# Parse the compiler output and extract the necessary
  5237. -# objects, libraries and library flags.
  5238. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  5239. -dnl we can't use the lt_simple_compile_test_code here,
  5240. -dnl because it contains code intended for an executable,
  5241. -dnl not a library. It's possible we should let each
  5242. -dnl tag define a new lt_????_link_test_code variable,
  5243. -dnl but it's only used here...
  5244. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  5245. -int a;
  5246. -void foo (void) { a = 0; }
  5247. -EOF
  5248. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  5249. -class Foo
  5250. -{
  5251. -public:
  5252. - Foo (void) { a = 0; }
  5253. -private:
  5254. - int a;
  5255. -};
  5256. -EOF
  5257. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  5258. - subroutine foo
  5259. - implicit none
  5260. - integer*4 a
  5261. - a=0
  5262. - return
  5263. - end
  5264. -EOF
  5265. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  5266. -public class foo {
  5267. - private int a;
  5268. - public void bar (void) {
  5269. - a = 0;
  5270. - }
  5271. -};
  5272. -EOF
  5273. -])
  5274. -dnl Parse the compiler output and extract the necessary
  5275. -dnl objects, libraries and library flags.
  5276. -if AC_TRY_EVAL(ac_compile); then
  5277. - # Parse the compiler output and extract the necessary
  5278. - # objects, libraries and library flags.
  5279. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5280. + # This hack is so that the source file can tell whether it is being
  5281. + # built for inclusion in a dll (and should export symbols for example).
  5282. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5283. + # (--disable-auto-import) libraries
  5284. + m4_if([$1], [GCJ], [],
  5285. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5286. + ;;
  5287. - # Sentinel used to keep track of whether or not we are before
  5288. - # the conftest object file.
  5289. - pre_test_object_deps_done=no
  5290. + darwin* | rhapsody*)
  5291. + # PIC is the default on this platform
  5292. + # Common symbols not allowed in MH_DYLIB files
  5293. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5294. + ;;
  5295. - # The `*' in the case matches for architectures that use `case' in
  5296. - # $output_verbose_cmd can trigger glob expansion during the loop
  5297. - # eval without this substitution.
  5298. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  5299. + hpux*)
  5300. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5301. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5302. + # sets the default TLS model and affects inlining.
  5303. + case $host_cpu in
  5304. + hppa*64*)
  5305. + # +Z the default
  5306. + ;;
  5307. + *)
  5308. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5309. + ;;
  5310. + esac
  5311. + ;;
  5312. - for p in `eval $output_verbose_link_cmd`; do
  5313. - case $p in
  5314. + interix[[3-9]]*)
  5315. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5316. + # Instead, we relocate shared libraries at runtime.
  5317. + ;;
  5318. - -L* | -R* | -l*)
  5319. - # Some compilers place space between "-{L,R}" and the path.
  5320. - # Remove the space.
  5321. - if test $p = "-L" \
  5322. - || test $p = "-R"; then
  5323. - prev=$p
  5324. - continue
  5325. - else
  5326. - prev=
  5327. - fi
  5328. + msdosdjgpp*)
  5329. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  5330. + # on systems that don't support them.
  5331. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5332. + enable_shared=no
  5333. + ;;
  5334. - if test "$pre_test_object_deps_done" = no; then
  5335. - case $p in
  5336. - -L* | -R*)
  5337. - # Internal compiler library paths should come after those
  5338. - # provided the user. The postdeps already come after the
  5339. - # user supplied libs so there is no need to process them.
  5340. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5341. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5342. - else
  5343. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5344. - fi
  5345. - ;;
  5346. - # The "-l" case would never come before the object being
  5347. - # linked, so don't bother handling this case.
  5348. - esac
  5349. - else
  5350. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5351. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5352. - else
  5353. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5354. - fi
  5355. - fi
  5356. - ;;
  5357. + *nto* | *qnx*)
  5358. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5359. + # it will coredump.
  5360. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5361. + ;;
  5362. - *.$objext)
  5363. - # This assumes that the test object file only shows up
  5364. - # once in the compiler output.
  5365. - if test "$p" = "conftest.$objext"; then
  5366. - pre_test_object_deps_done=yes
  5367. - continue
  5368. - fi
  5369. + sysv4*MP*)
  5370. + if test -d /usr/nec; then
  5371. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5372. + fi
  5373. + ;;
  5374. - if test "$pre_test_object_deps_done" = no; then
  5375. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5376. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5377. - else
  5378. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5379. - fi
  5380. - else
  5381. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5382. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5383. - else
  5384. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5385. - fi
  5386. - fi
  5387. - ;;
  5388. + *)
  5389. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5390. + ;;
  5391. + esac
  5392. + else
  5393. + # PORTME Check for flag to pass linker flags through the system compiler.
  5394. + case $host_os in
  5395. + aix*)
  5396. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5397. + if test "$host_cpu" = ia64; then
  5398. + # AIX 5 now supports IA64 processor
  5399. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5400. + else
  5401. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5402. + fi
  5403. + ;;
  5404. - *) ;; # Ignore the rest.
  5405. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5406. + # This hack is so that the source file can tell whether it is being
  5407. + # built for inclusion in a dll (and should export symbols for example).
  5408. + m4_if([$1], [GCJ], [],
  5409. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5410. + ;;
  5411. - esac
  5412. - done
  5413. + hpux9* | hpux10* | hpux11*)
  5414. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5415. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5416. + # not for PA HP-UX.
  5417. + case $host_cpu in
  5418. + hppa*64*|ia64*)
  5419. + # +Z the default
  5420. + ;;
  5421. + *)
  5422. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5423. + ;;
  5424. + esac
  5425. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  5426. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5427. + ;;
  5428. - # Clean up.
  5429. - rm -f a.out a.exe
  5430. -else
  5431. - echo "libtool.m4: error: problem compiling $1 test program"
  5432. -fi
  5433. + irix5* | irix6* | nonstopux*)
  5434. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5435. + # PIC (with -KPIC) is the default.
  5436. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5437. + ;;
  5438. -$rm -f confest.$objext
  5439. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5440. + case $cc_basename in
  5441. + # old Intel for x86_64 which still supported -KPIC.
  5442. + ecc*)
  5443. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5444. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5445. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5446. + ;;
  5447. + # icc used to be incompatible with GCC.
  5448. + # ICC 10 doesn't accept -KPIC any more.
  5449. + icc* | ifort*)
  5450. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5451. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5452. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5453. + ;;
  5454. + # Lahey Fortran 8.1.
  5455. + lf95*)
  5456. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5457. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  5458. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  5459. + ;;
  5460. + pgcc* | pgf77* | pgf90* | pgf95*)
  5461. + # Portland Group compilers (*not* the Pentium gcc compiler,
  5462. + # which looks to be a dead project)
  5463. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5464. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5465. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5466. + ;;
  5467. + ccc*)
  5468. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5469. + # All Alpha code is PIC.
  5470. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5471. + ;;
  5472. + xl*)
  5473. + # IBM XL C 8.0/Fortran 10.1 on PPC
  5474. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5475. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5476. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5477. + ;;
  5478. + *)
  5479. + case `$CC -V 2>&1 | sed 5q` in
  5480. + *Sun\ C*)
  5481. + # Sun C 5.9
  5482. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5483. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5484. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5485. + ;;
  5486. + *Sun\ F*)
  5487. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  5488. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5489. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5490. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  5491. + ;;
  5492. + esac
  5493. + ;;
  5494. + esac
  5495. + ;;
  5496. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5497. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5498. -esac
  5499. -])# AC_LIBTOOL_POSTDEP_PREDEP
  5500. + newsos6)
  5501. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5502. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5503. + ;;
  5504. -# AC_LIBTOOL_LANG_F77_CONFIG
  5505. -# ------------------------
  5506. -# Ensure that the configuration vars for the C compiler are
  5507. -# suitably defined. Those variables are subsequently used by
  5508. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5509. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5510. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5511. -[AC_REQUIRE([AC_PROG_F77])
  5512. -AC_LANG_PUSH(Fortran 77)
  5513. + *nto* | *qnx*)
  5514. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5515. + # it will coredump.
  5516. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5517. + ;;
  5518. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5519. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5520. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5521. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5522. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5523. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5524. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5525. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5526. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5527. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5528. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5529. -_LT_AC_TAGVAR(module_cmds, $1)=
  5530. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5531. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5532. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5533. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5534. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5535. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5536. + osf3* | osf4* | osf5*)
  5537. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5538. + # All OSF/1 code is PIC.
  5539. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5540. + ;;
  5541. -# Source file extension for f77 test sources.
  5542. -ac_ext=f
  5543. + rdos*)
  5544. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5545. + ;;
  5546. -# Object file extension for compiled f77 test sources.
  5547. -objext=o
  5548. -_LT_AC_TAGVAR(objext, $1)=$objext
  5549. + solaris*)
  5550. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5551. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5552. + case $cc_basename in
  5553. + f77* | f90* | f95*)
  5554. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  5555. + *)
  5556. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  5557. + esac
  5558. + ;;
  5559. -# Code to be used in simple compile tests
  5560. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  5561. + sunos4*)
  5562. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5563. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5564. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5565. + ;;
  5566. -# Code to be used in simple link tests
  5567. -lt_simple_link_test_code=" program t\n end\n"
  5568. + sysv4 | sysv4.2uw2* | sysv4.3*)
  5569. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5570. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5571. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5572. + ;;
  5573. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5574. -_LT_AC_SYS_COMPILER
  5575. + sysv4*MP*)
  5576. + if test -d /usr/nec ;then
  5577. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  5578. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5579. + fi
  5580. + ;;
  5581. -# Allow CC to be a program name with arguments.
  5582. -lt_save_CC="$CC"
  5583. -CC=${F77-"f77"}
  5584. -compiler=$CC
  5585. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5586. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  5587. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5588. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5589. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5590. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5591. + ;;
  5592. -AC_MSG_CHECKING([if libtool supports shared libraries])
  5593. -AC_MSG_RESULT([$can_build_shared])
  5594. + unicos*)
  5595. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5596. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5597. + ;;
  5598. -AC_MSG_CHECKING([whether to build shared libraries])
  5599. -test "$can_build_shared" = "no" && enable_shared=no
  5600. + uts4*)
  5601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5602. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5603. + ;;
  5604. -# On AIX, shared libraries and static libraries use the same namespace, and
  5605. -# are all built from PIC.
  5606. -case "$host_os" in
  5607. -aix3*)
  5608. - test "$enable_shared" = yes && enable_static=no
  5609. - if test -n "$RANLIB"; then
  5610. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5611. - postinstall_cmds='$RANLIB $lib'
  5612. + *)
  5613. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5614. + ;;
  5615. + esac
  5616. fi
  5617. - ;;
  5618. -aix4* | aix5*)
  5619. - test "$enable_shared" = yes && enable_static=no
  5620. - ;;
  5621. +])
  5622. +case $host_os in
  5623. + # For platforms which do not support PIC, -DPIC is meaningless:
  5624. + *djgpp*)
  5625. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5626. + ;;
  5627. + *)
  5628. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  5629. + ;;
  5630. esac
  5631. -AC_MSG_RESULT([$enable_shared])
  5632. -
  5633. -AC_MSG_CHECKING([whether to build static libraries])
  5634. -# Make sure either enable_shared or enable_static is yes.
  5635. -test "$enable_shared" = yes || enable_static=yes
  5636. -AC_MSG_RESULT([$enable_static])
  5637. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  5638. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  5639. + [How to pass a linker flag through the compiler])
  5640. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5641. -
  5642. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  5643. -_LT_AC_TAGVAR(LD, $1)="$LD"
  5644. -
  5645. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5646. -AC_LIBTOOL_PROG_CC_C_O($1)
  5647. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5648. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5649. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5650. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5651. -AC_LIBTOOL_SYS_LIB_STRIP
  5652. -
  5653. -
  5654. -AC_LIBTOOL_CONFIG($1)
  5655. -
  5656. -AC_LANG_POP
  5657. -CC="$lt_save_CC"
  5658. -])# AC_LIBTOOL_LANG_F77_CONFIG
  5659. +#
  5660. +# Check to make sure the PIC flag actually works.
  5661. +#
  5662. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  5663. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  5664. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  5665. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  5666. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  5667. + "" | " "*) ;;
  5668. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  5669. + esac],
  5670. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5671. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  5672. +fi
  5673. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  5674. + [Additional compiler flags for building library objects])
  5675. +#
  5676. +# Check to make sure the static flag actually works.
  5677. +#
  5678. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  5679. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  5680. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  5681. + $lt_tmp_static_flag,
  5682. + [],
  5683. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  5684. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  5685. + [Compiler flag to prevent dynamic linking])
  5686. +])# _LT_COMPILER_PIC
  5687. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  5688. -# --------------------------
  5689. -# Ensure that the configuration vars for the C compiler are
  5690. -# suitably defined. Those variables are subsequently used by
  5691. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5692. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5693. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5694. -[AC_LANG_SAVE
  5695. -# Source file extension for Java test sources.
  5696. -ac_ext=java
  5697. +# _LT_LINKER_SHLIBS([TAGNAME])
  5698. +# ----------------------------
  5699. +# See if the linker supports building shared libraries.
  5700. +m4_defun([_LT_LINKER_SHLIBS],
  5701. +[AC_REQUIRE([LT_PATH_LD])dnl
  5702. +AC_REQUIRE([LT_PATH_NM])dnl
  5703. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5704. +m4_require([_LT_DECL_EGREP])dnl
  5705. +m4_require([_LT_DECL_SED])dnl
  5706. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  5707. +m4_require([_LT_TAG_COMPILER])dnl
  5708. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5709. +m4_if([$1], [CXX], [
  5710. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5711. + case $host_os in
  5712. + aix[[4-9]]*)
  5713. + # If we're using GNU nm, then we don't want the "-C" option.
  5714. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  5715. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  5716. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5717. + else
  5718. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  5719. + fi
  5720. + ;;
  5721. + pw32*)
  5722. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  5723. + ;;
  5724. + cygwin* | mingw* | cegcc*)
  5725. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  5726. + ;;
  5727. + linux* | k*bsd*-gnu)
  5728. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5729. + ;;
  5730. + *)
  5731. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5732. + ;;
  5733. + esac
  5734. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5735. +], [
  5736. + runpath_var=
  5737. + _LT_TAGVAR(allow_undefined_flag, $1)=
  5738. + _LT_TAGVAR(always_export_symbols, $1)=no
  5739. + _LT_TAGVAR(archive_cmds, $1)=
  5740. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  5741. + _LT_TAGVAR(compiler_needs_object, $1)=no
  5742. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5743. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5744. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  5745. + _LT_TAGVAR(hardcode_automatic, $1)=no
  5746. + _LT_TAGVAR(hardcode_direct, $1)=no
  5747. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5748. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5749. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5750. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5751. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  5752. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5753. + _LT_TAGVAR(inherit_rpath, $1)=no
  5754. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5755. + _LT_TAGVAR(module_cmds, $1)=
  5756. + _LT_TAGVAR(module_expsym_cmds, $1)=
  5757. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  5758. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  5759. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  5760. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5761. + # include_expsyms should be a list of space-separated symbols to be *always*
  5762. + # included in the symbol list
  5763. + _LT_TAGVAR(include_expsyms, $1)=
  5764. + # exclude_expsyms can be an extended regexp of symbols to exclude
  5765. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  5766. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  5767. + # as well as any symbol that contains `d'.
  5768. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  5769. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  5770. + # platforms (ab)use it in PIC code, but their linkers get confused if
  5771. + # the symbol is explicitly referenced. Since portable code cannot
  5772. + # rely on this symbol name, it's probably fine to never include it in
  5773. + # preloaded symbol tables.
  5774. + # Exclude shared library initialization/finalization symbols.
  5775. +dnl Note also adjust exclude_expsyms for C++ above.
  5776. + extract_expsyms_cmds=
  5777. -# Object file extension for compiled Java test sources.
  5778. -objext=o
  5779. -_LT_AC_TAGVAR(objext, $1)=$objext
  5780. + case $host_os in
  5781. + cygwin* | mingw* | pw32* | cegcc*)
  5782. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  5783. + # When not using gcc, we currently assume that we are using
  5784. + # Microsoft Visual C++.
  5785. + if test "$GCC" != yes; then
  5786. + with_gnu_ld=no
  5787. + fi
  5788. + ;;
  5789. + interix*)
  5790. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  5791. + with_gnu_ld=yes
  5792. + ;;
  5793. + openbsd*)
  5794. + with_gnu_ld=no
  5795. + ;;
  5796. + linux* | k*bsd*-gnu)
  5797. + _LT_TAGVAR(link_all_deplibs, $1)=no
  5798. + ;;
  5799. + esac
  5800. -# Code to be used in simple compile tests
  5801. -lt_simple_compile_test_code="class foo {}\n"
  5802. + _LT_TAGVAR(ld_shlibs, $1)=yes
  5803. + if test "$with_gnu_ld" = yes; then
  5804. + # If archive_cmds runs LD, not CC, wlarc should be empty
  5805. + wlarc='${wl}'
  5806. -# Code to be used in simple link tests
  5807. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  5808. + # Set some defaults for GNU ld with shared library support. These
  5809. + # are reset later if shared libraries are not supported. Putting them
  5810. + # here allows them to be overridden if necessary.
  5811. + runpath_var=LD_RUN_PATH
  5812. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5813. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5814. + # ancient GNU ld didn't support --whole-archive et. al.
  5815. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  5816. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5817. + else
  5818. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5819. + fi
  5820. + supports_anon_versioning=no
  5821. + case `$LD -v 2>&1` in
  5822. + *GNU\ gold*) supports_anon_versioning=yes ;;
  5823. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  5824. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  5825. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  5826. + *\ 2.11.*) ;; # other 2.11 versions
  5827. + *) supports_anon_versioning=yes ;;
  5828. + esac
  5829. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5830. -_LT_AC_SYS_COMPILER
  5831. + # See if GNU ld supports shared libraries.
  5832. + case $host_os in
  5833. + aix[[3-9]]*)
  5834. + # On AIX/PPC, the GNU linker is very broken
  5835. + if test "$host_cpu" != ia64; then
  5836. + _LT_TAGVAR(ld_shlibs, $1)=no
  5837. + cat <<_LT_EOF 1>&2
  5838. -# Allow CC to be a program name with arguments.
  5839. -lt_save_CC="$CC"
  5840. -CC=${GCJ-"gcj"}
  5841. -compiler=$CC
  5842. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5843. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  5844. +*** to be unable to reliably create shared libraries on AIX.
  5845. +*** Therefore, libtool is disabling shared libraries support. If you
  5846. +*** really care for shared libraries, you may want to modify your PATH
  5847. +*** so that a non-GNU linker is found, and then restart.
  5848. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5849. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5850. +_LT_EOF
  5851. + fi
  5852. + ;;
  5853. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5854. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5855. -AC_LIBTOOL_PROG_CC_C_O($1)
  5856. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5857. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5858. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5859. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5860. -AC_LIBTOOL_SYS_LIB_STRIP
  5861. -AC_LIBTOOL_DLOPEN_SELF($1)
  5862. + amigaos*)
  5863. + case $host_cpu in
  5864. + powerpc)
  5865. + # see comment about AmigaOS4 .so support
  5866. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5867. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5868. + ;;
  5869. + m68k)
  5870. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  5871. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5872. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5873. + ;;
  5874. + esac
  5875. + ;;
  5876. -AC_LIBTOOL_CONFIG($1)
  5877. + beos*)
  5878. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5879. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5880. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5881. + # support --undefined. This deserves some investigation. FIXME
  5882. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5883. + else
  5884. + _LT_TAGVAR(ld_shlibs, $1)=no
  5885. + fi
  5886. + ;;
  5887. -AC_LANG_RESTORE
  5888. -CC="$lt_save_CC"
  5889. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  5890. + cygwin* | mingw* | pw32* | cegcc*)
  5891. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5892. + # as there is no search path for DLLs.
  5893. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5894. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5895. + _LT_TAGVAR(always_export_symbols, $1)=no
  5896. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5897. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  5898. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5899. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5900. + # If the export-symbols file already is a .def file (1st line
  5901. + # is EXPORTS), use it as is; otherwise, prepend...
  5902. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5903. + cp $export_symbols $output_objdir/$soname.def;
  5904. + else
  5905. + echo EXPORTS > $output_objdir/$soname.def;
  5906. + cat $export_symbols >> $output_objdir/$soname.def;
  5907. + fi~
  5908. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  5909. + else
  5910. + _LT_TAGVAR(ld_shlibs, $1)=no
  5911. + fi
  5912. + ;;
  5913. -# AC_LIBTOOL_LANG_RC_CONFIG
  5914. -# --------------------------
  5915. -# Ensure that the configuration vars for the Windows resource compiler are
  5916. -# suitably defined. Those variables are subsequently used by
  5917. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5918. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  5919. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  5920. -[AC_LANG_SAVE
  5921. + interix[[3-9]]*)
  5922. + _LT_TAGVAR(hardcode_direct, $1)=no
  5923. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5924. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5925. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5926. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5927. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  5928. + # default) and relocated if they conflict, which is a slow very memory
  5929. + # consuming and fragmenting process. To avoid this, we pick a random,
  5930. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5931. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5932. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5933. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  5934. + ;;
  5935. +
  5936. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  5937. + tmp_diet=no
  5938. + if test "$host_os" = linux-dietlibc; then
  5939. + case $cc_basename in
  5940. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  5941. + esac
  5942. + fi
  5943. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  5944. + && test "$tmp_diet" = no
  5945. + then
  5946. + tmp_addflag=
  5947. + tmp_sharedflag='-shared'
  5948. + case $cc_basename,$host_cpu in
  5949. + pgcc*) # Portland Group C compiler
  5950. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5951. + tmp_addflag=' $pic_flag'
  5952. + ;;
  5953. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  5954. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5955. + tmp_addflag=' $pic_flag -Mnomain' ;;
  5956. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  5957. + tmp_addflag=' -i_dynamic' ;;
  5958. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  5959. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  5960. + ifc* | ifort*) # Intel Fortran compiler
  5961. + tmp_addflag=' -nofor_main' ;;
  5962. + lf95*) # Lahey Fortran 8.1
  5963. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5964. + tmp_sharedflag='--shared' ;;
  5965. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  5966. + tmp_sharedflag='-qmkshrobj'
  5967. + tmp_addflag= ;;
  5968. + esac
  5969. + case `$CC -V 2>&1 | sed 5q` in
  5970. + *Sun\ C*) # Sun C 5.9
  5971. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  5972. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  5973. + tmp_sharedflag='-G' ;;
  5974. + *Sun\ F*) # Sun Fortran 8.3
  5975. + tmp_sharedflag='-G' ;;
  5976. + esac
  5977. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5978. -# Source file extension for RC test sources.
  5979. -ac_ext=rc
  5980. + if test "x$supports_anon_versioning" = xyes; then
  5981. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5982. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5983. + echo "local: *; };" >> $output_objdir/$libname.ver~
  5984. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5985. + fi
  5986. -# Object file extension for compiled RC test sources.
  5987. -objext=o
  5988. -_LT_AC_TAGVAR(objext, $1)=$objext
  5989. + case $cc_basename in
  5990. + xlf*)
  5991. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  5992. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  5993. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5994. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  5995. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  5996. + if test "x$supports_anon_versioning" = xyes; then
  5997. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5998. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5999. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6000. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6001. + fi
  6002. + ;;
  6003. + esac
  6004. + else
  6005. + _LT_TAGVAR(ld_shlibs, $1)=no
  6006. + fi
  6007. + ;;
  6008. -# Code to be used in simple compile tests
  6009. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6010. + netbsd* | netbsdelf*-gnu)
  6011. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6012. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6013. + wlarc=
  6014. + else
  6015. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6016. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6017. + fi
  6018. + ;;
  6019. -# Code to be used in simple link tests
  6020. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6021. + solaris*)
  6022. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6023. + _LT_TAGVAR(ld_shlibs, $1)=no
  6024. + cat <<_LT_EOF 1>&2
  6025. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6026. -_LT_AC_SYS_COMPILER
  6027. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6028. +*** create shared libraries on Solaris systems. Therefore, libtool
  6029. +*** is disabling shared libraries support. We urge you to upgrade GNU
  6030. +*** binutils to release 2.9.1 or newer. Another option is to modify
  6031. +*** your PATH or compiler configuration so that the native linker is
  6032. +*** used, and then restart.
  6033. -# Allow CC to be a program name with arguments.
  6034. -lt_save_CC="$CC"
  6035. -CC=${RC-"windres"}
  6036. -compiler=$CC
  6037. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6038. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6039. +_LT_EOF
  6040. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6041. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6042. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6043. + else
  6044. + _LT_TAGVAR(ld_shlibs, $1)=no
  6045. + fi
  6046. + ;;
  6047. -AC_LIBTOOL_CONFIG($1)
  6048. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6049. + case `$LD -v 2>&1` in
  6050. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  6051. + _LT_TAGVAR(ld_shlibs, $1)=no
  6052. + cat <<_LT_EOF 1>&2
  6053. -AC_LANG_RESTORE
  6054. -CC="$lt_save_CC"
  6055. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6056. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6057. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  6058. +*** is disabling shared libraries support. We urge you to upgrade GNU
  6059. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  6060. +*** your PATH or compiler configuration so that the native linker is
  6061. +*** used, and then restart.
  6062. +_LT_EOF
  6063. + ;;
  6064. + *)
  6065. + # For security reasons, it is highly recommended that you always
  6066. + # use absolute paths for naming shared libraries, and exclude the
  6067. + # DT_RUNPATH tag from executables and libraries. But doing so
  6068. + # requires that you compile everything twice, which is a pain.
  6069. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6070. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6071. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6072. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6073. + else
  6074. + _LT_TAGVAR(ld_shlibs, $1)=no
  6075. + fi
  6076. + ;;
  6077. + esac
  6078. + ;;
  6079. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6080. -# ----------------------------
  6081. -# If TAGNAME is not passed, then create an initial libtool script
  6082. -# with a default configuration from the untagged config vars. Otherwise
  6083. -# add code to config.status for appending the configuration named by
  6084. -# TAGNAME from the matching tagged config vars.
  6085. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6086. -[# The else clause should only fire when bootstrapping the
  6087. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6088. -# with your package, and you will get complaints that there are
  6089. -# no rules to generate ltmain.sh.
  6090. -if test -f "$ltmain"; then
  6091. - # See if we are running on zsh, and set the options which allow our commands through
  6092. - # without removal of \ escapes.
  6093. - if test -n "${ZSH_VERSION+set}" ; then
  6094. - setopt NO_GLOB_SUBST
  6095. - fi
  6096. - # Now quote all the things that may contain metacharacters while being
  6097. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6098. - # variables and quote the copies for generation of the libtool script.
  6099. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6100. - SED SHELL STRIP \
  6101. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6102. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6103. - deplibs_check_method reload_flag reload_cmds need_locks \
  6104. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6105. - lt_cv_sys_global_symbol_to_c_name_address \
  6106. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6107. - old_postinstall_cmds old_postuninstall_cmds \
  6108. - _LT_AC_TAGVAR(compiler, $1) \
  6109. - _LT_AC_TAGVAR(CC, $1) \
  6110. - _LT_AC_TAGVAR(LD, $1) \
  6111. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6112. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6113. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6114. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6115. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6116. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6117. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6118. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6119. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6120. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6121. - _LT_AC_TAGVAR(predep_objects, $1) \
  6122. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6123. - _LT_AC_TAGVAR(predeps, $1) \
  6124. - _LT_AC_TAGVAR(postdeps, $1) \
  6125. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6126. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6127. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6128. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6129. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6130. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6131. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6132. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6133. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6134. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6135. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6136. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6137. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6138. - _LT_AC_TAGVAR(module_cmds, $1) \
  6139. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6140. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6141. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6142. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6143. -
  6144. - case $var in
  6145. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6146. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6147. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6148. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6149. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6150. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6151. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6152. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6153. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6154. - postinstall_cmds | postuninstall_cmds | \
  6155. - old_postinstall_cmds | old_postuninstall_cmds | \
  6156. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6157. - # Double-quote double-evaled strings.
  6158. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6159. + sunos4*)
  6160. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6161. + wlarc=
  6162. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6163. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6164. ;;
  6165. +
  6166. *)
  6167. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6168. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6169. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6170. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6171. + else
  6172. + _LT_TAGVAR(ld_shlibs, $1)=no
  6173. + fi
  6174. ;;
  6175. esac
  6176. - done
  6177. -
  6178. - case $lt_echo in
  6179. - *'\[$]0 --fallback-echo"')
  6180. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6181. - ;;
  6182. - esac
  6183. -
  6184. -ifelse([$1], [],
  6185. - [cfgfile="${ofile}T"
  6186. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6187. - $rm -f "$cfgfile"
  6188. - AC_MSG_NOTICE([creating $ofile])],
  6189. - [cfgfile="$ofile"])
  6190. -
  6191. - cat <<__EOF__ >> "$cfgfile"
  6192. -ifelse([$1], [],
  6193. -[#! $SHELL
  6194. -
  6195. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6196. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6197. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6198. -#
  6199. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6200. -# Free Software Foundation, Inc.
  6201. -#
  6202. -# This file is part of GNU Libtool:
  6203. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6204. -#
  6205. -# This program is free software; you can redistribute it and/or modify
  6206. -# it under the terms of the GNU General Public License as published by
  6207. -# the Free Software Foundation; either version 2 of the License, or
  6208. -# (at your option) any later version.
  6209. -#
  6210. -# This program is distributed in the hope that it will be useful, but
  6211. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6212. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6213. -# General Public License for more details.
  6214. -#
  6215. -# You should have received a copy of the GNU General Public License
  6216. -# along with this program; if not, write to the Free Software
  6217. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  6218. -#
  6219. -# As a special exception to the GNU General Public License, if you
  6220. -# distribute this file as part of a program that contains a
  6221. -# configuration script generated by Autoconf, you may include it under
  6222. -# the same distribution terms that you use for the rest of that program.
  6223. -
  6224. -# A sed program that does not truncate output.
  6225. -SED=$lt_SED
  6226. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6227. -Xsed="$SED -e s/^X//"
  6228. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  6229. + runpath_var=
  6230. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6231. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6232. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6233. + fi
  6234. + else
  6235. + # PORTME fill in a description of your system's linker (not GNU ld)
  6236. + case $host_os in
  6237. + aix3*)
  6238. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6239. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6240. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  6241. + # Note: this linker hardcodes the directories in LIBPATH if there
  6242. + # are no directories specified by -L.
  6243. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6244. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6245. + # Neither direct hardcoding nor static linking is supported with a
  6246. + # broken collect2.
  6247. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6248. + fi
  6249. + ;;
  6250. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6251. -# if CDPATH is set.
  6252. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6253. + aix[[4-9]]*)
  6254. + if test "$host_cpu" = ia64; then
  6255. + # On IA64, the linker does run time linking by default, so we don't
  6256. + # have to do anything special.
  6257. + aix_use_runtimelinking=no
  6258. + exp_sym_flag='-Bexport'
  6259. + no_entry_flag=""
  6260. + else
  6261. + # If we're using GNU nm, then we don't want the "-C" option.
  6262. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6263. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6264. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6265. + else
  6266. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6267. + fi
  6268. + aix_use_runtimelinking=no
  6269. -# The names of the tagged configurations supported by this script.
  6270. -available_tags=
  6271. + # Test if we are trying to use run time linking or normal
  6272. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  6273. + # need to do runtime linking.
  6274. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6275. + for ld_flag in $LDFLAGS; do
  6276. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6277. + aix_use_runtimelinking=yes
  6278. + break
  6279. + fi
  6280. + done
  6281. + ;;
  6282. + esac
  6283. -# ### BEGIN LIBTOOL CONFIG],
  6284. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6285. + exp_sym_flag='-bexport'
  6286. + no_entry_flag='-bnoentry'
  6287. + fi
  6288. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6289. + # When large executables or shared objects are built, AIX ld can
  6290. + # have problems creating the table of contents. If linking a library
  6291. + # or program results in "error TOC overflow" add -mminimal-toc to
  6292. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6293. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6294. -# Shell to use when invoking shell scripts.
  6295. -SHELL=$lt_SHELL
  6296. + _LT_TAGVAR(archive_cmds, $1)=''
  6297. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6298. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6299. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6300. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6301. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6302. -# Whether or not to build shared libraries.
  6303. -build_libtool_libs=$enable_shared
  6304. + if test "$GCC" = yes; then
  6305. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6306. + # We only want to do this on AIX 4.2 and lower, the check
  6307. + # below for broken collect2 doesn't work under 4.3+
  6308. + collect2name=`${CC} -print-prog-name=collect2`
  6309. + if test -f "$collect2name" &&
  6310. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6311. + then
  6312. + # We have reworked collect2
  6313. + :
  6314. + else
  6315. + # We have old collect2
  6316. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6317. + # It fails to find uninstalled libraries when the uninstalled
  6318. + # path is not listed in the libpath. Setting hardcode_minus_L
  6319. + # to unsupported forces relinking
  6320. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6321. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6322. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6323. + fi
  6324. + ;;
  6325. + esac
  6326. + shared_flag='-shared'
  6327. + if test "$aix_use_runtimelinking" = yes; then
  6328. + shared_flag="$shared_flag "'${wl}-G'
  6329. + fi
  6330. + _LT_TAGVAR(link_all_deplibs, $1)=no
  6331. + else
  6332. + # not using gcc
  6333. + if test "$host_cpu" = ia64; then
  6334. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6335. + # chokes on -Wl,-G. The following line is correct:
  6336. + shared_flag='-G'
  6337. + else
  6338. + if test "$aix_use_runtimelinking" = yes; then
  6339. + shared_flag='${wl}-G'
  6340. + else
  6341. + shared_flag='${wl}-bM:SRE'
  6342. + fi
  6343. + fi
  6344. + fi
  6345. -# Whether or not to build static libraries.
  6346. -build_old_libs=$enable_static
  6347. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6348. + # It seems that -bexpall does not export symbols beginning with
  6349. + # underscore (_), so it is better to generate a list of symbols to export.
  6350. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6351. + if test "$aix_use_runtimelinking" = yes; then
  6352. + # Warning - without using the other runtime loading flags (-brtl),
  6353. + # -berok will link without error, but may produce a broken library.
  6354. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6355. + # Determine the default libpath from the value encoded in an
  6356. + # empty executable.
  6357. + _LT_SYS_MODULE_PATH_AIX
  6358. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6359. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6360. + else
  6361. + if test "$host_cpu" = ia64; then
  6362. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6363. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6364. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6365. + else
  6366. + # Determine the default libpath from the value encoded in an
  6367. + # empty executable.
  6368. + _LT_SYS_MODULE_PATH_AIX
  6369. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6370. + # Warning - without using the other run time loading flags,
  6371. + # -berok will link without error, but may produce a broken library.
  6372. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6373. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6374. + # Exported symbols can be pulled into shared objects from archives
  6375. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6376. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6377. + # This is similar to how AIX traditionally builds its shared libraries.
  6378. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6379. + fi
  6380. + fi
  6381. + ;;
  6382. -# Whether or not to add -lc for building shared libraries.
  6383. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6384. + amigaos*)
  6385. + case $host_cpu in
  6386. + powerpc)
  6387. + # see comment about AmigaOS4 .so support
  6388. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6389. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6390. + ;;
  6391. + m68k)
  6392. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6393. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6394. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6395. + ;;
  6396. + esac
  6397. + ;;
  6398. -# Whether or not to disallow shared libs when runtime libs are static
  6399. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6400. + bsdi[[45]]*)
  6401. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6402. + ;;
  6403. -# Whether or not to optimize for fast installation.
  6404. -fast_install=$enable_fast_install
  6405. + cygwin* | mingw* | pw32* | cegcc*)
  6406. + # When not using gcc, we currently assume that we are using
  6407. + # Microsoft Visual C++.
  6408. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  6409. + # no search path for DLLs.
  6410. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6411. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6412. + # Tell ltmain to make .lib files, not .a files.
  6413. + libext=lib
  6414. + # Tell ltmain to make .dll files, not .so files.
  6415. + shrext_cmds=".dll"
  6416. + # FIXME: Setting linknames here is a bad hack.
  6417. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6418. + # The linker will automatically build a .lib file if we build a DLL.
  6419. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6420. + # FIXME: Should let the user specify the lib program.
  6421. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6422. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6423. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6424. + ;;
  6425. -# The host system.
  6426. -host_alias=$host_alias
  6427. -host=$host
  6428. + darwin* | rhapsody*)
  6429. + _LT_DARWIN_LINKER_FEATURES($1)
  6430. + ;;
  6431. -# An echo program that does not interpret backslashes.
  6432. -echo=$lt_echo
  6433. + dgux*)
  6434. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6435. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6436. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6437. + ;;
  6438. -# The archiver.
  6439. -AR=$lt_AR
  6440. -AR_FLAGS=$lt_AR_FLAGS
  6441. + freebsd1*)
  6442. + _LT_TAGVAR(ld_shlibs, $1)=no
  6443. + ;;
  6444. -# A C compiler.
  6445. -LTCC=$lt_LTCC
  6446. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  6447. + # support. Future versions do this automatically, but an explicit c++rt0.o
  6448. + # does not break anything, and helps significantly (at the cost of a little
  6449. + # extra space).
  6450. + freebsd2.2*)
  6451. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  6452. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6453. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6454. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6455. + ;;
  6456. -# A language-specific compiler.
  6457. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6458. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  6459. + freebsd2*)
  6460. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6461. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6462. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6463. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6464. + ;;
  6465. -# Is the compiler the GNU C compiler?
  6466. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6467. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  6468. + freebsd* | dragonfly*)
  6469. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  6470. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6471. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6472. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6473. + ;;
  6474. -# An ERE matcher.
  6475. -EGREP=$lt_EGREP
  6476. + hpux9*)
  6477. + if test "$GCC" = yes; then
  6478. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6479. + else
  6480. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  6481. + fi
  6482. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6483. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6484. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6485. -# The linker used to build libraries.
  6486. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6487. + # hardcode_minus_L: Not really in the search PATH,
  6488. + # but as the default location of the library.
  6489. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6490. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6491. + ;;
  6492. -# Whether we need hard or soft links.
  6493. -LN_S=$lt_LN_S
  6494. + hpux10*)
  6495. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6496. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6497. + else
  6498. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  6499. + fi
  6500. + if test "$with_gnu_ld" = no; then
  6501. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6502. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  6503. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6504. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6505. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6506. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6507. + # hardcode_minus_L: Not really in the search PATH,
  6508. + # but as the default location of the library.
  6509. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6510. + fi
  6511. + ;;
  6512. -# A BSD-compatible nm program.
  6513. -NM=$lt_NM
  6514. + hpux11*)
  6515. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  6516. + case $host_cpu in
  6517. + hppa*64*)
  6518. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6519. + ;;
  6520. + ia64*)
  6521. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6522. + ;;
  6523. + *)
  6524. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6525. + ;;
  6526. + esac
  6527. + else
  6528. + case $host_cpu in
  6529. + hppa*64*)
  6530. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6531. + ;;
  6532. + ia64*)
  6533. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  6534. + ;;
  6535. + *)
  6536. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  6537. + ;;
  6538. + esac
  6539. + fi
  6540. + if test "$with_gnu_ld" = no; then
  6541. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  6542. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6543. -# A symbol stripping program
  6544. -STRIP=$lt_STRIP
  6545. + case $host_cpu in
  6546. + hppa*64*|ia64*)
  6547. + _LT_TAGVAR(hardcode_direct, $1)=no
  6548. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6549. + ;;
  6550. + *)
  6551. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6552. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6553. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6554. -# Used to examine libraries when file_magic_cmd begins "file"
  6555. -MAGIC_CMD=$MAGIC_CMD
  6556. + # hardcode_minus_L: Not really in the search PATH,
  6557. + # but as the default location of the library.
  6558. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6559. + ;;
  6560. + esac
  6561. + fi
  6562. + ;;
  6563. -# Used on cygwin: DLL creation program.
  6564. -DLLTOOL="$DLLTOOL"
  6565. + irix5* | irix6* | nonstopux*)
  6566. + if test "$GCC" = yes; then
  6567. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6568. + # Try to use the -exported_symbol ld option, if it does not
  6569. + # work, assume that -exports_file does not work either and
  6570. + # implicitly export all symbols.
  6571. + save_LDFLAGS="$LDFLAGS"
  6572. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  6573. + AC_LINK_IFELSE(int foo(void) {},
  6574. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  6575. + )
  6576. + LDFLAGS="$save_LDFLAGS"
  6577. + else
  6578. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6579. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  6580. + fi
  6581. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6582. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6583. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6584. + _LT_TAGVAR(inherit_rpath, $1)=yes
  6585. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6586. + ;;
  6587. -# Used on cygwin: object dumper.
  6588. -OBJDUMP="$OBJDUMP"
  6589. + netbsd* | netbsdelf*-gnu)
  6590. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6591. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  6592. + else
  6593. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  6594. + fi
  6595. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6596. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6597. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6598. + ;;
  6599. -# Used on cygwin: assembler.
  6600. -AS="$AS"
  6601. + newsos6)
  6602. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6603. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6604. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6605. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6606. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6607. + ;;
  6608. -# The name of the directory that contains temporary libtool files.
  6609. -objdir=$objdir
  6610. + *nto* | *qnx*)
  6611. + ;;
  6612. -# How to create reloadable object files.
  6613. -reload_flag=$lt_reload_flag
  6614. -reload_cmds=$lt_reload_cmds
  6615. + openbsd*)
  6616. + if test -f /usr/libexec/ld.so; then
  6617. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6618. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6619. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6620. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6621. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6622. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  6623. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6624. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6625. + else
  6626. + case $host_os in
  6627. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  6628. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6629. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6630. + ;;
  6631. + *)
  6632. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  6633. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6634. + ;;
  6635. + esac
  6636. + fi
  6637. + else
  6638. + _LT_TAGVAR(ld_shlibs, $1)=no
  6639. + fi
  6640. + ;;
  6641. -# How to pass a linker flag through the compiler.
  6642. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6643. + os2*)
  6644. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6645. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6646. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6647. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  6648. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  6649. + ;;
  6650. -# Object file suffix (normally "o").
  6651. -objext="$ac_objext"
  6652. + osf3*)
  6653. + if test "$GCC" = yes; then
  6654. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6655. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6656. + else
  6657. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6658. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6659. + fi
  6660. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6661. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6662. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6663. + ;;
  6664. -# Old archive suffix (normally "a").
  6665. -libext="$libext"
  6666. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  6667. + if test "$GCC" = yes; then
  6668. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6669. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6670. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6671. + else
  6672. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6673. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  6674. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  6675. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  6676. -# Shared library suffix (normally ".so").
  6677. -shrext_cmds='$shrext_cmds'
  6678. + # Both c and cxx compiler support -rpath directly
  6679. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6680. + fi
  6681. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  6682. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6683. + ;;
  6684. -# Executable file suffix (normally "").
  6685. -exeext="$exeext"
  6686. + solaris*)
  6687. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  6688. + if test "$GCC" = yes; then
  6689. + wlarc='${wl}'
  6690. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  6691. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6692. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6693. + else
  6694. + case `$CC -V 2>&1` in
  6695. + *"Compilers 5.0"*)
  6696. + wlarc=''
  6697. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6698. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6699. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  6700. + ;;
  6701. + *)
  6702. + wlarc='${wl}'
  6703. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6704. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6705. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  6706. + ;;
  6707. + esac
  6708. + fi
  6709. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6710. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6711. + case $host_os in
  6712. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6713. + *)
  6714. + # The compiler driver will combine and reorder linker options,
  6715. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  6716. + # but is careful enough not to reorder.
  6717. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  6718. + if test "$GCC" = yes; then
  6719. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6720. + else
  6721. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6722. + fi
  6723. + ;;
  6724. + esac
  6725. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6726. + ;;
  6727. -# Additional compiler flags for building library objects.
  6728. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6729. -pic_mode=$pic_mode
  6730. + sunos4*)
  6731. + if test "x$host_vendor" = xsequent; then
  6732. + # Use $CC to link under sequent, because it throws in some extra .o
  6733. + # files that make .init and .fini sections work.
  6734. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  6735. + else
  6736. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  6737. + fi
  6738. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6739. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6740. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6741. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6742. + ;;
  6743. -# What is the maximum length of a command?
  6744. -max_cmd_len=$lt_cv_sys_max_cmd_len
  6745. + sysv4)
  6746. + case $host_vendor in
  6747. + sni)
  6748. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6749. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  6750. + ;;
  6751. + siemens)
  6752. + ## LD is ld it makes a PLAMLIB
  6753. + ## CC just makes a GrossModule.
  6754. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  6755. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  6756. + _LT_TAGVAR(hardcode_direct, $1)=no
  6757. + ;;
  6758. + motorola)
  6759. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6760. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  6761. + ;;
  6762. + esac
  6763. + runpath_var='LD_RUN_PATH'
  6764. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6765. + ;;
  6766. -# Does compiler simultaneously support -c and -o options?
  6767. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6768. + sysv4.3*)
  6769. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6770. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6771. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  6772. + ;;
  6773. -# Must we lock files when doing compilation ?
  6774. -need_locks=$lt_need_locks
  6775. + sysv4*MP*)
  6776. + if test -d /usr/nec; then
  6777. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6778. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6779. + runpath_var=LD_RUN_PATH
  6780. + hardcode_runpath_var=yes
  6781. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6782. + fi
  6783. + ;;
  6784. -# Do we need the lib prefix for modules?
  6785. -need_lib_prefix=$need_lib_prefix
  6786. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6787. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6788. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6789. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6790. + runpath_var='LD_RUN_PATH'
  6791. -# Do we need a version for libraries?
  6792. -need_version=$need_version
  6793. + if test "$GCC" = yes; then
  6794. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6795. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6796. + else
  6797. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6798. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6799. + fi
  6800. + ;;
  6801. -# Whether dlopen is supported.
  6802. -dlopen_support=$enable_dlopen
  6803. + sysv5* | sco3.2v5* | sco5v6*)
  6804. + # Note: We can NOT use -z defs as we might desire, because we do not
  6805. + # link with -lc, and that would cause any symbols used from libc to
  6806. + # always be unresolved, which means just about no library would
  6807. + # ever link correctly. If we're not using GNU ld we use -z text
  6808. + # though, which does catch some bad symbols but isn't as heavy-handed
  6809. + # as -z defs.
  6810. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6811. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6812. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6813. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6814. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6815. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6816. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6817. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6818. + runpath_var='LD_RUN_PATH'
  6819. -# Whether dlopen of programs is supported.
  6820. -dlopen_self=$enable_dlopen_self
  6821. + if test "$GCC" = yes; then
  6822. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6823. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6824. + else
  6825. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6826. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6827. + fi
  6828. + ;;
  6829. -# Whether dlopen of statically linked programs is supported.
  6830. -dlopen_self_static=$enable_dlopen_self_static
  6831. + uts4*)
  6832. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  6833. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6834. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6835. + ;;
  6836. -# Compiler flag to prevent dynamic linking.
  6837. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6838. + *)
  6839. + _LT_TAGVAR(ld_shlibs, $1)=no
  6840. + ;;
  6841. + esac
  6842. -# Compiler flag to turn off builtin functions.
  6843. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6844. + if test x$host_vendor = xsni; then
  6845. + case $host in
  6846. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  6847. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  6848. + ;;
  6849. + esac
  6850. + fi
  6851. + fi
  6852. +])
  6853. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6854. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6855. -# Compiler flag to allow reflexive dlopens.
  6856. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6857. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  6858. -# Compiler flag to generate shared objects directly from archives.
  6859. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6860. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  6861. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  6862. +_LT_DECL([], [extract_expsyms_cmds], [2],
  6863. + [The commands to extract the exported symbol list from a shared archive])
  6864. -# Compiler flag to generate thread-safe objects.
  6865. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6866. +#
  6867. +# Do we need to explicitly link libc?
  6868. +#
  6869. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  6870. +x|xyes)
  6871. + # Assume -lc should be added
  6872. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6873. -# Library versioning type.
  6874. -version_type=$version_type
  6875. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  6876. + case $_LT_TAGVAR(archive_cmds, $1) in
  6877. + *'~'*)
  6878. + # FIXME: we may have to deal with multi-command sequences.
  6879. + ;;
  6880. + '$CC '*)
  6881. + # Test whether the compiler implicitly links with -lc since on some
  6882. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6883. + # to ld, don't add -lc before -lgcc.
  6884. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6885. + $RM conftest*
  6886. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6887. -# Format of library name prefix.
  6888. -libname_spec=$lt_libname_spec
  6889. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  6890. + soname=conftest
  6891. + lib=conftest
  6892. + libobjs=conftest.$ac_objext
  6893. + deplibs=
  6894. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  6895. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  6896. + compiler_flags=-v
  6897. + linker_flags=-v
  6898. + verstring=
  6899. + output_objdir=.
  6900. + libname=conftest
  6901. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  6902. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6903. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  6904. + then
  6905. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6906. + else
  6907. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6908. + fi
  6909. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  6910. + else
  6911. + cat conftest.err 1>&5
  6912. + fi
  6913. + $RM conftest*
  6914. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  6915. + ;;
  6916. + esac
  6917. + fi
  6918. + ;;
  6919. +esac
  6920. -# List of archive names. First name is the real one, the rest are links.
  6921. -# The last name is the one that the linker finds with -lNAME.
  6922. -library_names_spec=$lt_library_names_spec
  6923. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  6924. + [Whether or not to add -lc for building shared libraries])
  6925. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  6926. + [enable_shared_with_static_runtimes], [0],
  6927. + [Whether or not to disallow shared libs when runtime libs are static])
  6928. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  6929. + [Compiler flag to allow reflexive dlopens])
  6930. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  6931. + [Compiler flag to generate shared objects directly from archives])
  6932. +_LT_TAGDECL([], [compiler_needs_object], [1],
  6933. + [Whether the compiler copes with passing no objects directly])
  6934. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  6935. + [Create an old-style archive from a shared archive])
  6936. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  6937. + [Create a temporary old-style archive to link instead of a shared archive])
  6938. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  6939. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  6940. +_LT_TAGDECL([], [module_cmds], [2],
  6941. + [Commands used to build a loadable module if different from building
  6942. + a shared archive.])
  6943. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  6944. +_LT_TAGDECL([], [with_gnu_ld], [1],
  6945. + [Whether we are building with GNU ld or not])
  6946. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  6947. + [Flag that allows shared libraries with undefined symbols to be built])
  6948. +_LT_TAGDECL([], [no_undefined_flag], [1],
  6949. + [Flag that enforces no undefined symbols])
  6950. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  6951. + [Flag to hardcode $libdir into a binary during linking.
  6952. + This must work even if $libdir does not exist])
  6953. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  6954. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  6955. + during linking. This must work even if $libdir does not exist]])
  6956. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  6957. + [Whether we need a single "-rpath" flag with a separated argument])
  6958. +_LT_TAGDECL([], [hardcode_direct], [0],
  6959. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6960. + DIR into the resulting binary])
  6961. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  6962. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  6963. + DIR into the resulting binary and the resulting library dependency is
  6964. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  6965. + library is relocated])
  6966. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  6967. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  6968. + into the resulting binary])
  6969. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  6970. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  6971. + into the resulting binary])
  6972. +_LT_TAGDECL([], [hardcode_automatic], [0],
  6973. + [Set to "yes" if building a shared library automatically hardcodes DIR
  6974. + into the library and all subsequent libraries and executables linked
  6975. + against it])
  6976. +_LT_TAGDECL([], [inherit_rpath], [0],
  6977. + [Set to yes if linker adds runtime paths of dependent libraries
  6978. + to runtime path list])
  6979. +_LT_TAGDECL([], [link_all_deplibs], [0],
  6980. + [Whether libtool must link a program against all its dependency libraries])
  6981. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  6982. + [Fix the shell variable $srcfile for the compiler])
  6983. +_LT_TAGDECL([], [always_export_symbols], [0],
  6984. + [Set to "yes" if exported symbols are required])
  6985. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  6986. + [The commands to list exported symbols])
  6987. +_LT_TAGDECL([], [exclude_expsyms], [1],
  6988. + [Symbols that should not be listed in the preloaded symbols])
  6989. +_LT_TAGDECL([], [include_expsyms], [1],
  6990. + [Symbols that must always be exported])
  6991. +_LT_TAGDECL([], [prelink_cmds], [2],
  6992. + [Commands necessary for linking programs (against libraries) with templates])
  6993. +_LT_TAGDECL([], [file_list_spec], [1],
  6994. + [Specify filename containing input files])
  6995. +dnl FIXME: Not yet implemented
  6996. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  6997. +dnl [Compiler flag to generate thread safe objects])
  6998. +])# _LT_LINKER_SHLIBS
  6999. -# The coded name of the library, if different from the real name.
  7000. -soname_spec=$lt_soname_spec
  7001. -# Commands used to build and install an old-style archive.
  7002. -RANLIB=$lt_RANLIB
  7003. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7004. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7005. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7006. +# _LT_LANG_C_CONFIG([TAG])
  7007. +# ------------------------
  7008. +# Ensure that the configuration variables for a C compiler are suitably
  7009. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7010. +# the compiler configuration to `libtool'.
  7011. +m4_defun([_LT_LANG_C_CONFIG],
  7012. +[m4_require([_LT_DECL_EGREP])dnl
  7013. +lt_save_CC="$CC"
  7014. +AC_LANG_PUSH(C)
  7015. -# Create an old-style archive from a shared archive.
  7016. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7017. +# Source file extension for C test sources.
  7018. +ac_ext=c
  7019. -# Create a temporary old-style archive to link instead of a shared archive.
  7020. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7021. +# Object file extension for compiled C test sources.
  7022. +objext=o
  7023. +_LT_TAGVAR(objext, $1)=$objext
  7024. -# Commands used to build and install a shared archive.
  7025. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7026. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7027. -postinstall_cmds=$lt_postinstall_cmds
  7028. -postuninstall_cmds=$lt_postuninstall_cmds
  7029. +# Code to be used in simple compile tests
  7030. +lt_simple_compile_test_code="int some_variable = 0;"
  7031. -# Commands used to build a loadable module (assumed same as above if empty)
  7032. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7033. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7034. +# Code to be used in simple link tests
  7035. +lt_simple_link_test_code='int main(){return(0);}'
  7036. -# Commands to strip libraries.
  7037. -old_striplib=$lt_old_striplib
  7038. -striplib=$lt_striplib
  7039. +_LT_TAG_COMPILER
  7040. +# Save the default compiler, since it gets overwritten when the other
  7041. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7042. +compiler_DEFAULT=$CC
  7043. +
  7044. +# save warnings/boilerplate of simple test code
  7045. +_LT_COMPILER_BOILERPLATE
  7046. +_LT_LINKER_BOILERPLATE
  7047. +
  7048. +if test -n "$compiler"; then
  7049. + _LT_COMPILER_NO_RTTI($1)
  7050. + _LT_COMPILER_PIC($1)
  7051. + _LT_COMPILER_C_O($1)
  7052. + _LT_COMPILER_FILE_LOCKS($1)
  7053. + _LT_LINKER_SHLIBS($1)
  7054. + _LT_SYS_DYNAMIC_LINKER($1)
  7055. + _LT_LINKER_HARDCODE_LIBPATH($1)
  7056. + LT_SYS_DLOPEN_SELF
  7057. + _LT_CMD_STRIPLIB
  7058. +
  7059. + # Report which library types will actually be built
  7060. + AC_MSG_CHECKING([if libtool supports shared libraries])
  7061. + AC_MSG_RESULT([$can_build_shared])
  7062. -# Dependencies to place before the objects being linked to create a
  7063. -# shared library.
  7064. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7065. + AC_MSG_CHECKING([whether to build shared libraries])
  7066. + test "$can_build_shared" = "no" && enable_shared=no
  7067. -# Dependencies to place after the objects being linked to create a
  7068. -# shared library.
  7069. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7070. + # On AIX, shared libraries and static libraries use the same namespace, and
  7071. + # are all built from PIC.
  7072. + case $host_os in
  7073. + aix3*)
  7074. + test "$enable_shared" = yes && enable_static=no
  7075. + if test -n "$RANLIB"; then
  7076. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7077. + postinstall_cmds='$RANLIB $lib'
  7078. + fi
  7079. + ;;
  7080. -# Dependencies to place before the objects being linked to create a
  7081. -# shared library.
  7082. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7083. + aix[[4-9]]*)
  7084. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7085. + test "$enable_shared" = yes && enable_static=no
  7086. + fi
  7087. + ;;
  7088. + esac
  7089. + AC_MSG_RESULT([$enable_shared])
  7090. -# Dependencies to place after the objects being linked to create a
  7091. -# shared library.
  7092. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7093. + AC_MSG_CHECKING([whether to build static libraries])
  7094. + # Make sure either enable_shared or enable_static is yes.
  7095. + test "$enable_shared" = yes || enable_static=yes
  7096. + AC_MSG_RESULT([$enable_static])
  7097. -# The library search path used internally by the compiler when linking
  7098. -# a shared library.
  7099. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7100. + _LT_CONFIG($1)
  7101. +fi
  7102. +AC_LANG_POP
  7103. +CC="$lt_save_CC"
  7104. +])# _LT_LANG_C_CONFIG
  7105. -# Method to check whether dependent libraries are shared objects.
  7106. -deplibs_check_method=$lt_deplibs_check_method
  7107. -# Command to use when deplibs_check_method == file_magic.
  7108. -file_magic_cmd=$lt_file_magic_cmd
  7109. +# _LT_PROG_CXX
  7110. +# ------------
  7111. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  7112. +# compiler, we have our own version here.
  7113. +m4_defun([_LT_PROG_CXX],
  7114. +[
  7115. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  7116. +AC_PROG_CXX
  7117. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7118. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7119. + (test "X$CXX" != "Xg++"))) ; then
  7120. + AC_PROG_CXXCPP
  7121. +else
  7122. + _lt_caught_CXX_error=yes
  7123. +fi
  7124. +popdef([AC_MSG_ERROR])
  7125. +])# _LT_PROG_CXX
  7126. -# Flag that allows shared libraries with undefined symbols to be built.
  7127. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7128. +dnl aclocal-1.4 backwards compatibility:
  7129. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  7130. -# Flag that forces no undefined symbols.
  7131. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7132. -# Commands used to finish a libtool library installation in a directory.
  7133. -finish_cmds=$lt_finish_cmds
  7134. +# _LT_LANG_CXX_CONFIG([TAG])
  7135. +# --------------------------
  7136. +# Ensure that the configuration variables for a C++ compiler are suitably
  7137. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7138. +# the compiler configuration to `libtool'.
  7139. +m4_defun([_LT_LANG_CXX_CONFIG],
  7140. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  7141. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7142. +m4_require([_LT_DECL_EGREP])dnl
  7143. +
  7144. +AC_LANG_PUSH(C++)
  7145. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7146. +_LT_TAGVAR(allow_undefined_flag, $1)=
  7147. +_LT_TAGVAR(always_export_symbols, $1)=no
  7148. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  7149. +_LT_TAGVAR(compiler_needs_object, $1)=no
  7150. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7151. +_LT_TAGVAR(hardcode_direct, $1)=no
  7152. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7153. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7154. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7155. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  7156. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  7157. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7158. +_LT_TAGVAR(hardcode_automatic, $1)=no
  7159. +_LT_TAGVAR(inherit_rpath, $1)=no
  7160. +_LT_TAGVAR(module_cmds, $1)=
  7161. +_LT_TAGVAR(module_expsym_cmds, $1)=
  7162. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  7163. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7164. +_LT_TAGVAR(no_undefined_flag, $1)=
  7165. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  7166. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7167. -# Same as above, but a single script fragment to be evaled but not shown.
  7168. -finish_eval=$lt_finish_eval
  7169. +# Source file extension for C++ test sources.
  7170. +ac_ext=cpp
  7171. -# Take the output of nm and produce a listing of raw symbols and C names.
  7172. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7173. +# Object file extension for compiled C++ test sources.
  7174. +objext=o
  7175. +_LT_TAGVAR(objext, $1)=$objext
  7176. -# Transform the output of nm in a proper C declaration
  7177. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7178. +# No sense in running all these tests if we already determined that
  7179. +# the CXX compiler isn't working. Some variables (like enable_shared)
  7180. +# are currently assumed to apply to all compilers on this platform,
  7181. +# and will be corrupted by setting them based on a non-working compiler.
  7182. +if test "$_lt_caught_CXX_error" != yes; then
  7183. + # Code to be used in simple compile tests
  7184. + lt_simple_compile_test_code="int some_variable = 0;"
  7185. +
  7186. + # Code to be used in simple link tests
  7187. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  7188. +
  7189. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7190. + _LT_TAG_COMPILER
  7191. +
  7192. + # save warnings/boilerplate of simple test code
  7193. + _LT_COMPILER_BOILERPLATE
  7194. + _LT_LINKER_BOILERPLATE
  7195. +
  7196. + # Allow CC to be a program name with arguments.
  7197. + lt_save_CC=$CC
  7198. + lt_save_LD=$LD
  7199. + lt_save_GCC=$GCC
  7200. + GCC=$GXX
  7201. + lt_save_with_gnu_ld=$with_gnu_ld
  7202. + lt_save_path_LD=$lt_cv_path_LD
  7203. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  7204. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  7205. + else
  7206. + $as_unset lt_cv_prog_gnu_ld
  7207. + fi
  7208. + if test -n "${lt_cv_path_LDCXX+set}"; then
  7209. + lt_cv_path_LD=$lt_cv_path_LDCXX
  7210. + else
  7211. + $as_unset lt_cv_path_LD
  7212. + fi
  7213. + test -z "${LDCXX+set}" || LD=$LDCXX
  7214. + CC=${CXX-"c++"}
  7215. + compiler=$CC
  7216. + _LT_TAGVAR(compiler, $1)=$CC
  7217. + _LT_CC_BASENAME([$compiler])
  7218. +
  7219. + if test -n "$compiler"; then
  7220. + # We don't want -fno-exception when compiling C++ code, so set the
  7221. + # no_builtin_flag separately
  7222. + if test "$GXX" = yes; then
  7223. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7224. + else
  7225. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7226. + fi
  7227. -# Transform the output of nm in a C name address pair
  7228. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7229. -
  7230. -# This is the shared library runtime path variable.
  7231. -runpath_var=$runpath_var
  7232. + if test "$GXX" = yes; then
  7233. + # Set up default GNU C++ configuration
  7234. -# This is the shared library path variable.
  7235. -shlibpath_var=$shlibpath_var
  7236. + LT_PATH_LD
  7237. -# Is shlibpath searched before the hard-coded library search path?
  7238. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7239. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7240. + # archiving commands below assume that GNU ld is being used.
  7241. + if test "$with_gnu_ld" = yes; then
  7242. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7243. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7244. +
  7245. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7246. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7247. +
  7248. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7249. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7250. + # investigate it a little bit more. (MM)
  7251. + wlarc='${wl}'
  7252. +
  7253. + # ancient GNU ld didn't support --whole-archive et. al.
  7254. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7255. + $GREP 'no-whole-archive' > /dev/null; then
  7256. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7257. + else
  7258. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7259. + fi
  7260. + else
  7261. + with_gnu_ld=no
  7262. + wlarc=
  7263. -# How to hardcode a shared library path into an executable.
  7264. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7265. + # A generic and very simple default shared library creation
  7266. + # command for GNU C++ for the case where it uses the native
  7267. + # linker, instead of GNU ld. If possible, this setting should
  7268. + # overridden to take advantage of the native linker features on
  7269. + # the platform it is being used on.
  7270. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7271. + fi
  7272. -# Whether we should hardcode library paths into libraries.
  7273. -hardcode_into_libs=$hardcode_into_libs
  7274. + # Commands to make compiler produce verbose output that lists
  7275. + # what "hidden" libraries, object files and flags are used when
  7276. + # linking a shared library.
  7277. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7278. -# Flag to hardcode \$libdir into a binary during linking.
  7279. -# This must work even if \$libdir does not exist.
  7280. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7281. + else
  7282. + GXX=no
  7283. + with_gnu_ld=no
  7284. + wlarc=
  7285. + fi
  7286. -# If ld is used when linking, flag to hardcode \$libdir into
  7287. -# a binary during linking. This must work even if \$libdir does
  7288. -# not exist.
  7289. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7290. + # PORTME: fill in a description of your system's C++ link characteristics
  7291. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7292. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7293. + case $host_os in
  7294. + aix3*)
  7295. + # FIXME: insert proper C++ library support
  7296. + _LT_TAGVAR(ld_shlibs, $1)=no
  7297. + ;;
  7298. + aix[[4-9]]*)
  7299. + if test "$host_cpu" = ia64; then
  7300. + # On IA64, the linker does run time linking by default, so we don't
  7301. + # have to do anything special.
  7302. + aix_use_runtimelinking=no
  7303. + exp_sym_flag='-Bexport'
  7304. + no_entry_flag=""
  7305. + else
  7306. + aix_use_runtimelinking=no
  7307. -# Whether we need a single -rpath flag with a separated argument.
  7308. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7309. + # Test if we are trying to use run time linking or normal
  7310. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7311. + # need to do runtime linking.
  7312. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  7313. + for ld_flag in $LDFLAGS; do
  7314. + case $ld_flag in
  7315. + *-brtl*)
  7316. + aix_use_runtimelinking=yes
  7317. + break
  7318. + ;;
  7319. + esac
  7320. + done
  7321. + ;;
  7322. + esac
  7323. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7324. -# resulting binary.
  7325. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7326. + exp_sym_flag='-bexport'
  7327. + no_entry_flag='-bnoentry'
  7328. + fi
  7329. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7330. -# resulting binary.
  7331. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7332. + # When large executables or shared objects are built, AIX ld can
  7333. + # have problems creating the table of contents. If linking a library
  7334. + # or program results in "error TOC overflow" add -mminimal-toc to
  7335. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7336. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7337. +
  7338. + _LT_TAGVAR(archive_cmds, $1)=''
  7339. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7340. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7341. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7342. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7343. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  7344. +
  7345. + if test "$GXX" = yes; then
  7346. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  7347. + # We only want to do this on AIX 4.2 and lower, the check
  7348. + # below for broken collect2 doesn't work under 4.3+
  7349. + collect2name=`${CC} -print-prog-name=collect2`
  7350. + if test -f "$collect2name" &&
  7351. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7352. + then
  7353. + # We have reworked collect2
  7354. + :
  7355. + else
  7356. + # We have old collect2
  7357. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  7358. + # It fails to find uninstalled libraries when the uninstalled
  7359. + # path is not listed in the libpath. Setting hardcode_minus_L
  7360. + # to unsupported forces relinking
  7361. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7362. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7363. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7364. + fi
  7365. + esac
  7366. + shared_flag='-shared'
  7367. + if test "$aix_use_runtimelinking" = yes; then
  7368. + shared_flag="$shared_flag "'${wl}-G'
  7369. + fi
  7370. + else
  7371. + # not using gcc
  7372. + if test "$host_cpu" = ia64; then
  7373. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7374. + # chokes on -Wl,-G. The following line is correct:
  7375. + shared_flag='-G'
  7376. + else
  7377. + if test "$aix_use_runtimelinking" = yes; then
  7378. + shared_flag='${wl}-G'
  7379. + else
  7380. + shared_flag='${wl}-bM:SRE'
  7381. + fi
  7382. + fi
  7383. + fi
  7384. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7385. -# the resulting binary.
  7386. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  7387. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  7388. + # It seems that -bexpall does not export symbols beginning with
  7389. + # underscore (_), so it is better to generate a list of symbols to
  7390. + # export.
  7391. + _LT_TAGVAR(always_export_symbols, $1)=yes
  7392. + if test "$aix_use_runtimelinking" = yes; then
  7393. + # Warning - without using the other runtime loading flags (-brtl),
  7394. + # -berok will link without error, but may produce a broken library.
  7395. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  7396. + # Determine the default libpath from the value encoded in an empty
  7397. + # executable.
  7398. + _LT_SYS_MODULE_PATH_AIX
  7399. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7400. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  7401. -# and all subsequent libraries and executables linked against it.
  7402. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  7403. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7404. + else
  7405. + if test "$host_cpu" = ia64; then
  7406. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7407. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7408. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7409. + else
  7410. + # Determine the default libpath from the value encoded in an
  7411. + # empty executable.
  7412. + _LT_SYS_MODULE_PATH_AIX
  7413. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7414. + # Warning - without using the other run time loading flags,
  7415. + # -berok will link without error, but may produce a broken library.
  7416. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7417. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7418. + # Exported symbols can be pulled into shared objects from archives
  7419. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  7420. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7421. + # This is similar to how AIX traditionally builds its shared
  7422. + # libraries.
  7423. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7424. + fi
  7425. + fi
  7426. + ;;
  7427. -# Variables whose values should be saved in libtool wrapper scripts and
  7428. -# restored at relink time.
  7429. -variables_saved_for_relink="$variables_saved_for_relink"
  7430. + beos*)
  7431. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7432. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7433. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7434. + # support --undefined. This deserves some investigation. FIXME
  7435. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7436. + else
  7437. + _LT_TAGVAR(ld_shlibs, $1)=no
  7438. + fi
  7439. + ;;
  7440. -# Whether libtool must link a program against all its dependency libraries.
  7441. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  7442. + chorus*)
  7443. + case $cc_basename in
  7444. + *)
  7445. + # FIXME: insert proper C++ library support
  7446. + _LT_TAGVAR(ld_shlibs, $1)=no
  7447. + ;;
  7448. + esac
  7449. + ;;
  7450. -# Compile-time system search path for libraries
  7451. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7452. + cygwin* | mingw* | pw32* | cegcc*)
  7453. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7454. + # as there is no search path for DLLs.
  7455. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7456. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7457. + _LT_TAGVAR(always_export_symbols, $1)=no
  7458. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7459. +
  7460. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7461. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7462. + # If the export-symbols file already is a .def file (1st line
  7463. + # is EXPORTS), use it as is; otherwise, prepend...
  7464. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7465. + cp $export_symbols $output_objdir/$soname.def;
  7466. + else
  7467. + echo EXPORTS > $output_objdir/$soname.def;
  7468. + cat $export_symbols >> $output_objdir/$soname.def;
  7469. + fi~
  7470. + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7471. + else
  7472. + _LT_TAGVAR(ld_shlibs, $1)=no
  7473. + fi
  7474. + ;;
  7475. + darwin* | rhapsody*)
  7476. + _LT_DARWIN_LINKER_FEATURES($1)
  7477. + ;;
  7478. -# Run-time system search path for libraries
  7479. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7480. + dgux*)
  7481. + case $cc_basename in
  7482. + ec++*)
  7483. + # FIXME: insert proper C++ library support
  7484. + _LT_TAGVAR(ld_shlibs, $1)=no
  7485. + ;;
  7486. + ghcx*)
  7487. + # Green Hills C++ Compiler
  7488. + # FIXME: insert proper C++ library support
  7489. + _LT_TAGVAR(ld_shlibs, $1)=no
  7490. + ;;
  7491. + *)
  7492. + # FIXME: insert proper C++ library support
  7493. + _LT_TAGVAR(ld_shlibs, $1)=no
  7494. + ;;
  7495. + esac
  7496. + ;;
  7497. -# Fix the shell variable \$srcfile for the compiler.
  7498. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  7499. + freebsd[[12]]*)
  7500. + # C++ shared libraries reported to be fairly broken before
  7501. + # switch to ELF
  7502. + _LT_TAGVAR(ld_shlibs, $1)=no
  7503. + ;;
  7504. -# Set to yes if exported symbols are required.
  7505. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  7506. + freebsd-elf*)
  7507. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7508. + ;;
  7509. -# The commands to list exported symbols.
  7510. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  7511. + freebsd* | dragonfly*)
  7512. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  7513. + # conventions
  7514. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7515. + ;;
  7516. -# The commands to extract the exported symbol list from a shared archive.
  7517. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7518. + gnu*)
  7519. + ;;
  7520. -# Symbols that should not be listed in the preloaded symbols.
  7521. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  7522. + hpux9*)
  7523. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7524. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7525. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7526. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7527. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7528. + # but as the default
  7529. + # location of the library.
  7530. +
  7531. + case $cc_basename in
  7532. + CC*)
  7533. + # FIXME: insert proper C++ library support
  7534. + _LT_TAGVAR(ld_shlibs, $1)=no
  7535. + ;;
  7536. + aCC*)
  7537. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7538. + # Commands to make compiler produce verbose output that lists
  7539. + # what "hidden" libraries, object files and flags are used when
  7540. + # linking a shared library.
  7541. + #
  7542. + # There doesn't appear to be a way to prevent this compiler from
  7543. + # explicitly linking system object files so we need to strip them
  7544. + # from the output so that they don't get included in the library
  7545. + # dependencies.
  7546. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7547. + ;;
  7548. + *)
  7549. + if test "$GXX" = yes; then
  7550. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7551. + else
  7552. + # FIXME: insert proper C++ library support
  7553. + _LT_TAGVAR(ld_shlibs, $1)=no
  7554. + fi
  7555. + ;;
  7556. + esac
  7557. + ;;
  7558. -# Symbols that must always be exported.
  7559. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  7560. + hpux10*|hpux11*)
  7561. + if test $with_gnu_ld = no; then
  7562. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7563. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7564. +
  7565. + case $host_cpu in
  7566. + hppa*64*|ia64*)
  7567. + ;;
  7568. + *)
  7569. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7570. + ;;
  7571. + esac
  7572. + fi
  7573. + case $host_cpu in
  7574. + hppa*64*|ia64*)
  7575. + _LT_TAGVAR(hardcode_direct, $1)=no
  7576. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7577. + ;;
  7578. + *)
  7579. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7580. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7581. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  7582. + # but as the default
  7583. + # location of the library.
  7584. + ;;
  7585. + esac
  7586. -ifelse([$1],[],
  7587. -[# ### END LIBTOOL CONFIG],
  7588. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  7589. + case $cc_basename in
  7590. + CC*)
  7591. + # FIXME: insert proper C++ library support
  7592. + _LT_TAGVAR(ld_shlibs, $1)=no
  7593. + ;;
  7594. + aCC*)
  7595. + case $host_cpu in
  7596. + hppa*64*)
  7597. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7598. + ;;
  7599. + ia64*)
  7600. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7601. + ;;
  7602. + *)
  7603. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7604. + ;;
  7605. + esac
  7606. + # Commands to make compiler produce verbose output that lists
  7607. + # what "hidden" libraries, object files and flags are used when
  7608. + # linking a shared library.
  7609. + #
  7610. + # There doesn't appear to be a way to prevent this compiler from
  7611. + # explicitly linking system object files so we need to strip them
  7612. + # from the output so that they don't get included in the library
  7613. + # dependencies.
  7614. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7615. + ;;
  7616. + *)
  7617. + if test "$GXX" = yes; then
  7618. + if test $with_gnu_ld = no; then
  7619. + case $host_cpu in
  7620. + hppa*64*)
  7621. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7622. + ;;
  7623. + ia64*)
  7624. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7625. + ;;
  7626. + *)
  7627. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7628. + ;;
  7629. + esac
  7630. + fi
  7631. + else
  7632. + # FIXME: insert proper C++ library support
  7633. + _LT_TAGVAR(ld_shlibs, $1)=no
  7634. + fi
  7635. + ;;
  7636. + esac
  7637. + ;;
  7638. -__EOF__
  7639. + interix[[3-9]]*)
  7640. + _LT_TAGVAR(hardcode_direct, $1)=no
  7641. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7642. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7643. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7644. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7645. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7646. + # default) and relocated if they conflict, which is a slow very memory
  7647. + # consuming and fragmenting process. To avoid this, we pick a random,
  7648. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7649. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7650. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7651. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7652. + ;;
  7653. + irix5* | irix6*)
  7654. + case $cc_basename in
  7655. + CC*)
  7656. + # SGI C++
  7657. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7658. +
  7659. + # Archives containing C++ object files must be created using
  7660. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  7661. + # necessary to make sure instantiated templates are included
  7662. + # in the archive.
  7663. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  7664. + ;;
  7665. + *)
  7666. + if test "$GXX" = yes; then
  7667. + if test "$with_gnu_ld" = no; then
  7668. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7669. + else
  7670. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  7671. + fi
  7672. + fi
  7673. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7674. + ;;
  7675. + esac
  7676. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7677. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7678. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7679. + ;;
  7680. -ifelse([$1],[], [
  7681. - case $host_os in
  7682. - aix3*)
  7683. - cat <<\EOF >> "$cfgfile"
  7684. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7685. + case $cc_basename in
  7686. + KCC*)
  7687. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7688. +
  7689. + # KCC will only create a shared library if the output file
  7690. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7691. + # to its proper name (with version) after linking.
  7692. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7693. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  7694. + # Commands to make compiler produce verbose output that lists
  7695. + # what "hidden" libraries, object files and flags are used when
  7696. + # linking a shared library.
  7697. + #
  7698. + # There doesn't appear to be a way to prevent this compiler from
  7699. + # explicitly linking system object files so we need to strip them
  7700. + # from the output so that they don't get included in the library
  7701. + # dependencies.
  7702. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7703. +
  7704. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7705. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7706. +
  7707. + # Archives containing C++ object files must be created using
  7708. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  7709. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  7710. + ;;
  7711. + icpc* | ecpc* )
  7712. + # Intel C++
  7713. + with_gnu_ld=yes
  7714. + # version 8.0 and above of icpc choke on multiply defined symbols
  7715. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  7716. + # earlier do not add the objects themselves.
  7717. + case `$CC -V 2>&1` in
  7718. + *"Version 7."*)
  7719. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7720. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7721. + ;;
  7722. + *) # Version 8.0 or newer
  7723. + tmp_idyn=
  7724. + case $host_cpu in
  7725. + ia64*) tmp_idyn=' -i_dynamic';;
  7726. + esac
  7727. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7728. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7729. + ;;
  7730. + esac
  7731. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7732. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7733. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7734. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7735. + ;;
  7736. + pgCC* | pgcpp*)
  7737. + # Portland Group C++ compiler
  7738. + case `$CC -V` in
  7739. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  7740. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  7741. + rm -rf $tpldir~
  7742. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  7743. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  7744. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  7745. + rm -rf $tpldir~
  7746. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  7747. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  7748. + $RANLIB $oldlib'
  7749. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  7750. + rm -rf $tpldir~
  7751. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7752. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7753. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  7754. + rm -rf $tpldir~
  7755. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  7756. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7757. + ;;
  7758. + *) # Version 6 will use weak symbols
  7759. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  7760. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  7761. + ;;
  7762. + esac
  7763. -# AIX sometimes has problems with the GCC collect2 program. For some
  7764. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7765. -# vanish in a puff of smoke.
  7766. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7767. - COLLECT_NAMES=
  7768. - export COLLECT_NAMES
  7769. -fi
  7770. -EOF
  7771. - ;;
  7772. - esac
  7773. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7774. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7775. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7776. + ;;
  7777. + cxx*)
  7778. + # Compaq C++
  7779. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7780. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  7781. - # We use sed instead of cat because bash on DJGPP gets confused if
  7782. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7783. - # text mode, it properly converts lines to CR/LF. This bash problem
  7784. - # is reportedly fixed, but why not run on old versions too?
  7785. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  7786. + runpath_var=LD_RUN_PATH
  7787. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7788. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7789. - mv -f "$cfgfile" "$ofile" || \
  7790. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  7791. - chmod +x "$ofile"
  7792. -])
  7793. -else
  7794. - # If there is no Makefile yet, we rely on a make rule to execute
  7795. - # `config.status --recheck' to rerun these tests and create the
  7796. - # libtool script then.
  7797. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  7798. - if test -f "$ltmain_in"; then
  7799. - test -f Makefile && make "$ltmain"
  7800. - fi
  7801. -fi
  7802. -])# AC_LIBTOOL_CONFIG
  7803. + # Commands to make compiler produce verbose output that lists
  7804. + # what "hidden" libraries, object files and flags are used when
  7805. + # linking a shared library.
  7806. + #
  7807. + # There doesn't appear to be a way to prevent this compiler from
  7808. + # explicitly linking system object files so we need to strip them
  7809. + # from the output so that they don't get included in the library
  7810. + # dependencies.
  7811. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7812. + ;;
  7813. + xl*)
  7814. + # IBM XL 8.0 on PPC, with GNU ld
  7815. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7816. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7817. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7818. + if test "x$supports_anon_versioning" = xyes; then
  7819. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7820. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7821. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7822. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7823. + fi
  7824. + ;;
  7825. + *)
  7826. + case `$CC -V 2>&1 | sed 5q` in
  7827. + *Sun\ C*)
  7828. + # Sun C++ 5.9
  7829. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  7830. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  7831. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  7832. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7833. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7834. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7835. +
  7836. + # Not sure whether something based on
  7837. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  7838. + # would be better.
  7839. + output_verbose_link_cmd='echo'
  7840. +
  7841. + # Archives containing C++ object files must be created using
  7842. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  7843. + # necessary to make sure instantiated templates are included
  7844. + # in the archive.
  7845. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  7846. + ;;
  7847. + esac
  7848. + ;;
  7849. + esac
  7850. + ;;
  7851. + lynxos*)
  7852. + # FIXME: insert proper C++ library support
  7853. + _LT_TAGVAR(ld_shlibs, $1)=no
  7854. + ;;
  7855. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  7856. -# -------------------------------------------
  7857. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  7858. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  7859. + m88k*)
  7860. + # FIXME: insert proper C++ library support
  7861. + _LT_TAGVAR(ld_shlibs, $1)=no
  7862. + ;;
  7863. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7864. + mvs*)
  7865. + case $cc_basename in
  7866. + cxx*)
  7867. + # FIXME: insert proper C++ library support
  7868. + _LT_TAGVAR(ld_shlibs, $1)=no
  7869. + ;;
  7870. + *)
  7871. + # FIXME: insert proper C++ library support
  7872. + _LT_TAGVAR(ld_shlibs, $1)=no
  7873. + ;;
  7874. + esac
  7875. + ;;
  7876. -if test "$GCC" = yes; then
  7877. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7878. + netbsd*)
  7879. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7880. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  7881. + wlarc=
  7882. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7883. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7884. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7885. + fi
  7886. + # Workaround some broken pre-1.5 toolchains
  7887. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  7888. + ;;
  7889. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  7890. - lt_cv_prog_compiler_rtti_exceptions,
  7891. - [-fno-rtti -fno-exceptions], [],
  7892. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  7893. -fi
  7894. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  7895. + *nto* | *qnx*)
  7896. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7897. + ;;
  7898. + openbsd2*)
  7899. + # C++ shared libraries are fairly broken
  7900. + _LT_TAGVAR(ld_shlibs, $1)=no
  7901. + ;;
  7902. +
  7903. + openbsd*)
  7904. + if test -f /usr/libexec/ld.so; then
  7905. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7906. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7907. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7908. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7909. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7910. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7911. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  7912. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7913. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7914. + fi
  7915. + output_verbose_link_cmd=echo
  7916. + else
  7917. + _LT_TAGVAR(ld_shlibs, $1)=no
  7918. + fi
  7919. + ;;
  7920. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  7921. -# ---------------------------------
  7922. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  7923. -[AC_REQUIRE([AC_CANONICAL_HOST])
  7924. -AC_REQUIRE([AC_PROG_NM])
  7925. -AC_REQUIRE([AC_OBJEXT])
  7926. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  7927. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  7928. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  7929. -[
  7930. -# These are sane defaults that work on at least a few old systems.
  7931. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  7932. + osf3* | osf4* | osf5*)
  7933. + case $cc_basename in
  7934. + KCC*)
  7935. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  7936. +
  7937. + # KCC will only create a shared library if the output file
  7938. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  7939. + # to its proper name (with version) after linking.
  7940. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  7941. +
  7942. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7943. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7944. +
  7945. + # Archives containing C++ object files must be created using
  7946. + # the KAI C++ compiler.
  7947. + case $host in
  7948. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  7949. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  7950. + esac
  7951. + ;;
  7952. + RCC*)
  7953. + # Rational C++ 2.4.1
  7954. + # FIXME: insert proper C++ library support
  7955. + _LT_TAGVAR(ld_shlibs, $1)=no
  7956. + ;;
  7957. + cxx*)
  7958. + case $host in
  7959. + osf3*)
  7960. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7961. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7962. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7963. + ;;
  7964. + *)
  7965. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7966. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7967. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  7968. + echo "-hidden">> $lib.exp~
  7969. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  7970. + $RM $lib.exp'
  7971. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7972. + ;;
  7973. + esac
  7974. -# Character class describing NM global symbol codes.
  7975. -symcode='[[BCDEGRST]]'
  7976. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7977. -# Regexp to match symbols that can be accessed directly from C.
  7978. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  7979. + # Commands to make compiler produce verbose output that lists
  7980. + # what "hidden" libraries, object files and flags are used when
  7981. + # linking a shared library.
  7982. + #
  7983. + # There doesn't appear to be a way to prevent this compiler from
  7984. + # explicitly linking system object files so we need to strip them
  7985. + # from the output so that they don't get included in the library
  7986. + # dependencies.
  7987. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  7988. + ;;
  7989. + *)
  7990. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  7991. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7992. + case $host in
  7993. + osf3*)
  7994. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7995. + ;;
  7996. + *)
  7997. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7998. + ;;
  7999. + esac
  8000. +
  8001. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8002. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8003. +
  8004. + # Commands to make compiler produce verbose output that lists
  8005. + # what "hidden" libraries, object files and flags are used when
  8006. + # linking a shared library.
  8007. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8008. +
  8009. + else
  8010. + # FIXME: insert proper C++ library support
  8011. + _LT_TAGVAR(ld_shlibs, $1)=no
  8012. + fi
  8013. + ;;
  8014. + esac
  8015. + ;;
  8016. -# Transform the above into a raw symbol and a C symbol.
  8017. -symxfrm='\1 \2\3 \3'
  8018. + psos*)
  8019. + # FIXME: insert proper C++ library support
  8020. + _LT_TAGVAR(ld_shlibs, $1)=no
  8021. + ;;
  8022. -# Transform an extracted symbol line into a proper C declaration
  8023. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8024. + sunos4*)
  8025. + case $cc_basename in
  8026. + CC*)
  8027. + # Sun C++ 4.x
  8028. + # FIXME: insert proper C++ library support
  8029. + _LT_TAGVAR(ld_shlibs, $1)=no
  8030. + ;;
  8031. + lcc*)
  8032. + # Lucid
  8033. + # FIXME: insert proper C++ library support
  8034. + _LT_TAGVAR(ld_shlibs, $1)=no
  8035. + ;;
  8036. + *)
  8037. + # FIXME: insert proper C++ library support
  8038. + _LT_TAGVAR(ld_shlibs, $1)=no
  8039. + ;;
  8040. + esac
  8041. + ;;
  8042. -# Transform an extracted symbol line into symbol name and symbol address
  8043. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8044. + solaris*)
  8045. + case $cc_basename in
  8046. + CC*)
  8047. + # Sun C++ 4.2, 5.x and Centerline C++
  8048. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  8049. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8050. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8051. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8052. + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8053. +
  8054. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8055. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8056. + case $host_os in
  8057. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8058. + *)
  8059. + # The compiler driver will combine and reorder linker options,
  8060. + # but understands `-z linker_flag'.
  8061. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8062. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8063. + ;;
  8064. + esac
  8065. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8066. -# Define system-specific variables.
  8067. -case $host_os in
  8068. -aix*)
  8069. - symcode='[[BCDT]]'
  8070. - ;;
  8071. -cygwin* | mingw* | pw32*)
  8072. - symcode='[[ABCDGISTW]]'
  8073. - ;;
  8074. -hpux*) # Its linker distinguishes data from code symbols
  8075. - if test "$host_cpu" = ia64; then
  8076. - symcode='[[ABCDEGRST]]'
  8077. - fi
  8078. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8079. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  8080. - ;;
  8081. -irix* | nonstopux*)
  8082. - symcode='[[BCDEGRST]]'
  8083. - ;;
  8084. -osf*)
  8085. - symcode='[[BCDEGQRST]]'
  8086. - ;;
  8087. -solaris* | sysv5*)
  8088. - symcode='[[BDRT]]'
  8089. - ;;
  8090. -sysv4)
  8091. - symcode='[[DFNSTU]]'
  8092. - ;;
  8093. -esac
  8094. + output_verbose_link_cmd='echo'
  8095. -# Handle CRLF in mingw tool chain
  8096. -opt_cr=
  8097. -case $build_os in
  8098. -mingw*)
  8099. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8100. - ;;
  8101. -esac
  8102. + # Archives containing C++ object files must be created using
  8103. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8104. + # necessary to make sure instantiated templates are included
  8105. + # in the archive.
  8106. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8107. + ;;
  8108. + gcx*)
  8109. + # Green Hills C++ Compiler
  8110. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8111. -# If we're using GNU nm, then use its standard symbol codes.
  8112. -case `$NM -V 2>&1` in
  8113. -*GNU* | *'with BFD'*)
  8114. - symcode='[[ABCDGIRSTW]]' ;;
  8115. -esac
  8116. + # The C++ compiler must be used to create the archive.
  8117. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  8118. + ;;
  8119. + *)
  8120. + # GNU C++ compiler with Solaris linker
  8121. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8122. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  8123. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  8124. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8125. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8126. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8127. +
  8128. + # Commands to make compiler produce verbose output that lists
  8129. + # what "hidden" libraries, object files and flags are used when
  8130. + # linking a shared library.
  8131. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8132. + else
  8133. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  8134. + # platform.
  8135. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8136. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8137. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8138. +
  8139. + # Commands to make compiler produce verbose output that lists
  8140. + # what "hidden" libraries, object files and flags are used when
  8141. + # linking a shared library.
  8142. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8143. + fi
  8144. +
  8145. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  8146. + case $host_os in
  8147. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8148. + *)
  8149. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8150. + ;;
  8151. + esac
  8152. + fi
  8153. + ;;
  8154. + esac
  8155. + ;;
  8156. -# Try without a prefix undercore, then with it.
  8157. -for ac_symprfx in "" "_"; do
  8158. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8159. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8160. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8161. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8162. + runpath_var='LD_RUN_PATH'
  8163. - # Write the raw and C identifiers.
  8164. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  8165. + case $cc_basename in
  8166. + CC*)
  8167. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8168. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8169. + ;;
  8170. + *)
  8171. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8172. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8173. + ;;
  8174. + esac
  8175. + ;;
  8176. - # Check to see that the pipe works correctly.
  8177. - pipe_works=no
  8178. + sysv5* | sco3.2v5* | sco5v6*)
  8179. + # Note: We can NOT use -z defs as we might desire, because we do not
  8180. + # link with -lc, and that would cause any symbols used from libc to
  8181. + # always be unresolved, which means just about no library would
  8182. + # ever link correctly. If we're not using GNU ld we use -z text
  8183. + # though, which does catch some bad symbols but isn't as heavy-handed
  8184. + # as -z defs.
  8185. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8186. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8187. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8188. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8189. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8190. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8191. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8192. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8193. + runpath_var='LD_RUN_PATH'
  8194. - rm -f conftest*
  8195. - cat > conftest.$ac_ext <<EOF
  8196. -#ifdef __cplusplus
  8197. -extern "C" {
  8198. -#endif
  8199. -char nm_test_var;
  8200. -void nm_test_func(){}
  8201. -#ifdef __cplusplus
  8202. -}
  8203. -#endif
  8204. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8205. -EOF
  8206. + case $cc_basename in
  8207. + CC*)
  8208. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8209. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8210. + ;;
  8211. + *)
  8212. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8213. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8214. + ;;
  8215. + esac
  8216. + ;;
  8217. - if AC_TRY_EVAL(ac_compile); then
  8218. - # Now try to grab the symbols.
  8219. - nlist=conftest.nm
  8220. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8221. - # Try sorting and uniquifying the output.
  8222. - if sort "$nlist" | uniq > "$nlist"T; then
  8223. - mv -f "$nlist"T "$nlist"
  8224. - else
  8225. - rm -f "$nlist"T
  8226. - fi
  8227. + tandem*)
  8228. + case $cc_basename in
  8229. + NCC*)
  8230. + # NonStop-UX NCC 3.20
  8231. + # FIXME: insert proper C++ library support
  8232. + _LT_TAGVAR(ld_shlibs, $1)=no
  8233. + ;;
  8234. + *)
  8235. + # FIXME: insert proper C++ library support
  8236. + _LT_TAGVAR(ld_shlibs, $1)=no
  8237. + ;;
  8238. + esac
  8239. + ;;
  8240. - # Make sure that we snagged all the symbols we need.
  8241. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8242. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8243. - cat <<EOF > conftest.$ac_ext
  8244. -#ifdef __cplusplus
  8245. -extern "C" {
  8246. -#endif
  8247. + vxworks*)
  8248. + # FIXME: insert proper C++ library support
  8249. + _LT_TAGVAR(ld_shlibs, $1)=no
  8250. + ;;
  8251. -EOF
  8252. - # Now generate the symbol file.
  8253. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8254. + *)
  8255. + # FIXME: insert proper C++ library support
  8256. + _LT_TAGVAR(ld_shlibs, $1)=no
  8257. + ;;
  8258. + esac
  8259. - cat <<EOF >> conftest.$ac_ext
  8260. -#if defined (__STDC__) && __STDC__
  8261. -# define lt_ptr_t void *
  8262. -#else
  8263. -# define lt_ptr_t char *
  8264. -# define const
  8265. -#endif
  8266. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8267. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8268. -/* The mapping between symbol names and symbols. */
  8269. -const struct {
  8270. - const char *name;
  8271. - lt_ptr_t address;
  8272. -}
  8273. -lt_preloaded_symbols[[]] =
  8274. + _LT_TAGVAR(GCC, $1)="$GXX"
  8275. + _LT_TAGVAR(LD, $1)="$LD"
  8276. +
  8277. + ## CAVEAT EMPTOR:
  8278. + ## There is no encapsulation within the following macros, do not change
  8279. + ## the running order or otherwise move them around unless you know exactly
  8280. + ## what you are doing...
  8281. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8282. + _LT_COMPILER_PIC($1)
  8283. + _LT_COMPILER_C_O($1)
  8284. + _LT_COMPILER_FILE_LOCKS($1)
  8285. + _LT_LINKER_SHLIBS($1)
  8286. + _LT_SYS_DYNAMIC_LINKER($1)
  8287. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8288. +
  8289. + _LT_CONFIG($1)
  8290. + fi # test -n "$compiler"
  8291. +
  8292. + CC=$lt_save_CC
  8293. + LDCXX=$LD
  8294. + LD=$lt_save_LD
  8295. + GCC=$lt_save_GCC
  8296. + with_gnu_ld=$lt_save_with_gnu_ld
  8297. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8298. + lt_cv_path_LD=$lt_save_path_LD
  8299. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8300. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8301. +fi # test "$_lt_caught_CXX_error" != yes
  8302. +
  8303. +AC_LANG_POP
  8304. +])# _LT_LANG_CXX_CONFIG
  8305. +
  8306. +
  8307. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8308. +# ---------------------------------
  8309. +# Figure out "hidden" library dependencies from verbose
  8310. +# compiler output when linking a shared library.
  8311. +# Parse the compiler output and extract the necessary
  8312. +# objects, libraries and library flags.
  8313. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8314. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8315. +# Dependencies to place before and after the object being linked:
  8316. +_LT_TAGVAR(predep_objects, $1)=
  8317. +_LT_TAGVAR(postdep_objects, $1)=
  8318. +_LT_TAGVAR(predeps, $1)=
  8319. +_LT_TAGVAR(postdeps, $1)=
  8320. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8321. +
  8322. +dnl we can't use the lt_simple_compile_test_code here,
  8323. +dnl because it contains code intended for an executable,
  8324. +dnl not a library. It's possible we should let each
  8325. +dnl tag define a new lt_????_link_test_code variable,
  8326. +dnl but it's only used here...
  8327. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8328. +int a;
  8329. +void foo (void) { a = 0; }
  8330. +_LT_EOF
  8331. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8332. +class Foo
  8333. {
  8334. -EOF
  8335. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8336. - cat <<\EOF >> conftest.$ac_ext
  8337. - {0, (lt_ptr_t) 0}
  8338. +public:
  8339. + Foo (void) { a = 0; }
  8340. +private:
  8341. + int a;
  8342. +};
  8343. +_LT_EOF
  8344. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8345. + subroutine foo
  8346. + implicit none
  8347. + integer*4 a
  8348. + a=0
  8349. + return
  8350. + end
  8351. +_LT_EOF
  8352. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8353. + subroutine foo
  8354. + implicit none
  8355. + integer a
  8356. + a=0
  8357. + return
  8358. + end
  8359. +_LT_EOF
  8360. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8361. +public class foo {
  8362. + private int a;
  8363. + public void bar (void) {
  8364. + a = 0;
  8365. + }
  8366. };
  8367. +_LT_EOF
  8368. +])
  8369. +dnl Parse the compiler output and extract the necessary
  8370. +dnl objects, libraries and library flags.
  8371. +if AC_TRY_EVAL(ac_compile); then
  8372. + # Parse the compiler output and extract the necessary
  8373. + # objects, libraries and library flags.
  8374. -#ifdef __cplusplus
  8375. -}
  8376. -#endif
  8377. -EOF
  8378. - # Now try linking the two files.
  8379. - mv conftest.$ac_objext conftstm.$ac_objext
  8380. - lt_save_LIBS="$LIBS"
  8381. - lt_save_CFLAGS="$CFLAGS"
  8382. - LIBS="conftstm.$ac_objext"
  8383. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8384. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8385. - pipe_works=yes
  8386. - fi
  8387. - LIBS="$lt_save_LIBS"
  8388. - CFLAGS="$lt_save_CFLAGS"
  8389. - else
  8390. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8391. - fi
  8392. - else
  8393. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8394. - fi
  8395. - else
  8396. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8397. - fi
  8398. - else
  8399. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8400. - cat conftest.$ac_ext >&5
  8401. - fi
  8402. - rm -f conftest* conftst*
  8403. + # Sentinel used to keep track of whether or not we are before
  8404. + # the conftest object file.
  8405. + pre_test_object_deps_done=no
  8406. - # Do not use the global_symbol_pipe unless it works.
  8407. - if test "$pipe_works" = yes; then
  8408. - break
  8409. - else
  8410. - lt_cv_sys_global_symbol_pipe=
  8411. - fi
  8412. -done
  8413. -])
  8414. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8415. - lt_cv_sys_global_symbol_to_cdecl=
  8416. -fi
  8417. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8418. - AC_MSG_RESULT(failed)
  8419. + for p in `eval "$output_verbose_link_cmd"`; do
  8420. + case $p in
  8421. +
  8422. + -L* | -R* | -l*)
  8423. + # Some compilers place space between "-{L,R}" and the path.
  8424. + # Remove the space.
  8425. + if test $p = "-L" ||
  8426. + test $p = "-R"; then
  8427. + prev=$p
  8428. + continue
  8429. + else
  8430. + prev=
  8431. + fi
  8432. +
  8433. + if test "$pre_test_object_deps_done" = no; then
  8434. + case $p in
  8435. + -L* | -R*)
  8436. + # Internal compiler library paths should come after those
  8437. + # provided the user. The postdeps already come after the
  8438. + # user supplied libs so there is no need to process them.
  8439. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8440. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8441. + else
  8442. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8443. + fi
  8444. + ;;
  8445. + # The "-l" case would never come before the object being
  8446. + # linked, so don't bother handling this case.
  8447. + esac
  8448. + else
  8449. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8450. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8451. + else
  8452. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8453. + fi
  8454. + fi
  8455. + ;;
  8456. +
  8457. + *.$objext)
  8458. + # This assumes that the test object file only shows up
  8459. + # once in the compiler output.
  8460. + if test "$p" = "conftest.$objext"; then
  8461. + pre_test_object_deps_done=yes
  8462. + continue
  8463. + fi
  8464. +
  8465. + if test "$pre_test_object_deps_done" = no; then
  8466. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8467. + _LT_TAGVAR(predep_objects, $1)="$p"
  8468. + else
  8469. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8470. + fi
  8471. + else
  8472. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8473. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8474. + else
  8475. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8476. + fi
  8477. + fi
  8478. + ;;
  8479. +
  8480. + *) ;; # Ignore the rest.
  8481. +
  8482. + esac
  8483. + done
  8484. +
  8485. + # Clean up.
  8486. + rm -f a.out a.exe
  8487. else
  8488. - AC_MSG_RESULT(ok)
  8489. + echo "libtool.m4: error: problem compiling $1 test program"
  8490. fi
  8491. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8492. +$RM -f confest.$objext
  8493. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8494. -# ---------------------------------------
  8495. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8496. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8497. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8498. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8499. -
  8500. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8501. - ifelse([$1],[CXX],[
  8502. - # C++ specific cases for pic, static, wl, etc.
  8503. - if test "$GXX" = yes; then
  8504. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8505. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8506. +# PORTME: override above test on systems where it is broken
  8507. +m4_if([$1], [CXX],
  8508. +[case $host_os in
  8509. +interix[[3-9]]*)
  8510. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  8511. + # hack all around it, let's just trust "g++" to DTRT.
  8512. + _LT_TAGVAR(predep_objects,$1)=
  8513. + _LT_TAGVAR(postdep_objects,$1)=
  8514. + _LT_TAGVAR(postdeps,$1)=
  8515. + ;;
  8516. - case $host_os in
  8517. - aix*)
  8518. - # All AIX code is PIC.
  8519. - if test "$host_cpu" = ia64; then
  8520. - # AIX 5 now supports IA64 processor
  8521. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8522. - fi
  8523. - ;;
  8524. - amigaos*)
  8525. - # FIXME: we need at least 68020 code to build shared libraries, but
  8526. - # adding the `-m68020' flag to GCC prevents building anything better,
  8527. - # like `-m68040'.
  8528. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8529. - ;;
  8530. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8531. - # PIC is the default for these OSes.
  8532. - ;;
  8533. - mingw* | os2* | pw32*)
  8534. - # This hack is so that the source file can tell whether it is being
  8535. - # built for inclusion in a dll (and should export symbols for example).
  8536. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8537. - ;;
  8538. - darwin* | rhapsody*)
  8539. - # PIC is the default on this platform
  8540. - # Common symbols not allowed in MH_DYLIB files
  8541. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8542. - ;;
  8543. - *djgpp*)
  8544. - # DJGPP does not support shared libraries at all
  8545. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8546. - ;;
  8547. - sysv4*MP*)
  8548. - if test -d /usr/nec; then
  8549. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8550. - fi
  8551. - ;;
  8552. - hpux*)
  8553. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8554. - # not for PA HP-UX.
  8555. - case "$host_cpu" in
  8556. - hppa*64*|ia64*)
  8557. - ;;
  8558. - *)
  8559. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8560. - ;;
  8561. - esac
  8562. +linux*)
  8563. + case `$CC -V 2>&1 | sed 5q` in
  8564. + *Sun\ C*)
  8565. + # Sun C++ 5.9
  8566. +
  8567. + # The more standards-conforming stlport4 library is
  8568. + # incompatible with the Cstd library. Avoid specifying
  8569. + # it if it's in CXXFLAGS. Ignore libCrun as
  8570. + # -library=stlport4 depends on it.
  8571. + case " $CXX $CXXFLAGS " in
  8572. + *" -library=stlport4 "*)
  8573. + solaris_use_stlport4=yes
  8574. ;;
  8575. - *)
  8576. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8577. + esac
  8578. +
  8579. + if test "$solaris_use_stlport4" != yes; then
  8580. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8581. + fi
  8582. + ;;
  8583. + esac
  8584. + ;;
  8585. +
  8586. +solaris*)
  8587. + case $cc_basename in
  8588. + CC*)
  8589. + # The more standards-conforming stlport4 library is
  8590. + # incompatible with the Cstd library. Avoid specifying
  8591. + # it if it's in CXXFLAGS. Ignore libCrun as
  8592. + # -library=stlport4 depends on it.
  8593. + case " $CXX $CXXFLAGS " in
  8594. + *" -library=stlport4 "*)
  8595. + solaris_use_stlport4=yes
  8596. ;;
  8597. esac
  8598. - else
  8599. - case $host_os in
  8600. - aix4* | aix5*)
  8601. - # All AIX code is PIC.
  8602. - if test "$host_cpu" = ia64; then
  8603. - # AIX 5 now supports IA64 processor
  8604. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8605. - else
  8606. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  8607. - fi
  8608. - ;;
  8609. - chorus*)
  8610. - case $cc_basename in
  8611. - cxch68)
  8612. - # Green Hills C++ Compiler
  8613. - # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  8614. - ;;
  8615. - esac
  8616. - ;;
  8617. - dgux*)
  8618. - case $cc_basename in
  8619. - ec++)
  8620. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8621. - ;;
  8622. - ghcx)
  8623. - # Green Hills C++ Compiler
  8624. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8625. - ;;
  8626. - *)
  8627. - ;;
  8628. - esac
  8629. - ;;
  8630. - freebsd* | kfreebsd*-gnu)
  8631. - # FreeBSD uses GNU C++
  8632. - ;;
  8633. - hpux9* | hpux10* | hpux11*)
  8634. - case $cc_basename in
  8635. - CC)
  8636. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8637. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  8638. - if test "$host_cpu" != ia64; then
  8639. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8640. - fi
  8641. - ;;
  8642. - aCC)
  8643. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8644. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  8645. - case "$host_cpu" in
  8646. - hppa*64*|ia64*)
  8647. - # +Z the default
  8648. - ;;
  8649. - *)
  8650. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  8651. - ;;
  8652. - esac
  8653. - ;;
  8654. - *)
  8655. - ;;
  8656. - esac
  8657. - ;;
  8658. - irix5* | irix6* | nonstopux*)
  8659. - case $cc_basename in
  8660. - CC)
  8661. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8662. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8663. - # CC pic flag -KPIC is the default.
  8664. - ;;
  8665. - *)
  8666. - ;;
  8667. - esac
  8668. - ;;
  8669. - linux*)
  8670. - case $cc_basename in
  8671. - KCC)
  8672. - # KAI C++ Compiler
  8673. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8674. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8675. - ;;
  8676. - icpc)
  8677. - # Intel C++
  8678. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8679. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8680. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8681. - ;;
  8682. - cxx)
  8683. - # Compaq C++
  8684. - # Make sure the PIC flag is empty. It appears that all Alpha
  8685. - # Linux and Compaq Tru64 Unix objects are PIC.
  8686. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8687. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8688. - ;;
  8689. - *)
  8690. - ;;
  8691. - esac
  8692. - ;;
  8693. - lynxos*)
  8694. - ;;
  8695. - m88k*)
  8696. - ;;
  8697. - mvs*)
  8698. - case $cc_basename in
  8699. - cxx)
  8700. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  8701. - ;;
  8702. - *)
  8703. - ;;
  8704. - esac
  8705. - ;;
  8706. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8707. - ;;
  8708. - osf3* | osf4* | osf5*)
  8709. - case $cc_basename in
  8710. - KCC)
  8711. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  8712. - ;;
  8713. - RCC)
  8714. - # Rational C++ 2.4.1
  8715. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8716. - ;;
  8717. - cxx)
  8718. - # Digital/Compaq C++
  8719. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8720. - # Make sure the PIC flag is empty. It appears that all Alpha
  8721. - # Linux and Compaq Tru64 Unix objects are PIC.
  8722. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8723. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  8724. - ;;
  8725. - *)
  8726. - ;;
  8727. - esac
  8728. - ;;
  8729. - psos*)
  8730. - ;;
  8731. - sco*)
  8732. - case $cc_basename in
  8733. - CC)
  8734. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8735. - ;;
  8736. - *)
  8737. - ;;
  8738. - esac
  8739. - ;;
  8740. - solaris*)
  8741. - case $cc_basename in
  8742. - CC)
  8743. - # Sun C++ 4.2, 5.x and Centerline C++
  8744. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8745. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8746. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  8747. - ;;
  8748. - gcx)
  8749. - # Green Hills C++ Compiler
  8750. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  8751. - ;;
  8752. - *)
  8753. - ;;
  8754. - esac
  8755. - ;;
  8756. - sunos4*)
  8757. - case $cc_basename in
  8758. - CC)
  8759. - # Sun C++ 4.x
  8760. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8761. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8762. - ;;
  8763. - lcc)
  8764. - # Lucid
  8765. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  8766. - ;;
  8767. - *)
  8768. - ;;
  8769. - esac
  8770. - ;;
  8771. - tandem*)
  8772. - case $cc_basename in
  8773. - NCC)
  8774. - # NonStop-UX NCC 3.20
  8775. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  8776. - ;;
  8777. - *)
  8778. - ;;
  8779. - esac
  8780. - ;;
  8781. - unixware*)
  8782. - ;;
  8783. - vxworks*)
  8784. - ;;
  8785. - *)
  8786. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  8787. - ;;
  8788. +
  8789. + # Adding this requires a known-good setup of shared libraries for
  8790. + # Sun compiler versions before 5.6, else PIC objects from an old
  8791. + # archive will be linked into the output, leading to subtle bugs.
  8792. + if test "$solaris_use_stlport4" != yes; then
  8793. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  8794. + fi
  8795. + ;;
  8796. + esac
  8797. + ;;
  8798. +esac
  8799. +])
  8800. +
  8801. +case " $_LT_TAGVAR(postdeps, $1) " in
  8802. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  8803. +esac
  8804. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  8805. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  8806. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  8807. +fi
  8808. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  8809. + [The directories searched by this compiler when creating a shared library])
  8810. +_LT_TAGDECL([], [predep_objects], [1],
  8811. + [Dependencies to place before and after the objects being linked to
  8812. + create a shared library])
  8813. +_LT_TAGDECL([], [postdep_objects], [1])
  8814. +_LT_TAGDECL([], [predeps], [1])
  8815. +_LT_TAGDECL([], [postdeps], [1])
  8816. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  8817. + [The library search path used internally by the compiler when linking
  8818. + a shared library])
  8819. +])# _LT_SYS_HIDDEN_LIBDEPS
  8820. +
  8821. +
  8822. +# _LT_PROG_F77
  8823. +# ------------
  8824. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  8825. +# if there is no fortran compiler, we have our own version here.
  8826. +m4_defun([_LT_PROG_F77],
  8827. +[
  8828. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  8829. +AC_PROG_F77
  8830. +if test -z "$F77" || test "X$F77" = "Xno"; then
  8831. + _lt_disable_F77=yes
  8832. +fi
  8833. +popdef([AC_MSG_ERROR])
  8834. +])# _LT_PROG_F77
  8835. +
  8836. +dnl aclocal-1.4 backwards compatibility:
  8837. +dnl AC_DEFUN([_LT_PROG_F77], [])
  8838. +
  8839. +
  8840. +# _LT_LANG_F77_CONFIG([TAG])
  8841. +# --------------------------
  8842. +# Ensure that the configuration variables for a Fortran 77 compiler are
  8843. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8844. +# to write the compiler configuration to `libtool'.
  8845. +m4_defun([_LT_LANG_F77_CONFIG],
  8846. +[AC_REQUIRE([_LT_PROG_F77])dnl
  8847. +AC_LANG_PUSH(Fortran 77)
  8848. +
  8849. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8850. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8851. +_LT_TAGVAR(always_export_symbols, $1)=no
  8852. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  8853. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8854. +_LT_TAGVAR(hardcode_direct, $1)=no
  8855. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  8856. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8857. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  8858. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  8859. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  8860. +_LT_TAGVAR(hardcode_automatic, $1)=no
  8861. +_LT_TAGVAR(inherit_rpath, $1)=no
  8862. +_LT_TAGVAR(module_cmds, $1)=
  8863. +_LT_TAGVAR(module_expsym_cmds, $1)=
  8864. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  8865. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  8866. +_LT_TAGVAR(no_undefined_flag, $1)=
  8867. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  8868. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  8869. +
  8870. +# Source file extension for f77 test sources.
  8871. +ac_ext=f
  8872. +
  8873. +# Object file extension for compiled f77 test sources.
  8874. +objext=o
  8875. +_LT_TAGVAR(objext, $1)=$objext
  8876. +
  8877. +# No sense in running all these tests if we already determined that
  8878. +# the F77 compiler isn't working. Some variables (like enable_shared)
  8879. +# are currently assumed to apply to all compilers on this platform,
  8880. +# and will be corrupted by setting them based on a non-working compiler.
  8881. +if test "$_lt_disable_F77" != yes; then
  8882. + # Code to be used in simple compile tests
  8883. + lt_simple_compile_test_code="\
  8884. + subroutine t
  8885. + return
  8886. + end
  8887. +"
  8888. +
  8889. + # Code to be used in simple link tests
  8890. + lt_simple_link_test_code="\
  8891. + program t
  8892. + end
  8893. +"
  8894. +
  8895. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  8896. + _LT_TAG_COMPILER
  8897. +
  8898. + # save warnings/boilerplate of simple test code
  8899. + _LT_COMPILER_BOILERPLATE
  8900. + _LT_LINKER_BOILERPLATE
  8901. +
  8902. + # Allow CC to be a program name with arguments.
  8903. + lt_save_CC="$CC"
  8904. + lt_save_GCC=$GCC
  8905. + CC=${F77-"f77"}
  8906. + compiler=$CC
  8907. + _LT_TAGVAR(compiler, $1)=$CC
  8908. + _LT_CC_BASENAME([$compiler])
  8909. + GCC=$G77
  8910. + if test -n "$compiler"; then
  8911. + AC_MSG_CHECKING([if libtool supports shared libraries])
  8912. + AC_MSG_RESULT([$can_build_shared])
  8913. +
  8914. + AC_MSG_CHECKING([whether to build shared libraries])
  8915. + test "$can_build_shared" = "no" && enable_shared=no
  8916. +
  8917. + # On AIX, shared libraries and static libraries use the same namespace, and
  8918. + # are all built from PIC.
  8919. + case $host_os in
  8920. + aix3*)
  8921. + test "$enable_shared" = yes && enable_static=no
  8922. + if test -n "$RANLIB"; then
  8923. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  8924. + postinstall_cmds='$RANLIB $lib'
  8925. + fi
  8926. + ;;
  8927. + aix[[4-9]]*)
  8928. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  8929. + test "$enable_shared" = yes && enable_static=no
  8930. + fi
  8931. + ;;
  8932. esac
  8933. - fi
  8934. -],
  8935. + AC_MSG_RESULT([$enable_shared])
  8936. +
  8937. + AC_MSG_CHECKING([whether to build static libraries])
  8938. + # Make sure either enable_shared or enable_static is yes.
  8939. + test "$enable_shared" = yes || enable_static=yes
  8940. + AC_MSG_RESULT([$enable_static])
  8941. +
  8942. + _LT_TAGVAR(GCC, $1)="$G77"
  8943. + _LT_TAGVAR(LD, $1)="$LD"
  8944. +
  8945. + ## CAVEAT EMPTOR:
  8946. + ## There is no encapsulation within the following macros, do not change
  8947. + ## the running order or otherwise move them around unless you know exactly
  8948. + ## what you are doing...
  8949. + _LT_COMPILER_PIC($1)
  8950. + _LT_COMPILER_C_O($1)
  8951. + _LT_COMPILER_FILE_LOCKS($1)
  8952. + _LT_LINKER_SHLIBS($1)
  8953. + _LT_SYS_DYNAMIC_LINKER($1)
  8954. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8955. +
  8956. + _LT_CONFIG($1)
  8957. + fi # test -n "$compiler"
  8958. +
  8959. + GCC=$lt_save_GCC
  8960. + CC="$lt_save_CC"
  8961. +fi # test "$_lt_disable_F77" != yes
  8962. +
  8963. +AC_LANG_POP
  8964. +])# _LT_LANG_F77_CONFIG
  8965. +
  8966. +
  8967. +# _LT_PROG_FC
  8968. +# -----------
  8969. +# Since AC_PROG_FC is broken, in that it returns the empty string
  8970. +# if there is no fortran compiler, we have our own version here.
  8971. +m4_defun([_LT_PROG_FC],
  8972. [
  8973. - if test "$GCC" = yes; then
  8974. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8975. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8976. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  8977. +AC_PROG_FC
  8978. +if test -z "$FC" || test "X$FC" = "Xno"; then
  8979. + _lt_disable_FC=yes
  8980. +fi
  8981. +popdef([AC_MSG_ERROR])
  8982. +])# _LT_PROG_FC
  8983. +
  8984. +dnl aclocal-1.4 backwards compatibility:
  8985. +dnl AC_DEFUN([_LT_PROG_FC], [])
  8986. +
  8987. +
  8988. +# _LT_LANG_FC_CONFIG([TAG])
  8989. +# -------------------------
  8990. +# Ensure that the configuration variables for a Fortran compiler are
  8991. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  8992. +# to write the compiler configuration to `libtool'.
  8993. +m4_defun([_LT_LANG_FC_CONFIG],
  8994. +[AC_REQUIRE([_LT_PROG_FC])dnl
  8995. +AC_LANG_PUSH(Fortran)
  8996. +
  8997. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8998. +_LT_TAGVAR(allow_undefined_flag, $1)=
  8999. +_LT_TAGVAR(always_export_symbols, $1)=no
  9000. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9001. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9002. +_LT_TAGVAR(hardcode_direct, $1)=no
  9003. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9004. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9005. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9006. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9007. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9008. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9009. +_LT_TAGVAR(inherit_rpath, $1)=no
  9010. +_LT_TAGVAR(module_cmds, $1)=
  9011. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9012. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9013. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9014. +_LT_TAGVAR(no_undefined_flag, $1)=
  9015. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9016. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9017. +
  9018. +# Source file extension for fc test sources.
  9019. +ac_ext=${ac_fc_srcext-f}
  9020. +
  9021. +# Object file extension for compiled fc test sources.
  9022. +objext=o
  9023. +_LT_TAGVAR(objext, $1)=$objext
  9024. +# No sense in running all these tests if we already determined that
  9025. +# the FC compiler isn't working. Some variables (like enable_shared)
  9026. +# are currently assumed to apply to all compilers on this platform,
  9027. +# and will be corrupted by setting them based on a non-working compiler.
  9028. +if test "$_lt_disable_FC" != yes; then
  9029. + # Code to be used in simple compile tests
  9030. + lt_simple_compile_test_code="\
  9031. + subroutine t
  9032. + return
  9033. + end
  9034. +"
  9035. +
  9036. + # Code to be used in simple link tests
  9037. + lt_simple_link_test_code="\
  9038. + program t
  9039. + end
  9040. +"
  9041. +
  9042. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9043. + _LT_TAG_COMPILER
  9044. +
  9045. + # save warnings/boilerplate of simple test code
  9046. + _LT_COMPILER_BOILERPLATE
  9047. + _LT_LINKER_BOILERPLATE
  9048. +
  9049. + # Allow CC to be a program name with arguments.
  9050. + lt_save_CC="$CC"
  9051. + lt_save_GCC=$GCC
  9052. + CC=${FC-"f95"}
  9053. + compiler=$CC
  9054. + GCC=$ac_cv_fc_compiler_gnu
  9055. +
  9056. + _LT_TAGVAR(compiler, $1)=$CC
  9057. + _LT_CC_BASENAME([$compiler])
  9058. +
  9059. + if test -n "$compiler"; then
  9060. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9061. + AC_MSG_RESULT([$can_build_shared])
  9062. +
  9063. + AC_MSG_CHECKING([whether to build shared libraries])
  9064. + test "$can_build_shared" = "no" && enable_shared=no
  9065. +
  9066. + # On AIX, shared libraries and static libraries use the same namespace, and
  9067. + # are all built from PIC.
  9068. case $host_os in
  9069. - aix*)
  9070. - # All AIX code is PIC.
  9071. - if test "$host_cpu" = ia64; then
  9072. - # AIX 5 now supports IA64 processor
  9073. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9074. + aix3*)
  9075. + test "$enable_shared" = yes && enable_static=no
  9076. + if test -n "$RANLIB"; then
  9077. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9078. + postinstall_cmds='$RANLIB $lib'
  9079. + fi
  9080. + ;;
  9081. + aix[[4-9]]*)
  9082. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9083. + test "$enable_shared" = yes && enable_static=no
  9084. + fi
  9085. + ;;
  9086. + esac
  9087. + AC_MSG_RESULT([$enable_shared])
  9088. +
  9089. + AC_MSG_CHECKING([whether to build static libraries])
  9090. + # Make sure either enable_shared or enable_static is yes.
  9091. + test "$enable_shared" = yes || enable_static=yes
  9092. + AC_MSG_RESULT([$enable_static])
  9093. +
  9094. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  9095. + _LT_TAGVAR(LD, $1)="$LD"
  9096. +
  9097. + ## CAVEAT EMPTOR:
  9098. + ## There is no encapsulation within the following macros, do not change
  9099. + ## the running order or otherwise move them around unless you know exactly
  9100. + ## what you are doing...
  9101. + _LT_SYS_HIDDEN_LIBDEPS($1)
  9102. + _LT_COMPILER_PIC($1)
  9103. + _LT_COMPILER_C_O($1)
  9104. + _LT_COMPILER_FILE_LOCKS($1)
  9105. + _LT_LINKER_SHLIBS($1)
  9106. + _LT_SYS_DYNAMIC_LINKER($1)
  9107. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9108. +
  9109. + _LT_CONFIG($1)
  9110. + fi # test -n "$compiler"
  9111. +
  9112. + GCC=$lt_save_GCC
  9113. + CC="$lt_save_CC"
  9114. +fi # test "$_lt_disable_FC" != yes
  9115. +
  9116. +AC_LANG_POP
  9117. +])# _LT_LANG_FC_CONFIG
  9118. +
  9119. +
  9120. +# _LT_LANG_GCJ_CONFIG([TAG])
  9121. +# --------------------------
  9122. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  9123. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9124. +# to write the compiler configuration to `libtool'.
  9125. +m4_defun([_LT_LANG_GCJ_CONFIG],
  9126. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  9127. +AC_LANG_SAVE
  9128. +
  9129. +# Source file extension for Java test sources.
  9130. +ac_ext=java
  9131. +
  9132. +# Object file extension for compiled Java test sources.
  9133. +objext=o
  9134. +_LT_TAGVAR(objext, $1)=$objext
  9135. +
  9136. +# Code to be used in simple compile tests
  9137. +lt_simple_compile_test_code="class foo {}"
  9138. +
  9139. +# Code to be used in simple link tests
  9140. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  9141. +
  9142. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9143. +_LT_TAG_COMPILER
  9144. +
  9145. +# save warnings/boilerplate of simple test code
  9146. +_LT_COMPILER_BOILERPLATE
  9147. +_LT_LINKER_BOILERPLATE
  9148. +
  9149. +# Allow CC to be a program name with arguments.
  9150. +lt_save_CC="$CC"
  9151. +lt_save_GCC=$GCC
  9152. +GCC=yes
  9153. +CC=${GCJ-"gcj"}
  9154. +compiler=$CC
  9155. +_LT_TAGVAR(compiler, $1)=$CC
  9156. +_LT_TAGVAR(LD, $1)="$LD"
  9157. +_LT_CC_BASENAME([$compiler])
  9158. +
  9159. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  9160. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9161. +
  9162. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9163. +
  9164. +if test -n "$compiler"; then
  9165. + _LT_COMPILER_NO_RTTI($1)
  9166. + _LT_COMPILER_PIC($1)
  9167. + _LT_COMPILER_C_O($1)
  9168. + _LT_COMPILER_FILE_LOCKS($1)
  9169. + _LT_LINKER_SHLIBS($1)
  9170. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9171. +
  9172. + _LT_CONFIG($1)
  9173. +fi
  9174. +
  9175. +AC_LANG_RESTORE
  9176. +
  9177. +GCC=$lt_save_GCC
  9178. +CC="$lt_save_CC"
  9179. +])# _LT_LANG_GCJ_CONFIG
  9180. +
  9181. +
  9182. +# _LT_LANG_RC_CONFIG([TAG])
  9183. +# -------------------------
  9184. +# Ensure that the configuration variables for the Windows resource compiler
  9185. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9186. +# to write the compiler configuration to `libtool'.
  9187. +m4_defun([_LT_LANG_RC_CONFIG],
  9188. +[AC_REQUIRE([LT_PROG_RC])dnl
  9189. +AC_LANG_SAVE
  9190. +
  9191. +# Source file extension for RC test sources.
  9192. +ac_ext=rc
  9193. +
  9194. +# Object file extension for compiled RC test sources.
  9195. +objext=o
  9196. +_LT_TAGVAR(objext, $1)=$objext
  9197. +
  9198. +# Code to be used in simple compile tests
  9199. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9200. +
  9201. +# Code to be used in simple link tests
  9202. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9203. +
  9204. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9205. +_LT_TAG_COMPILER
  9206. +
  9207. +# save warnings/boilerplate of simple test code
  9208. +_LT_COMPILER_BOILERPLATE
  9209. +_LT_LINKER_BOILERPLATE
  9210. +
  9211. +# Allow CC to be a program name with arguments.
  9212. +lt_save_CC="$CC"
  9213. +lt_save_GCC=$GCC
  9214. +GCC=
  9215. +CC=${RC-"windres"}
  9216. +compiler=$CC
  9217. +_LT_TAGVAR(compiler, $1)=$CC
  9218. +_LT_CC_BASENAME([$compiler])
  9219. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9220. +
  9221. +if test -n "$compiler"; then
  9222. + :
  9223. + _LT_CONFIG($1)
  9224. +fi
  9225. +
  9226. +GCC=$lt_save_GCC
  9227. +AC_LANG_RESTORE
  9228. +CC="$lt_save_CC"
  9229. +])# _LT_LANG_RC_CONFIG
  9230. +
  9231. +
  9232. +# LT_PROG_GCJ
  9233. +# -----------
  9234. +AC_DEFUN([LT_PROG_GCJ],
  9235. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9236. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9237. + [AC_CHECK_TOOL(GCJ, gcj,)
  9238. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9239. + AC_SUBST(GCJFLAGS)])])[]dnl
  9240. +])
  9241. +
  9242. +# Old name:
  9243. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9244. +dnl aclocal-1.4 backwards compatibility:
  9245. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9246. +
  9247. +
  9248. +# LT_PROG_RC
  9249. +# ----------
  9250. +AC_DEFUN([LT_PROG_RC],
  9251. +[AC_CHECK_TOOL(RC, windres,)
  9252. +])
  9253. +
  9254. +# Old name:
  9255. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9256. +dnl aclocal-1.4 backwards compatibility:
  9257. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9258. +
  9259. +
  9260. +# _LT_DECL_EGREP
  9261. +# --------------
  9262. +# If we don't have a new enough Autoconf to choose the best grep
  9263. +# available, choose the one first in the user's PATH.
  9264. +m4_defun([_LT_DECL_EGREP],
  9265. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9266. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9267. +test -z "$GREP" && GREP=grep
  9268. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9269. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9270. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9271. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9272. +AC_SUBST([GREP])
  9273. +])
  9274. +
  9275. +
  9276. +# _LT_DECL_OBJDUMP
  9277. +# --------------
  9278. +# If we don't have a new enough Autoconf to choose the best objdump
  9279. +# available, choose the one first in the user's PATH.
  9280. +m4_defun([_LT_DECL_OBJDUMP],
  9281. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9282. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9283. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9284. +AC_SUBST([OBJDUMP])
  9285. +])
  9286. +
  9287. +
  9288. +# _LT_DECL_SED
  9289. +# ------------
  9290. +# Check for a fully-functional sed program, that truncates
  9291. +# as few characters as possible. Prefer GNU sed if found.
  9292. +m4_defun([_LT_DECL_SED],
  9293. +[AC_PROG_SED
  9294. +test -z "$SED" && SED=sed
  9295. +Xsed="$SED -e 1s/^X//"
  9296. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9297. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9298. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9299. +])# _LT_DECL_SED
  9300. +
  9301. +m4_ifndef([AC_PROG_SED], [
  9302. +# NOTE: This macro has been submitted for inclusion into #
  9303. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  9304. +# a released version of Autoconf we should remove this #
  9305. +# macro and use it instead. #
  9306. +
  9307. +m4_defun([AC_PROG_SED],
  9308. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  9309. +AC_CACHE_VAL(lt_cv_path_SED,
  9310. +[# Loop through the user's path and test for sed and gsed.
  9311. +# Then use that list of sed's as ones to test for truncation.
  9312. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9313. +for as_dir in $PATH
  9314. +do
  9315. + IFS=$as_save_IFS
  9316. + test -z "$as_dir" && as_dir=.
  9317. + for lt_ac_prog in sed gsed; do
  9318. + for ac_exec_ext in '' $ac_executable_extensions; do
  9319. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9320. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9321. fi
  9322. - ;;
  9323. + done
  9324. + done
  9325. +done
  9326. +IFS=$as_save_IFS
  9327. +lt_ac_max=0
  9328. +lt_ac_count=0
  9329. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  9330. +# along with /bin/sed that truncates output.
  9331. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  9332. + test ! -f $lt_ac_sed && continue
  9333. + cat /dev/null > conftest.in
  9334. + lt_ac_count=0
  9335. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  9336. + # Check for GNU sed and select it if it is found.
  9337. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  9338. + lt_cv_path_SED=$lt_ac_sed
  9339. + break
  9340. + fi
  9341. + while true; do
  9342. + cat conftest.in conftest.in >conftest.tmp
  9343. + mv conftest.tmp conftest.in
  9344. + cp conftest.in conftest.nl
  9345. + echo >>conftest.nl
  9346. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  9347. + cmp -s conftest.out conftest.nl || break
  9348. + # 10000 chars as input seems more than enough
  9349. + test $lt_ac_count -gt 10 && break
  9350. + lt_ac_count=`expr $lt_ac_count + 1`
  9351. + if test $lt_ac_count -gt $lt_ac_max; then
  9352. + lt_ac_max=$lt_ac_count
  9353. + lt_cv_path_SED=$lt_ac_sed
  9354. + fi
  9355. + done
  9356. +done
  9357. +])
  9358. +SED=$lt_cv_path_SED
  9359. +AC_SUBST([SED])
  9360. +AC_MSG_RESULT([$SED])
  9361. +])#AC_PROG_SED
  9362. +])#m4_ifndef
  9363. +
  9364. +# Old name:
  9365. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9366. +dnl aclocal-1.4 backwards compatibility:
  9367. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9368. +
  9369. +
  9370. +# _LT_CHECK_SHELL_FEATURES
  9371. +# ------------------------
  9372. +# Find out whether the shell is Bourne or XSI compatible,
  9373. +# or has some other useful features.
  9374. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9375. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9376. +# Try some XSI features
  9377. +xsi_shell=no
  9378. +( _lt_dummy="a/b/c"
  9379. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9380. + = c,a/b,, \
  9381. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9382. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9383. + && xsi_shell=yes
  9384. +AC_MSG_RESULT([$xsi_shell])
  9385. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9386. +
  9387. +AC_MSG_CHECKING([whether the shell understands "+="])
  9388. +lt_shell_append=no
  9389. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9390. + >/dev/null 2>&1 \
  9391. + && lt_shell_append=yes
  9392. +AC_MSG_RESULT([$lt_shell_append])
  9393. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9394. - amigaos*)
  9395. - # FIXME: we need at least 68020 code to build shared libraries, but
  9396. - # adding the `-m68020' flag to GCC prevents building anything better,
  9397. - # like `-m68040'.
  9398. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  9399. - ;;
  9400. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9401. + lt_unset=unset
  9402. +else
  9403. + lt_unset=false
  9404. +fi
  9405. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9406. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  9407. - # PIC is the default for these OSes.
  9408. - ;;
  9409. +# test EBCDIC or ASCII
  9410. +case `echo X|tr X '\101'` in
  9411. + A) # ASCII based system
  9412. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9413. + lt_SP2NL='tr \040 \012'
  9414. + lt_NL2SP='tr \015\012 \040\040'
  9415. + ;;
  9416. + *) # EBCDIC based system
  9417. + lt_SP2NL='tr \100 \n'
  9418. + lt_NL2SP='tr \r\n \100\100'
  9419. + ;;
  9420. +esac
  9421. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9422. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9423. +])# _LT_CHECK_SHELL_FEATURES
  9424. - mingw* | pw32* | os2*)
  9425. - # This hack is so that the source file can tell whether it is being
  9426. - # built for inclusion in a dll (and should export symbols for example).
  9427. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9428. - ;;
  9429. - darwin* | rhapsody*)
  9430. - # PIC is the default on this platform
  9431. - # Common symbols not allowed in MH_DYLIB files
  9432. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  9433. - ;;
  9434. +# _LT_PROG_XSI_SHELLFNS
  9435. +# ---------------------
  9436. +# Bourne and XSI compatible variants of some useful shell functions.
  9437. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9438. +[case $xsi_shell in
  9439. + yes)
  9440. + cat << \_LT_EOF >> "$cfgfile"
  9441. +
  9442. +# func_dirname file append nondir_replacement
  9443. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9444. +# otherwise set result to NONDIR_REPLACEMENT.
  9445. +func_dirname ()
  9446. +{
  9447. + case ${1} in
  9448. + */*) func_dirname_result="${1%/*}${2}" ;;
  9449. + * ) func_dirname_result="${3}" ;;
  9450. + esac
  9451. +}
  9452. - msdosdjgpp*)
  9453. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  9454. - # on systems that don't support them.
  9455. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9456. - enable_shared=no
  9457. - ;;
  9458. +# func_basename file
  9459. +func_basename ()
  9460. +{
  9461. + func_basename_result="${1##*/}"
  9462. +}
  9463. - sysv4*MP*)
  9464. - if test -d /usr/nec; then
  9465. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  9466. - fi
  9467. - ;;
  9468. +# func_dirname_and_basename file append nondir_replacement
  9469. +# perform func_basename and func_dirname in a single function
  9470. +# call:
  9471. +# dirname: Compute the dirname of FILE. If nonempty,
  9472. +# add APPEND to the result, otherwise set result
  9473. +# to NONDIR_REPLACEMENT.
  9474. +# value returned in "$func_dirname_result"
  9475. +# basename: Compute filename of FILE.
  9476. +# value retuned in "$func_basename_result"
  9477. +# Implementation must be kept synchronized with func_dirname
  9478. +# and func_basename. For efficiency, we do not delegate to
  9479. +# those functions but instead duplicate the functionality here.
  9480. +func_dirname_and_basename ()
  9481. +{
  9482. + case ${1} in
  9483. + */*) func_dirname_result="${1%/*}${2}" ;;
  9484. + * ) func_dirname_result="${3}" ;;
  9485. + esac
  9486. + func_basename_result="${1##*/}"
  9487. +}
  9488. - hpux*)
  9489. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9490. - # not for PA HP-UX.
  9491. - case "$host_cpu" in
  9492. - hppa*64*|ia64*)
  9493. - # +Z the default
  9494. - ;;
  9495. - *)
  9496. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9497. - ;;
  9498. - esac
  9499. - ;;
  9500. +# func_stripname prefix suffix name
  9501. +# strip PREFIX and SUFFIX off of NAME.
  9502. +# PREFIX and SUFFIX must not contain globbing or regex special
  9503. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9504. +# dot (in which case that matches only a dot).
  9505. +func_stripname ()
  9506. +{
  9507. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9508. + # positional parameters, so assign one to ordinary parameter first.
  9509. + func_stripname_result=${3}
  9510. + func_stripname_result=${func_stripname_result#"${1}"}
  9511. + func_stripname_result=${func_stripname_result%"${2}"}
  9512. +}
  9513. - *)
  9514. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9515. - ;;
  9516. - esac
  9517. - else
  9518. - # PORTME Check for flag to pass linker flags through the system compiler.
  9519. - case $host_os in
  9520. - aix*)
  9521. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9522. - if test "$host_cpu" = ia64; then
  9523. - # AIX 5 now supports IA64 processor
  9524. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9525. - else
  9526. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9527. - fi
  9528. - ;;
  9529. +# func_opt_split
  9530. +func_opt_split ()
  9531. +{
  9532. + func_opt_split_opt=${1%%=*}
  9533. + func_opt_split_arg=${1#*=}
  9534. +}
  9535. - mingw* | pw32* | os2*)
  9536. - # This hack is so that the source file can tell whether it is being
  9537. - # built for inclusion in a dll (and should export symbols for example).
  9538. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  9539. - ;;
  9540. +# func_lo2o object
  9541. +func_lo2o ()
  9542. +{
  9543. + case ${1} in
  9544. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9545. + *) func_lo2o_result=${1} ;;
  9546. + esac
  9547. +}
  9548. - hpux9* | hpux10* | hpux11*)
  9549. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9550. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  9551. - # not for PA HP-UX.
  9552. - case "$host_cpu" in
  9553. - hppa*64*|ia64*)
  9554. - # +Z the default
  9555. - ;;
  9556. - *)
  9557. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9558. - ;;
  9559. - esac
  9560. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  9561. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  9562. - ;;
  9563. +# func_xform libobj-or-source
  9564. +func_xform ()
  9565. +{
  9566. + func_xform_result=${1%.*}.lo
  9567. +}
  9568. - irix5* | irix6* | nonstopux*)
  9569. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9570. - # PIC (with -KPIC) is the default.
  9571. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9572. - ;;
  9573. +# func_arith arithmetic-term...
  9574. +func_arith ()
  9575. +{
  9576. + func_arith_result=$(( $[*] ))
  9577. +}
  9578. - newsos6)
  9579. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9580. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9581. - ;;
  9582. +# func_len string
  9583. +# STRING may not start with a hyphen.
  9584. +func_len ()
  9585. +{
  9586. + func_len_result=${#1}
  9587. +}
  9588. - linux*)
  9589. - case $CC in
  9590. - icc* | ecc*)
  9591. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9592. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9593. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9594. - ;;
  9595. - ccc*)
  9596. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9597. - # All Alpha code is PIC.
  9598. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9599. - ;;
  9600. - esac
  9601. - ;;
  9602. +_LT_EOF
  9603. + ;;
  9604. + *) # Bourne compatible functions.
  9605. + cat << \_LT_EOF >> "$cfgfile"
  9606. - osf3* | osf4* | osf5*)
  9607. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9608. - # All OSF/1 code is PIC.
  9609. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9610. - ;;
  9611. +# func_dirname file append nondir_replacement
  9612. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9613. +# otherwise set result to NONDIR_REPLACEMENT.
  9614. +func_dirname ()
  9615. +{
  9616. + # Extract subdirectory from the argument.
  9617. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9618. + if test "X$func_dirname_result" = "X${1}"; then
  9619. + func_dirname_result="${3}"
  9620. + else
  9621. + func_dirname_result="$func_dirname_result${2}"
  9622. + fi
  9623. +}
  9624. - sco3.2v5*)
  9625. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  9626. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  9627. - ;;
  9628. +# func_basename file
  9629. +func_basename ()
  9630. +{
  9631. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9632. +}
  9633. - solaris*)
  9634. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9635. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9636. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9637. - ;;
  9638. +dnl func_dirname_and_basename
  9639. +dnl A portable version of this function is already defined in general.m4sh
  9640. +dnl so there is no need for it here.
  9641. +
  9642. +# func_stripname prefix suffix name
  9643. +# strip PREFIX and SUFFIX off of NAME.
  9644. +# PREFIX and SUFFIX must not contain globbing or regex special
  9645. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9646. +# dot (in which case that matches only a dot).
  9647. +# func_strip_suffix prefix name
  9648. +func_stripname ()
  9649. +{
  9650. + case ${2} in
  9651. + .*) func_stripname_result=`$ECHO "X${3}" \
  9652. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9653. + *) func_stripname_result=`$ECHO "X${3}" \
  9654. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9655. + esac
  9656. +}
  9657. - sunos4*)
  9658. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  9659. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  9660. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9661. - ;;
  9662. +# sed scripts:
  9663. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9664. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9665. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9666. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9667. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9668. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9669. - ;;
  9670. +# func_opt_split
  9671. +func_opt_split ()
  9672. +{
  9673. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9674. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9675. +}
  9676. - sysv4*MP*)
  9677. - if test -d /usr/nec ;then
  9678. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  9679. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9680. - fi
  9681. - ;;
  9682. +# func_lo2o object
  9683. +func_lo2o ()
  9684. +{
  9685. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9686. +}
  9687. - uts4*)
  9688. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9689. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9690. - ;;
  9691. +# func_xform libobj-or-source
  9692. +func_xform ()
  9693. +{
  9694. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9695. +}
  9696. - *)
  9697. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  9698. - ;;
  9699. - esac
  9700. - fi
  9701. -])
  9702. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  9703. +# func_arith arithmetic-term...
  9704. +func_arith ()
  9705. +{
  9706. + func_arith_result=`expr "$[@]"`
  9707. +}
  9708. -#
  9709. -# Check to make sure the PIC flag actually works.
  9710. -#
  9711. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  9712. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  9713. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  9714. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  9715. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  9716. - "" | " "*) ;;
  9717. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  9718. - esac],
  9719. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9720. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  9721. -fi
  9722. -case "$host_os" in
  9723. - # For platforms which do not support PIC, -DPIC is meaningless:
  9724. - *djgpp*)
  9725. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9726. - ;;
  9727. - *)
  9728. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  9729. - ;;
  9730. -esac
  9731. -])
  9732. +# func_len string
  9733. +# STRING may not start with a hyphen.
  9734. +func_len ()
  9735. +{
  9736. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9737. +}
  9738. +_LT_EOF
  9739. +esac
  9740. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  9741. -# ------------------------------------
  9742. -# See if the linker supports building shared libraries.
  9743. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  9744. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9745. -ifelse([$1],[CXX],[
  9746. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9747. - case $host_os in
  9748. - aix4* | aix5*)
  9749. - # If we're using GNU nm, then we don't want the "-C" option.
  9750. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  9751. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  9752. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9753. - else
  9754. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  9755. - fi
  9756. +case $lt_shell_append in
  9757. + yes)
  9758. + cat << \_LT_EOF >> "$cfgfile"
  9759. +
  9760. +# func_append var value
  9761. +# Append VALUE to the end of shell variable VAR.
  9762. +func_append ()
  9763. +{
  9764. + eval "$[1]+=\$[2]"
  9765. +}
  9766. +_LT_EOF
  9767. ;;
  9768. - pw32*)
  9769. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  9770. - ;;
  9771. - cygwin* | mingw*)
  9772. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  9773. - ;;
  9774. - linux*)
  9775. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  9776. - ;;
  9777. *)
  9778. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9779. - ;;
  9780. - esac
  9781. -],[
  9782. - runpath_var=
  9783. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  9784. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9785. - _LT_AC_TAGVAR(archive_cmds, $1)=
  9786. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  9787. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  9788. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  9789. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  9790. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  9791. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  9792. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9793. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9794. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  9795. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  9796. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  9797. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9798. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  9799. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  9800. - _LT_AC_TAGVAR(module_cmds, $1)=
  9801. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  9802. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9803. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  9804. - # include_expsyms should be a list of space-separated symbols to be *always*
  9805. - # included in the symbol list
  9806. - _LT_AC_TAGVAR(include_expsyms, $1)=
  9807. - # exclude_expsyms can be an extended regexp of symbols to exclude
  9808. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  9809. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  9810. - # as well as any symbol that contains `d'.
  9811. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  9812. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  9813. - # platforms (ab)use it in PIC code, but their linkers get confused if
  9814. - # the symbol is explicitly referenced. Since portable code cannot
  9815. - # rely on this symbol name, it's probably fine to never include it in
  9816. - # preloaded symbol tables.
  9817. - extract_expsyms_cmds=
  9818. + cat << \_LT_EOF >> "$cfgfile"
  9819. - case $host_os in
  9820. - cygwin* | mingw* | pw32*)
  9821. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  9822. - # When not using gcc, we currently assume that we are using
  9823. - # Microsoft Visual C++.
  9824. - if test "$GCC" != yes; then
  9825. - with_gnu_ld=no
  9826. - fi
  9827. - ;;
  9828. - openbsd*)
  9829. - with_gnu_ld=no
  9830. +# func_append var value
  9831. +# Append VALUE to the end of shell variable VAR.
  9832. +func_append ()
  9833. +{
  9834. + eval "$[1]=\$$[1]\$[2]"
  9835. +}
  9836. +
  9837. +_LT_EOF
  9838. ;;
  9839. esac
  9840. +])
  9841. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  9842. - if test "$with_gnu_ld" = yes; then
  9843. - # If archive_cmds runs LD, not CC, wlarc should be empty
  9844. - wlarc='${wl}'
  9845. +# Helper functions for option handling. -*- Autoconf -*-
  9846. +#
  9847. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9848. +# Written by Gary V. Vaughan, 2004
  9849. +#
  9850. +# This file is free software; the Free Software Foundation gives
  9851. +# unlimited permission to copy and/or distribute it, with or without
  9852. +# modifications, as long as this notice is preserved.
  9853. - # See if GNU ld supports shared libraries.
  9854. - case $host_os in
  9855. - aix3* | aix4* | aix5*)
  9856. - # On AIX/PPC, the GNU linker is very broken
  9857. - if test "$host_cpu" != ia64; then
  9858. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9859. - cat <<EOF 1>&2
  9860. +# serial 6 ltoptions.m4
  9861. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  9862. -*** to be unable to reliably create shared libraries on AIX.
  9863. -*** Therefore, libtool is disabling shared libraries support. If you
  9864. -*** really care for shared libraries, you may want to modify your PATH
  9865. -*** so that a non-GNU linker is found, and then restart.
  9866. +# This is to help aclocal find these macros, as it can't see m4_define.
  9867. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9868. -EOF
  9869. - fi
  9870. - ;;
  9871. - amigaos*)
  9872. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  9873. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9874. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  9875. -
  9876. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  9877. - # that the semantics of dynamic libraries on AmigaOS, at least up
  9878. - # to version 4, is to share data among multiple programs linked
  9879. - # with the same dynamic library. Since this doesn't match the
  9880. - # behavior of shared libraries on other platforms, we can't use
  9881. - # them.
  9882. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9883. - ;;
  9884. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9885. +# ------------------------------------------
  9886. +m4_define([_LT_MANGLE_OPTION],
  9887. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9888. - beos*)
  9889. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9890. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9891. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9892. - # support --undefined. This deserves some investigation. FIXME
  9893. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9894. - else
  9895. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9896. - fi
  9897. - ;;
  9898. - cygwin* | mingw* | pw32*)
  9899. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9900. - # as there is no search path for DLLs.
  9901. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9902. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  9903. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  9904. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9905. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  9906. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9907. +# ---------------------------------------
  9908. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9909. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9910. +# saved as a flag.
  9911. +m4_define([_LT_SET_OPTION],
  9912. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9913. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9914. + _LT_MANGLE_DEFUN([$1], [$2]),
  9915. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9916. +])
  9917. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  9918. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9919. - # If the export-symbols file already is a .def file (1st line
  9920. - # is EXPORTS), use it as is; otherwise, prepend...
  9921. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9922. - cp $export_symbols $output_objdir/$soname.def;
  9923. - else
  9924. - echo EXPORTS > $output_objdir/$soname.def;
  9925. - cat $export_symbols >> $output_objdir/$soname.def;
  9926. - fi~
  9927. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  9928. - else
  9929. - ld_shlibs=no
  9930. - fi
  9931. - ;;
  9932. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  9933. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  9934. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  9935. - wlarc=
  9936. - else
  9937. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9938. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9939. - fi
  9940. - ;;
  9941. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9942. +# ------------------------------------------------------------
  9943. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9944. +m4_define([_LT_IF_OPTION],
  9945. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9946. - solaris* | sysv5*)
  9947. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  9948. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9949. - cat <<EOF 1>&2
  9950. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  9951. -*** create shared libraries on Solaris systems. Therefore, libtool
  9952. -*** is disabling shared libraries support. We urge you to upgrade GNU
  9953. -*** binutils to release 2.9.1 or newer. Another option is to modify
  9954. -*** your PATH or compiler configuration so that the native linker is
  9955. -*** used, and then restart.
  9956. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9957. +# -------------------------------------------------------
  9958. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9959. +# are set.
  9960. +m4_define([_LT_UNLESS_OPTIONS],
  9961. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9962. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9963. + [m4_define([$0_found])])])[]dnl
  9964. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9965. +])[]dnl
  9966. +])
  9967. -EOF
  9968. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  9969. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9970. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9971. - else
  9972. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  9973. - fi
  9974. - ;;
  9975. - sunos4*)
  9976. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9977. - wlarc=
  9978. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  9979. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  9980. - ;;
  9981. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9982. +# ----------------------------------------
  9983. +# OPTION-LIST is a space-separated list of Libtool options associated
  9984. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  9985. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  9986. +# the unknown option and exit.
  9987. +m4_defun([_LT_SET_OPTIONS],
  9988. +[# Set options
  9989. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9990. + [_LT_SET_OPTION([$1], _LT_Option)])
  9991. +
  9992. +m4_if([$1],[LT_INIT],[
  9993. + dnl
  9994. + dnl Simply set some default values (i.e off) if boolean options were not
  9995. + dnl specified:
  9996. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  9997. + ])
  9998. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  9999. + ])
  10000. + dnl
  10001. + dnl If no reference was made to various pairs of opposing options, then
  10002. + dnl we run the default mode handler for the pair. For example, if neither
  10003. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  10004. + dnl archives by default:
  10005. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  10006. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  10007. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  10008. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  10009. + [_LT_ENABLE_FAST_INSTALL])
  10010. + ])
  10011. +])# _LT_SET_OPTIONS
  10012. +
  10013. +
  10014. +
  10015. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  10016. +# -----------------------------------------
  10017. +m4_define([_LT_MANGLE_DEFUN],
  10018. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  10019. +
  10020. +
  10021. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  10022. +# -----------------------------------------------
  10023. +m4_define([LT_OPTION_DEFINE],
  10024. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  10025. +])# LT_OPTION_DEFINE
  10026. - linux*)
  10027. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10028. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10029. - _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  10030. - supports_anon_versioning=no
  10031. - case `$LD -v 2>/dev/null` in
  10032. - *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  10033. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  10034. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  10035. - *\ 2.11.*) ;; # other 2.11 versions
  10036. - *) supports_anon_versioning=yes ;;
  10037. - esac
  10038. - if test $supports_anon_versioning = yes; then
  10039. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  10040. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  10041. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  10042. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  10043. - else
  10044. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  10045. - fi
  10046. - _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  10047. - else
  10048. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10049. - fi
  10050. - ;;
  10051. - *)
  10052. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  10053. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10054. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10055. - else
  10056. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10057. - fi
  10058. - ;;
  10059. - esac
  10060. +# dlopen
  10061. +# ------
  10062. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  10063. +])
  10064. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  10065. - runpath_var=LD_RUN_PATH
  10066. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  10067. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  10068. - # ancient GNU ld didn't support --whole-archive et. al.
  10069. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  10070. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10071. - else
  10072. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  10073. - fi
  10074. - fi
  10075. - else
  10076. - # PORTME fill in a description of your system's linker (not GNU ld)
  10077. - case $host_os in
  10078. - aix3*)
  10079. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10080. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10081. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  10082. - # Note: this linker hardcodes the directories in LIBPATH if there
  10083. - # are no directories specified by -L.
  10084. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10085. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  10086. - # Neither direct hardcoding nor static linking is supported with a
  10087. - # broken collect2.
  10088. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10089. - fi
  10090. - ;;
  10091. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  10092. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  10093. +AC_DIAGNOSE([obsolete],
  10094. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10095. +put the `dlopen' option into LT_INIT's first parameter.])
  10096. +])
  10097. - aix4* | aix5*)
  10098. - if test "$host_cpu" = ia64; then
  10099. - # On IA64, the linker does run time linking by default, so we don't
  10100. - # have to do anything special.
  10101. - aix_use_runtimelinking=no
  10102. - exp_sym_flag='-Bexport'
  10103. - no_entry_flag=""
  10104. - else
  10105. - # If we're using GNU nm, then we don't want the "-C" option.
  10106. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  10107. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  10108. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  10109. - else
  10110. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  10111. - fi
  10112. - aix_use_runtimelinking=no
  10113. +dnl aclocal-1.4 backwards compatibility:
  10114. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  10115. - # Test if we are trying to use run time linking or normal
  10116. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10117. - # need to do runtime linking.
  10118. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  10119. - for ld_flag in $LDFLAGS; do
  10120. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  10121. - aix_use_runtimelinking=yes
  10122. - break
  10123. - fi
  10124. - done
  10125. - esac
  10126. - exp_sym_flag='-bexport'
  10127. - no_entry_flag='-bnoentry'
  10128. - fi
  10129. +# win32-dll
  10130. +# ---------
  10131. +# Declare package support for building win32 dll's.
  10132. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  10133. +[enable_win32_dll=yes
  10134. - # When large executables or shared objects are built, AIX ld can
  10135. - # have problems creating the table of contents. If linking a library
  10136. - # or program results in "error TOC overflow" add -mminimal-toc to
  10137. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10138. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10139. +case $host in
  10140. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  10141. + AC_CHECK_TOOL(AS, as, false)
  10142. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  10143. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  10144. + ;;
  10145. +esac
  10146. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  10147. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10148. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  10149. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10150. +test -z "$AS" && AS=as
  10151. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  10152. - if test "$GCC" = yes; then
  10153. - case $host_os in aix4.[012]|aix4.[012].*)
  10154. - # We only want to do this on AIX 4.2 and lower, the check
  10155. - # below for broken collect2 doesn't work under 4.3+
  10156. - collect2name=`${CC} -print-prog-name=collect2`
  10157. - if test -f "$collect2name" && \
  10158. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  10159. - then
  10160. - # We have reworked collect2
  10161. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10162. - else
  10163. - # We have old collect2
  10164. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  10165. - # It fails to find uninstalled libraries when the uninstalled
  10166. - # path is not listed in the libpath. Setting hardcode_minus_L
  10167. - # to unsupported forces relinking
  10168. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10169. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10170. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  10171. - fi
  10172. - esac
  10173. - shared_flag='-shared'
  10174. - else
  10175. - # not using gcc
  10176. - if test "$host_cpu" = ia64; then
  10177. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10178. - # chokes on -Wl,-G. The following line is correct:
  10179. - shared_flag='-G'
  10180. - else
  10181. - if test "$aix_use_runtimelinking" = yes; then
  10182. - shared_flag='${wl}-G'
  10183. - else
  10184. - shared_flag='${wl}-bM:SRE'
  10185. - fi
  10186. - fi
  10187. - fi
  10188. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  10189. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  10190. - # It seems that -bexpall does not export symbols beginning with
  10191. - # underscore (_), so it is better to generate a list of symbols to export.
  10192. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10193. - if test "$aix_use_runtimelinking" = yes; then
  10194. - # Warning - without using the other runtime loading flags (-brtl),
  10195. - # -berok will link without error, but may produce a broken library.
  10196. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  10197. - # Determine the default libpath from the value encoded in an empty executable.
  10198. - _LT_AC_SYS_LIBPATH_AIX
  10199. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10200. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  10201. - else
  10202. - if test "$host_cpu" = ia64; then
  10203. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  10204. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  10205. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  10206. - else
  10207. - # Determine the default libpath from the value encoded in an empty executable.
  10208. - _LT_AC_SYS_LIBPATH_AIX
  10209. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  10210. - # Warning - without using the other run time loading flags,
  10211. - # -berok will link without error, but may produce a broken library.
  10212. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  10213. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  10214. - # -bexpall does not export symbols beginning with underscore (_)
  10215. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  10216. - # Exported symbols can be pulled into shared objects from archives
  10217. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  10218. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10219. - # This is similar to how AIX traditionally builds it's shared libraries.
  10220. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  10221. - fi
  10222. - fi
  10223. - ;;
  10224. +test -z "$OBJDUMP" && OBJDUMP=objdump
  10225. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  10226. +])# win32-dll
  10227. - amigaos*)
  10228. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  10229. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10230. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10231. - # see comment about different semantics on the GNU ld section
  10232. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10233. - ;;
  10234. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  10235. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  10236. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  10237. +AC_DIAGNOSE([obsolete],
  10238. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10239. +put the `win32-dll' option into LT_INIT's first parameter.])
  10240. +])
  10241. - bsdi4*)
  10242. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  10243. - ;;
  10244. +dnl aclocal-1.4 backwards compatibility:
  10245. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10246. - cygwin* | mingw* | pw32*)
  10247. - # When not using gcc, we currently assume that we are using
  10248. - # Microsoft Visual C++.
  10249. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  10250. - # no search path for DLLs.
  10251. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  10252. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10253. - # Tell ltmain to make .lib files, not .a files.
  10254. - libext=lib
  10255. - # Tell ltmain to make .dll files, not .so files.
  10256. - shrext_cmds=".dll"
  10257. - # FIXME: Setting linknames here is a bad hack.
  10258. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  10259. - # The linker will automatically build a .lib file if we build a DLL.
  10260. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  10261. - # FIXME: Should let the user specify the lib program.
  10262. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  10263. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  10264. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  10265. - ;;
  10266. - darwin* | rhapsody*)
  10267. - if test "$GXX" = yes ; then
  10268. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10269. - case "$host_os" in
  10270. - rhapsody* | darwin1.[[012]])
  10271. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  10272. - ;;
  10273. - *) # Darwin 1.3 on
  10274. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  10275. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  10276. - else
  10277. - case ${MACOSX_DEPLOYMENT_TARGET} in
  10278. - 10.[[012]])
  10279. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  10280. - ;;
  10281. - 10.*)
  10282. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  10283. - ;;
  10284. - esac
  10285. - fi
  10286. - ;;
  10287. - esac
  10288. - lt_int_apple_cc_single_mod=no
  10289. - output_verbose_link_cmd='echo'
  10290. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  10291. - lt_int_apple_cc_single_mod=yes
  10292. - fi
  10293. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10294. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10295. - else
  10296. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  10297. - fi
  10298. - _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  10299. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  10300. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  10301. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10302. - else
  10303. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10304. - fi
  10305. - _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  10306. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10307. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  10308. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  10309. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  10310. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10311. - else
  10312. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10313. - fi
  10314. +# _LT_ENABLE_SHARED([DEFAULT])
  10315. +# ----------------------------
  10316. +# implement the --enable-shared flag, and supports the `shared' and
  10317. +# `disable-shared' LT_INIT options.
  10318. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10319. +m4_define([_LT_ENABLE_SHARED],
  10320. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10321. +AC_ARG_ENABLE([shared],
  10322. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10323. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10324. + [p=${PACKAGE-default}
  10325. + case $enableval in
  10326. + yes) enable_shared=yes ;;
  10327. + no) enable_shared=no ;;
  10328. + *)
  10329. + enable_shared=no
  10330. + # Look at the argument we got. We use all the common list separators.
  10331. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10332. + for pkg in $enableval; do
  10333. + IFS="$lt_save_ifs"
  10334. + if test "X$pkg" = "X$p"; then
  10335. + enable_shared=yes
  10336. + fi
  10337. + done
  10338. + IFS="$lt_save_ifs"
  10339. ;;
  10340. + esac],
  10341. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10342. - dgux*)
  10343. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10344. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10345. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10346. - ;;
  10347. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10348. + [Whether or not to build shared libraries])
  10349. +])# _LT_ENABLE_SHARED
  10350. - freebsd1*)
  10351. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10352. - ;;
  10353. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10354. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10355. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  10356. - # support. Future versions do this automatically, but an explicit c++rt0.o
  10357. - # does not break anything, and helps significantly (at the cost of a little
  10358. - # extra space).
  10359. - freebsd2.2*)
  10360. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  10361. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10362. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10363. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10364. - ;;
  10365. +# Old names:
  10366. +AC_DEFUN([AC_ENABLE_SHARED],
  10367. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10368. +])
  10369. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  10370. - freebsd2*)
  10371. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10372. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10373. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10374. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10375. - ;;
  10376. +AC_DEFUN([AC_DISABLE_SHARED],
  10377. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10378. +])
  10379. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  10380. - freebsd* | kfreebsd*-gnu)
  10381. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  10382. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10383. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10384. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10385. - ;;
  10386. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10387. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10388. - hpux9*)
  10389. - if test "$GCC" = yes; then
  10390. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10391. - else
  10392. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  10393. - fi
  10394. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10395. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10396. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10397. +dnl aclocal-1.4 backwards compatibility:
  10398. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10399. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10400. - # hardcode_minus_L: Not really in the search PATH,
  10401. - # but as the default location of the library.
  10402. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10403. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10404. +
  10405. +
  10406. +# _LT_ENABLE_STATIC([DEFAULT])
  10407. +# ----------------------------
  10408. +# implement the --enable-static flag, and support the `static' and
  10409. +# `disable-static' LT_INIT options.
  10410. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10411. +m4_define([_LT_ENABLE_STATIC],
  10412. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10413. +AC_ARG_ENABLE([static],
  10414. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10415. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10416. + [p=${PACKAGE-default}
  10417. + case $enableval in
  10418. + yes) enable_static=yes ;;
  10419. + no) enable_static=no ;;
  10420. + *)
  10421. + enable_static=no
  10422. + # Look at the argument we got. We use all the common list separators.
  10423. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10424. + for pkg in $enableval; do
  10425. + IFS="$lt_save_ifs"
  10426. + if test "X$pkg" = "X$p"; then
  10427. + enable_static=yes
  10428. + fi
  10429. + done
  10430. + IFS="$lt_save_ifs"
  10431. ;;
  10432. + esac],
  10433. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10434. - hpux10* | hpux11*)
  10435. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  10436. - case "$host_cpu" in
  10437. - hppa*64*|ia64*)
  10438. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10439. - ;;
  10440. - *)
  10441. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  10442. - ;;
  10443. - esac
  10444. - else
  10445. - case "$host_cpu" in
  10446. - hppa*64*|ia64*)
  10447. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  10448. - ;;
  10449. - *)
  10450. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  10451. - ;;
  10452. - esac
  10453. - fi
  10454. - if test "$with_gnu_ld" = no; then
  10455. - case "$host_cpu" in
  10456. - hppa*64*)
  10457. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10458. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  10459. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10460. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10461. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10462. - ;;
  10463. - ia64*)
  10464. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10465. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10466. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10467. + _LT_DECL([build_old_libs], [enable_static], [0],
  10468. + [Whether or not to build static libraries])
  10469. +])# _LT_ENABLE_STATIC
  10470. - # hardcode_minus_L: Not really in the search PATH,
  10471. - # but as the default location of the library.
  10472. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10473. - ;;
  10474. - *)
  10475. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  10476. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10477. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10478. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10479. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10480. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10481. - # hardcode_minus_L: Not really in the search PATH,
  10482. - # but as the default location of the library.
  10483. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10484. - ;;
  10485. - esac
  10486. - fi
  10487. - ;;
  10488. +# Old names:
  10489. +AC_DEFUN([AC_ENABLE_STATIC],
  10490. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10491. +])
  10492. - irix5* | irix6* | nonstopux*)
  10493. - if test "$GCC" = yes; then
  10494. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10495. - else
  10496. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10497. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  10498. - fi
  10499. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10500. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10501. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10502. - ;;
  10503. +AC_DEFUN([AC_DISABLE_STATIC],
  10504. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10505. +])
  10506. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  10507. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  10508. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  10509. - else
  10510. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  10511. - fi
  10512. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10513. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10514. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10515. - ;;
  10516. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10517. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10518. - newsos6)
  10519. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10520. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10521. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10522. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10523. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10524. - ;;
  10525. +dnl aclocal-1.4 backwards compatibility:
  10526. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10527. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10528. - openbsd*)
  10529. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10530. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10531. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  10532. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10533. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10534. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  10535. - else
  10536. - case $host_os in
  10537. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  10538. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  10539. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10540. - ;;
  10541. - *)
  10542. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  10543. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  10544. - ;;
  10545. - esac
  10546. - fi
  10547. - ;;
  10548. - os2*)
  10549. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10550. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10551. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  10552. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  10553. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  10554. - ;;
  10555. - osf3*)
  10556. - if test "$GCC" = yes; then
  10557. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10558. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10559. - else
  10560. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10561. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10562. - fi
  10563. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10564. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10565. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10566. +# ----------------------------------
  10567. +# implement the --enable-fast-install flag, and support the `fast-install'
  10568. +# and `disable-fast-install' LT_INIT options.
  10569. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10570. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10571. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10572. +AC_ARG_ENABLE([fast-install],
  10573. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10574. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10575. + [p=${PACKAGE-default}
  10576. + case $enableval in
  10577. + yes) enable_fast_install=yes ;;
  10578. + no) enable_fast_install=no ;;
  10579. + *)
  10580. + enable_fast_install=no
  10581. + # Look at the argument we got. We use all the common list separators.
  10582. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10583. + for pkg in $enableval; do
  10584. + IFS="$lt_save_ifs"
  10585. + if test "X$pkg" = "X$p"; then
  10586. + enable_fast_install=yes
  10587. + fi
  10588. + done
  10589. + IFS="$lt_save_ifs"
  10590. ;;
  10591. + esac],
  10592. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10593. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  10594. - if test "$GCC" = yes; then
  10595. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10596. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10597. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10598. - else
  10599. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10600. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  10601. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  10602. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  10603. -
  10604. - # Both c and cxx compiler support -rpath directly
  10605. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10606. - fi
  10607. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  10608. - ;;
  10609. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10610. + [Whether or not to optimize for fast installation])dnl
  10611. +])# _LT_ENABLE_FAST_INSTALL
  10612. +
  10613. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10614. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10615. +
  10616. +# Old names:
  10617. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10618. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10619. +AC_DIAGNOSE([obsolete],
  10620. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10621. +the `fast-install' option into LT_INIT's first parameter.])
  10622. +])
  10623. - sco3.2v5*)
  10624. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10625. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10626. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10627. - runpath_var=LD_RUN_PATH
  10628. - hardcode_runpath_var=yes
  10629. - ;;
  10630. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10631. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10632. +AC_DIAGNOSE([obsolete],
  10633. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10634. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10635. +])
  10636. - solaris*)
  10637. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10638. - if test "$GCC" = yes; then
  10639. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10640. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10641. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  10642. - else
  10643. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10644. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10645. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10646. - fi
  10647. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10648. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10649. - case $host_os in
  10650. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10651. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  10652. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  10653. - esac
  10654. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  10655. - ;;
  10656. +dnl aclocal-1.4 backwards compatibility:
  10657. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10658. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10659. - sunos4*)
  10660. - if test "x$host_vendor" = xsequent; then
  10661. - # Use $CC to link under sequent, because it throws in some extra .o
  10662. - # files that make .init and .fini sections work.
  10663. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  10664. - else
  10665. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  10666. - fi
  10667. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10668. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10669. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  10670. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10671. - ;;
  10672. - sysv4)
  10673. - case $host_vendor in
  10674. - sni)
  10675. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10676. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  10677. - ;;
  10678. - siemens)
  10679. - ## LD is ld it makes a PLAMLIB
  10680. - ## CC just makes a GrossModule.
  10681. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10682. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  10683. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  10684. - ;;
  10685. - motorola)
  10686. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10687. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  10688. - ;;
  10689. - esac
  10690. - runpath_var='LD_RUN_PATH'
  10691. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10692. - ;;
  10693. +# _LT_WITH_PIC([MODE])
  10694. +# --------------------
  10695. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10696. +# LT_INIT options.
  10697. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10698. +m4_define([_LT_WITH_PIC],
  10699. +[AC_ARG_WITH([pic],
  10700. + [AS_HELP_STRING([--with-pic],
  10701. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10702. + [pic_mode="$withval"],
  10703. + [pic_mode=default])
  10704. - sysv4.3*)
  10705. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10706. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10707. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  10708. - ;;
  10709. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10710. - sysv4*MP*)
  10711. - if test -d /usr/nec; then
  10712. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10713. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10714. - runpath_var=LD_RUN_PATH
  10715. - hardcode_runpath_var=yes
  10716. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  10717. - fi
  10718. - ;;
  10719. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10720. +])# _LT_WITH_PIC
  10721. - sysv4.2uw2*)
  10722. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  10723. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  10724. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  10725. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10726. - hardcode_runpath_var=yes
  10727. - runpath_var=LD_RUN_PATH
  10728. - ;;
  10729. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10730. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10731. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  10732. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  10733. - if test "$GCC" = yes; then
  10734. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10735. - else
  10736. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  10737. - fi
  10738. - runpath_var='LD_RUN_PATH'
  10739. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10740. - ;;
  10741. +# Old name:
  10742. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10743. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10744. +AC_DIAGNOSE([obsolete],
  10745. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10746. +put the `pic-only' option into LT_INIT's first parameter.])
  10747. +])
  10748. - sysv5*)
  10749. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  10750. - # $CC -shared without GNU ld will not create a library from C++
  10751. - # object files and a static libstdc++, better avoid it by now
  10752. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10753. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  10754. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  10755. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10756. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10757. - runpath_var='LD_RUN_PATH'
  10758. - ;;
  10759. +dnl aclocal-1.4 backwards compatibility:
  10760. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10761. - uts4*)
  10762. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  10763. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  10764. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  10765. - ;;
  10766. - *)
  10767. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  10768. - ;;
  10769. - esac
  10770. - fi
  10771. -])
  10772. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  10773. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10774. +m4_define([_LTDL_MODE], [])
  10775. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10776. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10777. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10778. + [m4_define([_LTDL_MODE], [recursive])])
  10779. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10780. + [m4_define([_LTDL_MODE], [subproject])])
  10781. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10782. -if test "$GCC" = yes; then
  10783. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10784. -fi
  10785. +m4_define([_LTDL_TYPE], [])
  10786. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10787. + [m4_define([_LTDL_TYPE], [installable])])
  10788. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10789. + [m4_define([_LTDL_TYPE], [convenience])])
  10790. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10791. #
  10792. -# Do we need to explicitly link libc?
  10793. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10794. +# Written by Gary V. Vaughan, 2004
  10795. #
  10796. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  10797. -x|xyes)
  10798. - # Assume -lc should be added
  10799. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10800. +# This file is free software; the Free Software Foundation gives
  10801. +# unlimited permission to copy and/or distribute it, with or without
  10802. +# modifications, as long as this notice is preserved.
  10803. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  10804. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  10805. - *'~'*)
  10806. - # FIXME: we may have to deal with multi-command sequences.
  10807. - ;;
  10808. - '$CC '*)
  10809. - # Test whether the compiler implicitly links with -lc since on some
  10810. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  10811. - # to ld, don't add -lc before -lgcc.
  10812. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  10813. - $rm conftest*
  10814. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  10815. +# serial 6 ltsugar.m4
  10816. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  10817. - soname=conftest
  10818. - lib=conftest
  10819. - libobjs=conftest.$ac_objext
  10820. - deplibs=
  10821. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  10822. - compiler_flags=-v
  10823. - linker_flags=-v
  10824. - verstring=
  10825. - output_objdir=.
  10826. - libname=conftest
  10827. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  10828. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  10829. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  10830. - then
  10831. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  10832. - else
  10833. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  10834. - fi
  10835. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  10836. - else
  10837. - cat conftest.err 1>&5
  10838. - fi
  10839. - $rm conftest*
  10840. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  10841. - ;;
  10842. - esac
  10843. - fi
  10844. - ;;
  10845. -esac
  10846. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  10847. +# This is to help aclocal find these macros, as it can't see m4_define.
  10848. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10849. -# _LT_AC_FILE_LTDLL_C
  10850. -# -------------------
  10851. -# Be careful that the start marker always follows a newline.
  10852. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  10853. -# /* ltdll.c starts here */
  10854. -# #define WIN32_LEAN_AND_MEAN
  10855. -# #include <windows.h>
  10856. -# #undef WIN32_LEAN_AND_MEAN
  10857. -# #include <stdio.h>
  10858. -#
  10859. -# #ifndef __CYGWIN__
  10860. -# # ifdef __CYGWIN32__
  10861. -# # define __CYGWIN__ __CYGWIN32__
  10862. -# # endif
  10863. -# #endif
  10864. -#
  10865. -# #ifdef __cplusplus
  10866. -# extern "C" {
  10867. -# #endif
  10868. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  10869. -# #ifdef __cplusplus
  10870. -# }
  10871. -# #endif
  10872. -#
  10873. -# #ifdef __CYGWIN__
  10874. -# #include <cygwin/cygwin_dll.h>
  10875. -# DECLARE_CYGWIN_DLL( DllMain );
  10876. -# #endif
  10877. -# HINSTANCE __hDllInstance_base;
  10878. -#
  10879. -# BOOL APIENTRY
  10880. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  10881. -# {
  10882. -# __hDllInstance_base = hInst;
  10883. -# return TRUE;
  10884. -# }
  10885. -# /* ltdll.c ends here */
  10886. -])# _LT_AC_FILE_LTDLL_C
  10887. +# lt_join(SEP, ARG1, [ARG2...])
  10888. +# -----------------------------
  10889. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10890. +# associated separator.
  10891. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10892. +# versions in m4sugar had bugs.
  10893. +m4_define([lt_join],
  10894. +[m4_if([$#], [1], [],
  10895. + [$#], [2], [[$2]],
  10896. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10897. +m4_define([_lt_join],
  10898. +[m4_if([$#$2], [2], [],
  10899. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10900. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  10901. -# ---------------------------------
  10902. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  10903. +# lt_car(LIST)
  10904. +# lt_cdr(LIST)
  10905. +# ------------
  10906. +# Manipulate m4 lists.
  10907. +# These macros are necessary as long as will still need to support
  10908. +# Autoconf-2.59 which quotes differently.
  10909. +m4_define([lt_car], [[$1]])
  10910. +m4_define([lt_cdr],
  10911. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10912. + [$#], 1, [],
  10913. + [m4_dquote(m4_shift($@))])])
  10914. +m4_define([lt_unquote], $1)
  10915. +
  10916. +
  10917. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10918. +# ------------------------------------------
  10919. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10920. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10921. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10922. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10923. +# than defined and empty).
  10924. +#
  10925. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10926. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10927. +m4_define([lt_append],
  10928. +[m4_define([$1],
  10929. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10930. -# old names
  10931. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  10932. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10933. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10934. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10935. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10936. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  10937. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  10938. -# This is just to silence aclocal about the macro not being used
  10939. -ifelse([AC_DISABLE_FAST_INSTALL])
  10940. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10941. +# ----------------------------------------------------------
  10942. +# Produce a SEP delimited list of all paired combinations of elements of
  10943. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10944. +# has the form PREFIXmINFIXSUFFIXn.
  10945. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10946. +m4_define([lt_combine],
  10947. +[m4_if(m4_eval([$# > 3]), [1],
  10948. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10949. +[[m4_foreach([_Lt_prefix], [$2],
  10950. + [m4_foreach([_Lt_suffix],
  10951. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10952. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10953. +
  10954. +
  10955. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10956. +# -----------------------------------------------------------------------
  10957. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10958. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10959. +m4_define([lt_if_append_uniq],
  10960. +[m4_ifdef([$1],
  10961. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10962. + [lt_append([$1], [$2], [$3])$4],
  10963. + [$5])],
  10964. + [lt_append([$1], [$2], [$3])$4])])
  10965. -AC_DEFUN([LT_AC_PROG_GCJ],
  10966. -[AC_CHECK_TOOL(GCJ, gcj, no)
  10967. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10968. - AC_SUBST(GCJFLAGS)
  10969. -])
  10970. -AC_DEFUN([LT_AC_PROG_RC],
  10971. -[AC_CHECK_TOOL(RC, windres, no)
  10972. -])
  10973. +# lt_dict_add(DICT, KEY, VALUE)
  10974. +# -----------------------------
  10975. +m4_define([lt_dict_add],
  10976. +[m4_define([$1($2)], [$3])])
  10977. -# NOTE: This macro has been submitted for inclusion into #
  10978. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  10979. -# a released version of Autoconf we should remove this #
  10980. -# macro and use it instead. #
  10981. -# LT_AC_PROG_SED
  10982. -# --------------
  10983. -# Check for a fully-functional sed program, that truncates
  10984. -# as few characters as possible. Prefer GNU sed if found.
  10985. -AC_DEFUN([LT_AC_PROG_SED],
  10986. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  10987. -AC_CACHE_VAL(lt_cv_path_SED,
  10988. -[# Loop through the user's path and test for sed and gsed.
  10989. -# Then use that list of sed's as ones to test for truncation.
  10990. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10991. -for as_dir in $PATH
  10992. -do
  10993. - IFS=$as_save_IFS
  10994. - test -z "$as_dir" && as_dir=.
  10995. - for lt_ac_prog in sed gsed; do
  10996. - for ac_exec_ext in '' $ac_executable_extensions; do
  10997. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  10998. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  10999. - fi
  11000. - done
  11001. - done
  11002. -done
  11003. -lt_ac_max=0
  11004. -lt_ac_count=0
  11005. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11006. -# along with /bin/sed that truncates output.
  11007. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11008. - test ! -f $lt_ac_sed && break
  11009. - cat /dev/null > conftest.in
  11010. - lt_ac_count=0
  11011. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11012. - # Check for GNU sed and select it if it is found.
  11013. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11014. - lt_cv_path_SED=$lt_ac_sed
  11015. - break
  11016. - fi
  11017. - while true; do
  11018. - cat conftest.in conftest.in >conftest.tmp
  11019. - mv conftest.tmp conftest.in
  11020. - cp conftest.in conftest.nl
  11021. - echo >>conftest.nl
  11022. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11023. - cmp -s conftest.out conftest.nl || break
  11024. - # 10000 chars as input seems more than enough
  11025. - test $lt_ac_count -gt 10 && break
  11026. - lt_ac_count=`expr $lt_ac_count + 1`
  11027. - if test $lt_ac_count -gt $lt_ac_max; then
  11028. - lt_ac_max=$lt_ac_count
  11029. - lt_cv_path_SED=$lt_ac_sed
  11030. - fi
  11031. - done
  11032. -done
  11033. -SED=$lt_cv_path_SED
  11034. +
  11035. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  11036. +# --------------------------------------------
  11037. +m4_define([lt_dict_add_subkey],
  11038. +[m4_define([$1($2:$3)], [$4])])
  11039. +
  11040. +
  11041. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  11042. +# ----------------------------------
  11043. +m4_define([lt_dict_fetch],
  11044. +[m4_ifval([$3],
  11045. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  11046. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  11047. +
  11048. +
  11049. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  11050. +# -----------------------------------------------------------------
  11051. +m4_define([lt_if_dict_fetch],
  11052. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  11053. + [$5],
  11054. + [$6])])
  11055. +
  11056. +
  11057. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  11058. +# --------------------------------------------------------------
  11059. +m4_define([lt_dict_filter],
  11060. +[m4_if([$5], [], [],
  11061. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  11062. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  11063. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  11064. ])
  11065. -AC_MSG_RESULT([$SED])
  11066. +
  11067. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  11068. +#
  11069. +# Copyright (C) 2004 Free Software Foundation, Inc.
  11070. +# Written by Scott James Remnant, 2004
  11071. +#
  11072. +# This file is free software; the Free Software Foundation gives
  11073. +# unlimited permission to copy and/or distribute it, with or without
  11074. +# modifications, as long as this notice is preserved.
  11075. +
  11076. +# Generated from ltversion.in.
  11077. +
  11078. +# serial 3017 ltversion.m4
  11079. +# This file is part of GNU Libtool
  11080. +
  11081. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  11082. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  11083. +
  11084. +AC_DEFUN([LTVERSION_VERSION],
  11085. +[macro_version='2.2.6b'
  11086. +macro_revision='1.3017'
  11087. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  11088. +_LT_DECL(, macro_revision, 0)
  11089. ])
  11090. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  11091. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  11092. +#
  11093. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  11094. +# Written by Scott James Remnant, 2004.
  11095. +#
  11096. +# This file is free software; the Free Software Foundation gives
  11097. +# unlimited permission to copy and/or distribute it, with or without
  11098. +# modifications, as long as this notice is preserved.
  11099. +
  11100. +# serial 4 lt~obsolete.m4
  11101. +
  11102. +# These exist entirely to fool aclocal when bootstrapping libtool.
  11103. +#
  11104. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  11105. +# which have later been changed to m4_define as they aren't part of the
  11106. +# exported API, or moved to Autoconf or Automake where they belong.
  11107. +#
  11108. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  11109. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  11110. +# using a macro with the same name in our local m4/libtool.m4 it'll
  11111. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  11112. +# and doesn't know about Autoconf macros at all.)
  11113. +#
  11114. +# So we provide this file, which has a silly filename so it's always
  11115. +# included after everything else. This provides aclocal with the
  11116. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  11117. +# because those macros already exist, or will be overwritten later.
  11118. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  11119. +#
  11120. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  11121. +# Yes, that means every name once taken will need to remain here until
  11122. +# we give up compatibility with versions before 1.7, at which point
  11123. +# we need to keep only those names which we still refer to.
  11124. +
  11125. +# This is to help aclocal find these macros, as it can't see m4_define.
  11126. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  11127. +
  11128. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  11129. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  11130. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  11131. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  11132. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  11133. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  11134. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  11135. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  11136. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  11137. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  11138. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  11139. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  11140. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  11141. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  11142. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  11143. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  11144. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  11145. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  11146. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  11147. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  11148. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  11149. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  11150. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  11151. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  11152. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  11153. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  11154. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  11155. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  11156. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  11157. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  11158. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  11159. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  11160. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  11161. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  11162. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  11163. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  11164. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  11165. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  11166. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  11167. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  11168. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  11169. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  11170. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  11171. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  11172. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  11173. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  11174. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  11175. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  11176. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  11177. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  11178. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  11179. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  11180. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  11181. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  11182. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  11183. +
  11184. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11185. #
  11186. # This file is free software; the Free Software Foundation
  11187. # gives unlimited permission to copy and/or distribute it,
  11188. @@ -5937,14 +7995,31 @@
  11189. # ----------------------------
  11190. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  11191. # generated from the m4 files accompanying Automake X.Y.
  11192. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  11193. +# (This private macro should not be called outside this file.)
  11194. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  11195. +[am__api_version='1.11'
  11196. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  11197. +dnl require some minimum version. Point them to the right macro.
  11198. +m4_if([$1], [1.11.1], [],
  11199. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  11200. +])
  11201. +
  11202. +# _AM_AUTOCONF_VERSION(VERSION)
  11203. +# -----------------------------
  11204. +# aclocal traces this macro to find the Autoconf version.
  11205. +# This is a private macro too. Using m4_define simplifies
  11206. +# the logic in aclocal, which can simply ignore this definition.
  11207. +m4_define([_AM_AUTOCONF_VERSION], [])
  11208. # AM_SET_CURRENT_AUTOMAKE_VERSION
  11209. # -------------------------------
  11210. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  11211. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  11212. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  11213. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  11214. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  11215. - [AM_AUTOMAKE_VERSION([1.9.5])])
  11216. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  11217. +m4_ifndef([AC_AUTOCONF_VERSION],
  11218. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  11219. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  11220. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  11221. @@ -6001,14 +8076,14 @@
  11222. # AM_CONDITIONAL -*- Autoconf -*-
  11223. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  11224. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  11225. # Free Software Foundation, Inc.
  11226. #
  11227. # This file is free software; the Free Software Foundation
  11228. # gives unlimited permission to copy and/or distribute it,
  11229. # with or without modifications, as long as this notice is preserved.
  11230. -# serial 7
  11231. +# serial 9
  11232. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  11233. # -------------------------------------
  11234. @@ -6017,8 +8092,11 @@
  11235. [AC_PREREQ(2.52)dnl
  11236. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  11237. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  11238. -AC_SUBST([$1_TRUE])
  11239. -AC_SUBST([$1_FALSE])
  11240. +AC_SUBST([$1_TRUE])dnl
  11241. +AC_SUBST([$1_FALSE])dnl
  11242. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  11243. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  11244. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  11245. if $2; then
  11246. $1_TRUE=
  11247. $1_FALSE='#'
  11248. @@ -6032,15 +8110,14 @@
  11249. Usually this means the macro was only invoked conditionally.]])
  11250. fi])])
  11251. -
  11252. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11253. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  11254. # Free Software Foundation, Inc.
  11255. #
  11256. # This file is free software; the Free Software Foundation
  11257. # gives unlimited permission to copy and/or distribute it,
  11258. # with or without modifications, as long as this notice is preserved.
  11259. -# serial 8
  11260. +# serial 10
  11261. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  11262. # written in clear, in which case automake, when reading aclocal.m4,
  11263. @@ -6068,6 +8145,7 @@
  11264. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  11265. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  11266. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  11267. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  11268. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  11269. [depcc="$$1" am_compiler_list=])
  11270. @@ -6096,6 +8174,16 @@
  11271. if test "$am_compiler_list" = ""; then
  11272. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  11273. fi
  11274. + am__universal=false
  11275. + m4_case([$1], [CC],
  11276. + [case " $depcc " in #(
  11277. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11278. + esac],
  11279. + [CXX],
  11280. + [case " $depcc " in #(
  11281. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  11282. + esac])
  11283. +
  11284. for depmode in $am_compiler_list; do
  11285. # Setup a source with many dependencies, because some compilers
  11286. # like to wrap large dependency lists on column 80 (with \), and
  11287. @@ -6113,7 +8201,17 @@
  11288. done
  11289. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  11290. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11291. + # mode. It turns out that the SunPro C++ compiler does not properly
  11292. + # handle `-M -o', and we need to detect this. Also, some Intel
  11293. + # versions had trouble with output in subdirs
  11294. + am__obj=sub/conftest.${OBJEXT-o}
  11295. + am__minus_obj="-o $am__obj"
  11296. case $depmode in
  11297. + gcc)
  11298. + # This depmode causes a compiler race in universal mode.
  11299. + test "$am__universal" = false || continue
  11300. + ;;
  11301. nosideeffect)
  11302. # after this tag, mechanisms are not by side-effect, so they'll
  11303. # only be used when explicitly requested
  11304. @@ -6123,18 +8221,23 @@
  11305. break
  11306. fi
  11307. ;;
  11308. + msvisualcpp | msvcmsys)
  11309. + # This compiler won't grok `-c -o', but also, the minuso test has
  11310. + # not run yet. These depmodes are late enough in the game, and
  11311. + # so weak that their functioning should not be impacted.
  11312. + am__obj=conftest.${OBJEXT-o}
  11313. + am__minus_obj=
  11314. + ;;
  11315. none) break ;;
  11316. esac
  11317. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  11318. - # mode. It turns out that the SunPro C++ compiler does not properly
  11319. - # handle `-M -o', and we need to detect this.
  11320. if depmode=$depmode \
  11321. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  11322. + source=sub/conftest.c object=$am__obj \
  11323. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  11324. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  11325. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  11326. >/dev/null 2>conftest.err &&
  11327. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  11328. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  11329. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  11330. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  11331. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  11332. # icc doesn't choke on unknown options, it will just issue warnings
  11333. # or remarks (even with -Werror). So we grep stderr for any message
  11334. @@ -6185,61 +8288,74 @@
  11335. AMDEPBACKSLASH='\'
  11336. fi
  11337. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  11338. -AC_SUBST([AMDEPBACKSLASH])
  11339. +AC_SUBST([AMDEPBACKSLASH])dnl
  11340. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  11341. ])
  11342. # Generate code to set up dependency tracking. -*- Autoconf -*-
  11343. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11344. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11345. # Free Software Foundation, Inc.
  11346. #
  11347. # This file is free software; the Free Software Foundation
  11348. # gives unlimited permission to copy and/or distribute it,
  11349. # with or without modifications, as long as this notice is preserved.
  11350. -#serial 3
  11351. +#serial 5
  11352. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  11353. # ------------------------------
  11354. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  11355. -[for mf in $CONFIG_FILES; do
  11356. - # Strip MF so we end up with the name of the file.
  11357. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  11358. - # Check whether this is an Automake generated Makefile or not.
  11359. - # We used to match only the files named `Makefile.in', but
  11360. - # some people rename them; so instead we look at the file content.
  11361. - # Grep'ing the first line is not enough: some people post-process
  11362. - # each Makefile.in and add a new line on top of each file to say so.
  11363. - # So let's grep whole file.
  11364. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  11365. - dirpart=`AS_DIRNAME("$mf")`
  11366. - else
  11367. - continue
  11368. - fi
  11369. - # Extract the definition of DEPDIR, am__include, and am__quote
  11370. - # from the Makefile without running `make'.
  11371. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11372. - test -z "$DEPDIR" && continue
  11373. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11374. - test -z "am__include" && continue
  11375. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11376. - # When using ansi2knr, U may be empty or an underscore; expand it
  11377. - U=`sed -n 's/^U = //p' < "$mf"`
  11378. - # Find all dependency output files, they are included files with
  11379. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  11380. - # simplest approach to changing $(DEPDIR) to its actual value in the
  11381. - # expansion.
  11382. - for file in `sed -n "
  11383. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11384. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11385. - # Make sure the directory exists.
  11386. - test -f "$dirpart/$file" && continue
  11387. - fdir=`AS_DIRNAME(["$file"])`
  11388. - AS_MKDIR_P([$dirpart/$fdir])
  11389. - # echo "creating $dirpart/$file"
  11390. - echo '# dummy' > "$dirpart/$file"
  11391. +[{
  11392. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11393. + # are listed without --file. Let's play safe and only enable the eval
  11394. + # if we detect the quoting.
  11395. + case $CONFIG_FILES in
  11396. + *\'*) eval set x "$CONFIG_FILES" ;;
  11397. + *) set x $CONFIG_FILES ;;
  11398. + esac
  11399. + shift
  11400. + for mf
  11401. + do
  11402. + # Strip MF so we end up with the name of the file.
  11403. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  11404. + # Check whether this is an Automake generated Makefile or not.
  11405. + # We used to match only the files named `Makefile.in', but
  11406. + # some people rename them; so instead we look at the file content.
  11407. + # Grep'ing the first line is not enough: some people post-process
  11408. + # each Makefile.in and add a new line on top of each file to say so.
  11409. + # Grep'ing the whole file is not good either: AIX grep has a line
  11410. + # limit of 2048, but all sed's we know have understand at least 4000.
  11411. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11412. + dirpart=`AS_DIRNAME("$mf")`
  11413. + else
  11414. + continue
  11415. + fi
  11416. + # Extract the definition of DEPDIR, am__include, and am__quote
  11417. + # from the Makefile without running `make'.
  11418. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11419. + test -z "$DEPDIR" && continue
  11420. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11421. + test -z "am__include" && continue
  11422. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11423. + # When using ansi2knr, U may be empty or an underscore; expand it
  11424. + U=`sed -n 's/^U = //p' < "$mf"`
  11425. + # Find all dependency output files, they are included files with
  11426. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  11427. + # simplest approach to changing $(DEPDIR) to its actual value in the
  11428. + # expansion.
  11429. + for file in `sed -n "
  11430. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11431. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11432. + # Make sure the directory exists.
  11433. + test -f "$dirpart/$file" && continue
  11434. + fdir=`AS_DIRNAME(["$file"])`
  11435. + AS_MKDIR_P([$dirpart/$fdir])
  11436. + # echo "creating $dirpart/$file"
  11437. + echo '# dummy' > "$dirpart/$file"
  11438. + done
  11439. done
  11440. -done
  11441. +}
  11442. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  11443. @@ -6270,14 +8386,14 @@
  11444. # Do all the work for Automake. -*- Autoconf -*-
  11445. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11446. -# Free Software Foundation, Inc.
  11447. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  11448. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  11449. #
  11450. # This file is free software; the Free Software Foundation
  11451. # gives unlimited permission to copy and/or distribute it,
  11452. # with or without modifications, as long as this notice is preserved.
  11453. -# serial 12
  11454. +# serial 16
  11455. # This macro actually does too much. Some checks are only needed if
  11456. # your package does certain things. But this isn't really a big deal.
  11457. @@ -6294,16 +8410,20 @@
  11458. # arguments mandatory, and then we can depend on a new Autoconf
  11459. # release and drop the old call support.
  11460. AC_DEFUN([AM_INIT_AUTOMAKE],
  11461. -[AC_PREREQ([2.58])dnl
  11462. +[AC_PREREQ([2.62])dnl
  11463. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  11464. dnl the ones we care about.
  11465. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  11466. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  11467. AC_REQUIRE([AC_PROG_INSTALL])dnl
  11468. -# test to see if srcdir already configured
  11469. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  11470. - test -f $srcdir/config.status; then
  11471. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  11472. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  11473. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  11474. + # is not polluted with repeated "-I."
  11475. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  11476. + # test to see if srcdir already configured
  11477. + if test -f $srcdir/config.status; then
  11478. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  11479. + fi
  11480. fi
  11481. # test whether we have cygpath
  11482. @@ -6323,6 +8443,9 @@
  11483. AC_SUBST([PACKAGE], [$1])dnl
  11484. AC_SUBST([VERSION], [$2])],
  11485. [_AM_SET_OPTIONS([$1])dnl
  11486. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  11487. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  11488. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  11489. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  11490. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  11491. @@ -6338,8 +8461,8 @@
  11492. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  11493. AM_MISSING_PROG(AUTOHEADER, autoheader)
  11494. AM_MISSING_PROG(MAKEINFO, makeinfo)
  11495. -AM_PROG_INSTALL_SH
  11496. -AM_PROG_INSTALL_STRIP
  11497. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  11498. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  11499. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  11500. # We need awk for the "check" target. The system "awk" is bad on
  11501. # some platforms.
  11502. @@ -6347,20 +8470,37 @@
  11503. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  11504. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  11505. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  11506. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11507. - [_AM_PROG_TAR([v7])])])
  11508. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  11509. + [_AM_PROG_TAR([v7])])])
  11510. _AM_IF_OPTION([no-dependencies],,
  11511. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  11512. - [_AM_DEPENDENCIES(CC)],
  11513. - [define([AC_PROG_CC],
  11514. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11515. + [_AM_DEPENDENCIES(CC)],
  11516. + [define([AC_PROG_CC],
  11517. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  11518. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  11519. - [_AM_DEPENDENCIES(CXX)],
  11520. - [define([AC_PROG_CXX],
  11521. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11522. + [_AM_DEPENDENCIES(CXX)],
  11523. + [define([AC_PROG_CXX],
  11524. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  11525. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  11526. + [_AM_DEPENDENCIES(OBJC)],
  11527. + [define([AC_PROG_OBJC],
  11528. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  11529. ])
  11530. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  11531. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  11532. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  11533. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  11534. +AC_CONFIG_COMMANDS_PRE(dnl
  11535. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  11536. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  11537. ])
  11538. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  11539. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  11540. +dnl mangled by Autoconf and run in a shell conditional statement.
  11541. +m4_define([_AC_COMPILER_EXEEXT],
  11542. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  11543. +
  11544. # When config.status generates a header, we must update the stamp-h file.
  11545. # This file resides in the same directory as the config header
  11546. @@ -6371,18 +8511,19 @@
  11547. # our stamp files there.
  11548. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  11549. [# Compute $1's index in $config_headers.
  11550. +_am_arg=$1
  11551. _am_stamp_count=1
  11552. for _am_header in $config_headers :; do
  11553. case $_am_header in
  11554. - $1 | $1:* )
  11555. + $_am_arg | $_am_arg:* )
  11556. break ;;
  11557. * )
  11558. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  11559. esac
  11560. done
  11561. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  11562. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  11563. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  11564. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  11565. #
  11566. # This file is free software; the Free Software Foundation
  11567. # gives unlimited permission to copy and/or distribute it,
  11568. @@ -6393,7 +8534,14 @@
  11569. # Define $install_sh.
  11570. AC_DEFUN([AM_PROG_INSTALL_SH],
  11571. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11572. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  11573. +if test x"${install_sh}" != xset; then
  11574. + case $am_aux_dir in
  11575. + *\ * | *\ *)
  11576. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  11577. + *)
  11578. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  11579. + esac
  11580. +fi
  11581. AC_SUBST(install_sh)])
  11582. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  11583. @@ -6420,27 +8568,38 @@
  11584. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  11585. # From Jim Meyering
  11586. -# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
  11587. +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  11588. # Free Software Foundation, Inc.
  11589. #
  11590. # This file is free software; the Free Software Foundation
  11591. # gives unlimited permission to copy and/or distribute it,
  11592. # with or without modifications, as long as this notice is preserved.
  11593. -# serial 4
  11594. +# serial 5
  11595. +# AM_MAINTAINER_MODE([DEFAULT-MODE])
  11596. +# ----------------------------------
  11597. +# Control maintainer-specific portions of Makefiles.
  11598. +# Default is to disable them, unless `enable' is passed literally.
  11599. +# For symmetry, `disable' may be passed as well. Anyway, the user
  11600. +# can override the default with the --enable/--disable switch.
  11601. AC_DEFUN([AM_MAINTAINER_MODE],
  11602. -[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  11603. - dnl maintainer-mode is disabled by default
  11604. - AC_ARG_ENABLE(maintainer-mode,
  11605. -[ --enable-maintainer-mode enable make rules and dependencies not useful
  11606. +[m4_case(m4_default([$1], [disable]),
  11607. + [enable], [m4_define([am_maintainer_other], [disable])],
  11608. + [disable], [m4_define([am_maintainer_other], [enable])],
  11609. + [m4_define([am_maintainer_other], [enable])
  11610. + m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  11611. +AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
  11612. + dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  11613. + AC_ARG_ENABLE([maintainer-mode],
  11614. +[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
  11615. (and sometimes confusing) to the casual installer],
  11616. - USE_MAINTAINER_MODE=$enableval,
  11617. - USE_MAINTAINER_MODE=no)
  11618. + [USE_MAINTAINER_MODE=$enableval],
  11619. + [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  11620. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  11621. - AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
  11622. + AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  11623. MAINT=$MAINTAINER_MODE_TRUE
  11624. - AC_SUBST(MAINT)dnl
  11625. + AC_SUBST([MAINT])dnl
  11626. ]
  11627. )
  11628. @@ -6448,13 +8607,13 @@
  11629. # Check to see how 'make' treats includes. -*- Autoconf -*-
  11630. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11631. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  11632. #
  11633. # This file is free software; the Free Software Foundation
  11634. # gives unlimited permission to copy and/or distribute it,
  11635. # with or without modifications, as long as this notice is preserved.
  11636. -# serial 3
  11637. +# serial 4
  11638. # AM_MAKE_INCLUDE()
  11639. # -----------------
  11640. @@ -6463,7 +8622,7 @@
  11641. [am_make=${MAKE-make}
  11642. cat > confinc << 'END'
  11643. am__doit:
  11644. - @echo done
  11645. + @echo this is the am__doit target
  11646. .PHONY: am__doit
  11647. END
  11648. # If we don't find an include directive, just comment out the code.
  11649. @@ -6473,24 +8632,24 @@
  11650. _am_result=none
  11651. # First try GNU make style include.
  11652. echo "include confinc" > confmf
  11653. -# We grep out `Entering directory' and `Leaving directory'
  11654. -# messages which can occur if `w' ends up in MAKEFLAGS.
  11655. -# In particular we don't look at `^make:' because GNU make might
  11656. -# be invoked under some other name (usually "gmake"), in which
  11657. -# case it prints its new name instead of `make'.
  11658. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  11659. - am__include=include
  11660. - am__quote=
  11661. - _am_result=GNU
  11662. -fi
  11663. +# Ignore all kinds of additional output from `make'.
  11664. +case `$am_make -s -f confmf 2> /dev/null` in #(
  11665. +*the\ am__doit\ target*)
  11666. + am__include=include
  11667. + am__quote=
  11668. + _am_result=GNU
  11669. + ;;
  11670. +esac
  11671. # Now try BSD make style include.
  11672. if test "$am__include" = "#"; then
  11673. echo '.include "confinc"' > confmf
  11674. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  11675. - am__include=.include
  11676. - am__quote="\""
  11677. - _am_result=BSD
  11678. - fi
  11679. + case `$am_make -s -f confmf 2> /dev/null` in #(
  11680. + *the\ am__doit\ target*)
  11681. + am__include=.include
  11682. + am__quote="\""
  11683. + _am_result=BSD
  11684. + ;;
  11685. + esac
  11686. fi
  11687. AC_SUBST([am__include])
  11688. AC_SUBST([am__quote])
  11689. @@ -6500,14 +8659,14 @@
  11690. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  11691. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  11692. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  11693. # Free Software Foundation, Inc.
  11694. #
  11695. # This file is free software; the Free Software Foundation
  11696. # gives unlimited permission to copy and/or distribute it,
  11697. # with or without modifications, as long as this notice is preserved.
  11698. -# serial 4
  11699. +# serial 6
  11700. # AM_MISSING_PROG(NAME, PROGRAM)
  11701. # ------------------------------
  11702. @@ -6523,7 +8682,15 @@
  11703. # If it does, set am_missing_run to use it, otherwise, to nothing.
  11704. AC_DEFUN([AM_MISSING_HAS_RUN],
  11705. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  11706. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  11707. +AC_REQUIRE_AUX_FILE([missing])dnl
  11708. +if test x"${MISSING+set}" != xset; then
  11709. + case $am_aux_dir in
  11710. + *\ * | *\ *)
  11711. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  11712. + *)
  11713. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  11714. + esac
  11715. +fi
  11716. # Use eval to expand $SHELL
  11717. if eval "$MISSING --run true"; then
  11718. am_missing_run="$MISSING --run "
  11719. @@ -6533,7 +8700,7 @@
  11720. fi
  11721. ])
  11722. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  11723. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  11724. #
  11725. # This file is free software; the Free Software Foundation
  11726. # gives unlimited permission to copy and/or distribute it,
  11727. @@ -6541,70 +8708,33 @@
  11728. # AM_PROG_MKDIR_P
  11729. # ---------------
  11730. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  11731. -#
  11732. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  11733. -# created by `make install' are always world readable, even if the
  11734. -# installer happens to have an overly restrictive umask (e.g. 077).
  11735. -# This was a mistake. There are at least two reasons why we must not
  11736. -# use `-m 0755':
  11737. -# - it causes special bits like SGID to be ignored,
  11738. -# - it may be too restrictive (some setups expect 775 directories).
  11739. -#
  11740. -# Do not use -m 0755 and let people choose whatever they expect by
  11741. -# setting umask.
  11742. -#
  11743. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  11744. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  11745. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  11746. -# concurrently, both version can detect that a/ is missing, but only
  11747. -# one can create it and the other will error out. Consequently we
  11748. -# restrict ourselves to GNU make (using the --version option ensures
  11749. -# this.)
  11750. +# Check for `mkdir -p'.
  11751. AC_DEFUN([AM_PROG_MKDIR_P],
  11752. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  11753. - # We used to keeping the `.' as first argument, in order to
  11754. - # allow $(mkdir_p) to be used without argument. As in
  11755. - # $(mkdir_p) $(somedir)
  11756. - # where $(somedir) is conditionally defined. However this is wrong
  11757. - # for two reasons:
  11758. - # 1. if the package is installed by a user who cannot write `.'
  11759. - # make install will fail,
  11760. - # 2. the above comment should most certainly read
  11761. - # $(mkdir_p) $(DESTDIR)$(somedir)
  11762. - # so it does not work when $(somedir) is undefined and
  11763. - # $(DESTDIR) is not.
  11764. - # To support the latter case, we have to write
  11765. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  11766. - # so the `.' trick is pointless.
  11767. - mkdir_p='mkdir -p --'
  11768. -else
  11769. - # On NextStep and OpenStep, the `mkdir' command does not
  11770. - # recognize any option. It will interpret all options as
  11771. - # directories to create, and then abort because `.' already
  11772. - # exists.
  11773. - for d in ./-p ./--version;
  11774. - do
  11775. - test -d $d && rmdir $d
  11776. - done
  11777. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  11778. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  11779. - mkdir_p='$(mkinstalldirs)'
  11780. - else
  11781. - mkdir_p='$(install_sh) -d'
  11782. - fi
  11783. -fi
  11784. -AC_SUBST([mkdir_p])])
  11785. +[AC_PREREQ([2.60])dnl
  11786. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  11787. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  11788. +dnl while keeping a definition of mkdir_p for backward compatibility.
  11789. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  11790. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  11791. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  11792. +dnl adjustment using top_builddir (which is defined more often than
  11793. +dnl MKDIR_P).
  11794. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  11795. +case $mkdir_p in
  11796. + [[\\/$]]* | ?:[[\\/]]*) ;;
  11797. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  11798. +esac
  11799. +])
  11800. # Helper functions for option handling. -*- Autoconf -*-
  11801. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  11802. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  11803. #
  11804. # This file is free software; the Free Software Foundation
  11805. # gives unlimited permission to copy and/or distribute it,
  11806. # with or without modifications, as long as this notice is preserved.
  11807. -# serial 3
  11808. +# serial 4
  11809. # _AM_MANGLE_OPTION(NAME)
  11810. # -----------------------
  11811. @@ -6621,7 +8751,7 @@
  11812. # ----------------------------------
  11813. # OPTIONS is a space-separated list of Automake options.
  11814. AC_DEFUN([_AM_SET_OPTIONS],
  11815. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11816. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  11817. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  11818. # -------------------------------------------
  11819. @@ -6631,14 +8761,14 @@
  11820. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  11821. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  11822. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  11823. # Free Software Foundation, Inc.
  11824. #
  11825. # This file is free software; the Free Software Foundation
  11826. # gives unlimited permission to copy and/or distribute it,
  11827. # with or without modifications, as long as this notice is preserved.
  11828. -# serial 4
  11829. +# serial 5
  11830. # AM_SANITY_CHECK
  11831. # ---------------
  11832. @@ -6647,16 +8777,29 @@
  11833. # Just in case
  11834. sleep 1
  11835. echo timestamp > conftest.file
  11836. +# Reject unsafe characters in $srcdir or the absolute working directory
  11837. +# name. Accept space and tab only in the latter.
  11838. +am_lf='
  11839. +'
  11840. +case `pwd` in
  11841. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  11842. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  11843. +esac
  11844. +case $srcdir in
  11845. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  11846. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  11847. +esac
  11848. +
  11849. # Do `set' in a subshell so we don't clobber the current shell's
  11850. # arguments. Must try -L first in case configure is actually a
  11851. # symlink; some systems play weird games with the mod time of symlinks
  11852. # (eg FreeBSD returns the mod time of the symlink's containing
  11853. # directory).
  11854. if (
  11855. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  11856. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  11857. if test "$[*]" = "X"; then
  11858. # -L didn't work.
  11859. - set X `ls -t $srcdir/configure conftest.file`
  11860. + set X `ls -t "$srcdir/configure" conftest.file`
  11861. fi
  11862. rm -f conftest.file
  11863. if test "$[*]" != "X $srcdir/configure conftest.file" \
  11864. @@ -6706,9 +8849,28 @@
  11865. if test "$cross_compiling" != no; then
  11866. AC_CHECK_TOOL([STRIP], [strip], :)
  11867. fi
  11868. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  11869. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  11870. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  11871. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  11872. +#
  11873. +# This file is free software; the Free Software Foundation
  11874. +# gives unlimited permission to copy and/or distribute it,
  11875. +# with or without modifications, as long as this notice is preserved.
  11876. +
  11877. +# serial 2
  11878. +
  11879. +# _AM_SUBST_NOTMAKE(VARIABLE)
  11880. +# ---------------------------
  11881. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  11882. +# This macro is traced by Automake.
  11883. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  11884. +
  11885. +# AM_SUBST_NOTMAKE(VARIABLE)
  11886. +# ---------------------------
  11887. +# Public sister of _AM_SUBST_NOTMAKE.
  11888. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  11889. +
  11890. # Check how to create a tarball. -*- Autoconf -*-
  11891. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  11892. diff -Nur libogg-1.1.3.orig/config.guess libogg-1.1.3/config.guess
  11893. --- libogg-1.1.3.orig/config.guess 2005-04-26 10:44:02.000000000 +0200
  11894. +++ libogg-1.1.3/config.guess 2011-02-17 18:12:13.503560325 +0100
  11895. @@ -1,9 +1,10 @@
  11896. #! /bin/sh
  11897. # Attempt to guess a canonical system name.
  11898. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  11899. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  11900. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  11901. +# Free Software Foundation, Inc.
  11902. -timestamp='2005-04-22'
  11903. +timestamp='2009-06-10'
  11904. # This file is free software; you can redistribute it and/or modify it
  11905. # under the terms of the GNU General Public License as published by
  11906. @@ -17,13 +18,15 @@
  11907. #
  11908. # You should have received a copy of the GNU General Public License
  11909. # along with this program; if not, write to the Free Software
  11910. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  11911. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  11912. +# 02110-1301, USA.
  11913. #
  11914. # As a special exception to the GNU General Public License, if you
  11915. # distribute this file as part of a program that contains a
  11916. # configuration script generated by Autoconf, you may include it under
  11917. # the same distribution terms that you use for the rest of that program.
  11918. +
  11919. # Originally written by Per Bothner <per@bothner.com>.
  11920. # Please send patches to <config-patches@gnu.org>. Submit a context
  11921. # diff and a properly formatted ChangeLog entry.
  11922. @@ -53,8 +56,8 @@
  11923. GNU config.guess ($timestamp)
  11924. Originally written by Per Bothner.
  11925. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  11926. -Free Software Foundation, Inc.
  11927. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  11928. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  11929. This is free software; see the source for copying conditions. There is NO
  11930. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  11931. @@ -66,11 +69,11 @@
  11932. while test $# -gt 0 ; do
  11933. case $1 in
  11934. --time-stamp | --time* | -t )
  11935. - echo "$timestamp" ; exit 0 ;;
  11936. + echo "$timestamp" ; exit ;;
  11937. --version | -v )
  11938. - echo "$version" ; exit 0 ;;
  11939. + echo "$version" ; exit ;;
  11940. --help | --h* | -h )
  11941. - echo "$usage"; exit 0 ;;
  11942. + echo "$usage"; exit ;;
  11943. -- ) # Stop option processing
  11944. shift; break ;;
  11945. - ) # Use stdin as input.
  11946. @@ -104,7 +107,7 @@
  11947. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  11948. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  11949. : ${TMPDIR=/tmp} ;
  11950. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  11951. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  11952. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  11953. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  11954. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  11955. @@ -123,7 +126,7 @@
  11956. ;;
  11957. ,,*) CC_FOR_BUILD=$CC ;;
  11958. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  11959. -esac ;'
  11960. +esac ; set_cc_for_build= ;'
  11961. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  11962. # (ghazi@noc.rutgers.edu 1994-08-24)
  11963. @@ -158,6 +161,7 @@
  11964. arm*) machine=arm-unknown ;;
  11965. sh3el) machine=shl-unknown ;;
  11966. sh3eb) machine=sh-unknown ;;
  11967. + sh5el) machine=sh5le-unknown ;;
  11968. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  11969. esac
  11970. # The Operating System including object format, if it has switched
  11971. @@ -166,7 +170,7 @@
  11972. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  11973. eval $set_cc_for_build
  11974. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  11975. - | grep __ELF__ >/dev/null
  11976. + | grep -q __ELF__
  11977. then
  11978. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  11979. # Return netbsd for either. FIX?
  11980. @@ -196,55 +200,23 @@
  11981. # contains redundant information, the shorter form:
  11982. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  11983. echo "${machine}-${os}${release}"
  11984. - exit 0 ;;
  11985. - amd64:OpenBSD:*:*)
  11986. - echo x86_64-unknown-openbsd${UNAME_RELEASE}
  11987. - exit 0 ;;
  11988. - amiga:OpenBSD:*:*)
  11989. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11990. - exit 0 ;;
  11991. - cats:OpenBSD:*:*)
  11992. - echo arm-unknown-openbsd${UNAME_RELEASE}
  11993. - exit 0 ;;
  11994. - hp300:OpenBSD:*:*)
  11995. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  11996. - exit 0 ;;
  11997. - luna88k:OpenBSD:*:*)
  11998. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  11999. - exit 0 ;;
  12000. - mac68k:OpenBSD:*:*)
  12001. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  12002. - exit 0 ;;
  12003. - macppc:OpenBSD:*:*)
  12004. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  12005. - exit 0 ;;
  12006. - mvme68k:OpenBSD:*:*)
  12007. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  12008. - exit 0 ;;
  12009. - mvme88k:OpenBSD:*:*)
  12010. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  12011. - exit 0 ;;
  12012. - mvmeppc:OpenBSD:*:*)
  12013. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  12014. - exit 0 ;;
  12015. - sgi:OpenBSD:*:*)
  12016. - echo mips64-unknown-openbsd${UNAME_RELEASE}
  12017. - exit 0 ;;
  12018. - sun3:OpenBSD:*:*)
  12019. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  12020. - exit 0 ;;
  12021. + exit ;;
  12022. *:OpenBSD:*:*)
  12023. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  12024. - exit 0 ;;
  12025. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  12026. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  12027. + exit ;;
  12028. *:ekkoBSD:*:*)
  12029. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  12030. - exit 0 ;;
  12031. + exit ;;
  12032. + *:SolidBSD:*:*)
  12033. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  12034. + exit ;;
  12035. macppc:MirBSD:*:*)
  12036. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  12037. - exit 0 ;;
  12038. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  12039. + exit ;;
  12040. *:MirBSD:*:*)
  12041. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  12042. - exit 0 ;;
  12043. + exit ;;
  12044. alpha:OSF1:*:*)
  12045. case $UNAME_RELEASE in
  12046. *4.0)
  12047. @@ -297,40 +269,43 @@
  12048. # A Xn.n version is an unreleased experimental baselevel.
  12049. # 1.2 uses "1.2" for uname -r.
  12050. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  12051. - exit 0 ;;
  12052. + exit ;;
  12053. Alpha\ *:Windows_NT*:*)
  12054. # How do we know it's Interix rather than the generic POSIX subsystem?
  12055. # Should we change UNAME_MACHINE based on the output of uname instead
  12056. # of the specific Alpha model?
  12057. echo alpha-pc-interix
  12058. - exit 0 ;;
  12059. + exit ;;
  12060. 21064:Windows_NT:50:3)
  12061. echo alpha-dec-winnt3.5
  12062. - exit 0 ;;
  12063. + exit ;;
  12064. Amiga*:UNIX_System_V:4.0:*)
  12065. echo m68k-unknown-sysv4
  12066. - exit 0;;
  12067. + exit ;;
  12068. *:[Aa]miga[Oo][Ss]:*:*)
  12069. echo ${UNAME_MACHINE}-unknown-amigaos
  12070. - exit 0 ;;
  12071. + exit ;;
  12072. *:[Mm]orph[Oo][Ss]:*:*)
  12073. echo ${UNAME_MACHINE}-unknown-morphos
  12074. - exit 0 ;;
  12075. + exit ;;
  12076. *:OS/390:*:*)
  12077. echo i370-ibm-openedition
  12078. - exit 0 ;;
  12079. + exit ;;
  12080. *:z/VM:*:*)
  12081. echo s390-ibm-zvmoe
  12082. - exit 0 ;;
  12083. + exit ;;
  12084. *:OS400:*:*)
  12085. echo powerpc-ibm-os400
  12086. - exit 0 ;;
  12087. + exit ;;
  12088. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  12089. echo arm-acorn-riscix${UNAME_RELEASE}
  12090. - exit 0;;
  12091. + exit ;;
  12092. + arm:riscos:*:*|arm:RISCOS:*:*)
  12093. + echo arm-unknown-riscos
  12094. + exit ;;
  12095. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  12096. echo hppa1.1-hitachi-hiuxmpp
  12097. - exit 0;;
  12098. + exit ;;
  12099. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  12100. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  12101. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  12102. @@ -338,32 +313,48 @@
  12103. else
  12104. echo pyramid-pyramid-bsd
  12105. fi
  12106. - exit 0 ;;
  12107. + exit ;;
  12108. NILE*:*:*:dcosx)
  12109. echo pyramid-pyramid-svr4
  12110. - exit 0 ;;
  12111. + exit ;;
  12112. DRS?6000:unix:4.0:6*)
  12113. echo sparc-icl-nx6
  12114. - exit 0 ;;
  12115. + exit ;;
  12116. DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  12117. case `/usr/bin/uname -p` in
  12118. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  12119. + sparc) echo sparc-icl-nx7; exit ;;
  12120. esac ;;
  12121. + s390x:SunOS:*:*)
  12122. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12123. + exit ;;
  12124. sun4H:SunOS:5.*:*)
  12125. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12126. - exit 0 ;;
  12127. + exit ;;
  12128. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  12129. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12130. - exit 0 ;;
  12131. - i86pc:SunOS:5.*:*)
  12132. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12133. - exit 0 ;;
  12134. + exit ;;
  12135. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  12136. + eval $set_cc_for_build
  12137. + SUN_ARCH="i386"
  12138. + # If there is a compiler, see if it is configured for 64-bit objects.
  12139. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  12140. + # This test works for both compilers.
  12141. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  12142. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  12143. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  12144. + grep IS_64BIT_ARCH >/dev/null
  12145. + then
  12146. + SUN_ARCH="x86_64"
  12147. + fi
  12148. + fi
  12149. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12150. + exit ;;
  12151. sun4*:SunOS:6*:*)
  12152. # According to config.sub, this is the proper way to canonicalize
  12153. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  12154. # it's likely to be more like Solaris than SunOS4.
  12155. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12156. - exit 0 ;;
  12157. + exit ;;
  12158. sun4*:SunOS:*:*)
  12159. case "`/usr/bin/arch -k`" in
  12160. Series*|S4*)
  12161. @@ -372,10 +363,10 @@
  12162. esac
  12163. # Japanese Language versions have a version number like `4.1.3-JL'.
  12164. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  12165. - exit 0 ;;
  12166. + exit ;;
  12167. sun3*:SunOS:*:*)
  12168. echo m68k-sun-sunos${UNAME_RELEASE}
  12169. - exit 0 ;;
  12170. + exit ;;
  12171. sun*:*:4.2BSD:*)
  12172. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  12173. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  12174. @@ -387,10 +378,10 @@
  12175. echo sparc-sun-sunos${UNAME_RELEASE}
  12176. ;;
  12177. esac
  12178. - exit 0 ;;
  12179. + exit ;;
  12180. aushp:SunOS:*:*)
  12181. echo sparc-auspex-sunos${UNAME_RELEASE}
  12182. - exit 0 ;;
  12183. + exit ;;
  12184. # The situation for MiNT is a little confusing. The machine name
  12185. # can be virtually everything (everything which is not
  12186. # "atarist" or "atariste" at least should have a processor
  12187. @@ -401,40 +392,40 @@
  12188. # be no problem.
  12189. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  12190. echo m68k-atari-mint${UNAME_RELEASE}
  12191. - exit 0 ;;
  12192. + exit ;;
  12193. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  12194. echo m68k-atari-mint${UNAME_RELEASE}
  12195. - exit 0 ;;
  12196. + exit ;;
  12197. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  12198. echo m68k-atari-mint${UNAME_RELEASE}
  12199. - exit 0 ;;
  12200. + exit ;;
  12201. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  12202. echo m68k-milan-mint${UNAME_RELEASE}
  12203. - exit 0 ;;
  12204. + exit ;;
  12205. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  12206. echo m68k-hades-mint${UNAME_RELEASE}
  12207. - exit 0 ;;
  12208. + exit ;;
  12209. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  12210. echo m68k-unknown-mint${UNAME_RELEASE}
  12211. - exit 0 ;;
  12212. + exit ;;
  12213. m68k:machten:*:*)
  12214. echo m68k-apple-machten${UNAME_RELEASE}
  12215. - exit 0 ;;
  12216. + exit ;;
  12217. powerpc:machten:*:*)
  12218. echo powerpc-apple-machten${UNAME_RELEASE}
  12219. - exit 0 ;;
  12220. + exit ;;
  12221. RISC*:Mach:*:*)
  12222. echo mips-dec-mach_bsd4.3
  12223. - exit 0 ;;
  12224. + exit ;;
  12225. RISC*:ULTRIX:*:*)
  12226. echo mips-dec-ultrix${UNAME_RELEASE}
  12227. - exit 0 ;;
  12228. + exit ;;
  12229. VAX*:ULTRIX*:*:*)
  12230. echo vax-dec-ultrix${UNAME_RELEASE}
  12231. - exit 0 ;;
  12232. + exit ;;
  12233. 2020:CLIX:*:* | 2430:CLIX:*:*)
  12234. echo clipper-intergraph-clix${UNAME_RELEASE}
  12235. - exit 0 ;;
  12236. + exit ;;
  12237. mips:*:*:UMIPS | mips:*:*:RISCos)
  12238. eval $set_cc_for_build
  12239. sed 's/^ //' << EOF >$dummy.c
  12240. @@ -458,32 +449,33 @@
  12241. exit (-1);
  12242. }
  12243. EOF
  12244. - $CC_FOR_BUILD -o $dummy $dummy.c \
  12245. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  12246. - && exit 0
  12247. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  12248. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  12249. + SYSTEM_NAME=`$dummy $dummyarg` &&
  12250. + { echo "$SYSTEM_NAME"; exit; }
  12251. echo mips-mips-riscos${UNAME_RELEASE}
  12252. - exit 0 ;;
  12253. + exit ;;
  12254. Motorola:PowerMAX_OS:*:*)
  12255. echo powerpc-motorola-powermax
  12256. - exit 0 ;;
  12257. + exit ;;
  12258. Motorola:*:4.3:PL8-*)
  12259. echo powerpc-harris-powermax
  12260. - exit 0 ;;
  12261. + exit ;;
  12262. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  12263. echo powerpc-harris-powermax
  12264. - exit 0 ;;
  12265. + exit ;;
  12266. Night_Hawk:Power_UNIX:*:*)
  12267. echo powerpc-harris-powerunix
  12268. - exit 0 ;;
  12269. + exit ;;
  12270. m88k:CX/UX:7*:*)
  12271. echo m88k-harris-cxux7
  12272. - exit 0 ;;
  12273. + exit ;;
  12274. m88k:*:4*:R4*)
  12275. echo m88k-motorola-sysv4
  12276. - exit 0 ;;
  12277. + exit ;;
  12278. m88k:*:3*:R3*)
  12279. echo m88k-motorola-sysv3
  12280. - exit 0 ;;
  12281. + exit ;;
  12282. AViiON:dgux:*:*)
  12283. # DG/UX returns AViiON for all architectures
  12284. UNAME_PROCESSOR=`/usr/bin/uname -p`
  12285. @@ -499,29 +491,29 @@
  12286. else
  12287. echo i586-dg-dgux${UNAME_RELEASE}
  12288. fi
  12289. - exit 0 ;;
  12290. + exit ;;
  12291. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  12292. echo m88k-dolphin-sysv3
  12293. - exit 0 ;;
  12294. + exit ;;
  12295. M88*:*:R3*:*)
  12296. # Delta 88k system running SVR3
  12297. echo m88k-motorola-sysv3
  12298. - exit 0 ;;
  12299. + exit ;;
  12300. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  12301. echo m88k-tektronix-sysv3
  12302. - exit 0 ;;
  12303. + exit ;;
  12304. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  12305. echo m68k-tektronix-bsd
  12306. - exit 0 ;;
  12307. + exit ;;
  12308. *:IRIX*:*:*)
  12309. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  12310. - exit 0 ;;
  12311. + exit ;;
  12312. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  12313. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  12314. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  12315. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  12316. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  12317. i*86:AIX:*:*)
  12318. echo i386-ibm-aix
  12319. - exit 0 ;;
  12320. + exit ;;
  12321. ia64:AIX:*:*)
  12322. if [ -x /usr/bin/oslevel ] ; then
  12323. IBM_REV=`/usr/bin/oslevel`
  12324. @@ -529,7 +521,7 @@
  12325. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  12326. fi
  12327. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  12328. - exit 0 ;;
  12329. + exit ;;
  12330. *:AIX:2:3)
  12331. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  12332. eval $set_cc_for_build
  12333. @@ -544,15 +536,19 @@
  12334. exit(0);
  12335. }
  12336. EOF
  12337. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  12338. - echo rs6000-ibm-aix3.2.5
  12339. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  12340. + then
  12341. + echo "$SYSTEM_NAME"
  12342. + else
  12343. + echo rs6000-ibm-aix3.2.5
  12344. + fi
  12345. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  12346. echo rs6000-ibm-aix3.2.4
  12347. else
  12348. echo rs6000-ibm-aix3.2
  12349. fi
  12350. - exit 0 ;;
  12351. - *:AIX:*:[45])
  12352. + exit ;;
  12353. + *:AIX:*:[456])
  12354. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  12355. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  12356. IBM_ARCH=rs6000
  12357. @@ -565,28 +561,28 @@
  12358. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  12359. fi
  12360. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  12361. - exit 0 ;;
  12362. + exit ;;
  12363. *:AIX:*:*)
  12364. echo rs6000-ibm-aix
  12365. - exit 0 ;;
  12366. + exit ;;
  12367. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  12368. echo romp-ibm-bsd4.4
  12369. - exit 0 ;;
  12370. + exit ;;
  12371. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  12372. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  12373. - exit 0 ;; # report: romp-ibm BSD 4.3
  12374. + exit ;; # report: romp-ibm BSD 4.3
  12375. *:BOSX:*:*)
  12376. echo rs6000-bull-bosx
  12377. - exit 0 ;;
  12378. + exit ;;
  12379. DPX/2?00:B.O.S.:*:*)
  12380. echo m68k-bull-sysv3
  12381. - exit 0 ;;
  12382. + exit ;;
  12383. 9000/[34]??:4.3bsd:1.*:*)
  12384. echo m68k-hp-bsd
  12385. - exit 0 ;;
  12386. + exit ;;
  12387. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  12388. echo m68k-hp-bsd4.4
  12389. - exit 0 ;;
  12390. + exit ;;
  12391. 9000/[34678]??:HP-UX:*:*)
  12392. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  12393. case "${UNAME_MACHINE}" in
  12394. @@ -648,9 +644,19 @@
  12395. esac
  12396. if [ ${HP_ARCH} = "hppa2.0w" ]
  12397. then
  12398. - # avoid double evaluation of $set_cc_for_build
  12399. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  12400. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  12401. + eval $set_cc_for_build
  12402. +
  12403. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  12404. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  12405. + # generating 64-bit code. GNU and HP use different nomenclature:
  12406. + #
  12407. + # $ CC_FOR_BUILD=cc ./config.guess
  12408. + # => hppa2.0w-hp-hpux11.23
  12409. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  12410. + # => hppa64-hp-hpux11.23
  12411. +
  12412. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  12413. + grep -q __LP64__
  12414. then
  12415. HP_ARCH="hppa2.0w"
  12416. else
  12417. @@ -658,11 +664,11 @@
  12418. fi
  12419. fi
  12420. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  12421. - exit 0 ;;
  12422. + exit ;;
  12423. ia64:HP-UX:*:*)
  12424. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  12425. echo ia64-hp-hpux${HPUX_REV}
  12426. - exit 0 ;;
  12427. + exit ;;
  12428. 3050*:HI-UX:*:*)
  12429. eval $set_cc_for_build
  12430. sed 's/^ //' << EOF >$dummy.c
  12431. @@ -690,205 +696,227 @@
  12432. exit (0);
  12433. }
  12434. EOF
  12435. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  12436. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  12437. + { echo "$SYSTEM_NAME"; exit; }
  12438. echo unknown-hitachi-hiuxwe2
  12439. - exit 0 ;;
  12440. + exit ;;
  12441. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  12442. echo hppa1.1-hp-bsd
  12443. - exit 0 ;;
  12444. + exit ;;
  12445. 9000/8??:4.3bsd:*:*)
  12446. echo hppa1.0-hp-bsd
  12447. - exit 0 ;;
  12448. + exit ;;
  12449. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  12450. echo hppa1.0-hp-mpeix
  12451. - exit 0 ;;
  12452. + exit ;;
  12453. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  12454. echo hppa1.1-hp-osf
  12455. - exit 0 ;;
  12456. + exit ;;
  12457. hp8??:OSF1:*:*)
  12458. echo hppa1.0-hp-osf
  12459. - exit 0 ;;
  12460. + exit ;;
  12461. i*86:OSF1:*:*)
  12462. if [ -x /usr/sbin/sysversion ] ; then
  12463. echo ${UNAME_MACHINE}-unknown-osf1mk
  12464. else
  12465. echo ${UNAME_MACHINE}-unknown-osf1
  12466. fi
  12467. - exit 0 ;;
  12468. + exit ;;
  12469. parisc*:Lites*:*:*)
  12470. echo hppa1.1-hp-lites
  12471. - exit 0 ;;
  12472. + exit ;;
  12473. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  12474. echo c1-convex-bsd
  12475. - exit 0 ;;
  12476. + exit ;;
  12477. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  12478. if getsysinfo -f scalar_acc
  12479. then echo c32-convex-bsd
  12480. else echo c2-convex-bsd
  12481. fi
  12482. - exit 0 ;;
  12483. + exit ;;
  12484. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  12485. echo c34-convex-bsd
  12486. - exit 0 ;;
  12487. + exit ;;
  12488. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  12489. echo c38-convex-bsd
  12490. - exit 0 ;;
  12491. + exit ;;
  12492. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  12493. echo c4-convex-bsd
  12494. - exit 0 ;;
  12495. + exit ;;
  12496. CRAY*Y-MP:*:*:*)
  12497. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  12498. - exit 0 ;;
  12499. + exit ;;
  12500. CRAY*[A-Z]90:*:*:*)
  12501. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  12502. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  12503. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  12504. -e 's/\.[^.]*$/.X/'
  12505. - exit 0 ;;
  12506. + exit ;;
  12507. CRAY*TS:*:*:*)
  12508. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  12509. - exit 0 ;;
  12510. + exit ;;
  12511. CRAY*T3E:*:*:*)
  12512. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  12513. - exit 0 ;;
  12514. + exit ;;
  12515. CRAY*SV1:*:*:*)
  12516. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  12517. - exit 0 ;;
  12518. + exit ;;
  12519. *:UNICOS/mp:*:*)
  12520. echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  12521. - exit 0 ;;
  12522. + exit ;;
  12523. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  12524. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  12525. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  12526. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  12527. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  12528. - exit 0 ;;
  12529. + exit ;;
  12530. 5000:UNIX_System_V:4.*:*)
  12531. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  12532. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  12533. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  12534. - exit 0 ;;
  12535. + exit ;;
  12536. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  12537. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  12538. - exit 0 ;;
  12539. + exit ;;
  12540. sparc*:BSD/OS:*:*)
  12541. echo sparc-unknown-bsdi${UNAME_RELEASE}
  12542. - exit 0 ;;
  12543. + exit ;;
  12544. *:BSD/OS:*:*)
  12545. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  12546. - exit 0 ;;
  12547. + exit ;;
  12548. *:FreeBSD:*:*)
  12549. - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  12550. - exit 0 ;;
  12551. + case ${UNAME_MACHINE} in
  12552. + pc98)
  12553. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  12554. + amd64)
  12555. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  12556. + *)
  12557. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  12558. + esac
  12559. + exit ;;
  12560. i*:CYGWIN*:*)
  12561. echo ${UNAME_MACHINE}-pc-cygwin
  12562. - exit 0 ;;
  12563. - i*:MINGW*:*)
  12564. + exit ;;
  12565. + *:MINGW*:*)
  12566. echo ${UNAME_MACHINE}-pc-mingw32
  12567. - exit 0 ;;
  12568. + exit ;;
  12569. + i*:windows32*:*)
  12570. + # uname -m includes "-pc" on this system.
  12571. + echo ${UNAME_MACHINE}-mingw32
  12572. + exit ;;
  12573. i*:PW*:*)
  12574. echo ${UNAME_MACHINE}-pc-pw32
  12575. - exit 0 ;;
  12576. - x86:Interix*:[34]*)
  12577. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  12578. - exit 0 ;;
  12579. + exit ;;
  12580. + *:Interix*:[3456]*)
  12581. + case ${UNAME_MACHINE} in
  12582. + x86)
  12583. + echo i586-pc-interix${UNAME_RELEASE}
  12584. + exit ;;
  12585. + EM64T | authenticamd | genuineintel)
  12586. + echo x86_64-unknown-interix${UNAME_RELEASE}
  12587. + exit ;;
  12588. + IA64)
  12589. + echo ia64-unknown-interix${UNAME_RELEASE}
  12590. + exit ;;
  12591. + esac ;;
  12592. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  12593. echo i${UNAME_MACHINE}-pc-mks
  12594. - exit 0 ;;
  12595. + exit ;;
  12596. + 8664:Windows_NT:*)
  12597. + echo x86_64-pc-mks
  12598. + exit ;;
  12599. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  12600. # How do we know it's Interix rather than the generic POSIX subsystem?
  12601. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  12602. # UNAME_MACHINE based on the output of uname instead of i386?
  12603. echo i586-pc-interix
  12604. - exit 0 ;;
  12605. + exit ;;
  12606. i*:UWIN*:*)
  12607. echo ${UNAME_MACHINE}-pc-uwin
  12608. - exit 0 ;;
  12609. - amd64:CYGWIN*:*:*)
  12610. + exit ;;
  12611. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  12612. echo x86_64-unknown-cygwin
  12613. - exit 0 ;;
  12614. + exit ;;
  12615. p*:CYGWIN*:*)
  12616. echo powerpcle-unknown-cygwin
  12617. - exit 0 ;;
  12618. + exit ;;
  12619. prep*:SunOS:5.*:*)
  12620. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  12621. - exit 0 ;;
  12622. + exit ;;
  12623. *:GNU:*:*)
  12624. # the GNU system
  12625. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  12626. - exit 0 ;;
  12627. + exit ;;
  12628. *:GNU/*:*:*)
  12629. # other systems with GNU libc and userland
  12630. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  12631. - exit 0 ;;
  12632. + exit ;;
  12633. i*86:Minix:*:*)
  12634. echo ${UNAME_MACHINE}-pc-minix
  12635. - exit 0 ;;
  12636. + exit ;;
  12637. arm*:Linux:*:*)
  12638. + eval $set_cc_for_build
  12639. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  12640. + | grep -q __ARM_EABI__
  12641. + then
  12642. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  12643. + else
  12644. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  12645. + fi
  12646. + exit ;;
  12647. + avr32*:Linux:*:*)
  12648. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12649. - exit 0 ;;
  12650. + exit ;;
  12651. cris:Linux:*:*)
  12652. echo cris-axis-linux-gnu
  12653. - exit 0 ;;
  12654. + exit ;;
  12655. crisv32:Linux:*:*)
  12656. echo crisv32-axis-linux-gnu
  12657. - exit 0 ;;
  12658. + exit ;;
  12659. frv:Linux:*:*)
  12660. echo frv-unknown-linux-gnu
  12661. - exit 0 ;;
  12662. + exit ;;
  12663. ia64:Linux:*:*)
  12664. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12665. - exit 0 ;;
  12666. + exit ;;
  12667. m32r*:Linux:*:*)
  12668. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12669. - exit 0 ;;
  12670. + exit ;;
  12671. m68*:Linux:*:*)
  12672. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12673. - exit 0 ;;
  12674. - mips:Linux:*:*)
  12675. + exit ;;
  12676. + mips:Linux:*:* | mips64:Linux:*:*)
  12677. eval $set_cc_for_build
  12678. sed 's/^ //' << EOF >$dummy.c
  12679. #undef CPU
  12680. - #undef mips
  12681. - #undef mipsel
  12682. + #undef ${UNAME_MACHINE}
  12683. + #undef ${UNAME_MACHINE}el
  12684. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  12685. - CPU=mipsel
  12686. + CPU=${UNAME_MACHINE}el
  12687. #else
  12688. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  12689. - CPU=mips
  12690. + CPU=${UNAME_MACHINE}
  12691. #else
  12692. CPU=
  12693. #endif
  12694. #endif
  12695. EOF
  12696. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  12697. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  12698. - ;;
  12699. - mips64:Linux:*:*)
  12700. - eval $set_cc_for_build
  12701. - sed 's/^ //' << EOF >$dummy.c
  12702. - #undef CPU
  12703. - #undef mips64
  12704. - #undef mips64el
  12705. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  12706. - CPU=mips64el
  12707. - #else
  12708. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  12709. - CPU=mips64
  12710. - #else
  12711. - CPU=
  12712. - #endif
  12713. - #endif
  12714. -EOF
  12715. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  12716. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  12717. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  12718. + /^CPU/{
  12719. + s: ::g
  12720. + p
  12721. + }'`"
  12722. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  12723. ;;
  12724. + or32:Linux:*:*)
  12725. + echo or32-unknown-linux-gnu
  12726. + exit ;;
  12727. ppc:Linux:*:*)
  12728. echo powerpc-unknown-linux-gnu
  12729. - exit 0 ;;
  12730. + exit ;;
  12731. ppc64:Linux:*:*)
  12732. echo powerpc64-unknown-linux-gnu
  12733. - exit 0 ;;
  12734. + exit ;;
  12735. alpha:Linux:*:*)
  12736. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  12737. EV5) UNAME_MACHINE=alphaev5 ;;
  12738. @@ -899,10 +927,13 @@
  12739. EV67) UNAME_MACHINE=alphaev67 ;;
  12740. EV68*) UNAME_MACHINE=alphaev68 ;;
  12741. esac
  12742. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  12743. + objdump --private-headers /bin/sh | grep -q ld.so.1
  12744. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  12745. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  12746. - exit 0 ;;
  12747. + exit ;;
  12748. + padre:Linux:*:*)
  12749. + echo sparc-unknown-linux-gnu
  12750. + exit ;;
  12751. parisc:Linux:*:* | hppa:Linux:*:*)
  12752. # Look for CPU level
  12753. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  12754. @@ -910,25 +941,31 @@
  12755. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  12756. *) echo hppa-unknown-linux-gnu ;;
  12757. esac
  12758. - exit 0 ;;
  12759. + exit ;;
  12760. parisc64:Linux:*:* | hppa64:Linux:*:*)
  12761. echo hppa64-unknown-linux-gnu
  12762. - exit 0 ;;
  12763. + exit ;;
  12764. s390:Linux:*:* | s390x:Linux:*:*)
  12765. echo ${UNAME_MACHINE}-ibm-linux
  12766. - exit 0 ;;
  12767. + exit ;;
  12768. sh64*:Linux:*:*)
  12769. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12770. - exit 0 ;;
  12771. + exit ;;
  12772. sh*:Linux:*:*)
  12773. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12774. - exit 0 ;;
  12775. + exit ;;
  12776. sparc:Linux:*:* | sparc64:Linux:*:*)
  12777. echo ${UNAME_MACHINE}-unknown-linux-gnu
  12778. - exit 0 ;;
  12779. + exit ;;
  12780. + vax:Linux:*:*)
  12781. + echo ${UNAME_MACHINE}-dec-linux-gnu
  12782. + exit ;;
  12783. x86_64:Linux:*:*)
  12784. echo x86_64-unknown-linux-gnu
  12785. - exit 0 ;;
  12786. + exit ;;
  12787. + xtensa*:Linux:*:*)
  12788. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  12789. + exit ;;
  12790. i*86:Linux:*:*)
  12791. # The BFD linker knows what the default object file format is, so
  12792. # first see if it will tell us. cd to the root directory to prevent
  12793. @@ -944,17 +981,6 @@
  12794. elf32-i386)
  12795. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  12796. ;;
  12797. - a.out-i386-linux)
  12798. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  12799. - exit 0 ;;
  12800. - coff-i386)
  12801. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  12802. - exit 0 ;;
  12803. - "")
  12804. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  12805. - # one that does not give us useful --help.
  12806. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  12807. - exit 0 ;;
  12808. esac
  12809. # Determine whether the default compiler is a.out or elf
  12810. eval $set_cc_for_build
  12811. @@ -971,7 +997,7 @@
  12812. LIBC=gnulibc1
  12813. # endif
  12814. #else
  12815. - #ifdef __INTEL_COMPILER
  12816. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  12817. LIBC=gnu
  12818. #else
  12819. LIBC=gnuaout
  12820. @@ -981,16 +1007,23 @@
  12821. LIBC=dietlibc
  12822. #endif
  12823. EOF
  12824. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  12825. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  12826. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  12827. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  12828. + /^LIBC/{
  12829. + s: ::g
  12830. + p
  12831. + }'`"
  12832. + test x"${LIBC}" != x && {
  12833. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  12834. + exit
  12835. + }
  12836. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  12837. ;;
  12838. i*86:DYNIX/ptx:4*:*)
  12839. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  12840. # earlier versions are messed up and put the nodename in both
  12841. # sysname and nodename.
  12842. echo i386-sequent-sysv4
  12843. - exit 0 ;;
  12844. + exit ;;
  12845. i*86:UNIX_SV:4.2MP:2.*)
  12846. # Unixware is an offshoot of SVR4, but it has its own version
  12847. # number series starting with 2...
  12848. @@ -998,27 +1031,27 @@
  12849. # I just have to hope. -- rms.
  12850. # Use sysv4.2uw... so that sysv4* matches it.
  12851. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  12852. - exit 0 ;;
  12853. + exit ;;
  12854. i*86:OS/2:*:*)
  12855. # If we were able to find `uname', then EMX Unix compatibility
  12856. # is probably installed.
  12857. echo ${UNAME_MACHINE}-pc-os2-emx
  12858. - exit 0 ;;
  12859. + exit ;;
  12860. i*86:XTS-300:*:STOP)
  12861. echo ${UNAME_MACHINE}-unknown-stop
  12862. - exit 0 ;;
  12863. + exit ;;
  12864. i*86:atheos:*:*)
  12865. echo ${UNAME_MACHINE}-unknown-atheos
  12866. - exit 0 ;;
  12867. - i*86:syllable:*:*)
  12868. + exit ;;
  12869. + i*86:syllable:*:*)
  12870. echo ${UNAME_MACHINE}-pc-syllable
  12871. - exit 0 ;;
  12872. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  12873. + exit ;;
  12874. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  12875. echo i386-unknown-lynxos${UNAME_RELEASE}
  12876. - exit 0 ;;
  12877. + exit ;;
  12878. i*86:*DOS:*:*)
  12879. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  12880. - exit 0 ;;
  12881. + exit ;;
  12882. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  12883. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  12884. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  12885. @@ -1026,15 +1059,16 @@
  12886. else
  12887. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  12888. fi
  12889. - exit 0 ;;
  12890. - i*86:*:5:[78]*)
  12891. + exit ;;
  12892. + i*86:*:5:[678]*)
  12893. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  12894. case `/bin/uname -X | grep "^Machine"` in
  12895. *486*) UNAME_MACHINE=i486 ;;
  12896. *Pentium) UNAME_MACHINE=i586 ;;
  12897. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  12898. esac
  12899. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  12900. - exit 0 ;;
  12901. + exit ;;
  12902. i*86:*:3.2:*)
  12903. if test -f /usr/options/cb.name; then
  12904. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  12905. @@ -1052,73 +1086,86 @@
  12906. else
  12907. echo ${UNAME_MACHINE}-pc-sysv32
  12908. fi
  12909. - exit 0 ;;
  12910. + exit ;;
  12911. pc:*:*:*)
  12912. # Left here for compatibility:
  12913. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  12914. - # the processor, so we play safe by assuming i386.
  12915. - echo i386-pc-msdosdjgpp
  12916. - exit 0 ;;
  12917. + # the processor, so we play safe by assuming i586.
  12918. + # Note: whatever this is, it MUST be the same as what config.sub
  12919. + # prints for the "djgpp" host, or else GDB configury will decide that
  12920. + # this is a cross-build.
  12921. + echo i586-pc-msdosdjgpp
  12922. + exit ;;
  12923. Intel:Mach:3*:*)
  12924. echo i386-pc-mach3
  12925. - exit 0 ;;
  12926. + exit ;;
  12927. paragon:*:*:*)
  12928. echo i860-intel-osf1
  12929. - exit 0 ;;
  12930. + exit ;;
  12931. i860:*:4.*:*) # i860-SVR4
  12932. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  12933. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  12934. else # Add other i860-SVR4 vendors below as they are discovered.
  12935. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  12936. fi
  12937. - exit 0 ;;
  12938. + exit ;;
  12939. mini*:CTIX:SYS*5:*)
  12940. # "miniframe"
  12941. echo m68010-convergent-sysv
  12942. - exit 0 ;;
  12943. + exit ;;
  12944. mc68k:UNIX:SYSTEM5:3.51m)
  12945. echo m68k-convergent-sysv
  12946. - exit 0 ;;
  12947. + exit ;;
  12948. M680?0:D-NIX:5.3:*)
  12949. echo m68k-diab-dnix
  12950. - exit 0 ;;
  12951. + exit ;;
  12952. M68*:*:R3V[5678]*:*)
  12953. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  12954. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  12955. 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  12956. OS_REL=''
  12957. test -r /etc/.relid \
  12958. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  12959. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12960. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  12961. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  12962. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  12963. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  12964. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  12965. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  12966. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12967. - && echo i486-ncr-sysv4 && exit 0 ;;
  12968. + && { echo i486-ncr-sysv4; exit; } ;;
  12969. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  12970. + OS_REL='.3'
  12971. + test -r /etc/.relid \
  12972. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  12973. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  12974. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  12975. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  12976. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  12977. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  12978. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  12979. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  12980. echo m68k-unknown-lynxos${UNAME_RELEASE}
  12981. - exit 0 ;;
  12982. + exit ;;
  12983. mc68030:UNIX_System_V:4.*:*)
  12984. echo m68k-atari-sysv4
  12985. - exit 0 ;;
  12986. + exit ;;
  12987. TSUNAMI:LynxOS:2.*:*)
  12988. echo sparc-unknown-lynxos${UNAME_RELEASE}
  12989. - exit 0 ;;
  12990. + exit ;;
  12991. rs6000:LynxOS:2.*:*)
  12992. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  12993. - exit 0 ;;
  12994. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  12995. + exit ;;
  12996. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  12997. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  12998. - exit 0 ;;
  12999. + exit ;;
  13000. SM[BE]S:UNIX_SV:*:*)
  13001. echo mips-dde-sysv${UNAME_RELEASE}
  13002. - exit 0 ;;
  13003. + exit ;;
  13004. RM*:ReliantUNIX-*:*:*)
  13005. echo mips-sni-sysv4
  13006. - exit 0 ;;
  13007. + exit ;;
  13008. RM*:SINIX-*:*:*)
  13009. echo mips-sni-sysv4
  13010. - exit 0 ;;
  13011. + exit ;;
  13012. *:SINIX-*:*:*)
  13013. if uname -p 2>/dev/null >/dev/null ; then
  13014. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  13015. @@ -1126,73 +1173,84 @@
  13016. else
  13017. echo ns32k-sni-sysv
  13018. fi
  13019. - exit 0 ;;
  13020. + exit ;;
  13021. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  13022. # says <Richard.M.Bartel@ccMail.Census.GOV>
  13023. echo i586-unisys-sysv4
  13024. - exit 0 ;;
  13025. + exit ;;
  13026. *:UNIX_System_V:4*:FTX*)
  13027. # From Gerald Hewes <hewes@openmarket.com>.
  13028. # How about differentiating between stratus architectures? -djm
  13029. echo hppa1.1-stratus-sysv4
  13030. - exit 0 ;;
  13031. + exit ;;
  13032. *:*:*:FTX*)
  13033. # From seanf@swdc.stratus.com.
  13034. echo i860-stratus-sysv4
  13035. - exit 0 ;;
  13036. + exit ;;
  13037. i*86:VOS:*:*)
  13038. # From Paul.Green@stratus.com.
  13039. echo ${UNAME_MACHINE}-stratus-vos
  13040. - exit 0 ;;
  13041. + exit ;;
  13042. *:VOS:*:*)
  13043. # From Paul.Green@stratus.com.
  13044. echo hppa1.1-stratus-vos
  13045. - exit 0 ;;
  13046. + exit ;;
  13047. mc68*:A/UX:*:*)
  13048. echo m68k-apple-aux${UNAME_RELEASE}
  13049. - exit 0 ;;
  13050. + exit ;;
  13051. news*:NEWS-OS:6*:*)
  13052. echo mips-sony-newsos6
  13053. - exit 0 ;;
  13054. + exit ;;
  13055. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  13056. if [ -d /usr/nec ]; then
  13057. echo mips-nec-sysv${UNAME_RELEASE}
  13058. else
  13059. echo mips-unknown-sysv${UNAME_RELEASE}
  13060. fi
  13061. - exit 0 ;;
  13062. + exit ;;
  13063. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  13064. echo powerpc-be-beos
  13065. - exit 0 ;;
  13066. + exit ;;
  13067. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  13068. echo powerpc-apple-beos
  13069. - exit 0 ;;
  13070. + exit ;;
  13071. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  13072. echo i586-pc-beos
  13073. - exit 0 ;;
  13074. + exit ;;
  13075. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  13076. + echo i586-pc-haiku
  13077. + exit ;;
  13078. SX-4:SUPER-UX:*:*)
  13079. echo sx4-nec-superux${UNAME_RELEASE}
  13080. - exit 0 ;;
  13081. + exit ;;
  13082. SX-5:SUPER-UX:*:*)
  13083. echo sx5-nec-superux${UNAME_RELEASE}
  13084. - exit 0 ;;
  13085. + exit ;;
  13086. SX-6:SUPER-UX:*:*)
  13087. echo sx6-nec-superux${UNAME_RELEASE}
  13088. - exit 0 ;;
  13089. + exit ;;
  13090. + SX-7:SUPER-UX:*:*)
  13091. + echo sx7-nec-superux${UNAME_RELEASE}
  13092. + exit ;;
  13093. + SX-8:SUPER-UX:*:*)
  13094. + echo sx8-nec-superux${UNAME_RELEASE}
  13095. + exit ;;
  13096. + SX-8R:SUPER-UX:*:*)
  13097. + echo sx8r-nec-superux${UNAME_RELEASE}
  13098. + exit ;;
  13099. Power*:Rhapsody:*:*)
  13100. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  13101. - exit 0 ;;
  13102. + exit ;;
  13103. *:Rhapsody:*:*)
  13104. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  13105. - exit 0 ;;
  13106. + exit ;;
  13107. *:Darwin:*:*)
  13108. UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  13109. case $UNAME_PROCESSOR in
  13110. - *86) UNAME_PROCESSOR=i686 ;;
  13111. unknown) UNAME_PROCESSOR=powerpc ;;
  13112. esac
  13113. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  13114. - exit 0 ;;
  13115. + exit ;;
  13116. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  13117. UNAME_PROCESSOR=`uname -p`
  13118. if test "$UNAME_PROCESSOR" = "x86"; then
  13119. @@ -1200,25 +1258,25 @@
  13120. UNAME_MACHINE=pc
  13121. fi
  13122. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  13123. - exit 0 ;;
  13124. + exit ;;
  13125. *:QNX:*:4*)
  13126. echo i386-pc-qnx
  13127. - exit 0 ;;
  13128. + exit ;;
  13129. NSE-?:NONSTOP_KERNEL:*:*)
  13130. echo nse-tandem-nsk${UNAME_RELEASE}
  13131. - exit 0 ;;
  13132. + exit ;;
  13133. NSR-?:NONSTOP_KERNEL:*:*)
  13134. echo nsr-tandem-nsk${UNAME_RELEASE}
  13135. - exit 0 ;;
  13136. + exit ;;
  13137. *:NonStop-UX:*:*)
  13138. echo mips-compaq-nonstopux
  13139. - exit 0 ;;
  13140. + exit ;;
  13141. BS2000:POSIX*:*:*)
  13142. echo bs2000-siemens-sysv
  13143. - exit 0 ;;
  13144. + exit ;;
  13145. DS/*:UNIX_System_V:*:*)
  13146. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  13147. - exit 0 ;;
  13148. + exit ;;
  13149. *:Plan9:*:*)
  13150. # "uname -m" is not consistent, so use $cputype instead. 386
  13151. # is converted to i386 for consistency with other x86
  13152. @@ -1229,41 +1287,50 @@
  13153. UNAME_MACHINE="$cputype"
  13154. fi
  13155. echo ${UNAME_MACHINE}-unknown-plan9
  13156. - exit 0 ;;
  13157. + exit ;;
  13158. *:TOPS-10:*:*)
  13159. echo pdp10-unknown-tops10
  13160. - exit 0 ;;
  13161. + exit ;;
  13162. *:TENEX:*:*)
  13163. echo pdp10-unknown-tenex
  13164. - exit 0 ;;
  13165. + exit ;;
  13166. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  13167. echo pdp10-dec-tops20
  13168. - exit 0 ;;
  13169. + exit ;;
  13170. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  13171. echo pdp10-xkl-tops20
  13172. - exit 0 ;;
  13173. + exit ;;
  13174. *:TOPS-20:*:*)
  13175. echo pdp10-unknown-tops20
  13176. - exit 0 ;;
  13177. + exit ;;
  13178. *:ITS:*:*)
  13179. echo pdp10-unknown-its
  13180. - exit 0 ;;
  13181. + exit ;;
  13182. SEI:*:*:SEIUX)
  13183. echo mips-sei-seiux${UNAME_RELEASE}
  13184. - exit 0 ;;
  13185. + exit ;;
  13186. *:DragonFly:*:*)
  13187. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  13188. - exit 0 ;;
  13189. + exit ;;
  13190. *:*VMS:*:*)
  13191. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  13192. case "${UNAME_MACHINE}" in
  13193. - A*) echo alpha-dec-vms && exit 0 ;;
  13194. - I*) echo ia64-dec-vms && exit 0 ;;
  13195. - V*) echo vax-dec-vms && exit 0 ;;
  13196. + A*) echo alpha-dec-vms ; exit ;;
  13197. + I*) echo ia64-dec-vms ; exit ;;
  13198. + V*) echo vax-dec-vms ; exit ;;
  13199. esac ;;
  13200. *:XENIX:*:SysV)
  13201. echo i386-pc-xenix
  13202. - exit 0 ;;
  13203. + exit ;;
  13204. + i*86:skyos:*:*)
  13205. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  13206. + exit ;;
  13207. + i*86:rdos:*:*)
  13208. + echo ${UNAME_MACHINE}-pc-rdos
  13209. + exit ;;
  13210. + i*86:AROS:*:*)
  13211. + echo ${UNAME_MACHINE}-pc-aros
  13212. + exit ;;
  13213. esac
  13214. #echo '(No uname command or uname output not recognized.)' 1>&2
  13215. @@ -1295,7 +1362,7 @@
  13216. #endif
  13217. #if defined (__arm) && defined (__acorn) && defined (__unix)
  13218. - printf ("arm-acorn-riscix"); exit (0);
  13219. + printf ("arm-acorn-riscix\n"); exit (0);
  13220. #endif
  13221. #if defined (hp300) && !defined (hpux)
  13222. @@ -1384,11 +1451,12 @@
  13223. }
  13224. EOF
  13225. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  13226. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  13227. + { echo "$SYSTEM_NAME"; exit; }
  13228. # Apollos put the system type in the environment.
  13229. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  13230. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  13231. # Convex versions that predate uname can use getsysinfo(1)
  13232. @@ -1397,22 +1465,22 @@
  13233. case `getsysinfo -f cpu_type` in
  13234. c1*)
  13235. echo c1-convex-bsd
  13236. - exit 0 ;;
  13237. + exit ;;
  13238. c2*)
  13239. if getsysinfo -f scalar_acc
  13240. then echo c32-convex-bsd
  13241. else echo c2-convex-bsd
  13242. fi
  13243. - exit 0 ;;
  13244. + exit ;;
  13245. c34*)
  13246. echo c34-convex-bsd
  13247. - exit 0 ;;
  13248. + exit ;;
  13249. c38*)
  13250. echo c38-convex-bsd
  13251. - exit 0 ;;
  13252. + exit ;;
  13253. c4*)
  13254. echo c4-convex-bsd
  13255. - exit 0 ;;
  13256. + exit ;;
  13257. esac
  13258. fi
  13259. @@ -1423,9 +1491,9 @@
  13260. the operating system you are using. It is advised that you
  13261. download the most up to date version of the config scripts from
  13262. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
  13263. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  13264. and
  13265. - http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
  13266. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  13267. If the version you run ($0) is already up to date, please
  13268. send the following data and any information you think might be
  13269. diff -Nur libogg-1.1.3.orig/config.h.in libogg-1.1.3/config.h.in
  13270. --- libogg-1.1.3.orig/config.h.in 2005-11-28 05:26:26.000000000 +0100
  13271. +++ libogg-1.1.3/config.h.in 2011-02-17 18:12:12.000000000 +0100
  13272. @@ -30,6 +30,10 @@
  13273. /* Define to 1 if you have the <unistd.h> header file. */
  13274. #undef HAVE_UNISTD_H
  13275. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  13276. + */
  13277. +#undef LT_OBJDIR
  13278. +
  13279. /* Name of package */
  13280. #undef PACKAGE
  13281. @@ -45,19 +49,22 @@
  13282. /* Define to the one symbol short name of this package. */
  13283. #undef PACKAGE_TARNAME
  13284. +/* Define to the home page for this package. */
  13285. +#undef PACKAGE_URL
  13286. +
  13287. /* Define to the version of this package. */
  13288. #undef PACKAGE_VERSION
  13289. -/* The size of a `int', as computed by sizeof. */
  13290. +/* The size of `int', as computed by sizeof. */
  13291. #undef SIZEOF_INT
  13292. -/* The size of a `long', as computed by sizeof. */
  13293. +/* The size of `long', as computed by sizeof. */
  13294. #undef SIZEOF_LONG
  13295. -/* The size of a `long long', as computed by sizeof. */
  13296. +/* The size of `long long', as computed by sizeof. */
  13297. #undef SIZEOF_LONG_LONG
  13298. -/* The size of a `short', as computed by sizeof. */
  13299. +/* The size of `short', as computed by sizeof. */
  13300. #undef SIZEOF_SHORT
  13301. /* Define to 1 if you have the ANSI C header files. */
  13302. diff -Nur libogg-1.1.3.orig/config.h.in~ libogg-1.1.3/config.h.in~
  13303. --- libogg-1.1.3.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  13304. +++ libogg-1.1.3/config.h.in~ 2005-11-28 05:26:26.000000000 +0100
  13305. @@ -0,0 +1,70 @@
  13306. +/* config.h.in. Generated from configure.in by autoheader. */
  13307. +
  13308. +/* Define to 1 if you have the <dlfcn.h> header file. */
  13309. +#undef HAVE_DLFCN_H
  13310. +
  13311. +/* Define to 1 if you have the <inttypes.h> header file. */
  13312. +#undef HAVE_INTTYPES_H
  13313. +
  13314. +/* Define to 1 if you have the <memory.h> header file. */
  13315. +#undef HAVE_MEMORY_H
  13316. +
  13317. +/* Define to 1 if you have the <stdint.h> header file. */
  13318. +#undef HAVE_STDINT_H
  13319. +
  13320. +/* Define to 1 if you have the <stdlib.h> header file. */
  13321. +#undef HAVE_STDLIB_H
  13322. +
  13323. +/* Define to 1 if you have the <strings.h> header file. */
  13324. +#undef HAVE_STRINGS_H
  13325. +
  13326. +/* Define to 1 if you have the <string.h> header file. */
  13327. +#undef HAVE_STRING_H
  13328. +
  13329. +/* Define to 1 if you have the <sys/stat.h> header file. */
  13330. +#undef HAVE_SYS_STAT_H
  13331. +
  13332. +/* Define to 1 if you have the <sys/types.h> header file. */
  13333. +#undef HAVE_SYS_TYPES_H
  13334. +
  13335. +/* Define to 1 if you have the <unistd.h> header file. */
  13336. +#undef HAVE_UNISTD_H
  13337. +
  13338. +/* Name of package */
  13339. +#undef PACKAGE
  13340. +
  13341. +/* Define to the address where bug reports for this package should be sent. */
  13342. +#undef PACKAGE_BUGREPORT
  13343. +
  13344. +/* Define to the full name of this package. */
  13345. +#undef PACKAGE_NAME
  13346. +
  13347. +/* Define to the full name and version of this package. */
  13348. +#undef PACKAGE_STRING
  13349. +
  13350. +/* Define to the one symbol short name of this package. */
  13351. +#undef PACKAGE_TARNAME
  13352. +
  13353. +/* Define to the version of this package. */
  13354. +#undef PACKAGE_VERSION
  13355. +
  13356. +/* The size of a `int', as computed by sizeof. */
  13357. +#undef SIZEOF_INT
  13358. +
  13359. +/* The size of a `long', as computed by sizeof. */
  13360. +#undef SIZEOF_LONG
  13361. +
  13362. +/* The size of a `long long', as computed by sizeof. */
  13363. +#undef SIZEOF_LONG_LONG
  13364. +
  13365. +/* The size of a `short', as computed by sizeof. */
  13366. +#undef SIZEOF_SHORT
  13367. +
  13368. +/* Define to 1 if you have the ANSI C header files. */
  13369. +#undef STDC_HEADERS
  13370. +
  13371. +/* Version number of package */
  13372. +#undef VERSION
  13373. +
  13374. +/* Define to empty if `const' does not conform to ANSI C. */
  13375. +#undef const
  13376. diff -Nur libogg-1.1.3.orig/config.sub libogg-1.1.3/config.sub
  13377. --- libogg-1.1.3.orig/config.sub 2005-04-26 10:44:02.000000000 +0200
  13378. +++ libogg-1.1.3/config.sub 2011-02-17 18:12:13.513552365 +0100
  13379. @@ -1,9 +1,10 @@
  13380. #! /bin/sh
  13381. # Configuration validation subroutine script.
  13382. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13383. -# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
  13384. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13385. +# Free Software Foundation, Inc.
  13386. -timestamp='2005-04-22'
  13387. +timestamp='2009-06-11'
  13388. # This file is (in principle) common to ALL GNU software.
  13389. # The presence of a machine in this file suggests that SOME GNU software
  13390. @@ -21,14 +22,15 @@
  13391. #
  13392. # You should have received a copy of the GNU General Public License
  13393. # along with this program; if not, write to the Free Software
  13394. -# Foundation, Inc., 59 Temple Place - Suite 330,
  13395. -# Boston, MA 02111-1307, USA.
  13396. -
  13397. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13398. +# 02110-1301, USA.
  13399. +#
  13400. # As a special exception to the GNU General Public License, if you
  13401. # distribute this file as part of a program that contains a
  13402. # configuration script generated by Autoconf, you may include it under
  13403. # the same distribution terms that you use for the rest of that program.
  13404. +
  13405. # Please send patches to <config-patches@gnu.org>. Submit a context
  13406. # diff and a properly formatted ChangeLog entry.
  13407. #
  13408. @@ -70,8 +72,8 @@
  13409. version="\
  13410. GNU config.sub ($timestamp)
  13411. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13412. -Free Software Foundation, Inc.
  13413. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13414. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13415. This is free software; see the source for copying conditions. There is NO
  13416. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13417. @@ -83,11 +85,11 @@
  13418. while test $# -gt 0 ; do
  13419. case $1 in
  13420. --time-stamp | --time* | -t )
  13421. - echo "$timestamp" ; exit 0 ;;
  13422. + echo "$timestamp" ; exit ;;
  13423. --version | -v )
  13424. - echo "$version" ; exit 0 ;;
  13425. + echo "$version" ; exit ;;
  13426. --help | --h* | -h )
  13427. - echo "$usage"; exit 0 ;;
  13428. + echo "$usage"; exit ;;
  13429. -- ) # Stop option processing
  13430. shift; break ;;
  13431. - ) # Use stdin as input.
  13432. @@ -99,7 +101,7 @@
  13433. *local*)
  13434. # First pass through any local machine types.
  13435. echo $1
  13436. - exit 0;;
  13437. + exit ;;
  13438. * )
  13439. break ;;
  13440. @@ -118,8 +120,10 @@
  13441. # Here we must recognize all the valid KERNEL-OS combinations.
  13442. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  13443. case $maybe_os in
  13444. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  13445. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  13446. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  13447. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  13448. + kopensolaris*-gnu* | \
  13449. + storm-chaos* | os2-emx* | rtmk-nova*)
  13450. os=-$maybe_os
  13451. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  13452. ;;
  13453. @@ -149,6 +153,9 @@
  13454. os=
  13455. basic_machine=$1
  13456. ;;
  13457. + -bluegene*)
  13458. + os=-cnk
  13459. + ;;
  13460. -sim | -cisco | -oki | -wec | -winbond)
  13461. os=
  13462. basic_machine=$1
  13463. @@ -170,6 +177,10 @@
  13464. -hiux*)
  13465. os=-hiuxwe2
  13466. ;;
  13467. + -sco6)
  13468. + os=-sco5v6
  13469. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  13470. + ;;
  13471. -sco5)
  13472. os=-sco3.2v5
  13473. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  13474. @@ -186,6 +197,10 @@
  13475. # Don't forget version if it is 3.2v4 or newer.
  13476. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  13477. ;;
  13478. + -sco5v6*)
  13479. + # Don't forget version if it is 3.2v4 or newer.
  13480. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  13481. + ;;
  13482. -sco*)
  13483. os=-sco3.2v2
  13484. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  13485. @@ -230,23 +245,28 @@
  13486. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  13487. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  13488. | am33_2.0 \
  13489. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  13490. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  13491. | bfin \
  13492. | c4x | clipper \
  13493. | d10v | d30v | dlx | dsp16xx \
  13494. - | fr30 | frv \
  13495. + | fido | fr30 | frv \
  13496. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  13497. | i370 | i860 | i960 | ia64 \
  13498. | ip2k | iq2000 \
  13499. - | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
  13500. + | lm32 \
  13501. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  13502. + | maxq | mb | microblaze | mcore | mep | metag \
  13503. | mips | mipsbe | mipseb | mipsel | mipsle \
  13504. | mips16 \
  13505. | mips64 | mips64el \
  13506. - | mips64vr | mips64vrel \
  13507. + | mips64octeon | mips64octeonel \
  13508. | mips64orion | mips64orionel \
  13509. + | mips64r5900 | mips64r5900el \
  13510. + | mips64vr | mips64vrel \
  13511. | mips64vr4100 | mips64vr4100el \
  13512. | mips64vr4300 | mips64vr4300el \
  13513. | mips64vr5000 | mips64vr5000el \
  13514. + | mips64vr5900 | mips64vr5900el \
  13515. | mipsisa32 | mipsisa32el \
  13516. | mipsisa32r2 | mipsisa32r2el \
  13517. | mipsisa64 | mipsisa64el \
  13518. @@ -255,22 +275,26 @@
  13519. | mipsisa64sr71k | mipsisa64sr71kel \
  13520. | mipstx39 | mipstx39el \
  13521. | mn10200 | mn10300 \
  13522. + | moxie \
  13523. + | mt \
  13524. | msp430 \
  13525. + | nios | nios2 \
  13526. | ns16k | ns32k \
  13527. - | openrisc | or32 \
  13528. + | or32 \
  13529. | pdp10 | pdp11 | pj | pjl \
  13530. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  13531. | pyramid \
  13532. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  13533. + | score \
  13534. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  13535. | sh64 | sh64le \
  13536. - | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
  13537. - | sparcv8 | sparcv9 | sparcv9b \
  13538. - | strongarm \
  13539. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  13540. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  13541. + | spu | strongarm \
  13542. | tahoe | thumb | tic4x | tic80 | tron \
  13543. | v850 | v850e \
  13544. | we32k \
  13545. - | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
  13546. - | z8k)
  13547. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  13548. + | z8k | z80)
  13549. basic_machine=$basic_machine-unknown
  13550. ;;
  13551. m6811 | m68hc11 | m6812 | m68hc12)
  13552. @@ -280,6 +304,9 @@
  13553. ;;
  13554. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  13555. ;;
  13556. + ms1)
  13557. + basic_machine=mt-unknown
  13558. + ;;
  13559. # We use `pc' rather than `unknown'
  13560. # because (1) that's what they normally are, and
  13561. @@ -299,28 +326,32 @@
  13562. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  13563. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  13564. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  13565. - | avr-* \
  13566. + | avr-* | avr32-* \
  13567. | bfin-* | bs2000-* \
  13568. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  13569. | clipper-* | craynv-* | cydra-* \
  13570. | d10v-* | d30v-* | dlx-* \
  13571. | elxsi-* \
  13572. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  13573. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  13574. | h8300-* | h8500-* \
  13575. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  13576. | i*86-* | i860-* | i960-* | ia64-* \
  13577. | ip2k-* | iq2000-* \
  13578. - | m32r-* | m32rle-* \
  13579. + | lm32-* \
  13580. + | m32c-* | m32r-* | m32rle-* \
  13581. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  13582. - | m88110-* | m88k-* | maxq-* | mcore-* \
  13583. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  13584. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  13585. | mips16-* \
  13586. | mips64-* | mips64el-* \
  13587. - | mips64vr-* | mips64vrel-* \
  13588. + | mips64octeon-* | mips64octeonel-* \
  13589. | mips64orion-* | mips64orionel-* \
  13590. + | mips64r5900-* | mips64r5900el-* \
  13591. + | mips64vr-* | mips64vrel-* \
  13592. | mips64vr4100-* | mips64vr4100el-* \
  13593. | mips64vr4300-* | mips64vr4300el-* \
  13594. | mips64vr5000-* | mips64vr5000el-* \
  13595. + | mips64vr5900-* | mips64vr5900el-* \
  13596. | mipsisa32-* | mipsisa32el-* \
  13597. | mipsisa32r2-* | mipsisa32r2el-* \
  13598. | mipsisa64-* | mipsisa64el-* \
  13599. @@ -329,27 +360,33 @@
  13600. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  13601. | mipstx39-* | mipstx39el-* \
  13602. | mmix-* \
  13603. + | mt-* \
  13604. | msp430-* \
  13605. + | nios-* | nios2-* \
  13606. | none-* | np1-* | ns16k-* | ns32k-* \
  13607. | orion-* \
  13608. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  13609. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  13610. | pyramid-* \
  13611. | romp-* | rs6000-* \
  13612. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  13613. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  13614. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  13615. - | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
  13616. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  13617. | sparclite-* \
  13618. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  13619. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  13620. | tahoe-* | thumb-* \
  13621. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  13622. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  13623. | tron-* \
  13624. | v850-* | v850e-* | vax-* \
  13625. | we32k-* \
  13626. - | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
  13627. - | xstormy16-* | xtensa-* \
  13628. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  13629. + | xstormy16-* | xtensa*-* \
  13630. | ymp-* \
  13631. - | z8k-*)
  13632. + | z8k-* | z80-*)
  13633. + ;;
  13634. + # Recognize the basic CPU types without company name, with glob match.
  13635. + xtensa*)
  13636. + basic_machine=$basic_machine-unknown
  13637. ;;
  13638. # Recognize the various machine names and aliases which stand
  13639. # for a CPU type and a company and sometimes even an OS.
  13640. @@ -413,6 +450,10 @@
  13641. basic_machine=m68k-apollo
  13642. os=-bsd
  13643. ;;
  13644. + aros)
  13645. + basic_machine=i386-pc
  13646. + os=-aros
  13647. + ;;
  13648. aux)
  13649. basic_machine=m68k-apple
  13650. os=-aux
  13651. @@ -421,10 +462,26 @@
  13652. basic_machine=ns32k-sequent
  13653. os=-dynix
  13654. ;;
  13655. + blackfin)
  13656. + basic_machine=bfin-unknown
  13657. + os=-linux
  13658. + ;;
  13659. + blackfin-*)
  13660. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  13661. + os=-linux
  13662. + ;;
  13663. + bluegene*)
  13664. + basic_machine=powerpc-ibm
  13665. + os=-cnk
  13666. + ;;
  13667. c90)
  13668. basic_machine=c90-cray
  13669. os=-unicos
  13670. ;;
  13671. + cegcc)
  13672. + basic_machine=arm-unknown
  13673. + os=-cegcc
  13674. + ;;
  13675. convex-c1)
  13676. basic_machine=c1-convex
  13677. os=-bsd
  13678. @@ -453,8 +510,8 @@
  13679. basic_machine=craynv-cray
  13680. os=-unicosmp
  13681. ;;
  13682. - cr16c)
  13683. - basic_machine=cr16c-unknown
  13684. + cr16)
  13685. + basic_machine=cr16-unknown
  13686. os=-elf
  13687. ;;
  13688. crds | unos)
  13689. @@ -492,6 +549,10 @@
  13690. basic_machine=m88k-motorola
  13691. os=-sysv3
  13692. ;;
  13693. + dicos)
  13694. + basic_machine=i686-pc
  13695. + os=-dicos
  13696. + ;;
  13697. djgpp)
  13698. basic_machine=i586-pc
  13699. os=-msdosdjgpp
  13700. @@ -646,6 +707,14 @@
  13701. basic_machine=m68k-isi
  13702. os=-sysv
  13703. ;;
  13704. + m68knommu)
  13705. + basic_machine=m68k-unknown
  13706. + os=-linux
  13707. + ;;
  13708. + m68knommu-*)
  13709. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  13710. + os=-linux
  13711. + ;;
  13712. m88k-omron*)
  13713. basic_machine=m88k-omron
  13714. ;;
  13715. @@ -661,6 +730,10 @@
  13716. basic_machine=i386-pc
  13717. os=-mingw32
  13718. ;;
  13719. + mingw32ce)
  13720. + basic_machine=arm-unknown
  13721. + os=-mingw32ce
  13722. + ;;
  13723. miniframe)
  13724. basic_machine=m68000-convergent
  13725. ;;
  13726. @@ -686,6 +759,9 @@
  13727. basic_machine=i386-pc
  13728. os=-msdos
  13729. ;;
  13730. + ms1-*)
  13731. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  13732. + ;;
  13733. mvs)
  13734. basic_machine=i370-ibm
  13735. os=-mvs
  13736. @@ -761,9 +837,8 @@
  13737. basic_machine=hppa1.1-oki
  13738. os=-proelf
  13739. ;;
  13740. - or32 | or32-*)
  13741. + openrisc | openrisc-*)
  13742. basic_machine=or32-unknown
  13743. - os=-coff
  13744. ;;
  13745. os400)
  13746. basic_machine=powerpc-ibm
  13747. @@ -785,6 +860,14 @@
  13748. basic_machine=i860-intel
  13749. os=-osf
  13750. ;;
  13751. + parisc)
  13752. + basic_machine=hppa-unknown
  13753. + os=-linux
  13754. + ;;
  13755. + parisc-*)
  13756. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  13757. + os=-linux
  13758. + ;;
  13759. pbd)
  13760. basic_machine=sparc-tti
  13761. ;;
  13762. @@ -794,6 +877,12 @@
  13763. pc532 | pc532-*)
  13764. basic_machine=ns32k-pc532
  13765. ;;
  13766. + pc98)
  13767. + basic_machine=i386-pc
  13768. + ;;
  13769. + pc98-*)
  13770. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  13771. + ;;
  13772. pentium | p5 | k5 | k6 | nexgen | viac3)
  13773. basic_machine=i586-pc
  13774. ;;
  13775. @@ -850,6 +939,10 @@
  13776. basic_machine=i586-unknown
  13777. os=-pw32
  13778. ;;
  13779. + rdos)
  13780. + basic_machine=i386-pc
  13781. + os=-rdos
  13782. + ;;
  13783. rom68k)
  13784. basic_machine=m68k-rom68k
  13785. os=-coff
  13786. @@ -876,6 +969,10 @@
  13787. sb1el)
  13788. basic_machine=mipsisa64sb1el-unknown
  13789. ;;
  13790. + sde)
  13791. + basic_machine=mipsisa32-sde
  13792. + os=-elf
  13793. + ;;
  13794. sei)
  13795. basic_machine=mips-sei
  13796. os=-seiux
  13797. @@ -887,6 +984,9 @@
  13798. basic_machine=sh-hitachi
  13799. os=-hms
  13800. ;;
  13801. + sh5el)
  13802. + basic_machine=sh5le-unknown
  13803. + ;;
  13804. sh64)
  13805. basic_machine=sh64-unknown
  13806. ;;
  13807. @@ -976,6 +1076,10 @@
  13808. basic_machine=tic6x-unknown
  13809. os=-coff
  13810. ;;
  13811. + tile*)
  13812. + basic_machine=tile-unknown
  13813. + os=-linux-gnu
  13814. + ;;
  13815. tx39)
  13816. basic_machine=mipstx39-unknown
  13817. ;;
  13818. @@ -1051,6 +1155,10 @@
  13819. basic_machine=z8k-unknown
  13820. os=-sim
  13821. ;;
  13822. + z80-*-coff)
  13823. + basic_machine=z80-unknown
  13824. + os=-sim
  13825. + ;;
  13826. none)
  13827. basic_machine=none-none
  13828. os=-none
  13829. @@ -1089,13 +1197,10 @@
  13830. we32k)
  13831. basic_machine=we32k-att
  13832. ;;
  13833. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  13834. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  13835. basic_machine=sh-unknown
  13836. ;;
  13837. - sh64)
  13838. - basic_machine=sh64-unknown
  13839. - ;;
  13840. - sparc | sparcv8 | sparcv9 | sparcv9b)
  13841. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  13842. basic_machine=sparc-sun
  13843. ;;
  13844. cydra)
  13845. @@ -1162,26 +1267,30 @@
  13846. # Each alternative MUST END IN A *, to match a version number.
  13847. # -sysv* is not here because it comes later, after sysvr4.
  13848. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  13849. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  13850. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  13851. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  13852. + | -kopensolaris* \
  13853. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  13854. - | -aos* \
  13855. + | -aos* | -aros* \
  13856. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  13857. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  13858. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  13859. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  13860. + | -openbsd* | -solidbsd* \
  13861. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  13862. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  13863. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  13864. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  13865. - | -chorusos* | -chorusrdb* \
  13866. + | -chorusos* | -chorusrdb* | -cegcc* \
  13867. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  13868. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  13869. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  13870. + | -uxpv* | -beos* | -mpeix* | -udk* \
  13871. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  13872. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  13873. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  13874. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  13875. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  13876. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  13877. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  13878. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  13879. # Remember, each alternative MUST END IN *, to match a version number.
  13880. ;;
  13881. -qnx*)
  13882. @@ -1199,7 +1308,7 @@
  13883. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  13884. ;;
  13885. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  13886. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  13887. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  13888. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  13889. ;;
  13890. -mac*)
  13891. @@ -1311,6 +1420,9 @@
  13892. -zvmoe)
  13893. os=-zvmoe
  13894. ;;
  13895. + -dicos*)
  13896. + os=-dicos
  13897. + ;;
  13898. -none)
  13899. ;;
  13900. *)
  13901. @@ -1333,6 +1445,12 @@
  13902. # system, and we'll never get to this point.
  13903. case $basic_machine in
  13904. + score-*)
  13905. + os=-elf
  13906. + ;;
  13907. + spu-*)
  13908. + os=-elf
  13909. + ;;
  13910. *-acorn)
  13911. os=-riscix1.2
  13912. ;;
  13913. @@ -1342,9 +1460,9 @@
  13914. arm*-semi)
  13915. os=-aout
  13916. ;;
  13917. - c4x-* | tic4x-*)
  13918. - os=-coff
  13919. - ;;
  13920. + c4x-* | tic4x-*)
  13921. + os=-coff
  13922. + ;;
  13923. # This must come before the *-dec entry.
  13924. pdp10-*)
  13925. os=-tops20
  13926. @@ -1370,6 +1488,9 @@
  13927. m68*-cisco)
  13928. os=-aout
  13929. ;;
  13930. + mep-*)
  13931. + os=-elf
  13932. + ;;
  13933. mips*-cisco)
  13934. os=-elf
  13935. ;;
  13936. @@ -1388,6 +1509,9 @@
  13937. *-be)
  13938. os=-beos
  13939. ;;
  13940. + *-haiku)
  13941. + os=-haiku
  13942. + ;;
  13943. *-ibm)
  13944. os=-aix
  13945. ;;
  13946. @@ -1496,7 +1620,7 @@
  13947. -sunos*)
  13948. vendor=sun
  13949. ;;
  13950. - -aix*)
  13951. + -cnk*|-aix*)
  13952. vendor=ibm
  13953. ;;
  13954. -beos*)
  13955. @@ -1559,7 +1683,7 @@
  13956. esac
  13957. echo $basic_machine$os
  13958. -exit 0
  13959. +exit
  13960. # Local variables:
  13961. # eval: (add-hook 'write-file-hooks 'time-stamp)
  13962. diff -Nur libogg-1.1.3.orig/configure libogg-1.1.3/configure
  13963. --- libogg-1.1.3.orig/configure 2005-11-28 05:26:32.000000000 +0100
  13964. +++ libogg-1.1.3/configure 2011-02-17 18:12:12.503561194 +0100
  13965. @@ -1,81 +1,415 @@
  13966. #! /bin/sh
  13967. # Guess values for system-dependent variables and create Makefiles.
  13968. -# Generated by GNU Autoconf 2.59.
  13969. +# Generated by GNU Autoconf 2.65.
  13970. +#
  13971. +#
  13972. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  13973. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  13974. +# Inc.
  13975. +#
  13976. #
  13977. -# Copyright (C) 2003 Free Software Foundation, Inc.
  13978. # This configure script is free software; the Free Software Foundation
  13979. # gives unlimited permission to copy, distribute and modify it.
  13980. -## --------------------- ##
  13981. -## M4sh Initialization. ##
  13982. -## --------------------- ##
  13983. +## -------------------- ##
  13984. +## M4sh Initialization. ##
  13985. +## -------------------- ##
  13986. -# Be Bourne compatible
  13987. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13988. +# Be more Bourne compatible
  13989. +DUALCASE=1; export DUALCASE # for MKS sh
  13990. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  13991. emulate sh
  13992. NULLCMD=:
  13993. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  13994. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  13995. # is contrary to our usage. Disable this feature.
  13996. alias -g '${1+"$@"}'='"$@"'
  13997. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  13998. - set -o posix
  13999. + setopt NO_GLOB_SUBST
  14000. +else
  14001. + case `(set -o) 2>/dev/null` in #(
  14002. + *posix*) :
  14003. + set -o posix ;; #(
  14004. + *) :
  14005. + ;;
  14006. +esac
  14007. fi
  14008. -DUALCASE=1; export DUALCASE # for MKS sh
  14009. -# Support unset when possible.
  14010. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  14011. - as_unset=unset
  14012. -else
  14013. - as_unset=false
  14014. +
  14015. +as_nl='
  14016. +'
  14017. +export as_nl
  14018. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  14019. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14020. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14021. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14022. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  14023. +# but without wasting forks for bash or zsh.
  14024. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  14025. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14026. + as_echo='print -r --'
  14027. + as_echo_n='print -rn --'
  14028. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14029. + as_echo='printf %s\n'
  14030. + as_echo_n='printf %s'
  14031. +else
  14032. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14033. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14034. + as_echo_n='/usr/ucb/echo -n'
  14035. + else
  14036. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14037. + as_echo_n_body='eval
  14038. + arg=$1;
  14039. + case $arg in #(
  14040. + *"$as_nl"*)
  14041. + expr "X$arg" : "X\\(.*\\)$as_nl";
  14042. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14043. + esac;
  14044. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14045. + '
  14046. + export as_echo_n_body
  14047. + as_echo_n='sh -c $as_echo_n_body as_echo'
  14048. + fi
  14049. + export as_echo_body
  14050. + as_echo='sh -c $as_echo_body as_echo'
  14051. fi
  14052. +# The user is always right.
  14053. +if test "${PATH_SEPARATOR+set}" != set; then
  14054. + PATH_SEPARATOR=:
  14055. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14056. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14057. + PATH_SEPARATOR=';'
  14058. + }
  14059. +fi
  14060. +
  14061. +
  14062. +# IFS
  14063. +# We need space, tab and new line, in precisely that order. Quoting is
  14064. +# there to prevent editors from complaining about space-tab.
  14065. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14066. +# splitting by setting IFS to empty value.)
  14067. +IFS=" "" $as_nl"
  14068. +
  14069. +# Find who we are. Look in the path if we contain no directory separator.
  14070. +case $0 in #((
  14071. + *[\\/]* ) as_myself=$0 ;;
  14072. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14073. +for as_dir in $PATH
  14074. +do
  14075. + IFS=$as_save_IFS
  14076. + test -z "$as_dir" && as_dir=.
  14077. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14078. + done
  14079. +IFS=$as_save_IFS
  14080. -# Work around bugs in pre-3.0 UWIN ksh.
  14081. -$as_unset ENV MAIL MAILPATH
  14082. + ;;
  14083. +esac
  14084. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  14085. +# in which case we are not to be found in the path.
  14086. +if test "x$as_myself" = x; then
  14087. + as_myself=$0
  14088. +fi
  14089. +if test ! -f "$as_myself"; then
  14090. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14091. + exit 1
  14092. +fi
  14093. +
  14094. +# Unset variables that we do not need and which cause bugs (e.g. in
  14095. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14096. +# suppresses any "Segmentation fault" message there. '((' could
  14097. +# trigger a bug in pdksh 5.2.14.
  14098. +for as_var in BASH_ENV ENV MAIL MAILPATH
  14099. +do eval test x\${$as_var+set} = xset \
  14100. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14101. +done
  14102. PS1='$ '
  14103. PS2='> '
  14104. PS4='+ '
  14105. # NLS nuisances.
  14106. -for as_var in \
  14107. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  14108. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  14109. - LC_TELEPHONE LC_TIME
  14110. +LC_ALL=C
  14111. +export LC_ALL
  14112. +LANGUAGE=C
  14113. +export LANGUAGE
  14114. +
  14115. +# CDPATH.
  14116. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14117. +
  14118. +if test "x$CONFIG_SHELL" = x; then
  14119. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  14120. + emulate sh
  14121. + NULLCMD=:
  14122. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  14123. + # is contrary to our usage. Disable this feature.
  14124. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  14125. + setopt NO_GLOB_SUBST
  14126. +else
  14127. + case \`(set -o) 2>/dev/null\` in #(
  14128. + *posix*) :
  14129. + set -o posix ;; #(
  14130. + *) :
  14131. + ;;
  14132. +esac
  14133. +fi
  14134. +"
  14135. + as_required="as_fn_return () { (exit \$1); }
  14136. +as_fn_success () { as_fn_return 0; }
  14137. +as_fn_failure () { as_fn_return 1; }
  14138. +as_fn_ret_success () { return 0; }
  14139. +as_fn_ret_failure () { return 1; }
  14140. +
  14141. +exitcode=0
  14142. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  14143. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  14144. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  14145. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  14146. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  14147. +
  14148. +else
  14149. + exitcode=1; echo positional parameters were not saved.
  14150. +fi
  14151. +test x\$exitcode = x0 || exit 1"
  14152. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  14153. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  14154. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  14155. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  14156. +test \$(( 1 + 1 )) = 2 || exit 1"
  14157. + if (eval "$as_required") 2>/dev/null; then :
  14158. + as_have_required=yes
  14159. +else
  14160. + as_have_required=no
  14161. +fi
  14162. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  14163. +
  14164. +else
  14165. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14166. +as_found=false
  14167. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14168. do
  14169. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  14170. - eval $as_var=C; export $as_var
  14171. - else
  14172. - $as_unset $as_var
  14173. - fi
  14174. + IFS=$as_save_IFS
  14175. + test -z "$as_dir" && as_dir=.
  14176. + as_found=:
  14177. + case $as_dir in #(
  14178. + /*)
  14179. + for as_base in sh bash ksh sh5; do
  14180. + # Try only shells that exist, to save several forks.
  14181. + as_shell=$as_dir/$as_base
  14182. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  14183. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14184. + CONFIG_SHELL=$as_shell as_have_required=yes
  14185. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  14186. + break 2
  14187. +fi
  14188. +fi
  14189. + done;;
  14190. + esac
  14191. + as_found=false
  14192. done
  14193. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  14194. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  14195. + CONFIG_SHELL=$SHELL as_have_required=yes
  14196. +fi; }
  14197. +IFS=$as_save_IFS
  14198. +
  14199. +
  14200. + if test "x$CONFIG_SHELL" != x; then :
  14201. + # We cannot yet assume a decent shell, so we have to provide a
  14202. + # neutralization value for shells without unset; and this also
  14203. + # works around shells that cannot unset nonexistent variables.
  14204. + BASH_ENV=/dev/null
  14205. + ENV=/dev/null
  14206. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  14207. + export CONFIG_SHELL
  14208. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  14209. +fi
  14210. +
  14211. + if test x$as_have_required = xno; then :
  14212. + $as_echo "$0: This script requires a shell more modern than all"
  14213. + $as_echo "$0: the shells that I found on your system."
  14214. + if test x${ZSH_VERSION+set} = xset ; then
  14215. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  14216. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  14217. + else
  14218. + $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  14219. +$0: including any error possibly output before this
  14220. +$0: message. Then install a modern shell, or manually run
  14221. +$0: the script under such a shell if you do have one."
  14222. + fi
  14223. + exit 1
  14224. +fi
  14225. +fi
  14226. +fi
  14227. +SHELL=${CONFIG_SHELL-/bin/sh}
  14228. +export SHELL
  14229. +# Unset more variables known to interfere with behavior of common tools.
  14230. +CLICOLOR_FORCE= GREP_OPTIONS=
  14231. +unset CLICOLOR_FORCE GREP_OPTIONS
  14232. +
  14233. +## --------------------- ##
  14234. +## M4sh Shell Functions. ##
  14235. +## --------------------- ##
  14236. +# as_fn_unset VAR
  14237. +# ---------------
  14238. +# Portably unset VAR.
  14239. +as_fn_unset ()
  14240. +{
  14241. + { eval $1=; unset $1;}
  14242. +}
  14243. +as_unset=as_fn_unset
  14244. +
  14245. +# as_fn_set_status STATUS
  14246. +# -----------------------
  14247. +# Set $? to STATUS, without forking.
  14248. +as_fn_set_status ()
  14249. +{
  14250. + return $1
  14251. +} # as_fn_set_status
  14252. +
  14253. +# as_fn_exit STATUS
  14254. +# -----------------
  14255. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14256. +as_fn_exit ()
  14257. +{
  14258. + set +e
  14259. + as_fn_set_status $1
  14260. + exit $1
  14261. +} # as_fn_exit
  14262. +
  14263. +# as_fn_mkdir_p
  14264. +# -------------
  14265. +# Create "$as_dir" as a directory, including parents if necessary.
  14266. +as_fn_mkdir_p ()
  14267. +{
  14268. +
  14269. + case $as_dir in #(
  14270. + -*) as_dir=./$as_dir;;
  14271. + esac
  14272. + test -d "$as_dir" || eval $as_mkdir_p || {
  14273. + as_dirs=
  14274. + while :; do
  14275. + case $as_dir in #(
  14276. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14277. + *) as_qdir=$as_dir;;
  14278. + esac
  14279. + as_dirs="'$as_qdir' $as_dirs"
  14280. + as_dir=`$as_dirname -- "$as_dir" ||
  14281. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14282. + X"$as_dir" : 'X\(//\)[^/]' \| \
  14283. + X"$as_dir" : 'X\(//\)$' \| \
  14284. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14285. +$as_echo X"$as_dir" |
  14286. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14287. + s//\1/
  14288. + q
  14289. + }
  14290. + /^X\(\/\/\)[^/].*/{
  14291. + s//\1/
  14292. + q
  14293. + }
  14294. + /^X\(\/\/\)$/{
  14295. + s//\1/
  14296. + q
  14297. + }
  14298. + /^X\(\/\).*/{
  14299. + s//\1/
  14300. + q
  14301. + }
  14302. + s/.*/./; q'`
  14303. + test -d "$as_dir" && break
  14304. + done
  14305. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  14306. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  14307. +
  14308. +
  14309. +} # as_fn_mkdir_p
  14310. +# as_fn_append VAR VALUE
  14311. +# ----------------------
  14312. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  14313. +# advantage of any shell optimizations that allow amortized linear growth over
  14314. +# repeated appends, instead of the typical quadratic growth present in naive
  14315. +# implementations.
  14316. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14317. + eval 'as_fn_append ()
  14318. + {
  14319. + eval $1+=\$2
  14320. + }'
  14321. +else
  14322. + as_fn_append ()
  14323. + {
  14324. + eval $1=\$$1\$2
  14325. + }
  14326. +fi # as_fn_append
  14327. -# Required to use basename.
  14328. -if expr a : '\(a\)' >/dev/null 2>&1; then
  14329. +# as_fn_arith ARG...
  14330. +# ------------------
  14331. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  14332. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  14333. +# must be portable across $(()) and expr.
  14334. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14335. + eval 'as_fn_arith ()
  14336. + {
  14337. + as_val=$(( $* ))
  14338. + }'
  14339. +else
  14340. + as_fn_arith ()
  14341. + {
  14342. + as_val=`expr "$@" || test $? -eq 1`
  14343. + }
  14344. +fi # as_fn_arith
  14345. +
  14346. +
  14347. +# as_fn_error ERROR [LINENO LOG_FD]
  14348. +# ---------------------------------
  14349. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14350. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14351. +# script with status $?, using 1 if that was 0.
  14352. +as_fn_error ()
  14353. +{
  14354. + as_status=$?; test $as_status -eq 0 && as_status=1
  14355. + if test "$3"; then
  14356. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14357. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  14358. + fi
  14359. + $as_echo "$as_me: error: $1" >&2
  14360. + as_fn_exit $as_status
  14361. +} # as_fn_error
  14362. +
  14363. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  14364. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14365. as_expr=expr
  14366. else
  14367. as_expr=false
  14368. fi
  14369. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  14370. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14371. as_basename=basename
  14372. else
  14373. as_basename=false
  14374. fi
  14375. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14376. + as_dirname=dirname
  14377. +else
  14378. + as_dirname=false
  14379. +fi
  14380. -# Name of the executable.
  14381. -as_me=`$as_basename "$0" ||
  14382. +as_me=`$as_basename -- "$0" ||
  14383. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14384. X"$0" : 'X\(//\)$' \| \
  14385. - X"$0" : 'X\(/\)$' \| \
  14386. - . : '\(.\)' 2>/dev/null ||
  14387. -echo X/"$0" |
  14388. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  14389. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  14390. - /^X\/\(\/\).*/{ s//\1/; q; }
  14391. - s/.*/./; q'`
  14392. -
  14393. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14394. +$as_echo X/"$0" |
  14395. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  14396. + s//\1/
  14397. + q
  14398. + }
  14399. + /^X\/\(\/\/\)$/{
  14400. + s//\1/
  14401. + q
  14402. + }
  14403. + /^X\/\(\/\).*/{
  14404. + s//\1/
  14405. + q
  14406. + }
  14407. + s/.*/./; q'`
  14408. -# PATH needs CR, and LINENO needs CR and PATH.
  14409. # Avoid depending upon Character Ranges.
  14410. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14411. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14412. @@ -83,146 +417,107 @@
  14413. as_cr_digits='0123456789'
  14414. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14415. -# The user is always right.
  14416. -if test "${PATH_SEPARATOR+set}" != set; then
  14417. - echo "#! /bin/sh" >conf$$.sh
  14418. - echo "exit 0" >>conf$$.sh
  14419. - chmod +x conf$$.sh
  14420. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  14421. - PATH_SEPARATOR=';'
  14422. - else
  14423. - PATH_SEPARATOR=:
  14424. - fi
  14425. - rm -f conf$$.sh
  14426. -fi
  14427. -
  14428. -
  14429. - as_lineno_1=$LINENO
  14430. - as_lineno_2=$LINENO
  14431. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  14432. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  14433. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  14434. - # Find who we are. Look in the path if we contain no path at all
  14435. - # relative or not.
  14436. - case $0 in
  14437. - *[\\/]* ) as_myself=$0 ;;
  14438. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14439. -for as_dir in $PATH
  14440. -do
  14441. - IFS=$as_save_IFS
  14442. - test -z "$as_dir" && as_dir=.
  14443. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14444. -done
  14445. -
  14446. - ;;
  14447. - esac
  14448. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  14449. - # in which case we are not to be found in the path.
  14450. - if test "x$as_myself" = x; then
  14451. - as_myself=$0
  14452. - fi
  14453. - if test ! -f "$as_myself"; then
  14454. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  14455. - { (exit 1); exit 1; }; }
  14456. - fi
  14457. - case $CONFIG_SHELL in
  14458. - '')
  14459. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14460. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  14461. -do
  14462. - IFS=$as_save_IFS
  14463. - test -z "$as_dir" && as_dir=.
  14464. - for as_base in sh bash ksh sh5; do
  14465. - case $as_dir in
  14466. - /*)
  14467. - if ("$as_dir/$as_base" -c '
  14468. - as_lineno_1=$LINENO
  14469. - as_lineno_2=$LINENO
  14470. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  14471. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  14472. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  14473. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  14474. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  14475. - CONFIG_SHELL=$as_dir/$as_base
  14476. - export CONFIG_SHELL
  14477. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  14478. - fi;;
  14479. - esac
  14480. - done
  14481. -done
  14482. -;;
  14483. - esac
  14484. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  14485. - # uniformly replaced by the line number. The first 'sed' inserts a
  14486. - # line-number line before each line; the second 'sed' does the real
  14487. - # work. The second script uses 'N' to pair each line-number line
  14488. - # with the numbered line, and appends trailing '-' during
  14489. - # substitution so that $LINENO is not a special case at line end.
  14490. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  14491. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  14492. - sed '=' <$as_myself |
  14493. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  14494. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  14495. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  14496. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  14497. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  14498. + sed -n '
  14499. + p
  14500. + /[$]LINENO/=
  14501. + ' <$as_myself |
  14502. sed '
  14503. + s/[$]LINENO.*/&-/
  14504. + t lineno
  14505. + b
  14506. + :lineno
  14507. N
  14508. - s,$,-,
  14509. - : loop
  14510. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  14511. + :loop
  14512. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  14513. t loop
  14514. - s,-$,,
  14515. - s,^['$as_cr_digits']*\n,,
  14516. + s/-\n.*//
  14517. ' >$as_me.lineno &&
  14518. - chmod +x $as_me.lineno ||
  14519. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  14520. - { (exit 1); exit 1; }; }
  14521. + chmod +x "$as_me.lineno" ||
  14522. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  14523. # Don't try to exec as it changes $[0], causing all sort of problems
  14524. # (the dirname of $[0] is not the place where we might find the
  14525. - # original and so on. Autoconf is especially sensible to this).
  14526. - . ./$as_me.lineno
  14527. + # original and so on. Autoconf is especially sensitive to this).
  14528. + . "./$as_me.lineno"
  14529. # Exit status is that of the last command.
  14530. exit
  14531. }
  14532. -
  14533. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  14534. - *c*,-n*) ECHO_N= ECHO_C='
  14535. -' ECHO_T=' ' ;;
  14536. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  14537. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  14538. +ECHO_C= ECHO_N= ECHO_T=
  14539. +case `echo -n x` in #(((((
  14540. +-n*)
  14541. + case `echo 'xy\c'` in
  14542. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14543. + xy) ECHO_C='\c';;
  14544. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14545. + ECHO_T=' ';;
  14546. + esac;;
  14547. +*)
  14548. + ECHO_N='-n';;
  14549. esac
  14550. -if expr a : '\(a\)' >/dev/null 2>&1; then
  14551. - as_expr=expr
  14552. +rm -f conf$$ conf$$.exe conf$$.file
  14553. +if test -d conf$$.dir; then
  14554. + rm -f conf$$.dir/conf$$.file
  14555. else
  14556. - as_expr=false
  14557. + rm -f conf$$.dir
  14558. + mkdir conf$$.dir 2>/dev/null
  14559. fi
  14560. -
  14561. -rm -f conf$$ conf$$.exe conf$$.file
  14562. -echo >conf$$.file
  14563. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  14564. - # We could just check for DJGPP; but this test a) works b) is more generic
  14565. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  14566. - if test -f conf$$.exe; then
  14567. - # Don't use ln at all; we don't have any links
  14568. - as_ln_s='cp -p'
  14569. - else
  14570. +if (echo >conf$$.file) 2>/dev/null; then
  14571. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  14572. as_ln_s='ln -s'
  14573. + # ... but there are two gotchas:
  14574. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14575. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14576. + # In both cases, we have to default to `cp -p'.
  14577. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14578. + as_ln_s='cp -p'
  14579. + elif ln conf$$.file conf$$ 2>/dev/null; then
  14580. + as_ln_s=ln
  14581. + else
  14582. + as_ln_s='cp -p'
  14583. fi
  14584. -elif ln conf$$.file conf$$ 2>/dev/null; then
  14585. - as_ln_s=ln
  14586. else
  14587. as_ln_s='cp -p'
  14588. fi
  14589. -rm -f conf$$ conf$$.exe conf$$.file
  14590. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14591. +rmdir conf$$.dir 2>/dev/null
  14592. if mkdir -p . 2>/dev/null; then
  14593. - as_mkdir_p=:
  14594. + as_mkdir_p='mkdir -p "$as_dir"'
  14595. else
  14596. test -d ./-p && rmdir ./-p
  14597. as_mkdir_p=false
  14598. fi
  14599. -as_executable_p="test -f"
  14600. +if test -x / >/dev/null 2>&1; then
  14601. + as_test_x='test -x'
  14602. +else
  14603. + if ls -dL / >/dev/null 2>&1; then
  14604. + as_ls_L_option=L
  14605. + else
  14606. + as_ls_L_option=
  14607. + fi
  14608. + as_test_x='
  14609. + eval sh -c '\''
  14610. + if test -d "$1"; then
  14611. + test -d "$1/.";
  14612. + else
  14613. + case $1 in #(
  14614. + -*)set "./$1";;
  14615. + esac;
  14616. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  14617. + ???[sx]*):;;*)false;;esac;fi
  14618. + '\'' sh
  14619. + '
  14620. +fi
  14621. +as_executable_p=$as_test_x
  14622. # Sed expression to map a string onto a valid CPP name.
  14623. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14624. @@ -231,36 +526,26 @@
  14625. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14626. -# IFS
  14627. -# We need space, tab and new line, in precisely that order.
  14628. -as_nl='
  14629. -'
  14630. -IFS=" $as_nl"
  14631. -
  14632. -# CDPATH.
  14633. -$as_unset CDPATH
  14634. -
  14635. -
  14636. # Check that we are running under the correct shell.
  14637. SHELL=${CONFIG_SHELL-/bin/sh}
  14638. -case X$ECHO in
  14639. +case X$lt_ECHO in
  14640. X*--fallback-echo)
  14641. # Remove one level of quotation (which was required for Make).
  14642. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  14643. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  14644. ;;
  14645. esac
  14646. -echo=${ECHO-echo}
  14647. +ECHO=${lt_ECHO-echo}
  14648. if test "X$1" = X--no-reexec; then
  14649. # Discard the --no-reexec flag, and continue.
  14650. shift
  14651. elif test "X$1" = X--fallback-echo; then
  14652. # Avoid inline document here, it may be left over
  14653. :
  14654. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  14655. - # Yippee, $echo works!
  14656. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  14657. + # Yippee, $ECHO works!
  14658. :
  14659. else
  14660. # Restart under the correct shell.
  14661. @@ -270,153 +555,145 @@
  14662. if test "X$1" = X--fallback-echo; then
  14663. # used as fallback echo
  14664. shift
  14665. - cat <<EOF
  14666. + cat <<_LT_EOF
  14667. $*
  14668. -EOF
  14669. +_LT_EOF
  14670. exit 0
  14671. fi
  14672. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14673. # if CDPATH is set.
  14674. -if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  14675. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14676. -if test -z "$ECHO"; then
  14677. -if test "X${echo_test_string+set}" != Xset; then
  14678. -# find a string as large as possible, as long as the shell can cope with it
  14679. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  14680. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  14681. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  14682. - echo_test_string="`eval $cmd`" &&
  14683. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  14684. - then
  14685. - break
  14686. - fi
  14687. - done
  14688. -fi
  14689. +if test -z "$lt_ECHO"; then
  14690. + if test "X${echo_test_string+set}" != Xset; then
  14691. + # find a string as large as possible, as long as the shell can cope with it
  14692. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  14693. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  14694. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  14695. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  14696. + then
  14697. + break
  14698. + fi
  14699. + done
  14700. + fi
  14701. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  14702. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  14703. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14704. - :
  14705. -else
  14706. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  14707. - # backslashes. This makes it impossible to quote backslashes using
  14708. - # echo "$something" | sed 's/\\/\\\\/g'
  14709. - #
  14710. - # So, first we look for a working echo in the user's PATH.
  14711. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14712. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14713. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14714. + :
  14715. + else
  14716. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  14717. + # backslashes. This makes it impossible to quote backslashes using
  14718. + # echo "$something" | sed 's/\\/\\\\/g'
  14719. + #
  14720. + # So, first we look for a working echo in the user's PATH.
  14721. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14722. - for dir in $PATH /usr/ucb; do
  14723. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  14724. + for dir in $PATH /usr/ucb; do
  14725. + IFS="$lt_save_ifs"
  14726. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14727. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14728. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14729. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14730. + ECHO="$dir/echo"
  14731. + break
  14732. + fi
  14733. + done
  14734. IFS="$lt_save_ifs"
  14735. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  14736. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  14737. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  14738. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14739. - echo="$dir/echo"
  14740. - break
  14741. - fi
  14742. - done
  14743. - IFS="$lt_save_ifs"
  14744. - if test "X$echo" = Xecho; then
  14745. - # We didn't find a better echo, so look for alternatives.
  14746. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  14747. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  14748. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14749. - # This shell has a builtin print -r that does the trick.
  14750. - echo='print -r'
  14751. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  14752. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  14753. - # If we have ksh, try running configure again with it.
  14754. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14755. - export ORIGINAL_CONFIG_SHELL
  14756. - CONFIG_SHELL=/bin/ksh
  14757. - export CONFIG_SHELL
  14758. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  14759. - else
  14760. - # Try using printf.
  14761. - echo='printf %s\n'
  14762. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  14763. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  14764. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14765. - # Cool, printf works
  14766. - :
  14767. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14768. - test "X$echo_testing_string" = 'X\t' &&
  14769. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14770. - test "X$echo_testing_string" = "X$echo_test_string"; then
  14771. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14772. - export CONFIG_SHELL
  14773. - SHELL="$CONFIG_SHELL"
  14774. - export SHELL
  14775. - echo="$CONFIG_SHELL $0 --fallback-echo"
  14776. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14777. - test "X$echo_testing_string" = 'X\t' &&
  14778. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14779. + if test "X$ECHO" = Xecho; then
  14780. + # We didn't find a better echo, so look for alternatives.
  14781. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  14782. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  14783. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14784. + # This shell has a builtin print -r that does the trick.
  14785. + ECHO='print -r'
  14786. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  14787. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  14788. + # If we have ksh, try running configure again with it.
  14789. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  14790. + export ORIGINAL_CONFIG_SHELL
  14791. + CONFIG_SHELL=/bin/ksh
  14792. + export CONFIG_SHELL
  14793. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  14794. + else
  14795. + # Try using printf.
  14796. + ECHO='printf %s\n'
  14797. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  14798. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  14799. test "X$echo_testing_string" = "X$echo_test_string"; then
  14800. - echo="$CONFIG_SHELL $0 --fallback-echo"
  14801. - else
  14802. - # maybe with a smaller string...
  14803. - prev=:
  14804. + # Cool, printf works
  14805. + :
  14806. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14807. + test "X$echo_testing_string" = 'X\t' &&
  14808. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14809. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14810. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  14811. + export CONFIG_SHELL
  14812. + SHELL="$CONFIG_SHELL"
  14813. + export SHELL
  14814. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  14815. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  14816. + test "X$echo_testing_string" = 'X\t' &&
  14817. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  14818. + test "X$echo_testing_string" = "X$echo_test_string"; then
  14819. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  14820. + else
  14821. + # maybe with a smaller string...
  14822. + prev=:
  14823. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  14824. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  14825. - then
  14826. - break
  14827. - fi
  14828. - prev="$cmd"
  14829. - done
  14830. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  14831. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  14832. + then
  14833. + break
  14834. + fi
  14835. + prev="$cmd"
  14836. + done
  14837. - if test "$prev" != 'sed 50q "$0"'; then
  14838. - echo_test_string=`eval $prev`
  14839. - export echo_test_string
  14840. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  14841. - else
  14842. - # Oops. We lost completely, so just stick with echo.
  14843. - echo=echo
  14844. - fi
  14845. + if test "$prev" != 'sed 50q "$0"'; then
  14846. + echo_test_string=`eval $prev`
  14847. + export echo_test_string
  14848. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  14849. + else
  14850. + # Oops. We lost completely, so just stick with echo.
  14851. + ECHO=echo
  14852. + fi
  14853. + fi
  14854. fi
  14855. fi
  14856. fi
  14857. fi
  14858. -fi
  14859. # Copy echo and quote the copy suitably for passing to libtool from
  14860. # the Makefile, instead of quoting the original, which is used later.
  14861. -ECHO=$echo
  14862. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14863. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14864. +lt_ECHO=$ECHO
  14865. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  14866. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  14867. fi
  14868. -tagnames=${tagnames+${tagnames},}CXX
  14869. -
  14870. -tagnames=${tagnames+${tagnames},}F77
  14871. +test -n "$DJDIR" || exec 7<&0 </dev/null
  14872. +exec 6>&1
  14873. # Name of the host.
  14874. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  14875. # so uname gets run too.
  14876. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  14877. -exec 6>&1
  14878. -
  14879. #
  14880. # Initializations.
  14881. #
  14882. ac_default_prefix=/usr/local
  14883. +ac_clean_files=
  14884. ac_config_libobj_dir=.
  14885. +LIBOBJS=
  14886. cross_compiling=no
  14887. subdirs=
  14888. MFLAGS=
  14889. MAKEFLAGS=
  14890. -SHELL=${CONFIG_SHELL-/bin/sh}
  14891. -
  14892. -# Maximum number of lines to put in a shell here document.
  14893. -# This variable seems obsolete. It should probably be removed, and
  14894. -# only ac_max_sed_lines should be used.
  14895. -: ${ac_max_here_lines=38}
  14896. # Identity of this package.
  14897. PACKAGE_NAME=
  14898. @@ -424,51 +701,197 @@
  14899. PACKAGE_VERSION=
  14900. PACKAGE_STRING=
  14901. PACKAGE_BUGREPORT=
  14902. +PACKAGE_URL=
  14903. ac_unique_file="src/framing.c"
  14904. # Factoring default headers for most tests.
  14905. ac_includes_default="\
  14906. #include <stdio.h>
  14907. -#if HAVE_SYS_TYPES_H
  14908. +#ifdef HAVE_SYS_TYPES_H
  14909. # include <sys/types.h>
  14910. #endif
  14911. -#if HAVE_SYS_STAT_H
  14912. +#ifdef HAVE_SYS_STAT_H
  14913. # include <sys/stat.h>
  14914. #endif
  14915. -#if STDC_HEADERS
  14916. +#ifdef STDC_HEADERS
  14917. # include <stdlib.h>
  14918. # include <stddef.h>
  14919. #else
  14920. -# if HAVE_STDLIB_H
  14921. +# ifdef HAVE_STDLIB_H
  14922. # include <stdlib.h>
  14923. # endif
  14924. #endif
  14925. -#if HAVE_STRING_H
  14926. -# if !STDC_HEADERS && HAVE_MEMORY_H
  14927. +#ifdef HAVE_STRING_H
  14928. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  14929. # include <memory.h>
  14930. # endif
  14931. # include <string.h>
  14932. #endif
  14933. -#if HAVE_STRINGS_H
  14934. +#ifdef HAVE_STRINGS_H
  14935. # include <strings.h>
  14936. #endif
  14937. -#if HAVE_INTTYPES_H
  14938. +#ifdef HAVE_INTTYPES_H
  14939. # include <inttypes.h>
  14940. -#else
  14941. -# if HAVE_STDINT_H
  14942. -# include <stdint.h>
  14943. -# endif
  14944. #endif
  14945. -#if HAVE_UNISTD_H
  14946. +#ifdef HAVE_STDINT_H
  14947. +# include <stdint.h>
  14948. +#endif
  14949. +#ifdef HAVE_UNISTD_H
  14950. # include <unistd.h>
  14951. #endif"
  14952. -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIB_CURRENT LIB_REVISION LIB_AGE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LIBTOOL_DEPS SIZE16 USIZE16 SIZE32 USIZE32 SIZE64 OPT DEBUG PROFILE LTLIBOBJS'
  14953. +ac_subst_vars='am__EXEEXT_FALSE
  14954. +am__EXEEXT_TRUE
  14955. +LTLIBOBJS
  14956. +PROFILE
  14957. +DEBUG
  14958. +OPT
  14959. +SIZE64
  14960. +USIZE32
  14961. +SIZE32
  14962. +USIZE16
  14963. +SIZE16
  14964. +LIBTOOL_DEPS
  14965. +LIBOBJS
  14966. +CPP
  14967. +OTOOL64
  14968. +OTOOL
  14969. +LIPO
  14970. +NMEDIT
  14971. +DSYMUTIL
  14972. +lt_ECHO
  14973. +RANLIB
  14974. +AR
  14975. +OBJDUMP
  14976. +LN_S
  14977. +NM
  14978. +ac_ct_DUMPBIN
  14979. +DUMPBIN
  14980. +LD
  14981. +FGREP
  14982. +EGREP
  14983. +GREP
  14984. +SED
  14985. +host_os
  14986. +host_vendor
  14987. +host_cpu
  14988. +host
  14989. +build_os
  14990. +build_vendor
  14991. +build_cpu
  14992. +build
  14993. +LIBTOOL
  14994. +am__fastdepCC_FALSE
  14995. +am__fastdepCC_TRUE
  14996. +CCDEPMODE
  14997. +AMDEPBACKSLASH
  14998. +AMDEP_FALSE
  14999. +AMDEP_TRUE
  15000. +am__quote
  15001. +am__include
  15002. +DEPDIR
  15003. +OBJEXT
  15004. +EXEEXT
  15005. +ac_ct_CC
  15006. +CPPFLAGS
  15007. +LDFLAGS
  15008. +CFLAGS
  15009. +CC
  15010. +LIB_AGE
  15011. +LIB_REVISION
  15012. +LIB_CURRENT
  15013. +MAINT
  15014. +MAINTAINER_MODE_FALSE
  15015. +MAINTAINER_MODE_TRUE
  15016. +am__untar
  15017. +am__tar
  15018. +AMTAR
  15019. +am__leading_dot
  15020. +SET_MAKE
  15021. +AWK
  15022. +mkdir_p
  15023. +MKDIR_P
  15024. +INSTALL_STRIP_PROGRAM
  15025. +STRIP
  15026. +install_sh
  15027. +MAKEINFO
  15028. +AUTOHEADER
  15029. +AUTOMAKE
  15030. +AUTOCONF
  15031. +ACLOCAL
  15032. +VERSION
  15033. +PACKAGE
  15034. +CYGPATH_W
  15035. +am__isrc
  15036. +INSTALL_DATA
  15037. +INSTALL_SCRIPT
  15038. +INSTALL_PROGRAM
  15039. +target_alias
  15040. +host_alias
  15041. +build_alias
  15042. +LIBS
  15043. +ECHO_T
  15044. +ECHO_N
  15045. +ECHO_C
  15046. +DEFS
  15047. +mandir
  15048. +localedir
  15049. +libdir
  15050. +psdir
  15051. +pdfdir
  15052. +dvidir
  15053. +htmldir
  15054. +infodir
  15055. +docdir
  15056. +oldincludedir
  15057. +includedir
  15058. +localstatedir
  15059. +sharedstatedir
  15060. +sysconfdir
  15061. +datadir
  15062. +datarootdir
  15063. +libexecdir
  15064. +sbindir
  15065. +bindir
  15066. +program_transform_name
  15067. +prefix
  15068. +exec_prefix
  15069. +PACKAGE_URL
  15070. +PACKAGE_BUGREPORT
  15071. +PACKAGE_STRING
  15072. +PACKAGE_VERSION
  15073. +PACKAGE_TARNAME
  15074. +PACKAGE_NAME
  15075. +PATH_SEPARATOR
  15076. +SHELL'
  15077. ac_subst_files=''
  15078. +ac_user_opts='
  15079. +enable_option_checking
  15080. +enable_maintainer_mode
  15081. +enable_dependency_tracking
  15082. +enable_shared
  15083. +enable_static
  15084. +with_pic
  15085. +enable_fast_install
  15086. +with_gnu_ld
  15087. +enable_libtool_lock
  15088. +'
  15089. + ac_precious_vars='build_alias
  15090. +host_alias
  15091. +target_alias
  15092. +CC
  15093. +CFLAGS
  15094. +LDFLAGS
  15095. +LIBS
  15096. +CPPFLAGS
  15097. +CPP'
  15098. +
  15099. # Initialize some variables set by options.
  15100. ac_init_help=
  15101. ac_init_version=false
  15102. +ac_unrecognized_opts=
  15103. +ac_unrecognized_sep=
  15104. # The variables have the same names as the options, with
  15105. # dashes changed to underlines.
  15106. cache_file=/dev/null
  15107. @@ -491,34 +914,48 @@
  15108. # and all the variables that are supposed to be based on exec_prefix
  15109. # by default will actually change.
  15110. # Use braces instead of parens because sh, perl, etc. also accept them.
  15111. +# (The list follows the same order as the GNU Coding Standards.)
  15112. bindir='${exec_prefix}/bin'
  15113. sbindir='${exec_prefix}/sbin'
  15114. libexecdir='${exec_prefix}/libexec'
  15115. -datadir='${prefix}/share'
  15116. +datarootdir='${prefix}/share'
  15117. +datadir='${datarootdir}'
  15118. sysconfdir='${prefix}/etc'
  15119. sharedstatedir='${prefix}/com'
  15120. localstatedir='${prefix}/var'
  15121. -libdir='${exec_prefix}/lib'
  15122. includedir='${prefix}/include'
  15123. oldincludedir='/usr/include'
  15124. -infodir='${prefix}/info'
  15125. -mandir='${prefix}/man'
  15126. +docdir='${datarootdir}/doc/${PACKAGE}'
  15127. +infodir='${datarootdir}/info'
  15128. +htmldir='${docdir}'
  15129. +dvidir='${docdir}'
  15130. +pdfdir='${docdir}'
  15131. +psdir='${docdir}'
  15132. +libdir='${exec_prefix}/lib'
  15133. +localedir='${datarootdir}/locale'
  15134. +mandir='${datarootdir}/man'
  15135. ac_prev=
  15136. +ac_dashdash=
  15137. for ac_option
  15138. do
  15139. # If the previous option needs an argument, assign it.
  15140. if test -n "$ac_prev"; then
  15141. - eval "$ac_prev=\$ac_option"
  15142. + eval $ac_prev=\$ac_option
  15143. ac_prev=
  15144. continue
  15145. fi
  15146. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  15147. + case $ac_option in
  15148. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  15149. + *) ac_optarg=yes ;;
  15150. + esac
  15151. # Accept the important Cygnus configure options, so we can diagnose typos.
  15152. - case $ac_option in
  15153. + case $ac_dashdash$ac_option in
  15154. + --)
  15155. + ac_dashdash=yes ;;
  15156. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  15157. ac_prev=bindir ;;
  15158. @@ -540,33 +977,59 @@
  15159. --config-cache | -C)
  15160. cache_file=config.cache ;;
  15161. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  15162. + -datadir | --datadir | --datadi | --datad)
  15163. ac_prev=datadir ;;
  15164. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  15165. - | --da=*)
  15166. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  15167. datadir=$ac_optarg ;;
  15168. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  15169. + | --dataroo | --dataro | --datar)
  15170. + ac_prev=datarootdir ;;
  15171. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  15172. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  15173. + datarootdir=$ac_optarg ;;
  15174. +
  15175. -disable-* | --disable-*)
  15176. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  15177. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  15178. # Reject names that are not valid shell variable names.
  15179. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  15180. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  15181. - { (exit 1); exit 1; }; }
  15182. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  15183. - eval "enable_$ac_feature=no" ;;
  15184. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15185. + as_fn_error "invalid feature name: $ac_useropt"
  15186. + ac_useropt_orig=$ac_useropt
  15187. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15188. + case $ac_user_opts in
  15189. + *"
  15190. +"enable_$ac_useropt"
  15191. +"*) ;;
  15192. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  15193. + ac_unrecognized_sep=', ';;
  15194. + esac
  15195. + eval enable_$ac_useropt=no ;;
  15196. +
  15197. + -docdir | --docdir | --docdi | --doc | --do)
  15198. + ac_prev=docdir ;;
  15199. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  15200. + docdir=$ac_optarg ;;
  15201. +
  15202. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  15203. + ac_prev=dvidir ;;
  15204. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  15205. + dvidir=$ac_optarg ;;
  15206. -enable-* | --enable-*)
  15207. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  15208. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  15209. # Reject names that are not valid shell variable names.
  15210. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  15211. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  15212. - { (exit 1); exit 1; }; }
  15213. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  15214. - case $ac_option in
  15215. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  15216. - *) ac_optarg=yes ;;
  15217. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15218. + as_fn_error "invalid feature name: $ac_useropt"
  15219. + ac_useropt_orig=$ac_useropt
  15220. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15221. + case $ac_user_opts in
  15222. + *"
  15223. +"enable_$ac_useropt"
  15224. +"*) ;;
  15225. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  15226. + ac_unrecognized_sep=', ';;
  15227. esac
  15228. - eval "enable_$ac_feature='$ac_optarg'" ;;
  15229. + eval enable_$ac_useropt=\$ac_optarg ;;
  15230. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  15231. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  15232. @@ -593,6 +1056,12 @@
  15233. -host=* | --host=* | --hos=* | --ho=*)
  15234. host_alias=$ac_optarg ;;
  15235. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  15236. + ac_prev=htmldir ;;
  15237. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  15238. + | --ht=*)
  15239. + htmldir=$ac_optarg ;;
  15240. +
  15241. -includedir | --includedir | --includedi | --included | --include \
  15242. | --includ | --inclu | --incl | --inc)
  15243. ac_prev=includedir ;;
  15244. @@ -617,13 +1086,16 @@
  15245. | --libexe=* | --libex=* | --libe=*)
  15246. libexecdir=$ac_optarg ;;
  15247. + -localedir | --localedir | --localedi | --localed | --locale)
  15248. + ac_prev=localedir ;;
  15249. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  15250. + localedir=$ac_optarg ;;
  15251. +
  15252. -localstatedir | --localstatedir | --localstatedi | --localstated \
  15253. - | --localstate | --localstat | --localsta | --localst \
  15254. - | --locals | --local | --loca | --loc | --lo)
  15255. + | --localstate | --localstat | --localsta | --localst | --locals)
  15256. ac_prev=localstatedir ;;
  15257. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  15258. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  15259. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  15260. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  15261. localstatedir=$ac_optarg ;;
  15262. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  15263. @@ -688,6 +1160,16 @@
  15264. | --progr-tra=* | --program-tr=* | --program-t=*)
  15265. program_transform_name=$ac_optarg ;;
  15266. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  15267. + ac_prev=pdfdir ;;
  15268. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  15269. + pdfdir=$ac_optarg ;;
  15270. +
  15271. + -psdir | --psdir | --psdi | --psd | --ps)
  15272. + ac_prev=psdir ;;
  15273. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  15274. + psdir=$ac_optarg ;;
  15275. +
  15276. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  15277. | -silent | --silent | --silen | --sile | --sil)
  15278. silent=yes ;;
  15279. @@ -738,26 +1220,36 @@
  15280. ac_init_version=: ;;
  15281. -with-* | --with-*)
  15282. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  15283. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  15284. # Reject names that are not valid shell variable names.
  15285. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  15286. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  15287. - { (exit 1); exit 1; }; }
  15288. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  15289. - case $ac_option in
  15290. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  15291. - *) ac_optarg=yes ;;
  15292. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15293. + as_fn_error "invalid package name: $ac_useropt"
  15294. + ac_useropt_orig=$ac_useropt
  15295. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15296. + case $ac_user_opts in
  15297. + *"
  15298. +"with_$ac_useropt"
  15299. +"*) ;;
  15300. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  15301. + ac_unrecognized_sep=', ';;
  15302. esac
  15303. - eval "with_$ac_package='$ac_optarg'" ;;
  15304. + eval with_$ac_useropt=\$ac_optarg ;;
  15305. -without-* | --without-*)
  15306. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  15307. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  15308. # Reject names that are not valid shell variable names.
  15309. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  15310. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  15311. - { (exit 1); exit 1; }; }
  15312. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  15313. - eval "with_$ac_package=no" ;;
  15314. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  15315. + as_fn_error "invalid package name: $ac_useropt"
  15316. + ac_useropt_orig=$ac_useropt
  15317. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  15318. + case $ac_user_opts in
  15319. + *"
  15320. +"with_$ac_useropt"
  15321. +"*) ;;
  15322. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  15323. + ac_unrecognized_sep=', ';;
  15324. + esac
  15325. + eval with_$ac_useropt=no ;;
  15326. --x)
  15327. # Obsolete; use --with-x.
  15328. @@ -777,26 +1269,25 @@
  15329. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  15330. x_libraries=$ac_optarg ;;
  15331. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  15332. -Try \`$0 --help' for more information." >&2
  15333. - { (exit 1); exit 1; }; }
  15334. + -*) as_fn_error "unrecognized option: \`$ac_option'
  15335. +Try \`$0 --help' for more information."
  15336. ;;
  15337. *=*)
  15338. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  15339. # Reject names that are not valid shell variable names.
  15340. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  15341. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  15342. - { (exit 1); exit 1; }; }
  15343. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  15344. - eval "$ac_envvar='$ac_optarg'"
  15345. + case $ac_envvar in #(
  15346. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  15347. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  15348. + esac
  15349. + eval $ac_envvar=\$ac_optarg
  15350. export $ac_envvar ;;
  15351. *)
  15352. # FIXME: should be removed in autoconf 3.0.
  15353. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  15354. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  15355. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  15356. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  15357. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  15358. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  15359. ;;
  15360. @@ -805,31 +1296,36 @@
  15361. if test -n "$ac_prev"; then
  15362. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  15363. - { echo "$as_me: error: missing argument to $ac_option" >&2
  15364. - { (exit 1); exit 1; }; }
  15365. + as_fn_error "missing argument to $ac_option"
  15366. fi
  15367. -# Be sure to have absolute paths.
  15368. -for ac_var in exec_prefix prefix
  15369. -do
  15370. - eval ac_val=$`echo $ac_var`
  15371. - case $ac_val in
  15372. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  15373. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  15374. - { (exit 1); exit 1; }; };;
  15375. +if test -n "$ac_unrecognized_opts"; then
  15376. + case $enable_option_checking in
  15377. + no) ;;
  15378. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  15379. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  15380. esac
  15381. -done
  15382. +fi
  15383. -# Be sure to have absolute paths.
  15384. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  15385. - localstatedir libdir includedir oldincludedir infodir mandir
  15386. +# Check all directory arguments for consistency.
  15387. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  15388. + datadir sysconfdir sharedstatedir localstatedir includedir \
  15389. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  15390. + libdir localedir mandir
  15391. do
  15392. - eval ac_val=$`echo $ac_var`
  15393. + eval ac_val=\$$ac_var
  15394. + # Remove trailing slashes.
  15395. + case $ac_val in
  15396. + */ )
  15397. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  15398. + eval $ac_var=\$ac_val;;
  15399. + esac
  15400. + # Be sure to have absolute directory names.
  15401. case $ac_val in
  15402. - [\\/$]* | ?:[\\/]* ) ;;
  15403. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  15404. - { (exit 1); exit 1; }; };;
  15405. + [\\/$]* | ?:[\\/]* ) continue;;
  15406. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  15407. esac
  15408. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  15409. done
  15410. # There might be people who depend on the old broken behavior: `$host'
  15411. @@ -843,7 +1339,7 @@
  15412. if test "x$host_alias" != x; then
  15413. if test "x$build_alias" = x; then
  15414. cross_compiling=maybe
  15415. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  15416. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  15417. If a cross compiler is detected then cross compile mode will be used." >&2
  15418. elif test "x$build_alias" != "x$host_alias"; then
  15419. cross_compiling=yes
  15420. @@ -856,94 +1352,72 @@
  15421. test "$silent" = yes && exec 6>/dev/null
  15422. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  15423. +ac_ls_di=`ls -di .` &&
  15424. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  15425. + as_fn_error "working directory cannot be determined"
  15426. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  15427. + as_fn_error "pwd does not report name of working directory"
  15428. +
  15429. +
  15430. # Find the source files, if location was not specified.
  15431. if test -z "$srcdir"; then
  15432. ac_srcdir_defaulted=yes
  15433. - # Try the directory containing this script, then its parent.
  15434. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  15435. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15436. - X"$0" : 'X\(//\)[^/]' \| \
  15437. - X"$0" : 'X\(//\)$' \| \
  15438. - X"$0" : 'X\(/\)' \| \
  15439. - . : '\(.\)' 2>/dev/null ||
  15440. -echo X"$0" |
  15441. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  15442. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  15443. - /^X\(\/\/\)$/{ s//\1/; q; }
  15444. - /^X\(\/\).*/{ s//\1/; q; }
  15445. - s/.*/./; q'`
  15446. + # Try the directory containing this script, then the parent directory.
  15447. + ac_confdir=`$as_dirname -- "$as_myself" ||
  15448. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15449. + X"$as_myself" : 'X\(//\)[^/]' \| \
  15450. + X"$as_myself" : 'X\(//\)$' \| \
  15451. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  15452. +$as_echo X"$as_myself" |
  15453. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15454. + s//\1/
  15455. + q
  15456. + }
  15457. + /^X\(\/\/\)[^/].*/{
  15458. + s//\1/
  15459. + q
  15460. + }
  15461. + /^X\(\/\/\)$/{
  15462. + s//\1/
  15463. + q
  15464. + }
  15465. + /^X\(\/\).*/{
  15466. + s//\1/
  15467. + q
  15468. + }
  15469. + s/.*/./; q'`
  15470. srcdir=$ac_confdir
  15471. - if test ! -r $srcdir/$ac_unique_file; then
  15472. + if test ! -r "$srcdir/$ac_unique_file"; then
  15473. srcdir=..
  15474. fi
  15475. else
  15476. ac_srcdir_defaulted=no
  15477. fi
  15478. -if test ! -r $srcdir/$ac_unique_file; then
  15479. - if test "$ac_srcdir_defaulted" = yes; then
  15480. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  15481. - { (exit 1); exit 1; }; }
  15482. - else
  15483. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  15484. - { (exit 1); exit 1; }; }
  15485. - fi
  15486. -fi
  15487. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  15488. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  15489. - { (exit 1); exit 1; }; }
  15490. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  15491. -ac_env_build_alias_set=${build_alias+set}
  15492. -ac_env_build_alias_value=$build_alias
  15493. -ac_cv_env_build_alias_set=${build_alias+set}
  15494. -ac_cv_env_build_alias_value=$build_alias
  15495. -ac_env_host_alias_set=${host_alias+set}
  15496. -ac_env_host_alias_value=$host_alias
  15497. -ac_cv_env_host_alias_set=${host_alias+set}
  15498. -ac_cv_env_host_alias_value=$host_alias
  15499. -ac_env_target_alias_set=${target_alias+set}
  15500. -ac_env_target_alias_value=$target_alias
  15501. -ac_cv_env_target_alias_set=${target_alias+set}
  15502. -ac_cv_env_target_alias_value=$target_alias
  15503. -ac_env_CC_set=${CC+set}
  15504. -ac_env_CC_value=$CC
  15505. -ac_cv_env_CC_set=${CC+set}
  15506. -ac_cv_env_CC_value=$CC
  15507. -ac_env_CFLAGS_set=${CFLAGS+set}
  15508. -ac_env_CFLAGS_value=$CFLAGS
  15509. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  15510. -ac_cv_env_CFLAGS_value=$CFLAGS
  15511. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  15512. -ac_env_LDFLAGS_value=$LDFLAGS
  15513. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  15514. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  15515. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  15516. -ac_env_CPPFLAGS_value=$CPPFLAGS
  15517. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  15518. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  15519. -ac_env_CPP_set=${CPP+set}
  15520. -ac_env_CPP_value=$CPP
  15521. -ac_cv_env_CPP_set=${CPP+set}
  15522. -ac_cv_env_CPP_value=$CPP
  15523. -ac_env_CXX_set=${CXX+set}
  15524. -ac_env_CXX_value=$CXX
  15525. -ac_cv_env_CXX_set=${CXX+set}
  15526. -ac_cv_env_CXX_value=$CXX
  15527. -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  15528. -ac_env_CXXFLAGS_value=$CXXFLAGS
  15529. -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  15530. -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  15531. -ac_env_CXXCPP_set=${CXXCPP+set}
  15532. -ac_env_CXXCPP_value=$CXXCPP
  15533. -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  15534. -ac_cv_env_CXXCPP_value=$CXXCPP
  15535. -ac_env_F77_set=${F77+set}
  15536. -ac_env_F77_value=$F77
  15537. -ac_cv_env_F77_set=${F77+set}
  15538. -ac_cv_env_F77_value=$F77
  15539. -ac_env_FFLAGS_set=${FFLAGS+set}
  15540. -ac_env_FFLAGS_value=$FFLAGS
  15541. -ac_cv_env_FFLAGS_set=${FFLAGS+set}
  15542. -ac_cv_env_FFLAGS_value=$FFLAGS
  15543. +if test ! -r "$srcdir/$ac_unique_file"; then
  15544. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  15545. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  15546. +fi
  15547. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  15548. +ac_abs_confdir=`(
  15549. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  15550. + pwd)`
  15551. +# When building in place, set srcdir=.
  15552. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  15553. + srcdir=.
  15554. +fi
  15555. +# Remove unnecessary trailing slashes from srcdir.
  15556. +# Double slashes in file names in object file debugging info
  15557. +# mess up M-x gdb in Emacs.
  15558. +case $srcdir in
  15559. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  15560. +esac
  15561. +for ac_var in $ac_precious_vars; do
  15562. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  15563. + eval ac_env_${ac_var}_value=\$${ac_var}
  15564. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  15565. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  15566. +done
  15567. #
  15568. # Report the --help message.
  15569. @@ -972,14 +1446,11 @@
  15570. -n, --no-create do not create output files
  15571. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  15572. -_ACEOF
  15573. -
  15574. - cat <<_ACEOF
  15575. Installation directories:
  15576. --prefix=PREFIX install architecture-independent files in PREFIX
  15577. - [$ac_default_prefix]
  15578. + [$ac_default_prefix]
  15579. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  15580. - [PREFIX]
  15581. + [PREFIX]
  15582. By default, \`make install' will install all the files in
  15583. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  15584. @@ -989,18 +1460,25 @@
  15585. For better control, use the options below.
  15586. Fine tuning of the installation directories:
  15587. - --bindir=DIR user executables [EPREFIX/bin]
  15588. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  15589. - --libexecdir=DIR program executables [EPREFIX/libexec]
  15590. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  15591. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  15592. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  15593. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  15594. - --libdir=DIR object code libraries [EPREFIX/lib]
  15595. - --includedir=DIR C header files [PREFIX/include]
  15596. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  15597. - --infodir=DIR info documentation [PREFIX/info]
  15598. - --mandir=DIR man documentation [PREFIX/man]
  15599. + --bindir=DIR user executables [EPREFIX/bin]
  15600. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  15601. + --libexecdir=DIR program executables [EPREFIX/libexec]
  15602. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  15603. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  15604. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  15605. + --libdir=DIR object code libraries [EPREFIX/lib]
  15606. + --includedir=DIR C header files [PREFIX/include]
  15607. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  15608. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  15609. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  15610. + --infodir=DIR info documentation [DATAROOTDIR/info]
  15611. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  15612. + --mandir=DIR man documentation [DATAROOTDIR/man]
  15613. + --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  15614. + --htmldir=DIR html documentation [DOCDIR]
  15615. + --dvidir=DIR dvi documentation [DOCDIR]
  15616. + --pdfdir=DIR pdf documentation [DOCDIR]
  15617. + --psdir=DIR ps documentation [DOCDIR]
  15618. _ACEOF
  15619. cat <<\_ACEOF
  15620. @@ -1021,16 +1499,15 @@
  15621. cat <<\_ACEOF
  15622. Optional Features:
  15623. + --disable-option-checking ignore unrecognized --enable/--with options
  15624. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  15625. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  15626. --enable-maintainer-mode enable make rules and dependencies not useful
  15627. (and sometimes confusing) to the casual installer
  15628. --disable-dependency-tracking speeds up one-time build
  15629. --enable-dependency-tracking do not reject slow dependency extractors
  15630. - --enable-shared[=PKGS]
  15631. - build shared libraries [default=yes]
  15632. - --enable-static[=PKGS]
  15633. - build static libraries [default=yes]
  15634. + --enable-shared[=PKGS] build shared libraries [default=yes]
  15635. + --enable-static[=PKGS] build static libraries [default=yes]
  15636. --enable-fast-install[=PKGS]
  15637. optimize for fast installation [default=yes]
  15638. --disable-libtool-lock avoid locking (might break parallel builds)
  15639. @@ -1038,142 +1515,549 @@
  15640. Optional Packages:
  15641. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  15642. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  15643. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  15644. --with-pic try to use only PIC/non-PIC objects [default=use
  15645. both]
  15646. - --with-tags[=TAGS]
  15647. - include additional configurations [automatic]
  15648. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  15649. Some influential environment variables:
  15650. CC C compiler command
  15651. CFLAGS C compiler flags
  15652. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  15653. nonstandard directory <lib dir>
  15654. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  15655. - headers in a nonstandard directory <include dir>
  15656. + LIBS libraries to pass to the linker, e.g. -l<library>
  15657. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  15658. + you have headers in a nonstandard directory <include dir>
  15659. CPP C preprocessor
  15660. - CXX C++ compiler command
  15661. - CXXFLAGS C++ compiler flags
  15662. - CXXCPP C++ preprocessor
  15663. - F77 Fortran 77 compiler command
  15664. - FFLAGS Fortran 77 compiler flags
  15665. Use these variables to override the choices made by `configure' or to help
  15666. it to find libraries and programs with nonstandard names/locations.
  15667. +Report bugs to the package provider.
  15668. _ACEOF
  15669. +ac_status=$?
  15670. fi
  15671. if test "$ac_init_help" = "recursive"; then
  15672. # If there are subdirs, report their specific --help.
  15673. - ac_popdir=`pwd`
  15674. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  15675. - test -d $ac_dir || continue
  15676. + test -d "$ac_dir" ||
  15677. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  15678. + continue
  15679. ac_builddir=.
  15680. -if test "$ac_dir" != .; then
  15681. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  15682. - # A "../" for each directory in $ac_dir_suffix.
  15683. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  15684. -else
  15685. - ac_dir_suffix= ac_top_builddir=
  15686. -fi
  15687. +case "$ac_dir" in
  15688. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15689. +*)
  15690. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15691. + # A ".." for each directory in $ac_dir_suffix.
  15692. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15693. + case $ac_top_builddir_sub in
  15694. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15695. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15696. + esac ;;
  15697. +esac
  15698. +ac_abs_top_builddir=$ac_pwd
  15699. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15700. +# for backward compatibility:
  15701. +ac_top_builddir=$ac_top_build_prefix
  15702. case $srcdir in
  15703. - .) # No --srcdir option. We are building in place.
  15704. + .) # We are building in place.
  15705. ac_srcdir=.
  15706. - if test -z "$ac_top_builddir"; then
  15707. - ac_top_srcdir=.
  15708. - else
  15709. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  15710. - fi ;;
  15711. - [\\/]* | ?:[\\/]* ) # Absolute path.
  15712. + ac_top_srcdir=$ac_top_builddir_sub
  15713. + ac_abs_top_srcdir=$ac_pwd ;;
  15714. + [\\/]* | ?:[\\/]* ) # Absolute name.
  15715. ac_srcdir=$srcdir$ac_dir_suffix;
  15716. - ac_top_srcdir=$srcdir ;;
  15717. - *) # Relative path.
  15718. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  15719. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  15720. -esac
  15721. -
  15722. -# Do not use `cd foo && pwd` to compute absolute paths, because
  15723. -# the directories may not exist.
  15724. -case `pwd` in
  15725. -.) ac_abs_builddir="$ac_dir";;
  15726. -*)
  15727. - case "$ac_dir" in
  15728. - .) ac_abs_builddir=`pwd`;;
  15729. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  15730. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  15731. - esac;;
  15732. -esac
  15733. -case $ac_abs_builddir in
  15734. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  15735. -*)
  15736. - case ${ac_top_builddir}. in
  15737. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  15738. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  15739. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  15740. - esac;;
  15741. -esac
  15742. -case $ac_abs_builddir in
  15743. -.) ac_abs_srcdir=$ac_srcdir;;
  15744. -*)
  15745. - case $ac_srcdir in
  15746. - .) ac_abs_srcdir=$ac_abs_builddir;;
  15747. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  15748. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  15749. - esac;;
  15750. -esac
  15751. -case $ac_abs_builddir in
  15752. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  15753. -*)
  15754. - case $ac_top_srcdir in
  15755. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  15756. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  15757. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  15758. - esac;;
  15759. -esac
  15760. -
  15761. - cd $ac_dir
  15762. - # Check for guested configure; otherwise get Cygnus style configure.
  15763. - if test -f $ac_srcdir/configure.gnu; then
  15764. - echo
  15765. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  15766. - elif test -f $ac_srcdir/configure; then
  15767. - echo
  15768. - $SHELL $ac_srcdir/configure --help=recursive
  15769. - elif test -f $ac_srcdir/configure.ac ||
  15770. - test -f $ac_srcdir/configure.in; then
  15771. - echo
  15772. - $ac_configure --help
  15773. + ac_top_srcdir=$srcdir
  15774. + ac_abs_top_srcdir=$srcdir ;;
  15775. + *) # Relative name.
  15776. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15777. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  15778. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15779. +esac
  15780. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15781. +
  15782. + cd "$ac_dir" || { ac_status=$?; continue; }
  15783. + # Check for guested configure.
  15784. + if test -f "$ac_srcdir/configure.gnu"; then
  15785. + echo &&
  15786. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  15787. + elif test -f "$ac_srcdir/configure"; then
  15788. + echo &&
  15789. + $SHELL "$ac_srcdir/configure" --help=recursive
  15790. else
  15791. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  15792. - fi
  15793. - cd "$ac_popdir"
  15794. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  15795. + fi || ac_status=$?
  15796. + cd "$ac_pwd" || { ac_status=$?; break; }
  15797. done
  15798. fi
  15799. -test -n "$ac_init_help" && exit 0
  15800. +test -n "$ac_init_help" && exit $ac_status
  15801. if $ac_init_version; then
  15802. cat <<\_ACEOF
  15803. +configure
  15804. +generated by GNU Autoconf 2.65
  15805. -Copyright (C) 2003 Free Software Foundation, Inc.
  15806. +Copyright (C) 2009 Free Software Foundation, Inc.
  15807. This configure script is free software; the Free Software Foundation
  15808. gives unlimited permission to copy, distribute and modify it.
  15809. _ACEOF
  15810. - exit 0
  15811. + exit
  15812. fi
  15813. -exec 5>config.log
  15814. -cat >&5 <<_ACEOF
  15815. -This file contains any messages produced by compilers while
  15816. -running configure, to aid debugging if configure makes a mistake.
  15817. -It was created by $as_me, which was
  15818. -generated by GNU Autoconf 2.59. Invocation command line was
  15819. +## ------------------------ ##
  15820. +## Autoconf initialization. ##
  15821. +## ------------------------ ##
  15822. +
  15823. +# ac_fn_c_try_compile LINENO
  15824. +# --------------------------
  15825. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  15826. +ac_fn_c_try_compile ()
  15827. +{
  15828. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15829. + rm -f conftest.$ac_objext
  15830. + if { { ac_try="$ac_compile"
  15831. +case "(($ac_try" in
  15832. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15833. + *) ac_try_echo=$ac_try;;
  15834. +esac
  15835. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15836. +$as_echo "$ac_try_echo"; } >&5
  15837. + (eval "$ac_compile") 2>conftest.err
  15838. + ac_status=$?
  15839. + if test -s conftest.err; then
  15840. + grep -v '^ *+' conftest.err >conftest.er1
  15841. + cat conftest.er1 >&5
  15842. + mv -f conftest.er1 conftest.err
  15843. + fi
  15844. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15845. + test $ac_status = 0; } && {
  15846. + test -z "$ac_c_werror_flag" ||
  15847. + test ! -s conftest.err
  15848. + } && test -s conftest.$ac_objext; then :
  15849. + ac_retval=0
  15850. +else
  15851. + $as_echo "$as_me: failed program was:" >&5
  15852. +sed 's/^/| /' conftest.$ac_ext >&5
  15853. +
  15854. + ac_retval=1
  15855. +fi
  15856. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15857. + as_fn_set_status $ac_retval
  15858. +
  15859. +} # ac_fn_c_try_compile
  15860. +
  15861. +# ac_fn_c_try_link LINENO
  15862. +# -----------------------
  15863. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  15864. +ac_fn_c_try_link ()
  15865. +{
  15866. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15867. + rm -f conftest.$ac_objext conftest$ac_exeext
  15868. + if { { ac_try="$ac_link"
  15869. +case "(($ac_try" in
  15870. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15871. + *) ac_try_echo=$ac_try;;
  15872. +esac
  15873. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15874. +$as_echo "$ac_try_echo"; } >&5
  15875. + (eval "$ac_link") 2>conftest.err
  15876. + ac_status=$?
  15877. + if test -s conftest.err; then
  15878. + grep -v '^ *+' conftest.err >conftest.er1
  15879. + cat conftest.er1 >&5
  15880. + mv -f conftest.er1 conftest.err
  15881. + fi
  15882. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15883. + test $ac_status = 0; } && {
  15884. + test -z "$ac_c_werror_flag" ||
  15885. + test ! -s conftest.err
  15886. + } && test -s conftest$ac_exeext && {
  15887. + test "$cross_compiling" = yes ||
  15888. + $as_test_x conftest$ac_exeext
  15889. + }; then :
  15890. + ac_retval=0
  15891. +else
  15892. + $as_echo "$as_me: failed program was:" >&5
  15893. +sed 's/^/| /' conftest.$ac_ext >&5
  15894. +
  15895. + ac_retval=1
  15896. +fi
  15897. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  15898. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  15899. + # interfere with the next link command; also delete a directory that is
  15900. + # left behind by Apple's compiler. We do this before executing the actions.
  15901. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  15902. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15903. + as_fn_set_status $ac_retval
  15904. +
  15905. +} # ac_fn_c_try_link
  15906. +
  15907. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  15908. +# -------------------------------------------------------
  15909. +# Tests whether HEADER exists and can be compiled using the include files in
  15910. +# INCLUDES, setting the cache variable VAR accordingly.
  15911. +ac_fn_c_check_header_compile ()
  15912. +{
  15913. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15914. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  15915. +$as_echo_n "checking for $2... " >&6; }
  15916. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  15917. + $as_echo_n "(cached) " >&6
  15918. +else
  15919. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  15920. +/* end confdefs.h. */
  15921. +$4
  15922. +#include <$2>
  15923. +_ACEOF
  15924. +if ac_fn_c_try_compile "$LINENO"; then :
  15925. + eval "$3=yes"
  15926. +else
  15927. + eval "$3=no"
  15928. +fi
  15929. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  15930. +fi
  15931. +eval ac_res=\$$3
  15932. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  15933. +$as_echo "$ac_res" >&6; }
  15934. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15935. +
  15936. +} # ac_fn_c_check_header_compile
  15937. +
  15938. +# ac_fn_c_try_cpp LINENO
  15939. +# ----------------------
  15940. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  15941. +ac_fn_c_try_cpp ()
  15942. +{
  15943. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15944. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  15945. +case "(($ac_try" in
  15946. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15947. + *) ac_try_echo=$ac_try;;
  15948. +esac
  15949. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15950. +$as_echo "$ac_try_echo"; } >&5
  15951. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  15952. + ac_status=$?
  15953. + if test -s conftest.err; then
  15954. + grep -v '^ *+' conftest.err >conftest.er1
  15955. + cat conftest.er1 >&5
  15956. + mv -f conftest.er1 conftest.err
  15957. + fi
  15958. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15959. + test $ac_status = 0; } >/dev/null && {
  15960. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  15961. + test ! -s conftest.err
  15962. + }; then :
  15963. + ac_retval=0
  15964. +else
  15965. + $as_echo "$as_me: failed program was:" >&5
  15966. +sed 's/^/| /' conftest.$ac_ext >&5
  15967. +
  15968. + ac_retval=1
  15969. +fi
  15970. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  15971. + as_fn_set_status $ac_retval
  15972. +
  15973. +} # ac_fn_c_try_cpp
  15974. +
  15975. +# ac_fn_c_try_run LINENO
  15976. +# ----------------------
  15977. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  15978. +# that executables *can* be run.
  15979. +ac_fn_c_try_run ()
  15980. +{
  15981. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  15982. + if { { ac_try="$ac_link"
  15983. +case "(($ac_try" in
  15984. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15985. + *) ac_try_echo=$ac_try;;
  15986. +esac
  15987. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15988. +$as_echo "$ac_try_echo"; } >&5
  15989. + (eval "$ac_link") 2>&5
  15990. + ac_status=$?
  15991. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  15992. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  15993. + { { case "(($ac_try" in
  15994. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  15995. + *) ac_try_echo=$ac_try;;
  15996. +esac
  15997. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  15998. +$as_echo "$ac_try_echo"; } >&5
  15999. + (eval "$ac_try") 2>&5
  16000. + ac_status=$?
  16001. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  16002. + test $ac_status = 0; }; }; then :
  16003. + ac_retval=0
  16004. +else
  16005. + $as_echo "$as_me: program exited with status $ac_status" >&5
  16006. + $as_echo "$as_me: failed program was:" >&5
  16007. +sed 's/^/| /' conftest.$ac_ext >&5
  16008. +
  16009. + ac_retval=$ac_status
  16010. +fi
  16011. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  16012. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16013. + as_fn_set_status $ac_retval
  16014. +
  16015. +} # ac_fn_c_try_run
  16016. +
  16017. +# ac_fn_c_check_func LINENO FUNC VAR
  16018. +# ----------------------------------
  16019. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  16020. +ac_fn_c_check_func ()
  16021. +{
  16022. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16023. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  16024. +$as_echo_n "checking for $2... " >&6; }
  16025. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  16026. + $as_echo_n "(cached) " >&6
  16027. +else
  16028. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16029. +/* end confdefs.h. */
  16030. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  16031. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16032. +#define $2 innocuous_$2
  16033. +
  16034. +/* System header to define __stub macros and hopefully few prototypes,
  16035. + which can conflict with char $2 (); below.
  16036. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16037. + <limits.h> exists even on freestanding compilers. */
  16038. +
  16039. +#ifdef __STDC__
  16040. +# include <limits.h>
  16041. +#else
  16042. +# include <assert.h>
  16043. +#endif
  16044. +
  16045. +#undef $2
  16046. +
  16047. +/* Override any GCC internal prototype to avoid an error.
  16048. + Use char because int might match the return type of a GCC
  16049. + builtin and then its argument prototype would still apply. */
  16050. +#ifdef __cplusplus
  16051. +extern "C"
  16052. +#endif
  16053. +char $2 ();
  16054. +/* The GNU C library defines this for functions which it implements
  16055. + to always fail with ENOSYS. Some functions are actually named
  16056. + something starting with __ and the normal name is an alias. */
  16057. +#if defined __stub_$2 || defined __stub___$2
  16058. +choke me
  16059. +#endif
  16060. +
  16061. +int
  16062. +main ()
  16063. +{
  16064. +return $2 ();
  16065. + ;
  16066. + return 0;
  16067. +}
  16068. +_ACEOF
  16069. +if ac_fn_c_try_link "$LINENO"; then :
  16070. + eval "$3=yes"
  16071. +else
  16072. + eval "$3=no"
  16073. +fi
  16074. +rm -f core conftest.err conftest.$ac_objext \
  16075. + conftest$ac_exeext conftest.$ac_ext
  16076. +fi
  16077. +eval ac_res=\$$3
  16078. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  16079. +$as_echo "$ac_res" >&6; }
  16080. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16081. +
  16082. +} # ac_fn_c_check_func
  16083. +
  16084. +# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  16085. +# --------------------------------------------
  16086. +# Tries to find the compile-time value of EXPR in a program that includes
  16087. +# INCLUDES, setting VAR accordingly. Returns whether the value could be
  16088. +# computed
  16089. +ac_fn_c_compute_int ()
  16090. +{
  16091. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16092. + if test "$cross_compiling" = yes; then
  16093. + # Depending upon the size, compute the lo and hi bounds.
  16094. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16095. +/* end confdefs.h. */
  16096. +$4
  16097. +int
  16098. +main ()
  16099. +{
  16100. +static int test_array [1 - 2 * !(($2) >= 0)];
  16101. +test_array [0] = 0
  16102. +
  16103. + ;
  16104. + return 0;
  16105. +}
  16106. +_ACEOF
  16107. +if ac_fn_c_try_compile "$LINENO"; then :
  16108. + ac_lo=0 ac_mid=0
  16109. + while :; do
  16110. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16111. +/* end confdefs.h. */
  16112. +$4
  16113. +int
  16114. +main ()
  16115. +{
  16116. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  16117. +test_array [0] = 0
  16118. +
  16119. + ;
  16120. + return 0;
  16121. +}
  16122. +_ACEOF
  16123. +if ac_fn_c_try_compile "$LINENO"; then :
  16124. + ac_hi=$ac_mid; break
  16125. +else
  16126. + as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  16127. + if test $ac_lo -le $ac_mid; then
  16128. + ac_lo= ac_hi=
  16129. + break
  16130. + fi
  16131. + as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  16132. +fi
  16133. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16134. + done
  16135. +else
  16136. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16137. +/* end confdefs.h. */
  16138. +$4
  16139. +int
  16140. +main ()
  16141. +{
  16142. +static int test_array [1 - 2 * !(($2) < 0)];
  16143. +test_array [0] = 0
  16144. +
  16145. + ;
  16146. + return 0;
  16147. +}
  16148. +_ACEOF
  16149. +if ac_fn_c_try_compile "$LINENO"; then :
  16150. + ac_hi=-1 ac_mid=-1
  16151. + while :; do
  16152. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16153. +/* end confdefs.h. */
  16154. +$4
  16155. +int
  16156. +main ()
  16157. +{
  16158. +static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  16159. +test_array [0] = 0
  16160. +
  16161. + ;
  16162. + return 0;
  16163. +}
  16164. +_ACEOF
  16165. +if ac_fn_c_try_compile "$LINENO"; then :
  16166. + ac_lo=$ac_mid; break
  16167. +else
  16168. + as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  16169. + if test $ac_mid -le $ac_hi; then
  16170. + ac_lo= ac_hi=
  16171. + break
  16172. + fi
  16173. + as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  16174. +fi
  16175. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16176. + done
  16177. +else
  16178. + ac_lo= ac_hi=
  16179. +fi
  16180. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16181. +fi
  16182. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16183. +# Binary search between lo and hi bounds.
  16184. +while test "x$ac_lo" != "x$ac_hi"; do
  16185. + as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  16186. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16187. +/* end confdefs.h. */
  16188. +$4
  16189. +int
  16190. +main ()
  16191. +{
  16192. +static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  16193. +test_array [0] = 0
  16194. +
  16195. + ;
  16196. + return 0;
  16197. +}
  16198. +_ACEOF
  16199. +if ac_fn_c_try_compile "$LINENO"; then :
  16200. + ac_hi=$ac_mid
  16201. +else
  16202. + as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  16203. +fi
  16204. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  16205. +done
  16206. +case $ac_lo in #((
  16207. +?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  16208. +'') ac_retval=1 ;;
  16209. +esac
  16210. + else
  16211. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  16212. +/* end confdefs.h. */
  16213. +$4
  16214. +static long int longval () { return $2; }
  16215. +static unsigned long int ulongval () { return $2; }
  16216. +#include <stdio.h>
  16217. +#include <stdlib.h>
  16218. +int
  16219. +main ()
  16220. +{
  16221. +
  16222. + FILE *f = fopen ("conftest.val", "w");
  16223. + if (! f)
  16224. + return 1;
  16225. + if (($2) < 0)
  16226. + {
  16227. + long int i = longval ();
  16228. + if (i != ($2))
  16229. + return 1;
  16230. + fprintf (f, "%ld", i);
  16231. + }
  16232. + else
  16233. + {
  16234. + unsigned long int i = ulongval ();
  16235. + if (i != ($2))
  16236. + return 1;
  16237. + fprintf (f, "%lu", i);
  16238. + }
  16239. + /* Do not output a trailing newline, as this causes \r\n confusion
  16240. + on some platforms. */
  16241. + return ferror (f) || fclose (f) != 0;
  16242. +
  16243. + ;
  16244. + return 0;
  16245. +}
  16246. +_ACEOF
  16247. +if ac_fn_c_try_run "$LINENO"; then :
  16248. + echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  16249. +else
  16250. + ac_retval=1
  16251. +fi
  16252. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  16253. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  16254. +rm -f conftest.val
  16255. +
  16256. + fi
  16257. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  16258. + as_fn_set_status $ac_retval
  16259. +
  16260. +} # ac_fn_c_compute_int
  16261. +cat >config.log <<_ACEOF
  16262. +This file contains any messages produced by compilers while
  16263. +running configure, to aid debugging if configure makes a mistake.
  16264. +
  16265. +It was created by $as_me, which was
  16266. +generated by GNU Autoconf 2.65. Invocation command line was
  16267. $ $0 $@
  16268. _ACEOF
  16269. +exec 5>>config.log
  16270. {
  16271. cat <<_ASUNAME
  16272. ## --------- ##
  16273. @@ -1192,7 +2076,7 @@
  16274. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  16275. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  16276. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  16277. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  16278. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  16279. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  16280. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  16281. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  16282. @@ -1204,8 +2088,9 @@
  16283. do
  16284. IFS=$as_save_IFS
  16285. test -z "$as_dir" && as_dir=.
  16286. - echo "PATH: $as_dir"
  16287. -done
  16288. + $as_echo "PATH: $as_dir"
  16289. + done
  16290. +IFS=$as_save_IFS
  16291. } >&5
  16292. @@ -1227,7 +2112,6 @@
  16293. ac_configure_args=
  16294. ac_configure_args0=
  16295. ac_configure_args1=
  16296. -ac_sep=
  16297. ac_must_keep_next=false
  16298. for ac_pass in 1 2
  16299. do
  16300. @@ -1238,13 +2122,13 @@
  16301. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  16302. | -silent | --silent | --silen | --sile | --sil)
  16303. continue ;;
  16304. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  16305. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16306. + *\'*)
  16307. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  16308. esac
  16309. case $ac_pass in
  16310. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  16311. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  16312. 2)
  16313. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  16314. + as_fn_append ac_configure_args1 " '$ac_arg'"
  16315. if test $ac_must_keep_next = true; then
  16316. ac_must_keep_next=false # Got value, back to normal.
  16317. else
  16318. @@ -1260,21 +2144,19 @@
  16319. -* ) ac_must_keep_next=true ;;
  16320. esac
  16321. fi
  16322. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  16323. - # Get rid of the leading space.
  16324. - ac_sep=" "
  16325. + as_fn_append ac_configure_args " '$ac_arg'"
  16326. ;;
  16327. esac
  16328. done
  16329. done
  16330. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  16331. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  16332. +{ ac_configure_args0=; unset ac_configure_args0;}
  16333. +{ ac_configure_args1=; unset ac_configure_args1;}
  16334. # When interrupted or exit'd, cleanup temporary files, and complete
  16335. # config.log. We remove comments because anyway the quotes in there
  16336. # would cause problems or look ugly.
  16337. -# WARNING: Be sure not to use single quotes in there, as some shells,
  16338. -# such as our DU 5.0 friend, will then `close' the trap.
  16339. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  16340. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  16341. trap 'exit_status=$?
  16342. # Save into config.log some information that might help in debugging.
  16343. {
  16344. @@ -1287,20 +2169,35 @@
  16345. _ASBOX
  16346. echo
  16347. # The following way of writing the cache mishandles newlines in values,
  16348. -{
  16349. +(
  16350. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  16351. + eval ac_val=\$$ac_var
  16352. + case $ac_val in #(
  16353. + *${as_nl}*)
  16354. + case $ac_var in #(
  16355. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  16356. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  16357. + esac
  16358. + case $ac_var in #(
  16359. + _ | IFS | as_nl) ;; #(
  16360. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  16361. + *) { eval $ac_var=; unset $ac_var;} ;;
  16362. + esac ;;
  16363. + esac
  16364. + done
  16365. (set) 2>&1 |
  16366. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  16367. - *ac_space=\ *)
  16368. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  16369. + *${as_nl}ac_space=\ *)
  16370. sed -n \
  16371. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  16372. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  16373. - ;;
  16374. + "s/'\''/'\''\\\\'\'''\''/g;
  16375. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  16376. + ;; #(
  16377. *)
  16378. - sed -n \
  16379. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  16380. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  16381. ;;
  16382. - esac;
  16383. -}
  16384. + esac |
  16385. + sort
  16386. +)
  16387. echo
  16388. cat <<\_ASBOX
  16389. @@ -1311,22 +2208,28 @@
  16390. echo
  16391. for ac_var in $ac_subst_vars
  16392. do
  16393. - eval ac_val=$`echo $ac_var`
  16394. - echo "$ac_var='"'"'$ac_val'"'"'"
  16395. + eval ac_val=\$$ac_var
  16396. + case $ac_val in
  16397. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16398. + esac
  16399. + $as_echo "$ac_var='\''$ac_val'\''"
  16400. done | sort
  16401. echo
  16402. if test -n "$ac_subst_files"; then
  16403. cat <<\_ASBOX
  16404. -## ------------- ##
  16405. -## Output files. ##
  16406. -## ------------- ##
  16407. +## ------------------- ##
  16408. +## File substitutions. ##
  16409. +## ------------------- ##
  16410. _ASBOX
  16411. echo
  16412. for ac_var in $ac_subst_files
  16413. do
  16414. - eval ac_val=$`echo $ac_var`
  16415. - echo "$ac_var='"'"'$ac_val'"'"'"
  16416. + eval ac_val=\$$ac_var
  16417. + case $ac_val in
  16418. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  16419. + esac
  16420. + $as_echo "$ac_var='\''$ac_val'\''"
  16421. done | sort
  16422. echo
  16423. fi
  16424. @@ -1338,26 +2241,26 @@
  16425. ## ----------- ##
  16426. _ASBOX
  16427. echo
  16428. - sed "/^$/d" confdefs.h | sort
  16429. + cat confdefs.h
  16430. echo
  16431. fi
  16432. test "$ac_signal" != 0 &&
  16433. - echo "$as_me: caught signal $ac_signal"
  16434. - echo "$as_me: exit $exit_status"
  16435. + $as_echo "$as_me: caught signal $ac_signal"
  16436. + $as_echo "$as_me: exit $exit_status"
  16437. } >&5
  16438. - rm -f core *.core &&
  16439. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  16440. + rm -f core *.core core.conftest.* &&
  16441. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  16442. exit $exit_status
  16443. - ' 0
  16444. +' 0
  16445. for ac_signal in 1 2 13 15; do
  16446. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  16447. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  16448. done
  16449. ac_signal=0
  16450. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  16451. -rm -rf conftest* confdefs.h
  16452. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  16453. -echo >confdefs.h
  16454. +rm -f -r conftest* confdefs.h
  16455. +
  16456. +$as_echo "/* confdefs.h */" > confdefs.h
  16457. # Predefined preprocessor variables.
  16458. @@ -1365,112 +2268,128 @@
  16459. #define PACKAGE_NAME "$PACKAGE_NAME"
  16460. _ACEOF
  16461. -
  16462. cat >>confdefs.h <<_ACEOF
  16463. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  16464. _ACEOF
  16465. -
  16466. cat >>confdefs.h <<_ACEOF
  16467. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  16468. _ACEOF
  16469. -
  16470. cat >>confdefs.h <<_ACEOF
  16471. #define PACKAGE_STRING "$PACKAGE_STRING"
  16472. _ACEOF
  16473. -
  16474. cat >>confdefs.h <<_ACEOF
  16475. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  16476. _ACEOF
  16477. +cat >>confdefs.h <<_ACEOF
  16478. +#define PACKAGE_URL "$PACKAGE_URL"
  16479. +_ACEOF
  16480. +
  16481. # Let the site file select an alternate cache file if it wants to.
  16482. -# Prefer explicitly selected file to automatically selected ones.
  16483. -if test -z "$CONFIG_SITE"; then
  16484. - if test "x$prefix" != xNONE; then
  16485. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  16486. - else
  16487. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  16488. - fi
  16489. -fi
  16490. -for ac_site_file in $CONFIG_SITE; do
  16491. - if test -r "$ac_site_file"; then
  16492. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  16493. -echo "$as_me: loading site script $ac_site_file" >&6;}
  16494. +# Prefer an explicitly selected file to automatically selected ones.
  16495. +ac_site_file1=NONE
  16496. +ac_site_file2=NONE
  16497. +if test -n "$CONFIG_SITE"; then
  16498. + ac_site_file1=$CONFIG_SITE
  16499. +elif test "x$prefix" != xNONE; then
  16500. + ac_site_file1=$prefix/share/config.site
  16501. + ac_site_file2=$prefix/etc/config.site
  16502. +else
  16503. + ac_site_file1=$ac_default_prefix/share/config.site
  16504. + ac_site_file2=$ac_default_prefix/etc/config.site
  16505. +fi
  16506. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  16507. +do
  16508. + test "x$ac_site_file" = xNONE && continue
  16509. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  16510. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  16511. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  16512. sed 's/^/| /' "$ac_site_file" >&5
  16513. . "$ac_site_file"
  16514. fi
  16515. done
  16516. if test -r "$cache_file"; then
  16517. - # Some versions of bash will fail to source /dev/null (special
  16518. - # files actually), so we avoid doing that.
  16519. - if test -f "$cache_file"; then
  16520. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  16521. -echo "$as_me: loading cache $cache_file" >&6;}
  16522. + # Some versions of bash will fail to source /dev/null (special files
  16523. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  16524. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  16525. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  16526. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  16527. case $cache_file in
  16528. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  16529. - *) . ./$cache_file;;
  16530. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  16531. + *) . "./$cache_file";;
  16532. esac
  16533. fi
  16534. else
  16535. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  16536. -echo "$as_me: creating cache $cache_file" >&6;}
  16537. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  16538. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  16539. >$cache_file
  16540. fi
  16541. # Check that the precious variables saved in the cache have kept the same
  16542. # value.
  16543. ac_cache_corrupted=false
  16544. -for ac_var in `(set) 2>&1 |
  16545. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  16546. +for ac_var in $ac_precious_vars; do
  16547. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  16548. eval ac_new_set=\$ac_env_${ac_var}_set
  16549. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  16550. - eval ac_new_val="\$ac_env_${ac_var}_value"
  16551. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  16552. + eval ac_new_val=\$ac_env_${ac_var}_value
  16553. case $ac_old_set,$ac_new_set in
  16554. set,)
  16555. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16556. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16557. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  16558. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  16559. ac_cache_corrupted=: ;;
  16560. ,set)
  16561. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  16562. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16563. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  16564. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  16565. ac_cache_corrupted=: ;;
  16566. ,);;
  16567. *)
  16568. if test "x$ac_old_val" != "x$ac_new_val"; then
  16569. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  16570. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16571. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  16572. -echo "$as_me: former value: $ac_old_val" >&2;}
  16573. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  16574. -echo "$as_me: current value: $ac_new_val" >&2;}
  16575. - ac_cache_corrupted=:
  16576. + # differences in whitespace do not lead to failure.
  16577. + ac_old_val_w=`echo x $ac_old_val`
  16578. + ac_new_val_w=`echo x $ac_new_val`
  16579. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  16580. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  16581. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  16582. + ac_cache_corrupted=:
  16583. + else
  16584. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  16585. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  16586. + eval $ac_var=\$ac_old_val
  16587. + fi
  16588. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  16589. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  16590. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  16591. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  16592. fi;;
  16593. esac
  16594. # Pass precious variables to config.status.
  16595. if test "$ac_new_set" = set; then
  16596. case $ac_new_val in
  16597. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  16598. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16599. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  16600. *) ac_arg=$ac_var=$ac_new_val ;;
  16601. esac
  16602. case " $ac_configure_args " in
  16603. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  16604. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  16605. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  16606. esac
  16607. fi
  16608. done
  16609. if $ac_cache_corrupted; then
  16610. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  16611. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16612. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  16613. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  16614. - { (exit 1); exit 1; }; }
  16615. -fi
  16616. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  16617. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  16618. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  16619. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  16620. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  16621. +fi
  16622. +## -------------------- ##
  16623. +## Main body of script. ##
  16624. +## -------------------- ##
  16625. ac_ext=c
  16626. ac_cpp='$CPP $CPPFLAGS'
  16627. @@ -1480,48 +2399,30 @@
  16628. +am__api_version='1.11'
  16629. -
  16630. -
  16631. -
  16632. -
  16633. -
  16634. -
  16635. -
  16636. -
  16637. -
  16638. -
  16639. -
  16640. -
  16641. -
  16642. -
  16643. -
  16644. -
  16645. -am__api_version="1.9"
  16646. ac_aux_dir=
  16647. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  16648. - if test -f $ac_dir/install-sh; then
  16649. - ac_aux_dir=$ac_dir
  16650. - ac_install_sh="$ac_aux_dir/install-sh -c"
  16651. - break
  16652. - elif test -f $ac_dir/install.sh; then
  16653. - ac_aux_dir=$ac_dir
  16654. - ac_install_sh="$ac_aux_dir/install.sh -c"
  16655. - break
  16656. - elif test -f $ac_dir/shtool; then
  16657. - ac_aux_dir=$ac_dir
  16658. - ac_install_sh="$ac_aux_dir/shtool install -c"
  16659. - break
  16660. - fi
  16661. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  16662. + for ac_t in install-sh install.sh shtool; do
  16663. + if test -f "$ac_dir/$ac_t"; then
  16664. + ac_aux_dir=$ac_dir
  16665. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  16666. + break 2
  16667. + fi
  16668. + done
  16669. done
  16670. if test -z "$ac_aux_dir"; then
  16671. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  16672. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  16673. - { (exit 1); exit 1; }; }
  16674. -fi
  16675. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  16676. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  16677. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  16678. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  16679. +fi
  16680. +
  16681. +# These three variables are undocumented and unsupported,
  16682. +# and are intended to be withdrawn in a future Autoconf release.
  16683. +# They can cause serious problems if a builder's source tree is in a directory
  16684. +# whose full name contains unusual characters.
  16685. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  16686. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  16687. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  16688. +
  16689. # Find a good install program. We prefer a C program (faster),
  16690. # so one script is as good as another. But avoid the broken or
  16691. @@ -1536,22 +2437,23 @@
  16692. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  16693. # OS/2's system install, which has a completely different semantic
  16694. # ./install, which can be erroneously created by make from ./install.sh.
  16695. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  16696. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  16697. +# Reject install programs that cannot install multiple files.
  16698. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  16699. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  16700. if test -z "$INSTALL"; then
  16701. -if test "${ac_cv_path_install+set}" = set; then
  16702. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16703. +if test "${ac_cv_path_install+set}" = set; then :
  16704. + $as_echo_n "(cached) " >&6
  16705. else
  16706. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16707. for as_dir in $PATH
  16708. do
  16709. IFS=$as_save_IFS
  16710. test -z "$as_dir" && as_dir=.
  16711. - # Account for people who put trailing slashes in PATH elements.
  16712. -case $as_dir/ in
  16713. - ./ | .// | /cC/* | \
  16714. + # Account for people who put trailing slashes in PATH elements.
  16715. +case $as_dir/ in #((
  16716. + ./ | .// | /[cC]/* | \
  16717. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  16718. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  16719. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  16720. /usr/ucb/* ) ;;
  16721. *)
  16722. # OSF1 and SCO ODT 3.0 have their own names for install.
  16723. @@ -1559,7 +2461,7 @@
  16724. # by default.
  16725. for ac_prog in ginstall scoinst install; do
  16726. for ac_exec_ext in '' $ac_executable_extensions; do
  16727. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  16728. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  16729. if test $ac_prog = install &&
  16730. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  16731. # AIX install. It has an incompatible calling convention.
  16732. @@ -1569,30 +2471,43 @@
  16733. # program-specific install script used by HP pwplus--don't use.
  16734. :
  16735. else
  16736. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16737. - break 3
  16738. + rm -rf conftest.one conftest.two conftest.dir
  16739. + echo one > conftest.one
  16740. + echo two > conftest.two
  16741. + mkdir conftest.dir
  16742. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  16743. + test -s conftest.one && test -s conftest.two &&
  16744. + test -s conftest.dir/conftest.one &&
  16745. + test -s conftest.dir/conftest.two
  16746. + then
  16747. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  16748. + break 3
  16749. + fi
  16750. fi
  16751. fi
  16752. done
  16753. done
  16754. ;;
  16755. esac
  16756. -done
  16757. + done
  16758. +IFS=$as_save_IFS
  16759. +
  16760. +rm -rf conftest.one conftest.two conftest.dir
  16761. fi
  16762. if test "${ac_cv_path_install+set}" = set; then
  16763. INSTALL=$ac_cv_path_install
  16764. else
  16765. - # As a last resort, use the slow shell script. We don't cache a
  16766. - # path for INSTALL within a source directory, because that will
  16767. + # As a last resort, use the slow shell script. Don't cache a
  16768. + # value for INSTALL within a source directory, because that will
  16769. # break other packages using the cache if that directory is
  16770. - # removed, or if the path is relative.
  16771. + # removed, or if the value is a relative name.
  16772. INSTALL=$ac_install_sh
  16773. fi
  16774. fi
  16775. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  16776. -echo "${ECHO_T}$INSTALL" >&6
  16777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  16778. +$as_echo "$INSTALL" >&6; }
  16779. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  16780. # It thinks the first close brace ends the variable substitution.
  16781. @@ -1602,21 +2517,34 @@
  16782. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  16783. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  16784. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  16785. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  16786. +$as_echo_n "checking whether build environment is sane... " >&6; }
  16787. # Just in case
  16788. sleep 1
  16789. echo timestamp > conftest.file
  16790. +# Reject unsafe characters in $srcdir or the absolute working directory
  16791. +# name. Accept space and tab only in the latter.
  16792. +am_lf='
  16793. +'
  16794. +case `pwd` in
  16795. + *[\\\"\#\$\&\'\`$am_lf]*)
  16796. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  16797. +esac
  16798. +case $srcdir in
  16799. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  16800. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  16801. +esac
  16802. +
  16803. # Do `set' in a subshell so we don't clobber the current shell's
  16804. # arguments. Must try -L first in case configure is actually a
  16805. # symlink; some systems play weird games with the mod time of symlinks
  16806. # (eg FreeBSD returns the mod time of the symlink's containing
  16807. # directory).
  16808. if (
  16809. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  16810. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  16811. if test "$*" = "X"; then
  16812. # -L didn't work.
  16813. - set X `ls -t $srcdir/configure conftest.file`
  16814. + set X `ls -t "$srcdir/configure" conftest.file`
  16815. fi
  16816. rm -f conftest.file
  16817. if test "$*" != "X $srcdir/configure conftest.file" \
  16818. @@ -1626,11 +2554,8 @@
  16819. # if, for instance, CONFIG_SHELL is bash and it inherits a
  16820. # broken ls alias from the environment. This has actually
  16821. # happened. Such a system could not be considered "sane".
  16822. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  16823. -alias in your environment" >&5
  16824. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  16825. -alias in your environment" >&2;}
  16826. - { (exit 1); exit 1; }; }
  16827. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  16828. +alias in your environment" "$LINENO" 5
  16829. fi
  16830. test "$2" = conftest.file
  16831. @@ -1639,139 +2564,268 @@
  16832. # Ok.
  16833. :
  16834. else
  16835. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  16836. -Check your system clock" >&5
  16837. -echo "$as_me: error: newly created file is older than distributed files!
  16838. -Check your system clock" >&2;}
  16839. - { (exit 1); exit 1; }; }
  16840. + as_fn_error "newly created file is older than distributed files!
  16841. +Check your system clock" "$LINENO" 5
  16842. fi
  16843. -echo "$as_me:$LINENO: result: yes" >&5
  16844. -echo "${ECHO_T}yes" >&6
  16845. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  16846. +$as_echo "yes" >&6; }
  16847. test "$program_prefix" != NONE &&
  16848. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  16849. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  16850. # Use a double $ so make ignores it.
  16851. test "$program_suffix" != NONE &&
  16852. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  16853. -# Double any \ or $. echo might interpret backslashes.
  16854. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  16855. +# Double any \ or $.
  16856. # By default was `s,x,x', remove it if useless.
  16857. -cat <<\_ACEOF >conftest.sed
  16858. -s/[\\$]/&&/g;s/;s,x,x,$//
  16859. -_ACEOF
  16860. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  16861. -rm conftest.sed
  16862. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  16863. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  16864. # expand $ac_aux_dir to an absolute path
  16865. am_aux_dir=`cd $ac_aux_dir && pwd`
  16866. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  16867. +if test x"${MISSING+set}" != xset; then
  16868. + case $am_aux_dir in
  16869. + *\ * | *\ *)
  16870. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  16871. + *)
  16872. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  16873. + esac
  16874. +fi
  16875. # Use eval to expand $SHELL
  16876. if eval "$MISSING --run true"; then
  16877. am_missing_run="$MISSING --run "
  16878. else
  16879. am_missing_run=
  16880. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  16881. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16882. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  16883. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  16884. fi
  16885. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  16886. - # We used to keeping the `.' as first argument, in order to
  16887. - # allow $(mkdir_p) to be used without argument. As in
  16888. - # $(mkdir_p) $(somedir)
  16889. - # where $(somedir) is conditionally defined. However this is wrong
  16890. - # for two reasons:
  16891. - # 1. if the package is installed by a user who cannot write `.'
  16892. - # make install will fail,
  16893. - # 2. the above comment should most certainly read
  16894. - # $(mkdir_p) $(DESTDIR)$(somedir)
  16895. - # so it does not work when $(somedir) is undefined and
  16896. - # $(DESTDIR) is not.
  16897. - # To support the latter case, we have to write
  16898. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  16899. - # so the `.' trick is pointless.
  16900. - mkdir_p='mkdir -p --'
  16901. -else
  16902. - # On NextStep and OpenStep, the `mkdir' command does not
  16903. - # recognize any option. It will interpret all options as
  16904. - # directories to create, and then abort because `.' already
  16905. - # exists.
  16906. - for d in ./-p ./--version;
  16907. - do
  16908. - test -d $d && rmdir $d
  16909. - done
  16910. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  16911. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  16912. - mkdir_p='$(mkinstalldirs)'
  16913. - else
  16914. - mkdir_p='$(install_sh) -d'
  16915. - fi
  16916. +if test x"${install_sh}" != xset; then
  16917. + case $am_aux_dir in
  16918. + *\ * | *\ *)
  16919. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  16920. + *)
  16921. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  16922. + esac
  16923. fi
  16924. -for ac_prog in gawk mawk nawk awk
  16925. -do
  16926. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  16927. -set dummy $ac_prog; ac_word=$2
  16928. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  16929. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  16930. -if test "${ac_cv_prog_AWK+set}" = set; then
  16931. - echo $ECHO_N "(cached) $ECHO_C" >&6
  16932. +# Installed binaries are usually stripped using `strip' when the user
  16933. +# run `make install-strip'. However `strip' might not be the right
  16934. +# tool to use in cross-compilation environments, therefore Automake
  16935. +# will honor the `STRIP' environment variable to overrule this program.
  16936. +if test "$cross_compiling" != no; then
  16937. + if test -n "$ac_tool_prefix"; then
  16938. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  16939. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  16940. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16941. +$as_echo_n "checking for $ac_word... " >&6; }
  16942. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  16943. + $as_echo_n "(cached) " >&6
  16944. else
  16945. - if test -n "$AWK"; then
  16946. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  16947. + if test -n "$STRIP"; then
  16948. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  16949. else
  16950. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16951. for as_dir in $PATH
  16952. do
  16953. IFS=$as_save_IFS
  16954. test -z "$as_dir" && as_dir=.
  16955. - for ac_exec_ext in '' $ac_executable_extensions; do
  16956. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  16957. - ac_cv_prog_AWK="$ac_prog"
  16958. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  16959. + for ac_exec_ext in '' $ac_executable_extensions; do
  16960. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  16961. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  16962. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  16963. + break 2
  16964. + fi
  16965. +done
  16966. + done
  16967. +IFS=$as_save_IFS
  16968. +
  16969. +fi
  16970. +fi
  16971. +STRIP=$ac_cv_prog_STRIP
  16972. +if test -n "$STRIP"; then
  16973. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  16974. +$as_echo "$STRIP" >&6; }
  16975. +else
  16976. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  16977. +$as_echo "no" >&6; }
  16978. +fi
  16979. +
  16980. +
  16981. +fi
  16982. +if test -z "$ac_cv_prog_STRIP"; then
  16983. + ac_ct_STRIP=$STRIP
  16984. + # Extract the first word of "strip", so it can be a program name with args.
  16985. +set dummy strip; ac_word=$2
  16986. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  16987. +$as_echo_n "checking for $ac_word... " >&6; }
  16988. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  16989. + $as_echo_n "(cached) " >&6
  16990. +else
  16991. + if test -n "$ac_ct_STRIP"; then
  16992. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  16993. +else
  16994. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16995. +for as_dir in $PATH
  16996. +do
  16997. + IFS=$as_save_IFS
  16998. + test -z "$as_dir" && as_dir=.
  16999. + for ac_exec_ext in '' $ac_executable_extensions; do
  17000. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17001. + ac_cv_prog_ac_ct_STRIP="strip"
  17002. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17003. break 2
  17004. fi
  17005. done
  17006. + done
  17007. +IFS=$as_save_IFS
  17008. +
  17009. +fi
  17010. +fi
  17011. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17012. +if test -n "$ac_ct_STRIP"; then
  17013. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  17014. +$as_echo "$ac_ct_STRIP" >&6; }
  17015. +else
  17016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17017. +$as_echo "no" >&6; }
  17018. +fi
  17019. +
  17020. + if test "x$ac_ct_STRIP" = x; then
  17021. + STRIP=":"
  17022. + else
  17023. + case $cross_compiling:$ac_tool_warned in
  17024. +yes:)
  17025. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17026. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17027. +ac_tool_warned=yes ;;
  17028. +esac
  17029. + STRIP=$ac_ct_STRIP
  17030. + fi
  17031. +else
  17032. + STRIP="$ac_cv_prog_STRIP"
  17033. +fi
  17034. +
  17035. +fi
  17036. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  17037. +
  17038. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  17039. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  17040. +if test -z "$MKDIR_P"; then
  17041. + if test "${ac_cv_path_mkdir+set}" = set; then :
  17042. + $as_echo_n "(cached) " >&6
  17043. +else
  17044. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17045. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  17046. +do
  17047. + IFS=$as_save_IFS
  17048. + test -z "$as_dir" && as_dir=.
  17049. + for ac_prog in mkdir gmkdir; do
  17050. + for ac_exec_ext in '' $ac_executable_extensions; do
  17051. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  17052. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  17053. + 'mkdir (GNU coreutils) '* | \
  17054. + 'mkdir (coreutils) '* | \
  17055. + 'mkdir (fileutils) '4.1*)
  17056. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  17057. + break 3;;
  17058. + esac
  17059. + done
  17060. + done
  17061. + done
  17062. +IFS=$as_save_IFS
  17063. +
  17064. +fi
  17065. +
  17066. + test -d ./--version && rmdir ./--version
  17067. + if test "${ac_cv_path_mkdir+set}" = set; then
  17068. + MKDIR_P="$ac_cv_path_mkdir -p"
  17069. + else
  17070. + # As a last resort, use the slow shell script. Don't cache a
  17071. + # value for MKDIR_P within a source directory, because that will
  17072. + # break other packages using the cache if that directory is
  17073. + # removed, or if the value is a relative name.
  17074. + MKDIR_P="$ac_install_sh -d"
  17075. + fi
  17076. +fi
  17077. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  17078. +$as_echo "$MKDIR_P" >&6; }
  17079. +
  17080. +mkdir_p="$MKDIR_P"
  17081. +case $mkdir_p in
  17082. + [\\/$]* | ?:[\\/]*) ;;
  17083. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  17084. +esac
  17085. +
  17086. +for ac_prog in gawk mawk nawk awk
  17087. +do
  17088. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  17089. +set dummy $ac_prog; ac_word=$2
  17090. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17091. +$as_echo_n "checking for $ac_word... " >&6; }
  17092. +if test "${ac_cv_prog_AWK+set}" = set; then :
  17093. + $as_echo_n "(cached) " >&6
  17094. +else
  17095. + if test -n "$AWK"; then
  17096. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  17097. +else
  17098. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17099. +for as_dir in $PATH
  17100. +do
  17101. + IFS=$as_save_IFS
  17102. + test -z "$as_dir" && as_dir=.
  17103. + for ac_exec_ext in '' $ac_executable_extensions; do
  17104. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17105. + ac_cv_prog_AWK="$ac_prog"
  17106. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17107. + break 2
  17108. + fi
  17109. done
  17110. + done
  17111. +IFS=$as_save_IFS
  17112. fi
  17113. fi
  17114. AWK=$ac_cv_prog_AWK
  17115. if test -n "$AWK"; then
  17116. - echo "$as_me:$LINENO: result: $AWK" >&5
  17117. -echo "${ECHO_T}$AWK" >&6
  17118. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  17119. +$as_echo "$AWK" >&6; }
  17120. else
  17121. - echo "$as_me:$LINENO: result: no" >&5
  17122. -echo "${ECHO_T}no" >&6
  17123. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17124. +$as_echo "no" >&6; }
  17125. fi
  17126. +
  17127. test -n "$AWK" && break
  17128. done
  17129. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17130. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  17131. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  17132. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  17133. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17134. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  17135. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  17136. +set x ${MAKE-make}
  17137. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  17138. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  17139. + $as_echo_n "(cached) " >&6
  17140. else
  17141. cat >conftest.make <<\_ACEOF
  17142. +SHELL = /bin/sh
  17143. all:
  17144. - @echo 'ac_maketemp="$(MAKE)"'
  17145. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  17146. _ACEOF
  17147. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  17148. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  17149. -if test -n "$ac_maketemp"; then
  17150. - eval ac_cv_prog_make_${ac_make}_set=yes
  17151. -else
  17152. - eval ac_cv_prog_make_${ac_make}_set=no
  17153. -fi
  17154. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  17155. + *@@@%%%=?*=@@@%%%*)
  17156. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  17157. + *)
  17158. + eval ac_cv_prog_make_${ac_make}_set=no;;
  17159. +esac
  17160. rm -f conftest.make
  17161. fi
  17162. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  17163. - echo "$as_me:$LINENO: result: yes" >&5
  17164. -echo "${ECHO_T}yes" >&6
  17165. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  17166. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17167. +$as_echo "yes" >&6; }
  17168. SET_MAKE=
  17169. else
  17170. - echo "$as_me:$LINENO: result: no" >&5
  17171. -echo "${ECHO_T}no" >&6
  17172. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17173. +$as_echo "no" >&6; }
  17174. SET_MAKE="MAKE=${MAKE-make}"
  17175. fi
  17176. @@ -1784,12 +2838,14 @@
  17177. fi
  17178. rmdir .tst 2>/dev/null
  17179. -# test to see if srcdir already configured
  17180. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  17181. - test -f $srcdir/config.status; then
  17182. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  17183. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  17184. - { (exit 1); exit 1; }; }
  17185. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  17186. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  17187. + # is not polluted with repeated "-I."
  17188. + am__isrc=' -I$(srcdir)'
  17189. + # test to see if srcdir already configured
  17190. + if test -f $srcdir/config.status; then
  17191. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  17192. + fi
  17193. fi
  17194. # test whether we have cygpath
  17195. @@ -1832,96 +2888,6 @@
  17196. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  17197. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  17198. -
  17199. -# Installed binaries are usually stripped using `strip' when the user
  17200. -# run `make install-strip'. However `strip' might not be the right
  17201. -# tool to use in cross-compilation environments, therefore Automake
  17202. -# will honor the `STRIP' environment variable to overrule this program.
  17203. -if test "$cross_compiling" != no; then
  17204. - if test -n "$ac_tool_prefix"; then
  17205. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  17206. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  17207. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17208. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17209. -if test "${ac_cv_prog_STRIP+set}" = set; then
  17210. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17211. -else
  17212. - if test -n "$STRIP"; then
  17213. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  17214. -else
  17215. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17216. -for as_dir in $PATH
  17217. -do
  17218. - IFS=$as_save_IFS
  17219. - test -z "$as_dir" && as_dir=.
  17220. - for ac_exec_ext in '' $ac_executable_extensions; do
  17221. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17222. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  17223. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17224. - break 2
  17225. - fi
  17226. -done
  17227. -done
  17228. -
  17229. -fi
  17230. -fi
  17231. -STRIP=$ac_cv_prog_STRIP
  17232. -if test -n "$STRIP"; then
  17233. - echo "$as_me:$LINENO: result: $STRIP" >&5
  17234. -echo "${ECHO_T}$STRIP" >&6
  17235. -else
  17236. - echo "$as_me:$LINENO: result: no" >&5
  17237. -echo "${ECHO_T}no" >&6
  17238. -fi
  17239. -
  17240. -fi
  17241. -if test -z "$ac_cv_prog_STRIP"; then
  17242. - ac_ct_STRIP=$STRIP
  17243. - # Extract the first word of "strip", so it can be a program name with args.
  17244. -set dummy strip; ac_word=$2
  17245. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17246. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17247. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  17248. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17249. -else
  17250. - if test -n "$ac_ct_STRIP"; then
  17251. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  17252. -else
  17253. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17254. -for as_dir in $PATH
  17255. -do
  17256. - IFS=$as_save_IFS
  17257. - test -z "$as_dir" && as_dir=.
  17258. - for ac_exec_ext in '' $ac_executable_extensions; do
  17259. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17260. - ac_cv_prog_ac_ct_STRIP="strip"
  17261. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17262. - break 2
  17263. - fi
  17264. -done
  17265. -done
  17266. -
  17267. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  17268. -fi
  17269. -fi
  17270. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  17271. -if test -n "$ac_ct_STRIP"; then
  17272. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  17273. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  17274. -else
  17275. - echo "$as_me:$LINENO: result: no" >&5
  17276. -echo "${ECHO_T}no" >&6
  17277. -fi
  17278. -
  17279. - STRIP=$ac_ct_STRIP
  17280. -else
  17281. - STRIP="$ac_cv_prog_STRIP"
  17282. -fi
  17283. -
  17284. -fi
  17285. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  17286. -
  17287. # We need awk for the "check" target. The system "awk" is bad on
  17288. # some platforms.
  17289. # Always define AMTAR for backward compatibility.
  17290. @@ -1934,20 +2900,19 @@
  17291. -echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17292. -echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
  17293. - # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  17294. -if test "${enable_maintainer_mode+set}" = set; then
  17295. - enableval="$enable_maintainer_mode"
  17296. - USE_MAINTAINER_MODE=$enableval
  17297. +
  17298. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  17299. +$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  17300. + # Check whether --enable-maintainer-mode was given.
  17301. +if test "${enable_maintainer_mode+set}" = set; then :
  17302. + enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  17303. else
  17304. USE_MAINTAINER_MODE=no
  17305. -fi;
  17306. - echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
  17307. -echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
  17308. -
  17309. +fi
  17310. -if test $USE_MAINTAINER_MODE = yes; then
  17311. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  17312. +$as_echo "$USE_MAINTAINER_MODE" >&6; }
  17313. + if test $USE_MAINTAINER_MODE = yes; then
  17314. MAINTAINER_MODE_TRUE=
  17315. MAINTAINER_MODE_FALSE='#'
  17316. else
  17317. @@ -1975,10 +2940,10 @@
  17318. if test -n "$ac_tool_prefix"; then
  17319. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  17320. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  17321. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17322. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17323. -if test "${ac_cv_prog_CC+set}" = set; then
  17324. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17325. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17326. +$as_echo_n "checking for $ac_word... " >&6; }
  17327. +if test "${ac_cv_prog_CC+set}" = set; then :
  17328. + $as_echo_n "(cached) " >&6
  17329. else
  17330. if test -n "$CC"; then
  17331. ac_cv_prog_CC="$CC" # Let the user override the test.
  17332. @@ -1988,35 +2953,37 @@
  17333. do
  17334. IFS=$as_save_IFS
  17335. test -z "$as_dir" && as_dir=.
  17336. - for ac_exec_ext in '' $ac_executable_extensions; do
  17337. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17338. + for ac_exec_ext in '' $ac_executable_extensions; do
  17339. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17340. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  17341. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17342. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17343. break 2
  17344. fi
  17345. done
  17346. -done
  17347. + done
  17348. +IFS=$as_save_IFS
  17349. fi
  17350. fi
  17351. CC=$ac_cv_prog_CC
  17352. if test -n "$CC"; then
  17353. - echo "$as_me:$LINENO: result: $CC" >&5
  17354. -echo "${ECHO_T}$CC" >&6
  17355. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17356. +$as_echo "$CC" >&6; }
  17357. else
  17358. - echo "$as_me:$LINENO: result: no" >&5
  17359. -echo "${ECHO_T}no" >&6
  17360. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17361. +$as_echo "no" >&6; }
  17362. fi
  17363. +
  17364. fi
  17365. if test -z "$ac_cv_prog_CC"; then
  17366. ac_ct_CC=$CC
  17367. # Extract the first word of "gcc", so it can be a program name with args.
  17368. set dummy gcc; ac_word=$2
  17369. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17370. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17371. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17372. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17373. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17374. +$as_echo_n "checking for $ac_word... " >&6; }
  17375. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17376. + $as_echo_n "(cached) " >&6
  17377. else
  17378. if test -n "$ac_ct_CC"; then
  17379. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17380. @@ -2026,39 +2993,50 @@
  17381. do
  17382. IFS=$as_save_IFS
  17383. test -z "$as_dir" && as_dir=.
  17384. - for ac_exec_ext in '' $ac_executable_extensions; do
  17385. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17386. + for ac_exec_ext in '' $ac_executable_extensions; do
  17387. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17388. ac_cv_prog_ac_ct_CC="gcc"
  17389. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17390. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17391. break 2
  17392. fi
  17393. done
  17394. -done
  17395. + done
  17396. +IFS=$as_save_IFS
  17397. fi
  17398. fi
  17399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17400. if test -n "$ac_ct_CC"; then
  17401. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17402. -echo "${ECHO_T}$ac_ct_CC" >&6
  17403. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17404. +$as_echo "$ac_ct_CC" >&6; }
  17405. else
  17406. - echo "$as_me:$LINENO: result: no" >&5
  17407. -echo "${ECHO_T}no" >&6
  17408. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17409. +$as_echo "no" >&6; }
  17410. fi
  17411. - CC=$ac_ct_CC
  17412. + if test "x$ac_ct_CC" = x; then
  17413. + CC=""
  17414. + else
  17415. + case $cross_compiling:$ac_tool_warned in
  17416. +yes:)
  17417. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17418. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17419. +ac_tool_warned=yes ;;
  17420. +esac
  17421. + CC=$ac_ct_CC
  17422. + fi
  17423. else
  17424. CC="$ac_cv_prog_CC"
  17425. fi
  17426. if test -z "$CC"; then
  17427. - if test -n "$ac_tool_prefix"; then
  17428. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17429. + if test -n "$ac_tool_prefix"; then
  17430. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  17431. set dummy ${ac_tool_prefix}cc; ac_word=$2
  17432. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17433. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17434. -if test "${ac_cv_prog_CC+set}" = set; then
  17435. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17436. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17437. +$as_echo_n "checking for $ac_word... " >&6; }
  17438. +if test "${ac_cv_prog_CC+set}" = set; then :
  17439. + $as_echo_n "(cached) " >&6
  17440. else
  17441. if test -n "$CC"; then
  17442. ac_cv_prog_CC="$CC" # Let the user override the test.
  17443. @@ -2068,77 +3046,37 @@
  17444. do
  17445. IFS=$as_save_IFS
  17446. test -z "$as_dir" && as_dir=.
  17447. - for ac_exec_ext in '' $ac_executable_extensions; do
  17448. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17449. + for ac_exec_ext in '' $ac_executable_extensions; do
  17450. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17451. ac_cv_prog_CC="${ac_tool_prefix}cc"
  17452. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17453. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17454. break 2
  17455. fi
  17456. done
  17457. -done
  17458. + done
  17459. +IFS=$as_save_IFS
  17460. fi
  17461. fi
  17462. CC=$ac_cv_prog_CC
  17463. if test -n "$CC"; then
  17464. - echo "$as_me:$LINENO: result: $CC" >&5
  17465. -echo "${ECHO_T}$CC" >&6
  17466. -else
  17467. - echo "$as_me:$LINENO: result: no" >&5
  17468. -echo "${ECHO_T}no" >&6
  17469. -fi
  17470. -
  17471. -fi
  17472. -if test -z "$ac_cv_prog_CC"; then
  17473. - ac_ct_CC=$CC
  17474. - # Extract the first word of "cc", so it can be a program name with args.
  17475. -set dummy cc; ac_word=$2
  17476. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17477. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17478. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17479. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17480. -else
  17481. - if test -n "$ac_ct_CC"; then
  17482. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17483. -else
  17484. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  17485. -for as_dir in $PATH
  17486. -do
  17487. - IFS=$as_save_IFS
  17488. - test -z "$as_dir" && as_dir=.
  17489. - for ac_exec_ext in '' $ac_executable_extensions; do
  17490. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17491. - ac_cv_prog_ac_ct_CC="cc"
  17492. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17493. - break 2
  17494. - fi
  17495. -done
  17496. -done
  17497. -
  17498. -fi
  17499. -fi
  17500. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17501. -if test -n "$ac_ct_CC"; then
  17502. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17503. -echo "${ECHO_T}$ac_ct_CC" >&6
  17504. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17505. +$as_echo "$CC" >&6; }
  17506. else
  17507. - echo "$as_me:$LINENO: result: no" >&5
  17508. -echo "${ECHO_T}no" >&6
  17509. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17510. +$as_echo "no" >&6; }
  17511. fi
  17512. - CC=$ac_ct_CC
  17513. -else
  17514. - CC="$ac_cv_prog_CC"
  17515. -fi
  17516. + fi
  17517. fi
  17518. if test -z "$CC"; then
  17519. # Extract the first word of "cc", so it can be a program name with args.
  17520. set dummy cc; ac_word=$2
  17521. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17522. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17523. -if test "${ac_cv_prog_CC+set}" = set; then
  17524. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17526. +$as_echo_n "checking for $ac_word... " >&6; }
  17527. +if test "${ac_cv_prog_CC+set}" = set; then :
  17528. + $as_echo_n "(cached) " >&6
  17529. else
  17530. if test -n "$CC"; then
  17531. ac_cv_prog_CC="$CC" # Let the user override the test.
  17532. @@ -2149,18 +3087,19 @@
  17533. do
  17534. IFS=$as_save_IFS
  17535. test -z "$as_dir" && as_dir=.
  17536. - for ac_exec_ext in '' $ac_executable_extensions; do
  17537. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17538. + for ac_exec_ext in '' $ac_executable_extensions; do
  17539. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17540. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  17541. ac_prog_rejected=yes
  17542. continue
  17543. fi
  17544. ac_cv_prog_CC="cc"
  17545. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17546. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17547. break 2
  17548. fi
  17549. done
  17550. -done
  17551. + done
  17552. +IFS=$as_save_IFS
  17553. if test $ac_prog_rejected = yes; then
  17554. # We found a bogon in the path, so make sure we never use it.
  17555. @@ -2178,24 +3117,25 @@
  17556. fi
  17557. CC=$ac_cv_prog_CC
  17558. if test -n "$CC"; then
  17559. - echo "$as_me:$LINENO: result: $CC" >&5
  17560. -echo "${ECHO_T}$CC" >&6
  17561. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17562. +$as_echo "$CC" >&6; }
  17563. else
  17564. - echo "$as_me:$LINENO: result: no" >&5
  17565. -echo "${ECHO_T}no" >&6
  17566. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17567. +$as_echo "no" >&6; }
  17568. fi
  17569. +
  17570. fi
  17571. if test -z "$CC"; then
  17572. if test -n "$ac_tool_prefix"; then
  17573. - for ac_prog in cl
  17574. + for ac_prog in cl.exe
  17575. do
  17576. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  17577. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  17578. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17579. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17580. -if test "${ac_cv_prog_CC+set}" = set; then
  17581. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17582. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17583. +$as_echo_n "checking for $ac_word... " >&6; }
  17584. +if test "${ac_cv_prog_CC+set}" = set; then :
  17585. + $as_echo_n "(cached) " >&6
  17586. else
  17587. if test -n "$CC"; then
  17588. ac_cv_prog_CC="$CC" # Let the user override the test.
  17589. @@ -2205,39 +3145,41 @@
  17590. do
  17591. IFS=$as_save_IFS
  17592. test -z "$as_dir" && as_dir=.
  17593. - for ac_exec_ext in '' $ac_executable_extensions; do
  17594. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17595. + for ac_exec_ext in '' $ac_executable_extensions; do
  17596. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17597. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  17598. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17599. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17600. break 2
  17601. fi
  17602. done
  17603. -done
  17604. + done
  17605. +IFS=$as_save_IFS
  17606. fi
  17607. fi
  17608. CC=$ac_cv_prog_CC
  17609. if test -n "$CC"; then
  17610. - echo "$as_me:$LINENO: result: $CC" >&5
  17611. -echo "${ECHO_T}$CC" >&6
  17612. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  17613. +$as_echo "$CC" >&6; }
  17614. else
  17615. - echo "$as_me:$LINENO: result: no" >&5
  17616. -echo "${ECHO_T}no" >&6
  17617. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17618. +$as_echo "no" >&6; }
  17619. fi
  17620. +
  17621. test -n "$CC" && break
  17622. done
  17623. fi
  17624. if test -z "$CC"; then
  17625. ac_ct_CC=$CC
  17626. - for ac_prog in cl
  17627. + for ac_prog in cl.exe
  17628. do
  17629. # Extract the first word of "$ac_prog", so it can be a program name with args.
  17630. set dummy $ac_prog; ac_word=$2
  17631. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  17632. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  17633. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  17634. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17635. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  17636. +$as_echo_n "checking for $ac_word... " >&6; }
  17637. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  17638. + $as_echo_n "(cached) " >&6
  17639. else
  17640. if test -n "$ac_ct_CC"; then
  17641. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  17642. @@ -2247,66 +3189,78 @@
  17643. do
  17644. IFS=$as_save_IFS
  17645. test -z "$as_dir" && as_dir=.
  17646. - for ac_exec_ext in '' $ac_executable_extensions; do
  17647. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  17648. + for ac_exec_ext in '' $ac_executable_extensions; do
  17649. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  17650. ac_cv_prog_ac_ct_CC="$ac_prog"
  17651. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  17652. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  17653. break 2
  17654. fi
  17655. done
  17656. -done
  17657. + done
  17658. +IFS=$as_save_IFS
  17659. fi
  17660. fi
  17661. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  17662. if test -n "$ac_ct_CC"; then
  17663. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  17664. -echo "${ECHO_T}$ac_ct_CC" >&6
  17665. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  17666. +$as_echo "$ac_ct_CC" >&6; }
  17667. else
  17668. - echo "$as_me:$LINENO: result: no" >&5
  17669. -echo "${ECHO_T}no" >&6
  17670. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17671. +$as_echo "no" >&6; }
  17672. fi
  17673. +
  17674. test -n "$ac_ct_CC" && break
  17675. done
  17676. - CC=$ac_ct_CC
  17677. + if test "x$ac_ct_CC" = x; then
  17678. + CC=""
  17679. + else
  17680. + case $cross_compiling:$ac_tool_warned in
  17681. +yes:)
  17682. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  17683. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  17684. +ac_tool_warned=yes ;;
  17685. +esac
  17686. + CC=$ac_ct_CC
  17687. + fi
  17688. fi
  17689. fi
  17690. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  17691. -See \`config.log' for more details." >&5
  17692. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  17693. -See \`config.log' for more details." >&2;}
  17694. - { (exit 1); exit 1; }; }
  17695. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17696. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17697. +as_fn_error "no acceptable C compiler found in \$PATH
  17698. +See \`config.log' for more details." "$LINENO" 5; }
  17699. # Provide some information about the compiler.
  17700. -echo "$as_me:$LINENO:" \
  17701. - "checking for C compiler version" >&5
  17702. -ac_compiler=`set X $ac_compile; echo $2`
  17703. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  17704. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  17705. - ac_status=$?
  17706. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17707. - (exit $ac_status); }
  17708. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  17709. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  17710. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  17711. +set X $ac_compile
  17712. +ac_compiler=$2
  17713. +for ac_option in --version -v -V -qversion; do
  17714. + { { ac_try="$ac_compiler $ac_option >&5"
  17715. +case "(($ac_try" in
  17716. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17717. + *) ac_try_echo=$ac_try;;
  17718. +esac
  17719. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17720. +$as_echo "$ac_try_echo"; } >&5
  17721. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  17722. ac_status=$?
  17723. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17724. - (exit $ac_status); }
  17725. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  17726. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  17727. - ac_status=$?
  17728. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17729. - (exit $ac_status); }
  17730. + if test -s conftest.err; then
  17731. + sed '10a\
  17732. +... rest of stderr output deleted ...
  17733. + 10q' conftest.err >conftest.er1
  17734. + cat conftest.er1 >&5
  17735. + fi
  17736. + rm -f conftest.er1 conftest.err
  17737. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17738. + test $ac_status = 0; }
  17739. +done
  17740. -cat >conftest.$ac_ext <<_ACEOF
  17741. -/* confdefs.h. */
  17742. -_ACEOF
  17743. -cat confdefs.h >>conftest.$ac_ext
  17744. -cat >>conftest.$ac_ext <<_ACEOF
  17745. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17746. /* end confdefs.h. */
  17747. int
  17748. @@ -2318,112 +3272,109 @@
  17749. }
  17750. _ACEOF
  17751. ac_clean_files_save=$ac_clean_files
  17752. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  17753. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  17754. # Try to create an executable without -o first, disregard a.out.
  17755. # It will help us diagnose broken compilers, and finding out an intuition
  17756. # of exeext.
  17757. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  17758. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  17759. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  17760. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  17761. - (eval $ac_link_default) 2>&5
  17762. - ac_status=$?
  17763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17764. - (exit $ac_status); }; then
  17765. - # Find the output, starting from the most likely. This scheme is
  17766. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  17767. -# resort.
  17768. -
  17769. -# Be careful to initialize this variable, since it used to be cached.
  17770. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  17771. -ac_cv_exeext=
  17772. -# b.out is created by i960 compilers.
  17773. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  17774. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  17775. +$as_echo_n "checking whether the C compiler works... " >&6; }
  17776. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  17777. +
  17778. +# The possible output files:
  17779. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  17780. +
  17781. +ac_rmfiles=
  17782. +for ac_file in $ac_files
  17783. +do
  17784. + case $ac_file in
  17785. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  17786. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  17787. + esac
  17788. +done
  17789. +rm -f $ac_rmfiles
  17790. +
  17791. +if { { ac_try="$ac_link_default"
  17792. +case "(($ac_try" in
  17793. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17794. + *) ac_try_echo=$ac_try;;
  17795. +esac
  17796. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17797. +$as_echo "$ac_try_echo"; } >&5
  17798. + (eval "$ac_link_default") 2>&5
  17799. + ac_status=$?
  17800. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17801. + test $ac_status = 0; }; then :
  17802. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  17803. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  17804. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  17805. +# so that the user can short-circuit this test for compilers unknown to
  17806. +# Autoconf.
  17807. +for ac_file in $ac_files ''
  17808. do
  17809. test -f "$ac_file" || continue
  17810. case $ac_file in
  17811. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  17812. - ;;
  17813. - conftest.$ac_ext )
  17814. - # This is the source file.
  17815. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  17816. ;;
  17817. [ab].out )
  17818. # We found the default executable, but exeext='' is most
  17819. # certainly right.
  17820. break;;
  17821. *.* )
  17822. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17823. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  17824. - # but it would be cool to find out if it's true. Does anybody
  17825. - # maintain Libtool? --akim.
  17826. - export ac_cv_exeext
  17827. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  17828. + then :; else
  17829. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17830. + fi
  17831. + # We set ac_cv_exeext here because the later test for it is not
  17832. + # safe: cross compilers may not add the suffix if given an `-o'
  17833. + # argument, so we may need to know it at that point already.
  17834. + # Even if this section looks crufty: it has the advantage of
  17835. + # actually working.
  17836. break;;
  17837. * )
  17838. break;;
  17839. esac
  17840. done
  17841. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  17842. +
  17843. else
  17844. - echo "$as_me: failed program was:" >&5
  17845. + ac_file=''
  17846. +fi
  17847. +if test -z "$ac_file"; then :
  17848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  17849. +$as_echo "no" >&6; }
  17850. +$as_echo "$as_me: failed program was:" >&5
  17851. sed 's/^/| /' conftest.$ac_ext >&5
  17852. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  17853. -See \`config.log' for more details." >&5
  17854. -echo "$as_me: error: C compiler cannot create executables
  17855. -See \`config.log' for more details." >&2;}
  17856. - { (exit 77); exit 77; }; }
  17857. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17858. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17859. +{ as_fn_set_status 77
  17860. +as_fn_error "C compiler cannot create executables
  17861. +See \`config.log' for more details." "$LINENO" 5; }; }
  17862. +else
  17863. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  17864. +$as_echo "yes" >&6; }
  17865. fi
  17866. -
  17867. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  17868. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  17869. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  17870. +$as_echo "$ac_file" >&6; }
  17871. ac_exeext=$ac_cv_exeext
  17872. -echo "$as_me:$LINENO: result: $ac_file" >&5
  17873. -echo "${ECHO_T}$ac_file" >&6
  17874. -
  17875. -# Check the compiler produces executables we can run. If not, either
  17876. -# the compiler is broken, or we cross compile.
  17877. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  17878. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  17879. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  17880. -# If not cross compiling, check that we can run a simple program.
  17881. -if test "$cross_compiling" != yes; then
  17882. - if { ac_try='./$ac_file'
  17883. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17884. - (eval $ac_try) 2>&5
  17885. - ac_status=$?
  17886. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17887. - (exit $ac_status); }; }; then
  17888. - cross_compiling=no
  17889. - else
  17890. - if test "$cross_compiling" = maybe; then
  17891. - cross_compiling=yes
  17892. - else
  17893. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  17894. -If you meant to cross compile, use \`--host'.
  17895. -See \`config.log' for more details." >&5
  17896. -echo "$as_me: error: cannot run C compiled programs.
  17897. -If you meant to cross compile, use \`--host'.
  17898. -See \`config.log' for more details." >&2;}
  17899. - { (exit 1); exit 1; }; }
  17900. - fi
  17901. - fi
  17902. -fi
  17903. -echo "$as_me:$LINENO: result: yes" >&5
  17904. -echo "${ECHO_T}yes" >&6
  17905. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  17906. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  17907. ac_clean_files=$ac_clean_files_save
  17908. -# Check the compiler produces executables we can run. If not, either
  17909. -# the compiler is broken, or we cross compile.
  17910. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  17911. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  17912. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  17913. -echo "${ECHO_T}$cross_compiling" >&6
  17914. -
  17915. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  17916. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  17917. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17918. - (eval $ac_link) 2>&5
  17919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  17920. +$as_echo_n "checking for suffix of executables... " >&6; }
  17921. +if { { ac_try="$ac_link"
  17922. +case "(($ac_try" in
  17923. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17924. + *) ac_try_echo=$ac_try;;
  17925. +esac
  17926. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17927. +$as_echo "$ac_try_echo"; } >&5
  17928. + (eval "$ac_link") 2>&5
  17929. ac_status=$?
  17930. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17931. - (exit $ac_status); }; then
  17932. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17933. + test $ac_status = 0; }; then :
  17934. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  17935. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  17936. # work properly (i.e., refer to `conftest.exe'), while it won't with
  17937. @@ -2431,38 +3382,90 @@
  17938. for ac_file in conftest.exe conftest conftest.*; do
  17939. test -f "$ac_file" || continue
  17940. case $ac_file in
  17941. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  17942. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  17943. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  17944. - export ac_cv_exeext
  17945. break;;
  17946. * ) break;;
  17947. esac
  17948. done
  17949. else
  17950. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  17951. -See \`config.log' for more details." >&5
  17952. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  17953. -See \`config.log' for more details." >&2;}
  17954. - { (exit 1); exit 1; }; }
  17955. -fi
  17956. -
  17957. -rm -f conftest$ac_cv_exeext
  17958. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  17959. -echo "${ECHO_T}$ac_cv_exeext" >&6
  17960. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  17961. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  17962. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  17963. +See \`config.log' for more details." "$LINENO" 5; }
  17964. +fi
  17965. +rm -f conftest conftest$ac_cv_exeext
  17966. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  17967. +$as_echo "$ac_cv_exeext" >&6; }
  17968. rm -f conftest.$ac_ext
  17969. EXEEXT=$ac_cv_exeext
  17970. ac_exeext=$EXEEXT
  17971. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  17972. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  17973. -if test "${ac_cv_objext+set}" = set; then
  17974. - echo $ECHO_N "(cached) $ECHO_C" >&6
  17975. -else
  17976. - cat >conftest.$ac_ext <<_ACEOF
  17977. -/* confdefs.h. */
  17978. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17979. +/* end confdefs.h. */
  17980. +#include <stdio.h>
  17981. +int
  17982. +main ()
  17983. +{
  17984. +FILE *f = fopen ("conftest.out", "w");
  17985. + return ferror (f) || fclose (f) != 0;
  17986. +
  17987. + ;
  17988. + return 0;
  17989. +}
  17990. _ACEOF
  17991. -cat confdefs.h >>conftest.$ac_ext
  17992. -cat >>conftest.$ac_ext <<_ACEOF
  17993. +ac_clean_files="$ac_clean_files conftest.out"
  17994. +# Check that the compiler produces executables we can run. If not, either
  17995. +# the compiler is broken, or we cross compile.
  17996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  17997. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  17998. +if test "$cross_compiling" != yes; then
  17999. + { { ac_try="$ac_link"
  18000. +case "(($ac_try" in
  18001. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18002. + *) ac_try_echo=$ac_try;;
  18003. +esac
  18004. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18005. +$as_echo "$ac_try_echo"; } >&5
  18006. + (eval "$ac_link") 2>&5
  18007. + ac_status=$?
  18008. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18009. + test $ac_status = 0; }
  18010. + if { ac_try='./conftest$ac_cv_exeext'
  18011. + { { case "(($ac_try" in
  18012. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18013. + *) ac_try_echo=$ac_try;;
  18014. +esac
  18015. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18016. +$as_echo "$ac_try_echo"; } >&5
  18017. + (eval "$ac_try") 2>&5
  18018. + ac_status=$?
  18019. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18020. + test $ac_status = 0; }; }; then
  18021. + cross_compiling=no
  18022. + else
  18023. + if test "$cross_compiling" = maybe; then
  18024. + cross_compiling=yes
  18025. + else
  18026. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18027. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18028. +as_fn_error "cannot run C compiled programs.
  18029. +If you meant to cross compile, use \`--host'.
  18030. +See \`config.log' for more details." "$LINENO" 5; }
  18031. + fi
  18032. + fi
  18033. +fi
  18034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  18035. +$as_echo "$cross_compiling" >&6; }
  18036. +
  18037. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  18038. +ac_clean_files=$ac_clean_files_save
  18039. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  18040. +$as_echo_n "checking for suffix of object files... " >&6; }
  18041. +if test "${ac_cv_objext+set}" = set; then :
  18042. + $as_echo_n "(cached) " >&6
  18043. +else
  18044. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18045. /* end confdefs.h. */
  18046. int
  18047. @@ -2474,45 +3477,46 @@
  18048. }
  18049. _ACEOF
  18050. rm -f conftest.o conftest.obj
  18051. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18052. - (eval $ac_compile) 2>&5
  18053. - ac_status=$?
  18054. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18055. - (exit $ac_status); }; then
  18056. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  18057. +if { { ac_try="$ac_compile"
  18058. +case "(($ac_try" in
  18059. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  18060. + *) ac_try_echo=$ac_try;;
  18061. +esac
  18062. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  18063. +$as_echo "$ac_try_echo"; } >&5
  18064. + (eval "$ac_compile") 2>&5
  18065. + ac_status=$?
  18066. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  18067. + test $ac_status = 0; }; then :
  18068. + for ac_file in conftest.o conftest.obj conftest.*; do
  18069. + test -f "$ac_file" || continue;
  18070. case $ac_file in
  18071. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  18072. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  18073. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  18074. break;;
  18075. esac
  18076. done
  18077. else
  18078. - echo "$as_me: failed program was:" >&5
  18079. + $as_echo "$as_me: failed program was:" >&5
  18080. sed 's/^/| /' conftest.$ac_ext >&5
  18081. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  18082. -See \`config.log' for more details." >&5
  18083. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  18084. -See \`config.log' for more details." >&2;}
  18085. - { (exit 1); exit 1; }; }
  18086. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18087. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18088. +as_fn_error "cannot compute suffix of object files: cannot compile
  18089. +See \`config.log' for more details." "$LINENO" 5; }
  18090. fi
  18091. -
  18092. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  18093. fi
  18094. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  18095. -echo "${ECHO_T}$ac_cv_objext" >&6
  18096. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  18097. +$as_echo "$ac_cv_objext" >&6; }
  18098. OBJEXT=$ac_cv_objext
  18099. ac_objext=$OBJEXT
  18100. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  18101. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  18102. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  18103. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18104. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  18105. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  18106. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  18107. + $as_echo_n "(cached) " >&6
  18108. else
  18109. - cat >conftest.$ac_ext <<_ACEOF
  18110. -/* confdefs.h. */
  18111. -_ACEOF
  18112. -cat confdefs.h >>conftest.$ac_ext
  18113. -cat >>conftest.$ac_ext <<_ACEOF
  18114. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18115. /* end confdefs.h. */
  18116. int
  18117. @@ -2526,54 +3530,34 @@
  18118. return 0;
  18119. }
  18120. _ACEOF
  18121. -rm -f conftest.$ac_objext
  18122. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18123. - (eval $ac_compile) 2>conftest.er1
  18124. - ac_status=$?
  18125. - grep -v '^ *+' conftest.er1 >conftest.err
  18126. - rm -f conftest.er1
  18127. - cat conftest.err >&5
  18128. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18129. - (exit $ac_status); } &&
  18130. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18131. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18132. - (eval $ac_try) 2>&5
  18133. - ac_status=$?
  18134. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18135. - (exit $ac_status); }; } &&
  18136. - { ac_try='test -s conftest.$ac_objext'
  18137. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18138. - (eval $ac_try) 2>&5
  18139. - ac_status=$?
  18140. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18141. - (exit $ac_status); }; }; then
  18142. +if ac_fn_c_try_compile "$LINENO"; then :
  18143. ac_compiler_gnu=yes
  18144. else
  18145. - echo "$as_me: failed program was:" >&5
  18146. -sed 's/^/| /' conftest.$ac_ext >&5
  18147. -
  18148. -ac_compiler_gnu=no
  18149. + ac_compiler_gnu=no
  18150. fi
  18151. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18152. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18153. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  18154. fi
  18155. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  18156. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  18157. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  18158. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  18159. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  18160. +if test $ac_compiler_gnu = yes; then
  18161. + GCC=yes
  18162. +else
  18163. + GCC=
  18164. +fi
  18165. ac_test_CFLAGS=${CFLAGS+set}
  18166. ac_save_CFLAGS=$CFLAGS
  18167. -CFLAGS="-g"
  18168. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  18169. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  18170. -if test "${ac_cv_prog_cc_g+set}" = set; then
  18171. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18172. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  18173. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  18174. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  18175. + $as_echo_n "(cached) " >&6
  18176. else
  18177. - cat >conftest.$ac_ext <<_ACEOF
  18178. -/* confdefs.h. */
  18179. -_ACEOF
  18180. -cat confdefs.h >>conftest.$ac_ext
  18181. -cat >>conftest.$ac_ext <<_ACEOF
  18182. + ac_save_c_werror_flag=$ac_c_werror_flag
  18183. + ac_c_werror_flag=yes
  18184. + ac_cv_prog_cc_g=no
  18185. + CFLAGS="-g"
  18186. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18187. /* end confdefs.h. */
  18188. int
  18189. @@ -2584,38 +3568,49 @@
  18190. return 0;
  18191. }
  18192. _ACEOF
  18193. -rm -f conftest.$ac_objext
  18194. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18195. - (eval $ac_compile) 2>conftest.er1
  18196. - ac_status=$?
  18197. - grep -v '^ *+' conftest.er1 >conftest.err
  18198. - rm -f conftest.er1
  18199. - cat conftest.err >&5
  18200. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18201. - (exit $ac_status); } &&
  18202. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18203. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18204. - (eval $ac_try) 2>&5
  18205. - ac_status=$?
  18206. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18207. - (exit $ac_status); }; } &&
  18208. - { ac_try='test -s conftest.$ac_objext'
  18209. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18210. - (eval $ac_try) 2>&5
  18211. - ac_status=$?
  18212. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18213. - (exit $ac_status); }; }; then
  18214. +if ac_fn_c_try_compile "$LINENO"; then :
  18215. ac_cv_prog_cc_g=yes
  18216. else
  18217. - echo "$as_me: failed program was:" >&5
  18218. -sed 's/^/| /' conftest.$ac_ext >&5
  18219. + CFLAGS=""
  18220. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18221. +/* end confdefs.h. */
  18222. +
  18223. +int
  18224. +main ()
  18225. +{
  18226. +
  18227. + ;
  18228. + return 0;
  18229. +}
  18230. +_ACEOF
  18231. +if ac_fn_c_try_compile "$LINENO"; then :
  18232. +
  18233. +else
  18234. + ac_c_werror_flag=$ac_save_c_werror_flag
  18235. + CFLAGS="-g"
  18236. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18237. +/* end confdefs.h. */
  18238. +
  18239. +int
  18240. +main ()
  18241. +{
  18242. -ac_cv_prog_cc_g=no
  18243. + ;
  18244. + return 0;
  18245. +}
  18246. +_ACEOF
  18247. +if ac_fn_c_try_compile "$LINENO"; then :
  18248. + ac_cv_prog_cc_g=yes
  18249. fi
  18250. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18251. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18252. fi
  18253. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  18254. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  18255. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18256. +fi
  18257. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18258. + ac_c_werror_flag=$ac_save_c_werror_flag
  18259. +fi
  18260. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  18261. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  18262. if test "$ac_test_CFLAGS" = set; then
  18263. CFLAGS=$ac_save_CFLAGS
  18264. elif test $ac_cv_prog_cc_g = yes; then
  18265. @@ -2631,18 +3626,14 @@
  18266. CFLAGS=
  18267. fi
  18268. fi
  18269. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  18270. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  18271. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  18272. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18273. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  18274. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  18275. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  18276. + $as_echo_n "(cached) " >&6
  18277. else
  18278. - ac_cv_prog_cc_stdc=no
  18279. + ac_cv_prog_cc_c89=no
  18280. ac_save_CC=$CC
  18281. -cat >conftest.$ac_ext <<_ACEOF
  18282. -/* confdefs.h. */
  18283. -_ACEOF
  18284. -cat confdefs.h >>conftest.$ac_ext
  18285. -cat >>conftest.$ac_ext <<_ACEOF
  18286. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18287. /* end confdefs.h. */
  18288. #include <stdarg.h>
  18289. #include <stdio.h>
  18290. @@ -2670,12 +3661,17 @@
  18291. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  18292. function prototypes and stuff, but not '\xHH' hex character constants.
  18293. These don't provoke an error unfortunately, instead are silently treated
  18294. - as 'x'. The following induces an error, until -std1 is added to get
  18295. + as 'x'. The following induces an error, until -std is added to get
  18296. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  18297. array size at least. It's necessary to write '\x00'==0 to get something
  18298. - that's true only with -std1. */
  18299. + that's true only with -std. */
  18300. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  18301. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  18302. + inside strings and character constants. */
  18303. +#define FOO(x) 'x'
  18304. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  18305. +
  18306. int test (int i, double x);
  18307. struct s1 {int (*f) (int a);};
  18308. struct s2 {int (*f) (double a);};
  18309. @@ -2690,201 +3686,37 @@
  18310. return 0;
  18311. }
  18312. _ACEOF
  18313. -# Don't try gcc -ansi; that turns off useful extensions and
  18314. -# breaks some systems' header files.
  18315. -# AIX -qlanglvl=ansi
  18316. -# Ultrix and OSF/1 -std1
  18317. -# HP-UX 10.20 and later -Ae
  18318. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  18319. -# SVR4 -Xc -D__EXTENSIONS__
  18320. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18321. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  18322. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  18323. do
  18324. CC="$ac_save_CC $ac_arg"
  18325. - rm -f conftest.$ac_objext
  18326. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18327. - (eval $ac_compile) 2>conftest.er1
  18328. - ac_status=$?
  18329. - grep -v '^ *+' conftest.er1 >conftest.err
  18330. - rm -f conftest.er1
  18331. - cat conftest.err >&5
  18332. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18333. - (exit $ac_status); } &&
  18334. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18335. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18336. - (eval $ac_try) 2>&5
  18337. - ac_status=$?
  18338. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18339. - (exit $ac_status); }; } &&
  18340. - { ac_try='test -s conftest.$ac_objext'
  18341. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18342. - (eval $ac_try) 2>&5
  18343. - ac_status=$?
  18344. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18345. - (exit $ac_status); }; }; then
  18346. - ac_cv_prog_cc_stdc=$ac_arg
  18347. -break
  18348. -else
  18349. - echo "$as_me: failed program was:" >&5
  18350. -sed 's/^/| /' conftest.$ac_ext >&5
  18351. -
  18352. + if ac_fn_c_try_compile "$LINENO"; then :
  18353. + ac_cv_prog_cc_c89=$ac_arg
  18354. fi
  18355. -rm -f conftest.err conftest.$ac_objext
  18356. +rm -f core conftest.err conftest.$ac_objext
  18357. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  18358. done
  18359. -rm -f conftest.$ac_ext conftest.$ac_objext
  18360. +rm -f conftest.$ac_ext
  18361. CC=$ac_save_CC
  18362. fi
  18363. -
  18364. -case "x$ac_cv_prog_cc_stdc" in
  18365. - x|xno)
  18366. - echo "$as_me:$LINENO: result: none needed" >&5
  18367. -echo "${ECHO_T}none needed" >&6 ;;
  18368. +# AC_CACHE_VAL
  18369. +case "x$ac_cv_prog_cc_c89" in
  18370. + x)
  18371. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  18372. +$as_echo "none needed" >&6; } ;;
  18373. + xno)
  18374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  18375. +$as_echo "unsupported" >&6; } ;;
  18376. *)
  18377. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  18378. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  18379. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  18380. + CC="$CC $ac_cv_prog_cc_c89"
  18381. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  18382. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  18383. esac
  18384. -
  18385. -# Some people use a C++ compiler to compile C. Since we use `exit',
  18386. -# in C++ we need to declare it. In case someone uses the same compiler
  18387. -# for both compiling C and C++ we need to have the C++ compiler decide
  18388. -# the declaration of exit, since it's the most demanding environment.
  18389. -cat >conftest.$ac_ext <<_ACEOF
  18390. -#ifndef __cplusplus
  18391. - choke me
  18392. -#endif
  18393. -_ACEOF
  18394. -rm -f conftest.$ac_objext
  18395. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18396. - (eval $ac_compile) 2>conftest.er1
  18397. - ac_status=$?
  18398. - grep -v '^ *+' conftest.er1 >conftest.err
  18399. - rm -f conftest.er1
  18400. - cat conftest.err >&5
  18401. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18402. - (exit $ac_status); } &&
  18403. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18404. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18405. - (eval $ac_try) 2>&5
  18406. - ac_status=$?
  18407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18408. - (exit $ac_status); }; } &&
  18409. - { ac_try='test -s conftest.$ac_objext'
  18410. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18411. - (eval $ac_try) 2>&5
  18412. - ac_status=$?
  18413. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18414. - (exit $ac_status); }; }; then
  18415. - for ac_declaration in \
  18416. - '' \
  18417. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  18418. - 'extern "C" void std::exit (int); using std::exit;' \
  18419. - 'extern "C" void exit (int) throw ();' \
  18420. - 'extern "C" void exit (int);' \
  18421. - 'void exit (int);'
  18422. -do
  18423. - cat >conftest.$ac_ext <<_ACEOF
  18424. -/* confdefs.h. */
  18425. -_ACEOF
  18426. -cat confdefs.h >>conftest.$ac_ext
  18427. -cat >>conftest.$ac_ext <<_ACEOF
  18428. -/* end confdefs.h. */
  18429. -$ac_declaration
  18430. -#include <stdlib.h>
  18431. -int
  18432. -main ()
  18433. -{
  18434. -exit (42);
  18435. - ;
  18436. - return 0;
  18437. -}
  18438. -_ACEOF
  18439. -rm -f conftest.$ac_objext
  18440. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18441. - (eval $ac_compile) 2>conftest.er1
  18442. - ac_status=$?
  18443. - grep -v '^ *+' conftest.er1 >conftest.err
  18444. - rm -f conftest.er1
  18445. - cat conftest.err >&5
  18446. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18447. - (exit $ac_status); } &&
  18448. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18449. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18450. - (eval $ac_try) 2>&5
  18451. - ac_status=$?
  18452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18453. - (exit $ac_status); }; } &&
  18454. - { ac_try='test -s conftest.$ac_objext'
  18455. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18456. - (eval $ac_try) 2>&5
  18457. - ac_status=$?
  18458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18459. - (exit $ac_status); }; }; then
  18460. - :
  18461. -else
  18462. - echo "$as_me: failed program was:" >&5
  18463. -sed 's/^/| /' conftest.$ac_ext >&5
  18464. -
  18465. -continue
  18466. -fi
  18467. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18468. - cat >conftest.$ac_ext <<_ACEOF
  18469. -/* confdefs.h. */
  18470. -_ACEOF
  18471. -cat confdefs.h >>conftest.$ac_ext
  18472. -cat >>conftest.$ac_ext <<_ACEOF
  18473. -/* end confdefs.h. */
  18474. -$ac_declaration
  18475. -int
  18476. -main ()
  18477. -{
  18478. -exit (42);
  18479. - ;
  18480. - return 0;
  18481. -}
  18482. -_ACEOF
  18483. -rm -f conftest.$ac_objext
  18484. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18485. - (eval $ac_compile) 2>conftest.er1
  18486. - ac_status=$?
  18487. - grep -v '^ *+' conftest.er1 >conftest.err
  18488. - rm -f conftest.er1
  18489. - cat conftest.err >&5
  18490. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18491. - (exit $ac_status); } &&
  18492. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18493. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18494. - (eval $ac_try) 2>&5
  18495. - ac_status=$?
  18496. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18497. - (exit $ac_status); }; } &&
  18498. - { ac_try='test -s conftest.$ac_objext'
  18499. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18500. - (eval $ac_try) 2>&5
  18501. - ac_status=$?
  18502. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18503. - (exit $ac_status); }; }; then
  18504. - break
  18505. -else
  18506. - echo "$as_me: failed program was:" >&5
  18507. -sed 's/^/| /' conftest.$ac_ext >&5
  18508. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  18509. fi
  18510. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18511. -done
  18512. -rm -f conftest*
  18513. -if test -n "$ac_declaration"; then
  18514. - echo '#ifdef __cplusplus' >>confdefs.h
  18515. - echo $ac_declaration >>confdefs.h
  18516. - echo '#endif' >>confdefs.h
  18517. -fi
  18518. -
  18519. -else
  18520. - echo "$as_me: failed program was:" >&5
  18521. -sed 's/^/| /' conftest.$ac_ext >&5
  18522. -fi
  18523. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18524. ac_ext=c
  18525. ac_cpp='$CPP $CPPFLAGS'
  18526. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  18527. @@ -2892,60 +3724,58 @@
  18528. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  18529. DEPDIR="${am__leading_dot}deps"
  18530. - ac_config_commands="$ac_config_commands depfiles"
  18531. +ac_config_commands="$ac_config_commands depfiles"
  18532. am_make=${MAKE-make}
  18533. cat > confinc << 'END'
  18534. am__doit:
  18535. - @echo done
  18536. + @echo this is the am__doit target
  18537. .PHONY: am__doit
  18538. END
  18539. # If we don't find an include directive, just comment out the code.
  18540. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  18541. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  18542. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  18543. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  18544. am__include="#"
  18545. am__quote=
  18546. _am_result=none
  18547. # First try GNU make style include.
  18548. echo "include confinc" > confmf
  18549. -# We grep out `Entering directory' and `Leaving directory'
  18550. -# messages which can occur if `w' ends up in MAKEFLAGS.
  18551. -# In particular we don't look at `^make:' because GNU make might
  18552. -# be invoked under some other name (usually "gmake"), in which
  18553. -# case it prints its new name instead of `make'.
  18554. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  18555. - am__include=include
  18556. - am__quote=
  18557. - _am_result=GNU
  18558. -fi
  18559. +# Ignore all kinds of additional output from `make'.
  18560. +case `$am_make -s -f confmf 2> /dev/null` in #(
  18561. +*the\ am__doit\ target*)
  18562. + am__include=include
  18563. + am__quote=
  18564. + _am_result=GNU
  18565. + ;;
  18566. +esac
  18567. # Now try BSD make style include.
  18568. if test "$am__include" = "#"; then
  18569. echo '.include "confinc"' > confmf
  18570. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  18571. - am__include=.include
  18572. - am__quote="\""
  18573. - _am_result=BSD
  18574. - fi
  18575. + case `$am_make -s -f confmf 2> /dev/null` in #(
  18576. + *the\ am__doit\ target*)
  18577. + am__include=.include
  18578. + am__quote="\""
  18579. + _am_result=BSD
  18580. + ;;
  18581. + esac
  18582. fi
  18583. -echo "$as_me:$LINENO: result: $_am_result" >&5
  18584. -echo "${ECHO_T}$_am_result" >&6
  18585. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  18586. +$as_echo "$_am_result" >&6; }
  18587. rm -f confinc confmf
  18588. -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  18589. -if test "${enable_dependency_tracking+set}" = set; then
  18590. - enableval="$enable_dependency_tracking"
  18591. +# Check whether --enable-dependency-tracking was given.
  18592. +if test "${enable_dependency_tracking+set}" = set; then :
  18593. + enableval=$enable_dependency_tracking;
  18594. +fi
  18595. -fi;
  18596. if test "x$enable_dependency_tracking" != xno; then
  18597. am_depcomp="$ac_aux_dir/depcomp"
  18598. AMDEPBACKSLASH='\'
  18599. fi
  18600. -
  18601. -
  18602. -if test "x$enable_dependency_tracking" != xno; then
  18603. + if test "x$enable_dependency_tracking" != xno; then
  18604. AMDEP_TRUE=
  18605. AMDEP_FALSE='#'
  18606. else
  18607. @@ -2955,13 +3785,12 @@
  18608. -
  18609. depcc="$CC" am_compiler_list=
  18610. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  18611. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  18612. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  18613. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18614. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  18615. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  18616. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  18617. + $as_echo_n "(cached) " >&6
  18618. else
  18619. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  18620. # We make a subdir and do the tests there. Otherwise we can end up
  18621. @@ -2986,6 +3815,11 @@
  18622. if test "$am_compiler_list" = ""; then
  18623. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  18624. fi
  18625. + am__universal=false
  18626. + case " $depcc " in #(
  18627. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  18628. + esac
  18629. +
  18630. for depmode in $am_compiler_list; do
  18631. # Setup a source with many dependencies, because some compilers
  18632. # like to wrap large dependency lists on column 80 (with \), and
  18633. @@ -3003,7 +3837,17 @@
  18634. done
  18635. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  18636. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18637. + # mode. It turns out that the SunPro C++ compiler does not properly
  18638. + # handle `-M -o', and we need to detect this. Also, some Intel
  18639. + # versions had trouble with output in subdirs
  18640. + am__obj=sub/conftest.${OBJEXT-o}
  18641. + am__minus_obj="-o $am__obj"
  18642. case $depmode in
  18643. + gcc)
  18644. + # This depmode causes a compiler race in universal mode.
  18645. + test "$am__universal" = false || continue
  18646. + ;;
  18647. nosideeffect)
  18648. # after this tag, mechanisms are not by side-effect, so they'll
  18649. # only be used when explicitly requested
  18650. @@ -3013,18 +3857,23 @@
  18651. break
  18652. fi
  18653. ;;
  18654. + msvisualcpp | msvcmsys)
  18655. + # This compiler won't grok `-c -o', but also, the minuso test has
  18656. + # not run yet. These depmodes are late enough in the game, and
  18657. + # so weak that their functioning should not be impacted.
  18658. + am__obj=conftest.${OBJEXT-o}
  18659. + am__minus_obj=
  18660. + ;;
  18661. none) break ;;
  18662. esac
  18663. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  18664. - # mode. It turns out that the SunPro C++ compiler does not properly
  18665. - # handle `-M -o', and we need to detect this.
  18666. if depmode=$depmode \
  18667. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  18668. + source=sub/conftest.c object=$am__obj \
  18669. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  18670. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  18671. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  18672. >/dev/null 2>conftest.err &&
  18673. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  18674. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  18675. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  18676. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  18677. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  18678. # icc doesn't choke on unknown options, it will just issue warnings
  18679. # or remarks (even with -Werror). So we grep stderr for any message
  18680. @@ -3048,13 +3897,11 @@
  18681. fi
  18682. fi
  18683. -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  18684. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  18685. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  18686. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  18687. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  18688. -
  18689. -
  18690. -if
  18691. + if
  18692. test "x$enable_dependency_tracking" != xno \
  18693. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  18694. am__fastdepCC_TRUE=
  18695. @@ -3065,218 +3912,414 @@
  18696. fi
  18697. -# Check whether --enable-shared or --disable-shared was given.
  18698. -if test "${enable_shared+set}" = set; then
  18699. - enableval="$enable_shared"
  18700. - p=${PACKAGE-default}
  18701. - case $enableval in
  18702. - yes) enable_shared=yes ;;
  18703. - no) enable_shared=no ;;
  18704. - *)
  18705. - enable_shared=no
  18706. - # Look at the argument we got. We use all the common list separators.
  18707. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18708. - for pkg in $enableval; do
  18709. - IFS="$lt_save_ifs"
  18710. - if test "X$pkg" = "X$p"; then
  18711. - enable_shared=yes
  18712. - fi
  18713. - done
  18714. - IFS="$lt_save_ifs"
  18715. - ;;
  18716. - esac
  18717. -else
  18718. - enable_shared=yes
  18719. -fi;
  18720. +case `pwd` in
  18721. + *\ * | *\ *)
  18722. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  18723. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  18724. +esac
  18725. -# Check whether --enable-static or --disable-static was given.
  18726. -if test "${enable_static+set}" = set; then
  18727. - enableval="$enable_static"
  18728. - p=${PACKAGE-default}
  18729. - case $enableval in
  18730. - yes) enable_static=yes ;;
  18731. - no) enable_static=no ;;
  18732. - *)
  18733. - enable_static=no
  18734. - # Look at the argument we got. We use all the common list separators.
  18735. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18736. - for pkg in $enableval; do
  18737. - IFS="$lt_save_ifs"
  18738. - if test "X$pkg" = "X$p"; then
  18739. - enable_static=yes
  18740. - fi
  18741. - done
  18742. - IFS="$lt_save_ifs"
  18743. - ;;
  18744. - esac
  18745. -else
  18746. - enable_static=yes
  18747. -fi;
  18748. -# Check whether --enable-fast-install or --disable-fast-install was given.
  18749. -if test "${enable_fast_install+set}" = set; then
  18750. - enableval="$enable_fast_install"
  18751. - p=${PACKAGE-default}
  18752. - case $enableval in
  18753. - yes) enable_fast_install=yes ;;
  18754. - no) enable_fast_install=no ;;
  18755. - *)
  18756. - enable_fast_install=no
  18757. - # Look at the argument we got. We use all the common list separators.
  18758. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  18759. - for pkg in $enableval; do
  18760. - IFS="$lt_save_ifs"
  18761. - if test "X$pkg" = "X$p"; then
  18762. - enable_fast_install=yes
  18763. - fi
  18764. - done
  18765. - IFS="$lt_save_ifs"
  18766. - ;;
  18767. - esac
  18768. -else
  18769. - enable_fast_install=yes
  18770. -fi;
  18771. +
  18772. +macro_version='2.2.6b'
  18773. +macro_revision='1.3017'
  18774. +
  18775. +
  18776. +
  18777. +
  18778. +
  18779. +
  18780. +
  18781. +
  18782. +
  18783. +
  18784. +
  18785. +
  18786. +
  18787. +ltmain="$ac_aux_dir/ltmain.sh"
  18788. # Make sure we can run config.sub.
  18789. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  18790. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  18791. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  18792. - { (exit 1); exit 1; }; }
  18793. -
  18794. -echo "$as_me:$LINENO: checking build system type" >&5
  18795. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  18796. -if test "${ac_cv_build+set}" = set; then
  18797. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18798. -else
  18799. - ac_cv_build_alias=$build_alias
  18800. -test -z "$ac_cv_build_alias" &&
  18801. - ac_cv_build_alias=`$ac_config_guess`
  18802. -test -z "$ac_cv_build_alias" &&
  18803. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  18804. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  18805. - { (exit 1); exit 1; }; }
  18806. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  18807. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  18808. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  18809. - { (exit 1); exit 1; }; }
  18810. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  18811. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  18812. -fi
  18813. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  18814. -echo "${ECHO_T}$ac_cv_build" >&6
  18815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  18816. +$as_echo_n "checking build system type... " >&6; }
  18817. +if test "${ac_cv_build+set}" = set; then :
  18818. + $as_echo_n "(cached) " >&6
  18819. +else
  18820. + ac_build_alias=$build_alias
  18821. +test "x$ac_build_alias" = x &&
  18822. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  18823. +test "x$ac_build_alias" = x &&
  18824. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  18825. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  18826. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  18827. +
  18828. +fi
  18829. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  18830. +$as_echo "$ac_cv_build" >&6; }
  18831. +case $ac_cv_build in
  18832. +*-*-*) ;;
  18833. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  18834. +esac
  18835. build=$ac_cv_build
  18836. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  18837. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  18838. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  18839. -
  18840. -
  18841. -echo "$as_me:$LINENO: checking host system type" >&5
  18842. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  18843. -if test "${ac_cv_host+set}" = set; then
  18844. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18845. -else
  18846. - ac_cv_host_alias=$host_alias
  18847. -test -z "$ac_cv_host_alias" &&
  18848. - ac_cv_host_alias=$ac_cv_build_alias
  18849. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  18850. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  18851. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  18852. - { (exit 1); exit 1; }; }
  18853. +ac_save_IFS=$IFS; IFS='-'
  18854. +set x $ac_cv_build
  18855. +shift
  18856. +build_cpu=$1
  18857. +build_vendor=$2
  18858. +shift; shift
  18859. +# Remember, the first character of IFS is used to create $*,
  18860. +# except with old shells:
  18861. +build_os=$*
  18862. +IFS=$ac_save_IFS
  18863. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  18864. +
  18865. +
  18866. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  18867. +$as_echo_n "checking host system type... " >&6; }
  18868. +if test "${ac_cv_host+set}" = set; then :
  18869. + $as_echo_n "(cached) " >&6
  18870. +else
  18871. + if test "x$host_alias" = x; then
  18872. + ac_cv_host=$ac_cv_build
  18873. +else
  18874. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  18875. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  18876. +fi
  18877. fi
  18878. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  18879. -echo "${ECHO_T}$ac_cv_host" >&6
  18880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  18881. +$as_echo "$ac_cv_host" >&6; }
  18882. +case $ac_cv_host in
  18883. +*-*-*) ;;
  18884. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  18885. +esac
  18886. host=$ac_cv_host
  18887. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  18888. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  18889. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  18890. -
  18891. -
  18892. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  18893. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  18894. -if test "${lt_cv_path_SED+set}" = set; then
  18895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18896. -else
  18897. - # Loop through the user's path and test for sed and gsed.
  18898. -# Then use that list of sed's as ones to test for truncation.
  18899. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18900. +ac_save_IFS=$IFS; IFS='-'
  18901. +set x $ac_cv_host
  18902. +shift
  18903. +host_cpu=$1
  18904. +host_vendor=$2
  18905. +shift; shift
  18906. +# Remember, the first character of IFS is used to create $*,
  18907. +# except with old shells:
  18908. +host_os=$*
  18909. +IFS=$ac_save_IFS
  18910. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  18911. +
  18912. +
  18913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  18914. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  18915. +if test "${ac_cv_path_SED+set}" = set; then :
  18916. + $as_echo_n "(cached) " >&6
  18917. +else
  18918. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  18919. + for ac_i in 1 2 3 4 5 6 7; do
  18920. + ac_script="$ac_script$as_nl$ac_script"
  18921. + done
  18922. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  18923. + { ac_script=; unset ac_script;}
  18924. + if test -z "$SED"; then
  18925. + ac_path_SED_found=false
  18926. + # Loop through the user's path and test for each of PROGNAME-LIST
  18927. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18928. for as_dir in $PATH
  18929. do
  18930. IFS=$as_save_IFS
  18931. test -z "$as_dir" && as_dir=.
  18932. - for lt_ac_prog in sed gsed; do
  18933. + for ac_prog in sed gsed; do
  18934. for ac_exec_ext in '' $ac_executable_extensions; do
  18935. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  18936. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  18937. - fi
  18938. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  18939. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  18940. +# Check for GNU ac_path_SED and select it if it is found.
  18941. + # Check for GNU $ac_path_SED
  18942. +case `"$ac_path_SED" --version 2>&1` in
  18943. +*GNU*)
  18944. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  18945. +*)
  18946. + ac_count=0
  18947. + $as_echo_n 0123456789 >"conftest.in"
  18948. + while :
  18949. + do
  18950. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  18951. + mv "conftest.tmp" "conftest.in"
  18952. + cp "conftest.in" "conftest.nl"
  18953. + $as_echo '' >> "conftest.nl"
  18954. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  18955. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  18956. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  18957. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  18958. + # Best one so far, save it but keep looking for a better one
  18959. + ac_cv_path_SED="$ac_path_SED"
  18960. + ac_path_SED_max=$ac_count
  18961. + fi
  18962. + # 10*(2^10) chars as input seems more than enough
  18963. + test $ac_count -gt 10 && break
  18964. + done
  18965. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  18966. +esac
  18967. +
  18968. + $ac_path_SED_found && break 3
  18969. done
  18970. done
  18971. -done
  18972. -lt_ac_max=0
  18973. -lt_ac_count=0
  18974. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  18975. -# along with /bin/sed that truncates output.
  18976. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  18977. - test ! -f $lt_ac_sed && break
  18978. - cat /dev/null > conftest.in
  18979. - lt_ac_count=0
  18980. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  18981. - # Check for GNU sed and select it if it is found.
  18982. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  18983. - lt_cv_path_SED=$lt_ac_sed
  18984. - break
  18985. - fi
  18986. - while true; do
  18987. - cat conftest.in conftest.in >conftest.tmp
  18988. - mv conftest.tmp conftest.in
  18989. - cp conftest.in conftest.nl
  18990. - echo >>conftest.nl
  18991. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  18992. - cmp -s conftest.out conftest.nl || break
  18993. - # 10000 chars as input seems more than enough
  18994. - test $lt_ac_count -gt 10 && break
  18995. - lt_ac_count=`expr $lt_ac_count + 1`
  18996. - if test $lt_ac_count -gt $lt_ac_max; then
  18997. - lt_ac_max=$lt_ac_count
  18998. - lt_cv_path_SED=$lt_ac_sed
  18999. - fi
  19000. done
  19001. -done
  19002. -SED=$lt_cv_path_SED
  19003. +IFS=$as_save_IFS
  19004. + if test -z "$ac_cv_path_SED"; then
  19005. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  19006. + fi
  19007. +else
  19008. + ac_cv_path_SED=$SED
  19009. +fi
  19010. fi
  19011. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  19012. +$as_echo "$ac_cv_path_SED" >&6; }
  19013. + SED="$ac_cv_path_SED"
  19014. + rm -f conftest.sed
  19015. -echo "$as_me:$LINENO: result: $SED" >&5
  19016. -echo "${ECHO_T}$SED" >&6
  19017. +test -z "$SED" && SED=sed
  19018. +Xsed="$SED -e 1s/^X//"
  19019. -echo "$as_me:$LINENO: checking for egrep" >&5
  19020. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  19021. -if test "${ac_cv_prog_egrep+set}" = set; then
  19022. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19023. -else
  19024. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  19025. - then ac_cv_prog_egrep='grep -E'
  19026. - else ac_cv_prog_egrep='egrep'
  19027. - fi
  19028. -fi
  19029. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  19030. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  19031. - EGREP=$ac_cv_prog_egrep
  19032. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  19033. -if test "${with_gnu_ld+set}" = set; then
  19034. - withval="$with_gnu_ld"
  19035. - test "$withval" = no || with_gnu_ld=yes
  19036. -else
  19037. - with_gnu_ld=no
  19038. -fi;
  19039. -ac_prog=ld
  19040. -if test "$GCC" = yes; then
  19041. - # Check if gcc -print-prog-name=ld gives a path.
  19042. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  19043. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  19044. - case $host in
  19045. +
  19046. +
  19047. +
  19048. +
  19049. +
  19050. +
  19051. +
  19052. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  19053. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  19054. +if test "${ac_cv_path_GREP+set}" = set; then :
  19055. + $as_echo_n "(cached) " >&6
  19056. +else
  19057. + if test -z "$GREP"; then
  19058. + ac_path_GREP_found=false
  19059. + # Loop through the user's path and test for each of PROGNAME-LIST
  19060. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19061. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19062. +do
  19063. + IFS=$as_save_IFS
  19064. + test -z "$as_dir" && as_dir=.
  19065. + for ac_prog in grep ggrep; do
  19066. + for ac_exec_ext in '' $ac_executable_extensions; do
  19067. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  19068. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  19069. +# Check for GNU ac_path_GREP and select it if it is found.
  19070. + # Check for GNU $ac_path_GREP
  19071. +case `"$ac_path_GREP" --version 2>&1` in
  19072. +*GNU*)
  19073. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  19074. +*)
  19075. + ac_count=0
  19076. + $as_echo_n 0123456789 >"conftest.in"
  19077. + while :
  19078. + do
  19079. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19080. + mv "conftest.tmp" "conftest.in"
  19081. + cp "conftest.in" "conftest.nl"
  19082. + $as_echo 'GREP' >> "conftest.nl"
  19083. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19084. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19085. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19086. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  19087. + # Best one so far, save it but keep looking for a better one
  19088. + ac_cv_path_GREP="$ac_path_GREP"
  19089. + ac_path_GREP_max=$ac_count
  19090. + fi
  19091. + # 10*(2^10) chars as input seems more than enough
  19092. + test $ac_count -gt 10 && break
  19093. + done
  19094. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19095. +esac
  19096. +
  19097. + $ac_path_GREP_found && break 3
  19098. + done
  19099. + done
  19100. + done
  19101. +IFS=$as_save_IFS
  19102. + if test -z "$ac_cv_path_GREP"; then
  19103. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19104. + fi
  19105. +else
  19106. + ac_cv_path_GREP=$GREP
  19107. +fi
  19108. +
  19109. +fi
  19110. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  19111. +$as_echo "$ac_cv_path_GREP" >&6; }
  19112. + GREP="$ac_cv_path_GREP"
  19113. +
  19114. +
  19115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  19116. +$as_echo_n "checking for egrep... " >&6; }
  19117. +if test "${ac_cv_path_EGREP+set}" = set; then :
  19118. + $as_echo_n "(cached) " >&6
  19119. +else
  19120. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  19121. + then ac_cv_path_EGREP="$GREP -E"
  19122. + else
  19123. + if test -z "$EGREP"; then
  19124. + ac_path_EGREP_found=false
  19125. + # Loop through the user's path and test for each of PROGNAME-LIST
  19126. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19127. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19128. +do
  19129. + IFS=$as_save_IFS
  19130. + test -z "$as_dir" && as_dir=.
  19131. + for ac_prog in egrep; do
  19132. + for ac_exec_ext in '' $ac_executable_extensions; do
  19133. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  19134. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  19135. +# Check for GNU ac_path_EGREP and select it if it is found.
  19136. + # Check for GNU $ac_path_EGREP
  19137. +case `"$ac_path_EGREP" --version 2>&1` in
  19138. +*GNU*)
  19139. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  19140. +*)
  19141. + ac_count=0
  19142. + $as_echo_n 0123456789 >"conftest.in"
  19143. + while :
  19144. + do
  19145. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19146. + mv "conftest.tmp" "conftest.in"
  19147. + cp "conftest.in" "conftest.nl"
  19148. + $as_echo 'EGREP' >> "conftest.nl"
  19149. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19150. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19151. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19152. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  19153. + # Best one so far, save it but keep looking for a better one
  19154. + ac_cv_path_EGREP="$ac_path_EGREP"
  19155. + ac_path_EGREP_max=$ac_count
  19156. + fi
  19157. + # 10*(2^10) chars as input seems more than enough
  19158. + test $ac_count -gt 10 && break
  19159. + done
  19160. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19161. +esac
  19162. +
  19163. + $ac_path_EGREP_found && break 3
  19164. + done
  19165. + done
  19166. + done
  19167. +IFS=$as_save_IFS
  19168. + if test -z "$ac_cv_path_EGREP"; then
  19169. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19170. + fi
  19171. +else
  19172. + ac_cv_path_EGREP=$EGREP
  19173. +fi
  19174. +
  19175. + fi
  19176. +fi
  19177. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  19178. +$as_echo "$ac_cv_path_EGREP" >&6; }
  19179. + EGREP="$ac_cv_path_EGREP"
  19180. +
  19181. +
  19182. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  19183. +$as_echo_n "checking for fgrep... " >&6; }
  19184. +if test "${ac_cv_path_FGREP+set}" = set; then :
  19185. + $as_echo_n "(cached) " >&6
  19186. +else
  19187. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  19188. + then ac_cv_path_FGREP="$GREP -F"
  19189. + else
  19190. + if test -z "$FGREP"; then
  19191. + ac_path_FGREP_found=false
  19192. + # Loop through the user's path and test for each of PROGNAME-LIST
  19193. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19194. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  19195. +do
  19196. + IFS=$as_save_IFS
  19197. + test -z "$as_dir" && as_dir=.
  19198. + for ac_prog in fgrep; do
  19199. + for ac_exec_ext in '' $ac_executable_extensions; do
  19200. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  19201. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  19202. +# Check for GNU ac_path_FGREP and select it if it is found.
  19203. + # Check for GNU $ac_path_FGREP
  19204. +case `"$ac_path_FGREP" --version 2>&1` in
  19205. +*GNU*)
  19206. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  19207. +*)
  19208. + ac_count=0
  19209. + $as_echo_n 0123456789 >"conftest.in"
  19210. + while :
  19211. + do
  19212. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  19213. + mv "conftest.tmp" "conftest.in"
  19214. + cp "conftest.in" "conftest.nl"
  19215. + $as_echo 'FGREP' >> "conftest.nl"
  19216. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  19217. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  19218. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  19219. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  19220. + # Best one so far, save it but keep looking for a better one
  19221. + ac_cv_path_FGREP="$ac_path_FGREP"
  19222. + ac_path_FGREP_max=$ac_count
  19223. + fi
  19224. + # 10*(2^10) chars as input seems more than enough
  19225. + test $ac_count -gt 10 && break
  19226. + done
  19227. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  19228. +esac
  19229. +
  19230. + $ac_path_FGREP_found && break 3
  19231. + done
  19232. + done
  19233. + done
  19234. +IFS=$as_save_IFS
  19235. + if test -z "$ac_cv_path_FGREP"; then
  19236. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  19237. + fi
  19238. +else
  19239. + ac_cv_path_FGREP=$FGREP
  19240. +fi
  19241. +
  19242. + fi
  19243. +fi
  19244. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  19245. +$as_echo "$ac_cv_path_FGREP" >&6; }
  19246. + FGREP="$ac_cv_path_FGREP"
  19247. +
  19248. +
  19249. +test -z "$GREP" && GREP=grep
  19250. +
  19251. +
  19252. +
  19253. +
  19254. +
  19255. +
  19256. +
  19257. +
  19258. +
  19259. +
  19260. +
  19261. +
  19262. +
  19263. +
  19264. +
  19265. +
  19266. +
  19267. +
  19268. +
  19269. +# Check whether --with-gnu-ld was given.
  19270. +if test "${with_gnu_ld+set}" = set; then :
  19271. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  19272. +else
  19273. + with_gnu_ld=no
  19274. +fi
  19275. +
  19276. +ac_prog=ld
  19277. +if test "$GCC" = yes; then
  19278. + # Check if gcc -print-prog-name=ld gives a path.
  19279. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  19280. +$as_echo_n "checking for ld used by $CC... " >&6; }
  19281. + case $host in
  19282. *-*-mingw*)
  19283. # gcc leaves a trailing carriage return which upsets mingw
  19284. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  19285. @@ -3288,9 +4331,9 @@
  19286. [\\/]* | ?:[\\/]*)
  19287. re_direlt='/[^/][^/]*/\.\./'
  19288. # Canonicalize the pathname of ld
  19289. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  19290. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  19291. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  19292. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  19293. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  19294. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  19295. done
  19296. test -z "$LD" && LD="$ac_prog"
  19297. ;;
  19298. @@ -3304,14 +4347,14 @@
  19299. ;;
  19300. esac
  19301. elif test "$with_gnu_ld" = yes; then
  19302. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  19303. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  19304. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  19305. +$as_echo_n "checking for GNU ld... " >&6; }
  19306. else
  19307. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  19308. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  19309. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  19310. +$as_echo_n "checking for non-GNU ld... " >&6; }
  19311. fi
  19312. -if test "${lt_cv_path_LD+set}" = set; then
  19313. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19314. +if test "${lt_cv_path_LD+set}" = set; then :
  19315. + $as_echo_n "(cached) " >&6
  19316. else
  19317. if test -z "$LD"; then
  19318. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19319. @@ -3321,7 +4364,7 @@
  19320. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  19321. lt_cv_path_LD="$ac_dir/$ac_prog"
  19322. # Check to see if the program is GNU ld. I'd rather use --version,
  19323. - # but apparently some GNU ld's only accept -v.
  19324. + # but apparently some variants of GNU ld only accept -v.
  19325. # Break only if it was the GNU/non-GNU ld that we prefer.
  19326. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  19327. *GNU* | *'with BFD'*)
  19328. @@ -3341,21 +4384,19 @@
  19329. LD="$lt_cv_path_LD"
  19330. if test -n "$LD"; then
  19331. - echo "$as_me:$LINENO: result: $LD" >&5
  19332. -echo "${ECHO_T}$LD" >&6
  19333. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  19334. +$as_echo "$LD" >&6; }
  19335. else
  19336. - echo "$as_me:$LINENO: result: no" >&5
  19337. -echo "${ECHO_T}no" >&6
  19338. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19339. +$as_echo "no" >&6; }
  19340. fi
  19341. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  19342. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  19343. - { (exit 1); exit 1; }; }
  19344. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  19345. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  19346. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  19347. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19348. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  19349. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  19350. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  19351. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  19352. + $as_echo_n "(cached) " >&6
  19353. else
  19354. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  19355. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  19356. case `$LD -v 2>&1 </dev/null` in
  19357. *GNU* | *'with BFD'*)
  19358. lt_cv_prog_gnu_ld=yes
  19359. @@ -3365,2096 +4406,1128 @@
  19360. ;;
  19361. esac
  19362. fi
  19363. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  19364. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  19365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  19366. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  19367. with_gnu_ld=$lt_cv_prog_gnu_ld
  19368. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  19369. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  19370. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  19371. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19372. -else
  19373. - lt_cv_ld_reload_flag='-r'
  19374. -fi
  19375. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  19376. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  19377. -reload_flag=$lt_cv_ld_reload_flag
  19378. -case $reload_flag in
  19379. -"" | " "*) ;;
  19380. -*) reload_flag=" $reload_flag" ;;
  19381. -esac
  19382. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  19383. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  19384. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  19385. -if test "${lt_cv_path_NM+set}" = set; then
  19386. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19387. +
  19388. +
  19389. +
  19390. +
  19391. +
  19392. +
  19393. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  19394. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  19395. +if test "${lt_cv_path_NM+set}" = set; then :
  19396. + $as_echo_n "(cached) " >&6
  19397. else
  19398. if test -n "$NM"; then
  19399. # Let the user override the test.
  19400. lt_cv_path_NM="$NM"
  19401. else
  19402. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19403. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  19404. - IFS="$lt_save_ifs"
  19405. - test -z "$ac_dir" && ac_dir=.
  19406. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  19407. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  19408. - # Check to see if the nm accepts a BSD-compat flag.
  19409. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  19410. - # nm: unknown option "B" ignored
  19411. - # Tru64's nm complains that /dev/null is an invalid object file
  19412. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  19413. - */dev/null* | *'Invalid file or object type'*)
  19414. - lt_cv_path_NM="$tmp_nm -B"
  19415. - break
  19416. - ;;
  19417. - *)
  19418. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  19419. - */dev/null*)
  19420. - lt_cv_path_NM="$tmp_nm -p"
  19421. + lt_nm_to_check="${ac_tool_prefix}nm"
  19422. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  19423. + lt_nm_to_check="$lt_nm_to_check nm"
  19424. + fi
  19425. + for lt_tmp_nm in $lt_nm_to_check; do
  19426. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  19427. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  19428. + IFS="$lt_save_ifs"
  19429. + test -z "$ac_dir" && ac_dir=.
  19430. + tmp_nm="$ac_dir/$lt_tmp_nm"
  19431. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  19432. + # Check to see if the nm accepts a BSD-compat flag.
  19433. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  19434. + # nm: unknown option "B" ignored
  19435. + # Tru64's nm complains that /dev/null is an invalid object file
  19436. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  19437. + */dev/null* | *'Invalid file or object type'*)
  19438. + lt_cv_path_NM="$tmp_nm -B"
  19439. break
  19440. ;;
  19441. *)
  19442. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  19443. - continue # so that we can try to find one that supports BSD flags
  19444. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  19445. + */dev/null*)
  19446. + lt_cv_path_NM="$tmp_nm -p"
  19447. + break
  19448. + ;;
  19449. + *)
  19450. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  19451. + continue # so that we can try to find one that supports BSD flags
  19452. + ;;
  19453. + esac
  19454. ;;
  19455. esac
  19456. - esac
  19457. - fi
  19458. + fi
  19459. + done
  19460. + IFS="$lt_save_ifs"
  19461. done
  19462. - IFS="$lt_save_ifs"
  19463. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  19464. + : ${lt_cv_path_NM=no}
  19465. fi
  19466. fi
  19467. -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  19468. -echo "${ECHO_T}$lt_cv_path_NM" >&6
  19469. -NM="$lt_cv_path_NM"
  19470. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  19471. +$as_echo "$lt_cv_path_NM" >&6; }
  19472. +if test "$lt_cv_path_NM" != "no"; then
  19473. + NM="$lt_cv_path_NM"
  19474. +else
  19475. + # Didn't find any BSD compatible name lister, look for dumpbin.
  19476. + if test -n "$ac_tool_prefix"; then
  19477. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  19478. + do
  19479. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19480. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19481. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19482. +$as_echo_n "checking for $ac_word... " >&6; }
  19483. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  19484. + $as_echo_n "(cached) " >&6
  19485. +else
  19486. + if test -n "$DUMPBIN"; then
  19487. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  19488. +else
  19489. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19490. +for as_dir in $PATH
  19491. +do
  19492. + IFS=$as_save_IFS
  19493. + test -z "$as_dir" && as_dir=.
  19494. + for ac_exec_ext in '' $ac_executable_extensions; do
  19495. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19496. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  19497. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19498. + break 2
  19499. + fi
  19500. +done
  19501. + done
  19502. +IFS=$as_save_IFS
  19503. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  19504. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  19505. -LN_S=$as_ln_s
  19506. -if test "$LN_S" = "ln -s"; then
  19507. - echo "$as_me:$LINENO: result: yes" >&5
  19508. -echo "${ECHO_T}yes" >&6
  19509. +fi
  19510. +fi
  19511. +DUMPBIN=$ac_cv_prog_DUMPBIN
  19512. +if test -n "$DUMPBIN"; then
  19513. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  19514. +$as_echo "$DUMPBIN" >&6; }
  19515. else
  19516. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  19517. -echo "${ECHO_T}no, using $LN_S" >&6
  19518. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19519. +$as_echo "no" >&6; }
  19520. fi
  19521. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  19522. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  19523. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  19524. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19525. -else
  19526. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  19527. -lt_cv_file_magic_test_file=
  19528. -lt_cv_deplibs_check_method='unknown'
  19529. -# Need to set the preceding variable on all platforms that support
  19530. -# interlibrary dependencies.
  19531. -# 'none' -- dependencies not supported.
  19532. -# `unknown' -- same as none, but documents that we really don't know.
  19533. -# 'pass_all' -- all dependencies passed with no checks.
  19534. -# 'test_compile' -- check by making test program.
  19535. -# 'file_magic [[regex]]' -- check by looking for files in library path
  19536. -# which responds to the $file_magic_cmd with a given extended regex.
  19537. -# If you have `file' or equivalent on your system and you're not sure
  19538. -# whether `pass_all' will *always* work, you probably want this one.
  19539. -case $host_os in
  19540. -aix4* | aix5*)
  19541. - lt_cv_deplibs_check_method=pass_all
  19542. - ;;
  19543. + test -n "$DUMPBIN" && break
  19544. + done
  19545. +fi
  19546. +if test -z "$DUMPBIN"; then
  19547. + ac_ct_DUMPBIN=$DUMPBIN
  19548. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  19549. +do
  19550. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  19551. +set dummy $ac_prog; ac_word=$2
  19552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19553. +$as_echo_n "checking for $ac_word... " >&6; }
  19554. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  19555. + $as_echo_n "(cached) " >&6
  19556. +else
  19557. + if test -n "$ac_ct_DUMPBIN"; then
  19558. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  19559. +else
  19560. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19561. +for as_dir in $PATH
  19562. +do
  19563. + IFS=$as_save_IFS
  19564. + test -z "$as_dir" && as_dir=.
  19565. + for ac_exec_ext in '' $ac_executable_extensions; do
  19566. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19567. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  19568. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19569. + break 2
  19570. + fi
  19571. +done
  19572. + done
  19573. +IFS=$as_save_IFS
  19574. -beos*)
  19575. - lt_cv_deplibs_check_method=pass_all
  19576. - ;;
  19577. +fi
  19578. +fi
  19579. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  19580. +if test -n "$ac_ct_DUMPBIN"; then
  19581. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  19582. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  19583. +else
  19584. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19585. +$as_echo "no" >&6; }
  19586. +fi
  19587. -bsdi4*)
  19588. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  19589. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  19590. - lt_cv_file_magic_test_file=/shlib/libc.so
  19591. - ;;
  19592. -cygwin*)
  19593. - # func_win32_libid is a shell function defined in ltmain.sh
  19594. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  19595. - lt_cv_file_magic_cmd='func_win32_libid'
  19596. - ;;
  19597. + test -n "$ac_ct_DUMPBIN" && break
  19598. +done
  19599. -mingw* | pw32*)
  19600. - # Base MSYS/MinGW do not provide the 'file' command needed by
  19601. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  19602. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  19603. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  19604. - ;;
  19605. + if test "x$ac_ct_DUMPBIN" = x; then
  19606. + DUMPBIN=":"
  19607. + else
  19608. + case $cross_compiling:$ac_tool_warned in
  19609. +yes:)
  19610. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19611. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19612. +ac_tool_warned=yes ;;
  19613. +esac
  19614. + DUMPBIN=$ac_ct_DUMPBIN
  19615. + fi
  19616. +fi
  19617. -darwin* | rhapsody*)
  19618. - lt_cv_deplibs_check_method=pass_all
  19619. - ;;
  19620. -freebsd* | kfreebsd*-gnu)
  19621. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19622. - case $host_cpu in
  19623. - i*86 )
  19624. - # Not sure whether the presence of OpenBSD here was a mistake.
  19625. - # Let's accept both of them until this is cleared up.
  19626. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  19627. - lt_cv_file_magic_cmd=/usr/bin/file
  19628. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  19629. - ;;
  19630. - esac
  19631. - else
  19632. - lt_cv_deplibs_check_method=pass_all
  19633. + if test "$DUMPBIN" != ":"; then
  19634. + NM="$DUMPBIN"
  19635. fi
  19636. - ;;
  19637. +fi
  19638. +test -z "$NM" && NM=nm
  19639. -gnu*)
  19640. - lt_cv_deplibs_check_method=pass_all
  19641. - ;;
  19642. -hpux10.20* | hpux11*)
  19643. - lt_cv_file_magic_cmd=/usr/bin/file
  19644. - case "$host_cpu" in
  19645. - ia64*)
  19646. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  19647. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  19648. - ;;
  19649. - hppa*64*)
  19650. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  19651. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  19652. - ;;
  19653. - *)
  19654. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  19655. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  19656. - ;;
  19657. - esac
  19658. - ;;
  19659. -irix5* | irix6* | nonstopux*)
  19660. - case $LD in
  19661. - *-32|*"-32 ") libmagic=32-bit;;
  19662. - *-n32|*"-n32 ") libmagic=N32;;
  19663. - *-64|*"-64 ") libmagic=64-bit;;
  19664. - *) libmagic=never-match;;
  19665. - esac
  19666. - lt_cv_deplibs_check_method=pass_all
  19667. - ;;
  19668. -# This must be Linux ELF.
  19669. -linux*)
  19670. - lt_cv_deplibs_check_method=pass_all
  19671. - ;;
  19672. -netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  19673. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  19674. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  19675. - else
  19676. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  19677. +
  19678. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  19679. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  19680. +if test "${lt_cv_nm_interface+set}" = set; then :
  19681. + $as_echo_n "(cached) " >&6
  19682. +else
  19683. + lt_cv_nm_interface="BSD nm"
  19684. + echo "int some_variable = 0;" > conftest.$ac_ext
  19685. + (eval echo "\"\$as_me:4595: $ac_compile\"" >&5)
  19686. + (eval "$ac_compile" 2>conftest.err)
  19687. + cat conftest.err >&5
  19688. + (eval echo "\"\$as_me:4598: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  19689. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  19690. + cat conftest.err >&5
  19691. + (eval echo "\"\$as_me:4601: output\"" >&5)
  19692. + cat conftest.out >&5
  19693. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  19694. + lt_cv_nm_interface="MS dumpbin"
  19695. fi
  19696. - ;;
  19697. + rm -f conftest*
  19698. +fi
  19699. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  19700. +$as_echo "$lt_cv_nm_interface" >&6; }
  19701. -newos6*)
  19702. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  19703. - lt_cv_file_magic_cmd=/usr/bin/file
  19704. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  19705. - ;;
  19706. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  19707. +$as_echo_n "checking whether ln -s works... " >&6; }
  19708. +LN_S=$as_ln_s
  19709. +if test "$LN_S" = "ln -s"; then
  19710. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19711. +$as_echo "yes" >&6; }
  19712. +else
  19713. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  19714. +$as_echo "no, using $LN_S" >&6; }
  19715. +fi
  19716. -nto-qnx*)
  19717. - lt_cv_deplibs_check_method=unknown
  19718. - ;;
  19719. +# find the maximum length of command line arguments
  19720. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  19721. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  19722. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  19723. + $as_echo_n "(cached) " >&6
  19724. +else
  19725. + i=0
  19726. + teststring="ABCD"
  19727. -openbsd*)
  19728. - lt_cv_file_magic_cmd=/usr/bin/file
  19729. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  19730. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  19731. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  19732. - else
  19733. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  19734. - fi
  19735. - ;;
  19736. + case $build_os in
  19737. + msdosdjgpp*)
  19738. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  19739. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  19740. + # during glob expansion). Even if it were fixed, the result of this
  19741. + # check would be larger than it should be.
  19742. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  19743. + ;;
  19744. -osf3* | osf4* | osf5*)
  19745. - lt_cv_deplibs_check_method=pass_all
  19746. - ;;
  19747. + gnu*)
  19748. + # Under GNU Hurd, this test is not required because there is
  19749. + # no limit to the length of command line arguments.
  19750. + # Libtool will interpret -1 as no limit whatsoever
  19751. + lt_cv_sys_max_cmd_len=-1;
  19752. + ;;
  19753. -sco3.2v5*)
  19754. - lt_cv_deplibs_check_method=pass_all
  19755. - ;;
  19756. + cygwin* | mingw* | cegcc*)
  19757. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  19758. + # about 5 minutes as the teststring grows exponentially.
  19759. + # Worse, since 9x/ME are not pre-emptively multitasking,
  19760. + # you end up with a "frozen" computer, even though with patience
  19761. + # the test eventually succeeds (with a max line length of 256k).
  19762. + # Instead, let's just punt: use the minimum linelength reported by
  19763. + # all of the supported platforms: 8192 (on NT/2K/XP).
  19764. + lt_cv_sys_max_cmd_len=8192;
  19765. + ;;
  19766. -solaris*)
  19767. - lt_cv_deplibs_check_method=pass_all
  19768. - ;;
  19769. + amigaos*)
  19770. + # On AmigaOS with pdksh, this test takes hours, literally.
  19771. + # So we just punt and use a minimum line length of 8192.
  19772. + lt_cv_sys_max_cmd_len=8192;
  19773. + ;;
  19774. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  19775. - case $host_vendor in
  19776. - motorola)
  19777. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  19778. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  19779. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  19780. + # This has been around since 386BSD, at least. Likely further.
  19781. + if test -x /sbin/sysctl; then
  19782. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  19783. + elif test -x /usr/sbin/sysctl; then
  19784. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  19785. + else
  19786. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  19787. + fi
  19788. + # And add a safety zone
  19789. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19790. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19791. ;;
  19792. - ncr)
  19793. - lt_cv_deplibs_check_method=pass_all
  19794. +
  19795. + interix*)
  19796. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  19797. + lt_cv_sys_max_cmd_len=196608
  19798. ;;
  19799. - sequent)
  19800. - lt_cv_file_magic_cmd='/bin/file'
  19801. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  19802. +
  19803. + osf*)
  19804. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  19805. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  19806. + # nice to cause kernel panics so lets avoid the loop below.
  19807. + # First set a reasonable default.
  19808. + lt_cv_sys_max_cmd_len=16384
  19809. + #
  19810. + if test -x /sbin/sysconfig; then
  19811. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  19812. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  19813. + esac
  19814. + fi
  19815. ;;
  19816. - sni)
  19817. - lt_cv_file_magic_cmd='/bin/file'
  19818. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  19819. - lt_cv_file_magic_test_file=/lib/libc.so
  19820. + sco3.2v5*)
  19821. + lt_cv_sys_max_cmd_len=102400
  19822. ;;
  19823. - siemens)
  19824. - lt_cv_deplibs_check_method=pass_all
  19825. + sysv5* | sco5v6* | sysv4.2uw2*)
  19826. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  19827. + if test -n "$kargmax"; then
  19828. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  19829. + else
  19830. + lt_cv_sys_max_cmd_len=32768
  19831. + fi
  19832. + ;;
  19833. + *)
  19834. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  19835. + if test -n "$lt_cv_sys_max_cmd_len"; then
  19836. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  19837. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  19838. + else
  19839. + # Make teststring a little bigger before we do anything with it.
  19840. + # a 1K string should be a reasonable start.
  19841. + for i in 1 2 3 4 5 6 7 8 ; do
  19842. + teststring=$teststring$teststring
  19843. + done
  19844. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  19845. + # If test is not a shell built-in, we'll probably end up computing a
  19846. + # maximum length that is only half of the actual maximum length, but
  19847. + # we can't tell.
  19848. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  19849. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  19850. + test $i != 17 # 1/2 MB should be enough
  19851. + do
  19852. + i=`expr $i + 1`
  19853. + teststring=$teststring$teststring
  19854. + done
  19855. + # Only check the string length outside the loop.
  19856. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  19857. + teststring=
  19858. + # Add a significant safety factor because C++ compilers can tack on
  19859. + # massive amounts of additional arguments before passing them to the
  19860. + # linker. It appears as though 1/2 is a usable value.
  19861. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  19862. + fi
  19863. ;;
  19864. esac
  19865. - ;;
  19866. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  19867. - lt_cv_deplibs_check_method=pass_all
  19868. - ;;
  19869. -esac
  19870. +fi
  19871. +if test -n $lt_cv_sys_max_cmd_len ; then
  19872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  19873. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  19874. +else
  19875. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  19876. +$as_echo "none" >&6; }
  19877. fi
  19878. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  19879. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  19880. -file_magic_cmd=$lt_cv_file_magic_cmd
  19881. -deplibs_check_method=$lt_cv_deplibs_check_method
  19882. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  19883. +max_cmd_len=$lt_cv_sys_max_cmd_len
  19884. -# If no C compiler was specified, use CC.
  19885. -LTCC=${LTCC-"$CC"}
  19886. -# Allow CC to be a program name with arguments.
  19887. -compiler=$CC
  19888. +: ${CP="cp -f"}
  19889. +: ${MV="mv -f"}
  19890. +: ${RM="rm -f"}
  19891. +
  19892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  19893. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  19894. +# Try some XSI features
  19895. +xsi_shell=no
  19896. +( _lt_dummy="a/b/c"
  19897. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  19898. + = c,a/b,, \
  19899. + && eval 'test $(( 1 + 1 )) -eq 2 \
  19900. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  19901. + && xsi_shell=yes
  19902. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  19903. +$as_echo "$xsi_shell" >&6; }
  19904. +
  19905. +
  19906. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  19907. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  19908. +lt_shell_append=no
  19909. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  19910. + >/dev/null 2>&1 \
  19911. + && lt_shell_append=yes
  19912. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  19913. +$as_echo "$lt_shell_append" >&6; }
  19914. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  19915. -if test "${enable_libtool_lock+set}" = set; then
  19916. - enableval="$enable_libtool_lock"
  19917. -fi;
  19918. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  19919. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19920. + lt_unset=unset
  19921. +else
  19922. + lt_unset=false
  19923. +fi
  19924. -# Some flags need to be propagated to the compiler or linker for good
  19925. -# libtool support.
  19926. -case $host in
  19927. -ia64-*-hpux*)
  19928. - # Find out which ABI we are using.
  19929. - echo 'int i;' > conftest.$ac_ext
  19930. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19931. - (eval $ac_compile) 2>&5
  19932. - ac_status=$?
  19933. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19934. - (exit $ac_status); }; then
  19935. - case `/usr/bin/file conftest.$ac_objext` in
  19936. - *ELF-32*)
  19937. - HPUX_IA64_MODE="32"
  19938. - ;;
  19939. - *ELF-64*)
  19940. - HPUX_IA64_MODE="64"
  19941. - ;;
  19942. - esac
  19943. - fi
  19944. - rm -rf conftest*
  19945. +
  19946. +
  19947. +
  19948. +
  19949. +# test EBCDIC or ASCII
  19950. +case `echo X|tr X '\101'` in
  19951. + A) # ASCII based system
  19952. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  19953. + lt_SP2NL='tr \040 \012'
  19954. + lt_NL2SP='tr \015\012 \040\040'
  19955. ;;
  19956. -*-*-irix6*)
  19957. - # Find out which ABI we are using.
  19958. - echo '#line 3667 "configure"' > conftest.$ac_ext
  19959. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19960. - (eval $ac_compile) 2>&5
  19961. - ac_status=$?
  19962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19963. - (exit $ac_status); }; then
  19964. - if test "$lt_cv_prog_gnu_ld" = yes; then
  19965. - case `/usr/bin/file conftest.$ac_objext` in
  19966. - *32-bit*)
  19967. - LD="${LD-ld} -melf32bsmip"
  19968. - ;;
  19969. - *N32*)
  19970. - LD="${LD-ld} -melf32bmipn32"
  19971. - ;;
  19972. - *64-bit*)
  19973. - LD="${LD-ld} -melf64bmip"
  19974. - ;;
  19975. - esac
  19976. - else
  19977. - case `/usr/bin/file conftest.$ac_objext` in
  19978. - *32-bit*)
  19979. - LD="${LD-ld} -32"
  19980. - ;;
  19981. - *N32*)
  19982. - LD="${LD-ld} -n32"
  19983. - ;;
  19984. - *64-bit*)
  19985. - LD="${LD-ld} -64"
  19986. - ;;
  19987. - esac
  19988. - fi
  19989. - fi
  19990. - rm -rf conftest*
  19991. + *) # EBCDIC based system
  19992. + lt_SP2NL='tr \100 \n'
  19993. + lt_NL2SP='tr \r\n \100\100'
  19994. ;;
  19995. +esac
  19996. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  19997. - # Find out which ABI we are using.
  19998. - echo 'int i;' > conftest.$ac_ext
  19999. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20000. - (eval $ac_compile) 2>&5
  20001. - ac_status=$?
  20002. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20003. - (exit $ac_status); }; then
  20004. - case "`/usr/bin/file conftest.o`" in
  20005. - *32-bit*)
  20006. - case $host in
  20007. - x86_64-*linux*)
  20008. - LD="${LD-ld} -m elf_i386"
  20009. - ;;
  20010. - ppc64-*linux*|powerpc64-*linux*)
  20011. - LD="${LD-ld} -m elf32ppclinux"
  20012. - ;;
  20013. - s390x-*linux*)
  20014. - LD="${LD-ld} -m elf_s390"
  20015. - ;;
  20016. - sparc64-*linux*)
  20017. - LD="${LD-ld} -m elf32_sparc"
  20018. - ;;
  20019. - esac
  20020. - ;;
  20021. - *64-bit*)
  20022. - case $host in
  20023. - x86_64-*linux*)
  20024. - LD="${LD-ld} -m elf_x86_64"
  20025. - ;;
  20026. - ppc*-*linux*|powerpc*-*linux*)
  20027. - LD="${LD-ld} -m elf64ppc"
  20028. - ;;
  20029. - s390*-*linux*)
  20030. - LD="${LD-ld} -m elf64_s390"
  20031. - ;;
  20032. - sparc*-*linux*)
  20033. - LD="${LD-ld} -m elf64_sparc"
  20034. - ;;
  20035. - esac
  20036. - ;;
  20037. - esac
  20038. - fi
  20039. - rm -rf conftest*
  20040. - ;;
  20041. -*-*-sco3.2v5*)
  20042. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  20043. - SAVE_CFLAGS="$CFLAGS"
  20044. - CFLAGS="$CFLAGS -belf"
  20045. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  20046. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  20047. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  20048. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20049. -else
  20050. - ac_ext=c
  20051. -ac_cpp='$CPP $CPPFLAGS'
  20052. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20053. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20054. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20055. - cat >conftest.$ac_ext <<_ACEOF
  20056. -/* confdefs.h. */
  20057. -_ACEOF
  20058. -cat confdefs.h >>conftest.$ac_ext
  20059. -cat >>conftest.$ac_ext <<_ACEOF
  20060. -/* end confdefs.h. */
  20061. -int
  20062. -main ()
  20063. -{
  20064. - ;
  20065. - return 0;
  20066. -}
  20067. -_ACEOF
  20068. -rm -f conftest.$ac_objext conftest$ac_exeext
  20069. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20070. - (eval $ac_link) 2>conftest.er1
  20071. - ac_status=$?
  20072. - grep -v '^ *+' conftest.er1 >conftest.err
  20073. - rm -f conftest.er1
  20074. - cat conftest.err >&5
  20075. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20076. - (exit $ac_status); } &&
  20077. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20078. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20079. - (eval $ac_try) 2>&5
  20080. - ac_status=$?
  20081. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20082. - (exit $ac_status); }; } &&
  20083. - { ac_try='test -s conftest$ac_exeext'
  20084. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20085. - (eval $ac_try) 2>&5
  20086. - ac_status=$?
  20087. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20088. - (exit $ac_status); }; }; then
  20089. - lt_cv_cc_needs_belf=yes
  20090. -else
  20091. - echo "$as_me: failed program was:" >&5
  20092. -sed 's/^/| /' conftest.$ac_ext >&5
  20093. -lt_cv_cc_needs_belf=no
  20094. -fi
  20095. -rm -f conftest.err conftest.$ac_objext \
  20096. - conftest$ac_exeext conftest.$ac_ext
  20097. - ac_ext=c
  20098. -ac_cpp='$CPP $CPPFLAGS'
  20099. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20100. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20101. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20102. -fi
  20103. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  20104. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  20105. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  20106. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  20107. - CFLAGS="$SAVE_CFLAGS"
  20108. - fi
  20109. - ;;
  20110. +
  20111. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  20112. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  20113. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  20114. + $as_echo_n "(cached) " >&6
  20115. +else
  20116. + lt_cv_ld_reload_flag='-r'
  20117. +fi
  20118. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  20119. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  20120. +reload_flag=$lt_cv_ld_reload_flag
  20121. +case $reload_flag in
  20122. +"" | " "*) ;;
  20123. +*) reload_flag=" $reload_flag" ;;
  20124. +esac
  20125. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20126. +case $host_os in
  20127. + darwin*)
  20128. + if test "$GCC" = yes; then
  20129. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  20130. + else
  20131. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  20132. + fi
  20133. + ;;
  20134. esac
  20135. -need_locks="$enable_libtool_lock"
  20136. -ac_ext=c
  20137. -ac_cpp='$CPP $CPPFLAGS'
  20138. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20139. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20140. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20141. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  20142. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  20143. -# On Suns, sometimes $CPP names a directory.
  20144. -if test -n "$CPP" && test -d "$CPP"; then
  20145. - CPP=
  20146. -fi
  20147. -if test -z "$CPP"; then
  20148. - if test "${ac_cv_prog_CPP+set}" = set; then
  20149. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20150. +
  20151. +
  20152. +
  20153. +
  20154. +
  20155. +
  20156. +if test -n "$ac_tool_prefix"; then
  20157. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  20158. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  20159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20160. +$as_echo_n "checking for $ac_word... " >&6; }
  20161. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  20162. + $as_echo_n "(cached) " >&6
  20163. else
  20164. - # Double quotes because CPP needs to be expanded
  20165. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  20166. - do
  20167. - ac_preproc_ok=false
  20168. -for ac_c_preproc_warn_flag in '' yes
  20169. + if test -n "$OBJDUMP"; then
  20170. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  20171. +else
  20172. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20173. +for as_dir in $PATH
  20174. do
  20175. - # Use a header file that comes with gcc, so configuring glibc
  20176. - # with a fresh cross-compiler works.
  20177. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20178. - # <limits.h> exists even on freestanding compilers.
  20179. - # On the NeXT, cc -E runs the code through the compiler's parser,
  20180. - # not just through cpp. "Syntax error" is here to catch this case.
  20181. - cat >conftest.$ac_ext <<_ACEOF
  20182. -/* confdefs.h. */
  20183. -_ACEOF
  20184. -cat confdefs.h >>conftest.$ac_ext
  20185. -cat >>conftest.$ac_ext <<_ACEOF
  20186. -/* end confdefs.h. */
  20187. -#ifdef __STDC__
  20188. -# include <limits.h>
  20189. -#else
  20190. -# include <assert.h>
  20191. -#endif
  20192. - Syntax error
  20193. -_ACEOF
  20194. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20195. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20196. - ac_status=$?
  20197. - grep -v '^ *+' conftest.er1 >conftest.err
  20198. - rm -f conftest.er1
  20199. - cat conftest.err >&5
  20200. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20201. - (exit $ac_status); } >/dev/null; then
  20202. - if test -s conftest.err; then
  20203. - ac_cpp_err=$ac_c_preproc_warn_flag
  20204. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20205. - else
  20206. - ac_cpp_err=
  20207. + IFS=$as_save_IFS
  20208. + test -z "$as_dir" && as_dir=.
  20209. + for ac_exec_ext in '' $ac_executable_extensions; do
  20210. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20211. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  20212. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20213. + break 2
  20214. fi
  20215. -else
  20216. - ac_cpp_err=yes
  20217. -fi
  20218. -if test -z "$ac_cpp_err"; then
  20219. - :
  20220. -else
  20221. - echo "$as_me: failed program was:" >&5
  20222. -sed 's/^/| /' conftest.$ac_ext >&5
  20223. +done
  20224. + done
  20225. +IFS=$as_save_IFS
  20226. - # Broken: fails on valid input.
  20227. -continue
  20228. fi
  20229. -rm -f conftest.err conftest.$ac_ext
  20230. -
  20231. - # OK, works on sane cases. Now check whether non-existent headers
  20232. - # can be detected and how.
  20233. - cat >conftest.$ac_ext <<_ACEOF
  20234. -/* confdefs.h. */
  20235. -_ACEOF
  20236. -cat confdefs.h >>conftest.$ac_ext
  20237. -cat >>conftest.$ac_ext <<_ACEOF
  20238. -/* end confdefs.h. */
  20239. -#include <ac_nonexistent.h>
  20240. -_ACEOF
  20241. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20242. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20243. - ac_status=$?
  20244. - grep -v '^ *+' conftest.er1 >conftest.err
  20245. - rm -f conftest.er1
  20246. - cat conftest.err >&5
  20247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20248. - (exit $ac_status); } >/dev/null; then
  20249. - if test -s conftest.err; then
  20250. - ac_cpp_err=$ac_c_preproc_warn_flag
  20251. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20252. - else
  20253. - ac_cpp_err=
  20254. - fi
  20255. -else
  20256. - ac_cpp_err=yes
  20257. fi
  20258. -if test -z "$ac_cpp_err"; then
  20259. - # Broken: success on invalid input.
  20260. -continue
  20261. +OBJDUMP=$ac_cv_prog_OBJDUMP
  20262. +if test -n "$OBJDUMP"; then
  20263. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  20264. +$as_echo "$OBJDUMP" >&6; }
  20265. else
  20266. - echo "$as_me: failed program was:" >&5
  20267. -sed 's/^/| /' conftest.$ac_ext >&5
  20268. -
  20269. - # Passes both tests.
  20270. -ac_preproc_ok=:
  20271. -break
  20272. -fi
  20273. -rm -f conftest.err conftest.$ac_ext
  20274. -
  20275. -done
  20276. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20277. -rm -f conftest.err conftest.$ac_ext
  20278. -if $ac_preproc_ok; then
  20279. - break
  20280. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20281. +$as_echo "no" >&6; }
  20282. fi
  20283. - done
  20284. - ac_cv_prog_CPP=$CPP
  20285. fi
  20286. - CPP=$ac_cv_prog_CPP
  20287. +if test -z "$ac_cv_prog_OBJDUMP"; then
  20288. + ac_ct_OBJDUMP=$OBJDUMP
  20289. + # Extract the first word of "objdump", so it can be a program name with args.
  20290. +set dummy objdump; ac_word=$2
  20291. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20292. +$as_echo_n "checking for $ac_word... " >&6; }
  20293. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  20294. + $as_echo_n "(cached) " >&6
  20295. else
  20296. - ac_cv_prog_CPP=$CPP
  20297. -fi
  20298. -echo "$as_me:$LINENO: result: $CPP" >&5
  20299. -echo "${ECHO_T}$CPP" >&6
  20300. -ac_preproc_ok=false
  20301. -for ac_c_preproc_warn_flag in '' yes
  20302. + if test -n "$ac_ct_OBJDUMP"; then
  20303. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  20304. +else
  20305. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20306. +for as_dir in $PATH
  20307. do
  20308. - # Use a header file that comes with gcc, so configuring glibc
  20309. - # with a fresh cross-compiler works.
  20310. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  20311. - # <limits.h> exists even on freestanding compilers.
  20312. - # On the NeXT, cc -E runs the code through the compiler's parser,
  20313. - # not just through cpp. "Syntax error" is here to catch this case.
  20314. - cat >conftest.$ac_ext <<_ACEOF
  20315. -/* confdefs.h. */
  20316. -_ACEOF
  20317. -cat confdefs.h >>conftest.$ac_ext
  20318. -cat >>conftest.$ac_ext <<_ACEOF
  20319. -/* end confdefs.h. */
  20320. -#ifdef __STDC__
  20321. -# include <limits.h>
  20322. -#else
  20323. -# include <assert.h>
  20324. -#endif
  20325. - Syntax error
  20326. -_ACEOF
  20327. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20328. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20329. - ac_status=$?
  20330. - grep -v '^ *+' conftest.er1 >conftest.err
  20331. - rm -f conftest.er1
  20332. - cat conftest.err >&5
  20333. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20334. - (exit $ac_status); } >/dev/null; then
  20335. - if test -s conftest.err; then
  20336. - ac_cpp_err=$ac_c_preproc_warn_flag
  20337. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20338. - else
  20339. - ac_cpp_err=
  20340. + IFS=$as_save_IFS
  20341. + test -z "$as_dir" && as_dir=.
  20342. + for ac_exec_ext in '' $ac_executable_extensions; do
  20343. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  20344. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  20345. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  20346. + break 2
  20347. fi
  20348. -else
  20349. - ac_cpp_err=yes
  20350. +done
  20351. + done
  20352. +IFS=$as_save_IFS
  20353. +
  20354. fi
  20355. -if test -z "$ac_cpp_err"; then
  20356. - :
  20357. +fi
  20358. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  20359. +if test -n "$ac_ct_OBJDUMP"; then
  20360. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  20361. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  20362. else
  20363. - echo "$as_me: failed program was:" >&5
  20364. -sed 's/^/| /' conftest.$ac_ext >&5
  20365. -
  20366. - # Broken: fails on valid input.
  20367. -continue
  20368. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  20369. +$as_echo "no" >&6; }
  20370. fi
  20371. -rm -f conftest.err conftest.$ac_ext
  20372. - # OK, works on sane cases. Now check whether non-existent headers
  20373. - # can be detected and how.
  20374. - cat >conftest.$ac_ext <<_ACEOF
  20375. -/* confdefs.h. */
  20376. -_ACEOF
  20377. -cat confdefs.h >>conftest.$ac_ext
  20378. -cat >>conftest.$ac_ext <<_ACEOF
  20379. -/* end confdefs.h. */
  20380. -#include <ac_nonexistent.h>
  20381. -_ACEOF
  20382. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20383. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20384. - ac_status=$?
  20385. - grep -v '^ *+' conftest.er1 >conftest.err
  20386. - rm -f conftest.er1
  20387. - cat conftest.err >&5
  20388. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20389. - (exit $ac_status); } >/dev/null; then
  20390. - if test -s conftest.err; then
  20391. - ac_cpp_err=$ac_c_preproc_warn_flag
  20392. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20393. + if test "x$ac_ct_OBJDUMP" = x; then
  20394. + OBJDUMP="false"
  20395. else
  20396. - ac_cpp_err=
  20397. + case $cross_compiling:$ac_tool_warned in
  20398. +yes:)
  20399. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  20400. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  20401. +ac_tool_warned=yes ;;
  20402. +esac
  20403. + OBJDUMP=$ac_ct_OBJDUMP
  20404. fi
  20405. else
  20406. - ac_cpp_err=yes
  20407. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  20408. fi
  20409. -if test -z "$ac_cpp_err"; then
  20410. - # Broken: success on invalid input.
  20411. -continue
  20412. -else
  20413. - echo "$as_me: failed program was:" >&5
  20414. -sed 's/^/| /' conftest.$ac_ext >&5
  20415. - # Passes both tests.
  20416. -ac_preproc_ok=:
  20417. -break
  20418. -fi
  20419. -rm -f conftest.err conftest.$ac_ext
  20420. +test -z "$OBJDUMP" && OBJDUMP=objdump
  20421. -done
  20422. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  20423. -rm -f conftest.err conftest.$ac_ext
  20424. -if $ac_preproc_ok; then
  20425. - :
  20426. -else
  20427. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  20428. -See \`config.log' for more details." >&5
  20429. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  20430. -See \`config.log' for more details." >&2;}
  20431. - { (exit 1); exit 1; }; }
  20432. -fi
  20433. -ac_ext=c
  20434. -ac_cpp='$CPP $CPPFLAGS'
  20435. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20436. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20437. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20438. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  20439. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  20440. -if test "${ac_cv_header_stdc+set}" = set; then
  20441. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20442. -else
  20443. - cat >conftest.$ac_ext <<_ACEOF
  20444. -/* confdefs.h. */
  20445. -_ACEOF
  20446. -cat confdefs.h >>conftest.$ac_ext
  20447. -cat >>conftest.$ac_ext <<_ACEOF
  20448. -/* end confdefs.h. */
  20449. -#include <stdlib.h>
  20450. -#include <stdarg.h>
  20451. -#include <string.h>
  20452. -#include <float.h>
  20453. -int
  20454. -main ()
  20455. -{
  20456. - ;
  20457. - return 0;
  20458. -}
  20459. -_ACEOF
  20460. -rm -f conftest.$ac_objext
  20461. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20462. - (eval $ac_compile) 2>conftest.er1
  20463. - ac_status=$?
  20464. - grep -v '^ *+' conftest.er1 >conftest.err
  20465. - rm -f conftest.er1
  20466. - cat conftest.err >&5
  20467. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20468. - (exit $ac_status); } &&
  20469. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20470. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20471. - (eval $ac_try) 2>&5
  20472. - ac_status=$?
  20473. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20474. - (exit $ac_status); }; } &&
  20475. - { ac_try='test -s conftest.$ac_objext'
  20476. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20477. - (eval $ac_try) 2>&5
  20478. - ac_status=$?
  20479. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20480. - (exit $ac_status); }; }; then
  20481. - ac_cv_header_stdc=yes
  20482. -else
  20483. - echo "$as_me: failed program was:" >&5
  20484. -sed 's/^/| /' conftest.$ac_ext >&5
  20485. -ac_cv_header_stdc=no
  20486. -fi
  20487. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20488. -if test $ac_cv_header_stdc = yes; then
  20489. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  20490. - cat >conftest.$ac_ext <<_ACEOF
  20491. -/* confdefs.h. */
  20492. -_ACEOF
  20493. -cat confdefs.h >>conftest.$ac_ext
  20494. -cat >>conftest.$ac_ext <<_ACEOF
  20495. -/* end confdefs.h. */
  20496. -#include <string.h>
  20497. -_ACEOF
  20498. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20499. - $EGREP "memchr" >/dev/null 2>&1; then
  20500. - :
  20501. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  20502. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  20503. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  20504. + $as_echo_n "(cached) " >&6
  20505. else
  20506. - ac_cv_header_stdc=no
  20507. -fi
  20508. -rm -f conftest*
  20509. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  20510. +lt_cv_file_magic_test_file=
  20511. +lt_cv_deplibs_check_method='unknown'
  20512. +# Need to set the preceding variable on all platforms that support
  20513. +# interlibrary dependencies.
  20514. +# 'none' -- dependencies not supported.
  20515. +# `unknown' -- same as none, but documents that we really don't know.
  20516. +# 'pass_all' -- all dependencies passed with no checks.
  20517. +# 'test_compile' -- check by making test program.
  20518. +# 'file_magic [[regex]]' -- check by looking for files in library path
  20519. +# which responds to the $file_magic_cmd with a given extended regex.
  20520. +# If you have `file' or equivalent on your system and you're not sure
  20521. +# whether `pass_all' will *always* work, you probably want this one.
  20522. -fi
  20523. +case $host_os in
  20524. +aix[4-9]*)
  20525. + lt_cv_deplibs_check_method=pass_all
  20526. + ;;
  20527. -if test $ac_cv_header_stdc = yes; then
  20528. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  20529. - cat >conftest.$ac_ext <<_ACEOF
  20530. -/* confdefs.h. */
  20531. -_ACEOF
  20532. -cat confdefs.h >>conftest.$ac_ext
  20533. -cat >>conftest.$ac_ext <<_ACEOF
  20534. -/* end confdefs.h. */
  20535. -#include <stdlib.h>
  20536. +beos*)
  20537. + lt_cv_deplibs_check_method=pass_all
  20538. + ;;
  20539. -_ACEOF
  20540. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  20541. - $EGREP "free" >/dev/null 2>&1; then
  20542. - :
  20543. -else
  20544. - ac_cv_header_stdc=no
  20545. -fi
  20546. -rm -f conftest*
  20547. +bsdi[45]*)
  20548. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  20549. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  20550. + lt_cv_file_magic_test_file=/shlib/libc.so
  20551. + ;;
  20552. -fi
  20553. +cygwin*)
  20554. + # func_win32_libid is a shell function defined in ltmain.sh
  20555. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20556. + lt_cv_file_magic_cmd='func_win32_libid'
  20557. + ;;
  20558. -if test $ac_cv_header_stdc = yes; then
  20559. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  20560. - if test "$cross_compiling" = yes; then
  20561. - :
  20562. -else
  20563. - cat >conftest.$ac_ext <<_ACEOF
  20564. -/* confdefs.h. */
  20565. -_ACEOF
  20566. -cat confdefs.h >>conftest.$ac_ext
  20567. -cat >>conftest.$ac_ext <<_ACEOF
  20568. -/* end confdefs.h. */
  20569. -#include <ctype.h>
  20570. -#if ((' ' & 0x0FF) == 0x020)
  20571. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  20572. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  20573. -#else
  20574. -# define ISLOWER(c) \
  20575. - (('a' <= (c) && (c) <= 'i') \
  20576. - || ('j' <= (c) && (c) <= 'r') \
  20577. - || ('s' <= (c) && (c) <= 'z'))
  20578. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  20579. -#endif
  20580. +mingw* | pw32*)
  20581. + # Base MSYS/MinGW do not provide the 'file' command needed by
  20582. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  20583. + # unless we find 'file', for example because we are cross-compiling.
  20584. + if ( file / ) >/dev/null 2>&1; then
  20585. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  20586. + lt_cv_file_magic_cmd='func_win32_libid'
  20587. + else
  20588. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  20589. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  20590. + fi
  20591. + ;;
  20592. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  20593. -int
  20594. -main ()
  20595. -{
  20596. - int i;
  20597. - for (i = 0; i < 256; i++)
  20598. - if (XOR (islower (i), ISLOWER (i))
  20599. - || toupper (i) != TOUPPER (i))
  20600. - exit(2);
  20601. - exit (0);
  20602. -}
  20603. -_ACEOF
  20604. -rm -f conftest$ac_exeext
  20605. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  20606. - (eval $ac_link) 2>&5
  20607. - ac_status=$?
  20608. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20609. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  20610. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20611. - (eval $ac_try) 2>&5
  20612. - ac_status=$?
  20613. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20614. - (exit $ac_status); }; }; then
  20615. - :
  20616. -else
  20617. - echo "$as_me: program exited with status $ac_status" >&5
  20618. -echo "$as_me: failed program was:" >&5
  20619. -sed 's/^/| /' conftest.$ac_ext >&5
  20620. +cegcc)
  20621. + # use the weaker test based on 'objdump'. See mingw*.
  20622. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  20623. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  20624. + ;;
  20625. -( exit $ac_status )
  20626. -ac_cv_header_stdc=no
  20627. -fi
  20628. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  20629. -fi
  20630. -fi
  20631. -fi
  20632. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  20633. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  20634. -if test $ac_cv_header_stdc = yes; then
  20635. +darwin* | rhapsody*)
  20636. + lt_cv_deplibs_check_method=pass_all
  20637. + ;;
  20638. -cat >>confdefs.h <<\_ACEOF
  20639. -#define STDC_HEADERS 1
  20640. -_ACEOF
  20641. +freebsd* | dragonfly*)
  20642. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  20643. + case $host_cpu in
  20644. + i*86 )
  20645. + # Not sure whether the presence of OpenBSD here was a mistake.
  20646. + # Let's accept both of them until this is cleared up.
  20647. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  20648. + lt_cv_file_magic_cmd=/usr/bin/file
  20649. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  20650. + ;;
  20651. + esac
  20652. + else
  20653. + lt_cv_deplibs_check_method=pass_all
  20654. + fi
  20655. + ;;
  20656. -fi
  20657. +gnu*)
  20658. + lt_cv_deplibs_check_method=pass_all
  20659. + ;;
  20660. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  20661. +hpux10.20* | hpux11*)
  20662. + lt_cv_file_magic_cmd=/usr/bin/file
  20663. + case $host_cpu in
  20664. + ia64*)
  20665. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  20666. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  20667. + ;;
  20668. + hppa*64*)
  20669. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
  20670. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  20671. + ;;
  20672. + *)
  20673. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  20674. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  20675. + ;;
  20676. + esac
  20677. + ;;
  20678. +
  20679. +interix[3-9]*)
  20680. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  20681. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  20682. + ;;
  20683. +
  20684. +irix5* | irix6* | nonstopux*)
  20685. + case $LD in
  20686. + *-32|*"-32 ") libmagic=32-bit;;
  20687. + *-n32|*"-n32 ") libmagic=N32;;
  20688. + *-64|*"-64 ") libmagic=64-bit;;
  20689. + *) libmagic=never-match;;
  20690. + esac
  20691. + lt_cv_deplibs_check_method=pass_all
  20692. + ;;
  20693. +# This must be Linux ELF.
  20694. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  20695. + lt_cv_deplibs_check_method=pass_all
  20696. + ;;
  20697. +netbsd* | netbsdelf*-gnu)
  20698. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  20699. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20700. + else
  20701. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  20702. + fi
  20703. + ;;
  20704. +newos6*)
  20705. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  20706. + lt_cv_file_magic_cmd=/usr/bin/file
  20707. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  20708. + ;;
  20709. +*nto* | *qnx*)
  20710. + lt_cv_deplibs_check_method=pass_all
  20711. + ;;
  20712. +openbsd*)
  20713. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  20714. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  20715. + else
  20716. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  20717. + fi
  20718. + ;;
  20719. +osf3* | osf4* | osf5*)
  20720. + lt_cv_deplibs_check_method=pass_all
  20721. + ;;
  20722. +rdos*)
  20723. + lt_cv_deplibs_check_method=pass_all
  20724. + ;;
  20725. +solaris*)
  20726. + lt_cv_deplibs_check_method=pass_all
  20727. + ;;
  20728. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  20729. - inttypes.h stdint.h unistd.h
  20730. -do
  20731. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20732. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  20733. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20734. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20735. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20736. -else
  20737. - cat >conftest.$ac_ext <<_ACEOF
  20738. -/* confdefs.h. */
  20739. -_ACEOF
  20740. -cat confdefs.h >>conftest.$ac_ext
  20741. -cat >>conftest.$ac_ext <<_ACEOF
  20742. -/* end confdefs.h. */
  20743. -$ac_includes_default
  20744. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  20745. + lt_cv_deplibs_check_method=pass_all
  20746. + ;;
  20747. -#include <$ac_header>
  20748. -_ACEOF
  20749. -rm -f conftest.$ac_objext
  20750. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20751. - (eval $ac_compile) 2>conftest.er1
  20752. - ac_status=$?
  20753. - grep -v '^ *+' conftest.er1 >conftest.err
  20754. - rm -f conftest.er1
  20755. - cat conftest.err >&5
  20756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20757. - (exit $ac_status); } &&
  20758. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20759. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20760. - (eval $ac_try) 2>&5
  20761. - ac_status=$?
  20762. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20763. - (exit $ac_status); }; } &&
  20764. - { ac_try='test -s conftest.$ac_objext'
  20765. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20766. - (eval $ac_try) 2>&5
  20767. - ac_status=$?
  20768. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20769. - (exit $ac_status); }; }; then
  20770. - eval "$as_ac_Header=yes"
  20771. -else
  20772. - echo "$as_me: failed program was:" >&5
  20773. -sed 's/^/| /' conftest.$ac_ext >&5
  20774. +sysv4 | sysv4.3*)
  20775. + case $host_vendor in
  20776. + motorola)
  20777. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
  20778. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  20779. + ;;
  20780. + ncr)
  20781. + lt_cv_deplibs_check_method=pass_all
  20782. + ;;
  20783. + sequent)
  20784. + lt_cv_file_magic_cmd='/bin/file'
  20785. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  20786. + ;;
  20787. + sni)
  20788. + lt_cv_file_magic_cmd='/bin/file'
  20789. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  20790. + lt_cv_file_magic_test_file=/lib/libc.so
  20791. + ;;
  20792. + siemens)
  20793. + lt_cv_deplibs_check_method=pass_all
  20794. + ;;
  20795. + pc)
  20796. + lt_cv_deplibs_check_method=pass_all
  20797. + ;;
  20798. + esac
  20799. + ;;
  20800. -eval "$as_ac_Header=no"
  20801. -fi
  20802. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20803. -fi
  20804. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20805. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20806. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20807. - cat >>confdefs.h <<_ACEOF
  20808. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20809. -_ACEOF
  20810. +tpf*)
  20811. + lt_cv_deplibs_check_method=pass_all
  20812. + ;;
  20813. +esac
  20814. fi
  20815. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  20816. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  20817. +file_magic_cmd=$lt_cv_file_magic_cmd
  20818. +deplibs_check_method=$lt_cv_deplibs_check_method
  20819. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  20820. +
  20821. -done
  20822. -for ac_header in dlfcn.h
  20823. -do
  20824. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  20825. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20826. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  20827. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20828. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20829. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20830. -fi
  20831. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20832. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20833. -else
  20834. - # Is the header compilable?
  20835. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  20836. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  20837. -cat >conftest.$ac_ext <<_ACEOF
  20838. -/* confdefs.h. */
  20839. -_ACEOF
  20840. -cat confdefs.h >>conftest.$ac_ext
  20841. -cat >>conftest.$ac_ext <<_ACEOF
  20842. -/* end confdefs.h. */
  20843. -$ac_includes_default
  20844. -#include <$ac_header>
  20845. -_ACEOF
  20846. -rm -f conftest.$ac_objext
  20847. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20848. - (eval $ac_compile) 2>conftest.er1
  20849. - ac_status=$?
  20850. - grep -v '^ *+' conftest.er1 >conftest.err
  20851. - rm -f conftest.er1
  20852. - cat conftest.err >&5
  20853. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20854. - (exit $ac_status); } &&
  20855. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  20856. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20857. - (eval $ac_try) 2>&5
  20858. - ac_status=$?
  20859. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20860. - (exit $ac_status); }; } &&
  20861. - { ac_try='test -s conftest.$ac_objext'
  20862. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20863. - (eval $ac_try) 2>&5
  20864. - ac_status=$?
  20865. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20866. - (exit $ac_status); }; }; then
  20867. - ac_header_compiler=yes
  20868. -else
  20869. - echo "$as_me: failed program was:" >&5
  20870. -sed 's/^/| /' conftest.$ac_ext >&5
  20871. -ac_header_compiler=no
  20872. -fi
  20873. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20874. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  20875. -echo "${ECHO_T}$ac_header_compiler" >&6
  20876. -
  20877. -# Is the header present?
  20878. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  20879. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  20880. -cat >conftest.$ac_ext <<_ACEOF
  20881. -/* confdefs.h. */
  20882. -_ACEOF
  20883. -cat confdefs.h >>conftest.$ac_ext
  20884. -cat >>conftest.$ac_ext <<_ACEOF
  20885. -/* end confdefs.h. */
  20886. -#include <$ac_header>
  20887. -_ACEOF
  20888. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  20889. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  20890. - ac_status=$?
  20891. - grep -v '^ *+' conftest.er1 >conftest.err
  20892. - rm -f conftest.er1
  20893. - cat conftest.err >&5
  20894. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20895. - (exit $ac_status); } >/dev/null; then
  20896. - if test -s conftest.err; then
  20897. - ac_cpp_err=$ac_c_preproc_warn_flag
  20898. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  20899. - else
  20900. - ac_cpp_err=
  20901. - fi
  20902. -else
  20903. - ac_cpp_err=yes
  20904. -fi
  20905. -if test -z "$ac_cpp_err"; then
  20906. - ac_header_preproc=yes
  20907. -else
  20908. - echo "$as_me: failed program was:" >&5
  20909. -sed 's/^/| /' conftest.$ac_ext >&5
  20910. - ac_header_preproc=no
  20911. -fi
  20912. -rm -f conftest.err conftest.$ac_ext
  20913. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  20914. -echo "${ECHO_T}$ac_header_preproc" >&6
  20915. -# So? What about this header?
  20916. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  20917. - yes:no: )
  20918. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  20919. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  20920. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  20921. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  20922. - ac_header_preproc=yes
  20923. - ;;
  20924. - no:yes:* )
  20925. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  20926. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  20927. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  20928. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  20929. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  20930. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  20931. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  20932. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  20933. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  20934. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  20935. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  20936. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  20937. - (
  20938. - cat <<\_ASBOX
  20939. -## ------------------------------------------ ##
  20940. -## Report this to the AC_PACKAGE_NAME lists. ##
  20941. -## ------------------------------------------ ##
  20942. -_ASBOX
  20943. - ) |
  20944. - sed "s/^/$as_me: WARNING: /" >&2
  20945. - ;;
  20946. -esac
  20947. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  20948. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  20949. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  20950. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20951. -else
  20952. - eval "$as_ac_Header=\$ac_header_preproc"
  20953. -fi
  20954. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  20955. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  20956. -fi
  20957. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  20958. - cat >>confdefs.h <<_ACEOF
  20959. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  20960. -_ACEOF
  20961. -fi
  20962. -done
  20963. -ac_ext=cc
  20964. -ac_cpp='$CXXCPP $CPPFLAGS'
  20965. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20966. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  20967. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  20968. if test -n "$ac_tool_prefix"; then
  20969. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  20970. - do
  20971. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  20972. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  20973. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  20974. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  20975. -if test "${ac_cv_prog_CXX+set}" = set; then
  20976. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20977. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  20978. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  20979. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  20980. +$as_echo_n "checking for $ac_word... " >&6; }
  20981. +if test "${ac_cv_prog_AR+set}" = set; then :
  20982. + $as_echo_n "(cached) " >&6
  20983. else
  20984. - if test -n "$CXX"; then
  20985. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  20986. + if test -n "$AR"; then
  20987. + ac_cv_prog_AR="$AR" # Let the user override the test.
  20988. else
  20989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20990. for as_dir in $PATH
  20991. do
  20992. IFS=$as_save_IFS
  20993. test -z "$as_dir" && as_dir=.
  20994. - for ac_exec_ext in '' $ac_executable_extensions; do
  20995. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  20996. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  20997. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  20998. + for ac_exec_ext in '' $ac_executable_extensions; do
  20999. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21000. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  21001. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21002. break 2
  21003. fi
  21004. done
  21005. -done
  21006. + done
  21007. +IFS=$as_save_IFS
  21008. fi
  21009. fi
  21010. -CXX=$ac_cv_prog_CXX
  21011. -if test -n "$CXX"; then
  21012. - echo "$as_me:$LINENO: result: $CXX" >&5
  21013. -echo "${ECHO_T}$CXX" >&6
  21014. +AR=$ac_cv_prog_AR
  21015. +if test -n "$AR"; then
  21016. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  21017. +$as_echo "$AR" >&6; }
  21018. else
  21019. - echo "$as_me:$LINENO: result: no" >&5
  21020. -echo "${ECHO_T}no" >&6
  21021. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21022. +$as_echo "no" >&6; }
  21023. fi
  21024. - test -n "$CXX" && break
  21025. - done
  21026. +
  21027. fi
  21028. -if test -z "$CXX"; then
  21029. - ac_ct_CXX=$CXX
  21030. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  21031. -do
  21032. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21033. -set dummy $ac_prog; ac_word=$2
  21034. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  21035. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21036. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  21037. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21038. +if test -z "$ac_cv_prog_AR"; then
  21039. + ac_ct_AR=$AR
  21040. + # Extract the first word of "ar", so it can be a program name with args.
  21041. +set dummy ar; ac_word=$2
  21042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21043. +$as_echo_n "checking for $ac_word... " >&6; }
  21044. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  21045. + $as_echo_n "(cached) " >&6
  21046. else
  21047. - if test -n "$ac_ct_CXX"; then
  21048. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  21049. + if test -n "$ac_ct_AR"; then
  21050. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  21051. else
  21052. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21053. for as_dir in $PATH
  21054. do
  21055. IFS=$as_save_IFS
  21056. test -z "$as_dir" && as_dir=.
  21057. - for ac_exec_ext in '' $ac_executable_extensions; do
  21058. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21059. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  21060. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21061. + for ac_exec_ext in '' $ac_executable_extensions; do
  21062. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21063. + ac_cv_prog_ac_ct_AR="ar"
  21064. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21065. break 2
  21066. fi
  21067. done
  21068. -done
  21069. + done
  21070. +IFS=$as_save_IFS
  21071. fi
  21072. fi
  21073. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  21074. -if test -n "$ac_ct_CXX"; then
  21075. - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  21076. -echo "${ECHO_T}$ac_ct_CXX" >&6
  21077. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  21078. +if test -n "$ac_ct_AR"; then
  21079. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  21080. +$as_echo "$ac_ct_AR" >&6; }
  21081. else
  21082. - echo "$as_me:$LINENO: result: no" >&5
  21083. -echo "${ECHO_T}no" >&6
  21084. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21085. +$as_echo "no" >&6; }
  21086. fi
  21087. - test -n "$ac_ct_CXX" && break
  21088. -done
  21089. -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  21090. -
  21091. - CXX=$ac_ct_CXX
  21092. + if test "x$ac_ct_AR" = x; then
  21093. + AR="false"
  21094. + else
  21095. + case $cross_compiling:$ac_tool_warned in
  21096. +yes:)
  21097. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21098. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21099. +ac_tool_warned=yes ;;
  21100. +esac
  21101. + AR=$ac_ct_AR
  21102. + fi
  21103. +else
  21104. + AR="$ac_cv_prog_AR"
  21105. fi
  21106. +test -z "$AR" && AR=ar
  21107. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  21108. -# Provide some information about the compiler.
  21109. -echo "$as_me:$LINENO:" \
  21110. - "checking for C++ compiler version" >&5
  21111. -ac_compiler=`set X $ac_compile; echo $2`
  21112. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  21113. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  21114. - ac_status=$?
  21115. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21116. - (exit $ac_status); }
  21117. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  21118. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  21119. - ac_status=$?
  21120. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21121. - (exit $ac_status); }
  21122. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  21123. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  21124. - ac_status=$?
  21125. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21126. - (exit $ac_status); }
  21127. -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  21128. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  21129. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  21130. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21131. -else
  21132. - cat >conftest.$ac_ext <<_ACEOF
  21133. -/* confdefs.h. */
  21134. -_ACEOF
  21135. -cat confdefs.h >>conftest.$ac_ext
  21136. -cat >>conftest.$ac_ext <<_ACEOF
  21137. -/* end confdefs.h. */
  21138. -int
  21139. -main ()
  21140. -{
  21141. -#ifndef __GNUC__
  21142. - choke me
  21143. -#endif
  21144. - ;
  21145. - return 0;
  21146. -}
  21147. -_ACEOF
  21148. -rm -f conftest.$ac_objext
  21149. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21150. - (eval $ac_compile) 2>conftest.er1
  21151. - ac_status=$?
  21152. - grep -v '^ *+' conftest.er1 >conftest.err
  21153. - rm -f conftest.er1
  21154. - cat conftest.err >&5
  21155. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21156. - (exit $ac_status); } &&
  21157. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21158. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21159. - (eval $ac_try) 2>&5
  21160. - ac_status=$?
  21161. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21162. - (exit $ac_status); }; } &&
  21163. - { ac_try='test -s conftest.$ac_objext'
  21164. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21165. - (eval $ac_try) 2>&5
  21166. - ac_status=$?
  21167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21168. - (exit $ac_status); }; }; then
  21169. - ac_compiler_gnu=yes
  21170. -else
  21171. - echo "$as_me: failed program was:" >&5
  21172. -sed 's/^/| /' conftest.$ac_ext >&5
  21173. -ac_compiler_gnu=no
  21174. -fi
  21175. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21176. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  21177. -fi
  21178. -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  21179. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  21180. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  21181. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  21182. -ac_save_CXXFLAGS=$CXXFLAGS
  21183. -CXXFLAGS="-g"
  21184. -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  21185. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  21186. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  21187. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21188. -else
  21189. - cat >conftest.$ac_ext <<_ACEOF
  21190. -/* confdefs.h. */
  21191. -_ACEOF
  21192. -cat confdefs.h >>conftest.$ac_ext
  21193. -cat >>conftest.$ac_ext <<_ACEOF
  21194. -/* end confdefs.h. */
  21195. -int
  21196. -main ()
  21197. -{
  21198. - ;
  21199. - return 0;
  21200. -}
  21201. -_ACEOF
  21202. -rm -f conftest.$ac_objext
  21203. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21204. - (eval $ac_compile) 2>conftest.er1
  21205. - ac_status=$?
  21206. - grep -v '^ *+' conftest.er1 >conftest.err
  21207. - rm -f conftest.er1
  21208. - cat conftest.err >&5
  21209. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21210. - (exit $ac_status); } &&
  21211. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21212. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21213. - (eval $ac_try) 2>&5
  21214. - ac_status=$?
  21215. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21216. - (exit $ac_status); }; } &&
  21217. - { ac_try='test -s conftest.$ac_objext'
  21218. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21219. - (eval $ac_try) 2>&5
  21220. - ac_status=$?
  21221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21222. - (exit $ac_status); }; }; then
  21223. - ac_cv_prog_cxx_g=yes
  21224. -else
  21225. - echo "$as_me: failed program was:" >&5
  21226. -sed 's/^/| /' conftest.$ac_ext >&5
  21227. -ac_cv_prog_cxx_g=no
  21228. -fi
  21229. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21230. -fi
  21231. -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  21232. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  21233. -if test "$ac_test_CXXFLAGS" = set; then
  21234. - CXXFLAGS=$ac_save_CXXFLAGS
  21235. -elif test $ac_cv_prog_cxx_g = yes; then
  21236. - if test "$GXX" = yes; then
  21237. - CXXFLAGS="-g -O2"
  21238. - else
  21239. - CXXFLAGS="-g"
  21240. - fi
  21241. +
  21242. +
  21243. +if test -n "$ac_tool_prefix"; then
  21244. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  21245. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  21246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21247. +$as_echo_n "checking for $ac_word... " >&6; }
  21248. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  21249. + $as_echo_n "(cached) " >&6
  21250. else
  21251. - if test "$GXX" = yes; then
  21252. - CXXFLAGS="-O2"
  21253. - else
  21254. - CXXFLAGS=
  21255. - fi
  21256. -fi
  21257. -for ac_declaration in \
  21258. - '' \
  21259. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  21260. - 'extern "C" void std::exit (int); using std::exit;' \
  21261. - 'extern "C" void exit (int) throw ();' \
  21262. - 'extern "C" void exit (int);' \
  21263. - 'void exit (int);'
  21264. -do
  21265. - cat >conftest.$ac_ext <<_ACEOF
  21266. -/* confdefs.h. */
  21267. -_ACEOF
  21268. -cat confdefs.h >>conftest.$ac_ext
  21269. -cat >>conftest.$ac_ext <<_ACEOF
  21270. -/* end confdefs.h. */
  21271. -$ac_declaration
  21272. -#include <stdlib.h>
  21273. -int
  21274. -main ()
  21275. -{
  21276. -exit (42);
  21277. - ;
  21278. - return 0;
  21279. -}
  21280. -_ACEOF
  21281. -rm -f conftest.$ac_objext
  21282. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21283. - (eval $ac_compile) 2>conftest.er1
  21284. - ac_status=$?
  21285. - grep -v '^ *+' conftest.er1 >conftest.err
  21286. - rm -f conftest.er1
  21287. - cat conftest.err >&5
  21288. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21289. - (exit $ac_status); } &&
  21290. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21291. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21292. - (eval $ac_try) 2>&5
  21293. - ac_status=$?
  21294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21295. - (exit $ac_status); }; } &&
  21296. - { ac_try='test -s conftest.$ac_objext'
  21297. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21298. - (eval $ac_try) 2>&5
  21299. - ac_status=$?
  21300. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21301. - (exit $ac_status); }; }; then
  21302. - :
  21303. + if test -n "$STRIP"; then
  21304. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  21305. else
  21306. - echo "$as_me: failed program was:" >&5
  21307. -sed 's/^/| /' conftest.$ac_ext >&5
  21308. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21309. +for as_dir in $PATH
  21310. +do
  21311. + IFS=$as_save_IFS
  21312. + test -z "$as_dir" && as_dir=.
  21313. + for ac_exec_ext in '' $ac_executable_extensions; do
  21314. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21315. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  21316. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21317. + break 2
  21318. + fi
  21319. +done
  21320. + done
  21321. +IFS=$as_save_IFS
  21322. -continue
  21323. fi
  21324. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21325. - cat >conftest.$ac_ext <<_ACEOF
  21326. -/* confdefs.h. */
  21327. -_ACEOF
  21328. -cat confdefs.h >>conftest.$ac_ext
  21329. -cat >>conftest.$ac_ext <<_ACEOF
  21330. -/* end confdefs.h. */
  21331. -$ac_declaration
  21332. -int
  21333. -main ()
  21334. -{
  21335. -exit (42);
  21336. - ;
  21337. - return 0;
  21338. -}
  21339. -_ACEOF
  21340. -rm -f conftest.$ac_objext
  21341. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21342. - (eval $ac_compile) 2>conftest.er1
  21343. - ac_status=$?
  21344. - grep -v '^ *+' conftest.er1 >conftest.err
  21345. - rm -f conftest.er1
  21346. - cat conftest.err >&5
  21347. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21348. - (exit $ac_status); } &&
  21349. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  21350. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21351. - (eval $ac_try) 2>&5
  21352. - ac_status=$?
  21353. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21354. - (exit $ac_status); }; } &&
  21355. - { ac_try='test -s conftest.$ac_objext'
  21356. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21357. - (eval $ac_try) 2>&5
  21358. - ac_status=$?
  21359. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21360. - (exit $ac_status); }; }; then
  21361. - break
  21362. +fi
  21363. +STRIP=$ac_cv_prog_STRIP
  21364. +if test -n "$STRIP"; then
  21365. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  21366. +$as_echo "$STRIP" >&6; }
  21367. else
  21368. - echo "$as_me: failed program was:" >&5
  21369. -sed 's/^/| /' conftest.$ac_ext >&5
  21370. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21371. +$as_echo "no" >&6; }
  21372. +fi
  21373. +
  21374. fi
  21375. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  21376. -done
  21377. -rm -f conftest*
  21378. -if test -n "$ac_declaration"; then
  21379. - echo '#ifdef __cplusplus' >>confdefs.h
  21380. - echo $ac_declaration >>confdefs.h
  21381. - echo '#endif' >>confdefs.h
  21382. -fi
  21383. -
  21384. -ac_ext=cc
  21385. -ac_cpp='$CXXCPP $CPPFLAGS'
  21386. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21387. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21388. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21389. -
  21390. -depcc="$CXX" am_compiler_list=
  21391. -
  21392. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  21393. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  21394. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  21395. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21396. +if test -z "$ac_cv_prog_STRIP"; then
  21397. + ac_ct_STRIP=$STRIP
  21398. + # Extract the first word of "strip", so it can be a program name with args.
  21399. +set dummy strip; ac_word=$2
  21400. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21401. +$as_echo_n "checking for $ac_word... " >&6; }
  21402. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  21403. + $as_echo_n "(cached) " >&6
  21404. else
  21405. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  21406. - # We make a subdir and do the tests there. Otherwise we can end up
  21407. - # making bogus files that we don't know about and never remove. For
  21408. - # instance it was reported that on HP-UX the gcc test will end up
  21409. - # making a dummy file named `D' -- because `-MD' means `put the output
  21410. - # in D'.
  21411. - mkdir conftest.dir
  21412. - # Copy depcomp to subdir because otherwise we won't find it if we're
  21413. - # using a relative directory.
  21414. - cp "$am_depcomp" conftest.dir
  21415. - cd conftest.dir
  21416. - # We will build objects and dependencies in a subdirectory because
  21417. - # it helps to detect inapplicable dependency modes. For instance
  21418. - # both Tru64's cc and ICC support -MD to output dependencies as a
  21419. - # side effect of compilation, but ICC will put the dependencies in
  21420. - # the current directory while Tru64 will put them in the object
  21421. - # directory.
  21422. - mkdir sub
  21423. -
  21424. - am_cv_CXX_dependencies_compiler_type=none
  21425. - if test "$am_compiler_list" = ""; then
  21426. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  21427. + if test -n "$ac_ct_STRIP"; then
  21428. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  21429. +else
  21430. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21431. +for as_dir in $PATH
  21432. +do
  21433. + IFS=$as_save_IFS
  21434. + test -z "$as_dir" && as_dir=.
  21435. + for ac_exec_ext in '' $ac_executable_extensions; do
  21436. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21437. + ac_cv_prog_ac_ct_STRIP="strip"
  21438. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21439. + break 2
  21440. fi
  21441. - for depmode in $am_compiler_list; do
  21442. - # Setup a source with many dependencies, because some compilers
  21443. - # like to wrap large dependency lists on column 80 (with \), and
  21444. - # we should not choose a depcomp mode which is confused by this.
  21445. - #
  21446. - # We need to recreate these files for each test, as the compiler may
  21447. - # overwrite some of them when testing with obscure command lines.
  21448. - # This happens at least with the AIX C compiler.
  21449. - : > sub/conftest.c
  21450. - for i in 1 2 3 4 5 6; do
  21451. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  21452. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  21453. - # Solaris 8's {/usr,}/bin/sh.
  21454. - touch sub/conftst$i.h
  21455. - done
  21456. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  21457. -
  21458. - case $depmode in
  21459. - nosideeffect)
  21460. - # after this tag, mechanisms are not by side-effect, so they'll
  21461. - # only be used when explicitly requested
  21462. - if test "x$enable_dependency_tracking" = xyes; then
  21463. - continue
  21464. - else
  21465. - break
  21466. - fi
  21467. - ;;
  21468. - none) break ;;
  21469. - esac
  21470. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  21471. - # mode. It turns out that the SunPro C++ compiler does not properly
  21472. - # handle `-M -o', and we need to detect this.
  21473. - if depmode=$depmode \
  21474. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  21475. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  21476. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  21477. - >/dev/null 2>conftest.err &&
  21478. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  21479. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  21480. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  21481. - # icc doesn't choke on unknown options, it will just issue warnings
  21482. - # or remarks (even with -Werror). So we grep stderr for any message
  21483. - # that says an option was ignored or not supported.
  21484. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  21485. - # icc: Command line warning: ignoring option '-M'; no argument required
  21486. - # The diagnosis changed in icc 8.0:
  21487. - # icc: Command line remark: option '-MP' not supported
  21488. - if (grep 'ignoring option' conftest.err ||
  21489. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  21490. - am_cv_CXX_dependencies_compiler_type=$depmode
  21491. - break
  21492. - fi
  21493. - fi
  21494. +done
  21495. done
  21496. +IFS=$as_save_IFS
  21497. - cd ..
  21498. - rm -rf conftest.dir
  21499. +fi
  21500. +fi
  21501. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  21502. +if test -n "$ac_ct_STRIP"; then
  21503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  21504. +$as_echo "$ac_ct_STRIP" >&6; }
  21505. else
  21506. - am_cv_CXX_dependencies_compiler_type=none
  21507. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21508. +$as_echo "no" >&6; }
  21509. fi
  21510. + if test "x$ac_ct_STRIP" = x; then
  21511. + STRIP=":"
  21512. + else
  21513. + case $cross_compiling:$ac_tool_warned in
  21514. +yes:)
  21515. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21516. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21517. +ac_tool_warned=yes ;;
  21518. +esac
  21519. + STRIP=$ac_ct_STRIP
  21520. + fi
  21521. +else
  21522. + STRIP="$ac_cv_prog_STRIP"
  21523. fi
  21524. -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  21525. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  21526. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  21527. +
  21528. +test -z "$STRIP" && STRIP=:
  21529. +
  21530. -if
  21531. - test "x$enable_dependency_tracking" != xno \
  21532. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  21533. - am__fastdepCXX_TRUE=
  21534. - am__fastdepCXX_FALSE='#'
  21535. -else
  21536. - am__fastdepCXX_TRUE='#'
  21537. - am__fastdepCXX_FALSE=
  21538. -fi
  21539. -ac_ext=cc
  21540. -ac_cpp='$CXXCPP $CPPFLAGS'
  21541. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21542. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21543. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21544. -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  21545. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  21546. -if test -z "$CXXCPP"; then
  21547. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  21548. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21549. +if test -n "$ac_tool_prefix"; then
  21550. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  21551. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  21552. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21553. +$as_echo_n "checking for $ac_word... " >&6; }
  21554. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  21555. + $as_echo_n "(cached) " >&6
  21556. else
  21557. - # Double quotes because CXXCPP needs to be expanded
  21558. - for CXXCPP in "$CXX -E" "/lib/cpp"
  21559. - do
  21560. - ac_preproc_ok=false
  21561. -for ac_cxx_preproc_warn_flag in '' yes
  21562. + if test -n "$RANLIB"; then
  21563. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  21564. +else
  21565. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21566. +for as_dir in $PATH
  21567. do
  21568. - # Use a header file that comes with gcc, so configuring glibc
  21569. - # with a fresh cross-compiler works.
  21570. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21571. - # <limits.h> exists even on freestanding compilers.
  21572. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21573. - # not just through cpp. "Syntax error" is here to catch this case.
  21574. - cat >conftest.$ac_ext <<_ACEOF
  21575. -/* confdefs.h. */
  21576. -_ACEOF
  21577. -cat confdefs.h >>conftest.$ac_ext
  21578. -cat >>conftest.$ac_ext <<_ACEOF
  21579. -/* end confdefs.h. */
  21580. -#ifdef __STDC__
  21581. -# include <limits.h>
  21582. -#else
  21583. -# include <assert.h>
  21584. -#endif
  21585. - Syntax error
  21586. -_ACEOF
  21587. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21588. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21589. - ac_status=$?
  21590. - grep -v '^ *+' conftest.er1 >conftest.err
  21591. - rm -f conftest.er1
  21592. - cat conftest.err >&5
  21593. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21594. - (exit $ac_status); } >/dev/null; then
  21595. - if test -s conftest.err; then
  21596. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  21597. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  21598. - else
  21599. - ac_cpp_err=
  21600. + IFS=$as_save_IFS
  21601. + test -z "$as_dir" && as_dir=.
  21602. + for ac_exec_ext in '' $ac_executable_extensions; do
  21603. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21604. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  21605. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21606. + break 2
  21607. fi
  21608. +done
  21609. + done
  21610. +IFS=$as_save_IFS
  21611. +
  21612. +fi
  21613. +fi
  21614. +RANLIB=$ac_cv_prog_RANLIB
  21615. +if test -n "$RANLIB"; then
  21616. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  21617. +$as_echo "$RANLIB" >&6; }
  21618. else
  21619. - ac_cpp_err=yes
  21620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21621. +$as_echo "no" >&6; }
  21622. fi
  21623. -if test -z "$ac_cpp_err"; then
  21624. - :
  21625. +
  21626. +
  21627. +fi
  21628. +if test -z "$ac_cv_prog_RANLIB"; then
  21629. + ac_ct_RANLIB=$RANLIB
  21630. + # Extract the first word of "ranlib", so it can be a program name with args.
  21631. +set dummy ranlib; ac_word=$2
  21632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21633. +$as_echo_n "checking for $ac_word... " >&6; }
  21634. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  21635. + $as_echo_n "(cached) " >&6
  21636. else
  21637. - echo "$as_me: failed program was:" >&5
  21638. -sed 's/^/| /' conftest.$ac_ext >&5
  21639. + if test -n "$ac_ct_RANLIB"; then
  21640. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  21641. +else
  21642. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21643. +for as_dir in $PATH
  21644. +do
  21645. + IFS=$as_save_IFS
  21646. + test -z "$as_dir" && as_dir=.
  21647. + for ac_exec_ext in '' $ac_executable_extensions; do
  21648. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21649. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  21650. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21651. + break 2
  21652. + fi
  21653. +done
  21654. + done
  21655. +IFS=$as_save_IFS
  21656. - # Broken: fails on valid input.
  21657. -continue
  21658. fi
  21659. -rm -f conftest.err conftest.$ac_ext
  21660. +fi
  21661. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  21662. +if test -n "$ac_ct_RANLIB"; then
  21663. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  21664. +$as_echo "$ac_ct_RANLIB" >&6; }
  21665. +else
  21666. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21667. +$as_echo "no" >&6; }
  21668. +fi
  21669. - # OK, works on sane cases. Now check whether non-existent headers
  21670. - # can be detected and how.
  21671. - cat >conftest.$ac_ext <<_ACEOF
  21672. -/* confdefs.h. */
  21673. -_ACEOF
  21674. -cat confdefs.h >>conftest.$ac_ext
  21675. -cat >>conftest.$ac_ext <<_ACEOF
  21676. -/* end confdefs.h. */
  21677. -#include <ac_nonexistent.h>
  21678. -_ACEOF
  21679. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21680. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21681. - ac_status=$?
  21682. - grep -v '^ *+' conftest.er1 >conftest.err
  21683. - rm -f conftest.er1
  21684. - cat conftest.err >&5
  21685. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21686. - (exit $ac_status); } >/dev/null; then
  21687. - if test -s conftest.err; then
  21688. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  21689. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  21690. + if test "x$ac_ct_RANLIB" = x; then
  21691. + RANLIB=":"
  21692. else
  21693. - ac_cpp_err=
  21694. + case $cross_compiling:$ac_tool_warned in
  21695. +yes:)
  21696. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21697. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21698. +ac_tool_warned=yes ;;
  21699. +esac
  21700. + RANLIB=$ac_ct_RANLIB
  21701. fi
  21702. else
  21703. - ac_cpp_err=yes
  21704. + RANLIB="$ac_cv_prog_RANLIB"
  21705. fi
  21706. -if test -z "$ac_cpp_err"; then
  21707. - # Broken: success on invalid input.
  21708. -continue
  21709. -else
  21710. - echo "$as_me: failed program was:" >&5
  21711. -sed 's/^/| /' conftest.$ac_ext >&5
  21712. - # Passes both tests.
  21713. -ac_preproc_ok=:
  21714. -break
  21715. -fi
  21716. -rm -f conftest.err conftest.$ac_ext
  21717. +test -z "$RANLIB" && RANLIB=:
  21718. -done
  21719. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21720. -rm -f conftest.err conftest.$ac_ext
  21721. -if $ac_preproc_ok; then
  21722. - break
  21723. -fi
  21724. - done
  21725. - ac_cv_prog_CXXCPP=$CXXCPP
  21726. -fi
  21727. - CXXCPP=$ac_cv_prog_CXXCPP
  21728. -else
  21729. - ac_cv_prog_CXXCPP=$CXXCPP
  21730. -fi
  21731. -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  21732. -echo "${ECHO_T}$CXXCPP" >&6
  21733. -ac_preproc_ok=false
  21734. -for ac_cxx_preproc_warn_flag in '' yes
  21735. -do
  21736. - # Use a header file that comes with gcc, so configuring glibc
  21737. - # with a fresh cross-compiler works.
  21738. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21739. - # <limits.h> exists even on freestanding compilers.
  21740. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21741. - # not just through cpp. "Syntax error" is here to catch this case.
  21742. - cat >conftest.$ac_ext <<_ACEOF
  21743. -/* confdefs.h. */
  21744. -_ACEOF
  21745. -cat confdefs.h >>conftest.$ac_ext
  21746. -cat >>conftest.$ac_ext <<_ACEOF
  21747. -/* end confdefs.h. */
  21748. -#ifdef __STDC__
  21749. -# include <limits.h>
  21750. -#else
  21751. -# include <assert.h>
  21752. -#endif
  21753. - Syntax error
  21754. -_ACEOF
  21755. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21756. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21757. - ac_status=$?
  21758. - grep -v '^ *+' conftest.er1 >conftest.err
  21759. - rm -f conftest.er1
  21760. - cat conftest.err >&5
  21761. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21762. - (exit $ac_status); } >/dev/null; then
  21763. - if test -s conftest.err; then
  21764. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  21765. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  21766. - else
  21767. - ac_cpp_err=
  21768. - fi
  21769. -else
  21770. - ac_cpp_err=yes
  21771. -fi
  21772. -if test -z "$ac_cpp_err"; then
  21773. - :
  21774. -else
  21775. - echo "$as_me: failed program was:" >&5
  21776. -sed 's/^/| /' conftest.$ac_ext >&5
  21777. - # Broken: fails on valid input.
  21778. -continue
  21779. -fi
  21780. -rm -f conftest.err conftest.$ac_ext
  21781. - # OK, works on sane cases. Now check whether non-existent headers
  21782. - # can be detected and how.
  21783. - cat >conftest.$ac_ext <<_ACEOF
  21784. -/* confdefs.h. */
  21785. -_ACEOF
  21786. -cat confdefs.h >>conftest.$ac_ext
  21787. -cat >>conftest.$ac_ext <<_ACEOF
  21788. -/* end confdefs.h. */
  21789. -#include <ac_nonexistent.h>
  21790. -_ACEOF
  21791. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  21792. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  21793. - ac_status=$?
  21794. - grep -v '^ *+' conftest.er1 >conftest.err
  21795. - rm -f conftest.er1
  21796. - cat conftest.err >&5
  21797. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21798. - (exit $ac_status); } >/dev/null; then
  21799. - if test -s conftest.err; then
  21800. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  21801. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  21802. - else
  21803. - ac_cpp_err=
  21804. - fi
  21805. -else
  21806. - ac_cpp_err=yes
  21807. -fi
  21808. -if test -z "$ac_cpp_err"; then
  21809. - # Broken: success on invalid input.
  21810. -continue
  21811. -else
  21812. - echo "$as_me: failed program was:" >&5
  21813. -sed 's/^/| /' conftest.$ac_ext >&5
  21814. - # Passes both tests.
  21815. -ac_preproc_ok=:
  21816. -break
  21817. +# Determine commands to create old-style static archives.
  21818. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  21819. +old_postinstall_cmds='chmod 644 $oldlib'
  21820. +old_postuninstall_cmds=
  21821. +
  21822. +if test -n "$RANLIB"; then
  21823. + case $host_os in
  21824. + openbsd*)
  21825. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  21826. + ;;
  21827. + *)
  21828. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  21829. + ;;
  21830. + esac
  21831. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  21832. fi
  21833. -rm -f conftest.err conftest.$ac_ext
  21834. -done
  21835. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  21836. -rm -f conftest.err conftest.$ac_ext
  21837. -if $ac_preproc_ok; then
  21838. - :
  21839. -else
  21840. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21841. -See \`config.log' for more details." >&5
  21842. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  21843. -See \`config.log' for more details." >&2;}
  21844. - { (exit 1); exit 1; }; }
  21845. -fi
  21846. -
  21847. -ac_ext=cc
  21848. -ac_cpp='$CXXCPP $CPPFLAGS'
  21849. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21850. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21851. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  21852. -
  21853. -
  21854. -ac_ext=f
  21855. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  21856. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21857. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  21858. -if test -n "$ac_tool_prefix"; then
  21859. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  21860. - do
  21861. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21862. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21863. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  21864. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21865. -if test "${ac_cv_prog_F77+set}" = set; then
  21866. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21867. -else
  21868. - if test -n "$F77"; then
  21869. - ac_cv_prog_F77="$F77" # Let the user override the test.
  21870. -else
  21871. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21872. -for as_dir in $PATH
  21873. -do
  21874. - IFS=$as_save_IFS
  21875. - test -z "$as_dir" && as_dir=.
  21876. - for ac_exec_ext in '' $ac_executable_extensions; do
  21877. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21878. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  21879. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21880. - break 2
  21881. - fi
  21882. -done
  21883. -done
  21884. -fi
  21885. -fi
  21886. -F77=$ac_cv_prog_F77
  21887. -if test -n "$F77"; then
  21888. - echo "$as_me:$LINENO: result: $F77" >&5
  21889. -echo "${ECHO_T}$F77" >&6
  21890. -else
  21891. - echo "$as_me:$LINENO: result: no" >&5
  21892. -echo "${ECHO_T}no" >&6
  21893. -fi
  21894. - test -n "$F77" && break
  21895. - done
  21896. -fi
  21897. -if test -z "$F77"; then
  21898. - ac_ct_F77=$F77
  21899. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  21900. -do
  21901. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  21902. -set dummy $ac_prog; ac_word=$2
  21903. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  21904. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  21905. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  21906. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21907. -else
  21908. - if test -n "$ac_ct_F77"; then
  21909. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  21910. -else
  21911. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21912. -for as_dir in $PATH
  21913. -do
  21914. - IFS=$as_save_IFS
  21915. - test -z "$as_dir" && as_dir=.
  21916. - for ac_exec_ext in '' $ac_executable_extensions; do
  21917. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  21918. - ac_cv_prog_ac_ct_F77="$ac_prog"
  21919. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  21920. - break 2
  21921. - fi
  21922. -done
  21923. -done
  21924. -fi
  21925. -fi
  21926. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  21927. -if test -n "$ac_ct_F77"; then
  21928. - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  21929. -echo "${ECHO_T}$ac_ct_F77" >&6
  21930. -else
  21931. - echo "$as_me:$LINENO: result: no" >&5
  21932. -echo "${ECHO_T}no" >&6
  21933. -fi
  21934. - test -n "$ac_ct_F77" && break
  21935. -done
  21936. - F77=$ac_ct_F77
  21937. -fi
  21938. -# Provide some information about the compiler.
  21939. -echo "$as_me:5231:" \
  21940. - "checking for Fortran 77 compiler version" >&5
  21941. -ac_compiler=`set X $ac_compile; echo $2`
  21942. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  21943. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  21944. - ac_status=$?
  21945. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21946. - (exit $ac_status); }
  21947. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  21948. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  21949. - ac_status=$?
  21950. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21951. - (exit $ac_status); }
  21952. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  21953. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  21954. - ac_status=$?
  21955. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21956. - (exit $ac_status); }
  21957. -rm -f a.out
  21958. -
  21959. -# If we don't use `.F' as extension, the preprocessor is not run on the
  21960. -# input file. (Note that this only needs to work for GNU compilers.)
  21961. -ac_save_ext=$ac_ext
  21962. -ac_ext=F
  21963. -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  21964. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  21965. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  21966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21967. -else
  21968. - cat >conftest.$ac_ext <<_ACEOF
  21969. - program main
  21970. -#ifndef __GNUC__
  21971. - choke me
  21972. -#endif
  21973. - end
  21974. -_ACEOF
  21975. -rm -f conftest.$ac_objext
  21976. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21977. - (eval $ac_compile) 2>conftest.er1
  21978. - ac_status=$?
  21979. - grep -v '^ *+' conftest.er1 >conftest.err
  21980. - rm -f conftest.er1
  21981. - cat conftest.err >&5
  21982. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21983. - (exit $ac_status); } &&
  21984. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  21985. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21986. - (eval $ac_try) 2>&5
  21987. - ac_status=$?
  21988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21989. - (exit $ac_status); }; } &&
  21990. - { ac_try='test -s conftest.$ac_objext'
  21991. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21992. - (eval $ac_try) 2>&5
  21993. - ac_status=$?
  21994. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21995. - (exit $ac_status); }; }; then
  21996. - ac_compiler_gnu=yes
  21997. -else
  21998. - echo "$as_me: failed program was:" >&5
  21999. -sed 's/^/| /' conftest.$ac_ext >&5
  22000. -ac_compiler_gnu=no
  22001. -fi
  22002. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22003. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  22004. -fi
  22005. -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  22006. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  22007. -ac_ext=$ac_save_ext
  22008. -ac_test_FFLAGS=${FFLAGS+set}
  22009. -ac_save_FFLAGS=$FFLAGS
  22010. -FFLAGS=
  22011. -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  22012. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  22013. -if test "${ac_cv_prog_f77_g+set}" = set; then
  22014. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22015. -else
  22016. - FFLAGS=-g
  22017. -cat >conftest.$ac_ext <<_ACEOF
  22018. - program main
  22019. -
  22020. - end
  22021. -_ACEOF
  22022. -rm -f conftest.$ac_objext
  22023. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22024. - (eval $ac_compile) 2>conftest.er1
  22025. - ac_status=$?
  22026. - grep -v '^ *+' conftest.er1 >conftest.err
  22027. - rm -f conftest.er1
  22028. - cat conftest.err >&5
  22029. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22030. - (exit $ac_status); } &&
  22031. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  22032. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22033. - (eval $ac_try) 2>&5
  22034. - ac_status=$?
  22035. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22036. - (exit $ac_status); }; } &&
  22037. - { ac_try='test -s conftest.$ac_objext'
  22038. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22039. - (eval $ac_try) 2>&5
  22040. - ac_status=$?
  22041. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22042. - (exit $ac_status); }; }; then
  22043. - ac_cv_prog_f77_g=yes
  22044. -else
  22045. - echo "$as_me: failed program was:" >&5
  22046. -sed 's/^/| /' conftest.$ac_ext >&5
  22047. -ac_cv_prog_f77_g=no
  22048. -fi
  22049. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22050. -fi
  22051. -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  22052. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  22053. -if test "$ac_test_FFLAGS" = set; then
  22054. - FFLAGS=$ac_save_FFLAGS
  22055. -elif test $ac_cv_prog_f77_g = yes; then
  22056. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22057. - FFLAGS="-g -O2"
  22058. - else
  22059. - FFLAGS="-g"
  22060. - fi
  22061. -else
  22062. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  22063. - FFLAGS="-O2"
  22064. - else
  22065. - FFLAGS=
  22066. - fi
  22067. -fi
  22068. -G77=`test $ac_compiler_gnu = yes && echo yes`
  22069. -ac_ext=c
  22070. -ac_cpp='$CPP $CPPFLAGS'
  22071. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22072. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22073. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22074. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  22075. -# find the maximum length of command line arguments
  22076. -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  22077. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  22078. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  22079. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22080. -else
  22081. - i=0
  22082. - teststring="ABCD"
  22083. - case $build_os in
  22084. - msdosdjgpp*)
  22085. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  22086. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  22087. - # during glob expansion). Even if it were fixed, the result of this
  22088. - # check would be larger than it should be.
  22089. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  22090. - ;;
  22091. - gnu*)
  22092. - # Under GNU Hurd, this test is not required because there is
  22093. - # no limit to the length of command line arguments.
  22094. - # Libtool will interpret -1 as no limit whatsoever
  22095. - lt_cv_sys_max_cmd_len=-1;
  22096. - ;;
  22097. - cygwin* | mingw*)
  22098. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  22099. - # about 5 minutes as the teststring grows exponentially.
  22100. - # Worse, since 9x/ME are not pre-emptively multitasking,
  22101. - # you end up with a "frozen" computer, even though with patience
  22102. - # the test eventually succeeds (with a max line length of 256k).
  22103. - # Instead, let's just punt: use the minimum linelength reported by
  22104. - # all of the supported platforms: 8192 (on NT/2K/XP).
  22105. - lt_cv_sys_max_cmd_len=8192;
  22106. - ;;
  22107. - amigaos*)
  22108. - # On AmigaOS with pdksh, this test takes hours, literally.
  22109. - # So we just punt and use a minimum line length of 8192.
  22110. - lt_cv_sys_max_cmd_len=8192;
  22111. - ;;
  22112. - *)
  22113. - # If test is not a shell built-in, we'll probably end up computing a
  22114. - # maximum length that is only half of the actual maximum length, but
  22115. - # we can't tell.
  22116. - while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  22117. - = "XX$teststring") >/dev/null 2>&1 &&
  22118. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  22119. - lt_cv_sys_max_cmd_len=$new_result &&
  22120. - test $i != 17 # 1/2 MB should be enough
  22121. - do
  22122. - i=`expr $i + 1`
  22123. - teststring=$teststring$teststring
  22124. - done
  22125. - teststring=
  22126. - # Add a significant safety factor because C++ compilers can tack on massive
  22127. - # amounts of additional arguments before passing them to the linker.
  22128. - # It appears as though 1/2 is a usable value.
  22129. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  22130. - ;;
  22131. - esac
  22132. -fi
  22133. -if test -n $lt_cv_sys_max_cmd_len ; then
  22134. - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  22135. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  22136. -else
  22137. - echo "$as_me:$LINENO: result: none" >&5
  22138. -echo "${ECHO_T}none" >&6
  22139. -fi
  22140. +
  22141. +
  22142. +
  22143. +
  22144. +
  22145. +# If no C compiler was specified, use CC.
  22146. +LTCC=${LTCC-"$CC"}
  22147. +
  22148. +# If no C compiler flags were specified, use CFLAGS.
  22149. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  22150. +
  22151. +# Allow CC to be a program name with arguments.
  22152. +compiler=$CC
  22153. +
  22154. +
  22155. # Check for command to grab the raw symbol name followed by C symbol from nm.
  22156. -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  22157. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  22158. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  22159. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22160. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  22161. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  22162. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  22163. + $as_echo_n "(cached) " >&6
  22164. else
  22165. # These are sane defaults that work on at least a few old systems.
  22166. @@ -5466,29 +5539,18 @@
  22167. # Regexp to match symbols that can be accessed directly from C.
  22168. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  22169. -# Transform the above into a raw symbol and a C symbol.
  22170. -symxfrm='\1 \2\3 \3'
  22171. -
  22172. -# Transform an extracted symbol line into a proper C declaration
  22173. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  22174. -
  22175. -# Transform an extracted symbol line into symbol name and symbol address
  22176. -lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  22177. -
  22178. # Define system-specific variables.
  22179. case $host_os in
  22180. aix*)
  22181. symcode='[BCDT]'
  22182. ;;
  22183. -cygwin* | mingw* | pw32*)
  22184. +cygwin* | mingw* | pw32* | cegcc*)
  22185. symcode='[ABCDGISTW]'
  22186. ;;
  22187. -hpux*) # Its linker distinguishes data from code symbols
  22188. +hpux*)
  22189. if test "$host_cpu" = ia64; then
  22190. symcode='[ABCDEGRST]'
  22191. fi
  22192. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22193. - lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  22194. ;;
  22195. irix* | nonstopux*)
  22196. symcode='[BCDEGRST]'
  22197. @@ -5496,62 +5558,102 @@
  22198. osf*)
  22199. symcode='[BCDEGQRST]'
  22200. ;;
  22201. -solaris* | sysv5*)
  22202. +solaris*)
  22203. symcode='[BDRT]'
  22204. ;;
  22205. +sco3.2v5*)
  22206. + symcode='[DT]'
  22207. + ;;
  22208. +sysv4.2uw2*)
  22209. + symcode='[DT]'
  22210. + ;;
  22211. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  22212. + symcode='[ABDT]'
  22213. + ;;
  22214. sysv4)
  22215. symcode='[DFNSTU]'
  22216. ;;
  22217. esac
  22218. +# If we're using GNU nm, then use its standard symbol codes.
  22219. +case `$NM -V 2>&1` in
  22220. +*GNU* | *'with BFD'*)
  22221. + symcode='[ABCDGIRSTW]' ;;
  22222. +esac
  22223. +
  22224. +# Transform an extracted symbol line into a proper C declaration.
  22225. +# Some systems (esp. on ia64) link data and code symbols differently,
  22226. +# so use this general approach.
  22227. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  22228. +
  22229. +# Transform an extracted symbol line into symbol name and symbol address
  22230. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  22231. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  22232. +
  22233. # Handle CRLF in mingw tool chain
  22234. opt_cr=
  22235. case $build_os in
  22236. mingw*)
  22237. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22238. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  22239. ;;
  22240. esac
  22241. -# If we're using GNU nm, then use its standard symbol codes.
  22242. -case `$NM -V 2>&1` in
  22243. -*GNU* | *'with BFD'*)
  22244. - symcode='[ABCDGIRSTW]' ;;
  22245. -esac
  22246. -
  22247. -# Try without a prefix undercore, then with it.
  22248. +# Try without a prefix underscore, then with it.
  22249. for ac_symprfx in "" "_"; do
  22250. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  22251. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  22252. +
  22253. # Write the raw and C identifiers.
  22254. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  22255. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  22256. + # Fake it for dumpbin and say T for any non-static function
  22257. + # and D for any global variable.
  22258. + # Also find C++ and __fastcall symbols from MSVC++,
  22259. + # which start with @ or ?.
  22260. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  22261. +" {last_section=section; section=\$ 3};"\
  22262. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  22263. +" \$ 0!~/External *\|/{next};"\
  22264. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  22265. +" {if(hide[section]) next};"\
  22266. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  22267. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  22268. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  22269. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  22270. +" ' prfx=^$ac_symprfx"
  22271. + else
  22272. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  22273. + fi
  22274. # Check to see that the pipe works correctly.
  22275. pipe_works=no
  22276. rm -f conftest*
  22277. - cat > conftest.$ac_ext <<EOF
  22278. + cat > conftest.$ac_ext <<_LT_EOF
  22279. #ifdef __cplusplus
  22280. extern "C" {
  22281. #endif
  22282. char nm_test_var;
  22283. -void nm_test_func(){}
  22284. +void nm_test_func(void);
  22285. +void nm_test_func(void){}
  22286. #ifdef __cplusplus
  22287. }
  22288. #endif
  22289. int main(){nm_test_var='a';nm_test_func();return(0);}
  22290. -EOF
  22291. +_LT_EOF
  22292. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22293. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22294. (eval $ac_compile) 2>&5
  22295. ac_status=$?
  22296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22297. - (exit $ac_status); }; then
  22298. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22299. + test $ac_status = 0; }; then
  22300. # Now try to grab the symbols.
  22301. nlist=conftest.nm
  22302. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  22303. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  22304. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  22305. ac_status=$?
  22306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22307. - (exit $ac_status); } && test -s "$nlist"; then
  22308. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22309. + test $ac_status = 0; } && test -s "$nlist"; then
  22310. # Try sorting and uniquifying the output.
  22311. if sort "$nlist" | uniq > "$nlist"T; then
  22312. mv -f "$nlist"T "$nlist"
  22313. @@ -5560,53 +5662,55 @@
  22314. fi
  22315. # Make sure that we snagged all the symbols we need.
  22316. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  22317. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  22318. - cat <<EOF > conftest.$ac_ext
  22319. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  22320. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  22321. + cat <<_LT_EOF > conftest.$ac_ext
  22322. #ifdef __cplusplus
  22323. extern "C" {
  22324. #endif
  22325. -EOF
  22326. +_LT_EOF
  22327. # Now generate the symbol file.
  22328. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  22329. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  22330. - cat <<EOF >> conftest.$ac_ext
  22331. -#if defined (__STDC__) && __STDC__
  22332. -# define lt_ptr_t void *
  22333. -#else
  22334. -# define lt_ptr_t char *
  22335. -# define const
  22336. -#endif
  22337. + cat <<_LT_EOF >> conftest.$ac_ext
  22338. -/* The mapping between symbol names and symbols. */
  22339. +/* The mapping between symbol names and symbols. */
  22340. const struct {
  22341. const char *name;
  22342. - lt_ptr_t address;
  22343. + void *address;
  22344. }
  22345. -lt_preloaded_symbols[] =
  22346. +lt__PROGRAM__LTX_preloaded_symbols[] =
  22347. {
  22348. -EOF
  22349. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  22350. - cat <<\EOF >> conftest.$ac_ext
  22351. - {0, (lt_ptr_t) 0}
  22352. + { "@PROGRAM@", (void *) 0 },
  22353. +_LT_EOF
  22354. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  22355. + cat <<\_LT_EOF >> conftest.$ac_ext
  22356. + {0, (void *) 0}
  22357. };
  22358. +/* This works around a problem in FreeBSD linker */
  22359. +#ifdef FREEBSD_WORKAROUND
  22360. +static const void *lt_preloaded_setup() {
  22361. + return lt__PROGRAM__LTX_preloaded_symbols;
  22362. +}
  22363. +#endif
  22364. +
  22365. #ifdef __cplusplus
  22366. }
  22367. #endif
  22368. -EOF
  22369. +_LT_EOF
  22370. # Now try linking the two files.
  22371. mv conftest.$ac_objext conftstm.$ac_objext
  22372. lt_save_LIBS="$LIBS"
  22373. lt_save_CFLAGS="$CFLAGS"
  22374. LIBS="conftstm.$ac_objext"
  22375. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  22376. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22377. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  22378. (eval $ac_link) 2>&5
  22379. ac_status=$?
  22380. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22381. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  22382. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22383. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  22384. pipe_works=yes
  22385. fi
  22386. LIBS="$lt_save_LIBS"
  22387. @@ -5624,7 +5728,7 @@
  22388. echo "$progname: failed program was:" >&5
  22389. cat conftest.$ac_ext >&5
  22390. fi
  22391. - rm -f conftest* conftst*
  22392. + rm -rf conftest* conftst*
  22393. # Do not use the global_symbol_pipe unless it works.
  22394. if test "$pipe_works" = yes; then
  22395. @@ -5640,9831 +5744,1582 @@
  22396. lt_cv_sys_global_symbol_to_cdecl=
  22397. fi
  22398. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  22399. - echo "$as_me:$LINENO: result: failed" >&5
  22400. -echo "${ECHO_T}failed" >&6
  22401. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  22402. +$as_echo "failed" >&6; }
  22403. else
  22404. - echo "$as_me:$LINENO: result: ok" >&5
  22405. -echo "${ECHO_T}ok" >&6
  22406. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  22407. +$as_echo "ok" >&6; }
  22408. fi
  22409. -echo "$as_me:$LINENO: checking for objdir" >&5
  22410. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  22411. -if test "${lt_cv_objdir+set}" = set; then
  22412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22413. -else
  22414. - rm -f .libs 2>/dev/null
  22415. -mkdir .libs 2>/dev/null
  22416. -if test -d .libs; then
  22417. - lt_cv_objdir=.libs
  22418. -else
  22419. - # MS-DOS does not allow filenames that begin with a dot.
  22420. - lt_cv_objdir=_libs
  22421. -fi
  22422. -rmdir .libs 2>/dev/null
  22423. -fi
  22424. -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  22425. -echo "${ECHO_T}$lt_cv_objdir" >&6
  22426. -objdir=$lt_cv_objdir
  22427. -case $host_os in
  22428. -aix3*)
  22429. - # AIX sometimes has problems with the GCC collect2 program. For some
  22430. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  22431. - # vanish in a puff of smoke.
  22432. - if test "X${COLLECT_NAMES+set}" != Xset; then
  22433. - COLLECT_NAMES=
  22434. - export COLLECT_NAMES
  22435. - fi
  22436. - ;;
  22437. -esac
  22438. -# Sed substitution that helps us do robust quoting. It backslashifies
  22439. -# metacharacters that are still active within double-quoted strings.
  22440. -Xsed='sed -e s/^X//'
  22441. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  22442. -# Same as above, but do not quote variable references.
  22443. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  22444. -# Sed substitution to delay expansion of an escaped shell variable in a
  22445. -# double_quote_subst'ed string.
  22446. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  22447. -# Sed substitution to avoid accidental globbing in evaled expressions
  22448. -no_glob_subst='s/\*/\\\*/g'
  22449. -# Constants:
  22450. -rm="rm -f"
  22451. -# Global variables:
  22452. -default_ofile=libtool
  22453. -can_build_shared=yes
  22454. -# All known linkers require a `.a' archive for static linking (except M$VC,
  22455. -# which needs '.lib').
  22456. -libext=a
  22457. -ltmain="$ac_aux_dir/ltmain.sh"
  22458. -ofile="$default_ofile"
  22459. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  22460. -if test -n "$ac_tool_prefix"; then
  22461. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22462. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  22463. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22464. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22465. -if test "${ac_cv_prog_AR+set}" = set; then
  22466. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22467. +
  22468. +
  22469. +
  22470. +
  22471. +
  22472. +
  22473. +
  22474. +
  22475. +
  22476. +# Check whether --enable-libtool-lock was given.
  22477. +if test "${enable_libtool_lock+set}" = set; then :
  22478. + enableval=$enable_libtool_lock;
  22479. +fi
  22480. +
  22481. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  22482. +
  22483. +# Some flags need to be propagated to the compiler or linker for good
  22484. +# libtool support.
  22485. +case $host in
  22486. +ia64-*-hpux*)
  22487. + # Find out which ABI we are using.
  22488. + echo 'int i;' > conftest.$ac_ext
  22489. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22490. + (eval $ac_compile) 2>&5
  22491. + ac_status=$?
  22492. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22493. + test $ac_status = 0; }; then
  22494. + case `/usr/bin/file conftest.$ac_objext` in
  22495. + *ELF-32*)
  22496. + HPUX_IA64_MODE="32"
  22497. + ;;
  22498. + *ELF-64*)
  22499. + HPUX_IA64_MODE="64"
  22500. + ;;
  22501. + esac
  22502. + fi
  22503. + rm -rf conftest*
  22504. + ;;
  22505. +*-*-irix6*)
  22506. + # Find out which ABI we are using.
  22507. + echo '#line 5807 "configure"' > conftest.$ac_ext
  22508. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22509. + (eval $ac_compile) 2>&5
  22510. + ac_status=$?
  22511. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22512. + test $ac_status = 0; }; then
  22513. + if test "$lt_cv_prog_gnu_ld" = yes; then
  22514. + case `/usr/bin/file conftest.$ac_objext` in
  22515. + *32-bit*)
  22516. + LD="${LD-ld} -melf32bsmip"
  22517. + ;;
  22518. + *N32*)
  22519. + LD="${LD-ld} -melf32bmipn32"
  22520. + ;;
  22521. + *64-bit*)
  22522. + LD="${LD-ld} -melf64bmip"
  22523. + ;;
  22524. + esac
  22525. + else
  22526. + case `/usr/bin/file conftest.$ac_objext` in
  22527. + *32-bit*)
  22528. + LD="${LD-ld} -32"
  22529. + ;;
  22530. + *N32*)
  22531. + LD="${LD-ld} -n32"
  22532. + ;;
  22533. + *64-bit*)
  22534. + LD="${LD-ld} -64"
  22535. + ;;
  22536. + esac
  22537. + fi
  22538. + fi
  22539. + rm -rf conftest*
  22540. + ;;
  22541. +
  22542. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  22543. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  22544. + # Find out which ABI we are using.
  22545. + echo 'int i;' > conftest.$ac_ext
  22546. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22547. + (eval $ac_compile) 2>&5
  22548. + ac_status=$?
  22549. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22550. + test $ac_status = 0; }; then
  22551. + case `/usr/bin/file conftest.o` in
  22552. + *32-bit*)
  22553. + case $host in
  22554. + x86_64-*kfreebsd*-gnu)
  22555. + LD="${LD-ld} -m elf_i386_fbsd"
  22556. + ;;
  22557. + x86_64-*linux*)
  22558. + LD="${LD-ld} -m elf_i386"
  22559. + ;;
  22560. + ppc64-*linux*|powerpc64-*linux*)
  22561. + LD="${LD-ld} -m elf32ppclinux"
  22562. + ;;
  22563. + s390x-*linux*)
  22564. + LD="${LD-ld} -m elf_s390"
  22565. + ;;
  22566. + sparc64-*linux*)
  22567. + LD="${LD-ld} -m elf32_sparc"
  22568. + ;;
  22569. + esac
  22570. + ;;
  22571. + *64-bit*)
  22572. + case $host in
  22573. + x86_64-*kfreebsd*-gnu)
  22574. + LD="${LD-ld} -m elf_x86_64_fbsd"
  22575. + ;;
  22576. + x86_64-*linux*)
  22577. + LD="${LD-ld} -m elf_x86_64"
  22578. + ;;
  22579. + ppc*-*linux*|powerpc*-*linux*)
  22580. + LD="${LD-ld} -m elf64ppc"
  22581. + ;;
  22582. + s390*-*linux*|s390*-*tpf*)
  22583. + LD="${LD-ld} -m elf64_s390"
  22584. + ;;
  22585. + sparc*-*linux*)
  22586. + LD="${LD-ld} -m elf64_sparc"
  22587. + ;;
  22588. + esac
  22589. + ;;
  22590. + esac
  22591. + fi
  22592. + rm -rf conftest*
  22593. + ;;
  22594. +
  22595. +*-*-sco3.2v5*)
  22596. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  22597. + SAVE_CFLAGS="$CFLAGS"
  22598. + CFLAGS="$CFLAGS -belf"
  22599. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  22600. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  22601. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  22602. + $as_echo_n "(cached) " >&6
  22603. else
  22604. - if test -n "$AR"; then
  22605. - ac_cv_prog_AR="$AR" # Let the user override the test.
  22606. + ac_ext=c
  22607. +ac_cpp='$CPP $CPPFLAGS'
  22608. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22609. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22610. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22611. +
  22612. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  22613. +/* end confdefs.h. */
  22614. +
  22615. +int
  22616. +main ()
  22617. +{
  22618. +
  22619. + ;
  22620. + return 0;
  22621. +}
  22622. +_ACEOF
  22623. +if ac_fn_c_try_link "$LINENO"; then :
  22624. + lt_cv_cc_needs_belf=yes
  22625. +else
  22626. + lt_cv_cc_needs_belf=no
  22627. +fi
  22628. +rm -f core conftest.err conftest.$ac_objext \
  22629. + conftest$ac_exeext conftest.$ac_ext
  22630. + ac_ext=c
  22631. +ac_cpp='$CPP $CPPFLAGS'
  22632. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22633. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22634. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22635. +
  22636. +fi
  22637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  22638. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  22639. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  22640. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  22641. + CFLAGS="$SAVE_CFLAGS"
  22642. + fi
  22643. + ;;
  22644. +sparc*-*solaris*)
  22645. + # Find out which ABI we are using.
  22646. + echo 'int i;' > conftest.$ac_ext
  22647. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  22648. + (eval $ac_compile) 2>&5
  22649. + ac_status=$?
  22650. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  22651. + test $ac_status = 0; }; then
  22652. + case `/usr/bin/file conftest.o` in
  22653. + *64-bit*)
  22654. + case $lt_cv_prog_gnu_ld in
  22655. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  22656. + *)
  22657. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  22658. + LD="${LD-ld} -64"
  22659. + fi
  22660. + ;;
  22661. + esac
  22662. + ;;
  22663. + esac
  22664. + fi
  22665. + rm -rf conftest*
  22666. + ;;
  22667. +esac
  22668. +
  22669. +need_locks="$enable_libtool_lock"
  22670. +
  22671. +
  22672. + case $host_os in
  22673. + rhapsody* | darwin*)
  22674. + if test -n "$ac_tool_prefix"; then
  22675. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  22676. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  22677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22678. +$as_echo_n "checking for $ac_word... " >&6; }
  22679. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  22680. + $as_echo_n "(cached) " >&6
  22681. +else
  22682. + if test -n "$DSYMUTIL"; then
  22683. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  22684. else
  22685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22686. for as_dir in $PATH
  22687. do
  22688. IFS=$as_save_IFS
  22689. test -z "$as_dir" && as_dir=.
  22690. - for ac_exec_ext in '' $ac_executable_extensions; do
  22691. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22692. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  22693. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22694. + for ac_exec_ext in '' $ac_executable_extensions; do
  22695. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22696. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  22697. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22698. break 2
  22699. fi
  22700. done
  22701. -done
  22702. + done
  22703. +IFS=$as_save_IFS
  22704. fi
  22705. fi
  22706. -AR=$ac_cv_prog_AR
  22707. -if test -n "$AR"; then
  22708. - echo "$as_me:$LINENO: result: $AR" >&5
  22709. -echo "${ECHO_T}$AR" >&6
  22710. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  22711. +if test -n "$DSYMUTIL"; then
  22712. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  22713. +$as_echo "$DSYMUTIL" >&6; }
  22714. else
  22715. - echo "$as_me:$LINENO: result: no" >&5
  22716. -echo "${ECHO_T}no" >&6
  22717. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22718. +$as_echo "no" >&6; }
  22719. fi
  22720. +
  22721. fi
  22722. -if test -z "$ac_cv_prog_AR"; then
  22723. - ac_ct_AR=$AR
  22724. - # Extract the first word of "ar", so it can be a program name with args.
  22725. -set dummy ar; ac_word=$2
  22726. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22727. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22728. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  22729. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22730. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  22731. + ac_ct_DSYMUTIL=$DSYMUTIL
  22732. + # Extract the first word of "dsymutil", so it can be a program name with args.
  22733. +set dummy dsymutil; ac_word=$2
  22734. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22735. +$as_echo_n "checking for $ac_word... " >&6; }
  22736. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  22737. + $as_echo_n "(cached) " >&6
  22738. else
  22739. - if test -n "$ac_ct_AR"; then
  22740. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22741. + if test -n "$ac_ct_DSYMUTIL"; then
  22742. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  22743. else
  22744. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22745. for as_dir in $PATH
  22746. do
  22747. IFS=$as_save_IFS
  22748. test -z "$as_dir" && as_dir=.
  22749. - for ac_exec_ext in '' $ac_executable_extensions; do
  22750. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22751. - ac_cv_prog_ac_ct_AR="ar"
  22752. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22753. + for ac_exec_ext in '' $ac_executable_extensions; do
  22754. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22755. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  22756. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22757. break 2
  22758. fi
  22759. done
  22760. -done
  22761. + done
  22762. +IFS=$as_save_IFS
  22763. - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  22764. fi
  22765. fi
  22766. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22767. -if test -n "$ac_ct_AR"; then
  22768. - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  22769. -echo "${ECHO_T}$ac_ct_AR" >&6
  22770. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  22771. +if test -n "$ac_ct_DSYMUTIL"; then
  22772. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  22773. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  22774. else
  22775. - echo "$as_me:$LINENO: result: no" >&5
  22776. -echo "${ECHO_T}no" >&6
  22777. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22778. +$as_echo "no" >&6; }
  22779. fi
  22780. - AR=$ac_ct_AR
  22781. + if test "x$ac_ct_DSYMUTIL" = x; then
  22782. + DSYMUTIL=":"
  22783. + else
  22784. + case $cross_compiling:$ac_tool_warned in
  22785. +yes:)
  22786. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22787. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22788. +ac_tool_warned=yes ;;
  22789. +esac
  22790. + DSYMUTIL=$ac_ct_DSYMUTIL
  22791. + fi
  22792. else
  22793. - AR="$ac_cv_prog_AR"
  22794. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  22795. fi
  22796. -if test -n "$ac_tool_prefix"; then
  22797. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  22798. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  22799. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22800. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22801. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  22802. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22803. + if test -n "$ac_tool_prefix"; then
  22804. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  22805. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  22806. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22807. +$as_echo_n "checking for $ac_word... " >&6; }
  22808. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  22809. + $as_echo_n "(cached) " >&6
  22810. else
  22811. - if test -n "$RANLIB"; then
  22812. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  22813. + if test -n "$NMEDIT"; then
  22814. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  22815. else
  22816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22817. for as_dir in $PATH
  22818. do
  22819. IFS=$as_save_IFS
  22820. test -z "$as_dir" && as_dir=.
  22821. - for ac_exec_ext in '' $ac_executable_extensions; do
  22822. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22823. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  22824. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22825. + for ac_exec_ext in '' $ac_executable_extensions; do
  22826. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22827. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  22828. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22829. break 2
  22830. fi
  22831. done
  22832. -done
  22833. + done
  22834. +IFS=$as_save_IFS
  22835. fi
  22836. fi
  22837. -RANLIB=$ac_cv_prog_RANLIB
  22838. -if test -n "$RANLIB"; then
  22839. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  22840. -echo "${ECHO_T}$RANLIB" >&6
  22841. +NMEDIT=$ac_cv_prog_NMEDIT
  22842. +if test -n "$NMEDIT"; then
  22843. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  22844. +$as_echo "$NMEDIT" >&6; }
  22845. else
  22846. - echo "$as_me:$LINENO: result: no" >&5
  22847. -echo "${ECHO_T}no" >&6
  22848. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22849. +$as_echo "no" >&6; }
  22850. fi
  22851. +
  22852. fi
  22853. -if test -z "$ac_cv_prog_RANLIB"; then
  22854. - ac_ct_RANLIB=$RANLIB
  22855. - # Extract the first word of "ranlib", so it can be a program name with args.
  22856. -set dummy ranlib; ac_word=$2
  22857. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22858. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22859. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  22860. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22861. +if test -z "$ac_cv_prog_NMEDIT"; then
  22862. + ac_ct_NMEDIT=$NMEDIT
  22863. + # Extract the first word of "nmedit", so it can be a program name with args.
  22864. +set dummy nmedit; ac_word=$2
  22865. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22866. +$as_echo_n "checking for $ac_word... " >&6; }
  22867. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  22868. + $as_echo_n "(cached) " >&6
  22869. else
  22870. - if test -n "$ac_ct_RANLIB"; then
  22871. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  22872. + if test -n "$ac_ct_NMEDIT"; then
  22873. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  22874. else
  22875. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22876. for as_dir in $PATH
  22877. do
  22878. IFS=$as_save_IFS
  22879. test -z "$as_dir" && as_dir=.
  22880. - for ac_exec_ext in '' $ac_executable_extensions; do
  22881. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22882. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  22883. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22884. + for ac_exec_ext in '' $ac_executable_extensions; do
  22885. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22886. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  22887. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22888. break 2
  22889. fi
  22890. done
  22891. -done
  22892. + done
  22893. +IFS=$as_save_IFS
  22894. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  22895. fi
  22896. fi
  22897. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  22898. -if test -n "$ac_ct_RANLIB"; then
  22899. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  22900. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  22901. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  22902. +if test -n "$ac_ct_NMEDIT"; then
  22903. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  22904. +$as_echo "$ac_ct_NMEDIT" >&6; }
  22905. else
  22906. - echo "$as_me:$LINENO: result: no" >&5
  22907. -echo "${ECHO_T}no" >&6
  22908. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22909. +$as_echo "no" >&6; }
  22910. fi
  22911. - RANLIB=$ac_ct_RANLIB
  22912. + if test "x$ac_ct_NMEDIT" = x; then
  22913. + NMEDIT=":"
  22914. + else
  22915. + case $cross_compiling:$ac_tool_warned in
  22916. +yes:)
  22917. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22918. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22919. +ac_tool_warned=yes ;;
  22920. +esac
  22921. + NMEDIT=$ac_ct_NMEDIT
  22922. + fi
  22923. else
  22924. - RANLIB="$ac_cv_prog_RANLIB"
  22925. + NMEDIT="$ac_cv_prog_NMEDIT"
  22926. fi
  22927. -if test -n "$ac_tool_prefix"; then
  22928. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  22929. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  22930. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22931. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22932. -if test "${ac_cv_prog_STRIP+set}" = set; then
  22933. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22934. + if test -n "$ac_tool_prefix"; then
  22935. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  22936. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  22937. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22938. +$as_echo_n "checking for $ac_word... " >&6; }
  22939. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  22940. + $as_echo_n "(cached) " >&6
  22941. else
  22942. - if test -n "$STRIP"; then
  22943. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  22944. + if test -n "$LIPO"; then
  22945. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  22946. else
  22947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22948. for as_dir in $PATH
  22949. do
  22950. IFS=$as_save_IFS
  22951. test -z "$as_dir" && as_dir=.
  22952. - for ac_exec_ext in '' $ac_executable_extensions; do
  22953. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22954. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  22955. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22956. + for ac_exec_ext in '' $ac_executable_extensions; do
  22957. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22958. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  22959. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22960. break 2
  22961. fi
  22962. done
  22963. -done
  22964. + done
  22965. +IFS=$as_save_IFS
  22966. fi
  22967. fi
  22968. -STRIP=$ac_cv_prog_STRIP
  22969. -if test -n "$STRIP"; then
  22970. - echo "$as_me:$LINENO: result: $STRIP" >&5
  22971. -echo "${ECHO_T}$STRIP" >&6
  22972. +LIPO=$ac_cv_prog_LIPO
  22973. +if test -n "$LIPO"; then
  22974. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  22975. +$as_echo "$LIPO" >&6; }
  22976. else
  22977. - echo "$as_me:$LINENO: result: no" >&5
  22978. -echo "${ECHO_T}no" >&6
  22979. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22980. +$as_echo "no" >&6; }
  22981. fi
  22982. +
  22983. fi
  22984. -if test -z "$ac_cv_prog_STRIP"; then
  22985. - ac_ct_STRIP=$STRIP
  22986. - # Extract the first word of "strip", so it can be a program name with args.
  22987. -set dummy strip; ac_word=$2
  22988. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22989. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22990. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  22991. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22992. +if test -z "$ac_cv_prog_LIPO"; then
  22993. + ac_ct_LIPO=$LIPO
  22994. + # Extract the first word of "lipo", so it can be a program name with args.
  22995. +set dummy lipo; ac_word=$2
  22996. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22997. +$as_echo_n "checking for $ac_word... " >&6; }
  22998. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  22999. + $as_echo_n "(cached) " >&6
  23000. else
  23001. - if test -n "$ac_ct_STRIP"; then
  23002. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23003. + if test -n "$ac_ct_LIPO"; then
  23004. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  23005. else
  23006. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23007. for as_dir in $PATH
  23008. do
  23009. IFS=$as_save_IFS
  23010. test -z "$as_dir" && as_dir=.
  23011. - for ac_exec_ext in '' $ac_executable_extensions; do
  23012. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23013. - ac_cv_prog_ac_ct_STRIP="strip"
  23014. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23015. + for ac_exec_ext in '' $ac_executable_extensions; do
  23016. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23017. + ac_cv_prog_ac_ct_LIPO="lipo"
  23018. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23019. break 2
  23020. fi
  23021. done
  23022. -done
  23023. + done
  23024. +IFS=$as_save_IFS
  23025. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  23026. fi
  23027. fi
  23028. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23029. -if test -n "$ac_ct_STRIP"; then
  23030. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  23031. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  23032. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  23033. +if test -n "$ac_ct_LIPO"; then
  23034. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  23035. +$as_echo "$ac_ct_LIPO" >&6; }
  23036. else
  23037. - echo "$as_me:$LINENO: result: no" >&5
  23038. -echo "${ECHO_T}no" >&6
  23039. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23040. +$as_echo "no" >&6; }
  23041. fi
  23042. - STRIP=$ac_ct_STRIP
  23043. + if test "x$ac_ct_LIPO" = x; then
  23044. + LIPO=":"
  23045. + else
  23046. + case $cross_compiling:$ac_tool_warned in
  23047. +yes:)
  23048. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23049. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23050. +ac_tool_warned=yes ;;
  23051. +esac
  23052. + LIPO=$ac_ct_LIPO
  23053. + fi
  23054. else
  23055. - STRIP="$ac_cv_prog_STRIP"
  23056. + LIPO="$ac_cv_prog_LIPO"
  23057. fi
  23058. + if test -n "$ac_tool_prefix"; then
  23059. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  23060. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  23061. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23062. +$as_echo_n "checking for $ac_word... " >&6; }
  23063. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  23064. + $as_echo_n "(cached) " >&6
  23065. +else
  23066. + if test -n "$OTOOL"; then
  23067. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  23068. +else
  23069. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23070. +for as_dir in $PATH
  23071. +do
  23072. + IFS=$as_save_IFS
  23073. + test -z "$as_dir" && as_dir=.
  23074. + for ac_exec_ext in '' $ac_executable_extensions; do
  23075. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23076. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  23077. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23078. + break 2
  23079. + fi
  23080. +done
  23081. + done
  23082. +IFS=$as_save_IFS
  23083. -old_CC="$CC"
  23084. -old_CFLAGS="$CFLAGS"
  23085. +fi
  23086. +fi
  23087. +OTOOL=$ac_cv_prog_OTOOL
  23088. +if test -n "$OTOOL"; then
  23089. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  23090. +$as_echo "$OTOOL" >&6; }
  23091. +else
  23092. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23093. +$as_echo "no" >&6; }
  23094. +fi
  23095. -# Set sane defaults for various variables
  23096. -test -z "$AR" && AR=ar
  23097. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  23098. -test -z "$AS" && AS=as
  23099. -test -z "$CC" && CC=cc
  23100. -test -z "$LTCC" && LTCC=$CC
  23101. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  23102. -test -z "$LD" && LD=ld
  23103. -test -z "$LN_S" && LN_S="ln -s"
  23104. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  23105. -test -z "$NM" && NM=nm
  23106. -test -z "$SED" && SED=sed
  23107. -test -z "$OBJDUMP" && OBJDUMP=objdump
  23108. -test -z "$RANLIB" && RANLIB=:
  23109. -test -z "$STRIP" && STRIP=:
  23110. -test -z "$ac_objext" && ac_objext=o
  23111. -# Determine commands to create old-style static archives.
  23112. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  23113. -old_postinstall_cmds='chmod 644 $oldlib'
  23114. -old_postuninstall_cmds=
  23115. -
  23116. -if test -n "$RANLIB"; then
  23117. - case $host_os in
  23118. - openbsd*)
  23119. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  23120. - ;;
  23121. - *)
  23122. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  23123. - ;;
  23124. - esac
  23125. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23126. fi
  23127. -
  23128. -# Only perform the check for file, if the check method requires it
  23129. -case $deplibs_check_method in
  23130. -file_magic*)
  23131. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  23132. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  23133. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  23134. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23135. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23136. +if test -z "$ac_cv_prog_OTOOL"; then
  23137. + ac_ct_OTOOL=$OTOOL
  23138. + # Extract the first word of "otool", so it can be a program name with args.
  23139. +set dummy otool; ac_word=$2
  23140. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23141. +$as_echo_n "checking for $ac_word... " >&6; }
  23142. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  23143. + $as_echo_n "(cached) " >&6
  23144. else
  23145. - case $MAGIC_CMD in
  23146. -[\\/*] | ?:[\\/]*)
  23147. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23148. - ;;
  23149. -*)
  23150. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23151. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23152. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23153. - for ac_dir in $ac_dummy; do
  23154. - IFS="$lt_save_ifs"
  23155. - test -z "$ac_dir" && ac_dir=.
  23156. - if test -f $ac_dir/${ac_tool_prefix}file; then
  23157. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  23158. - if test -n "$file_magic_test_file"; then
  23159. - case $deplibs_check_method in
  23160. - "file_magic "*)
  23161. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  23162. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23163. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23164. - $EGREP "$file_magic_regex" > /dev/null; then
  23165. - :
  23166. - else
  23167. - cat <<EOF 1>&2
  23168. + if test -n "$ac_ct_OTOOL"; then
  23169. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  23170. +else
  23171. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23172. +for as_dir in $PATH
  23173. +do
  23174. + IFS=$as_save_IFS
  23175. + test -z "$as_dir" && as_dir=.
  23176. + for ac_exec_ext in '' $ac_executable_extensions; do
  23177. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23178. + ac_cv_prog_ac_ct_OTOOL="otool"
  23179. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23180. + break 2
  23181. + fi
  23182. +done
  23183. + done
  23184. +IFS=$as_save_IFS
  23185. -*** Warning: the command libtool uses to detect shared libraries,
  23186. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23187. -*** The result is that libtool may fail to recognize shared libraries
  23188. -*** as such. This will affect the creation of libtool libraries that
  23189. -*** depend on shared libraries, but programs linked with such libtool
  23190. -*** libraries will work regardless of this problem. Nevertheless, you
  23191. -*** may want to report the problem to your system manager and/or to
  23192. -*** bug-libtool@gnu.org
  23193. +fi
  23194. +fi
  23195. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  23196. +if test -n "$ac_ct_OTOOL"; then
  23197. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  23198. +$as_echo "$ac_ct_OTOOL" >&6; }
  23199. +else
  23200. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23201. +$as_echo "no" >&6; }
  23202. +fi
  23203. -EOF
  23204. - fi ;;
  23205. - esac
  23206. - fi
  23207. - break
  23208. - fi
  23209. - done
  23210. - IFS="$lt_save_ifs"
  23211. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23212. - ;;
  23213. + if test "x$ac_ct_OTOOL" = x; then
  23214. + OTOOL=":"
  23215. + else
  23216. + case $cross_compiling:$ac_tool_warned in
  23217. +yes:)
  23218. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23219. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23220. +ac_tool_warned=yes ;;
  23221. esac
  23222. + OTOOL=$ac_ct_OTOOL
  23223. + fi
  23224. +else
  23225. + OTOOL="$ac_cv_prog_OTOOL"
  23226. fi
  23227. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23228. -if test -n "$MAGIC_CMD"; then
  23229. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23230. -echo "${ECHO_T}$MAGIC_CMD" >&6
  23231. + if test -n "$ac_tool_prefix"; then
  23232. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  23233. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  23234. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23235. +$as_echo_n "checking for $ac_word... " >&6; }
  23236. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  23237. + $as_echo_n "(cached) " >&6
  23238. else
  23239. - echo "$as_me:$LINENO: result: no" >&5
  23240. -echo "${ECHO_T}no" >&6
  23241. -fi
  23242. + if test -n "$OTOOL64"; then
  23243. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  23244. +else
  23245. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23246. +for as_dir in $PATH
  23247. +do
  23248. + IFS=$as_save_IFS
  23249. + test -z "$as_dir" && as_dir=.
  23250. + for ac_exec_ext in '' $ac_executable_extensions; do
  23251. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23252. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  23253. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23254. + break 2
  23255. + fi
  23256. +done
  23257. + done
  23258. +IFS=$as_save_IFS
  23259. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  23260. - if test -n "$ac_tool_prefix"; then
  23261. - echo "$as_me:$LINENO: checking for file" >&5
  23262. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  23263. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  23264. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23265. +fi
  23266. +fi
  23267. +OTOOL64=$ac_cv_prog_OTOOL64
  23268. +if test -n "$OTOOL64"; then
  23269. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  23270. +$as_echo "$OTOOL64" >&6; }
  23271. else
  23272. - case $MAGIC_CMD in
  23273. -[\\/*] | ?:[\\/]*)
  23274. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  23275. - ;;
  23276. -*)
  23277. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  23278. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  23279. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  23280. - for ac_dir in $ac_dummy; do
  23281. - IFS="$lt_save_ifs"
  23282. - test -z "$ac_dir" && ac_dir=.
  23283. - if test -f $ac_dir/file; then
  23284. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  23285. - if test -n "$file_magic_test_file"; then
  23286. - case $deplibs_check_method in
  23287. - "file_magic "*)
  23288. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  23289. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23290. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  23291. - $EGREP "$file_magic_regex" > /dev/null; then
  23292. - :
  23293. - else
  23294. - cat <<EOF 1>&2
  23295. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23296. +$as_echo "no" >&6; }
  23297. +fi
  23298. -*** Warning: the command libtool uses to detect shared libraries,
  23299. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  23300. -*** The result is that libtool may fail to recognize shared libraries
  23301. -*** as such. This will affect the creation of libtool libraries that
  23302. -*** depend on shared libraries, but programs linked with such libtool
  23303. -*** libraries will work regardless of this problem. Nevertheless, you
  23304. -*** may want to report the problem to your system manager and/or to
  23305. -*** bug-libtool@gnu.org
  23306. -EOF
  23307. - fi ;;
  23308. - esac
  23309. - fi
  23310. - break
  23311. - fi
  23312. - done
  23313. - IFS="$lt_save_ifs"
  23314. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  23315. - ;;
  23316. -esac
  23317. fi
  23318. +if test -z "$ac_cv_prog_OTOOL64"; then
  23319. + ac_ct_OTOOL64=$OTOOL64
  23320. + # Extract the first word of "otool64", so it can be a program name with args.
  23321. +set dummy otool64; ac_word=$2
  23322. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23323. +$as_echo_n "checking for $ac_word... " >&6; }
  23324. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  23325. + $as_echo_n "(cached) " >&6
  23326. +else
  23327. + if test -n "$ac_ct_OTOOL64"; then
  23328. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  23329. +else
  23330. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23331. +for as_dir in $PATH
  23332. +do
  23333. + IFS=$as_save_IFS
  23334. + test -z "$as_dir" && as_dir=.
  23335. + for ac_exec_ext in '' $ac_executable_extensions; do
  23336. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23337. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  23338. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23339. + break 2
  23340. + fi
  23341. +done
  23342. + done
  23343. +IFS=$as_save_IFS
  23344. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  23345. -if test -n "$MAGIC_CMD"; then
  23346. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  23347. -echo "${ECHO_T}$MAGIC_CMD" >&6
  23348. +fi
  23349. +fi
  23350. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  23351. +if test -n "$ac_ct_OTOOL64"; then
  23352. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  23353. +$as_echo "$ac_ct_OTOOL64" >&6; }
  23354. else
  23355. - echo "$as_me:$LINENO: result: no" >&5
  23356. -echo "${ECHO_T}no" >&6
  23357. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23358. +$as_echo "no" >&6; }
  23359. fi
  23360. + if test "x$ac_ct_OTOOL64" = x; then
  23361. + OTOOL64=":"
  23362. else
  23363. - MAGIC_CMD=:
  23364. + case $cross_compiling:$ac_tool_warned in
  23365. +yes:)
  23366. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23367. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23368. +ac_tool_warned=yes ;;
  23369. +esac
  23370. + OTOOL64=$ac_ct_OTOOL64
  23371. fi
  23372. +else
  23373. + OTOOL64="$ac_cv_prog_OTOOL64"
  23374. fi
  23375. - fi
  23376. - ;;
  23377. -esac
  23378. -
  23379. -enable_dlopen=no
  23380. -enable_win32_dll=no
  23381. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  23382. -if test "${enable_libtool_lock+set}" = set; then
  23383. - enableval="$enable_libtool_lock"
  23384. -fi;
  23385. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  23386. -# Check whether --with-pic or --without-pic was given.
  23387. -if test "${with_pic+set}" = set; then
  23388. - withval="$with_pic"
  23389. - pic_mode="$withval"
  23390. -else
  23391. - pic_mode=default
  23392. -fi;
  23393. -test -z "$pic_mode" && pic_mode=default
  23394. -# Use C for the default configuration in the libtool script
  23395. -tagname=
  23396. -lt_save_CC="$CC"
  23397. -ac_ext=c
  23398. -ac_cpp='$CPP $CPPFLAGS'
  23399. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23400. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23401. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23402. -# Source file extension for C test sources.
  23403. -ac_ext=c
  23404. -# Object file extension for compiled C test sources.
  23405. -objext=o
  23406. -objext=$objext
  23407. -# Code to be used in simple compile tests
  23408. -lt_simple_compile_test_code="int some_variable = 0;\n"
  23409. -# Code to be used in simple link tests
  23410. -lt_simple_link_test_code='int main(){return(0);}\n'
  23411. -# If no C compiler was specified, use CC.
  23412. -LTCC=${LTCC-"$CC"}
  23413. -# Allow CC to be a program name with arguments.
  23414. -compiler=$CC
  23415. -#
  23416. -# Check for any special shared library compilation flags.
  23417. -#
  23418. -lt_prog_cc_shlib=
  23419. -if test "$GCC" = no; then
  23420. - case $host_os in
  23421. - sco3.2v5*)
  23422. - lt_prog_cc_shlib='-belf'
  23423. - ;;
  23424. - esac
  23425. -fi
  23426. -if test -n "$lt_prog_cc_shlib"; then
  23427. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  23428. -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  23429. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  23430. - else
  23431. - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  23432. -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  23433. - lt_cv_prog_cc_can_build_shared=no
  23434. - fi
  23435. -fi
  23436. -#
  23437. -# Check to make sure the static flag actually works.
  23438. -#
  23439. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  23440. -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  23441. -if test "${lt_prog_compiler_static_works+set}" = set; then
  23442. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23443. -else
  23444. - lt_prog_compiler_static_works=no
  23445. - save_LDFLAGS="$LDFLAGS"
  23446. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  23447. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  23448. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  23449. - # The compiler can only warn and ignore the option if not recognized
  23450. - # So say no if there are warnings
  23451. - if test -s conftest.err; then
  23452. - # Append any errors to the config.log.
  23453. - cat conftest.err 1>&5
  23454. - else
  23455. - lt_prog_compiler_static_works=yes
  23456. - fi
  23457. - fi
  23458. - $rm conftest*
  23459. - LDFLAGS="$save_LDFLAGS"
  23460. -fi
  23461. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  23462. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  23463. -if test x"$lt_prog_compiler_static_works" = xyes; then
  23464. - :
  23465. -else
  23466. - lt_prog_compiler_static=
  23467. -fi
  23468. -lt_prog_compiler_no_builtin_flag=
  23469. -if test "$GCC" = yes; then
  23470. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  23471. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23472. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  23473. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  23474. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23475. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  23476. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  23477. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  23478. + $as_echo_n "(cached) " >&6
  23479. else
  23480. - lt_cv_prog_compiler_rtti_exceptions=no
  23481. - ac_outfile=conftest.$ac_objext
  23482. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23483. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  23484. - # Insert the option either (1) after the last *FLAGS variable, or
  23485. - # (2) before a word containing "conftest.", or (3) at the end.
  23486. - # Note that $ac_compile itself does not contain backslashes and begins
  23487. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23488. - # The option is referenced via a variable to avoid confusing sed.
  23489. - lt_compile=`echo "$ac_compile" | $SED \
  23490. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  23491. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23492. - -e 's:$: $lt_compiler_flag:'`
  23493. - (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
  23494. - (eval "$lt_compile" 2>conftest.err)
  23495. - ac_status=$?
  23496. - cat conftest.err >&5
  23497. - echo "$as_me:6267: \$? = $ac_status" >&5
  23498. - if (exit $ac_status) && test -s "$ac_outfile"; then
  23499. - # The compiler can only warn and ignore the option if not recognized
  23500. - # So say no if there are warnings
  23501. - if test ! -s conftest.err; then
  23502. - lt_cv_prog_compiler_rtti_exceptions=yes
  23503. - fi
  23504. - fi
  23505. - $rm conftest*
  23506. -
  23507. + lt_cv_apple_cc_single_mod=no
  23508. + if test -z "${LT_MULTI_MODULE}"; then
  23509. + # By default we will add the -single_module flag. You can override
  23510. + # by either setting the environment variable LT_MULTI_MODULE
  23511. + # non-empty at configure time, or by adding -multi_module to the
  23512. + # link flags.
  23513. + rm -rf libconftest.dylib*
  23514. + echo "int foo(void){return 1;}" > conftest.c
  23515. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  23516. +-dynamiclib -Wl,-single_module conftest.c" >&5
  23517. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  23518. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  23519. + _lt_result=$?
  23520. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  23521. + lt_cv_apple_cc_single_mod=yes
  23522. + else
  23523. + cat conftest.err >&5
  23524. + fi
  23525. + rm -rf libconftest.dylib*
  23526. + rm -f conftest.*
  23527. + fi
  23528. fi
  23529. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  23530. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  23531. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  23532. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  23533. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  23534. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  23535. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  23536. + $as_echo_n "(cached) " >&6
  23537. +else
  23538. + lt_cv_ld_exported_symbols_list=no
  23539. + save_LDFLAGS=$LDFLAGS
  23540. + echo "_main" > conftest.sym
  23541. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  23542. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  23543. +/* end confdefs.h. */
  23544. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  23545. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  23546. +int
  23547. +main ()
  23548. +{
  23549. +
  23550. + ;
  23551. + return 0;
  23552. +}
  23553. +_ACEOF
  23554. +if ac_fn_c_try_link "$LINENO"; then :
  23555. + lt_cv_ld_exported_symbols_list=yes
  23556. else
  23557. - :
  23558. + lt_cv_ld_exported_symbols_list=no
  23559. fi
  23560. +rm -f core conftest.err conftest.$ac_objext \
  23561. + conftest$ac_exeext conftest.$ac_ext
  23562. + LDFLAGS="$save_LDFLAGS"
  23563. fi
  23564. -
  23565. -lt_prog_compiler_wl=
  23566. -lt_prog_compiler_pic=
  23567. -lt_prog_compiler_static=
  23568. -
  23569. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  23570. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  23571. -
  23572. - if test "$GCC" = yes; then
  23573. - lt_prog_compiler_wl='-Wl,'
  23574. - lt_prog_compiler_static='-static'
  23575. -
  23576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  23577. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  23578. case $host_os in
  23579. - aix*)
  23580. - # All AIX code is PIC.
  23581. - if test "$host_cpu" = ia64; then
  23582. - # AIX 5 now supports IA64 processor
  23583. - lt_prog_compiler_static='-Bstatic'
  23584. - fi
  23585. - ;;
  23586. -
  23587. - amigaos*)
  23588. - # FIXME: we need at least 68020 code to build shared libraries, but
  23589. - # adding the `-m68020' flag to GCC prevents building anything better,
  23590. - # like `-m68040'.
  23591. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  23592. - ;;
  23593. -
  23594. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  23595. - # PIC is the default for these OSes.
  23596. - ;;
  23597. -
  23598. - mingw* | pw32* | os2*)
  23599. - # This hack is so that the source file can tell whether it is being
  23600. - # built for inclusion in a dll (and should export symbols for example).
  23601. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23602. - ;;
  23603. -
  23604. - darwin* | rhapsody*)
  23605. - # PIC is the default on this platform
  23606. - # Common symbols not allowed in MH_DYLIB files
  23607. - lt_prog_compiler_pic='-fno-common'
  23608. - ;;
  23609. -
  23610. - msdosdjgpp*)
  23611. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  23612. - # on systems that don't support them.
  23613. - lt_prog_compiler_can_build_shared=no
  23614. - enable_shared=no
  23615. - ;;
  23616. -
  23617. - sysv4*MP*)
  23618. - if test -d /usr/nec; then
  23619. - lt_prog_compiler_pic=-Kconform_pic
  23620. - fi
  23621. - ;;
  23622. -
  23623. - hpux*)
  23624. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23625. - # not for PA HP-UX.
  23626. - case "$host_cpu" in
  23627. - hppa*64*|ia64*)
  23628. - # +Z the default
  23629. - ;;
  23630. - *)
  23631. - lt_prog_compiler_pic='-fPIC'
  23632. - ;;
  23633. - esac
  23634. - ;;
  23635. -
  23636. - *)
  23637. - lt_prog_compiler_pic='-fPIC'
  23638. - ;;
  23639. - esac
  23640. - else
  23641. - # PORTME Check for flag to pass linker flags through the system compiler.
  23642. - case $host_os in
  23643. - aix*)
  23644. - lt_prog_compiler_wl='-Wl,'
  23645. - if test "$host_cpu" = ia64; then
  23646. - # AIX 5 now supports IA64 processor
  23647. - lt_prog_compiler_static='-Bstatic'
  23648. - else
  23649. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  23650. - fi
  23651. - ;;
  23652. -
  23653. - mingw* | pw32* | os2*)
  23654. - # This hack is so that the source file can tell whether it is being
  23655. - # built for inclusion in a dll (and should export symbols for example).
  23656. - lt_prog_compiler_pic='-DDLL_EXPORT'
  23657. - ;;
  23658. -
  23659. - hpux9* | hpux10* | hpux11*)
  23660. - lt_prog_compiler_wl='-Wl,'
  23661. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  23662. - # not for PA HP-UX.
  23663. - case "$host_cpu" in
  23664. - hppa*64*|ia64*)
  23665. - # +Z the default
  23666. - ;;
  23667. - *)
  23668. - lt_prog_compiler_pic='+Z'
  23669. - ;;
  23670. - esac
  23671. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  23672. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  23673. - ;;
  23674. -
  23675. - irix5* | irix6* | nonstopux*)
  23676. - lt_prog_compiler_wl='-Wl,'
  23677. - # PIC (with -KPIC) is the default.
  23678. - lt_prog_compiler_static='-non_shared'
  23679. - ;;
  23680. -
  23681. - newsos6)
  23682. - lt_prog_compiler_pic='-KPIC'
  23683. - lt_prog_compiler_static='-Bstatic'
  23684. - ;;
  23685. -
  23686. - linux*)
  23687. - case $CC in
  23688. - icc* | ecc*)
  23689. - lt_prog_compiler_wl='-Wl,'
  23690. - lt_prog_compiler_pic='-KPIC'
  23691. - lt_prog_compiler_static='-static'
  23692. - ;;
  23693. - ccc*)
  23694. - lt_prog_compiler_wl='-Wl,'
  23695. - # All Alpha code is PIC.
  23696. - lt_prog_compiler_static='-non_shared'
  23697. - ;;
  23698. - esac
  23699. - ;;
  23700. -
  23701. - osf3* | osf4* | osf5*)
  23702. - lt_prog_compiler_wl='-Wl,'
  23703. - # All OSF/1 code is PIC.
  23704. - lt_prog_compiler_static='-non_shared'
  23705. - ;;
  23706. -
  23707. - sco3.2v5*)
  23708. - lt_prog_compiler_pic='-Kpic'
  23709. - lt_prog_compiler_static='-dn'
  23710. - ;;
  23711. -
  23712. - solaris*)
  23713. - lt_prog_compiler_wl='-Wl,'
  23714. - lt_prog_compiler_pic='-KPIC'
  23715. - lt_prog_compiler_static='-Bstatic'
  23716. - ;;
  23717. -
  23718. - sunos4*)
  23719. - lt_prog_compiler_wl='-Qoption ld '
  23720. - lt_prog_compiler_pic='-PIC'
  23721. - lt_prog_compiler_static='-Bstatic'
  23722. - ;;
  23723. -
  23724. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  23725. - lt_prog_compiler_wl='-Wl,'
  23726. - lt_prog_compiler_pic='-KPIC'
  23727. - lt_prog_compiler_static='-Bstatic'
  23728. - ;;
  23729. -
  23730. - sysv4*MP*)
  23731. - if test -d /usr/nec ;then
  23732. - lt_prog_compiler_pic='-Kconform_pic'
  23733. - lt_prog_compiler_static='-Bstatic'
  23734. - fi
  23735. - ;;
  23736. -
  23737. - uts4*)
  23738. - lt_prog_compiler_pic='-pic'
  23739. - lt_prog_compiler_static='-Bstatic'
  23740. - ;;
  23741. -
  23742. - *)
  23743. - lt_prog_compiler_can_build_shared=no
  23744. - ;;
  23745. - esac
  23746. - fi
  23747. -
  23748. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  23749. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  23750. -
  23751. -#
  23752. -# Check to make sure the PIC flag actually works.
  23753. -#
  23754. -if test -n "$lt_prog_compiler_pic"; then
  23755. -
  23756. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  23757. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  23758. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  23759. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23760. -else
  23761. - lt_prog_compiler_pic_works=no
  23762. - ac_outfile=conftest.$ac_objext
  23763. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23764. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  23765. - # Insert the option either (1) after the last *FLAGS variable, or
  23766. - # (2) before a word containing "conftest.", or (3) at the end.
  23767. - # Note that $ac_compile itself does not contain backslashes and begins
  23768. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23769. - # The option is referenced via a variable to avoid confusing sed.
  23770. - lt_compile=`echo "$ac_compile" | $SED \
  23771. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  23772. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23773. - -e 's:$: $lt_compiler_flag:'`
  23774. - (eval echo "\"\$as_me:6496: $lt_compile\"" >&5)
  23775. - (eval "$lt_compile" 2>conftest.err)
  23776. - ac_status=$?
  23777. - cat conftest.err >&5
  23778. - echo "$as_me:6500: \$? = $ac_status" >&5
  23779. - if (exit $ac_status) && test -s "$ac_outfile"; then
  23780. - # The compiler can only warn and ignore the option if not recognized
  23781. - # So say no if there are warnings
  23782. - if test ! -s conftest.err; then
  23783. - lt_prog_compiler_pic_works=yes
  23784. - fi
  23785. - fi
  23786. - $rm conftest*
  23787. -
  23788. -fi
  23789. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  23790. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  23791. -
  23792. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  23793. - case $lt_prog_compiler_pic in
  23794. - "" | " "*) ;;
  23795. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  23796. - esac
  23797. -else
  23798. - lt_prog_compiler_pic=
  23799. - lt_prog_compiler_can_build_shared=no
  23800. -fi
  23801. -
  23802. -fi
  23803. -case "$host_os" in
  23804. - # For platforms which do not support PIC, -DPIC is meaningless:
  23805. - *djgpp*)
  23806. - lt_prog_compiler_pic=
  23807. - ;;
  23808. - *)
  23809. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  23810. - ;;
  23811. -esac
  23812. -
  23813. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  23814. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  23815. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  23816. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23817. -else
  23818. - lt_cv_prog_compiler_c_o=no
  23819. - $rm -r conftest 2>/dev/null
  23820. - mkdir conftest
  23821. - cd conftest
  23822. - mkdir out
  23823. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  23824. -
  23825. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  23826. - # Insert the option either (1) after the last *FLAGS variable, or
  23827. - # (2) before a word containing "conftest.", or (3) at the end.
  23828. - # Note that $ac_compile itself does not contain backslashes and begins
  23829. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  23830. - lt_compile=`echo "$ac_compile" | $SED \
  23831. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  23832. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  23833. - -e 's:$: $lt_compiler_flag:'`
  23834. - (eval echo "\"\$as_me:6556: $lt_compile\"" >&5)
  23835. - (eval "$lt_compile" 2>out/conftest.err)
  23836. - ac_status=$?
  23837. - cat out/conftest.err >&5
  23838. - echo "$as_me:6560: \$? = $ac_status" >&5
  23839. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  23840. - then
  23841. - # The compiler can only warn and ignore the option if not recognized
  23842. - # So say no if there are warnings
  23843. - if test ! -s out/conftest.err; then
  23844. - lt_cv_prog_compiler_c_o=yes
  23845. - fi
  23846. - fi
  23847. - chmod u+w .
  23848. - $rm conftest*
  23849. - # SGI C++ compiler will create directory out/ii_files/ for
  23850. - # template instantiation
  23851. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  23852. - $rm out/* && rmdir out
  23853. - cd ..
  23854. - rmdir conftest
  23855. - $rm conftest*
  23856. -
  23857. -fi
  23858. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  23859. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  23860. -
  23861. -
  23862. -hard_links="nottested"
  23863. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  23864. - # do not overwrite the value of need_locks provided by the user
  23865. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  23866. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  23867. - hard_links=yes
  23868. - $rm conftest*
  23869. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23870. - touch conftest.a
  23871. - ln conftest.a conftest.b 2>&5 || hard_links=no
  23872. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23873. - echo "$as_me:$LINENO: result: $hard_links" >&5
  23874. -echo "${ECHO_T}$hard_links" >&6
  23875. - if test "$hard_links" = no; then
  23876. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  23877. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  23878. - need_locks=warn
  23879. - fi
  23880. -else
  23881. - need_locks=no
  23882. -fi
  23883. -
  23884. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  23885. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  23886. -
  23887. - runpath_var=
  23888. - allow_undefined_flag=
  23889. - enable_shared_with_static_runtimes=no
  23890. - archive_cmds=
  23891. - archive_expsym_cmds=
  23892. - old_archive_From_new_cmds=
  23893. - old_archive_from_expsyms_cmds=
  23894. - export_dynamic_flag_spec=
  23895. - whole_archive_flag_spec=
  23896. - thread_safe_flag_spec=
  23897. - hardcode_libdir_flag_spec=
  23898. - hardcode_libdir_flag_spec_ld=
  23899. - hardcode_libdir_separator=
  23900. - hardcode_direct=no
  23901. - hardcode_minus_L=no
  23902. - hardcode_shlibpath_var=unsupported
  23903. - link_all_deplibs=unknown
  23904. - hardcode_automatic=no
  23905. - module_cmds=
  23906. - module_expsym_cmds=
  23907. - always_export_symbols=no
  23908. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  23909. - # include_expsyms should be a list of space-separated symbols to be *always*
  23910. - # included in the symbol list
  23911. - include_expsyms=
  23912. - # exclude_expsyms can be an extended regexp of symbols to exclude
  23913. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  23914. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  23915. - # as well as any symbol that contains `d'.
  23916. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  23917. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  23918. - # platforms (ab)use it in PIC code, but their linkers get confused if
  23919. - # the symbol is explicitly referenced. Since portable code cannot
  23920. - # rely on this symbol name, it's probably fine to never include it in
  23921. - # preloaded symbol tables.
  23922. - extract_expsyms_cmds=
  23923. -
  23924. - case $host_os in
  23925. - cygwin* | mingw* | pw32*)
  23926. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  23927. - # When not using gcc, we currently assume that we are using
  23928. - # Microsoft Visual C++.
  23929. - if test "$GCC" != yes; then
  23930. - with_gnu_ld=no
  23931. - fi
  23932. - ;;
  23933. - openbsd*)
  23934. - with_gnu_ld=no
  23935. - ;;
  23936. - esac
  23937. -
  23938. - ld_shlibs=yes
  23939. - if test "$with_gnu_ld" = yes; then
  23940. - # If archive_cmds runs LD, not CC, wlarc should be empty
  23941. - wlarc='${wl}'
  23942. -
  23943. - # See if GNU ld supports shared libraries.
  23944. - case $host_os in
  23945. - aix3* | aix4* | aix5*)
  23946. - # On AIX/PPC, the GNU linker is very broken
  23947. - if test "$host_cpu" != ia64; then
  23948. - ld_shlibs=no
  23949. - cat <<EOF 1>&2
  23950. -
  23951. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  23952. -*** to be unable to reliably create shared libraries on AIX.
  23953. -*** Therefore, libtool is disabling shared libraries support. If you
  23954. -*** really care for shared libraries, you may want to modify your PATH
  23955. -*** so that a non-GNU linker is found, and then restart.
  23956. -
  23957. -EOF
  23958. - fi
  23959. - ;;
  23960. -
  23961. - amigaos*)
  23962. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  23963. - hardcode_libdir_flag_spec='-L$libdir'
  23964. - hardcode_minus_L=yes
  23965. -
  23966. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  23967. - # that the semantics of dynamic libraries on AmigaOS, at least up
  23968. - # to version 4, is to share data among multiple programs linked
  23969. - # with the same dynamic library. Since this doesn't match the
  23970. - # behavior of shared libraries on other platforms, we can't use
  23971. - # them.
  23972. - ld_shlibs=no
  23973. - ;;
  23974. -
  23975. - beos*)
  23976. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  23977. - allow_undefined_flag=unsupported
  23978. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  23979. - # support --undefined. This deserves some investigation. FIXME
  23980. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  23981. - else
  23982. - ld_shlibs=no
  23983. - fi
  23984. - ;;
  23985. -
  23986. - cygwin* | mingw* | pw32*)
  23987. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  23988. - # as there is no search path for DLLs.
  23989. - hardcode_libdir_flag_spec='-L$libdir'
  23990. - allow_undefined_flag=unsupported
  23991. - always_export_symbols=no
  23992. - enable_shared_with_static_runtimes=yes
  23993. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  23994. -
  23995. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  23996. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  23997. - # If the export-symbols file already is a .def file (1st line
  23998. - # is EXPORTS), use it as is; otherwise, prepend...
  23999. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  24000. - cp $export_symbols $output_objdir/$soname.def;
  24001. - else
  24002. - echo EXPORTS > $output_objdir/$soname.def;
  24003. - cat $export_symbols >> $output_objdir/$soname.def;
  24004. - fi~
  24005. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  24006. - else
  24007. - ld_shlibs=no
  24008. - fi
  24009. - ;;
  24010. -
  24011. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  24012. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24013. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  24014. - wlarc=
  24015. - else
  24016. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24017. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24018. - fi
  24019. - ;;
  24020. -
  24021. - solaris* | sysv5*)
  24022. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  24023. - ld_shlibs=no
  24024. - cat <<EOF 1>&2
  24025. -
  24026. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  24027. -*** create shared libraries on Solaris systems. Therefore, libtool
  24028. -*** is disabling shared libraries support. We urge you to upgrade GNU
  24029. -*** binutils to release 2.9.1 or newer. Another option is to modify
  24030. -*** your PATH or compiler configuration so that the native linker is
  24031. -*** used, and then restart.
  24032. -
  24033. -EOF
  24034. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24035. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24036. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24037. - else
  24038. - ld_shlibs=no
  24039. - fi
  24040. - ;;
  24041. -
  24042. - sunos4*)
  24043. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24044. - wlarc=
  24045. - hardcode_direct=yes
  24046. - hardcode_shlibpath_var=no
  24047. - ;;
  24048. -
  24049. - linux*)
  24050. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24051. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24052. - archive_cmds="$tmp_archive_cmds"
  24053. - supports_anon_versioning=no
  24054. - case `$LD -v 2>/dev/null` in
  24055. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  24056. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  24057. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  24058. - *\ 2.11.*) ;; # other 2.11 versions
  24059. - *) supports_anon_versioning=yes ;;
  24060. - esac
  24061. - if test $supports_anon_versioning = yes; then
  24062. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  24063. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  24064. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  24065. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  24066. - else
  24067. - archive_expsym_cmds="$tmp_archive_cmds"
  24068. - fi
  24069. - link_all_deplibs=no
  24070. - else
  24071. - ld_shlibs=no
  24072. - fi
  24073. - ;;
  24074. -
  24075. - *)
  24076. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  24077. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  24078. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  24079. - else
  24080. - ld_shlibs=no
  24081. - fi
  24082. - ;;
  24083. - esac
  24084. -
  24085. - if test "$ld_shlibs" = yes; then
  24086. - runpath_var=LD_RUN_PATH
  24087. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  24088. - export_dynamic_flag_spec='${wl}--export-dynamic'
  24089. - # ancient GNU ld didn't support --whole-archive et. al.
  24090. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  24091. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  24092. - else
  24093. - whole_archive_flag_spec=
  24094. - fi
  24095. - fi
  24096. - else
  24097. - # PORTME fill in a description of your system's linker (not GNU ld)
  24098. - case $host_os in
  24099. - aix3*)
  24100. - allow_undefined_flag=unsupported
  24101. - always_export_symbols=yes
  24102. - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  24103. - # Note: this linker hardcodes the directories in LIBPATH if there
  24104. - # are no directories specified by -L.
  24105. - hardcode_minus_L=yes
  24106. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  24107. - # Neither direct hardcoding nor static linking is supported with a
  24108. - # broken collect2.
  24109. - hardcode_direct=unsupported
  24110. - fi
  24111. - ;;
  24112. -
  24113. - aix4* | aix5*)
  24114. - if test "$host_cpu" = ia64; then
  24115. - # On IA64, the linker does run time linking by default, so we don't
  24116. - # have to do anything special.
  24117. - aix_use_runtimelinking=no
  24118. - exp_sym_flag='-Bexport'
  24119. - no_entry_flag=""
  24120. - else
  24121. - # If we're using GNU nm, then we don't want the "-C" option.
  24122. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  24123. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  24124. - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  24125. - else
  24126. - export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  24127. - fi
  24128. - aix_use_runtimelinking=no
  24129. -
  24130. - # Test if we are trying to use run time linking or normal
  24131. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  24132. - # need to do runtime linking.
  24133. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  24134. - for ld_flag in $LDFLAGS; do
  24135. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  24136. - aix_use_runtimelinking=yes
  24137. - break
  24138. - fi
  24139. - done
  24140. - esac
  24141. -
  24142. - exp_sym_flag='-bexport'
  24143. - no_entry_flag='-bnoentry'
  24144. - fi
  24145. -
  24146. - # When large executables or shared objects are built, AIX ld can
  24147. - # have problems creating the table of contents. If linking a library
  24148. - # or program results in "error TOC overflow" add -mminimal-toc to
  24149. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  24150. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  24151. -
  24152. - archive_cmds=''
  24153. - hardcode_direct=yes
  24154. - hardcode_libdir_separator=':'
  24155. - link_all_deplibs=yes
  24156. -
  24157. - if test "$GCC" = yes; then
  24158. - case $host_os in aix4.012|aix4.012.*)
  24159. - # We only want to do this on AIX 4.2 and lower, the check
  24160. - # below for broken collect2 doesn't work under 4.3+
  24161. - collect2name=`${CC} -print-prog-name=collect2`
  24162. - if test -f "$collect2name" && \
  24163. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  24164. - then
  24165. - # We have reworked collect2
  24166. - hardcode_direct=yes
  24167. - else
  24168. - # We have old collect2
  24169. - hardcode_direct=unsupported
  24170. - # It fails to find uninstalled libraries when the uninstalled
  24171. - # path is not listed in the libpath. Setting hardcode_minus_L
  24172. - # to unsupported forces relinking
  24173. - hardcode_minus_L=yes
  24174. - hardcode_libdir_flag_spec='-L$libdir'
  24175. - hardcode_libdir_separator=
  24176. - fi
  24177. - esac
  24178. - shared_flag='-shared'
  24179. - else
  24180. - # not using gcc
  24181. - if test "$host_cpu" = ia64; then
  24182. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  24183. - # chokes on -Wl,-G. The following line is correct:
  24184. - shared_flag='-G'
  24185. - else
  24186. - if test "$aix_use_runtimelinking" = yes; then
  24187. - shared_flag='${wl}-G'
  24188. - else
  24189. - shared_flag='${wl}-bM:SRE'
  24190. - fi
  24191. - fi
  24192. - fi
  24193. -
  24194. - # It seems that -bexpall does not export symbols beginning with
  24195. - # underscore (_), so it is better to generate a list of symbols to export.
  24196. - always_export_symbols=yes
  24197. - if test "$aix_use_runtimelinking" = yes; then
  24198. - # Warning - without using the other runtime loading flags (-brtl),
  24199. - # -berok will link without error, but may produce a broken library.
  24200. - allow_undefined_flag='-berok'
  24201. - # Determine the default libpath from the value encoded in an empty executable.
  24202. - cat >conftest.$ac_ext <<_ACEOF
  24203. -/* confdefs.h. */
  24204. -_ACEOF
  24205. -cat confdefs.h >>conftest.$ac_ext
  24206. -cat >>conftest.$ac_ext <<_ACEOF
  24207. -/* end confdefs.h. */
  24208. -
  24209. -int
  24210. -main ()
  24211. -{
  24212. -
  24213. - ;
  24214. - return 0;
  24215. -}
  24216. -_ACEOF
  24217. -rm -f conftest.$ac_objext conftest$ac_exeext
  24218. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24219. - (eval $ac_link) 2>conftest.er1
  24220. - ac_status=$?
  24221. - grep -v '^ *+' conftest.er1 >conftest.err
  24222. - rm -f conftest.er1
  24223. - cat conftest.err >&5
  24224. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24225. - (exit $ac_status); } &&
  24226. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24227. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24228. - (eval $ac_try) 2>&5
  24229. - ac_status=$?
  24230. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24231. - (exit $ac_status); }; } &&
  24232. - { ac_try='test -s conftest$ac_exeext'
  24233. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24234. - (eval $ac_try) 2>&5
  24235. - ac_status=$?
  24236. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24237. - (exit $ac_status); }; }; then
  24238. -
  24239. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24240. -}'`
  24241. -# Check for a 64-bit object if we didn't find anything.
  24242. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24243. -}'`; fi
  24244. -else
  24245. - echo "$as_me: failed program was:" >&5
  24246. -sed 's/^/| /' conftest.$ac_ext >&5
  24247. -
  24248. -fi
  24249. -rm -f conftest.err conftest.$ac_objext \
  24250. - conftest$ac_exeext conftest.$ac_ext
  24251. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24252. -
  24253. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24254. - archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  24255. - else
  24256. - if test "$host_cpu" = ia64; then
  24257. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  24258. - allow_undefined_flag="-z nodefs"
  24259. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  24260. - else
  24261. - # Determine the default libpath from the value encoded in an empty executable.
  24262. - cat >conftest.$ac_ext <<_ACEOF
  24263. -/* confdefs.h. */
  24264. -_ACEOF
  24265. -cat confdefs.h >>conftest.$ac_ext
  24266. -cat >>conftest.$ac_ext <<_ACEOF
  24267. -/* end confdefs.h. */
  24268. -
  24269. -int
  24270. -main ()
  24271. -{
  24272. -
  24273. - ;
  24274. - return 0;
  24275. -}
  24276. -_ACEOF
  24277. -rm -f conftest.$ac_objext conftest$ac_exeext
  24278. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24279. - (eval $ac_link) 2>conftest.er1
  24280. - ac_status=$?
  24281. - grep -v '^ *+' conftest.er1 >conftest.err
  24282. - rm -f conftest.er1
  24283. - cat conftest.err >&5
  24284. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24285. - (exit $ac_status); } &&
  24286. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  24287. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24288. - (eval $ac_try) 2>&5
  24289. - ac_status=$?
  24290. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24291. - (exit $ac_status); }; } &&
  24292. - { ac_try='test -s conftest$ac_exeext'
  24293. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  24294. - (eval $ac_try) 2>&5
  24295. - ac_status=$?
  24296. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24297. - (exit $ac_status); }; }; then
  24298. -
  24299. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24300. -}'`
  24301. -# Check for a 64-bit object if we didn't find anything.
  24302. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  24303. -}'`; fi
  24304. -else
  24305. - echo "$as_me: failed program was:" >&5
  24306. -sed 's/^/| /' conftest.$ac_ext >&5
  24307. -
  24308. -fi
  24309. -rm -f conftest.err conftest.$ac_objext \
  24310. - conftest$ac_exeext conftest.$ac_ext
  24311. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  24312. -
  24313. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  24314. - # Warning - without using the other run time loading flags,
  24315. - # -berok will link without error, but may produce a broken library.
  24316. - no_undefined_flag=' ${wl}-bernotok'
  24317. - allow_undefined_flag=' ${wl}-berok'
  24318. - # -bexpall does not export symbols beginning with underscore (_)
  24319. - always_export_symbols=yes
  24320. - # Exported symbols can be pulled into shared objects from archives
  24321. - whole_archive_flag_spec=' '
  24322. - archive_cmds_need_lc=yes
  24323. - # This is similar to how AIX traditionally builds it's shared libraries.
  24324. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  24325. - fi
  24326. - fi
  24327. - ;;
  24328. -
  24329. - amigaos*)
  24330. - archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  24331. - hardcode_libdir_flag_spec='-L$libdir'
  24332. - hardcode_minus_L=yes
  24333. - # see comment about different semantics on the GNU ld section
  24334. - ld_shlibs=no
  24335. - ;;
  24336. -
  24337. - bsdi4*)
  24338. - export_dynamic_flag_spec=-rdynamic
  24339. - ;;
  24340. -
  24341. - cygwin* | mingw* | pw32*)
  24342. - # When not using gcc, we currently assume that we are using
  24343. - # Microsoft Visual C++.
  24344. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  24345. - # no search path for DLLs.
  24346. - hardcode_libdir_flag_spec=' '
  24347. - allow_undefined_flag=unsupported
  24348. - # Tell ltmain to make .lib files, not .a files.
  24349. - libext=lib
  24350. - # Tell ltmain to make .dll files, not .so files.
  24351. - shrext_cmds=".dll"
  24352. - # FIXME: Setting linknames here is a bad hack.
  24353. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  24354. - # The linker will automatically build a .lib file if we build a DLL.
  24355. - old_archive_From_new_cmds='true'
  24356. - # FIXME: Should let the user specify the lib program.
  24357. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  24358. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  24359. - enable_shared_with_static_runtimes=yes
  24360. - ;;
  24361. -
  24362. - darwin* | rhapsody*)
  24363. - if test "$GXX" = yes ; then
  24364. - archive_cmds_need_lc=no
  24365. - case "$host_os" in
  24366. - rhapsody* | darwin1.[012])
  24367. - allow_undefined_flag='-undefined suppress'
  24368. - ;;
  24369. - *) # Darwin 1.3 on
  24370. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  24371. - allow_undefined_flag='-flat_namespace -undefined suppress'
  24372. - else
  24373. - case ${MACOSX_DEPLOYMENT_TARGET} in
  24374. - 10.[012])
  24375. - allow_undefined_flag='-flat_namespace -undefined suppress'
  24376. - ;;
  24377. - 10.*)
  24378. - allow_undefined_flag='-undefined dynamic_lookup'
  24379. - ;;
  24380. - esac
  24381. - fi
  24382. - ;;
  24383. - esac
  24384. - lt_int_apple_cc_single_mod=no
  24385. - output_verbose_link_cmd='echo'
  24386. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  24387. - lt_int_apple_cc_single_mod=yes
  24388. - fi
  24389. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  24390. - archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  24391. - else
  24392. - archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  24393. - fi
  24394. - module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  24395. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  24396. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  24397. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24398. - else
  24399. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24400. - fi
  24401. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  24402. - hardcode_direct=no
  24403. - hardcode_automatic=yes
  24404. - hardcode_shlibpath_var=unsupported
  24405. - whole_archive_flag_spec='-all_load $convenience'
  24406. - link_all_deplibs=yes
  24407. - else
  24408. - ld_shlibs=no
  24409. - fi
  24410. - ;;
  24411. -
  24412. - dgux*)
  24413. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24414. - hardcode_libdir_flag_spec='-L$libdir'
  24415. - hardcode_shlibpath_var=no
  24416. - ;;
  24417. -
  24418. - freebsd1*)
  24419. - ld_shlibs=no
  24420. - ;;
  24421. -
  24422. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  24423. - # support. Future versions do this automatically, but an explicit c++rt0.o
  24424. - # does not break anything, and helps significantly (at the cost of a little
  24425. - # extra space).
  24426. - freebsd2.2*)
  24427. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  24428. - hardcode_libdir_flag_spec='-R$libdir'
  24429. - hardcode_direct=yes
  24430. - hardcode_shlibpath_var=no
  24431. - ;;
  24432. -
  24433. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  24434. - freebsd2*)
  24435. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24436. - hardcode_direct=yes
  24437. - hardcode_minus_L=yes
  24438. - hardcode_shlibpath_var=no
  24439. - ;;
  24440. -
  24441. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  24442. - freebsd* | kfreebsd*-gnu)
  24443. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  24444. - hardcode_libdir_flag_spec='-R$libdir'
  24445. - hardcode_direct=yes
  24446. - hardcode_shlibpath_var=no
  24447. - ;;
  24448. -
  24449. - hpux9*)
  24450. - if test "$GCC" = yes; then
  24451. - archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  24452. - else
  24453. - archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  24454. - fi
  24455. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24456. - hardcode_libdir_separator=:
  24457. - hardcode_direct=yes
  24458. -
  24459. - # hardcode_minus_L: Not really in the search PATH,
  24460. - # but as the default location of the library.
  24461. - hardcode_minus_L=yes
  24462. - export_dynamic_flag_spec='${wl}-E'
  24463. - ;;
  24464. -
  24465. - hpux10* | hpux11*)
  24466. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  24467. - case "$host_cpu" in
  24468. - hppa*64*|ia64*)
  24469. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24470. - ;;
  24471. - *)
  24472. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  24473. - ;;
  24474. - esac
  24475. - else
  24476. - case "$host_cpu" in
  24477. - hppa*64*|ia64*)
  24478. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  24479. - ;;
  24480. - *)
  24481. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  24482. - ;;
  24483. - esac
  24484. - fi
  24485. - if test "$with_gnu_ld" = no; then
  24486. - case "$host_cpu" in
  24487. - hppa*64*)
  24488. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24489. - hardcode_libdir_flag_spec_ld='+b $libdir'
  24490. - hardcode_libdir_separator=:
  24491. - hardcode_direct=no
  24492. - hardcode_shlibpath_var=no
  24493. - ;;
  24494. - ia64*)
  24495. - hardcode_libdir_flag_spec='-L$libdir'
  24496. - hardcode_direct=no
  24497. - hardcode_shlibpath_var=no
  24498. -
  24499. - # hardcode_minus_L: Not really in the search PATH,
  24500. - # but as the default location of the library.
  24501. - hardcode_minus_L=yes
  24502. - ;;
  24503. - *)
  24504. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  24505. - hardcode_libdir_separator=:
  24506. - hardcode_direct=yes
  24507. - export_dynamic_flag_spec='${wl}-E'
  24508. -
  24509. - # hardcode_minus_L: Not really in the search PATH,
  24510. - # but as the default location of the library.
  24511. - hardcode_minus_L=yes
  24512. - ;;
  24513. - esac
  24514. - fi
  24515. - ;;
  24516. -
  24517. - irix5* | irix6* | nonstopux*)
  24518. - if test "$GCC" = yes; then
  24519. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24520. - else
  24521. - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24522. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  24523. - fi
  24524. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24525. - hardcode_libdir_separator=:
  24526. - link_all_deplibs=yes
  24527. - ;;
  24528. -
  24529. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  24530. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  24531. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  24532. - else
  24533. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  24534. - fi
  24535. - hardcode_libdir_flag_spec='-R$libdir'
  24536. - hardcode_direct=yes
  24537. - hardcode_shlibpath_var=no
  24538. - ;;
  24539. -
  24540. - newsos6)
  24541. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24542. - hardcode_direct=yes
  24543. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24544. - hardcode_libdir_separator=:
  24545. - hardcode_shlibpath_var=no
  24546. - ;;
  24547. -
  24548. - openbsd*)
  24549. - hardcode_direct=yes
  24550. - hardcode_shlibpath_var=no
  24551. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  24552. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24553. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24554. - export_dynamic_flag_spec='${wl}-E'
  24555. - else
  24556. - case $host_os in
  24557. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  24558. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  24559. - hardcode_libdir_flag_spec='-R$libdir'
  24560. - ;;
  24561. - *)
  24562. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  24563. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  24564. - ;;
  24565. - esac
  24566. - fi
  24567. - ;;
  24568. -
  24569. - os2*)
  24570. - hardcode_libdir_flag_spec='-L$libdir'
  24571. - hardcode_minus_L=yes
  24572. - allow_undefined_flag=unsupported
  24573. - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  24574. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  24575. - ;;
  24576. -
  24577. - osf3*)
  24578. - if test "$GCC" = yes; then
  24579. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  24580. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24581. - else
  24582. - allow_undefined_flag=' -expect_unresolved \*'
  24583. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24584. - fi
  24585. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24586. - hardcode_libdir_separator=:
  24587. - ;;
  24588. -
  24589. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  24590. - if test "$GCC" = yes; then
  24591. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  24592. - archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  24593. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  24594. - else
  24595. - allow_undefined_flag=' -expect_unresolved \*'
  24596. - archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  24597. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  24598. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  24599. -
  24600. - # Both c and cxx compiler support -rpath directly
  24601. - hardcode_libdir_flag_spec='-rpath $libdir'
  24602. - fi
  24603. - hardcode_libdir_separator=:
  24604. - ;;
  24605. -
  24606. - sco3.2v5*)
  24607. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24608. - hardcode_shlibpath_var=no
  24609. - export_dynamic_flag_spec='${wl}-Bexport'
  24610. - runpath_var=LD_RUN_PATH
  24611. - hardcode_runpath_var=yes
  24612. - ;;
  24613. -
  24614. - solaris*)
  24615. - no_undefined_flag=' -z text'
  24616. - if test "$GCC" = yes; then
  24617. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24618. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24619. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  24620. - else
  24621. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24622. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24623. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  24624. - fi
  24625. - hardcode_libdir_flag_spec='-R$libdir'
  24626. - hardcode_shlibpath_var=no
  24627. - case $host_os in
  24628. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  24629. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  24630. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  24631. - esac
  24632. - link_all_deplibs=yes
  24633. - ;;
  24634. -
  24635. - sunos4*)
  24636. - if test "x$host_vendor" = xsequent; then
  24637. - # Use $CC to link under sequent, because it throws in some extra .o
  24638. - # files that make .init and .fini sections work.
  24639. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  24640. - else
  24641. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  24642. - fi
  24643. - hardcode_libdir_flag_spec='-L$libdir'
  24644. - hardcode_direct=yes
  24645. - hardcode_minus_L=yes
  24646. - hardcode_shlibpath_var=no
  24647. - ;;
  24648. -
  24649. - sysv4)
  24650. - case $host_vendor in
  24651. - sni)
  24652. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24653. - hardcode_direct=yes # is this really true???
  24654. - ;;
  24655. - siemens)
  24656. - ## LD is ld it makes a PLAMLIB
  24657. - ## CC just makes a GrossModule.
  24658. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  24659. - reload_cmds='$CC -r -o $output$reload_objs'
  24660. - hardcode_direct=no
  24661. - ;;
  24662. - motorola)
  24663. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24664. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  24665. - ;;
  24666. - esac
  24667. - runpath_var='LD_RUN_PATH'
  24668. - hardcode_shlibpath_var=no
  24669. - ;;
  24670. -
  24671. - sysv4.3*)
  24672. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24673. - hardcode_shlibpath_var=no
  24674. - export_dynamic_flag_spec='-Bexport'
  24675. - ;;
  24676. -
  24677. - sysv4*MP*)
  24678. - if test -d /usr/nec; then
  24679. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24680. - hardcode_shlibpath_var=no
  24681. - runpath_var=LD_RUN_PATH
  24682. - hardcode_runpath_var=yes
  24683. - ld_shlibs=yes
  24684. - fi
  24685. - ;;
  24686. -
  24687. - sysv4.2uw2*)
  24688. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  24689. - hardcode_direct=yes
  24690. - hardcode_minus_L=no
  24691. - hardcode_shlibpath_var=no
  24692. - hardcode_runpath_var=yes
  24693. - runpath_var=LD_RUN_PATH
  24694. - ;;
  24695. -
  24696. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  24697. - no_undefined_flag='${wl}-z ${wl}text'
  24698. - if test "$GCC" = yes; then
  24699. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24700. - else
  24701. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  24702. - fi
  24703. - runpath_var='LD_RUN_PATH'
  24704. - hardcode_shlibpath_var=no
  24705. - ;;
  24706. -
  24707. - sysv5*)
  24708. - no_undefined_flag=' -z text'
  24709. - # $CC -shared without GNU ld will not create a library from C++
  24710. - # object files and a static libstdc++, better avoid it by now
  24711. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24712. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  24713. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  24714. - hardcode_libdir_flag_spec=
  24715. - hardcode_shlibpath_var=no
  24716. - runpath_var='LD_RUN_PATH'
  24717. - ;;
  24718. -
  24719. - uts4*)
  24720. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  24721. - hardcode_libdir_flag_spec='-L$libdir'
  24722. - hardcode_shlibpath_var=no
  24723. - ;;
  24724. -
  24725. - *)
  24726. - ld_shlibs=no
  24727. - ;;
  24728. - esac
  24729. - fi
  24730. -
  24731. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  24732. -echo "${ECHO_T}$ld_shlibs" >&6
  24733. -test "$ld_shlibs" = no && can_build_shared=no
  24734. -
  24735. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  24736. -if test "$GCC" = yes; then
  24737. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  24738. -fi
  24739. -
  24740. -#
  24741. -# Do we need to explicitly link libc?
  24742. -#
  24743. -case "x$archive_cmds_need_lc" in
  24744. -x|xyes)
  24745. - # Assume -lc should be added
  24746. - archive_cmds_need_lc=yes
  24747. -
  24748. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  24749. - case $archive_cmds in
  24750. - *'~'*)
  24751. - # FIXME: we may have to deal with multi-command sequences.
  24752. - ;;
  24753. - '$CC '*)
  24754. - # Test whether the compiler implicitly links with -lc since on some
  24755. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  24756. - # to ld, don't add -lc before -lgcc.
  24757. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  24758. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  24759. - $rm conftest*
  24760. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  24761. -
  24762. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24763. - (eval $ac_compile) 2>&5
  24764. - ac_status=$?
  24765. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24766. - (exit $ac_status); } 2>conftest.err; then
  24767. - soname=conftest
  24768. - lib=conftest
  24769. - libobjs=conftest.$ac_objext
  24770. - deplibs=
  24771. - wl=$lt_prog_compiler_wl
  24772. - compiler_flags=-v
  24773. - linker_flags=-v
  24774. - verstring=
  24775. - output_objdir=.
  24776. - libname=conftest
  24777. - lt_save_allow_undefined_flag=$allow_undefined_flag
  24778. - allow_undefined_flag=
  24779. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  24780. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  24781. - ac_status=$?
  24782. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24783. - (exit $ac_status); }
  24784. - then
  24785. - archive_cmds_need_lc=no
  24786. - else
  24787. - archive_cmds_need_lc=yes
  24788. - fi
  24789. - allow_undefined_flag=$lt_save_allow_undefined_flag
  24790. - else
  24791. - cat conftest.err 1>&5
  24792. - fi
  24793. - $rm conftest*
  24794. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  24795. -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  24796. - ;;
  24797. - esac
  24798. - fi
  24799. - ;;
  24800. -esac
  24801. -
  24802. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  24803. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  24804. -library_names_spec=
  24805. -libname_spec='lib$name'
  24806. -soname_spec=
  24807. -shrext_cmds=".so"
  24808. -postinstall_cmds=
  24809. -postuninstall_cmds=
  24810. -finish_cmds=
  24811. -finish_eval=
  24812. -shlibpath_var=
  24813. -shlibpath_overrides_runpath=unknown
  24814. -version_type=none
  24815. -dynamic_linker="$host_os ld.so"
  24816. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  24817. -if test "$GCC" = yes; then
  24818. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24819. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  24820. - # if the path contains ";" then we assume it to be the separator
  24821. - # otherwise default to the standard path separator (i.e. ":") - it is
  24822. - # assumed that no part of a normal pathname contains ";" but that should
  24823. - # okay in the real world where ";" in dirpaths is itself problematic.
  24824. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24825. - else
  24826. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24827. - fi
  24828. -else
  24829. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  24830. -fi
  24831. -need_lib_prefix=unknown
  24832. -hardcode_into_libs=no
  24833. -
  24834. -# when you set need_version to no, make sure it does not cause -set_version
  24835. -# flags to be left without arguments
  24836. -need_version=unknown
  24837. -
  24838. -case $host_os in
  24839. -aix3*)
  24840. - version_type=linux
  24841. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  24842. - shlibpath_var=LIBPATH
  24843. -
  24844. - # AIX 3 has no versioning support, so we append a major version to the name.
  24845. - soname_spec='${libname}${release}${shared_ext}$major'
  24846. - ;;
  24847. -
  24848. -aix4* | aix5*)
  24849. - version_type=linux
  24850. - need_lib_prefix=no
  24851. - need_version=no
  24852. - hardcode_into_libs=yes
  24853. - if test "$host_cpu" = ia64; then
  24854. - # AIX 5 supports IA64
  24855. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  24856. - shlibpath_var=LD_LIBRARY_PATH
  24857. - else
  24858. - # With GCC up to 2.95.x, collect2 would create an import file
  24859. - # for dependence libraries. The import file would start with
  24860. - # the line `#! .'. This would cause the generated library to
  24861. - # depend on `.', always an invalid library. This was fixed in
  24862. - # development snapshots of GCC prior to 3.0.
  24863. - case $host_os in
  24864. - aix4 | aix4.[01] | aix4.[01].*)
  24865. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  24866. - echo ' yes '
  24867. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  24868. - :
  24869. - else
  24870. - can_build_shared=no
  24871. - fi
  24872. - ;;
  24873. - esac
  24874. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  24875. - # soname into executable. Probably we can add versioning support to
  24876. - # collect2, so additional links can be useful in future.
  24877. - if test "$aix_use_runtimelinking" = yes; then
  24878. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  24879. - # instead of lib<name>.a to let people know that these are not
  24880. - # typical AIX shared libraries.
  24881. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24882. - else
  24883. - # We preserve .a as extension for shared libraries through AIX4.2
  24884. - # and later when we are not doing run time linking.
  24885. - library_names_spec='${libname}${release}.a $libname.a'
  24886. - soname_spec='${libname}${release}${shared_ext}$major'
  24887. - fi
  24888. - shlibpath_var=LIBPATH
  24889. - fi
  24890. - ;;
  24891. -
  24892. -amigaos*)
  24893. - library_names_spec='$libname.ixlibrary $libname.a'
  24894. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  24895. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  24896. - ;;
  24897. -
  24898. -beos*)
  24899. - library_names_spec='${libname}${shared_ext}'
  24900. - dynamic_linker="$host_os ld.so"
  24901. - shlibpath_var=LIBRARY_PATH
  24902. - ;;
  24903. -
  24904. -bsdi4*)
  24905. - version_type=linux
  24906. - need_version=no
  24907. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  24908. - soname_spec='${libname}${release}${shared_ext}$major'
  24909. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  24910. - shlibpath_var=LD_LIBRARY_PATH
  24911. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  24912. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  24913. - # the default ld.so.conf also contains /usr/contrib/lib and
  24914. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  24915. - # libtool to hard-code these into programs
  24916. - ;;
  24917. -
  24918. -cygwin* | mingw* | pw32*)
  24919. - version_type=windows
  24920. - shrext_cmds=".dll"
  24921. - need_version=no
  24922. - need_lib_prefix=no
  24923. -
  24924. - case $GCC,$host_os in
  24925. - yes,cygwin* | yes,mingw* | yes,pw32*)
  24926. - library_names_spec='$libname.dll.a'
  24927. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  24928. - postinstall_cmds='base_file=`basename \${file}`~
  24929. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  24930. - dldir=$destdir/`dirname \$dlpath`~
  24931. - test -d \$dldir || mkdir -p \$dldir~
  24932. - $install_prog $dir/$dlname \$dldir/$dlname'
  24933. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  24934. - dlpath=$dir/\$dldll~
  24935. - $rm \$dlpath'
  24936. - shlibpath_overrides_runpath=yes
  24937. -
  24938. - case $host_os in
  24939. - cygwin*)
  24940. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  24941. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24942. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  24943. - ;;
  24944. - mingw*)
  24945. - # MinGW DLLs use traditional 'lib' prefix
  24946. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  24947. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  24948. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  24949. - # It is most probably a Windows format PATH printed by
  24950. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  24951. - # path with ; separators, and with drive letters. We can handle the
  24952. - # drive letters (cygwin fileutils understands them), so leave them,
  24953. - # especially as we might pass files found there to a mingw objdump,
  24954. - # which wouldn't understand a cygwinified path. Ahh.
  24955. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  24956. - else
  24957. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  24958. - fi
  24959. - ;;
  24960. - pw32*)
  24961. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  24962. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  24963. - ;;
  24964. - esac
  24965. - ;;
  24966. -
  24967. - *)
  24968. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  24969. - ;;
  24970. - esac
  24971. - dynamic_linker='Win32 ld.exe'
  24972. - # FIXME: first we should search . and the directory the executable is in
  24973. - shlibpath_var=PATH
  24974. - ;;
  24975. -
  24976. -darwin* | rhapsody*)
  24977. - dynamic_linker="$host_os dyld"
  24978. - version_type=darwin
  24979. - need_lib_prefix=no
  24980. - need_version=no
  24981. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  24982. - soname_spec='${libname}${release}${major}$shared_ext'
  24983. - shlibpath_overrides_runpath=yes
  24984. - shlibpath_var=DYLD_LIBRARY_PATH
  24985. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  24986. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  24987. - if test "$GCC" = yes; then
  24988. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  24989. - else
  24990. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  24991. - fi
  24992. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  24993. - ;;
  24994. -
  24995. -dgux*)
  24996. - version_type=linux
  24997. - need_lib_prefix=no
  24998. - need_version=no
  24999. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  25000. - soname_spec='${libname}${release}${shared_ext}$major'
  25001. - shlibpath_var=LD_LIBRARY_PATH
  25002. - ;;
  25003. -
  25004. -freebsd1*)
  25005. - dynamic_linker=no
  25006. - ;;
  25007. -
  25008. -kfreebsd*-gnu)
  25009. - version_type=linux
  25010. - need_lib_prefix=no
  25011. - need_version=no
  25012. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25013. - soname_spec='${libname}${release}${shared_ext}$major'
  25014. - shlibpath_var=LD_LIBRARY_PATH
  25015. - shlibpath_overrides_runpath=no
  25016. - hardcode_into_libs=yes
  25017. - dynamic_linker='GNU ld.so'
  25018. - ;;
  25019. -
  25020. -freebsd*)
  25021. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  25022. - version_type=freebsd-$objformat
  25023. - case $version_type in
  25024. - freebsd-elf*)
  25025. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  25026. - need_version=no
  25027. - need_lib_prefix=no
  25028. - ;;
  25029. - freebsd-*)
  25030. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  25031. - need_version=yes
  25032. - ;;
  25033. - esac
  25034. - shlibpath_var=LD_LIBRARY_PATH
  25035. - case $host_os in
  25036. - freebsd2*)
  25037. - shlibpath_overrides_runpath=yes
  25038. - ;;
  25039. - freebsd3.01* | freebsdelf3.01*)
  25040. - shlibpath_overrides_runpath=yes
  25041. - hardcode_into_libs=yes
  25042. - ;;
  25043. - *) # from 3.2 on
  25044. - shlibpath_overrides_runpath=no
  25045. - hardcode_into_libs=yes
  25046. - ;;
  25047. - esac
  25048. - ;;
  25049. -
  25050. -gnu*)
  25051. - version_type=linux
  25052. - need_lib_prefix=no
  25053. - need_version=no
  25054. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  25055. - soname_spec='${libname}${release}${shared_ext}$major'
  25056. - shlibpath_var=LD_LIBRARY_PATH
  25057. - hardcode_into_libs=yes
  25058. - ;;
  25059. -
  25060. -hpux9* | hpux10* | hpux11*)
  25061. - # Give a soname corresponding to the major version so that dld.sl refuses to
  25062. - # link against other versions.
  25063. - version_type=sunos
  25064. - need_lib_prefix=no
  25065. - need_version=no
  25066. - case "$host_cpu" in
  25067. - ia64*)
  25068. - shrext_cmds='.so'
  25069. - hardcode_into_libs=yes
  25070. - dynamic_linker="$host_os dld.so"
  25071. - shlibpath_var=LD_LIBRARY_PATH
  25072. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25073. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25074. - soname_spec='${libname}${release}${shared_ext}$major'
  25075. - if test "X$HPUX_IA64_MODE" = X32; then
  25076. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  25077. - else
  25078. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  25079. - fi
  25080. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25081. - ;;
  25082. - hppa*64*)
  25083. - shrext_cmds='.sl'
  25084. - hardcode_into_libs=yes
  25085. - dynamic_linker="$host_os dld.sl"
  25086. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  25087. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  25088. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25089. - soname_spec='${libname}${release}${shared_ext}$major'
  25090. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  25091. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  25092. - ;;
  25093. - *)
  25094. - shrext_cmds='.sl'
  25095. - dynamic_linker="$host_os dld.sl"
  25096. - shlibpath_var=SHLIB_PATH
  25097. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  25098. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25099. - soname_spec='${libname}${release}${shared_ext}$major'
  25100. - ;;
  25101. - esac
  25102. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  25103. - postinstall_cmds='chmod 555 $lib'
  25104. - ;;
  25105. -
  25106. -irix5* | irix6* | nonstopux*)
  25107. - case $host_os in
  25108. - nonstopux*) version_type=nonstopux ;;
  25109. - *)
  25110. - if test "$lt_cv_prog_gnu_ld" = yes; then
  25111. - version_type=linux
  25112. - else
  25113. - version_type=irix
  25114. - fi ;;
  25115. - esac
  25116. - need_lib_prefix=no
  25117. - need_version=no
  25118. - soname_spec='${libname}${release}${shared_ext}$major'
  25119. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  25120. - case $host_os in
  25121. - irix5* | nonstopux*)
  25122. - libsuff= shlibsuff=
  25123. - ;;
  25124. - *)
  25125. - case $LD in # libtool.m4 will add one of these switches to LD
  25126. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  25127. - libsuff= shlibsuff= libmagic=32-bit;;
  25128. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  25129. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  25130. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  25131. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  25132. - *) libsuff= shlibsuff= libmagic=never-match;;
  25133. - esac
  25134. - ;;
  25135. - esac
  25136. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  25137. - shlibpath_overrides_runpath=no
  25138. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  25139. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  25140. - hardcode_into_libs=yes
  25141. - ;;
  25142. -
  25143. -# No shared lib support for Linux oldld, aout, or coff.
  25144. -linux*oldld* | linux*aout* | linux*coff*)
  25145. - dynamic_linker=no
  25146. - ;;
  25147. -
  25148. -# This must be Linux ELF.
  25149. -linux*)
  25150. - version_type=linux
  25151. - need_lib_prefix=no
  25152. - need_version=no
  25153. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25154. - soname_spec='${libname}${release}${shared_ext}$major'
  25155. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  25156. - shlibpath_var=LD_LIBRARY_PATH
  25157. - shlibpath_overrides_runpath=no
  25158. - # This implies no fast_install, which is unacceptable.
  25159. - # Some rework will be needed to allow for fast_install
  25160. - # before this can be enabled.
  25161. - hardcode_into_libs=yes
  25162. -
  25163. - # Append ld.so.conf contents to the search path
  25164. - if test -f /etc/ld.so.conf; then
  25165. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  25166. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  25167. - fi
  25168. -
  25169. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  25170. - # powerpc, because MkLinux only supported shared libraries with the
  25171. - # GNU dynamic linker. Since this was broken with cross compilers,
  25172. - # most powerpc-linux boxes support dynamic linking these days and
  25173. - # people can always --disable-shared, the test was removed, and we
  25174. - # assume the GNU/Linux dynamic linker is in use.
  25175. - dynamic_linker='GNU/Linux ld.so'
  25176. - ;;
  25177. -
  25178. -netbsdelf*-gnu)
  25179. - version_type=linux
  25180. - need_lib_prefix=no
  25181. - need_version=no
  25182. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25183. - soname_spec='${libname}${release}${shared_ext}$major'
  25184. - shlibpath_var=LD_LIBRARY_PATH
  25185. - shlibpath_overrides_runpath=no
  25186. - hardcode_into_libs=yes
  25187. - dynamic_linker='NetBSD ld.elf_so'
  25188. - ;;
  25189. -
  25190. -knetbsd*-gnu)
  25191. - version_type=linux
  25192. - need_lib_prefix=no
  25193. - need_version=no
  25194. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25195. - soname_spec='${libname}${release}${shared_ext}$major'
  25196. - shlibpath_var=LD_LIBRARY_PATH
  25197. - shlibpath_overrides_runpath=no
  25198. - hardcode_into_libs=yes
  25199. - dynamic_linker='GNU ld.so'
  25200. - ;;
  25201. -
  25202. -netbsd*)
  25203. - version_type=sunos
  25204. - need_lib_prefix=no
  25205. - need_version=no
  25206. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  25207. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25208. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25209. - dynamic_linker='NetBSD (a.out) ld.so'
  25210. - else
  25211. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  25212. - soname_spec='${libname}${release}${shared_ext}$major'
  25213. - dynamic_linker='NetBSD ld.elf_so'
  25214. - fi
  25215. - shlibpath_var=LD_LIBRARY_PATH
  25216. - shlibpath_overrides_runpath=yes
  25217. - hardcode_into_libs=yes
  25218. - ;;
  25219. -
  25220. -newsos6)
  25221. - version_type=linux
  25222. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25223. - shlibpath_var=LD_LIBRARY_PATH
  25224. - shlibpath_overrides_runpath=yes
  25225. - ;;
  25226. -
  25227. -nto-qnx*)
  25228. - version_type=linux
  25229. - need_lib_prefix=no
  25230. - need_version=no
  25231. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25232. - soname_spec='${libname}${release}${shared_ext}$major'
  25233. - shlibpath_var=LD_LIBRARY_PATH
  25234. - shlibpath_overrides_runpath=yes
  25235. - ;;
  25236. -
  25237. -openbsd*)
  25238. - version_type=sunos
  25239. - need_lib_prefix=no
  25240. - need_version=yes
  25241. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25242. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  25243. - shlibpath_var=LD_LIBRARY_PATH
  25244. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  25245. - case $host_os in
  25246. - openbsd2.[89] | openbsd2.[89].*)
  25247. - shlibpath_overrides_runpath=no
  25248. - ;;
  25249. - *)
  25250. - shlibpath_overrides_runpath=yes
  25251. - ;;
  25252. - esac
  25253. - else
  25254. - shlibpath_overrides_runpath=yes
  25255. - fi
  25256. - ;;
  25257. -
  25258. -os2*)
  25259. - libname_spec='$name'
  25260. - shrext_cmds=".dll"
  25261. - need_lib_prefix=no
  25262. - library_names_spec='$libname${shared_ext} $libname.a'
  25263. - dynamic_linker='OS/2 ld.exe'
  25264. - shlibpath_var=LIBPATH
  25265. - ;;
  25266. -
  25267. -osf3* | osf4* | osf5*)
  25268. - version_type=osf
  25269. - need_lib_prefix=no
  25270. - need_version=no
  25271. - soname_spec='${libname}${release}${shared_ext}$major'
  25272. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25273. - shlibpath_var=LD_LIBRARY_PATH
  25274. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  25275. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  25276. - ;;
  25277. -
  25278. -sco3.2v5*)
  25279. - version_type=osf
  25280. - soname_spec='${libname}${release}${shared_ext}$major'
  25281. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25282. - shlibpath_var=LD_LIBRARY_PATH
  25283. - ;;
  25284. -
  25285. -solaris*)
  25286. - version_type=linux
  25287. - need_lib_prefix=no
  25288. - need_version=no
  25289. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25290. - soname_spec='${libname}${release}${shared_ext}$major'
  25291. - shlibpath_var=LD_LIBRARY_PATH
  25292. - shlibpath_overrides_runpath=yes
  25293. - hardcode_into_libs=yes
  25294. - # ldd complains unless libraries are executable
  25295. - postinstall_cmds='chmod +x $lib'
  25296. - ;;
  25297. -
  25298. -sunos4*)
  25299. - version_type=sunos
  25300. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  25301. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  25302. - shlibpath_var=LD_LIBRARY_PATH
  25303. - shlibpath_overrides_runpath=yes
  25304. - if test "$with_gnu_ld" = yes; then
  25305. - need_lib_prefix=no
  25306. - fi
  25307. - need_version=yes
  25308. - ;;
  25309. -
  25310. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  25311. - version_type=linux
  25312. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25313. - soname_spec='${libname}${release}${shared_ext}$major'
  25314. - shlibpath_var=LD_LIBRARY_PATH
  25315. - case $host_vendor in
  25316. - sni)
  25317. - shlibpath_overrides_runpath=no
  25318. - need_lib_prefix=no
  25319. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  25320. - runpath_var=LD_RUN_PATH
  25321. - ;;
  25322. - siemens)
  25323. - need_lib_prefix=no
  25324. - ;;
  25325. - motorola)
  25326. - need_lib_prefix=no
  25327. - need_version=no
  25328. - shlibpath_overrides_runpath=no
  25329. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  25330. - ;;
  25331. - esac
  25332. - ;;
  25333. -
  25334. -sysv4*MP*)
  25335. - if test -d /usr/nec ;then
  25336. - version_type=linux
  25337. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  25338. - soname_spec='$libname${shared_ext}.$major'
  25339. - shlibpath_var=LD_LIBRARY_PATH
  25340. - fi
  25341. - ;;
  25342. -
  25343. -uts4*)
  25344. - version_type=linux
  25345. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  25346. - soname_spec='${libname}${release}${shared_ext}$major'
  25347. - shlibpath_var=LD_LIBRARY_PATH
  25348. - ;;
  25349. -
  25350. -*)
  25351. - dynamic_linker=no
  25352. - ;;
  25353. -esac
  25354. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  25355. -echo "${ECHO_T}$dynamic_linker" >&6
  25356. -test "$dynamic_linker" = no && can_build_shared=no
  25357. -
  25358. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  25359. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  25360. -hardcode_action=
  25361. -if test -n "$hardcode_libdir_flag_spec" || \
  25362. - test -n "$runpath_var " || \
  25363. - test "X$hardcode_automatic"="Xyes" ; then
  25364. -
  25365. - # We can hardcode non-existant directories.
  25366. - if test "$hardcode_direct" != no &&
  25367. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  25368. - # have to relink, otherwise we might link with an installed library
  25369. - # when we should be linking with a yet-to-be-installed one
  25370. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  25371. - test "$hardcode_minus_L" != no; then
  25372. - # Linking always hardcodes the temporary library directory.
  25373. - hardcode_action=relink
  25374. - else
  25375. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  25376. - hardcode_action=immediate
  25377. - fi
  25378. -else
  25379. - # We cannot hardcode anything, or else we can only hardcode existing
  25380. - # directories.
  25381. - hardcode_action=unsupported
  25382. -fi
  25383. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  25384. -echo "${ECHO_T}$hardcode_action" >&6
  25385. -
  25386. -if test "$hardcode_action" = relink; then
  25387. - # Fast installation is not supported
  25388. - enable_fast_install=no
  25389. -elif test "$shlibpath_overrides_runpath" = yes ||
  25390. - test "$enable_shared" = no; then
  25391. - # Fast installation is not necessary
  25392. - enable_fast_install=needless
  25393. -fi
  25394. -
  25395. -striplib=
  25396. -old_striplib=
  25397. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  25398. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  25399. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  25400. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  25401. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  25402. - echo "$as_me:$LINENO: result: yes" >&5
  25403. -echo "${ECHO_T}yes" >&6
  25404. -else
  25405. -# FIXME - insert some real tests, host_os isn't really good enough
  25406. - case $host_os in
  25407. - darwin*)
  25408. - if test -n "$STRIP" ; then
  25409. - striplib="$STRIP -x"
  25410. - echo "$as_me:$LINENO: result: yes" >&5
  25411. -echo "${ECHO_T}yes" >&6
  25412. - else
  25413. - echo "$as_me:$LINENO: result: no" >&5
  25414. -echo "${ECHO_T}no" >&6
  25415. -fi
  25416. - ;;
  25417. - *)
  25418. - echo "$as_me:$LINENO: result: no" >&5
  25419. -echo "${ECHO_T}no" >&6
  25420. - ;;
  25421. - esac
  25422. -fi
  25423. -
  25424. -if test "x$enable_dlopen" != xyes; then
  25425. - enable_dlopen=unknown
  25426. - enable_dlopen_self=unknown
  25427. - enable_dlopen_self_static=unknown
  25428. -else
  25429. - lt_cv_dlopen=no
  25430. - lt_cv_dlopen_libs=
  25431. -
  25432. - case $host_os in
  25433. - beos*)
  25434. - lt_cv_dlopen="load_add_on"
  25435. - lt_cv_dlopen_libs=
  25436. - lt_cv_dlopen_self=yes
  25437. - ;;
  25438. -
  25439. - mingw* | pw32*)
  25440. - lt_cv_dlopen="LoadLibrary"
  25441. - lt_cv_dlopen_libs=
  25442. - ;;
  25443. -
  25444. - cygwin*)
  25445. - lt_cv_dlopen="dlopen"
  25446. - lt_cv_dlopen_libs=
  25447. - ;;
  25448. -
  25449. - darwin*)
  25450. - # if libdl is installed we need to link against it
  25451. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  25452. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  25453. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  25454. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25455. -else
  25456. - ac_check_lib_save_LIBS=$LIBS
  25457. -LIBS="-ldl $LIBS"
  25458. -cat >conftest.$ac_ext <<_ACEOF
  25459. -/* confdefs.h. */
  25460. -_ACEOF
  25461. -cat confdefs.h >>conftest.$ac_ext
  25462. -cat >>conftest.$ac_ext <<_ACEOF
  25463. -/* end confdefs.h. */
  25464. -
  25465. -/* Override any gcc2 internal prototype to avoid an error. */
  25466. -#ifdef __cplusplus
  25467. -extern "C"
  25468. -#endif
  25469. -/* We use char because int might match the return type of a gcc2
  25470. - builtin and then its argument prototype would still apply. */
  25471. -char dlopen ();
  25472. -int
  25473. -main ()
  25474. -{
  25475. -dlopen ();
  25476. - ;
  25477. - return 0;
  25478. -}
  25479. -_ACEOF
  25480. -rm -f conftest.$ac_objext conftest$ac_exeext
  25481. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25482. - (eval $ac_link) 2>conftest.er1
  25483. - ac_status=$?
  25484. - grep -v '^ *+' conftest.er1 >conftest.err
  25485. - rm -f conftest.er1
  25486. - cat conftest.err >&5
  25487. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25488. - (exit $ac_status); } &&
  25489. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25490. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25491. - (eval $ac_try) 2>&5
  25492. - ac_status=$?
  25493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25494. - (exit $ac_status); }; } &&
  25495. - { ac_try='test -s conftest$ac_exeext'
  25496. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25497. - (eval $ac_try) 2>&5
  25498. - ac_status=$?
  25499. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25500. - (exit $ac_status); }; }; then
  25501. - ac_cv_lib_dl_dlopen=yes
  25502. -else
  25503. - echo "$as_me: failed program was:" >&5
  25504. -sed 's/^/| /' conftest.$ac_ext >&5
  25505. -
  25506. -ac_cv_lib_dl_dlopen=no
  25507. -fi
  25508. -rm -f conftest.err conftest.$ac_objext \
  25509. - conftest$ac_exeext conftest.$ac_ext
  25510. -LIBS=$ac_check_lib_save_LIBS
  25511. -fi
  25512. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  25513. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  25514. -if test $ac_cv_lib_dl_dlopen = yes; then
  25515. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  25516. -else
  25517. -
  25518. - lt_cv_dlopen="dyld"
  25519. - lt_cv_dlopen_libs=
  25520. - lt_cv_dlopen_self=yes
  25521. -
  25522. -fi
  25523. -
  25524. - ;;
  25525. -
  25526. - *)
  25527. - echo "$as_me:$LINENO: checking for shl_load" >&5
  25528. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  25529. -if test "${ac_cv_func_shl_load+set}" = set; then
  25530. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25531. -else
  25532. - cat >conftest.$ac_ext <<_ACEOF
  25533. -/* confdefs.h. */
  25534. -_ACEOF
  25535. -cat confdefs.h >>conftest.$ac_ext
  25536. -cat >>conftest.$ac_ext <<_ACEOF
  25537. -/* end confdefs.h. */
  25538. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  25539. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25540. -#define shl_load innocuous_shl_load
  25541. -
  25542. -/* System header to define __stub macros and hopefully few prototypes,
  25543. - which can conflict with char shl_load (); below.
  25544. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25545. - <limits.h> exists even on freestanding compilers. */
  25546. -
  25547. -#ifdef __STDC__
  25548. -# include <limits.h>
  25549. -#else
  25550. -# include <assert.h>
  25551. -#endif
  25552. -
  25553. -#undef shl_load
  25554. -
  25555. -/* Override any gcc2 internal prototype to avoid an error. */
  25556. -#ifdef __cplusplus
  25557. -extern "C"
  25558. -{
  25559. -#endif
  25560. -/* We use char because int might match the return type of a gcc2
  25561. - builtin and then its argument prototype would still apply. */
  25562. -char shl_load ();
  25563. -/* The GNU C library defines this for functions which it implements
  25564. - to always fail with ENOSYS. Some functions are actually named
  25565. - something starting with __ and the normal name is an alias. */
  25566. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  25567. -choke me
  25568. -#else
  25569. -char (*f) () = shl_load;
  25570. -#endif
  25571. -#ifdef __cplusplus
  25572. -}
  25573. -#endif
  25574. -
  25575. -int
  25576. -main ()
  25577. -{
  25578. -return f != shl_load;
  25579. - ;
  25580. - return 0;
  25581. -}
  25582. -_ACEOF
  25583. -rm -f conftest.$ac_objext conftest$ac_exeext
  25584. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25585. - (eval $ac_link) 2>conftest.er1
  25586. - ac_status=$?
  25587. - grep -v '^ *+' conftest.er1 >conftest.err
  25588. - rm -f conftest.er1
  25589. - cat conftest.err >&5
  25590. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25591. - (exit $ac_status); } &&
  25592. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25593. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25594. - (eval $ac_try) 2>&5
  25595. - ac_status=$?
  25596. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25597. - (exit $ac_status); }; } &&
  25598. - { ac_try='test -s conftest$ac_exeext'
  25599. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25600. - (eval $ac_try) 2>&5
  25601. - ac_status=$?
  25602. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25603. - (exit $ac_status); }; }; then
  25604. - ac_cv_func_shl_load=yes
  25605. -else
  25606. - echo "$as_me: failed program was:" >&5
  25607. -sed 's/^/| /' conftest.$ac_ext >&5
  25608. -
  25609. -ac_cv_func_shl_load=no
  25610. -fi
  25611. -rm -f conftest.err conftest.$ac_objext \
  25612. - conftest$ac_exeext conftest.$ac_ext
  25613. -fi
  25614. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  25615. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  25616. -if test $ac_cv_func_shl_load = yes; then
  25617. - lt_cv_dlopen="shl_load"
  25618. -else
  25619. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  25620. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  25621. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  25622. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25623. -else
  25624. - ac_check_lib_save_LIBS=$LIBS
  25625. -LIBS="-ldld $LIBS"
  25626. -cat >conftest.$ac_ext <<_ACEOF
  25627. -/* confdefs.h. */
  25628. -_ACEOF
  25629. -cat confdefs.h >>conftest.$ac_ext
  25630. -cat >>conftest.$ac_ext <<_ACEOF
  25631. -/* end confdefs.h. */
  25632. -
  25633. -/* Override any gcc2 internal prototype to avoid an error. */
  25634. -#ifdef __cplusplus
  25635. -extern "C"
  25636. -#endif
  25637. -/* We use char because int might match the return type of a gcc2
  25638. - builtin and then its argument prototype would still apply. */
  25639. -char shl_load ();
  25640. -int
  25641. -main ()
  25642. -{
  25643. -shl_load ();
  25644. - ;
  25645. - return 0;
  25646. -}
  25647. -_ACEOF
  25648. -rm -f conftest.$ac_objext conftest$ac_exeext
  25649. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25650. - (eval $ac_link) 2>conftest.er1
  25651. - ac_status=$?
  25652. - grep -v '^ *+' conftest.er1 >conftest.err
  25653. - rm -f conftest.er1
  25654. - cat conftest.err >&5
  25655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25656. - (exit $ac_status); } &&
  25657. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25658. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25659. - (eval $ac_try) 2>&5
  25660. - ac_status=$?
  25661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25662. - (exit $ac_status); }; } &&
  25663. - { ac_try='test -s conftest$ac_exeext'
  25664. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25665. - (eval $ac_try) 2>&5
  25666. - ac_status=$?
  25667. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25668. - (exit $ac_status); }; }; then
  25669. - ac_cv_lib_dld_shl_load=yes
  25670. -else
  25671. - echo "$as_me: failed program was:" >&5
  25672. -sed 's/^/| /' conftest.$ac_ext >&5
  25673. -
  25674. -ac_cv_lib_dld_shl_load=no
  25675. -fi
  25676. -rm -f conftest.err conftest.$ac_objext \
  25677. - conftest$ac_exeext conftest.$ac_ext
  25678. -LIBS=$ac_check_lib_save_LIBS
  25679. -fi
  25680. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  25681. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  25682. -if test $ac_cv_lib_dld_shl_load = yes; then
  25683. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  25684. -else
  25685. - echo "$as_me:$LINENO: checking for dlopen" >&5
  25686. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  25687. -if test "${ac_cv_func_dlopen+set}" = set; then
  25688. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25689. -else
  25690. - cat >conftest.$ac_ext <<_ACEOF
  25691. -/* confdefs.h. */
  25692. -_ACEOF
  25693. -cat confdefs.h >>conftest.$ac_ext
  25694. -cat >>conftest.$ac_ext <<_ACEOF
  25695. -/* end confdefs.h. */
  25696. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  25697. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  25698. -#define dlopen innocuous_dlopen
  25699. -
  25700. -/* System header to define __stub macros and hopefully few prototypes,
  25701. - which can conflict with char dlopen (); below.
  25702. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25703. - <limits.h> exists even on freestanding compilers. */
  25704. -
  25705. -#ifdef __STDC__
  25706. -# include <limits.h>
  25707. -#else
  25708. -# include <assert.h>
  25709. -#endif
  25710. -
  25711. -#undef dlopen
  25712. -
  25713. -/* Override any gcc2 internal prototype to avoid an error. */
  25714. -#ifdef __cplusplus
  25715. -extern "C"
  25716. -{
  25717. -#endif
  25718. -/* We use char because int might match the return type of a gcc2
  25719. - builtin and then its argument prototype would still apply. */
  25720. -char dlopen ();
  25721. -/* The GNU C library defines this for functions which it implements
  25722. - to always fail with ENOSYS. Some functions are actually named
  25723. - something starting with __ and the normal name is an alias. */
  25724. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  25725. -choke me
  25726. -#else
  25727. -char (*f) () = dlopen;
  25728. -#endif
  25729. -#ifdef __cplusplus
  25730. -}
  25731. -#endif
  25732. -
  25733. -int
  25734. -main ()
  25735. -{
  25736. -return f != dlopen;
  25737. - ;
  25738. - return 0;
  25739. -}
  25740. -_ACEOF
  25741. -rm -f conftest.$ac_objext conftest$ac_exeext
  25742. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25743. - (eval $ac_link) 2>conftest.er1
  25744. - ac_status=$?
  25745. - grep -v '^ *+' conftest.er1 >conftest.err
  25746. - rm -f conftest.er1
  25747. - cat conftest.err >&5
  25748. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25749. - (exit $ac_status); } &&
  25750. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25751. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25752. - (eval $ac_try) 2>&5
  25753. - ac_status=$?
  25754. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25755. - (exit $ac_status); }; } &&
  25756. - { ac_try='test -s conftest$ac_exeext'
  25757. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25758. - (eval $ac_try) 2>&5
  25759. - ac_status=$?
  25760. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25761. - (exit $ac_status); }; }; then
  25762. - ac_cv_func_dlopen=yes
  25763. -else
  25764. - echo "$as_me: failed program was:" >&5
  25765. -sed 's/^/| /' conftest.$ac_ext >&5
  25766. -
  25767. -ac_cv_func_dlopen=no
  25768. -fi
  25769. -rm -f conftest.err conftest.$ac_objext \
  25770. - conftest$ac_exeext conftest.$ac_ext
  25771. -fi
  25772. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  25773. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  25774. -if test $ac_cv_func_dlopen = yes; then
  25775. - lt_cv_dlopen="dlopen"
  25776. -else
  25777. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  25778. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  25779. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  25780. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25781. -else
  25782. - ac_check_lib_save_LIBS=$LIBS
  25783. -LIBS="-ldl $LIBS"
  25784. -cat >conftest.$ac_ext <<_ACEOF
  25785. -/* confdefs.h. */
  25786. -_ACEOF
  25787. -cat confdefs.h >>conftest.$ac_ext
  25788. -cat >>conftest.$ac_ext <<_ACEOF
  25789. -/* end confdefs.h. */
  25790. -
  25791. -/* Override any gcc2 internal prototype to avoid an error. */
  25792. -#ifdef __cplusplus
  25793. -extern "C"
  25794. -#endif
  25795. -/* We use char because int might match the return type of a gcc2
  25796. - builtin and then its argument prototype would still apply. */
  25797. -char dlopen ();
  25798. -int
  25799. -main ()
  25800. -{
  25801. -dlopen ();
  25802. - ;
  25803. - return 0;
  25804. -}
  25805. -_ACEOF
  25806. -rm -f conftest.$ac_objext conftest$ac_exeext
  25807. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25808. - (eval $ac_link) 2>conftest.er1
  25809. - ac_status=$?
  25810. - grep -v '^ *+' conftest.er1 >conftest.err
  25811. - rm -f conftest.er1
  25812. - cat conftest.err >&5
  25813. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25814. - (exit $ac_status); } &&
  25815. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25816. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25817. - (eval $ac_try) 2>&5
  25818. - ac_status=$?
  25819. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25820. - (exit $ac_status); }; } &&
  25821. - { ac_try='test -s conftest$ac_exeext'
  25822. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25823. - (eval $ac_try) 2>&5
  25824. - ac_status=$?
  25825. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25826. - (exit $ac_status); }; }; then
  25827. - ac_cv_lib_dl_dlopen=yes
  25828. -else
  25829. - echo "$as_me: failed program was:" >&5
  25830. -sed 's/^/| /' conftest.$ac_ext >&5
  25831. -
  25832. -ac_cv_lib_dl_dlopen=no
  25833. -fi
  25834. -rm -f conftest.err conftest.$ac_objext \
  25835. - conftest$ac_exeext conftest.$ac_ext
  25836. -LIBS=$ac_check_lib_save_LIBS
  25837. -fi
  25838. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  25839. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  25840. -if test $ac_cv_lib_dl_dlopen = yes; then
  25841. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  25842. -else
  25843. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  25844. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  25845. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  25846. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25847. -else
  25848. - ac_check_lib_save_LIBS=$LIBS
  25849. -LIBS="-lsvld $LIBS"
  25850. -cat >conftest.$ac_ext <<_ACEOF
  25851. -/* confdefs.h. */
  25852. -_ACEOF
  25853. -cat confdefs.h >>conftest.$ac_ext
  25854. -cat >>conftest.$ac_ext <<_ACEOF
  25855. -/* end confdefs.h. */
  25856. -
  25857. -/* Override any gcc2 internal prototype to avoid an error. */
  25858. -#ifdef __cplusplus
  25859. -extern "C"
  25860. -#endif
  25861. -/* We use char because int might match the return type of a gcc2
  25862. - builtin and then its argument prototype would still apply. */
  25863. -char dlopen ();
  25864. -int
  25865. -main ()
  25866. -{
  25867. -dlopen ();
  25868. - ;
  25869. - return 0;
  25870. -}
  25871. -_ACEOF
  25872. -rm -f conftest.$ac_objext conftest$ac_exeext
  25873. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25874. - (eval $ac_link) 2>conftest.er1
  25875. - ac_status=$?
  25876. - grep -v '^ *+' conftest.er1 >conftest.err
  25877. - rm -f conftest.er1
  25878. - cat conftest.err >&5
  25879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25880. - (exit $ac_status); } &&
  25881. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25882. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25883. - (eval $ac_try) 2>&5
  25884. - ac_status=$?
  25885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25886. - (exit $ac_status); }; } &&
  25887. - { ac_try='test -s conftest$ac_exeext'
  25888. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25889. - (eval $ac_try) 2>&5
  25890. - ac_status=$?
  25891. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25892. - (exit $ac_status); }; }; then
  25893. - ac_cv_lib_svld_dlopen=yes
  25894. -else
  25895. - echo "$as_me: failed program was:" >&5
  25896. -sed 's/^/| /' conftest.$ac_ext >&5
  25897. -
  25898. -ac_cv_lib_svld_dlopen=no
  25899. -fi
  25900. -rm -f conftest.err conftest.$ac_objext \
  25901. - conftest$ac_exeext conftest.$ac_ext
  25902. -LIBS=$ac_check_lib_save_LIBS
  25903. -fi
  25904. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  25905. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  25906. -if test $ac_cv_lib_svld_dlopen = yes; then
  25907. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  25908. -else
  25909. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  25910. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  25911. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  25912. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25913. -else
  25914. - ac_check_lib_save_LIBS=$LIBS
  25915. -LIBS="-ldld $LIBS"
  25916. -cat >conftest.$ac_ext <<_ACEOF
  25917. -/* confdefs.h. */
  25918. -_ACEOF
  25919. -cat confdefs.h >>conftest.$ac_ext
  25920. -cat >>conftest.$ac_ext <<_ACEOF
  25921. -/* end confdefs.h. */
  25922. -
  25923. -/* Override any gcc2 internal prototype to avoid an error. */
  25924. -#ifdef __cplusplus
  25925. -extern "C"
  25926. -#endif
  25927. -/* We use char because int might match the return type of a gcc2
  25928. - builtin and then its argument prototype would still apply. */
  25929. -char dld_link ();
  25930. -int
  25931. -main ()
  25932. -{
  25933. -dld_link ();
  25934. - ;
  25935. - return 0;
  25936. -}
  25937. -_ACEOF
  25938. -rm -f conftest.$ac_objext conftest$ac_exeext
  25939. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  25940. - (eval $ac_link) 2>conftest.er1
  25941. - ac_status=$?
  25942. - grep -v '^ *+' conftest.er1 >conftest.err
  25943. - rm -f conftest.er1
  25944. - cat conftest.err >&5
  25945. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25946. - (exit $ac_status); } &&
  25947. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  25948. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25949. - (eval $ac_try) 2>&5
  25950. - ac_status=$?
  25951. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25952. - (exit $ac_status); }; } &&
  25953. - { ac_try='test -s conftest$ac_exeext'
  25954. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  25955. - (eval $ac_try) 2>&5
  25956. - ac_status=$?
  25957. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  25958. - (exit $ac_status); }; }; then
  25959. - ac_cv_lib_dld_dld_link=yes
  25960. -else
  25961. - echo "$as_me: failed program was:" >&5
  25962. -sed 's/^/| /' conftest.$ac_ext >&5
  25963. -
  25964. -ac_cv_lib_dld_dld_link=no
  25965. -fi
  25966. -rm -f conftest.err conftest.$ac_objext \
  25967. - conftest$ac_exeext conftest.$ac_ext
  25968. -LIBS=$ac_check_lib_save_LIBS
  25969. -fi
  25970. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  25971. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  25972. -if test $ac_cv_lib_dld_dld_link = yes; then
  25973. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  25974. -fi
  25975. -
  25976. -
  25977. -fi
  25978. -
  25979. -
  25980. -fi
  25981. -
  25982. -
  25983. -fi
  25984. -
  25985. -
  25986. -fi
  25987. -
  25988. -
  25989. -fi
  25990. -
  25991. - ;;
  25992. - esac
  25993. -
  25994. - if test "x$lt_cv_dlopen" != xno; then
  25995. - enable_dlopen=yes
  25996. - else
  25997. - enable_dlopen=no
  25998. - fi
  25999. -
  26000. - case $lt_cv_dlopen in
  26001. - dlopen)
  26002. - save_CPPFLAGS="$CPPFLAGS"
  26003. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  26004. -
  26005. - save_LDFLAGS="$LDFLAGS"
  26006. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  26007. -
  26008. - save_LIBS="$LIBS"
  26009. - LIBS="$lt_cv_dlopen_libs $LIBS"
  26010. -
  26011. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  26012. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  26013. -if test "${lt_cv_dlopen_self+set}" = set; then
  26014. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26015. -else
  26016. - if test "$cross_compiling" = yes; then :
  26017. - lt_cv_dlopen_self=cross
  26018. -else
  26019. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26020. - lt_status=$lt_dlunknown
  26021. - cat > conftest.$ac_ext <<EOF
  26022. -#line 8744 "configure"
  26023. -#include "confdefs.h"
  26024. -
  26025. -#if HAVE_DLFCN_H
  26026. -#include <dlfcn.h>
  26027. -#endif
  26028. -
  26029. -#include <stdio.h>
  26030. -
  26031. -#ifdef RTLD_GLOBAL
  26032. -# define LT_DLGLOBAL RTLD_GLOBAL
  26033. -#else
  26034. -# ifdef DL_GLOBAL
  26035. -# define LT_DLGLOBAL DL_GLOBAL
  26036. -# else
  26037. -# define LT_DLGLOBAL 0
  26038. -# endif
  26039. -#endif
  26040. -
  26041. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26042. - find out it does not work in some platform. */
  26043. -#ifndef LT_DLLAZY_OR_NOW
  26044. -# ifdef RTLD_LAZY
  26045. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26046. -# else
  26047. -# ifdef DL_LAZY
  26048. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26049. -# else
  26050. -# ifdef RTLD_NOW
  26051. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26052. -# else
  26053. -# ifdef DL_NOW
  26054. -# define LT_DLLAZY_OR_NOW DL_NOW
  26055. -# else
  26056. -# define LT_DLLAZY_OR_NOW 0
  26057. -# endif
  26058. -# endif
  26059. -# endif
  26060. -# endif
  26061. -#endif
  26062. -
  26063. -#ifdef __cplusplus
  26064. -extern "C" void exit (int);
  26065. -#endif
  26066. -
  26067. -void fnord() { int i=42;}
  26068. -int main ()
  26069. -{
  26070. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26071. - int status = $lt_dlunknown;
  26072. -
  26073. - if (self)
  26074. - {
  26075. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26076. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26077. - /* dlclose (self); */
  26078. - }
  26079. -
  26080. - exit (status);
  26081. -}
  26082. -EOF
  26083. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26084. - (eval $ac_link) 2>&5
  26085. - ac_status=$?
  26086. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26087. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26088. - (./conftest; exit; ) 2>/dev/null
  26089. - lt_status=$?
  26090. - case x$lt_status in
  26091. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  26092. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  26093. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  26094. - esac
  26095. - else :
  26096. - # compilation failed
  26097. - lt_cv_dlopen_self=no
  26098. - fi
  26099. -fi
  26100. -rm -fr conftest*
  26101. -
  26102. -
  26103. -fi
  26104. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  26105. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  26106. -
  26107. - if test "x$lt_cv_dlopen_self" = xyes; then
  26108. - LDFLAGS="$LDFLAGS $link_static_flag"
  26109. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  26110. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  26111. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  26112. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26113. -else
  26114. - if test "$cross_compiling" = yes; then :
  26115. - lt_cv_dlopen_self_static=cross
  26116. -else
  26117. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  26118. - lt_status=$lt_dlunknown
  26119. - cat > conftest.$ac_ext <<EOF
  26120. -#line 8842 "configure"
  26121. -#include "confdefs.h"
  26122. -
  26123. -#if HAVE_DLFCN_H
  26124. -#include <dlfcn.h>
  26125. -#endif
  26126. -
  26127. -#include <stdio.h>
  26128. -
  26129. -#ifdef RTLD_GLOBAL
  26130. -# define LT_DLGLOBAL RTLD_GLOBAL
  26131. -#else
  26132. -# ifdef DL_GLOBAL
  26133. -# define LT_DLGLOBAL DL_GLOBAL
  26134. -# else
  26135. -# define LT_DLGLOBAL 0
  26136. -# endif
  26137. -#endif
  26138. -
  26139. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  26140. - find out it does not work in some platform. */
  26141. -#ifndef LT_DLLAZY_OR_NOW
  26142. -# ifdef RTLD_LAZY
  26143. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  26144. -# else
  26145. -# ifdef DL_LAZY
  26146. -# define LT_DLLAZY_OR_NOW DL_LAZY
  26147. -# else
  26148. -# ifdef RTLD_NOW
  26149. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  26150. -# else
  26151. -# ifdef DL_NOW
  26152. -# define LT_DLLAZY_OR_NOW DL_NOW
  26153. -# else
  26154. -# define LT_DLLAZY_OR_NOW 0
  26155. -# endif
  26156. -# endif
  26157. -# endif
  26158. -# endif
  26159. -#endif
  26160. -
  26161. -#ifdef __cplusplus
  26162. -extern "C" void exit (int);
  26163. -#endif
  26164. -
  26165. -void fnord() { int i=42;}
  26166. -int main ()
  26167. -{
  26168. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  26169. - int status = $lt_dlunknown;
  26170. -
  26171. - if (self)
  26172. - {
  26173. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  26174. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  26175. - /* dlclose (self); */
  26176. - }
  26177. -
  26178. - exit (status);
  26179. -}
  26180. -EOF
  26181. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26182. - (eval $ac_link) 2>&5
  26183. - ac_status=$?
  26184. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26185. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  26186. - (./conftest; exit; ) 2>/dev/null
  26187. - lt_status=$?
  26188. - case x$lt_status in
  26189. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  26190. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  26191. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  26192. - esac
  26193. - else :
  26194. - # compilation failed
  26195. - lt_cv_dlopen_self_static=no
  26196. - fi
  26197. -fi
  26198. -rm -fr conftest*
  26199. -
  26200. -
  26201. -fi
  26202. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  26203. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  26204. - fi
  26205. -
  26206. - CPPFLAGS="$save_CPPFLAGS"
  26207. - LDFLAGS="$save_LDFLAGS"
  26208. - LIBS="$save_LIBS"
  26209. - ;;
  26210. - esac
  26211. -
  26212. - case $lt_cv_dlopen_self in
  26213. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  26214. - *) enable_dlopen_self=unknown ;;
  26215. - esac
  26216. -
  26217. - case $lt_cv_dlopen_self_static in
  26218. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  26219. - *) enable_dlopen_self_static=unknown ;;
  26220. - esac
  26221. -fi
  26222. -
  26223. -
  26224. -# Report which librarie types wil actually be built
  26225. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  26226. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  26227. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  26228. -echo "${ECHO_T}$can_build_shared" >&6
  26229. -
  26230. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  26231. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  26232. -test "$can_build_shared" = "no" && enable_shared=no
  26233. -
  26234. -# On AIX, shared libraries and static libraries use the same namespace, and
  26235. -# are all built from PIC.
  26236. -case "$host_os" in
  26237. -aix3*)
  26238. - test "$enable_shared" = yes && enable_static=no
  26239. - if test -n "$RANLIB"; then
  26240. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  26241. - postinstall_cmds='$RANLIB $lib'
  26242. - fi
  26243. - ;;
  26244. -
  26245. -aix4* | aix5*)
  26246. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  26247. - test "$enable_shared" = yes && enable_static=no
  26248. - fi
  26249. - ;;
  26250. - darwin* | rhapsody*)
  26251. - if test "$GCC" = yes; then
  26252. - archive_cmds_need_lc=no
  26253. - case "$host_os" in
  26254. - rhapsody* | darwin1.[012])
  26255. - allow_undefined_flag='-undefined suppress'
  26256. - ;;
  26257. - *) # Darwin 1.3 on
  26258. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  26259. - allow_undefined_flag='-flat_namespace -undefined suppress'
  26260. - else
  26261. - case ${MACOSX_DEPLOYMENT_TARGET} in
  26262. - 10.[012])
  26263. - allow_undefined_flag='-flat_namespace -undefined suppress'
  26264. - ;;
  26265. - 10.*)
  26266. - allow_undefined_flag='-undefined dynamic_lookup'
  26267. - ;;
  26268. - esac
  26269. - fi
  26270. - ;;
  26271. - esac
  26272. - output_verbose_link_cmd='echo'
  26273. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  26274. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26275. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  26276. - archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26277. - module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  26278. - hardcode_direct=no
  26279. - hardcode_automatic=yes
  26280. - hardcode_shlibpath_var=unsupported
  26281. - whole_archive_flag_spec='-all_load $convenience'
  26282. - link_all_deplibs=yes
  26283. - else
  26284. - ld_shlibs=no
  26285. - fi
  26286. - ;;
  26287. -esac
  26288. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  26289. -echo "${ECHO_T}$enable_shared" >&6
  26290. -
  26291. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  26292. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  26293. -# Make sure either enable_shared or enable_static is yes.
  26294. -test "$enable_shared" = yes || enable_static=yes
  26295. -echo "$as_me:$LINENO: result: $enable_static" >&5
  26296. -echo "${ECHO_T}$enable_static" >&6
  26297. -
  26298. -# The else clause should only fire when bootstrapping the
  26299. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  26300. -# with your package, and you will get complaints that there are
  26301. -# no rules to generate ltmain.sh.
  26302. -if test -f "$ltmain"; then
  26303. - # See if we are running on zsh, and set the options which allow our commands through
  26304. - # without removal of \ escapes.
  26305. - if test -n "${ZSH_VERSION+set}" ; then
  26306. - setopt NO_GLOB_SUBST
  26307. - fi
  26308. - # Now quote all the things that may contain metacharacters while being
  26309. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  26310. - # variables and quote the copies for generation of the libtool script.
  26311. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  26312. - SED SHELL STRIP \
  26313. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  26314. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  26315. - deplibs_check_method reload_flag reload_cmds need_locks \
  26316. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  26317. - lt_cv_sys_global_symbol_to_c_name_address \
  26318. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  26319. - old_postinstall_cmds old_postuninstall_cmds \
  26320. - compiler \
  26321. - CC \
  26322. - LD \
  26323. - lt_prog_compiler_wl \
  26324. - lt_prog_compiler_pic \
  26325. - lt_prog_compiler_static \
  26326. - lt_prog_compiler_no_builtin_flag \
  26327. - export_dynamic_flag_spec \
  26328. - thread_safe_flag_spec \
  26329. - whole_archive_flag_spec \
  26330. - enable_shared_with_static_runtimes \
  26331. - old_archive_cmds \
  26332. - old_archive_from_new_cmds \
  26333. - predep_objects \
  26334. - postdep_objects \
  26335. - predeps \
  26336. - postdeps \
  26337. - compiler_lib_search_path \
  26338. - archive_cmds \
  26339. - archive_expsym_cmds \
  26340. - postinstall_cmds \
  26341. - postuninstall_cmds \
  26342. - old_archive_from_expsyms_cmds \
  26343. - allow_undefined_flag \
  26344. - no_undefined_flag \
  26345. - export_symbols_cmds \
  26346. - hardcode_libdir_flag_spec \
  26347. - hardcode_libdir_flag_spec_ld \
  26348. - hardcode_libdir_separator \
  26349. - hardcode_automatic \
  26350. - module_cmds \
  26351. - module_expsym_cmds \
  26352. - lt_cv_prog_compiler_c_o \
  26353. - exclude_expsyms \
  26354. - include_expsyms; do
  26355. -
  26356. - case $var in
  26357. - old_archive_cmds | \
  26358. - old_archive_from_new_cmds | \
  26359. - archive_cmds | \
  26360. - archive_expsym_cmds | \
  26361. - module_cmds | \
  26362. - module_expsym_cmds | \
  26363. - old_archive_from_expsyms_cmds | \
  26364. - export_symbols_cmds | \
  26365. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  26366. - postinstall_cmds | postuninstall_cmds | \
  26367. - old_postinstall_cmds | old_postuninstall_cmds | \
  26368. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  26369. - # Double-quote double-evaled strings.
  26370. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  26371. - ;;
  26372. - *)
  26373. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  26374. - ;;
  26375. - esac
  26376. - done
  26377. -
  26378. - case $lt_echo in
  26379. - *'\$0 --fallback-echo"')
  26380. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  26381. - ;;
  26382. - esac
  26383. -
  26384. -cfgfile="${ofile}T"
  26385. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  26386. - $rm -f "$cfgfile"
  26387. - { echo "$as_me:$LINENO: creating $ofile" >&5
  26388. -echo "$as_me: creating $ofile" >&6;}
  26389. -
  26390. - cat <<__EOF__ >> "$cfgfile"
  26391. -#! $SHELL
  26392. -
  26393. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  26394. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  26395. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  26396. -#
  26397. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  26398. -# Free Software Foundation, Inc.
  26399. -#
  26400. -# This file is part of GNU Libtool:
  26401. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  26402. -#
  26403. -# This program is free software; you can redistribute it and/or modify
  26404. -# it under the terms of the GNU General Public License as published by
  26405. -# the Free Software Foundation; either version 2 of the License, or
  26406. -# (at your option) any later version.
  26407. -#
  26408. -# This program is distributed in the hope that it will be useful, but
  26409. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  26410. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  26411. -# General Public License for more details.
  26412. -#
  26413. -# You should have received a copy of the GNU General Public License
  26414. -# along with this program; if not, write to the Free Software
  26415. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  26416. -#
  26417. -# As a special exception to the GNU General Public License, if you
  26418. -# distribute this file as part of a program that contains a
  26419. -# configuration script generated by Autoconf, you may include it under
  26420. -# the same distribution terms that you use for the rest of that program.
  26421. -
  26422. -# A sed program that does not truncate output.
  26423. -SED=$lt_SED
  26424. -
  26425. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  26426. -Xsed="$SED -e s/^X//"
  26427. -
  26428. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  26429. -# if CDPATH is set.
  26430. -if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  26431. -
  26432. -# The names of the tagged configurations supported by this script.
  26433. -available_tags=
  26434. -
  26435. -# ### BEGIN LIBTOOL CONFIG
  26436. -
  26437. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  26438. -
  26439. -# Shell to use when invoking shell scripts.
  26440. -SHELL=$lt_SHELL
  26441. -
  26442. -# Whether or not to build shared libraries.
  26443. -build_libtool_libs=$enable_shared
  26444. -
  26445. -# Whether or not to build static libraries.
  26446. -build_old_libs=$enable_static
  26447. -
  26448. -# Whether or not to add -lc for building shared libraries.
  26449. -build_libtool_need_lc=$archive_cmds_need_lc
  26450. -
  26451. -# Whether or not to disallow shared libs when runtime libs are static
  26452. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  26453. -
  26454. -# Whether or not to optimize for fast installation.
  26455. -fast_install=$enable_fast_install
  26456. -
  26457. -# The host system.
  26458. -host_alias=$host_alias
  26459. -host=$host
  26460. -
  26461. -# An echo program that does not interpret backslashes.
  26462. -echo=$lt_echo
  26463. -
  26464. -# The archiver.
  26465. -AR=$lt_AR
  26466. -AR_FLAGS=$lt_AR_FLAGS
  26467. -
  26468. -# A C compiler.
  26469. -LTCC=$lt_LTCC
  26470. -
  26471. -# A language-specific compiler.
  26472. -CC=$lt_compiler
  26473. -
  26474. -# Is the compiler the GNU C compiler?
  26475. -with_gcc=$GCC
  26476. -
  26477. -# An ERE matcher.
  26478. -EGREP=$lt_EGREP
  26479. -
  26480. -# The linker used to build libraries.
  26481. -LD=$lt_LD
  26482. -
  26483. -# Whether we need hard or soft links.
  26484. -LN_S=$lt_LN_S
  26485. -
  26486. -# A BSD-compatible nm program.
  26487. -NM=$lt_NM
  26488. -
  26489. -# A symbol stripping program
  26490. -STRIP=$lt_STRIP
  26491. -
  26492. -# Used to examine libraries when file_magic_cmd begins "file"
  26493. -MAGIC_CMD=$MAGIC_CMD
  26494. -
  26495. -# Used on cygwin: DLL creation program.
  26496. -DLLTOOL="$DLLTOOL"
  26497. -
  26498. -# Used on cygwin: object dumper.
  26499. -OBJDUMP="$OBJDUMP"
  26500. -
  26501. -# Used on cygwin: assembler.
  26502. -AS="$AS"
  26503. -
  26504. -# The name of the directory that contains temporary libtool files.
  26505. -objdir=$objdir
  26506. -
  26507. -# How to create reloadable object files.
  26508. -reload_flag=$lt_reload_flag
  26509. -reload_cmds=$lt_reload_cmds
  26510. -
  26511. -# How to pass a linker flag through the compiler.
  26512. -wl=$lt_lt_prog_compiler_wl
  26513. -
  26514. -# Object file suffix (normally "o").
  26515. -objext="$ac_objext"
  26516. -
  26517. -# Old archive suffix (normally "a").
  26518. -libext="$libext"
  26519. -
  26520. -# Shared library suffix (normally ".so").
  26521. -shrext_cmds='$shrext_cmds'
  26522. -
  26523. -# Executable file suffix (normally "").
  26524. -exeext="$exeext"
  26525. -
  26526. -# Additional compiler flags for building library objects.
  26527. -pic_flag=$lt_lt_prog_compiler_pic
  26528. -pic_mode=$pic_mode
  26529. -
  26530. -# What is the maximum length of a command?
  26531. -max_cmd_len=$lt_cv_sys_max_cmd_len
  26532. -
  26533. -# Does compiler simultaneously support -c and -o options?
  26534. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  26535. -
  26536. -# Must we lock files when doing compilation ?
  26537. -need_locks=$lt_need_locks
  26538. -
  26539. -# Do we need the lib prefix for modules?
  26540. -need_lib_prefix=$need_lib_prefix
  26541. -
  26542. -# Do we need a version for libraries?
  26543. -need_version=$need_version
  26544. -
  26545. -# Whether dlopen is supported.
  26546. -dlopen_support=$enable_dlopen
  26547. -
  26548. -# Whether dlopen of programs is supported.
  26549. -dlopen_self=$enable_dlopen_self
  26550. -
  26551. -# Whether dlopen of statically linked programs is supported.
  26552. -dlopen_self_static=$enable_dlopen_self_static
  26553. -
  26554. -# Compiler flag to prevent dynamic linking.
  26555. -link_static_flag=$lt_lt_prog_compiler_static
  26556. -
  26557. -# Compiler flag to turn off builtin functions.
  26558. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  26559. -
  26560. -# Compiler flag to allow reflexive dlopens.
  26561. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  26562. -
  26563. -# Compiler flag to generate shared objects directly from archives.
  26564. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  26565. -
  26566. -# Compiler flag to generate thread-safe objects.
  26567. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  26568. -
  26569. -# Library versioning type.
  26570. -version_type=$version_type
  26571. -
  26572. -# Format of library name prefix.
  26573. -libname_spec=$lt_libname_spec
  26574. -
  26575. -# List of archive names. First name is the real one, the rest are links.
  26576. -# The last name is the one that the linker finds with -lNAME.
  26577. -library_names_spec=$lt_library_names_spec
  26578. -
  26579. -# The coded name of the library, if different from the real name.
  26580. -soname_spec=$lt_soname_spec
  26581. -
  26582. -# Commands used to build and install an old-style archive.
  26583. -RANLIB=$lt_RANLIB
  26584. -old_archive_cmds=$lt_old_archive_cmds
  26585. -old_postinstall_cmds=$lt_old_postinstall_cmds
  26586. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  26587. -
  26588. -# Create an old-style archive from a shared archive.
  26589. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  26590. -
  26591. -# Create a temporary old-style archive to link instead of a shared archive.
  26592. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  26593. -
  26594. -# Commands used to build and install a shared archive.
  26595. -archive_cmds=$lt_archive_cmds
  26596. -archive_expsym_cmds=$lt_archive_expsym_cmds
  26597. -postinstall_cmds=$lt_postinstall_cmds
  26598. -postuninstall_cmds=$lt_postuninstall_cmds
  26599. -
  26600. -# Commands used to build a loadable module (assumed same as above if empty)
  26601. -module_cmds=$lt_module_cmds
  26602. -module_expsym_cmds=$lt_module_expsym_cmds
  26603. -
  26604. -# Commands to strip libraries.
  26605. -old_striplib=$lt_old_striplib
  26606. -striplib=$lt_striplib
  26607. -
  26608. -# Dependencies to place before the objects being linked to create a
  26609. -# shared library.
  26610. -predep_objects=$lt_predep_objects
  26611. -
  26612. -# Dependencies to place after the objects being linked to create a
  26613. -# shared library.
  26614. -postdep_objects=$lt_postdep_objects
  26615. -
  26616. -# Dependencies to place before the objects being linked to create a
  26617. -# shared library.
  26618. -predeps=$lt_predeps
  26619. -
  26620. -# Dependencies to place after the objects being linked to create a
  26621. -# shared library.
  26622. -postdeps=$lt_postdeps
  26623. -
  26624. -# The library search path used internally by the compiler when linking
  26625. -# a shared library.
  26626. -compiler_lib_search_path=$lt_compiler_lib_search_path
  26627. -
  26628. -# Method to check whether dependent libraries are shared objects.
  26629. -deplibs_check_method=$lt_deplibs_check_method
  26630. -
  26631. -# Command to use when deplibs_check_method == file_magic.
  26632. -file_magic_cmd=$lt_file_magic_cmd
  26633. -
  26634. -# Flag that allows shared libraries with undefined symbols to be built.
  26635. -allow_undefined_flag=$lt_allow_undefined_flag
  26636. -
  26637. -# Flag that forces no undefined symbols.
  26638. -no_undefined_flag=$lt_no_undefined_flag
  26639. -
  26640. -# Commands used to finish a libtool library installation in a directory.
  26641. -finish_cmds=$lt_finish_cmds
  26642. -
  26643. -# Same as above, but a single script fragment to be evaled but not shown.
  26644. -finish_eval=$lt_finish_eval
  26645. -
  26646. -# Take the output of nm and produce a listing of raw symbols and C names.
  26647. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  26648. -
  26649. -# Transform the output of nm in a proper C declaration
  26650. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  26651. -
  26652. -# Transform the output of nm in a C name address pair
  26653. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  26654. -
  26655. -# This is the shared library runtime path variable.
  26656. -runpath_var=$runpath_var
  26657. -
  26658. -# This is the shared library path variable.
  26659. -shlibpath_var=$shlibpath_var
  26660. -
  26661. -# Is shlibpath searched before the hard-coded library search path?
  26662. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  26663. -
  26664. -# How to hardcode a shared library path into an executable.
  26665. -hardcode_action=$hardcode_action
  26666. -
  26667. -# Whether we should hardcode library paths into libraries.
  26668. -hardcode_into_libs=$hardcode_into_libs
  26669. -
  26670. -# Flag to hardcode \$libdir into a binary during linking.
  26671. -# This must work even if \$libdir does not exist.
  26672. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  26673. -
  26674. -# If ld is used when linking, flag to hardcode \$libdir into
  26675. -# a binary during linking. This must work even if \$libdir does
  26676. -# not exist.
  26677. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  26678. -
  26679. -# Whether we need a single -rpath flag with a separated argument.
  26680. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  26681. -
  26682. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  26683. -# resulting binary.
  26684. -hardcode_direct=$hardcode_direct
  26685. -
  26686. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  26687. -# resulting binary.
  26688. -hardcode_minus_L=$hardcode_minus_L
  26689. -
  26690. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  26691. -# the resulting binary.
  26692. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  26693. -
  26694. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  26695. -# and all subsequent libraries and executables linked against it.
  26696. -hardcode_automatic=$hardcode_automatic
  26697. -
  26698. -# Variables whose values should be saved in libtool wrapper scripts and
  26699. -# restored at relink time.
  26700. -variables_saved_for_relink="$variables_saved_for_relink"
  26701. -
  26702. -# Whether libtool must link a program against all its dependency libraries.
  26703. -link_all_deplibs=$link_all_deplibs
  26704. -
  26705. -# Compile-time system search path for libraries
  26706. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  26707. -
  26708. -# Run-time system search path for libraries
  26709. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  26710. -
  26711. -# Fix the shell variable \$srcfile for the compiler.
  26712. -fix_srcfile_path="$fix_srcfile_path"
  26713. -
  26714. -# Set to yes if exported symbols are required.
  26715. -always_export_symbols=$always_export_symbols
  26716. -
  26717. -# The commands to list exported symbols.
  26718. -export_symbols_cmds=$lt_export_symbols_cmds
  26719. -
  26720. -# The commands to extract the exported symbol list from a shared archive.
  26721. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  26722. -
  26723. -# Symbols that should not be listed in the preloaded symbols.
  26724. -exclude_expsyms=$lt_exclude_expsyms
  26725. -
  26726. -# Symbols that must always be exported.
  26727. -include_expsyms=$lt_include_expsyms
  26728. -
  26729. -# ### END LIBTOOL CONFIG
  26730. -
  26731. -__EOF__
  26732. -
  26733. -
  26734. - case $host_os in
  26735. - aix3*)
  26736. - cat <<\EOF >> "$cfgfile"
  26737. -
  26738. -# AIX sometimes has problems with the GCC collect2 program. For some
  26739. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  26740. -# vanish in a puff of smoke.
  26741. -if test "X${COLLECT_NAMES+set}" != Xset; then
  26742. - COLLECT_NAMES=
  26743. - export COLLECT_NAMES
  26744. -fi
  26745. -EOF
  26746. - ;;
  26747. - esac
  26748. -
  26749. - # We use sed instead of cat because bash on DJGPP gets confused if
  26750. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  26751. - # text mode, it properly converts lines to CR/LF. This bash problem
  26752. - # is reportedly fixed, but why not run on old versions too?
  26753. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  26754. -
  26755. - mv -f "$cfgfile" "$ofile" || \
  26756. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  26757. - chmod +x "$ofile"
  26758. -
  26759. -else
  26760. - # If there is no Makefile yet, we rely on a make rule to execute
  26761. - # `config.status --recheck' to rerun these tests and create the
  26762. - # libtool script then.
  26763. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  26764. - if test -f "$ltmain_in"; then
  26765. - test -f Makefile && make "$ltmain"
  26766. - fi
  26767. -fi
  26768. -
  26769. -
  26770. -ac_ext=c
  26771. -ac_cpp='$CPP $CPPFLAGS'
  26772. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26773. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26774. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  26775. -
  26776. -CC="$lt_save_CC"
  26777. -
  26778. -
  26779. -# Check whether --with-tags or --without-tags was given.
  26780. -if test "${with_tags+set}" = set; then
  26781. - withval="$with_tags"
  26782. - tagnames="$withval"
  26783. -fi;
  26784. -
  26785. -if test -f "$ltmain" && test -n "$tagnames"; then
  26786. - if test ! -f "${ofile}"; then
  26787. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  26788. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  26789. - fi
  26790. -
  26791. - if test -z "$LTCC"; then
  26792. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  26793. - if test -z "$LTCC"; then
  26794. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  26795. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  26796. - else
  26797. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  26798. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  26799. - fi
  26800. - fi
  26801. -
  26802. - # Extract list of available tagged configurations in $ofile.
  26803. - # Note that this assumes the entire list is on one line.
  26804. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  26805. -
  26806. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26807. - for tagname in $tagnames; do
  26808. - IFS="$lt_save_ifs"
  26809. - # Check whether tagname contains only valid characters
  26810. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  26811. - "") ;;
  26812. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  26813. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  26814. - { (exit 1); exit 1; }; }
  26815. - ;;
  26816. - esac
  26817. -
  26818. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  26819. - then
  26820. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  26821. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  26822. - { (exit 1); exit 1; }; }
  26823. - fi
  26824. -
  26825. - # Update the list of available tags.
  26826. - if test -n "$tagname"; then
  26827. - echo appending configuration tag \"$tagname\" to $ofile
  26828. -
  26829. - case $tagname in
  26830. - CXX)
  26831. - if test -n "$CXX" && test "X$CXX" != "Xno"; then
  26832. - ac_ext=cc
  26833. -ac_cpp='$CXXCPP $CPPFLAGS'
  26834. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  26835. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  26836. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  26837. -
  26838. -
  26839. -
  26840. -
  26841. -archive_cmds_need_lc_CXX=no
  26842. -allow_undefined_flag_CXX=
  26843. -always_export_symbols_CXX=no
  26844. -archive_expsym_cmds_CXX=
  26845. -export_dynamic_flag_spec_CXX=
  26846. -hardcode_direct_CXX=no
  26847. -hardcode_libdir_flag_spec_CXX=
  26848. -hardcode_libdir_flag_spec_ld_CXX=
  26849. -hardcode_libdir_separator_CXX=
  26850. -hardcode_minus_L_CXX=no
  26851. -hardcode_automatic_CXX=no
  26852. -module_cmds_CXX=
  26853. -module_expsym_cmds_CXX=
  26854. -link_all_deplibs_CXX=unknown
  26855. -old_archive_cmds_CXX=$old_archive_cmds
  26856. -no_undefined_flag_CXX=
  26857. -whole_archive_flag_spec_CXX=
  26858. -enable_shared_with_static_runtimes_CXX=no
  26859. -
  26860. -# Dependencies to place before and after the object being linked:
  26861. -predep_objects_CXX=
  26862. -postdep_objects_CXX=
  26863. -predeps_CXX=
  26864. -postdeps_CXX=
  26865. -compiler_lib_search_path_CXX=
  26866. -
  26867. -# Source file extension for C++ test sources.
  26868. -ac_ext=cc
  26869. -
  26870. -# Object file extension for compiled C++ test sources.
  26871. -objext=o
  26872. -objext_CXX=$objext
  26873. -
  26874. -# Code to be used in simple compile tests
  26875. -lt_simple_compile_test_code="int some_variable = 0;\n"
  26876. -
  26877. -# Code to be used in simple link tests
  26878. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  26879. -
  26880. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  26881. -
  26882. -# If no C compiler was specified, use CC.
  26883. -LTCC=${LTCC-"$CC"}
  26884. -
  26885. -# Allow CC to be a program name with arguments.
  26886. -compiler=$CC
  26887. -
  26888. -
  26889. -# Allow CC to be a program name with arguments.
  26890. -lt_save_CC=$CC
  26891. -lt_save_LD=$LD
  26892. -lt_save_GCC=$GCC
  26893. -GCC=$GXX
  26894. -lt_save_with_gnu_ld=$with_gnu_ld
  26895. -lt_save_path_LD=$lt_cv_path_LD
  26896. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  26897. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  26898. -else
  26899. - unset lt_cv_prog_gnu_ld
  26900. -fi
  26901. -if test -n "${lt_cv_path_LDCXX+set}"; then
  26902. - lt_cv_path_LD=$lt_cv_path_LDCXX
  26903. -else
  26904. - unset lt_cv_path_LD
  26905. -fi
  26906. -test -z "${LDCXX+set}" || LD=$LDCXX
  26907. -CC=${CXX-"c++"}
  26908. -compiler=$CC
  26909. -compiler_CXX=$CC
  26910. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  26911. -
  26912. -# We don't want -fno-exception wen compiling C++ code, so set the
  26913. -# no_builtin_flag separately
  26914. -if test "$GXX" = yes; then
  26915. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  26916. -else
  26917. - lt_prog_compiler_no_builtin_flag_CXX=
  26918. -fi
  26919. -
  26920. -if test "$GXX" = yes; then
  26921. - # Set up default GNU C++ configuration
  26922. -
  26923. -
  26924. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  26925. -if test "${with_gnu_ld+set}" = set; then
  26926. - withval="$with_gnu_ld"
  26927. - test "$withval" = no || with_gnu_ld=yes
  26928. -else
  26929. - with_gnu_ld=no
  26930. -fi;
  26931. -ac_prog=ld
  26932. -if test "$GCC" = yes; then
  26933. - # Check if gcc -print-prog-name=ld gives a path.
  26934. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  26935. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  26936. - case $host in
  26937. - *-*-mingw*)
  26938. - # gcc leaves a trailing carriage return which upsets mingw
  26939. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  26940. - *)
  26941. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  26942. - esac
  26943. - case $ac_prog in
  26944. - # Accept absolute paths.
  26945. - [\\/]* | ?:[\\/]*)
  26946. - re_direlt='/[^/][^/]*/\.\./'
  26947. - # Canonicalize the pathname of ld
  26948. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  26949. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  26950. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  26951. - done
  26952. - test -z "$LD" && LD="$ac_prog"
  26953. - ;;
  26954. - "")
  26955. - # If it fails, then pretend we aren't using GCC.
  26956. - ac_prog=ld
  26957. - ;;
  26958. - *)
  26959. - # If it is relative, then search for the first ld in PATH.
  26960. - with_gnu_ld=unknown
  26961. - ;;
  26962. - esac
  26963. -elif test "$with_gnu_ld" = yes; then
  26964. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  26965. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  26966. -else
  26967. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  26968. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  26969. -fi
  26970. -if test "${lt_cv_path_LD+set}" = set; then
  26971. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26972. -else
  26973. - if test -z "$LD"; then
  26974. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  26975. - for ac_dir in $PATH; do
  26976. - IFS="$lt_save_ifs"
  26977. - test -z "$ac_dir" && ac_dir=.
  26978. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  26979. - lt_cv_path_LD="$ac_dir/$ac_prog"
  26980. - # Check to see if the program is GNU ld. I'd rather use --version,
  26981. - # but apparently some GNU ld's only accept -v.
  26982. - # Break only if it was the GNU/non-GNU ld that we prefer.
  26983. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  26984. - *GNU* | *'with BFD'*)
  26985. - test "$with_gnu_ld" != no && break
  26986. - ;;
  26987. - *)
  26988. - test "$with_gnu_ld" != yes && break
  26989. - ;;
  26990. - esac
  26991. - fi
  26992. - done
  26993. - IFS="$lt_save_ifs"
  26994. -else
  26995. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  26996. -fi
  26997. -fi
  26998. -
  26999. -LD="$lt_cv_path_LD"
  27000. -if test -n "$LD"; then
  27001. - echo "$as_me:$LINENO: result: $LD" >&5
  27002. -echo "${ECHO_T}$LD" >&6
  27003. -else
  27004. - echo "$as_me:$LINENO: result: no" >&5
  27005. -echo "${ECHO_T}no" >&6
  27006. -fi
  27007. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  27008. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  27009. - { (exit 1); exit 1; }; }
  27010. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  27011. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  27012. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  27013. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27014. -else
  27015. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  27016. -case `$LD -v 2>&1 </dev/null` in
  27017. -*GNU* | *'with BFD'*)
  27018. - lt_cv_prog_gnu_ld=yes
  27019. - ;;
  27020. -*)
  27021. - lt_cv_prog_gnu_ld=no
  27022. - ;;
  27023. -esac
  27024. -fi
  27025. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  27026. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  27027. -with_gnu_ld=$lt_cv_prog_gnu_ld
  27028. -
  27029. -
  27030. -
  27031. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  27032. - # archiving commands below assume that GNU ld is being used.
  27033. - if test "$with_gnu_ld" = yes; then
  27034. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27035. - archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27036. -
  27037. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  27038. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27039. -
  27040. - # If archive_cmds runs LD, not CC, wlarc should be empty
  27041. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  27042. - # investigate it a little bit more. (MM)
  27043. - wlarc='${wl}'
  27044. -
  27045. - # ancient GNU ld didn't support --whole-archive et. al.
  27046. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  27047. - grep 'no-whole-archive' > /dev/null; then
  27048. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  27049. - else
  27050. - whole_archive_flag_spec_CXX=
  27051. - fi
  27052. - else
  27053. - with_gnu_ld=no
  27054. - wlarc=
  27055. -
  27056. - # A generic and very simple default shared library creation
  27057. - # command for GNU C++ for the case where it uses the native
  27058. - # linker, instead of GNU ld. If possible, this setting should
  27059. - # overridden to take advantage of the native linker features on
  27060. - # the platform it is being used on.
  27061. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  27062. - fi
  27063. -
  27064. - # Commands to make compiler produce verbose output that lists
  27065. - # what "hidden" libraries, object files and flags are used when
  27066. - # linking a shared library.
  27067. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27068. -
  27069. -else
  27070. - GXX=no
  27071. - with_gnu_ld=no
  27072. - wlarc=
  27073. -fi
  27074. -
  27075. -# PORTME: fill in a description of your system's C++ link characteristics
  27076. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  27077. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  27078. -ld_shlibs_CXX=yes
  27079. -case $host_os in
  27080. - aix3*)
  27081. - # FIXME: insert proper C++ library support
  27082. - ld_shlibs_CXX=no
  27083. - ;;
  27084. - aix4* | aix5*)
  27085. - if test "$host_cpu" = ia64; then
  27086. - # On IA64, the linker does run time linking by default, so we don't
  27087. - # have to do anything special.
  27088. - aix_use_runtimelinking=no
  27089. - exp_sym_flag='-Bexport'
  27090. - no_entry_flag=""
  27091. - else
  27092. - aix_use_runtimelinking=no
  27093. -
  27094. - # Test if we are trying to use run time linking or normal
  27095. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  27096. - # need to do runtime linking.
  27097. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  27098. - for ld_flag in $LDFLAGS; do
  27099. - case $ld_flag in
  27100. - *-brtl*)
  27101. - aix_use_runtimelinking=yes
  27102. - break
  27103. - ;;
  27104. - esac
  27105. - done
  27106. - esac
  27107. -
  27108. - exp_sym_flag='-bexport'
  27109. - no_entry_flag='-bnoentry'
  27110. - fi
  27111. -
  27112. - # When large executables or shared objects are built, AIX ld can
  27113. - # have problems creating the table of contents. If linking a library
  27114. - # or program results in "error TOC overflow" add -mminimal-toc to
  27115. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  27116. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  27117. -
  27118. - archive_cmds_CXX=''
  27119. - hardcode_direct_CXX=yes
  27120. - hardcode_libdir_separator_CXX=':'
  27121. - link_all_deplibs_CXX=yes
  27122. -
  27123. - if test "$GXX" = yes; then
  27124. - case $host_os in aix4.012|aix4.012.*)
  27125. - # We only want to do this on AIX 4.2 and lower, the check
  27126. - # below for broken collect2 doesn't work under 4.3+
  27127. - collect2name=`${CC} -print-prog-name=collect2`
  27128. - if test -f "$collect2name" && \
  27129. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  27130. - then
  27131. - # We have reworked collect2
  27132. - hardcode_direct_CXX=yes
  27133. - else
  27134. - # We have old collect2
  27135. - hardcode_direct_CXX=unsupported
  27136. - # It fails to find uninstalled libraries when the uninstalled
  27137. - # path is not listed in the libpath. Setting hardcode_minus_L
  27138. - # to unsupported forces relinking
  27139. - hardcode_minus_L_CXX=yes
  27140. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27141. - hardcode_libdir_separator_CXX=
  27142. - fi
  27143. - esac
  27144. - shared_flag='-shared'
  27145. - else
  27146. - # not using gcc
  27147. - if test "$host_cpu" = ia64; then
  27148. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  27149. - # chokes on -Wl,-G. The following line is correct:
  27150. - shared_flag='-G'
  27151. - else
  27152. - if test "$aix_use_runtimelinking" = yes; then
  27153. - shared_flag='${wl}-G'
  27154. - else
  27155. - shared_flag='${wl}-bM:SRE'
  27156. - fi
  27157. - fi
  27158. - fi
  27159. -
  27160. - # It seems that -bexpall does not export symbols beginning with
  27161. - # underscore (_), so it is better to generate a list of symbols to export.
  27162. - always_export_symbols_CXX=yes
  27163. - if test "$aix_use_runtimelinking" = yes; then
  27164. - # Warning - without using the other runtime loading flags (-brtl),
  27165. - # -berok will link without error, but may produce a broken library.
  27166. - allow_undefined_flag_CXX='-berok'
  27167. - # Determine the default libpath from the value encoded in an empty executable.
  27168. - cat >conftest.$ac_ext <<_ACEOF
  27169. -/* confdefs.h. */
  27170. -_ACEOF
  27171. -cat confdefs.h >>conftest.$ac_ext
  27172. -cat >>conftest.$ac_ext <<_ACEOF
  27173. -/* end confdefs.h. */
  27174. -
  27175. -int
  27176. -main ()
  27177. -{
  27178. -
  27179. - ;
  27180. - return 0;
  27181. -}
  27182. -_ACEOF
  27183. -rm -f conftest.$ac_objext conftest$ac_exeext
  27184. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27185. - (eval $ac_link) 2>conftest.er1
  27186. - ac_status=$?
  27187. - grep -v '^ *+' conftest.er1 >conftest.err
  27188. - rm -f conftest.er1
  27189. - cat conftest.err >&5
  27190. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27191. - (exit $ac_status); } &&
  27192. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  27193. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27194. - (eval $ac_try) 2>&5
  27195. - ac_status=$?
  27196. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27197. - (exit $ac_status); }; } &&
  27198. - { ac_try='test -s conftest$ac_exeext'
  27199. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27200. - (eval $ac_try) 2>&5
  27201. - ac_status=$?
  27202. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27203. - (exit $ac_status); }; }; then
  27204. -
  27205. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27206. -}'`
  27207. -# Check for a 64-bit object if we didn't find anything.
  27208. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27209. -}'`; fi
  27210. -else
  27211. - echo "$as_me: failed program was:" >&5
  27212. -sed 's/^/| /' conftest.$ac_ext >&5
  27213. -
  27214. -fi
  27215. -rm -f conftest.err conftest.$ac_objext \
  27216. - conftest$ac_exeext conftest.$ac_ext
  27217. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27218. -
  27219. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27220. -
  27221. - archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  27222. - else
  27223. - if test "$host_cpu" = ia64; then
  27224. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  27225. - allow_undefined_flag_CXX="-z nodefs"
  27226. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  27227. - else
  27228. - # Determine the default libpath from the value encoded in an empty executable.
  27229. - cat >conftest.$ac_ext <<_ACEOF
  27230. -/* confdefs.h. */
  27231. -_ACEOF
  27232. -cat confdefs.h >>conftest.$ac_ext
  27233. -cat >>conftest.$ac_ext <<_ACEOF
  27234. -/* end confdefs.h. */
  27235. -
  27236. -int
  27237. -main ()
  27238. -{
  27239. -
  27240. - ;
  27241. - return 0;
  27242. -}
  27243. -_ACEOF
  27244. -rm -f conftest.$ac_objext conftest$ac_exeext
  27245. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  27246. - (eval $ac_link) 2>conftest.er1
  27247. - ac_status=$?
  27248. - grep -v '^ *+' conftest.er1 >conftest.err
  27249. - rm -f conftest.er1
  27250. - cat conftest.err >&5
  27251. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27252. - (exit $ac_status); } &&
  27253. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  27254. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27255. - (eval $ac_try) 2>&5
  27256. - ac_status=$?
  27257. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27258. - (exit $ac_status); }; } &&
  27259. - { ac_try='test -s conftest$ac_exeext'
  27260. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  27261. - (eval $ac_try) 2>&5
  27262. - ac_status=$?
  27263. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27264. - (exit $ac_status); }; }; then
  27265. -
  27266. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27267. -}'`
  27268. -# Check for a 64-bit object if we didn't find anything.
  27269. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  27270. -}'`; fi
  27271. -else
  27272. - echo "$as_me: failed program was:" >&5
  27273. -sed 's/^/| /' conftest.$ac_ext >&5
  27274. -
  27275. -fi
  27276. -rm -f conftest.err conftest.$ac_objext \
  27277. - conftest$ac_exeext conftest.$ac_ext
  27278. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  27279. -
  27280. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  27281. - # Warning - without using the other run time loading flags,
  27282. - # -berok will link without error, but may produce a broken library.
  27283. - no_undefined_flag_CXX=' ${wl}-bernotok'
  27284. - allow_undefined_flag_CXX=' ${wl}-berok'
  27285. - # -bexpall does not export symbols beginning with underscore (_)
  27286. - always_export_symbols_CXX=yes
  27287. - # Exported symbols can be pulled into shared objects from archives
  27288. - whole_archive_flag_spec_CXX=' '
  27289. - archive_cmds_need_lc_CXX=yes
  27290. - # This is similar to how AIX traditionally builds it's shared libraries.
  27291. - archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  27292. - fi
  27293. - fi
  27294. - ;;
  27295. - chorus*)
  27296. - case $cc_basename in
  27297. - *)
  27298. - # FIXME: insert proper C++ library support
  27299. - ld_shlibs_CXX=no
  27300. - ;;
  27301. - esac
  27302. - ;;
  27303. -
  27304. - cygwin* | mingw* | pw32*)
  27305. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  27306. - # as there is no search path for DLLs.
  27307. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27308. - allow_undefined_flag_CXX=unsupported
  27309. - always_export_symbols_CXX=no
  27310. - enable_shared_with_static_runtimes_CXX=yes
  27311. -
  27312. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  27313. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27314. - # If the export-symbols file already is a .def file (1st line
  27315. - # is EXPORTS), use it as is; otherwise, prepend...
  27316. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  27317. - cp $export_symbols $output_objdir/$soname.def;
  27318. - else
  27319. - echo EXPORTS > $output_objdir/$soname.def;
  27320. - cat $export_symbols >> $output_objdir/$soname.def;
  27321. - fi~
  27322. - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  27323. - else
  27324. - ld_shlibs_CXX=no
  27325. - fi
  27326. - ;;
  27327. -
  27328. - darwin* | rhapsody*)
  27329. - if test "$GXX" = yes; then
  27330. - archive_cmds_need_lc_CXX=no
  27331. - case "$host_os" in
  27332. - rhapsody* | darwin1.[012])
  27333. - allow_undefined_flag_CXX='-undefined suppress'
  27334. - ;;
  27335. - *) # Darwin 1.3 on
  27336. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  27337. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  27338. - else
  27339. - case ${MACOSX_DEPLOYMENT_TARGET} in
  27340. - 10.[012])
  27341. - allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
  27342. - ;;
  27343. - 10.*)
  27344. - allow_undefined_flag_CXX='-undefined dynamic_lookup'
  27345. - ;;
  27346. - esac
  27347. - fi
  27348. - ;;
  27349. - esac
  27350. - lt_int_apple_cc_single_mod=no
  27351. - output_verbose_link_cmd='echo'
  27352. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  27353. - lt_int_apple_cc_single_mod=yes
  27354. - fi
  27355. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  27356. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  27357. - else
  27358. - archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  27359. - fi
  27360. - module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  27361. -
  27362. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  27363. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  27364. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27365. - else
  27366. - archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27367. - fi
  27368. - module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  27369. - hardcode_direct_CXX=no
  27370. - hardcode_automatic_CXX=yes
  27371. - hardcode_shlibpath_var_CXX=unsupported
  27372. - whole_archive_flag_spec_CXX='-all_load $convenience'
  27373. - link_all_deplibs_CXX=yes
  27374. - else
  27375. - ld_shlibs_CXX=no
  27376. - fi
  27377. - ;;
  27378. -
  27379. - dgux*)
  27380. - case $cc_basename in
  27381. - ec++)
  27382. - # FIXME: insert proper C++ library support
  27383. - ld_shlibs_CXX=no
  27384. - ;;
  27385. - ghcx)
  27386. - # Green Hills C++ Compiler
  27387. - # FIXME: insert proper C++ library support
  27388. - ld_shlibs_CXX=no
  27389. - ;;
  27390. - *)
  27391. - # FIXME: insert proper C++ library support
  27392. - ld_shlibs_CXX=no
  27393. - ;;
  27394. - esac
  27395. - ;;
  27396. - freebsd12*)
  27397. - # C++ shared libraries reported to be fairly broken before switch to ELF
  27398. - ld_shlibs_CXX=no
  27399. - ;;
  27400. - freebsd-elf*)
  27401. - archive_cmds_need_lc_CXX=no
  27402. - ;;
  27403. - freebsd* | kfreebsd*-gnu)
  27404. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  27405. - # conventions
  27406. - ld_shlibs_CXX=yes
  27407. - ;;
  27408. - gnu*)
  27409. - ;;
  27410. - hpux9*)
  27411. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27412. - hardcode_libdir_separator_CXX=:
  27413. - export_dynamic_flag_spec_CXX='${wl}-E'
  27414. - hardcode_direct_CXX=yes
  27415. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27416. - # but as the default
  27417. - # location of the library.
  27418. -
  27419. - case $cc_basename in
  27420. - CC)
  27421. - # FIXME: insert proper C++ library support
  27422. - ld_shlibs_CXX=no
  27423. - ;;
  27424. - aCC)
  27425. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  27426. - # Commands to make compiler produce verbose output that lists
  27427. - # what "hidden" libraries, object files and flags are used when
  27428. - # linking a shared library.
  27429. - #
  27430. - # There doesn't appear to be a way to prevent this compiler from
  27431. - # explicitly linking system object files so we need to strip them
  27432. - # from the output so that they don't get included in the library
  27433. - # dependencies.
  27434. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27435. - ;;
  27436. - *)
  27437. - if test "$GXX" = yes; then
  27438. - archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  27439. - else
  27440. - # FIXME: insert proper C++ library support
  27441. - ld_shlibs_CXX=no
  27442. - fi
  27443. - ;;
  27444. - esac
  27445. - ;;
  27446. - hpux10*|hpux11*)
  27447. - if test $with_gnu_ld = no; then
  27448. - case "$host_cpu" in
  27449. - hppa*64*)
  27450. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27451. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  27452. - hardcode_libdir_separator_CXX=:
  27453. - ;;
  27454. - ia64*)
  27455. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  27456. - ;;
  27457. - *)
  27458. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  27459. - hardcode_libdir_separator_CXX=:
  27460. - export_dynamic_flag_spec_CXX='${wl}-E'
  27461. - ;;
  27462. - esac
  27463. - fi
  27464. - case "$host_cpu" in
  27465. - hppa*64*)
  27466. - hardcode_direct_CXX=no
  27467. - hardcode_shlibpath_var_CXX=no
  27468. - ;;
  27469. - ia64*)
  27470. - hardcode_direct_CXX=no
  27471. - hardcode_shlibpath_var_CXX=no
  27472. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27473. - # but as the default
  27474. - # location of the library.
  27475. - ;;
  27476. - *)
  27477. - hardcode_direct_CXX=yes
  27478. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  27479. - # but as the default
  27480. - # location of the library.
  27481. - ;;
  27482. - esac
  27483. -
  27484. - case $cc_basename in
  27485. - CC)
  27486. - # FIXME: insert proper C++ library support
  27487. - ld_shlibs_CXX=no
  27488. - ;;
  27489. - aCC)
  27490. - case "$host_cpu" in
  27491. - hppa*64*|ia64*)
  27492. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  27493. - ;;
  27494. - *)
  27495. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27496. - ;;
  27497. - esac
  27498. - # Commands to make compiler produce verbose output that lists
  27499. - # what "hidden" libraries, object files and flags are used when
  27500. - # linking a shared library.
  27501. - #
  27502. - # There doesn't appear to be a way to prevent this compiler from
  27503. - # explicitly linking system object files so we need to strip them
  27504. - # from the output so that they don't get included in the library
  27505. - # dependencies.
  27506. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27507. - ;;
  27508. - *)
  27509. - if test "$GXX" = yes; then
  27510. - if test $with_gnu_ld = no; then
  27511. - case "$host_cpu" in
  27512. - ia64*|hppa*64*)
  27513. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  27514. - ;;
  27515. - *)
  27516. - archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27517. - ;;
  27518. - esac
  27519. - fi
  27520. - else
  27521. - # FIXME: insert proper C++ library support
  27522. - ld_shlibs_CXX=no
  27523. - fi
  27524. - ;;
  27525. - esac
  27526. - ;;
  27527. - irix5* | irix6*)
  27528. - case $cc_basename in
  27529. - CC)
  27530. - # SGI C++
  27531. - archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  27532. -
  27533. - # Archives containing C++ object files must be created using
  27534. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  27535. - # necessary to make sure instantiated templates are included
  27536. - # in the archive.
  27537. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  27538. - ;;
  27539. - *)
  27540. - if test "$GXX" = yes; then
  27541. - if test "$with_gnu_ld" = no; then
  27542. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  27543. - else
  27544. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
  27545. - fi
  27546. - fi
  27547. - link_all_deplibs_CXX=yes
  27548. - ;;
  27549. - esac
  27550. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27551. - hardcode_libdir_separator_CXX=:
  27552. - ;;
  27553. - linux*)
  27554. - case $cc_basename in
  27555. - KCC)
  27556. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27557. -
  27558. - # KCC will only create a shared library if the output file
  27559. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27560. - # to its proper name (with version) after linking.
  27561. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  27562. - archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  27563. - # Commands to make compiler produce verbose output that lists
  27564. - # what "hidden" libraries, object files and flags are used when
  27565. - # linking a shared library.
  27566. - #
  27567. - # There doesn't appear to be a way to prevent this compiler from
  27568. - # explicitly linking system object files so we need to strip them
  27569. - # from the output so that they don't get included in the library
  27570. - # dependencies.
  27571. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27572. -
  27573. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  27574. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27575. -
  27576. - # Archives containing C++ object files must be created using
  27577. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27578. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27579. - ;;
  27580. - icpc)
  27581. - # Intel C++
  27582. - with_gnu_ld=yes
  27583. - archive_cmds_need_lc_CXX=no
  27584. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27585. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  27586. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27587. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  27588. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  27589. - ;;
  27590. - cxx)
  27591. - # Compaq C++
  27592. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  27593. - archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  27594. -
  27595. - runpath_var=LD_RUN_PATH
  27596. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27597. - hardcode_libdir_separator_CXX=:
  27598. -
  27599. - # Commands to make compiler produce verbose output that lists
  27600. - # what "hidden" libraries, object files and flags are used when
  27601. - # linking a shared library.
  27602. - #
  27603. - # There doesn't appear to be a way to prevent this compiler from
  27604. - # explicitly linking system object files so we need to strip them
  27605. - # from the output so that they don't get included in the library
  27606. - # dependencies.
  27607. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27608. - ;;
  27609. - esac
  27610. - ;;
  27611. - lynxos*)
  27612. - # FIXME: insert proper C++ library support
  27613. - ld_shlibs_CXX=no
  27614. - ;;
  27615. - m88k*)
  27616. - # FIXME: insert proper C++ library support
  27617. - ld_shlibs_CXX=no
  27618. - ;;
  27619. - mvs*)
  27620. - case $cc_basename in
  27621. - cxx)
  27622. - # FIXME: insert proper C++ library support
  27623. - ld_shlibs_CXX=no
  27624. - ;;
  27625. - *)
  27626. - # FIXME: insert proper C++ library support
  27627. - ld_shlibs_CXX=no
  27628. - ;;
  27629. - esac
  27630. - ;;
  27631. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  27632. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27633. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  27634. - wlarc=
  27635. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27636. - hardcode_direct_CXX=yes
  27637. - hardcode_shlibpath_var_CXX=no
  27638. - fi
  27639. - # Workaround some broken pre-1.5 toolchains
  27640. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  27641. - ;;
  27642. - osf3*)
  27643. - case $cc_basename in
  27644. - KCC)
  27645. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27646. -
  27647. - # KCC will only create a shared library if the output file
  27648. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27649. - # to its proper name (with version) after linking.
  27650. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  27651. -
  27652. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27653. - hardcode_libdir_separator_CXX=:
  27654. -
  27655. - # Archives containing C++ object files must be created using
  27656. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  27657. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  27658. -
  27659. - ;;
  27660. - RCC)
  27661. - # Rational C++ 2.4.1
  27662. - # FIXME: insert proper C++ library support
  27663. - ld_shlibs_CXX=no
  27664. - ;;
  27665. - cxx)
  27666. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27667. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  27668. -
  27669. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27670. - hardcode_libdir_separator_CXX=:
  27671. -
  27672. - # Commands to make compiler produce verbose output that lists
  27673. - # what "hidden" libraries, object files and flags are used when
  27674. - # linking a shared library.
  27675. - #
  27676. - # There doesn't appear to be a way to prevent this compiler from
  27677. - # explicitly linking system object files so we need to strip them
  27678. - # from the output so that they don't get included in the library
  27679. - # dependencies.
  27680. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27681. - ;;
  27682. - *)
  27683. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27684. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27685. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  27686. -
  27687. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27688. - hardcode_libdir_separator_CXX=:
  27689. -
  27690. - # Commands to make compiler produce verbose output that lists
  27691. - # what "hidden" libraries, object files and flags are used when
  27692. - # linking a shared library.
  27693. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27694. -
  27695. - else
  27696. - # FIXME: insert proper C++ library support
  27697. - ld_shlibs_CXX=no
  27698. - fi
  27699. - ;;
  27700. - esac
  27701. - ;;
  27702. - osf4* | osf5*)
  27703. - case $cc_basename in
  27704. - KCC)
  27705. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  27706. -
  27707. - # KCC will only create a shared library if the output file
  27708. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  27709. - # to its proper name (with version) after linking.
  27710. - archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  27711. -
  27712. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  27713. - hardcode_libdir_separator_CXX=:
  27714. -
  27715. - # Archives containing C++ object files must be created using
  27716. - # the KAI C++ compiler.
  27717. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  27718. - ;;
  27719. - RCC)
  27720. - # Rational C++ 2.4.1
  27721. - # FIXME: insert proper C++ library support
  27722. - ld_shlibs_CXX=no
  27723. - ;;
  27724. - cxx)
  27725. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  27726. - archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  27727. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  27728. - echo "-hidden">> $lib.exp~
  27729. - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  27730. - $rm $lib.exp'
  27731. -
  27732. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  27733. - hardcode_libdir_separator_CXX=:
  27734. -
  27735. - # Commands to make compiler produce verbose output that lists
  27736. - # what "hidden" libraries, object files and flags are used when
  27737. - # linking a shared library.
  27738. - #
  27739. - # There doesn't appear to be a way to prevent this compiler from
  27740. - # explicitly linking system object files so we need to strip them
  27741. - # from the output so that they don't get included in the library
  27742. - # dependencies.
  27743. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27744. - ;;
  27745. - *)
  27746. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27747. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  27748. - archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  27749. -
  27750. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  27751. - hardcode_libdir_separator_CXX=:
  27752. -
  27753. - # Commands to make compiler produce verbose output that lists
  27754. - # what "hidden" libraries, object files and flags are used when
  27755. - # linking a shared library.
  27756. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  27757. -
  27758. - else
  27759. - # FIXME: insert proper C++ library support
  27760. - ld_shlibs_CXX=no
  27761. - fi
  27762. - ;;
  27763. - esac
  27764. - ;;
  27765. - psos*)
  27766. - # FIXME: insert proper C++ library support
  27767. - ld_shlibs_CXX=no
  27768. - ;;
  27769. - sco*)
  27770. - archive_cmds_need_lc_CXX=no
  27771. - case $cc_basename in
  27772. - CC)
  27773. - # FIXME: insert proper C++ library support
  27774. - ld_shlibs_CXX=no
  27775. - ;;
  27776. - *)
  27777. - # FIXME: insert proper C++ library support
  27778. - ld_shlibs_CXX=no
  27779. - ;;
  27780. - esac
  27781. - ;;
  27782. - sunos4*)
  27783. - case $cc_basename in
  27784. - CC)
  27785. - # Sun C++ 4.x
  27786. - # FIXME: insert proper C++ library support
  27787. - ld_shlibs_CXX=no
  27788. - ;;
  27789. - lcc)
  27790. - # Lucid
  27791. - # FIXME: insert proper C++ library support
  27792. - ld_shlibs_CXX=no
  27793. - ;;
  27794. - *)
  27795. - # FIXME: insert proper C++ library support
  27796. - ld_shlibs_CXX=no
  27797. - ;;
  27798. - esac
  27799. - ;;
  27800. - solaris*)
  27801. - case $cc_basename in
  27802. - CC)
  27803. - # Sun C++ 4.2, 5.x and Centerline C++
  27804. - no_undefined_flag_CXX=' -zdefs'
  27805. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  27806. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27807. - $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27808. -
  27809. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  27810. - hardcode_shlibpath_var_CXX=no
  27811. - case $host_os in
  27812. - solaris2.0-5 | solaris2.0-5.*) ;;
  27813. - *)
  27814. - # The C++ compiler is used as linker so we must use $wl
  27815. - # flag to pass the commands to the underlying system
  27816. - # linker.
  27817. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  27818. - whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  27819. - ;;
  27820. - esac
  27821. - link_all_deplibs_CXX=yes
  27822. -
  27823. - # Commands to make compiler produce verbose output that lists
  27824. - # what "hidden" libraries, object files and flags are used when
  27825. - # linking a shared library.
  27826. - #
  27827. - # There doesn't appear to be a way to prevent this compiler from
  27828. - # explicitly linking system object files so we need to strip them
  27829. - # from the output so that they don't get included in the library
  27830. - # dependencies.
  27831. - output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
  27832. -
  27833. - # Archives containing C++ object files must be created using
  27834. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  27835. - # necessary to make sure instantiated templates are included
  27836. - # in the archive.
  27837. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  27838. - ;;
  27839. - gcx)
  27840. - # Green Hills C++ Compiler
  27841. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27842. -
  27843. - # The C++ compiler must be used to create the archive.
  27844. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  27845. - ;;
  27846. - *)
  27847. - # GNU C++ compiler with Solaris linker
  27848. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  27849. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  27850. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  27851. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27852. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27853. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27854. -
  27855. - # Commands to make compiler produce verbose output that lists
  27856. - # what "hidden" libraries, object files and flags are used when
  27857. - # linking a shared library.
  27858. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27859. - else
  27860. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  27861. - # platform.
  27862. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  27863. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27864. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  27865. -
  27866. - # Commands to make compiler produce verbose output that lists
  27867. - # what "hidden" libraries, object files and flags are used when
  27868. - # linking a shared library.
  27869. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  27870. - fi
  27871. -
  27872. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  27873. - fi
  27874. - ;;
  27875. - esac
  27876. - ;;
  27877. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  27878. - archive_cmds_need_lc_CXX=no
  27879. - ;;
  27880. - tandem*)
  27881. - case $cc_basename in
  27882. - NCC)
  27883. - # NonStop-UX NCC 3.20
  27884. - # FIXME: insert proper C++ library support
  27885. - ld_shlibs_CXX=no
  27886. - ;;
  27887. - *)
  27888. - # FIXME: insert proper C++ library support
  27889. - ld_shlibs_CXX=no
  27890. - ;;
  27891. - esac
  27892. - ;;
  27893. - vxworks*)
  27894. - # FIXME: insert proper C++ library support
  27895. - ld_shlibs_CXX=no
  27896. - ;;
  27897. - *)
  27898. - # FIXME: insert proper C++ library support
  27899. - ld_shlibs_CXX=no
  27900. - ;;
  27901. -esac
  27902. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  27903. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  27904. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  27905. -
  27906. -GCC_CXX="$GXX"
  27907. -LD_CXX="$LD"
  27908. -
  27909. -
  27910. -cat > conftest.$ac_ext <<EOF
  27911. -class Foo
  27912. -{
  27913. -public:
  27914. - Foo (void) { a = 0; }
  27915. -private:
  27916. - int a;
  27917. -};
  27918. -EOF
  27919. -
  27920. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27921. - (eval $ac_compile) 2>&5
  27922. - ac_status=$?
  27923. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27924. - (exit $ac_status); }; then
  27925. - # Parse the compiler output and extract the necessary
  27926. - # objects, libraries and library flags.
  27927. -
  27928. - # Sentinel used to keep track of whether or not we are before
  27929. - # the conftest object file.
  27930. - pre_test_object_deps_done=no
  27931. -
  27932. - # The `*' in the case matches for architectures that use `case' in
  27933. - # $output_verbose_cmd can trigger glob expansion during the loop
  27934. - # eval without this substitution.
  27935. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  27936. -
  27937. - for p in `eval $output_verbose_link_cmd`; do
  27938. - case $p in
  27939. -
  27940. - -L* | -R* | -l*)
  27941. - # Some compilers place space between "-{L,R}" and the path.
  27942. - # Remove the space.
  27943. - if test $p = "-L" \
  27944. - || test $p = "-R"; then
  27945. - prev=$p
  27946. - continue
  27947. - else
  27948. - prev=
  27949. - fi
  27950. -
  27951. - if test "$pre_test_object_deps_done" = no; then
  27952. - case $p in
  27953. - -L* | -R*)
  27954. - # Internal compiler library paths should come after those
  27955. - # provided the user. The postdeps already come after the
  27956. - # user supplied libs so there is no need to process them.
  27957. - if test -z "$compiler_lib_search_path_CXX"; then
  27958. - compiler_lib_search_path_CXX="${prev}${p}"
  27959. - else
  27960. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  27961. - fi
  27962. - ;;
  27963. - # The "-l" case would never come before the object being
  27964. - # linked, so don't bother handling this case.
  27965. - esac
  27966. - else
  27967. - if test -z "$postdeps_CXX"; then
  27968. - postdeps_CXX="${prev}${p}"
  27969. - else
  27970. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  27971. - fi
  27972. - fi
  27973. - ;;
  27974. -
  27975. - *.$objext)
  27976. - # This assumes that the test object file only shows up
  27977. - # once in the compiler output.
  27978. - if test "$p" = "conftest.$objext"; then
  27979. - pre_test_object_deps_done=yes
  27980. - continue
  27981. - fi
  27982. -
  27983. - if test "$pre_test_object_deps_done" = no; then
  27984. - if test -z "$predep_objects_CXX"; then
  27985. - predep_objects_CXX="$p"
  27986. - else
  27987. - predep_objects_CXX="$predep_objects_CXX $p"
  27988. - fi
  27989. - else
  27990. - if test -z "$postdep_objects_CXX"; then
  27991. - postdep_objects_CXX="$p"
  27992. - else
  27993. - postdep_objects_CXX="$postdep_objects_CXX $p"
  27994. - fi
  27995. - fi
  27996. - ;;
  27997. -
  27998. - *) ;; # Ignore the rest.
  27999. -
  28000. - esac
  28001. - done
  28002. -
  28003. - # Clean up.
  28004. - rm -f a.out a.exe
  28005. -else
  28006. - echo "libtool.m4: error: problem compiling CXX test program"
  28007. -fi
  28008. -
  28009. -$rm -f confest.$objext
  28010. -
  28011. -case " $postdeps_CXX " in
  28012. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  28013. -esac
  28014. -
  28015. -lt_prog_compiler_wl_CXX=
  28016. -lt_prog_compiler_pic_CXX=
  28017. -lt_prog_compiler_static_CXX=
  28018. -
  28019. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  28020. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  28021. -
  28022. - # C++ specific cases for pic, static, wl, etc.
  28023. - if test "$GXX" = yes; then
  28024. - lt_prog_compiler_wl_CXX='-Wl,'
  28025. - lt_prog_compiler_static_CXX='-static'
  28026. -
  28027. - case $host_os in
  28028. - aix*)
  28029. - # All AIX code is PIC.
  28030. - if test "$host_cpu" = ia64; then
  28031. - # AIX 5 now supports IA64 processor
  28032. - lt_prog_compiler_static_CXX='-Bstatic'
  28033. - fi
  28034. - ;;
  28035. - amigaos*)
  28036. - # FIXME: we need at least 68020 code to build shared libraries, but
  28037. - # adding the `-m68020' flag to GCC prevents building anything better,
  28038. - # like `-m68040'.
  28039. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  28040. - ;;
  28041. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28042. - # PIC is the default for these OSes.
  28043. - ;;
  28044. - mingw* | os2* | pw32*)
  28045. - # This hack is so that the source file can tell whether it is being
  28046. - # built for inclusion in a dll (and should export symbols for example).
  28047. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  28048. - ;;
  28049. - darwin* | rhapsody*)
  28050. - # PIC is the default on this platform
  28051. - # Common symbols not allowed in MH_DYLIB files
  28052. - lt_prog_compiler_pic_CXX='-fno-common'
  28053. - ;;
  28054. - *djgpp*)
  28055. - # DJGPP does not support shared libraries at all
  28056. - lt_prog_compiler_pic_CXX=
  28057. - ;;
  28058. - sysv4*MP*)
  28059. - if test -d /usr/nec; then
  28060. - lt_prog_compiler_pic_CXX=-Kconform_pic
  28061. - fi
  28062. - ;;
  28063. - hpux*)
  28064. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  28065. - # not for PA HP-UX.
  28066. - case "$host_cpu" in
  28067. - hppa*64*|ia64*)
  28068. - ;;
  28069. - *)
  28070. - lt_prog_compiler_pic_CXX='-fPIC'
  28071. - ;;
  28072. - esac
  28073. - ;;
  28074. - *)
  28075. - lt_prog_compiler_pic_CXX='-fPIC'
  28076. - ;;
  28077. - esac
  28078. - else
  28079. - case $host_os in
  28080. - aix4* | aix5*)
  28081. - # All AIX code is PIC.
  28082. - if test "$host_cpu" = ia64; then
  28083. - # AIX 5 now supports IA64 processor
  28084. - lt_prog_compiler_static_CXX='-Bstatic'
  28085. - else
  28086. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  28087. - fi
  28088. - ;;
  28089. - chorus*)
  28090. - case $cc_basename in
  28091. - cxch68)
  28092. - # Green Hills C++ Compiler
  28093. - # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  28094. - ;;
  28095. - esac
  28096. - ;;
  28097. - dgux*)
  28098. - case $cc_basename in
  28099. - ec++)
  28100. - lt_prog_compiler_pic_CXX='-KPIC'
  28101. - ;;
  28102. - ghcx)
  28103. - # Green Hills C++ Compiler
  28104. - lt_prog_compiler_pic_CXX='-pic'
  28105. - ;;
  28106. - *)
  28107. - ;;
  28108. - esac
  28109. - ;;
  28110. - freebsd* | kfreebsd*-gnu)
  28111. - # FreeBSD uses GNU C++
  28112. - ;;
  28113. - hpux9* | hpux10* | hpux11*)
  28114. - case $cc_basename in
  28115. - CC)
  28116. - lt_prog_compiler_wl_CXX='-Wl,'
  28117. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  28118. - if test "$host_cpu" != ia64; then
  28119. - lt_prog_compiler_pic_CXX='+Z'
  28120. - fi
  28121. - ;;
  28122. - aCC)
  28123. - lt_prog_compiler_wl_CXX='-Wl,'
  28124. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  28125. - case "$host_cpu" in
  28126. - hppa*64*|ia64*)
  28127. - # +Z the default
  28128. - ;;
  28129. - *)
  28130. - lt_prog_compiler_pic_CXX='+Z'
  28131. - ;;
  28132. - esac
  28133. - ;;
  28134. - *)
  28135. - ;;
  28136. - esac
  28137. - ;;
  28138. - irix5* | irix6* | nonstopux*)
  28139. - case $cc_basename in
  28140. - CC)
  28141. - lt_prog_compiler_wl_CXX='-Wl,'
  28142. - lt_prog_compiler_static_CXX='-non_shared'
  28143. - # CC pic flag -KPIC is the default.
  28144. - ;;
  28145. - *)
  28146. - ;;
  28147. - esac
  28148. - ;;
  28149. - linux*)
  28150. - case $cc_basename in
  28151. - KCC)
  28152. - # KAI C++ Compiler
  28153. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28154. - lt_prog_compiler_pic_CXX='-fPIC'
  28155. - ;;
  28156. - icpc)
  28157. - # Intel C++
  28158. - lt_prog_compiler_wl_CXX='-Wl,'
  28159. - lt_prog_compiler_pic_CXX='-KPIC'
  28160. - lt_prog_compiler_static_CXX='-static'
  28161. - ;;
  28162. - cxx)
  28163. - # Compaq C++
  28164. - # Make sure the PIC flag is empty. It appears that all Alpha
  28165. - # Linux and Compaq Tru64 Unix objects are PIC.
  28166. - lt_prog_compiler_pic_CXX=
  28167. - lt_prog_compiler_static_CXX='-non_shared'
  28168. - ;;
  28169. - *)
  28170. - ;;
  28171. - esac
  28172. - ;;
  28173. - lynxos*)
  28174. - ;;
  28175. - m88k*)
  28176. - ;;
  28177. - mvs*)
  28178. - case $cc_basename in
  28179. - cxx)
  28180. - lt_prog_compiler_pic_CXX='-W c,exportall'
  28181. - ;;
  28182. - *)
  28183. - ;;
  28184. - esac
  28185. - ;;
  28186. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  28187. - ;;
  28188. - osf3* | osf4* | osf5*)
  28189. - case $cc_basename in
  28190. - KCC)
  28191. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  28192. - ;;
  28193. - RCC)
  28194. - # Rational C++ 2.4.1
  28195. - lt_prog_compiler_pic_CXX='-pic'
  28196. - ;;
  28197. - cxx)
  28198. - # Digital/Compaq C++
  28199. - lt_prog_compiler_wl_CXX='-Wl,'
  28200. - # Make sure the PIC flag is empty. It appears that all Alpha
  28201. - # Linux and Compaq Tru64 Unix objects are PIC.
  28202. - lt_prog_compiler_pic_CXX=
  28203. - lt_prog_compiler_static_CXX='-non_shared'
  28204. - ;;
  28205. - *)
  28206. - ;;
  28207. - esac
  28208. - ;;
  28209. - psos*)
  28210. - ;;
  28211. - sco*)
  28212. - case $cc_basename in
  28213. - CC)
  28214. - lt_prog_compiler_pic_CXX='-fPIC'
  28215. - ;;
  28216. - *)
  28217. - ;;
  28218. - esac
  28219. - ;;
  28220. - solaris*)
  28221. - case $cc_basename in
  28222. - CC)
  28223. - # Sun C++ 4.2, 5.x and Centerline C++
  28224. - lt_prog_compiler_pic_CXX='-KPIC'
  28225. - lt_prog_compiler_static_CXX='-Bstatic'
  28226. - lt_prog_compiler_wl_CXX='-Qoption ld '
  28227. - ;;
  28228. - gcx)
  28229. - # Green Hills C++ Compiler
  28230. - lt_prog_compiler_pic_CXX='-PIC'
  28231. - ;;
  28232. - *)
  28233. - ;;
  28234. - esac
  28235. - ;;
  28236. - sunos4*)
  28237. - case $cc_basename in
  28238. - CC)
  28239. - # Sun C++ 4.x
  28240. - lt_prog_compiler_pic_CXX='-pic'
  28241. - lt_prog_compiler_static_CXX='-Bstatic'
  28242. - ;;
  28243. - lcc)
  28244. - # Lucid
  28245. - lt_prog_compiler_pic_CXX='-pic'
  28246. - ;;
  28247. - *)
  28248. - ;;
  28249. - esac
  28250. - ;;
  28251. - tandem*)
  28252. - case $cc_basename in
  28253. - NCC)
  28254. - # NonStop-UX NCC 3.20
  28255. - lt_prog_compiler_pic_CXX='-KPIC'
  28256. - ;;
  28257. - *)
  28258. - ;;
  28259. - esac
  28260. - ;;
  28261. - unixware*)
  28262. - ;;
  28263. - vxworks*)
  28264. - ;;
  28265. - *)
  28266. - lt_prog_compiler_can_build_shared_CXX=no
  28267. - ;;
  28268. - esac
  28269. - fi
  28270. -
  28271. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  28272. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  28273. -
  28274. -#
  28275. -# Check to make sure the PIC flag actually works.
  28276. -#
  28277. -if test -n "$lt_prog_compiler_pic_CXX"; then
  28278. -
  28279. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  28280. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  28281. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  28282. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28283. -else
  28284. - lt_prog_compiler_pic_works_CXX=no
  28285. - ac_outfile=conftest.$ac_objext
  28286. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28287. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  28288. - # Insert the option either (1) after the last *FLAGS variable, or
  28289. - # (2) before a word containing "conftest.", or (3) at the end.
  28290. - # Note that $ac_compile itself does not contain backslashes and begins
  28291. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28292. - # The option is referenced via a variable to avoid confusing sed.
  28293. - lt_compile=`echo "$ac_compile" | $SED \
  28294. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  28295. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28296. - -e 's:$: $lt_compiler_flag:'`
  28297. - (eval echo "\"\$as_me:11019: $lt_compile\"" >&5)
  28298. - (eval "$lt_compile" 2>conftest.err)
  28299. - ac_status=$?
  28300. - cat conftest.err >&5
  28301. - echo "$as_me:11023: \$? = $ac_status" >&5
  28302. - if (exit $ac_status) && test -s "$ac_outfile"; then
  28303. - # The compiler can only warn and ignore the option if not recognized
  28304. - # So say no if there are warnings
  28305. - if test ! -s conftest.err; then
  28306. - lt_prog_compiler_pic_works_CXX=yes
  28307. - fi
  28308. - fi
  28309. - $rm conftest*
  28310. -
  28311. -fi
  28312. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  28313. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  28314. -
  28315. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  28316. - case $lt_prog_compiler_pic_CXX in
  28317. - "" | " "*) ;;
  28318. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  28319. - esac
  28320. -else
  28321. - lt_prog_compiler_pic_CXX=
  28322. - lt_prog_compiler_can_build_shared_CXX=no
  28323. -fi
  28324. -
  28325. -fi
  28326. -case "$host_os" in
  28327. - # For platforms which do not support PIC, -DPIC is meaningless:
  28328. - *djgpp*)
  28329. - lt_prog_compiler_pic_CXX=
  28330. - ;;
  28331. - *)
  28332. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  28333. - ;;
  28334. -esac
  28335. -
  28336. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  28337. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  28338. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  28339. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28340. -else
  28341. - lt_cv_prog_compiler_c_o_CXX=no
  28342. - $rm -r conftest 2>/dev/null
  28343. - mkdir conftest
  28344. - cd conftest
  28345. - mkdir out
  28346. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28347. -
  28348. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  28349. - # Insert the option either (1) after the last *FLAGS variable, or
  28350. - # (2) before a word containing "conftest.", or (3) at the end.
  28351. - # Note that $ac_compile itself does not contain backslashes and begins
  28352. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  28353. - lt_compile=`echo "$ac_compile" | $SED \
  28354. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  28355. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  28356. - -e 's:$: $lt_compiler_flag:'`
  28357. - (eval echo "\"\$as_me:11079: $lt_compile\"" >&5)
  28358. - (eval "$lt_compile" 2>out/conftest.err)
  28359. - ac_status=$?
  28360. - cat out/conftest.err >&5
  28361. - echo "$as_me:11083: \$? = $ac_status" >&5
  28362. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  28363. - then
  28364. - # The compiler can only warn and ignore the option if not recognized
  28365. - # So say no if there are warnings
  28366. - if test ! -s out/conftest.err; then
  28367. - lt_cv_prog_compiler_c_o_CXX=yes
  28368. - fi
  28369. - fi
  28370. - chmod u+w .
  28371. - $rm conftest*
  28372. - # SGI C++ compiler will create directory out/ii_files/ for
  28373. - # template instantiation
  28374. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  28375. - $rm out/* && rmdir out
  28376. - cd ..
  28377. - rmdir conftest
  28378. - $rm conftest*
  28379. -
  28380. -fi
  28381. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  28382. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  28383. -
  28384. -
  28385. -hard_links="nottested"
  28386. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  28387. - # do not overwrite the value of need_locks provided by the user
  28388. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  28389. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  28390. - hard_links=yes
  28391. - $rm conftest*
  28392. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28393. - touch conftest.a
  28394. - ln conftest.a conftest.b 2>&5 || hard_links=no
  28395. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  28396. - echo "$as_me:$LINENO: result: $hard_links" >&5
  28397. -echo "${ECHO_T}$hard_links" >&6
  28398. - if test "$hard_links" = no; then
  28399. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  28400. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  28401. - need_locks=warn
  28402. - fi
  28403. -else
  28404. - need_locks=no
  28405. -fi
  28406. -
  28407. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  28408. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  28409. -
  28410. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28411. - case $host_os in
  28412. - aix4* | aix5*)
  28413. - # If we're using GNU nm, then we don't want the "-C" option.
  28414. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  28415. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  28416. - export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  28417. - else
  28418. - export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  28419. - fi
  28420. - ;;
  28421. - pw32*)
  28422. - export_symbols_cmds_CXX="$ltdll_cmds"
  28423. - ;;
  28424. - cygwin* | mingw*)
  28425. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  28426. - ;;
  28427. - linux*)
  28428. - link_all_deplibs_CXX=no
  28429. - ;;
  28430. - *)
  28431. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  28432. - ;;
  28433. - esac
  28434. -
  28435. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  28436. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  28437. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  28438. -
  28439. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  28440. -if test "$GCC" = yes; then
  28441. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  28442. -fi
  28443. -
  28444. -#
  28445. -# Do we need to explicitly link libc?
  28446. -#
  28447. -case "x$archive_cmds_need_lc_CXX" in
  28448. -x|xyes)
  28449. - # Assume -lc should be added
  28450. - archive_cmds_need_lc_CXX=yes
  28451. -
  28452. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  28453. - case $archive_cmds_CXX in
  28454. - *'~'*)
  28455. - # FIXME: we may have to deal with multi-command sequences.
  28456. - ;;
  28457. - '$CC '*)
  28458. - # Test whether the compiler implicitly links with -lc since on some
  28459. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  28460. - # to ld, don't add -lc before -lgcc.
  28461. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  28462. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  28463. - $rm conftest*
  28464. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  28465. -
  28466. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  28467. - (eval $ac_compile) 2>&5
  28468. - ac_status=$?
  28469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28470. - (exit $ac_status); } 2>conftest.err; then
  28471. - soname=conftest
  28472. - lib=conftest
  28473. - libobjs=conftest.$ac_objext
  28474. - deplibs=
  28475. - wl=$lt_prog_compiler_wl_CXX
  28476. - compiler_flags=-v
  28477. - linker_flags=-v
  28478. - verstring=
  28479. - output_objdir=.
  28480. - libname=conftest
  28481. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  28482. - allow_undefined_flag_CXX=
  28483. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  28484. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  28485. - ac_status=$?
  28486. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28487. - (exit $ac_status); }
  28488. - then
  28489. - archive_cmds_need_lc_CXX=no
  28490. - else
  28491. - archive_cmds_need_lc_CXX=yes
  28492. - fi
  28493. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  28494. - else
  28495. - cat conftest.err 1>&5
  28496. - fi
  28497. - $rm conftest*
  28498. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  28499. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  28500. - ;;
  28501. - esac
  28502. - fi
  28503. - ;;
  28504. -esac
  28505. -
  28506. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  28507. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  28508. -library_names_spec=
  28509. -libname_spec='lib$name'
  28510. -soname_spec=
  28511. -shrext_cmds=".so"
  28512. -postinstall_cmds=
  28513. -postuninstall_cmds=
  28514. -finish_cmds=
  28515. -finish_eval=
  28516. -shlibpath_var=
  28517. -shlibpath_overrides_runpath=unknown
  28518. -version_type=none
  28519. -dynamic_linker="$host_os ld.so"
  28520. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  28521. -if test "$GCC" = yes; then
  28522. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28523. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  28524. - # if the path contains ";" then we assume it to be the separator
  28525. - # otherwise default to the standard path separator (i.e. ":") - it is
  28526. - # assumed that no part of a normal pathname contains ";" but that should
  28527. - # okay in the real world where ";" in dirpaths is itself problematic.
  28528. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28529. - else
  28530. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28531. - fi
  28532. -else
  28533. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  28534. -fi
  28535. -need_lib_prefix=unknown
  28536. -hardcode_into_libs=no
  28537. -
  28538. -# when you set need_version to no, make sure it does not cause -set_version
  28539. -# flags to be left without arguments
  28540. -need_version=unknown
  28541. -
  28542. -case $host_os in
  28543. -aix3*)
  28544. - version_type=linux
  28545. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  28546. - shlibpath_var=LIBPATH
  28547. -
  28548. - # AIX 3 has no versioning support, so we append a major version to the name.
  28549. - soname_spec='${libname}${release}${shared_ext}$major'
  28550. - ;;
  28551. -
  28552. -aix4* | aix5*)
  28553. - version_type=linux
  28554. - need_lib_prefix=no
  28555. - need_version=no
  28556. - hardcode_into_libs=yes
  28557. - if test "$host_cpu" = ia64; then
  28558. - # AIX 5 supports IA64
  28559. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  28560. - shlibpath_var=LD_LIBRARY_PATH
  28561. - else
  28562. - # With GCC up to 2.95.x, collect2 would create an import file
  28563. - # for dependence libraries. The import file would start with
  28564. - # the line `#! .'. This would cause the generated library to
  28565. - # depend on `.', always an invalid library. This was fixed in
  28566. - # development snapshots of GCC prior to 3.0.
  28567. - case $host_os in
  28568. - aix4 | aix4.[01] | aix4.[01].*)
  28569. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  28570. - echo ' yes '
  28571. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  28572. - :
  28573. - else
  28574. - can_build_shared=no
  28575. - fi
  28576. - ;;
  28577. - esac
  28578. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  28579. - # soname into executable. Probably we can add versioning support to
  28580. - # collect2, so additional links can be useful in future.
  28581. - if test "$aix_use_runtimelinking" = yes; then
  28582. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  28583. - # instead of lib<name>.a to let people know that these are not
  28584. - # typical AIX shared libraries.
  28585. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28586. - else
  28587. - # We preserve .a as extension for shared libraries through AIX4.2
  28588. - # and later when we are not doing run time linking.
  28589. - library_names_spec='${libname}${release}.a $libname.a'
  28590. - soname_spec='${libname}${release}${shared_ext}$major'
  28591. - fi
  28592. - shlibpath_var=LIBPATH
  28593. - fi
  28594. - ;;
  28595. -
  28596. -amigaos*)
  28597. - library_names_spec='$libname.ixlibrary $libname.a'
  28598. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  28599. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  28600. - ;;
  28601. -
  28602. -beos*)
  28603. - library_names_spec='${libname}${shared_ext}'
  28604. - dynamic_linker="$host_os ld.so"
  28605. - shlibpath_var=LIBRARY_PATH
  28606. - ;;
  28607. -
  28608. -bsdi4*)
  28609. - version_type=linux
  28610. - need_version=no
  28611. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28612. - soname_spec='${libname}${release}${shared_ext}$major'
  28613. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  28614. - shlibpath_var=LD_LIBRARY_PATH
  28615. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  28616. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  28617. - # the default ld.so.conf also contains /usr/contrib/lib and
  28618. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  28619. - # libtool to hard-code these into programs
  28620. - ;;
  28621. -
  28622. -cygwin* | mingw* | pw32*)
  28623. - version_type=windows
  28624. - shrext_cmds=".dll"
  28625. - need_version=no
  28626. - need_lib_prefix=no
  28627. -
  28628. - case $GCC,$host_os in
  28629. - yes,cygwin* | yes,mingw* | yes,pw32*)
  28630. - library_names_spec='$libname.dll.a'
  28631. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  28632. - postinstall_cmds='base_file=`basename \${file}`~
  28633. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  28634. - dldir=$destdir/`dirname \$dlpath`~
  28635. - test -d \$dldir || mkdir -p \$dldir~
  28636. - $install_prog $dir/$dlname \$dldir/$dlname'
  28637. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  28638. - dlpath=$dir/\$dldll~
  28639. - $rm \$dlpath'
  28640. - shlibpath_overrides_runpath=yes
  28641. -
  28642. - case $host_os in
  28643. - cygwin*)
  28644. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  28645. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28646. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  28647. - ;;
  28648. - mingw*)
  28649. - # MinGW DLLs use traditional 'lib' prefix
  28650. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  28651. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  28652. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  28653. - # It is most probably a Windows format PATH printed by
  28654. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  28655. - # path with ; separators, and with drive letters. We can handle the
  28656. - # drive letters (cygwin fileutils understands them), so leave them,
  28657. - # especially as we might pass files found there to a mingw objdump,
  28658. - # which wouldn't understand a cygwinified path. Ahh.
  28659. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  28660. - else
  28661. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  28662. - fi
  28663. - ;;
  28664. - pw32*)
  28665. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  28666. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  28667. - ;;
  28668. - esac
  28669. - ;;
  28670. -
  28671. - *)
  28672. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  28673. - ;;
  28674. - esac
  28675. - dynamic_linker='Win32 ld.exe'
  28676. - # FIXME: first we should search . and the directory the executable is in
  28677. - shlibpath_var=PATH
  28678. - ;;
  28679. -
  28680. -darwin* | rhapsody*)
  28681. - dynamic_linker="$host_os dyld"
  28682. - version_type=darwin
  28683. - need_lib_prefix=no
  28684. - need_version=no
  28685. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  28686. - soname_spec='${libname}${release}${major}$shared_ext'
  28687. - shlibpath_overrides_runpath=yes
  28688. - shlibpath_var=DYLD_LIBRARY_PATH
  28689. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  28690. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  28691. - if test "$GCC" = yes; then
  28692. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  28693. - else
  28694. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  28695. - fi
  28696. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  28697. - ;;
  28698. -
  28699. -dgux*)
  28700. - version_type=linux
  28701. - need_lib_prefix=no
  28702. - need_version=no
  28703. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  28704. - soname_spec='${libname}${release}${shared_ext}$major'
  28705. - shlibpath_var=LD_LIBRARY_PATH
  28706. - ;;
  28707. -
  28708. -freebsd1*)
  28709. - dynamic_linker=no
  28710. - ;;
  28711. -
  28712. -kfreebsd*-gnu)
  28713. - version_type=linux
  28714. - need_lib_prefix=no
  28715. - need_version=no
  28716. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28717. - soname_spec='${libname}${release}${shared_ext}$major'
  28718. - shlibpath_var=LD_LIBRARY_PATH
  28719. - shlibpath_overrides_runpath=no
  28720. - hardcode_into_libs=yes
  28721. - dynamic_linker='GNU ld.so'
  28722. - ;;
  28723. -
  28724. -freebsd*)
  28725. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  28726. - version_type=freebsd-$objformat
  28727. - case $version_type in
  28728. - freebsd-elf*)
  28729. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  28730. - need_version=no
  28731. - need_lib_prefix=no
  28732. - ;;
  28733. - freebsd-*)
  28734. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  28735. - need_version=yes
  28736. - ;;
  28737. - esac
  28738. - shlibpath_var=LD_LIBRARY_PATH
  28739. - case $host_os in
  28740. - freebsd2*)
  28741. - shlibpath_overrides_runpath=yes
  28742. - ;;
  28743. - freebsd3.01* | freebsdelf3.01*)
  28744. - shlibpath_overrides_runpath=yes
  28745. - hardcode_into_libs=yes
  28746. - ;;
  28747. - *) # from 3.2 on
  28748. - shlibpath_overrides_runpath=no
  28749. - hardcode_into_libs=yes
  28750. - ;;
  28751. - esac
  28752. - ;;
  28753. -
  28754. -gnu*)
  28755. - version_type=linux
  28756. - need_lib_prefix=no
  28757. - need_version=no
  28758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  28759. - soname_spec='${libname}${release}${shared_ext}$major'
  28760. - shlibpath_var=LD_LIBRARY_PATH
  28761. - hardcode_into_libs=yes
  28762. - ;;
  28763. -
  28764. -hpux9* | hpux10* | hpux11*)
  28765. - # Give a soname corresponding to the major version so that dld.sl refuses to
  28766. - # link against other versions.
  28767. - version_type=sunos
  28768. - need_lib_prefix=no
  28769. - need_version=no
  28770. - case "$host_cpu" in
  28771. - ia64*)
  28772. - shrext_cmds='.so'
  28773. - hardcode_into_libs=yes
  28774. - dynamic_linker="$host_os dld.so"
  28775. - shlibpath_var=LD_LIBRARY_PATH
  28776. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28777. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28778. - soname_spec='${libname}${release}${shared_ext}$major'
  28779. - if test "X$HPUX_IA64_MODE" = X32; then
  28780. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  28781. - else
  28782. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  28783. - fi
  28784. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28785. - ;;
  28786. - hppa*64*)
  28787. - shrext_cmds='.sl'
  28788. - hardcode_into_libs=yes
  28789. - dynamic_linker="$host_os dld.sl"
  28790. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  28791. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  28792. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28793. - soname_spec='${libname}${release}${shared_ext}$major'
  28794. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  28795. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  28796. - ;;
  28797. - *)
  28798. - shrext_cmds='.sl'
  28799. - dynamic_linker="$host_os dld.sl"
  28800. - shlibpath_var=SHLIB_PATH
  28801. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  28802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28803. - soname_spec='${libname}${release}${shared_ext}$major'
  28804. - ;;
  28805. - esac
  28806. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  28807. - postinstall_cmds='chmod 555 $lib'
  28808. - ;;
  28809. -
  28810. -irix5* | irix6* | nonstopux*)
  28811. - case $host_os in
  28812. - nonstopux*) version_type=nonstopux ;;
  28813. - *)
  28814. - if test "$lt_cv_prog_gnu_ld" = yes; then
  28815. - version_type=linux
  28816. - else
  28817. - version_type=irix
  28818. - fi ;;
  28819. - esac
  28820. - need_lib_prefix=no
  28821. - need_version=no
  28822. - soname_spec='${libname}${release}${shared_ext}$major'
  28823. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  28824. - case $host_os in
  28825. - irix5* | nonstopux*)
  28826. - libsuff= shlibsuff=
  28827. - ;;
  28828. - *)
  28829. - case $LD in # libtool.m4 will add one of these switches to LD
  28830. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  28831. - libsuff= shlibsuff= libmagic=32-bit;;
  28832. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  28833. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  28834. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  28835. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  28836. - *) libsuff= shlibsuff= libmagic=never-match;;
  28837. - esac
  28838. - ;;
  28839. - esac
  28840. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  28841. - shlibpath_overrides_runpath=no
  28842. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  28843. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  28844. - hardcode_into_libs=yes
  28845. - ;;
  28846. -
  28847. -# No shared lib support for Linux oldld, aout, or coff.
  28848. -linux*oldld* | linux*aout* | linux*coff*)
  28849. - dynamic_linker=no
  28850. - ;;
  28851. -
  28852. -# This must be Linux ELF.
  28853. -linux*)
  28854. - version_type=linux
  28855. - need_lib_prefix=no
  28856. - need_version=no
  28857. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28858. - soname_spec='${libname}${release}${shared_ext}$major'
  28859. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  28860. - shlibpath_var=LD_LIBRARY_PATH
  28861. - shlibpath_overrides_runpath=no
  28862. - # This implies no fast_install, which is unacceptable.
  28863. - # Some rework will be needed to allow for fast_install
  28864. - # before this can be enabled.
  28865. - hardcode_into_libs=yes
  28866. -
  28867. - # Append ld.so.conf contents to the search path
  28868. - if test -f /etc/ld.so.conf; then
  28869. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  28870. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  28871. - fi
  28872. -
  28873. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  28874. - # powerpc, because MkLinux only supported shared libraries with the
  28875. - # GNU dynamic linker. Since this was broken with cross compilers,
  28876. - # most powerpc-linux boxes support dynamic linking these days and
  28877. - # people can always --disable-shared, the test was removed, and we
  28878. - # assume the GNU/Linux dynamic linker is in use.
  28879. - dynamic_linker='GNU/Linux ld.so'
  28880. - ;;
  28881. -
  28882. -netbsdelf*-gnu)
  28883. - version_type=linux
  28884. - need_lib_prefix=no
  28885. - need_version=no
  28886. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28887. - soname_spec='${libname}${release}${shared_ext}$major'
  28888. - shlibpath_var=LD_LIBRARY_PATH
  28889. - shlibpath_overrides_runpath=no
  28890. - hardcode_into_libs=yes
  28891. - dynamic_linker='NetBSD ld.elf_so'
  28892. - ;;
  28893. -
  28894. -knetbsd*-gnu)
  28895. - version_type=linux
  28896. - need_lib_prefix=no
  28897. - need_version=no
  28898. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28899. - soname_spec='${libname}${release}${shared_ext}$major'
  28900. - shlibpath_var=LD_LIBRARY_PATH
  28901. - shlibpath_overrides_runpath=no
  28902. - hardcode_into_libs=yes
  28903. - dynamic_linker='GNU ld.so'
  28904. - ;;
  28905. -
  28906. -netbsd*)
  28907. - version_type=sunos
  28908. - need_lib_prefix=no
  28909. - need_version=no
  28910. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  28911. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28912. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28913. - dynamic_linker='NetBSD (a.out) ld.so'
  28914. - else
  28915. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  28916. - soname_spec='${libname}${release}${shared_ext}$major'
  28917. - dynamic_linker='NetBSD ld.elf_so'
  28918. - fi
  28919. - shlibpath_var=LD_LIBRARY_PATH
  28920. - shlibpath_overrides_runpath=yes
  28921. - hardcode_into_libs=yes
  28922. - ;;
  28923. -
  28924. -newsos6)
  28925. - version_type=linux
  28926. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28927. - shlibpath_var=LD_LIBRARY_PATH
  28928. - shlibpath_overrides_runpath=yes
  28929. - ;;
  28930. -
  28931. -nto-qnx*)
  28932. - version_type=linux
  28933. - need_lib_prefix=no
  28934. - need_version=no
  28935. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28936. - soname_spec='${libname}${release}${shared_ext}$major'
  28937. - shlibpath_var=LD_LIBRARY_PATH
  28938. - shlibpath_overrides_runpath=yes
  28939. - ;;
  28940. -
  28941. -openbsd*)
  28942. - version_type=sunos
  28943. - need_lib_prefix=no
  28944. - need_version=yes
  28945. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  28946. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  28947. - shlibpath_var=LD_LIBRARY_PATH
  28948. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  28949. - case $host_os in
  28950. - openbsd2.[89] | openbsd2.[89].*)
  28951. - shlibpath_overrides_runpath=no
  28952. - ;;
  28953. - *)
  28954. - shlibpath_overrides_runpath=yes
  28955. - ;;
  28956. - esac
  28957. - else
  28958. - shlibpath_overrides_runpath=yes
  28959. - fi
  28960. - ;;
  28961. -
  28962. -os2*)
  28963. - libname_spec='$name'
  28964. - shrext_cmds=".dll"
  28965. - need_lib_prefix=no
  28966. - library_names_spec='$libname${shared_ext} $libname.a'
  28967. - dynamic_linker='OS/2 ld.exe'
  28968. - shlibpath_var=LIBPATH
  28969. - ;;
  28970. -
  28971. -osf3* | osf4* | osf5*)
  28972. - version_type=osf
  28973. - need_lib_prefix=no
  28974. - need_version=no
  28975. - soname_spec='${libname}${release}${shared_ext}$major'
  28976. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28977. - shlibpath_var=LD_LIBRARY_PATH
  28978. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  28979. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  28980. - ;;
  28981. -
  28982. -sco3.2v5*)
  28983. - version_type=osf
  28984. - soname_spec='${libname}${release}${shared_ext}$major'
  28985. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28986. - shlibpath_var=LD_LIBRARY_PATH
  28987. - ;;
  28988. -
  28989. -solaris*)
  28990. - version_type=linux
  28991. - need_lib_prefix=no
  28992. - need_version=no
  28993. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  28994. - soname_spec='${libname}${release}${shared_ext}$major'
  28995. - shlibpath_var=LD_LIBRARY_PATH
  28996. - shlibpath_overrides_runpath=yes
  28997. - hardcode_into_libs=yes
  28998. - # ldd complains unless libraries are executable
  28999. - postinstall_cmds='chmod +x $lib'
  29000. - ;;
  29001. -
  29002. -sunos4*)
  29003. - version_type=sunos
  29004. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  29005. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  29006. - shlibpath_var=LD_LIBRARY_PATH
  29007. - shlibpath_overrides_runpath=yes
  29008. - if test "$with_gnu_ld" = yes; then
  29009. - need_lib_prefix=no
  29010. - fi
  29011. - need_version=yes
  29012. - ;;
  29013. -
  29014. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  29015. - version_type=linux
  29016. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29017. - soname_spec='${libname}${release}${shared_ext}$major'
  29018. - shlibpath_var=LD_LIBRARY_PATH
  29019. - case $host_vendor in
  29020. - sni)
  29021. - shlibpath_overrides_runpath=no
  29022. - need_lib_prefix=no
  29023. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  29024. - runpath_var=LD_RUN_PATH
  29025. - ;;
  29026. - siemens)
  29027. - need_lib_prefix=no
  29028. - ;;
  29029. - motorola)
  29030. - need_lib_prefix=no
  29031. - need_version=no
  29032. - shlibpath_overrides_runpath=no
  29033. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  29034. - ;;
  29035. - esac
  29036. - ;;
  29037. -
  29038. -sysv4*MP*)
  29039. - if test -d /usr/nec ;then
  29040. - version_type=linux
  29041. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  29042. - soname_spec='$libname${shared_ext}.$major'
  29043. - shlibpath_var=LD_LIBRARY_PATH
  29044. - fi
  29045. - ;;
  29046. -
  29047. -uts4*)
  29048. - version_type=linux
  29049. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  29050. - soname_spec='${libname}${release}${shared_ext}$major'
  29051. - shlibpath_var=LD_LIBRARY_PATH
  29052. - ;;
  29053. -
  29054. -*)
  29055. - dynamic_linker=no
  29056. - ;;
  29057. -esac
  29058. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  29059. -echo "${ECHO_T}$dynamic_linker" >&6
  29060. -test "$dynamic_linker" = no && can_build_shared=no
  29061. -
  29062. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  29063. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  29064. -hardcode_action_CXX=
  29065. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  29066. - test -n "$runpath_var CXX" || \
  29067. - test "X$hardcode_automatic_CXX"="Xyes" ; then
  29068. -
  29069. - # We can hardcode non-existant directories.
  29070. - if test "$hardcode_direct_CXX" != no &&
  29071. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  29072. - # have to relink, otherwise we might link with an installed library
  29073. - # when we should be linking with a yet-to-be-installed one
  29074. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  29075. - test "$hardcode_minus_L_CXX" != no; then
  29076. - # Linking always hardcodes the temporary library directory.
  29077. - hardcode_action_CXX=relink
  29078. - else
  29079. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  29080. - hardcode_action_CXX=immediate
  29081. - fi
  29082. -else
  29083. - # We cannot hardcode anything, or else we can only hardcode existing
  29084. - # directories.
  29085. - hardcode_action_CXX=unsupported
  29086. -fi
  29087. -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  29088. -echo "${ECHO_T}$hardcode_action_CXX" >&6
  29089. -
  29090. -if test "$hardcode_action_CXX" = relink; then
  29091. - # Fast installation is not supported
  29092. - enable_fast_install=no
  29093. -elif test "$shlibpath_overrides_runpath" = yes ||
  29094. - test "$enable_shared" = no; then
  29095. - # Fast installation is not necessary
  29096. - enable_fast_install=needless
  29097. -fi
  29098. -
  29099. -striplib=
  29100. -old_striplib=
  29101. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  29102. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  29103. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  29104. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  29105. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  29106. - echo "$as_me:$LINENO: result: yes" >&5
  29107. -echo "${ECHO_T}yes" >&6
  29108. -else
  29109. -# FIXME - insert some real tests, host_os isn't really good enough
  29110. - case $host_os in
  29111. - darwin*)
  29112. - if test -n "$STRIP" ; then
  29113. - striplib="$STRIP -x"
  29114. - echo "$as_me:$LINENO: result: yes" >&5
  29115. -echo "${ECHO_T}yes" >&6
  29116. - else
  29117. - echo "$as_me:$LINENO: result: no" >&5
  29118. -echo "${ECHO_T}no" >&6
  29119. -fi
  29120. - ;;
  29121. - *)
  29122. - echo "$as_me:$LINENO: result: no" >&5
  29123. -echo "${ECHO_T}no" >&6
  29124. - ;;
  29125. - esac
  29126. -fi
  29127. -
  29128. -if test "x$enable_dlopen" != xyes; then
  29129. - enable_dlopen=unknown
  29130. - enable_dlopen_self=unknown
  29131. - enable_dlopen_self_static=unknown
  29132. -else
  29133. - lt_cv_dlopen=no
  29134. - lt_cv_dlopen_libs=
  29135. -
  29136. - case $host_os in
  29137. - beos*)
  29138. - lt_cv_dlopen="load_add_on"
  29139. - lt_cv_dlopen_libs=
  29140. - lt_cv_dlopen_self=yes
  29141. - ;;
  29142. -
  29143. - mingw* | pw32*)
  29144. - lt_cv_dlopen="LoadLibrary"
  29145. - lt_cv_dlopen_libs=
  29146. - ;;
  29147. -
  29148. - cygwin*)
  29149. - lt_cv_dlopen="dlopen"
  29150. - lt_cv_dlopen_libs=
  29151. - ;;
  29152. -
  29153. - darwin*)
  29154. - # if libdl is installed we need to link against it
  29155. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29156. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  29157. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29158. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29159. -else
  29160. - ac_check_lib_save_LIBS=$LIBS
  29161. -LIBS="-ldl $LIBS"
  29162. -cat >conftest.$ac_ext <<_ACEOF
  29163. -/* confdefs.h. */
  29164. -_ACEOF
  29165. -cat confdefs.h >>conftest.$ac_ext
  29166. -cat >>conftest.$ac_ext <<_ACEOF
  29167. -/* end confdefs.h. */
  29168. -
  29169. -/* Override any gcc2 internal prototype to avoid an error. */
  29170. -#ifdef __cplusplus
  29171. -extern "C"
  29172. -#endif
  29173. -/* We use char because int might match the return type of a gcc2
  29174. - builtin and then its argument prototype would still apply. */
  29175. -char dlopen ();
  29176. -int
  29177. -main ()
  29178. -{
  29179. -dlopen ();
  29180. - ;
  29181. - return 0;
  29182. -}
  29183. -_ACEOF
  29184. -rm -f conftest.$ac_objext conftest$ac_exeext
  29185. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29186. - (eval $ac_link) 2>conftest.er1
  29187. - ac_status=$?
  29188. - grep -v '^ *+' conftest.er1 >conftest.err
  29189. - rm -f conftest.er1
  29190. - cat conftest.err >&5
  29191. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29192. - (exit $ac_status); } &&
  29193. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29194. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29195. - (eval $ac_try) 2>&5
  29196. - ac_status=$?
  29197. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29198. - (exit $ac_status); }; } &&
  29199. - { ac_try='test -s conftest$ac_exeext'
  29200. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29201. - (eval $ac_try) 2>&5
  29202. - ac_status=$?
  29203. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29204. - (exit $ac_status); }; }; then
  29205. - ac_cv_lib_dl_dlopen=yes
  29206. -else
  29207. - echo "$as_me: failed program was:" >&5
  29208. -sed 's/^/| /' conftest.$ac_ext >&5
  29209. -
  29210. -ac_cv_lib_dl_dlopen=no
  29211. -fi
  29212. -rm -f conftest.err conftest.$ac_objext \
  29213. - conftest$ac_exeext conftest.$ac_ext
  29214. -LIBS=$ac_check_lib_save_LIBS
  29215. -fi
  29216. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29217. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  29218. -if test $ac_cv_lib_dl_dlopen = yes; then
  29219. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29220. -else
  29221. -
  29222. - lt_cv_dlopen="dyld"
  29223. - lt_cv_dlopen_libs=
  29224. - lt_cv_dlopen_self=yes
  29225. -
  29226. -fi
  29227. -
  29228. - ;;
  29229. -
  29230. - *)
  29231. - echo "$as_me:$LINENO: checking for shl_load" >&5
  29232. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  29233. -if test "${ac_cv_func_shl_load+set}" = set; then
  29234. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29235. -else
  29236. - cat >conftest.$ac_ext <<_ACEOF
  29237. -/* confdefs.h. */
  29238. -_ACEOF
  29239. -cat confdefs.h >>conftest.$ac_ext
  29240. -cat >>conftest.$ac_ext <<_ACEOF
  29241. -/* end confdefs.h. */
  29242. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  29243. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29244. -#define shl_load innocuous_shl_load
  29245. -
  29246. -/* System header to define __stub macros and hopefully few prototypes,
  29247. - which can conflict with char shl_load (); below.
  29248. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29249. - <limits.h> exists even on freestanding compilers. */
  29250. -
  29251. -#ifdef __STDC__
  29252. -# include <limits.h>
  29253. -#else
  29254. -# include <assert.h>
  29255. -#endif
  29256. -
  29257. -#undef shl_load
  29258. -
  29259. -/* Override any gcc2 internal prototype to avoid an error. */
  29260. -#ifdef __cplusplus
  29261. -extern "C"
  29262. -{
  29263. -#endif
  29264. -/* We use char because int might match the return type of a gcc2
  29265. - builtin and then its argument prototype would still apply. */
  29266. -char shl_load ();
  29267. -/* The GNU C library defines this for functions which it implements
  29268. - to always fail with ENOSYS. Some functions are actually named
  29269. - something starting with __ and the normal name is an alias. */
  29270. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  29271. -choke me
  29272. -#else
  29273. -char (*f) () = shl_load;
  29274. -#endif
  29275. -#ifdef __cplusplus
  29276. -}
  29277. -#endif
  29278. -
  29279. -int
  29280. -main ()
  29281. -{
  29282. -return f != shl_load;
  29283. - ;
  29284. - return 0;
  29285. -}
  29286. -_ACEOF
  29287. -rm -f conftest.$ac_objext conftest$ac_exeext
  29288. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29289. - (eval $ac_link) 2>conftest.er1
  29290. - ac_status=$?
  29291. - grep -v '^ *+' conftest.er1 >conftest.err
  29292. - rm -f conftest.er1
  29293. - cat conftest.err >&5
  29294. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29295. - (exit $ac_status); } &&
  29296. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29297. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29298. - (eval $ac_try) 2>&5
  29299. - ac_status=$?
  29300. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29301. - (exit $ac_status); }; } &&
  29302. - { ac_try='test -s conftest$ac_exeext'
  29303. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29304. - (eval $ac_try) 2>&5
  29305. - ac_status=$?
  29306. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29307. - (exit $ac_status); }; }; then
  29308. - ac_cv_func_shl_load=yes
  29309. -else
  29310. - echo "$as_me: failed program was:" >&5
  29311. -sed 's/^/| /' conftest.$ac_ext >&5
  29312. -
  29313. -ac_cv_func_shl_load=no
  29314. -fi
  29315. -rm -f conftest.err conftest.$ac_objext \
  29316. - conftest$ac_exeext conftest.$ac_ext
  29317. -fi
  29318. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  29319. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  29320. -if test $ac_cv_func_shl_load = yes; then
  29321. - lt_cv_dlopen="shl_load"
  29322. -else
  29323. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  29324. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  29325. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  29326. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29327. -else
  29328. - ac_check_lib_save_LIBS=$LIBS
  29329. -LIBS="-ldld $LIBS"
  29330. -cat >conftest.$ac_ext <<_ACEOF
  29331. -/* confdefs.h. */
  29332. -_ACEOF
  29333. -cat confdefs.h >>conftest.$ac_ext
  29334. -cat >>conftest.$ac_ext <<_ACEOF
  29335. -/* end confdefs.h. */
  29336. -
  29337. -/* Override any gcc2 internal prototype to avoid an error. */
  29338. -#ifdef __cplusplus
  29339. -extern "C"
  29340. -#endif
  29341. -/* We use char because int might match the return type of a gcc2
  29342. - builtin and then its argument prototype would still apply. */
  29343. -char shl_load ();
  29344. -int
  29345. -main ()
  29346. -{
  29347. -shl_load ();
  29348. - ;
  29349. - return 0;
  29350. -}
  29351. -_ACEOF
  29352. -rm -f conftest.$ac_objext conftest$ac_exeext
  29353. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29354. - (eval $ac_link) 2>conftest.er1
  29355. - ac_status=$?
  29356. - grep -v '^ *+' conftest.er1 >conftest.err
  29357. - rm -f conftest.er1
  29358. - cat conftest.err >&5
  29359. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29360. - (exit $ac_status); } &&
  29361. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29362. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29363. - (eval $ac_try) 2>&5
  29364. - ac_status=$?
  29365. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29366. - (exit $ac_status); }; } &&
  29367. - { ac_try='test -s conftest$ac_exeext'
  29368. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29369. - (eval $ac_try) 2>&5
  29370. - ac_status=$?
  29371. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29372. - (exit $ac_status); }; }; then
  29373. - ac_cv_lib_dld_shl_load=yes
  29374. -else
  29375. - echo "$as_me: failed program was:" >&5
  29376. -sed 's/^/| /' conftest.$ac_ext >&5
  29377. -
  29378. -ac_cv_lib_dld_shl_load=no
  29379. -fi
  29380. -rm -f conftest.err conftest.$ac_objext \
  29381. - conftest$ac_exeext conftest.$ac_ext
  29382. -LIBS=$ac_check_lib_save_LIBS
  29383. -fi
  29384. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  29385. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  29386. -if test $ac_cv_lib_dld_shl_load = yes; then
  29387. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  29388. -else
  29389. - echo "$as_me:$LINENO: checking for dlopen" >&5
  29390. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  29391. -if test "${ac_cv_func_dlopen+set}" = set; then
  29392. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29393. -else
  29394. - cat >conftest.$ac_ext <<_ACEOF
  29395. -/* confdefs.h. */
  29396. -_ACEOF
  29397. -cat confdefs.h >>conftest.$ac_ext
  29398. -cat >>conftest.$ac_ext <<_ACEOF
  29399. -/* end confdefs.h. */
  29400. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  29401. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  29402. -#define dlopen innocuous_dlopen
  29403. -
  29404. -/* System header to define __stub macros and hopefully few prototypes,
  29405. - which can conflict with char dlopen (); below.
  29406. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  29407. - <limits.h> exists even on freestanding compilers. */
  29408. -
  29409. -#ifdef __STDC__
  29410. -# include <limits.h>
  29411. -#else
  29412. -# include <assert.h>
  29413. -#endif
  29414. -
  29415. -#undef dlopen
  29416. -
  29417. -/* Override any gcc2 internal prototype to avoid an error. */
  29418. -#ifdef __cplusplus
  29419. -extern "C"
  29420. -{
  29421. -#endif
  29422. -/* We use char because int might match the return type of a gcc2
  29423. - builtin and then its argument prototype would still apply. */
  29424. -char dlopen ();
  29425. -/* The GNU C library defines this for functions which it implements
  29426. - to always fail with ENOSYS. Some functions are actually named
  29427. - something starting with __ and the normal name is an alias. */
  29428. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  29429. -choke me
  29430. -#else
  29431. -char (*f) () = dlopen;
  29432. -#endif
  29433. -#ifdef __cplusplus
  29434. -}
  29435. -#endif
  29436. -
  29437. -int
  29438. -main ()
  29439. -{
  29440. -return f != dlopen;
  29441. - ;
  29442. - return 0;
  29443. -}
  29444. -_ACEOF
  29445. -rm -f conftest.$ac_objext conftest$ac_exeext
  29446. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29447. - (eval $ac_link) 2>conftest.er1
  29448. - ac_status=$?
  29449. - grep -v '^ *+' conftest.er1 >conftest.err
  29450. - rm -f conftest.er1
  29451. - cat conftest.err >&5
  29452. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29453. - (exit $ac_status); } &&
  29454. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29455. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29456. - (eval $ac_try) 2>&5
  29457. - ac_status=$?
  29458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29459. - (exit $ac_status); }; } &&
  29460. - { ac_try='test -s conftest$ac_exeext'
  29461. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29462. - (eval $ac_try) 2>&5
  29463. - ac_status=$?
  29464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29465. - (exit $ac_status); }; }; then
  29466. - ac_cv_func_dlopen=yes
  29467. -else
  29468. - echo "$as_me: failed program was:" >&5
  29469. -sed 's/^/| /' conftest.$ac_ext >&5
  29470. -
  29471. -ac_cv_func_dlopen=no
  29472. -fi
  29473. -rm -f conftest.err conftest.$ac_objext \
  29474. - conftest$ac_exeext conftest.$ac_ext
  29475. -fi
  29476. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  29477. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  29478. -if test $ac_cv_func_dlopen = yes; then
  29479. - lt_cv_dlopen="dlopen"
  29480. -else
  29481. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  29482. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  29483. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  29484. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29485. -else
  29486. - ac_check_lib_save_LIBS=$LIBS
  29487. -LIBS="-ldl $LIBS"
  29488. -cat >conftest.$ac_ext <<_ACEOF
  29489. -/* confdefs.h. */
  29490. -_ACEOF
  29491. -cat confdefs.h >>conftest.$ac_ext
  29492. -cat >>conftest.$ac_ext <<_ACEOF
  29493. -/* end confdefs.h. */
  29494. -
  29495. -/* Override any gcc2 internal prototype to avoid an error. */
  29496. -#ifdef __cplusplus
  29497. -extern "C"
  29498. -#endif
  29499. -/* We use char because int might match the return type of a gcc2
  29500. - builtin and then its argument prototype would still apply. */
  29501. -char dlopen ();
  29502. -int
  29503. -main ()
  29504. -{
  29505. -dlopen ();
  29506. - ;
  29507. - return 0;
  29508. -}
  29509. -_ACEOF
  29510. -rm -f conftest.$ac_objext conftest$ac_exeext
  29511. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29512. - (eval $ac_link) 2>conftest.er1
  29513. - ac_status=$?
  29514. - grep -v '^ *+' conftest.er1 >conftest.err
  29515. - rm -f conftest.er1
  29516. - cat conftest.err >&5
  29517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29518. - (exit $ac_status); } &&
  29519. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29520. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29521. - (eval $ac_try) 2>&5
  29522. - ac_status=$?
  29523. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29524. - (exit $ac_status); }; } &&
  29525. - { ac_try='test -s conftest$ac_exeext'
  29526. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29527. - (eval $ac_try) 2>&5
  29528. - ac_status=$?
  29529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29530. - (exit $ac_status); }; }; then
  29531. - ac_cv_lib_dl_dlopen=yes
  29532. -else
  29533. - echo "$as_me: failed program was:" >&5
  29534. -sed 's/^/| /' conftest.$ac_ext >&5
  29535. -
  29536. -ac_cv_lib_dl_dlopen=no
  29537. -fi
  29538. -rm -f conftest.err conftest.$ac_objext \
  29539. - conftest$ac_exeext conftest.$ac_ext
  29540. -LIBS=$ac_check_lib_save_LIBS
  29541. -fi
  29542. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  29543. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  29544. -if test $ac_cv_lib_dl_dlopen = yes; then
  29545. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  29546. -else
  29547. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  29548. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  29549. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  29550. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29551. -else
  29552. - ac_check_lib_save_LIBS=$LIBS
  29553. -LIBS="-lsvld $LIBS"
  29554. -cat >conftest.$ac_ext <<_ACEOF
  29555. -/* confdefs.h. */
  29556. -_ACEOF
  29557. -cat confdefs.h >>conftest.$ac_ext
  29558. -cat >>conftest.$ac_ext <<_ACEOF
  29559. -/* end confdefs.h. */
  29560. -
  29561. -/* Override any gcc2 internal prototype to avoid an error. */
  29562. -#ifdef __cplusplus
  29563. -extern "C"
  29564. -#endif
  29565. -/* We use char because int might match the return type of a gcc2
  29566. - builtin and then its argument prototype would still apply. */
  29567. -char dlopen ();
  29568. -int
  29569. -main ()
  29570. -{
  29571. -dlopen ();
  29572. - ;
  29573. - return 0;
  29574. -}
  29575. -_ACEOF
  29576. -rm -f conftest.$ac_objext conftest$ac_exeext
  29577. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29578. - (eval $ac_link) 2>conftest.er1
  29579. - ac_status=$?
  29580. - grep -v '^ *+' conftest.er1 >conftest.err
  29581. - rm -f conftest.er1
  29582. - cat conftest.err >&5
  29583. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29584. - (exit $ac_status); } &&
  29585. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29586. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29587. - (eval $ac_try) 2>&5
  29588. - ac_status=$?
  29589. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29590. - (exit $ac_status); }; } &&
  29591. - { ac_try='test -s conftest$ac_exeext'
  29592. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29593. - (eval $ac_try) 2>&5
  29594. - ac_status=$?
  29595. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29596. - (exit $ac_status); }; }; then
  29597. - ac_cv_lib_svld_dlopen=yes
  29598. -else
  29599. - echo "$as_me: failed program was:" >&5
  29600. -sed 's/^/| /' conftest.$ac_ext >&5
  29601. -
  29602. -ac_cv_lib_svld_dlopen=no
  29603. -fi
  29604. -rm -f conftest.err conftest.$ac_objext \
  29605. - conftest$ac_exeext conftest.$ac_ext
  29606. -LIBS=$ac_check_lib_save_LIBS
  29607. -fi
  29608. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  29609. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  29610. -if test $ac_cv_lib_svld_dlopen = yes; then
  29611. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  29612. -else
  29613. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  29614. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  29615. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  29616. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29617. -else
  29618. - ac_check_lib_save_LIBS=$LIBS
  29619. -LIBS="-ldld $LIBS"
  29620. -cat >conftest.$ac_ext <<_ACEOF
  29621. -/* confdefs.h. */
  29622. -_ACEOF
  29623. -cat confdefs.h >>conftest.$ac_ext
  29624. -cat >>conftest.$ac_ext <<_ACEOF
  29625. -/* end confdefs.h. */
  29626. -
  29627. -/* Override any gcc2 internal prototype to avoid an error. */
  29628. -#ifdef __cplusplus
  29629. -extern "C"
  29630. -#endif
  29631. -/* We use char because int might match the return type of a gcc2
  29632. - builtin and then its argument prototype would still apply. */
  29633. -char dld_link ();
  29634. -int
  29635. -main ()
  29636. -{
  29637. -dld_link ();
  29638. - ;
  29639. - return 0;
  29640. -}
  29641. -_ACEOF
  29642. -rm -f conftest.$ac_objext conftest$ac_exeext
  29643. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29644. - (eval $ac_link) 2>conftest.er1
  29645. - ac_status=$?
  29646. - grep -v '^ *+' conftest.er1 >conftest.err
  29647. - rm -f conftest.er1
  29648. - cat conftest.err >&5
  29649. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29650. - (exit $ac_status); } &&
  29651. - { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  29652. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29653. - (eval $ac_try) 2>&5
  29654. - ac_status=$?
  29655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29656. - (exit $ac_status); }; } &&
  29657. - { ac_try='test -s conftest$ac_exeext'
  29658. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29659. - (eval $ac_try) 2>&5
  29660. - ac_status=$?
  29661. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29662. - (exit $ac_status); }; }; then
  29663. - ac_cv_lib_dld_dld_link=yes
  29664. -else
  29665. - echo "$as_me: failed program was:" >&5
  29666. -sed 's/^/| /' conftest.$ac_ext >&5
  29667. -
  29668. -ac_cv_lib_dld_dld_link=no
  29669. -fi
  29670. -rm -f conftest.err conftest.$ac_objext \
  29671. - conftest$ac_exeext conftest.$ac_ext
  29672. -LIBS=$ac_check_lib_save_LIBS
  29673. -fi
  29674. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  29675. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  29676. -if test $ac_cv_lib_dld_dld_link = yes; then
  29677. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  29678. -fi
  29679. -
  29680. -
  29681. -fi
  29682. -
  29683. -
  29684. -fi
  29685. -
  29686. -
  29687. -fi
  29688. -
  29689. -
  29690. -fi
  29691. -
  29692. -
  29693. -fi
  29694. -
  29695. - ;;
  29696. - esac
  29697. -
  29698. - if test "x$lt_cv_dlopen" != xno; then
  29699. - enable_dlopen=yes
  29700. - else
  29701. - enable_dlopen=no
  29702. - fi
  29703. -
  29704. - case $lt_cv_dlopen in
  29705. - dlopen)
  29706. - save_CPPFLAGS="$CPPFLAGS"
  29707. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  29708. -
  29709. - save_LDFLAGS="$LDFLAGS"
  29710. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  29711. -
  29712. - save_LIBS="$LIBS"
  29713. - LIBS="$lt_cv_dlopen_libs $LIBS"
  29714. -
  29715. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  29716. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  29717. -if test "${lt_cv_dlopen_self+set}" = set; then
  29718. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29719. -else
  29720. - if test "$cross_compiling" = yes; then :
  29721. - lt_cv_dlopen_self=cross
  29722. -else
  29723. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29724. - lt_status=$lt_dlunknown
  29725. - cat > conftest.$ac_ext <<EOF
  29726. -#line 12448 "configure"
  29727. -#include "confdefs.h"
  29728. -
  29729. -#if HAVE_DLFCN_H
  29730. -#include <dlfcn.h>
  29731. -#endif
  29732. -
  29733. -#include <stdio.h>
  29734. -
  29735. -#ifdef RTLD_GLOBAL
  29736. -# define LT_DLGLOBAL RTLD_GLOBAL
  29737. -#else
  29738. -# ifdef DL_GLOBAL
  29739. -# define LT_DLGLOBAL DL_GLOBAL
  29740. -# else
  29741. -# define LT_DLGLOBAL 0
  29742. -# endif
  29743. -#endif
  29744. -
  29745. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29746. - find out it does not work in some platform. */
  29747. -#ifndef LT_DLLAZY_OR_NOW
  29748. -# ifdef RTLD_LAZY
  29749. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29750. -# else
  29751. -# ifdef DL_LAZY
  29752. -# define LT_DLLAZY_OR_NOW DL_LAZY
  29753. -# else
  29754. -# ifdef RTLD_NOW
  29755. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  29756. -# else
  29757. -# ifdef DL_NOW
  29758. -# define LT_DLLAZY_OR_NOW DL_NOW
  29759. -# else
  29760. -# define LT_DLLAZY_OR_NOW 0
  29761. -# endif
  29762. -# endif
  29763. -# endif
  29764. -# endif
  29765. -#endif
  29766. -
  29767. -#ifdef __cplusplus
  29768. -extern "C" void exit (int);
  29769. -#endif
  29770. -
  29771. -void fnord() { int i=42;}
  29772. -int main ()
  29773. -{
  29774. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29775. - int status = $lt_dlunknown;
  29776. -
  29777. - if (self)
  29778. - {
  29779. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29780. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29781. - /* dlclose (self); */
  29782. - }
  29783. -
  29784. - exit (status);
  29785. -}
  29786. -EOF
  29787. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29788. - (eval $ac_link) 2>&5
  29789. - ac_status=$?
  29790. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29791. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  29792. - (./conftest; exit; ) 2>/dev/null
  29793. - lt_status=$?
  29794. - case x$lt_status in
  29795. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  29796. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  29797. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  29798. - esac
  29799. - else :
  29800. - # compilation failed
  29801. - lt_cv_dlopen_self=no
  29802. - fi
  29803. -fi
  29804. -rm -fr conftest*
  29805. -
  29806. -
  29807. -fi
  29808. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  29809. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  29810. -
  29811. - if test "x$lt_cv_dlopen_self" = xyes; then
  29812. - LDFLAGS="$LDFLAGS $link_static_flag"
  29813. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  29814. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  29815. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  29816. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29817. -else
  29818. - if test "$cross_compiling" = yes; then :
  29819. - lt_cv_dlopen_self_static=cross
  29820. -else
  29821. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  29822. - lt_status=$lt_dlunknown
  29823. - cat > conftest.$ac_ext <<EOF
  29824. -#line 12546 "configure"
  29825. -#include "confdefs.h"
  29826. -
  29827. -#if HAVE_DLFCN_H
  29828. -#include <dlfcn.h>
  29829. -#endif
  29830. -
  29831. -#include <stdio.h>
  29832. -
  29833. -#ifdef RTLD_GLOBAL
  29834. -# define LT_DLGLOBAL RTLD_GLOBAL
  29835. -#else
  29836. -# ifdef DL_GLOBAL
  29837. -# define LT_DLGLOBAL DL_GLOBAL
  29838. -# else
  29839. -# define LT_DLGLOBAL 0
  29840. -# endif
  29841. -#endif
  29842. -
  29843. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  29844. - find out it does not work in some platform. */
  29845. -#ifndef LT_DLLAZY_OR_NOW
  29846. -# ifdef RTLD_LAZY
  29847. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  29848. -# else
  29849. -# ifdef DL_LAZY
  29850. -# define LT_DLLAZY_OR_NOW DL_LAZY
  29851. -# else
  29852. -# ifdef RTLD_NOW
  29853. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  29854. -# else
  29855. -# ifdef DL_NOW
  29856. -# define LT_DLLAZY_OR_NOW DL_NOW
  29857. -# else
  29858. -# define LT_DLLAZY_OR_NOW 0
  29859. -# endif
  29860. -# endif
  29861. -# endif
  29862. -# endif
  29863. -#endif
  29864. -
  29865. -#ifdef __cplusplus
  29866. -extern "C" void exit (int);
  29867. -#endif
  29868. -
  29869. -void fnord() { int i=42;}
  29870. -int main ()
  29871. -{
  29872. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  29873. - int status = $lt_dlunknown;
  29874. -
  29875. - if (self)
  29876. - {
  29877. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  29878. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  29879. - /* dlclose (self); */
  29880. - }
  29881. -
  29882. - exit (status);
  29883. -}
  29884. -EOF
  29885. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29886. - (eval $ac_link) 2>&5
  29887. - ac_status=$?
  29888. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29889. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  29890. - (./conftest; exit; ) 2>/dev/null
  29891. - lt_status=$?
  29892. - case x$lt_status in
  29893. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  29894. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  29895. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  29896. - esac
  29897. - else :
  29898. - # compilation failed
  29899. - lt_cv_dlopen_self_static=no
  29900. - fi
  29901. -fi
  29902. -rm -fr conftest*
  29903. -
  29904. -
  29905. -fi
  29906. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  29907. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  29908. - fi
  29909. -
  29910. - CPPFLAGS="$save_CPPFLAGS"
  29911. - LDFLAGS="$save_LDFLAGS"
  29912. - LIBS="$save_LIBS"
  29913. - ;;
  29914. - esac
  29915. -
  29916. - case $lt_cv_dlopen_self in
  29917. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  29918. - *) enable_dlopen_self=unknown ;;
  29919. - esac
  29920. -
  29921. - case $lt_cv_dlopen_self_static in
  29922. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  29923. - *) enable_dlopen_self_static=unknown ;;
  29924. - esac
  29925. -fi
  29926. -
  29927. -
  29928. -# The else clause should only fire when bootstrapping the
  29929. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  29930. -# with your package, and you will get complaints that there are
  29931. -# no rules to generate ltmain.sh.
  29932. -if test -f "$ltmain"; then
  29933. - # See if we are running on zsh, and set the options which allow our commands through
  29934. - # without removal of \ escapes.
  29935. - if test -n "${ZSH_VERSION+set}" ; then
  29936. - setopt NO_GLOB_SUBST
  29937. - fi
  29938. - # Now quote all the things that may contain metacharacters while being
  29939. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  29940. - # variables and quote the copies for generation of the libtool script.
  29941. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  29942. - SED SHELL STRIP \
  29943. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  29944. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  29945. - deplibs_check_method reload_flag reload_cmds need_locks \
  29946. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  29947. - lt_cv_sys_global_symbol_to_c_name_address \
  29948. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  29949. - old_postinstall_cmds old_postuninstall_cmds \
  29950. - compiler_CXX \
  29951. - CC_CXX \
  29952. - LD_CXX \
  29953. - lt_prog_compiler_wl_CXX \
  29954. - lt_prog_compiler_pic_CXX \
  29955. - lt_prog_compiler_static_CXX \
  29956. - lt_prog_compiler_no_builtin_flag_CXX \
  29957. - export_dynamic_flag_spec_CXX \
  29958. - thread_safe_flag_spec_CXX \
  29959. - whole_archive_flag_spec_CXX \
  29960. - enable_shared_with_static_runtimes_CXX \
  29961. - old_archive_cmds_CXX \
  29962. - old_archive_from_new_cmds_CXX \
  29963. - predep_objects_CXX \
  29964. - postdep_objects_CXX \
  29965. - predeps_CXX \
  29966. - postdeps_CXX \
  29967. - compiler_lib_search_path_CXX \
  29968. - archive_cmds_CXX \
  29969. - archive_expsym_cmds_CXX \
  29970. - postinstall_cmds_CXX \
  29971. - postuninstall_cmds_CXX \
  29972. - old_archive_from_expsyms_cmds_CXX \
  29973. - allow_undefined_flag_CXX \
  29974. - no_undefined_flag_CXX \
  29975. - export_symbols_cmds_CXX \
  29976. - hardcode_libdir_flag_spec_CXX \
  29977. - hardcode_libdir_flag_spec_ld_CXX \
  29978. - hardcode_libdir_separator_CXX \
  29979. - hardcode_automatic_CXX \
  29980. - module_cmds_CXX \
  29981. - module_expsym_cmds_CXX \
  29982. - lt_cv_prog_compiler_c_o_CXX \
  29983. - exclude_expsyms_CXX \
  29984. - include_expsyms_CXX; do
  29985. -
  29986. - case $var in
  29987. - old_archive_cmds_CXX | \
  29988. - old_archive_from_new_cmds_CXX | \
  29989. - archive_cmds_CXX | \
  29990. - archive_expsym_cmds_CXX | \
  29991. - module_cmds_CXX | \
  29992. - module_expsym_cmds_CXX | \
  29993. - old_archive_from_expsyms_cmds_CXX | \
  29994. - export_symbols_cmds_CXX | \
  29995. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  29996. - postinstall_cmds | postuninstall_cmds | \
  29997. - old_postinstall_cmds | old_postuninstall_cmds | \
  29998. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  29999. - # Double-quote double-evaled strings.
  30000. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  30001. - ;;
  30002. - *)
  30003. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  30004. - ;;
  30005. - esac
  30006. - done
  30007. -
  30008. - case $lt_echo in
  30009. - *'\$0 --fallback-echo"')
  30010. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  30011. - ;;
  30012. - esac
  30013. -
  30014. -cfgfile="$ofile"
  30015. -
  30016. - cat <<__EOF__ >> "$cfgfile"
  30017. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  30018. -
  30019. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  30020. -
  30021. -# Shell to use when invoking shell scripts.
  30022. -SHELL=$lt_SHELL
  30023. -
  30024. -# Whether or not to build shared libraries.
  30025. -build_libtool_libs=$enable_shared
  30026. -
  30027. -# Whether or not to build static libraries.
  30028. -build_old_libs=$enable_static
  30029. -
  30030. -# Whether or not to add -lc for building shared libraries.
  30031. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  30032. -
  30033. -# Whether or not to disallow shared libs when runtime libs are static
  30034. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  30035. -
  30036. -# Whether or not to optimize for fast installation.
  30037. -fast_install=$enable_fast_install
  30038. -
  30039. -# The host system.
  30040. -host_alias=$host_alias
  30041. -host=$host
  30042. -
  30043. -# An echo program that does not interpret backslashes.
  30044. -echo=$lt_echo
  30045. -
  30046. -# The archiver.
  30047. -AR=$lt_AR
  30048. -AR_FLAGS=$lt_AR_FLAGS
  30049. -
  30050. -# A C compiler.
  30051. -LTCC=$lt_LTCC
  30052. -
  30053. -# A language-specific compiler.
  30054. -CC=$lt_compiler_CXX
  30055. -
  30056. -# Is the compiler the GNU C compiler?
  30057. -with_gcc=$GCC_CXX
  30058. -
  30059. -# An ERE matcher.
  30060. -EGREP=$lt_EGREP
  30061. -
  30062. -# The linker used to build libraries.
  30063. -LD=$lt_LD_CXX
  30064. -
  30065. -# Whether we need hard or soft links.
  30066. -LN_S=$lt_LN_S
  30067. -
  30068. -# A BSD-compatible nm program.
  30069. -NM=$lt_NM
  30070. -
  30071. -# A symbol stripping program
  30072. -STRIP=$lt_STRIP
  30073. -
  30074. -# Used to examine libraries when file_magic_cmd begins "file"
  30075. -MAGIC_CMD=$MAGIC_CMD
  30076. -
  30077. -# Used on cygwin: DLL creation program.
  30078. -DLLTOOL="$DLLTOOL"
  30079. -
  30080. -# Used on cygwin: object dumper.
  30081. -OBJDUMP="$OBJDUMP"
  30082. -
  30083. -# Used on cygwin: assembler.
  30084. -AS="$AS"
  30085. -
  30086. -# The name of the directory that contains temporary libtool files.
  30087. -objdir=$objdir
  30088. -
  30089. -# How to create reloadable object files.
  30090. -reload_flag=$lt_reload_flag
  30091. -reload_cmds=$lt_reload_cmds
  30092. -
  30093. -# How to pass a linker flag through the compiler.
  30094. -wl=$lt_lt_prog_compiler_wl_CXX
  30095. -
  30096. -# Object file suffix (normally "o").
  30097. -objext="$ac_objext"
  30098. -
  30099. -# Old archive suffix (normally "a").
  30100. -libext="$libext"
  30101. -
  30102. -# Shared library suffix (normally ".so").
  30103. -shrext_cmds='$shrext_cmds'
  30104. -
  30105. -# Executable file suffix (normally "").
  30106. -exeext="$exeext"
  30107. -
  30108. -# Additional compiler flags for building library objects.
  30109. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  30110. -pic_mode=$pic_mode
  30111. -
  30112. -# What is the maximum length of a command?
  30113. -max_cmd_len=$lt_cv_sys_max_cmd_len
  30114. -
  30115. -# Does compiler simultaneously support -c and -o options?
  30116. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  30117. -
  30118. -# Must we lock files when doing compilation ?
  30119. -need_locks=$lt_need_locks
  30120. -
  30121. -# Do we need the lib prefix for modules?
  30122. -need_lib_prefix=$need_lib_prefix
  30123. -
  30124. -# Do we need a version for libraries?
  30125. -need_version=$need_version
  30126. -
  30127. -# Whether dlopen is supported.
  30128. -dlopen_support=$enable_dlopen
  30129. -
  30130. -# Whether dlopen of programs is supported.
  30131. -dlopen_self=$enable_dlopen_self
  30132. -
  30133. -# Whether dlopen of statically linked programs is supported.
  30134. -dlopen_self_static=$enable_dlopen_self_static
  30135. -
  30136. -# Compiler flag to prevent dynamic linking.
  30137. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  30138. -
  30139. -# Compiler flag to turn off builtin functions.
  30140. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  30141. -
  30142. -# Compiler flag to allow reflexive dlopens.
  30143. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  30144. -
  30145. -# Compiler flag to generate shared objects directly from archives.
  30146. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  30147. -
  30148. -# Compiler flag to generate thread-safe objects.
  30149. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  30150. -
  30151. -# Library versioning type.
  30152. -version_type=$version_type
  30153. -
  30154. -# Format of library name prefix.
  30155. -libname_spec=$lt_libname_spec
  30156. -
  30157. -# List of archive names. First name is the real one, the rest are links.
  30158. -# The last name is the one that the linker finds with -lNAME.
  30159. -library_names_spec=$lt_library_names_spec
  30160. -
  30161. -# The coded name of the library, if different from the real name.
  30162. -soname_spec=$lt_soname_spec
  30163. -
  30164. -# Commands used to build and install an old-style archive.
  30165. -RANLIB=$lt_RANLIB
  30166. -old_archive_cmds=$lt_old_archive_cmds_CXX
  30167. -old_postinstall_cmds=$lt_old_postinstall_cmds
  30168. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  30169. -
  30170. -# Create an old-style archive from a shared archive.
  30171. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  30172. -
  30173. -# Create a temporary old-style archive to link instead of a shared archive.
  30174. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  30175. -
  30176. -# Commands used to build and install a shared archive.
  30177. -archive_cmds=$lt_archive_cmds_CXX
  30178. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  30179. -postinstall_cmds=$lt_postinstall_cmds
  30180. -postuninstall_cmds=$lt_postuninstall_cmds
  30181. -
  30182. -# Commands used to build a loadable module (assumed same as above if empty)
  30183. -module_cmds=$lt_module_cmds_CXX
  30184. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  30185. -
  30186. -# Commands to strip libraries.
  30187. -old_striplib=$lt_old_striplib
  30188. -striplib=$lt_striplib
  30189. -
  30190. -# Dependencies to place before the objects being linked to create a
  30191. -# shared library.
  30192. -predep_objects=$lt_predep_objects_CXX
  30193. -
  30194. -# Dependencies to place after the objects being linked to create a
  30195. -# shared library.
  30196. -postdep_objects=$lt_postdep_objects_CXX
  30197. -
  30198. -# Dependencies to place before the objects being linked to create a
  30199. -# shared library.
  30200. -predeps=$lt_predeps_CXX
  30201. -
  30202. -# Dependencies to place after the objects being linked to create a
  30203. -# shared library.
  30204. -postdeps=$lt_postdeps_CXX
  30205. -
  30206. -# The library search path used internally by the compiler when linking
  30207. -# a shared library.
  30208. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  30209. -
  30210. -# Method to check whether dependent libraries are shared objects.
  30211. -deplibs_check_method=$lt_deplibs_check_method
  30212. -
  30213. -# Command to use when deplibs_check_method == file_magic.
  30214. -file_magic_cmd=$lt_file_magic_cmd
  30215. -
  30216. -# Flag that allows shared libraries with undefined symbols to be built.
  30217. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  30218. -
  30219. -# Flag that forces no undefined symbols.
  30220. -no_undefined_flag=$lt_no_undefined_flag_CXX
  30221. -
  30222. -# Commands used to finish a libtool library installation in a directory.
  30223. -finish_cmds=$lt_finish_cmds
  30224. -
  30225. -# Same as above, but a single script fragment to be evaled but not shown.
  30226. -finish_eval=$lt_finish_eval
  30227. -
  30228. -# Take the output of nm and produce a listing of raw symbols and C names.
  30229. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  30230. -
  30231. -# Transform the output of nm in a proper C declaration
  30232. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  30233. -
  30234. -# Transform the output of nm in a C name address pair
  30235. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  30236. -
  30237. -# This is the shared library runtime path variable.
  30238. -runpath_var=$runpath_var
  30239. -
  30240. -# This is the shared library path variable.
  30241. -shlibpath_var=$shlibpath_var
  30242. -
  30243. -# Is shlibpath searched before the hard-coded library search path?
  30244. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  30245. -
  30246. -# How to hardcode a shared library path into an executable.
  30247. -hardcode_action=$hardcode_action_CXX
  30248. -
  30249. -# Whether we should hardcode library paths into libraries.
  30250. -hardcode_into_libs=$hardcode_into_libs
  30251. -
  30252. -# Flag to hardcode \$libdir into a binary during linking.
  30253. -# This must work even if \$libdir does not exist.
  30254. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  30255. -
  30256. -# If ld is used when linking, flag to hardcode \$libdir into
  30257. -# a binary during linking. This must work even if \$libdir does
  30258. -# not exist.
  30259. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  30260. -
  30261. -# Whether we need a single -rpath flag with a separated argument.
  30262. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  30263. -
  30264. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  30265. -# resulting binary.
  30266. -hardcode_direct=$hardcode_direct_CXX
  30267. -
  30268. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  30269. -# resulting binary.
  30270. -hardcode_minus_L=$hardcode_minus_L_CXX
  30271. -
  30272. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  30273. -# the resulting binary.
  30274. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  30275. -
  30276. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  30277. -# and all subsequent libraries and executables linked against it.
  30278. -hardcode_automatic=$hardcode_automatic_CXX
  30279. -
  30280. -# Variables whose values should be saved in libtool wrapper scripts and
  30281. -# restored at relink time.
  30282. -variables_saved_for_relink="$variables_saved_for_relink"
  30283. -
  30284. -# Whether libtool must link a program against all its dependency libraries.
  30285. -link_all_deplibs=$link_all_deplibs_CXX
  30286. -
  30287. -# Compile-time system search path for libraries
  30288. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  30289. -
  30290. -# Run-time system search path for libraries
  30291. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  30292. -
  30293. -# Fix the shell variable \$srcfile for the compiler.
  30294. -fix_srcfile_path="$fix_srcfile_path_CXX"
  30295. -
  30296. -# Set to yes if exported symbols are required.
  30297. -always_export_symbols=$always_export_symbols_CXX
  30298. -
  30299. -# The commands to list exported symbols.
  30300. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  30301. -
  30302. -# The commands to extract the exported symbol list from a shared archive.
  30303. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  30304. -
  30305. -# Symbols that should not be listed in the preloaded symbols.
  30306. -exclude_expsyms=$lt_exclude_expsyms_CXX
  30307. -
  30308. -# Symbols that must always be exported.
  30309. -include_expsyms=$lt_include_expsyms_CXX
  30310. -
  30311. -# ### END LIBTOOL TAG CONFIG: $tagname
  30312. -
  30313. -__EOF__
  30314. -
  30315. -
  30316. -else
  30317. - # If there is no Makefile yet, we rely on a make rule to execute
  30318. - # `config.status --recheck' to rerun these tests and create the
  30319. - # libtool script then.
  30320. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  30321. - if test -f "$ltmain_in"; then
  30322. - test -f Makefile && make "$ltmain"
  30323. - fi
  30324. -fi
  30325. -
  30326. -
  30327. -ac_ext=c
  30328. -ac_cpp='$CPP $CPPFLAGS'
  30329. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  30330. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30331. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  30332. -
  30333. -CC=$lt_save_CC
  30334. -LDCXX=$LD
  30335. -LD=$lt_save_LD
  30336. -GCC=$lt_save_GCC
  30337. -with_gnu_ldcxx=$with_gnu_ld
  30338. -with_gnu_ld=$lt_save_with_gnu_ld
  30339. -lt_cv_path_LDCXX=$lt_cv_path_LD
  30340. -lt_cv_path_LD=$lt_save_path_LD
  30341. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  30342. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  30343. -
  30344. - else
  30345. - tagname=""
  30346. - fi
  30347. - ;;
  30348. -
  30349. - F77)
  30350. - if test -n "$F77" && test "X$F77" != "Xno"; then
  30351. -
  30352. -ac_ext=f
  30353. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  30354. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  30355. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  30356. -
  30357. -
  30358. -archive_cmds_need_lc_F77=no
  30359. -allow_undefined_flag_F77=
  30360. -always_export_symbols_F77=no
  30361. -archive_expsym_cmds_F77=
  30362. -export_dynamic_flag_spec_F77=
  30363. -hardcode_direct_F77=no
  30364. -hardcode_libdir_flag_spec_F77=
  30365. -hardcode_libdir_flag_spec_ld_F77=
  30366. -hardcode_libdir_separator_F77=
  30367. -hardcode_minus_L_F77=no
  30368. -hardcode_automatic_F77=no
  30369. -module_cmds_F77=
  30370. -module_expsym_cmds_F77=
  30371. -link_all_deplibs_F77=unknown
  30372. -old_archive_cmds_F77=$old_archive_cmds
  30373. -no_undefined_flag_F77=
  30374. -whole_archive_flag_spec_F77=
  30375. -enable_shared_with_static_runtimes_F77=no
  30376. -
  30377. -# Source file extension for f77 test sources.
  30378. -ac_ext=f
  30379. -
  30380. -# Object file extension for compiled f77 test sources.
  30381. -objext=o
  30382. -objext_F77=$objext
  30383. -
  30384. -# Code to be used in simple compile tests
  30385. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  30386. -
  30387. -# Code to be used in simple link tests
  30388. -lt_simple_link_test_code=" program t\n end\n"
  30389. -
  30390. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  30391. -
  30392. -# If no C compiler was specified, use CC.
  30393. -LTCC=${LTCC-"$CC"}
  30394. -
  30395. -# Allow CC to be a program name with arguments.
  30396. -compiler=$CC
  30397. -
  30398. -
  30399. -# Allow CC to be a program name with arguments.
  30400. -lt_save_CC="$CC"
  30401. -CC=${F77-"f77"}
  30402. -compiler=$CC
  30403. -compiler_F77=$CC
  30404. -cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  30405. -
  30406. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  30407. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  30408. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  30409. -echo "${ECHO_T}$can_build_shared" >&6
  30410. -
  30411. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  30412. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  30413. -test "$can_build_shared" = "no" && enable_shared=no
  30414. -
  30415. -# On AIX, shared libraries and static libraries use the same namespace, and
  30416. -# are all built from PIC.
  30417. -case "$host_os" in
  30418. -aix3*)
  30419. - test "$enable_shared" = yes && enable_static=no
  30420. - if test -n "$RANLIB"; then
  30421. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  30422. - postinstall_cmds='$RANLIB $lib'
  30423. - fi
  30424. - ;;
  30425. -aix4* | aix5*)
  30426. - test "$enable_shared" = yes && enable_static=no
  30427. - ;;
  30428. -esac
  30429. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  30430. -echo "${ECHO_T}$enable_shared" >&6
  30431. -
  30432. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  30433. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  30434. -# Make sure either enable_shared or enable_static is yes.
  30435. -test "$enable_shared" = yes || enable_static=yes
  30436. -echo "$as_me:$LINENO: result: $enable_static" >&5
  30437. -echo "${ECHO_T}$enable_static" >&6
  30438. -
  30439. -test "$ld_shlibs_F77" = no && can_build_shared=no
  30440. -
  30441. -GCC_F77="$G77"
  30442. -LD_F77="$LD"
  30443. -
  30444. -lt_prog_compiler_wl_F77=
  30445. -lt_prog_compiler_pic_F77=
  30446. -lt_prog_compiler_static_F77=
  30447. -
  30448. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30449. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  30450. -
  30451. - if test "$GCC" = yes; then
  30452. - lt_prog_compiler_wl_F77='-Wl,'
  30453. - lt_prog_compiler_static_F77='-static'
  30454. -
  30455. - case $host_os in
  30456. - aix*)
  30457. - # All AIX code is PIC.
  30458. - if test "$host_cpu" = ia64; then
  30459. - # AIX 5 now supports IA64 processor
  30460. - lt_prog_compiler_static_F77='-Bstatic'
  30461. - fi
  30462. - ;;
  30463. -
  30464. - amigaos*)
  30465. - # FIXME: we need at least 68020 code to build shared libraries, but
  30466. - # adding the `-m68020' flag to GCC prevents building anything better,
  30467. - # like `-m68040'.
  30468. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  30469. - ;;
  30470. -
  30471. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30472. - # PIC is the default for these OSes.
  30473. - ;;
  30474. -
  30475. - mingw* | pw32* | os2*)
  30476. - # This hack is so that the source file can tell whether it is being
  30477. - # built for inclusion in a dll (and should export symbols for example).
  30478. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30479. - ;;
  30480. -
  30481. - darwin* | rhapsody*)
  30482. - # PIC is the default on this platform
  30483. - # Common symbols not allowed in MH_DYLIB files
  30484. - lt_prog_compiler_pic_F77='-fno-common'
  30485. - ;;
  30486. -
  30487. - msdosdjgpp*)
  30488. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  30489. - # on systems that don't support them.
  30490. - lt_prog_compiler_can_build_shared_F77=no
  30491. - enable_shared=no
  30492. - ;;
  30493. -
  30494. - sysv4*MP*)
  30495. - if test -d /usr/nec; then
  30496. - lt_prog_compiler_pic_F77=-Kconform_pic
  30497. - fi
  30498. - ;;
  30499. -
  30500. - hpux*)
  30501. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30502. - # not for PA HP-UX.
  30503. - case "$host_cpu" in
  30504. - hppa*64*|ia64*)
  30505. - # +Z the default
  30506. - ;;
  30507. - *)
  30508. - lt_prog_compiler_pic_F77='-fPIC'
  30509. - ;;
  30510. - esac
  30511. - ;;
  30512. -
  30513. - *)
  30514. - lt_prog_compiler_pic_F77='-fPIC'
  30515. - ;;
  30516. - esac
  30517. - else
  30518. - # PORTME Check for flag to pass linker flags through the system compiler.
  30519. - case $host_os in
  30520. - aix*)
  30521. - lt_prog_compiler_wl_F77='-Wl,'
  30522. - if test "$host_cpu" = ia64; then
  30523. - # AIX 5 now supports IA64 processor
  30524. - lt_prog_compiler_static_F77='-Bstatic'
  30525. - else
  30526. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  30527. - fi
  30528. - ;;
  30529. -
  30530. - mingw* | pw32* | os2*)
  30531. - # This hack is so that the source file can tell whether it is being
  30532. - # built for inclusion in a dll (and should export symbols for example).
  30533. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  30534. - ;;
  30535. -
  30536. - hpux9* | hpux10* | hpux11*)
  30537. - lt_prog_compiler_wl_F77='-Wl,'
  30538. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30539. - # not for PA HP-UX.
  30540. - case "$host_cpu" in
  30541. - hppa*64*|ia64*)
  30542. - # +Z the default
  30543. - ;;
  30544. - *)
  30545. - lt_prog_compiler_pic_F77='+Z'
  30546. - ;;
  30547. - esac
  30548. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  30549. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  30550. - ;;
  30551. -
  30552. - irix5* | irix6* | nonstopux*)
  30553. - lt_prog_compiler_wl_F77='-Wl,'
  30554. - # PIC (with -KPIC) is the default.
  30555. - lt_prog_compiler_static_F77='-non_shared'
  30556. - ;;
  30557. -
  30558. - newsos6)
  30559. - lt_prog_compiler_pic_F77='-KPIC'
  30560. - lt_prog_compiler_static_F77='-Bstatic'
  30561. - ;;
  30562. -
  30563. - linux*)
  30564. - case $CC in
  30565. - icc* | ecc*)
  30566. - lt_prog_compiler_wl_F77='-Wl,'
  30567. - lt_prog_compiler_pic_F77='-KPIC'
  30568. - lt_prog_compiler_static_F77='-static'
  30569. - ;;
  30570. - ccc*)
  30571. - lt_prog_compiler_wl_F77='-Wl,'
  30572. - # All Alpha code is PIC.
  30573. - lt_prog_compiler_static_F77='-non_shared'
  30574. - ;;
  30575. + rhapsody* | darwin1.[012])
  30576. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  30577. + darwin1.*)
  30578. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30579. + darwin*) # darwin 5.x on
  30580. + # if running on 10.5 or later, the deployment target defaults
  30581. + # to the OS version, if on x86, and 10.4, the deployment
  30582. + # target defaults to 10.4. Don't you love it?
  30583. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  30584. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  30585. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30586. + 10.[012]*)
  30587. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  30588. + 10.*)
  30589. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  30590. esac
  30591. - ;;
  30592. -
  30593. - osf3* | osf4* | osf5*)
  30594. - lt_prog_compiler_wl_F77='-Wl,'
  30595. - # All OSF/1 code is PIC.
  30596. - lt_prog_compiler_static_F77='-non_shared'
  30597. - ;;
  30598. -
  30599. - sco3.2v5*)
  30600. - lt_prog_compiler_pic_F77='-Kpic'
  30601. - lt_prog_compiler_static_F77='-dn'
  30602. - ;;
  30603. -
  30604. - solaris*)
  30605. - lt_prog_compiler_wl_F77='-Wl,'
  30606. - lt_prog_compiler_pic_F77='-KPIC'
  30607. - lt_prog_compiler_static_F77='-Bstatic'
  30608. - ;;
  30609. -
  30610. - sunos4*)
  30611. - lt_prog_compiler_wl_F77='-Qoption ld '
  30612. - lt_prog_compiler_pic_F77='-PIC'
  30613. - lt_prog_compiler_static_F77='-Bstatic'
  30614. - ;;
  30615. -
  30616. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  30617. - lt_prog_compiler_wl_F77='-Wl,'
  30618. - lt_prog_compiler_pic_F77='-KPIC'
  30619. - lt_prog_compiler_static_F77='-Bstatic'
  30620. - ;;
  30621. -
  30622. - sysv4*MP*)
  30623. - if test -d /usr/nec ;then
  30624. - lt_prog_compiler_pic_F77='-Kconform_pic'
  30625. - lt_prog_compiler_static_F77='-Bstatic'
  30626. - fi
  30627. - ;;
  30628. -
  30629. - uts4*)
  30630. - lt_prog_compiler_pic_F77='-pic'
  30631. - lt_prog_compiler_static_F77='-Bstatic'
  30632. - ;;
  30633. -
  30634. - *)
  30635. - lt_prog_compiler_can_build_shared_F77=no
  30636. - ;;
  30637. - esac
  30638. - fi
  30639. -
  30640. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  30641. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  30642. -
  30643. -#
  30644. -# Check to make sure the PIC flag actually works.
  30645. -#
  30646. -if test -n "$lt_prog_compiler_pic_F77"; then
  30647. -
  30648. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  30649. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  30650. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  30651. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30652. -else
  30653. - lt_prog_compiler_pic_works_F77=no
  30654. - ac_outfile=conftest.$ac_objext
  30655. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30656. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  30657. - # Insert the option either (1) after the last *FLAGS variable, or
  30658. - # (2) before a word containing "conftest.", or (3) at the end.
  30659. - # Note that $ac_compile itself does not contain backslashes and begins
  30660. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30661. - # The option is referenced via a variable to avoid confusing sed.
  30662. - lt_compile=`echo "$ac_compile" | $SED \
  30663. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  30664. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30665. - -e 's:$: $lt_compiler_flag:'`
  30666. - (eval echo "\"\$as_me:13373: $lt_compile\"" >&5)
  30667. - (eval "$lt_compile" 2>conftest.err)
  30668. - ac_status=$?
  30669. - cat conftest.err >&5
  30670. - echo "$as_me:13377: \$? = $ac_status" >&5
  30671. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30672. - # The compiler can only warn and ignore the option if not recognized
  30673. - # So say no if there are warnings
  30674. - if test ! -s conftest.err; then
  30675. - lt_prog_compiler_pic_works_F77=yes
  30676. - fi
  30677. - fi
  30678. - $rm conftest*
  30679. -
  30680. -fi
  30681. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  30682. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  30683. -
  30684. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  30685. - case $lt_prog_compiler_pic_F77 in
  30686. - "" | " "*) ;;
  30687. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  30688. - esac
  30689. -else
  30690. - lt_prog_compiler_pic_F77=
  30691. - lt_prog_compiler_can_build_shared_F77=no
  30692. -fi
  30693. -
  30694. -fi
  30695. -case "$host_os" in
  30696. - # For platforms which do not support PIC, -DPIC is meaningless:
  30697. - *djgpp*)
  30698. - lt_prog_compiler_pic_F77=
  30699. - ;;
  30700. - *)
  30701. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  30702. - ;;
  30703. -esac
  30704. -
  30705. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30706. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  30707. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  30708. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30709. -else
  30710. - lt_cv_prog_compiler_c_o_F77=no
  30711. - $rm -r conftest 2>/dev/null
  30712. - mkdir conftest
  30713. - cd conftest
  30714. - mkdir out
  30715. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30716. -
  30717. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  30718. - # Insert the option either (1) after the last *FLAGS variable, or
  30719. - # (2) before a word containing "conftest.", or (3) at the end.
  30720. - # Note that $ac_compile itself does not contain backslashes and begins
  30721. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30722. - lt_compile=`echo "$ac_compile" | $SED \
  30723. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  30724. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30725. - -e 's:$: $lt_compiler_flag:'`
  30726. - (eval echo "\"\$as_me:13433: $lt_compile\"" >&5)
  30727. - (eval "$lt_compile" 2>out/conftest.err)
  30728. - ac_status=$?
  30729. - cat out/conftest.err >&5
  30730. - echo "$as_me:13437: \$? = $ac_status" >&5
  30731. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  30732. - then
  30733. - # The compiler can only warn and ignore the option if not recognized
  30734. - # So say no if there are warnings
  30735. - if test ! -s out/conftest.err; then
  30736. - lt_cv_prog_compiler_c_o_F77=yes
  30737. - fi
  30738. - fi
  30739. - chmod u+w .
  30740. - $rm conftest*
  30741. - # SGI C++ compiler will create directory out/ii_files/ for
  30742. - # template instantiation
  30743. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  30744. - $rm out/* && rmdir out
  30745. - cd ..
  30746. - rmdir conftest
  30747. - $rm conftest*
  30748. -
  30749. -fi
  30750. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  30751. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  30752. -
  30753. -
  30754. -hard_links="nottested"
  30755. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  30756. - # do not overwrite the value of need_locks provided by the user
  30757. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  30758. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  30759. - hard_links=yes
  30760. - $rm conftest*
  30761. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30762. - touch conftest.a
  30763. - ln conftest.a conftest.b 2>&5 || hard_links=no
  30764. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  30765. - echo "$as_me:$LINENO: result: $hard_links" >&5
  30766. -echo "${ECHO_T}$hard_links" >&6
  30767. - if test "$hard_links" = no; then
  30768. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  30769. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  30770. - need_locks=warn
  30771. - fi
  30772. -else
  30773. - need_locks=no
  30774. -fi
  30775. -
  30776. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  30777. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  30778. -
  30779. - runpath_var=
  30780. - allow_undefined_flag_F77=
  30781. - enable_shared_with_static_runtimes_F77=no
  30782. - archive_cmds_F77=
  30783. - archive_expsym_cmds_F77=
  30784. - old_archive_From_new_cmds_F77=
  30785. - old_archive_from_expsyms_cmds_F77=
  30786. - export_dynamic_flag_spec_F77=
  30787. - whole_archive_flag_spec_F77=
  30788. - thread_safe_flag_spec_F77=
  30789. - hardcode_libdir_flag_spec_F77=
  30790. - hardcode_libdir_flag_spec_ld_F77=
  30791. - hardcode_libdir_separator_F77=
  30792. - hardcode_direct_F77=no
  30793. - hardcode_minus_L_F77=no
  30794. - hardcode_shlibpath_var_F77=unsupported
  30795. - link_all_deplibs_F77=unknown
  30796. - hardcode_automatic_F77=no
  30797. - module_cmds_F77=
  30798. - module_expsym_cmds_F77=
  30799. - always_export_symbols_F77=no
  30800. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  30801. - # include_expsyms should be a list of space-separated symbols to be *always*
  30802. - # included in the symbol list
  30803. - include_expsyms_F77=
  30804. - # exclude_expsyms can be an extended regexp of symbols to exclude
  30805. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  30806. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  30807. - # as well as any symbol that contains `d'.
  30808. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  30809. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  30810. - # platforms (ab)use it in PIC code, but their linkers get confused if
  30811. - # the symbol is explicitly referenced. Since portable code cannot
  30812. - # rely on this symbol name, it's probably fine to never include it in
  30813. - # preloaded symbol tables.
  30814. - extract_expsyms_cmds=
  30815. -
  30816. - case $host_os in
  30817. - cygwin* | mingw* | pw32*)
  30818. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  30819. - # When not using gcc, we currently assume that we are using
  30820. - # Microsoft Visual C++.
  30821. - if test "$GCC" != yes; then
  30822. - with_gnu_ld=no
  30823. - fi
  30824. - ;;
  30825. - openbsd*)
  30826. - with_gnu_ld=no
  30827. ;;
  30828. esac
  30829. -
  30830. - ld_shlibs_F77=yes
  30831. - if test "$with_gnu_ld" = yes; then
  30832. - # If archive_cmds runs LD, not CC, wlarc should be empty
  30833. - wlarc='${wl}'
  30834. -
  30835. - # See if GNU ld supports shared libraries.
  30836. - case $host_os in
  30837. - aix3* | aix4* | aix5*)
  30838. - # On AIX/PPC, the GNU linker is very broken
  30839. - if test "$host_cpu" != ia64; then
  30840. - ld_shlibs_F77=no
  30841. - cat <<EOF 1>&2
  30842. -
  30843. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  30844. -*** to be unable to reliably create shared libraries on AIX.
  30845. -*** Therefore, libtool is disabling shared libraries support. If you
  30846. -*** really care for shared libraries, you may want to modify your PATH
  30847. -*** so that a non-GNU linker is found, and then restart.
  30848. -
  30849. -EOF
  30850. - fi
  30851. - ;;
  30852. -
  30853. - amigaos*)
  30854. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  30855. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30856. - hardcode_minus_L_F77=yes
  30857. -
  30858. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  30859. - # that the semantics of dynamic libraries on AmigaOS, at least up
  30860. - # to version 4, is to share data among multiple programs linked
  30861. - # with the same dynamic library. Since this doesn't match the
  30862. - # behavior of shared libraries on other platforms, we can't use
  30863. - # them.
  30864. - ld_shlibs_F77=no
  30865. - ;;
  30866. -
  30867. - beos*)
  30868. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30869. - allow_undefined_flag_F77=unsupported
  30870. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  30871. - # support --undefined. This deserves some investigation. FIXME
  30872. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30873. - else
  30874. - ld_shlibs_F77=no
  30875. - fi
  30876. - ;;
  30877. -
  30878. - cygwin* | mingw* | pw32*)
  30879. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  30880. - # as there is no search path for DLLs.
  30881. - hardcode_libdir_flag_spec_F77='-L$libdir'
  30882. - allow_undefined_flag_F77=unsupported
  30883. - always_export_symbols_F77=no
  30884. - enable_shared_with_static_runtimes_F77=yes
  30885. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  30886. -
  30887. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  30888. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  30889. - # If the export-symbols file already is a .def file (1st line
  30890. - # is EXPORTS), use it as is; otherwise, prepend...
  30891. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  30892. - cp $export_symbols $output_objdir/$soname.def;
  30893. - else
  30894. - echo EXPORTS > $output_objdir/$soname.def;
  30895. - cat $export_symbols >> $output_objdir/$soname.def;
  30896. - fi~
  30897. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  30898. - else
  30899. - ld_shlibs=no
  30900. - fi
  30901. - ;;
  30902. -
  30903. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  30904. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30905. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  30906. - wlarc=
  30907. - else
  30908. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30909. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30910. - fi
  30911. - ;;
  30912. -
  30913. - solaris* | sysv5*)
  30914. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  30915. - ld_shlibs_F77=no
  30916. - cat <<EOF 1>&2
  30917. -
  30918. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  30919. -*** create shared libraries on Solaris systems. Therefore, libtool
  30920. -*** is disabling shared libraries support. We urge you to upgrade GNU
  30921. -*** binutils to release 2.9.1 or newer. Another option is to modify
  30922. -*** your PATH or compiler configuration so that the native linker is
  30923. -*** used, and then restart.
  30924. -
  30925. -EOF
  30926. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30927. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30928. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30929. - else
  30930. - ld_shlibs_F77=no
  30931. - fi
  30932. - ;;
  30933. -
  30934. - sunos4*)
  30935. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  30936. - wlarc=
  30937. - hardcode_direct_F77=yes
  30938. - hardcode_shlibpath_var_F77=no
  30939. - ;;
  30940. -
  30941. - linux*)
  30942. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30943. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30944. - archive_cmds_F77="$tmp_archive_cmds"
  30945. - supports_anon_versioning=no
  30946. - case `$LD -v 2>/dev/null` in
  30947. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  30948. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  30949. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  30950. - *\ 2.11.*) ;; # other 2.11 versions
  30951. - *) supports_anon_versioning=yes ;;
  30952. - esac
  30953. - if test $supports_anon_versioning = yes; then
  30954. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  30955. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  30956. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  30957. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  30958. - else
  30959. - archive_expsym_cmds_F77="$tmp_archive_cmds"
  30960. - fi
  30961. - link_all_deplibs_F77=no
  30962. - else
  30963. - ld_shlibs_F77=no
  30964. - fi
  30965. - ;;
  30966. -
  30967. - *)
  30968. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  30969. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30970. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  30971. - else
  30972. - ld_shlibs_F77=no
  30973. - fi
  30974. - ;;
  30975. - esac
  30976. -
  30977. - if test "$ld_shlibs_F77" = yes; then
  30978. - runpath_var=LD_RUN_PATH
  30979. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  30980. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  30981. - # ancient GNU ld didn't support --whole-archive et. al.
  30982. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  30983. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30984. - else
  30985. - whole_archive_flag_spec_F77=
  30986. - fi
  30987. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  30988. + _lt_dar_single_mod='$single_module'
  30989. fi
  30990. - else
  30991. - # PORTME fill in a description of your system's linker (not GNU ld)
  30992. - case $host_os in
  30993. - aix3*)
  30994. - allow_undefined_flag_F77=unsupported
  30995. - always_export_symbols_F77=yes
  30996. - archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  30997. - # Note: this linker hardcodes the directories in LIBPATH if there
  30998. - # are no directories specified by -L.
  30999. - hardcode_minus_L_F77=yes
  31000. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  31001. - # Neither direct hardcoding nor static linking is supported with a
  31002. - # broken collect2.
  31003. - hardcode_direct_F77=unsupported
  31004. - fi
  31005. - ;;
  31006. -
  31007. - aix4* | aix5*)
  31008. - if test "$host_cpu" = ia64; then
  31009. - # On IA64, the linker does run time linking by default, so we don't
  31010. - # have to do anything special.
  31011. - aix_use_runtimelinking=no
  31012. - exp_sym_flag='-Bexport'
  31013. - no_entry_flag=""
  31014. - else
  31015. - # If we're using GNU nm, then we don't want the "-C" option.
  31016. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31017. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31018. - export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31019. - else
  31020. - export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  31021. - fi
  31022. - aix_use_runtimelinking=no
  31023. -
  31024. - # Test if we are trying to use run time linking or normal
  31025. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  31026. - # need to do runtime linking.
  31027. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  31028. - for ld_flag in $LDFLAGS; do
  31029. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  31030. - aix_use_runtimelinking=yes
  31031. - break
  31032. - fi
  31033. - done
  31034. - esac
  31035. -
  31036. - exp_sym_flag='-bexport'
  31037. - no_entry_flag='-bnoentry'
  31038. - fi
  31039. -
  31040. - # When large executables or shared objects are built, AIX ld can
  31041. - # have problems creating the table of contents. If linking a library
  31042. - # or program results in "error TOC overflow" add -mminimal-toc to
  31043. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  31044. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  31045. -
  31046. - archive_cmds_F77=''
  31047. - hardcode_direct_F77=yes
  31048. - hardcode_libdir_separator_F77=':'
  31049. - link_all_deplibs_F77=yes
  31050. -
  31051. - if test "$GCC" = yes; then
  31052. - case $host_os in aix4.012|aix4.012.*)
  31053. - # We only want to do this on AIX 4.2 and lower, the check
  31054. - # below for broken collect2 doesn't work under 4.3+
  31055. - collect2name=`${CC} -print-prog-name=collect2`
  31056. - if test -f "$collect2name" && \
  31057. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  31058. - then
  31059. - # We have reworked collect2
  31060. - hardcode_direct_F77=yes
  31061. - else
  31062. - # We have old collect2
  31063. - hardcode_direct_F77=unsupported
  31064. - # It fails to find uninstalled libraries when the uninstalled
  31065. - # path is not listed in the libpath. Setting hardcode_minus_L
  31066. - # to unsupported forces relinking
  31067. - hardcode_minus_L_F77=yes
  31068. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31069. - hardcode_libdir_separator_F77=
  31070. - fi
  31071. - esac
  31072. - shared_flag='-shared'
  31073. - else
  31074. - # not using gcc
  31075. - if test "$host_cpu" = ia64; then
  31076. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  31077. - # chokes on -Wl,-G. The following line is correct:
  31078. - shared_flag='-G'
  31079. - else
  31080. - if test "$aix_use_runtimelinking" = yes; then
  31081. - shared_flag='${wl}-G'
  31082. - else
  31083. - shared_flag='${wl}-bM:SRE'
  31084. - fi
  31085. - fi
  31086. - fi
  31087. -
  31088. - # It seems that -bexpall does not export symbols beginning with
  31089. - # underscore (_), so it is better to generate a list of symbols to export.
  31090. - always_export_symbols_F77=yes
  31091. - if test "$aix_use_runtimelinking" = yes; then
  31092. - # Warning - without using the other runtime loading flags (-brtl),
  31093. - # -berok will link without error, but may produce a broken library.
  31094. - allow_undefined_flag_F77='-berok'
  31095. - # Determine the default libpath from the value encoded in an empty executable.
  31096. - cat >conftest.$ac_ext <<_ACEOF
  31097. - program main
  31098. -
  31099. - end
  31100. -_ACEOF
  31101. -rm -f conftest.$ac_objext conftest$ac_exeext
  31102. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31103. - (eval $ac_link) 2>conftest.er1
  31104. - ac_status=$?
  31105. - grep -v '^ *+' conftest.er1 >conftest.err
  31106. - rm -f conftest.er1
  31107. - cat conftest.err >&5
  31108. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31109. - (exit $ac_status); } &&
  31110. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  31111. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31112. - (eval $ac_try) 2>&5
  31113. - ac_status=$?
  31114. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31115. - (exit $ac_status); }; } &&
  31116. - { ac_try='test -s conftest$ac_exeext'
  31117. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31118. - (eval $ac_try) 2>&5
  31119. - ac_status=$?
  31120. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31121. - (exit $ac_status); }; }; then
  31122. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  31123. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  31124. + else
  31125. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31126. + fi
  31127. + if test "$DSYMUTIL" != ":"; then
  31128. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  31129. + else
  31130. + _lt_dsymutil=
  31131. + fi
  31132. + ;;
  31133. + esac
  31134. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31135. -}'`
  31136. -# Check for a 64-bit object if we didn't find anything.
  31137. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31138. -}'`; fi
  31139. +ac_ext=c
  31140. +ac_cpp='$CPP $CPPFLAGS'
  31141. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31142. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31143. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31144. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  31145. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  31146. +# On Suns, sometimes $CPP names a directory.
  31147. +if test -n "$CPP" && test -d "$CPP"; then
  31148. + CPP=
  31149. +fi
  31150. +if test -z "$CPP"; then
  31151. + if test "${ac_cv_prog_CPP+set}" = set; then :
  31152. + $as_echo_n "(cached) " >&6
  31153. else
  31154. - echo "$as_me: failed program was:" >&5
  31155. -sed 's/^/| /' conftest.$ac_ext >&5
  31156. + # Double quotes because CPP needs to be expanded
  31157. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  31158. + do
  31159. + ac_preproc_ok=false
  31160. +for ac_c_preproc_warn_flag in '' yes
  31161. +do
  31162. + # Use a header file that comes with gcc, so configuring glibc
  31163. + # with a fresh cross-compiler works.
  31164. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31165. + # <limits.h> exists even on freestanding compilers.
  31166. + # On the NeXT, cc -E runs the code through the compiler's parser,
  31167. + # not just through cpp. "Syntax error" is here to catch this case.
  31168. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31169. +/* end confdefs.h. */
  31170. +#ifdef __STDC__
  31171. +# include <limits.h>
  31172. +#else
  31173. +# include <assert.h>
  31174. +#endif
  31175. + Syntax error
  31176. +_ACEOF
  31177. +if ac_fn_c_try_cpp "$LINENO"; then :
  31178. +else
  31179. + # Broken: fails on valid input.
  31180. +continue
  31181. fi
  31182. -rm -f conftest.err conftest.$ac_objext \
  31183. - conftest$ac_exeext conftest.$ac_ext
  31184. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31185. -
  31186. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31187. - archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  31188. - else
  31189. - if test "$host_cpu" = ia64; then
  31190. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  31191. - allow_undefined_flag_F77="-z nodefs"
  31192. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  31193. - else
  31194. - # Determine the default libpath from the value encoded in an empty executable.
  31195. - cat >conftest.$ac_ext <<_ACEOF
  31196. - program main
  31197. -
  31198. - end
  31199. -_ACEOF
  31200. -rm -f conftest.$ac_objext conftest$ac_exeext
  31201. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31202. - (eval $ac_link) 2>conftest.er1
  31203. - ac_status=$?
  31204. - grep -v '^ *+' conftest.er1 >conftest.err
  31205. - rm -f conftest.er1
  31206. - cat conftest.err >&5
  31207. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31208. - (exit $ac_status); } &&
  31209. - { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
  31210. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31211. - (eval $ac_try) 2>&5
  31212. - ac_status=$?
  31213. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31214. - (exit $ac_status); }; } &&
  31215. - { ac_try='test -s conftest$ac_exeext'
  31216. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31217. - (eval $ac_try) 2>&5
  31218. - ac_status=$?
  31219. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31220. - (exit $ac_status); }; }; then
  31221. +rm -f conftest.err conftest.$ac_ext
  31222. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31223. -}'`
  31224. -# Check for a 64-bit object if we didn't find anything.
  31225. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  31226. -}'`; fi
  31227. + # OK, works on sane cases. Now check whether nonexistent headers
  31228. + # can be detected and how.
  31229. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31230. +/* end confdefs.h. */
  31231. +#include <ac_nonexistent.h>
  31232. +_ACEOF
  31233. +if ac_fn_c_try_cpp "$LINENO"; then :
  31234. + # Broken: success on invalid input.
  31235. +continue
  31236. else
  31237. - echo "$as_me: failed program was:" >&5
  31238. -sed 's/^/| /' conftest.$ac_ext >&5
  31239. -
  31240. + # Passes both tests.
  31241. +ac_preproc_ok=:
  31242. +break
  31243. fi
  31244. -rm -f conftest.err conftest.$ac_objext \
  31245. - conftest$ac_exeext conftest.$ac_ext
  31246. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  31247. -
  31248. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  31249. - # Warning - without using the other run time loading flags,
  31250. - # -berok will link without error, but may produce a broken library.
  31251. - no_undefined_flag_F77=' ${wl}-bernotok'
  31252. - allow_undefined_flag_F77=' ${wl}-berok'
  31253. - # -bexpall does not export symbols beginning with underscore (_)
  31254. - always_export_symbols_F77=yes
  31255. - # Exported symbols can be pulled into shared objects from archives
  31256. - whole_archive_flag_spec_F77=' '
  31257. - archive_cmds_need_lc_F77=yes
  31258. - # This is similar to how AIX traditionally builds it's shared libraries.
  31259. - archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  31260. - fi
  31261. - fi
  31262. - ;;
  31263. -
  31264. - amigaos*)
  31265. - archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  31266. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31267. - hardcode_minus_L_F77=yes
  31268. - # see comment about different semantics on the GNU ld section
  31269. - ld_shlibs_F77=no
  31270. - ;;
  31271. -
  31272. - bsdi4*)
  31273. - export_dynamic_flag_spec_F77=-rdynamic
  31274. - ;;
  31275. -
  31276. - cygwin* | mingw* | pw32*)
  31277. - # When not using gcc, we currently assume that we are using
  31278. - # Microsoft Visual C++.
  31279. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  31280. - # no search path for DLLs.
  31281. - hardcode_libdir_flag_spec_F77=' '
  31282. - allow_undefined_flag_F77=unsupported
  31283. - # Tell ltmain to make .lib files, not .a files.
  31284. - libext=lib
  31285. - # Tell ltmain to make .dll files, not .so files.
  31286. - shrext_cmds=".dll"
  31287. - # FIXME: Setting linknames here is a bad hack.
  31288. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  31289. - # The linker will automatically build a .lib file if we build a DLL.
  31290. - old_archive_From_new_cmds_F77='true'
  31291. - # FIXME: Should let the user specify the lib program.
  31292. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  31293. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  31294. - enable_shared_with_static_runtimes_F77=yes
  31295. - ;;
  31296. -
  31297. - darwin* | rhapsody*)
  31298. - if test "$GXX" = yes ; then
  31299. - archive_cmds_need_lc_F77=no
  31300. - case "$host_os" in
  31301. - rhapsody* | darwin1.[012])
  31302. - allow_undefined_flag_F77='-undefined suppress'
  31303. - ;;
  31304. - *) # Darwin 1.3 on
  31305. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  31306. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  31307. - else
  31308. - case ${MACOSX_DEPLOYMENT_TARGET} in
  31309. - 10.[012])
  31310. - allow_undefined_flag_F77='-flat_namespace -undefined suppress'
  31311. - ;;
  31312. - 10.*)
  31313. - allow_undefined_flag_F77='-undefined dynamic_lookup'
  31314. - ;;
  31315. - esac
  31316. - fi
  31317. - ;;
  31318. - esac
  31319. - lt_int_apple_cc_single_mod=no
  31320. - output_verbose_link_cmd='echo'
  31321. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  31322. - lt_int_apple_cc_single_mod=yes
  31323. - fi
  31324. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31325. - archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  31326. - else
  31327. - archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  31328. - fi
  31329. - module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  31330. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  31331. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  31332. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31333. - else
  31334. - archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31335. - fi
  31336. - module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  31337. - hardcode_direct_F77=no
  31338. - hardcode_automatic_F77=yes
  31339. - hardcode_shlibpath_var_F77=unsupported
  31340. - whole_archive_flag_spec_F77='-all_load $convenience'
  31341. - link_all_deplibs_F77=yes
  31342. - else
  31343. - ld_shlibs_F77=no
  31344. - fi
  31345. - ;;
  31346. -
  31347. - dgux*)
  31348. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31349. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31350. - hardcode_shlibpath_var_F77=no
  31351. - ;;
  31352. -
  31353. - freebsd1*)
  31354. - ld_shlibs_F77=no
  31355. - ;;
  31356. -
  31357. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  31358. - # support. Future versions do this automatically, but an explicit c++rt0.o
  31359. - # does not break anything, and helps significantly (at the cost of a little
  31360. - # extra space).
  31361. - freebsd2.2*)
  31362. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  31363. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31364. - hardcode_direct_F77=yes
  31365. - hardcode_shlibpath_var_F77=no
  31366. - ;;
  31367. -
  31368. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  31369. - freebsd2*)
  31370. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31371. - hardcode_direct_F77=yes
  31372. - hardcode_minus_L_F77=yes
  31373. - hardcode_shlibpath_var_F77=no
  31374. - ;;
  31375. -
  31376. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  31377. - freebsd* | kfreebsd*-gnu)
  31378. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  31379. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31380. - hardcode_direct_F77=yes
  31381. - hardcode_shlibpath_var_F77=no
  31382. - ;;
  31383. -
  31384. - hpux9*)
  31385. - if test "$GCC" = yes; then
  31386. - archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  31387. - else
  31388. - archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  31389. - fi
  31390. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31391. - hardcode_libdir_separator_F77=:
  31392. - hardcode_direct_F77=yes
  31393. -
  31394. - # hardcode_minus_L: Not really in the search PATH,
  31395. - # but as the default location of the library.
  31396. - hardcode_minus_L_F77=yes
  31397. - export_dynamic_flag_spec_F77='${wl}-E'
  31398. - ;;
  31399. -
  31400. - hpux10* | hpux11*)
  31401. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  31402. - case "$host_cpu" in
  31403. - hppa*64*|ia64*)
  31404. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31405. - ;;
  31406. - *)
  31407. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  31408. - ;;
  31409. - esac
  31410. - else
  31411. - case "$host_cpu" in
  31412. - hppa*64*|ia64*)
  31413. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  31414. - ;;
  31415. - *)
  31416. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  31417. - ;;
  31418. - esac
  31419. - fi
  31420. - if test "$with_gnu_ld" = no; then
  31421. - case "$host_cpu" in
  31422. - hppa*64*)
  31423. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31424. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  31425. - hardcode_libdir_separator_F77=:
  31426. - hardcode_direct_F77=no
  31427. - hardcode_shlibpath_var_F77=no
  31428. - ;;
  31429. - ia64*)
  31430. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31431. - hardcode_direct_F77=no
  31432. - hardcode_shlibpath_var_F77=no
  31433. -
  31434. - # hardcode_minus_L: Not really in the search PATH,
  31435. - # but as the default location of the library.
  31436. - hardcode_minus_L_F77=yes
  31437. - ;;
  31438. - *)
  31439. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  31440. - hardcode_libdir_separator_F77=:
  31441. - hardcode_direct_F77=yes
  31442. - export_dynamic_flag_spec_F77='${wl}-E'
  31443. -
  31444. - # hardcode_minus_L: Not really in the search PATH,
  31445. - # but as the default location of the library.
  31446. - hardcode_minus_L_F77=yes
  31447. - ;;
  31448. - esac
  31449. - fi
  31450. - ;;
  31451. -
  31452. - irix5* | irix6* | nonstopux*)
  31453. - if test "$GCC" = yes; then
  31454. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31455. - else
  31456. - archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31457. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  31458. - fi
  31459. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31460. - hardcode_libdir_separator_F77=:
  31461. - link_all_deplibs_F77=yes
  31462. - ;;
  31463. -
  31464. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  31465. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31466. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  31467. - else
  31468. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  31469. - fi
  31470. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31471. - hardcode_direct_F77=yes
  31472. - hardcode_shlibpath_var_F77=no
  31473. - ;;
  31474. -
  31475. - newsos6)
  31476. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31477. - hardcode_direct_F77=yes
  31478. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31479. - hardcode_libdir_separator_F77=:
  31480. - hardcode_shlibpath_var_F77=no
  31481. - ;;
  31482. +rm -f conftest.err conftest.$ac_ext
  31483. - openbsd*)
  31484. - hardcode_direct_F77=yes
  31485. - hardcode_shlibpath_var_F77=no
  31486. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31487. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31488. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31489. - export_dynamic_flag_spec_F77='${wl}-E'
  31490. - else
  31491. - case $host_os in
  31492. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  31493. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  31494. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31495. - ;;
  31496. - *)
  31497. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  31498. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  31499. - ;;
  31500. - esac
  31501. - fi
  31502. - ;;
  31503. +done
  31504. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31505. +rm -f conftest.err conftest.$ac_ext
  31506. +if $ac_preproc_ok; then :
  31507. + break
  31508. +fi
  31509. - os2*)
  31510. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31511. - hardcode_minus_L_F77=yes
  31512. - allow_undefined_flag_F77=unsupported
  31513. - archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  31514. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  31515. - ;;
  31516. + done
  31517. + ac_cv_prog_CPP=$CPP
  31518. - osf3*)
  31519. - if test "$GCC" = yes; then
  31520. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31521. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31522. - else
  31523. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31524. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31525. - fi
  31526. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31527. - hardcode_libdir_separator_F77=:
  31528. - ;;
  31529. +fi
  31530. + CPP=$ac_cv_prog_CPP
  31531. +else
  31532. + ac_cv_prog_CPP=$CPP
  31533. +fi
  31534. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  31535. +$as_echo "$CPP" >&6; }
  31536. +ac_preproc_ok=false
  31537. +for ac_c_preproc_warn_flag in '' yes
  31538. +do
  31539. + # Use a header file that comes with gcc, so configuring glibc
  31540. + # with a fresh cross-compiler works.
  31541. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31542. + # <limits.h> exists even on freestanding compilers.
  31543. + # On the NeXT, cc -E runs the code through the compiler's parser,
  31544. + # not just through cpp. "Syntax error" is here to catch this case.
  31545. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31546. +/* end confdefs.h. */
  31547. +#ifdef __STDC__
  31548. +# include <limits.h>
  31549. +#else
  31550. +# include <assert.h>
  31551. +#endif
  31552. + Syntax error
  31553. +_ACEOF
  31554. +if ac_fn_c_try_cpp "$LINENO"; then :
  31555. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  31556. - if test "$GCC" = yes; then
  31557. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  31558. - archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  31559. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  31560. - else
  31561. - allow_undefined_flag_F77=' -expect_unresolved \*'
  31562. - archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  31563. - archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  31564. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  31565. +else
  31566. + # Broken: fails on valid input.
  31567. +continue
  31568. +fi
  31569. +rm -f conftest.err conftest.$ac_ext
  31570. - # Both c and cxx compiler support -rpath directly
  31571. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  31572. - fi
  31573. - hardcode_libdir_separator_F77=:
  31574. - ;;
  31575. + # OK, works on sane cases. Now check whether nonexistent headers
  31576. + # can be detected and how.
  31577. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31578. +/* end confdefs.h. */
  31579. +#include <ac_nonexistent.h>
  31580. +_ACEOF
  31581. +if ac_fn_c_try_cpp "$LINENO"; then :
  31582. + # Broken: success on invalid input.
  31583. +continue
  31584. +else
  31585. + # Passes both tests.
  31586. +ac_preproc_ok=:
  31587. +break
  31588. +fi
  31589. +rm -f conftest.err conftest.$ac_ext
  31590. - sco3.2v5*)
  31591. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31592. - hardcode_shlibpath_var_F77=no
  31593. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  31594. - runpath_var=LD_RUN_PATH
  31595. - hardcode_runpath_var=yes
  31596. - ;;
  31597. +done
  31598. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  31599. +rm -f conftest.err conftest.$ac_ext
  31600. +if $ac_preproc_ok; then :
  31601. - solaris*)
  31602. - no_undefined_flag_F77=' -z text'
  31603. - if test "$GCC" = yes; then
  31604. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31605. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31606. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  31607. - else
  31608. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31609. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31610. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31611. - fi
  31612. - hardcode_libdir_flag_spec_F77='-R$libdir'
  31613. - hardcode_shlibpath_var_F77=no
  31614. - case $host_os in
  31615. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  31616. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  31617. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  31618. - esac
  31619. - link_all_deplibs_F77=yes
  31620. - ;;
  31621. +else
  31622. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  31623. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  31624. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  31625. +See \`config.log' for more details." "$LINENO" 5; }
  31626. +fi
  31627. - sunos4*)
  31628. - if test "x$host_vendor" = xsequent; then
  31629. - # Use $CC to link under sequent, because it throws in some extra .o
  31630. - # files that make .init and .fini sections work.
  31631. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  31632. - else
  31633. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  31634. - fi
  31635. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31636. - hardcode_direct_F77=yes
  31637. - hardcode_minus_L_F77=yes
  31638. - hardcode_shlibpath_var_F77=no
  31639. - ;;
  31640. +ac_ext=c
  31641. +ac_cpp='$CPP $CPPFLAGS'
  31642. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  31643. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  31644. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  31645. - sysv4)
  31646. - case $host_vendor in
  31647. - sni)
  31648. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31649. - hardcode_direct_F77=yes # is this really true???
  31650. - ;;
  31651. - siemens)
  31652. - ## LD is ld it makes a PLAMLIB
  31653. - ## CC just makes a GrossModule.
  31654. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31655. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  31656. - hardcode_direct_F77=no
  31657. - ;;
  31658. - motorola)
  31659. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31660. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  31661. - ;;
  31662. - esac
  31663. - runpath_var='LD_RUN_PATH'
  31664. - hardcode_shlibpath_var_F77=no
  31665. - ;;
  31666. - sysv4.3*)
  31667. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31668. - hardcode_shlibpath_var_F77=no
  31669. - export_dynamic_flag_spec_F77='-Bexport'
  31670. - ;;
  31671. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  31672. +$as_echo_n "checking for ANSI C header files... " >&6; }
  31673. +if test "${ac_cv_header_stdc+set}" = set; then :
  31674. + $as_echo_n "(cached) " >&6
  31675. +else
  31676. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31677. +/* end confdefs.h. */
  31678. +#include <stdlib.h>
  31679. +#include <stdarg.h>
  31680. +#include <string.h>
  31681. +#include <float.h>
  31682. - sysv4*MP*)
  31683. - if test -d /usr/nec; then
  31684. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31685. - hardcode_shlibpath_var_F77=no
  31686. - runpath_var=LD_RUN_PATH
  31687. - hardcode_runpath_var=yes
  31688. - ld_shlibs_F77=yes
  31689. - fi
  31690. - ;;
  31691. +int
  31692. +main ()
  31693. +{
  31694. - sysv4.2uw2*)
  31695. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  31696. - hardcode_direct_F77=yes
  31697. - hardcode_minus_L_F77=no
  31698. - hardcode_shlibpath_var_F77=no
  31699. - hardcode_runpath_var=yes
  31700. - runpath_var=LD_RUN_PATH
  31701. - ;;
  31702. + ;
  31703. + return 0;
  31704. +}
  31705. +_ACEOF
  31706. +if ac_fn_c_try_compile "$LINENO"; then :
  31707. + ac_cv_header_stdc=yes
  31708. +else
  31709. + ac_cv_header_stdc=no
  31710. +fi
  31711. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  31712. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  31713. - no_undefined_flag_F77='${wl}-z ${wl}text'
  31714. - if test "$GCC" = yes; then
  31715. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31716. - else
  31717. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  31718. - fi
  31719. - runpath_var='LD_RUN_PATH'
  31720. - hardcode_shlibpath_var_F77=no
  31721. - ;;
  31722. +if test $ac_cv_header_stdc = yes; then
  31723. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  31724. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31725. +/* end confdefs.h. */
  31726. +#include <string.h>
  31727. - sysv5*)
  31728. - no_undefined_flag_F77=' -z text'
  31729. - # $CC -shared without GNU ld will not create a library from C++
  31730. - # object files and a static libstdc++, better avoid it by now
  31731. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31732. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  31733. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  31734. - hardcode_libdir_flag_spec_F77=
  31735. - hardcode_shlibpath_var_F77=no
  31736. - runpath_var='LD_RUN_PATH'
  31737. - ;;
  31738. +_ACEOF
  31739. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31740. + $EGREP "memchr" >/dev/null 2>&1; then :
  31741. - uts4*)
  31742. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  31743. - hardcode_libdir_flag_spec_F77='-L$libdir'
  31744. - hardcode_shlibpath_var_F77=no
  31745. - ;;
  31746. +else
  31747. + ac_cv_header_stdc=no
  31748. +fi
  31749. +rm -f conftest*
  31750. - *)
  31751. - ld_shlibs_F77=no
  31752. - ;;
  31753. - esac
  31754. - fi
  31755. +fi
  31756. +
  31757. +if test $ac_cv_header_stdc = yes; then
  31758. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  31759. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31760. +/* end confdefs.h. */
  31761. +#include <stdlib.h>
  31762. -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  31763. -echo "${ECHO_T}$ld_shlibs_F77" >&6
  31764. -test "$ld_shlibs_F77" = no && can_build_shared=no
  31765. +_ACEOF
  31766. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  31767. + $EGREP "free" >/dev/null 2>&1; then :
  31768. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31769. -if test "$GCC" = yes; then
  31770. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31771. +else
  31772. + ac_cv_header_stdc=no
  31773. fi
  31774. +rm -f conftest*
  31775. -#
  31776. -# Do we need to explicitly link libc?
  31777. -#
  31778. -case "x$archive_cmds_need_lc_F77" in
  31779. -x|xyes)
  31780. - # Assume -lc should be added
  31781. - archive_cmds_need_lc_F77=yes
  31782. +fi
  31783. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31784. - case $archive_cmds_F77 in
  31785. - *'~'*)
  31786. - # FIXME: we may have to deal with multi-command sequences.
  31787. - ;;
  31788. - '$CC '*)
  31789. - # Test whether the compiler implicitly links with -lc since on some
  31790. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31791. - # to ld, don't add -lc before -lgcc.
  31792. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31793. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  31794. - $rm conftest*
  31795. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31796. +if test $ac_cv_header_stdc = yes; then
  31797. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  31798. + if test "$cross_compiling" = yes; then :
  31799. + :
  31800. +else
  31801. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  31802. +/* end confdefs.h. */
  31803. +#include <ctype.h>
  31804. +#include <stdlib.h>
  31805. +#if ((' ' & 0x0FF) == 0x020)
  31806. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  31807. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  31808. +#else
  31809. +# define ISLOWER(c) \
  31810. + (('a' <= (c) && (c) <= 'i') \
  31811. + || ('j' <= (c) && (c) <= 'r') \
  31812. + || ('s' <= (c) && (c) <= 'z'))
  31813. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  31814. +#endif
  31815. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31816. - (eval $ac_compile) 2>&5
  31817. - ac_status=$?
  31818. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31819. - (exit $ac_status); } 2>conftest.err; then
  31820. - soname=conftest
  31821. - lib=conftest
  31822. - libobjs=conftest.$ac_objext
  31823. - deplibs=
  31824. - wl=$lt_prog_compiler_wl_F77
  31825. - compiler_flags=-v
  31826. - linker_flags=-v
  31827. - verstring=
  31828. - output_objdir=.
  31829. - libname=conftest
  31830. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  31831. - allow_undefined_flag_F77=
  31832. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31833. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31834. - ac_status=$?
  31835. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31836. - (exit $ac_status); }
  31837. - then
  31838. - archive_cmds_need_lc_F77=no
  31839. - else
  31840. - archive_cmds_need_lc_F77=yes
  31841. - fi
  31842. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  31843. - else
  31844. - cat conftest.err 1>&5
  31845. - fi
  31846. - $rm conftest*
  31847. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  31848. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  31849. - ;;
  31850. - esac
  31851. - fi
  31852. - ;;
  31853. -esac
  31854. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  31855. +int
  31856. +main ()
  31857. +{
  31858. + int i;
  31859. + for (i = 0; i < 256; i++)
  31860. + if (XOR (islower (i), ISLOWER (i))
  31861. + || toupper (i) != TOUPPER (i))
  31862. + return 2;
  31863. + return 0;
  31864. +}
  31865. +_ACEOF
  31866. +if ac_fn_c_try_run "$LINENO"; then :
  31867. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31868. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  31869. -library_names_spec=
  31870. -libname_spec='lib$name'
  31871. -soname_spec=
  31872. -shrext_cmds=".so"
  31873. -postinstall_cmds=
  31874. -postuninstall_cmds=
  31875. -finish_cmds=
  31876. -finish_eval=
  31877. -shlibpath_var=
  31878. -shlibpath_overrides_runpath=unknown
  31879. -version_type=none
  31880. -dynamic_linker="$host_os ld.so"
  31881. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31882. -if test "$GCC" = yes; then
  31883. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31884. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  31885. - # if the path contains ";" then we assume it to be the separator
  31886. - # otherwise default to the standard path separator (i.e. ":") - it is
  31887. - # assumed that no part of a normal pathname contains ";" but that should
  31888. - # okay in the real world where ";" in dirpaths is itself problematic.
  31889. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31890. - else
  31891. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31892. - fi
  31893. else
  31894. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31895. + ac_cv_header_stdc=no
  31896. +fi
  31897. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  31898. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  31899. fi
  31900. -need_lib_prefix=unknown
  31901. -hardcode_into_libs=no
  31902. -# when you set need_version to no, make sure it does not cause -set_version
  31903. -# flags to be left without arguments
  31904. -need_version=unknown
  31905. +fi
  31906. +fi
  31907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  31908. +$as_echo "$ac_cv_header_stdc" >&6; }
  31909. +if test $ac_cv_header_stdc = yes; then
  31910. -case $host_os in
  31911. -aix3*)
  31912. - version_type=linux
  31913. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31914. - shlibpath_var=LIBPATH
  31915. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  31916. - # AIX 3 has no versioning support, so we append a major version to the name.
  31917. - soname_spec='${libname}${release}${shared_ext}$major'
  31918. - ;;
  31919. +fi
  31920. -aix4* | aix5*)
  31921. - version_type=linux
  31922. - need_lib_prefix=no
  31923. - need_version=no
  31924. - hardcode_into_libs=yes
  31925. - if test "$host_cpu" = ia64; then
  31926. - # AIX 5 supports IA64
  31927. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31928. - shlibpath_var=LD_LIBRARY_PATH
  31929. - else
  31930. - # With GCC up to 2.95.x, collect2 would create an import file
  31931. - # for dependence libraries. The import file would start with
  31932. - # the line `#! .'. This would cause the generated library to
  31933. - # depend on `.', always an invalid library. This was fixed in
  31934. - # development snapshots of GCC prior to 3.0.
  31935. - case $host_os in
  31936. - aix4 | aix4.[01] | aix4.[01].*)
  31937. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31938. - echo ' yes '
  31939. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31940. - :
  31941. - else
  31942. - can_build_shared=no
  31943. - fi
  31944. - ;;
  31945. - esac
  31946. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31947. - # soname into executable. Probably we can add versioning support to
  31948. - # collect2, so additional links can be useful in future.
  31949. - if test "$aix_use_runtimelinking" = yes; then
  31950. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31951. - # instead of lib<name>.a to let people know that these are not
  31952. - # typical AIX shared libraries.
  31953. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31954. - else
  31955. - # We preserve .a as extension for shared libraries through AIX4.2
  31956. - # and later when we are not doing run time linking.
  31957. - library_names_spec='${libname}${release}.a $libname.a'
  31958. - soname_spec='${libname}${release}${shared_ext}$major'
  31959. - fi
  31960. - shlibpath_var=LIBPATH
  31961. - fi
  31962. - ;;
  31963. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  31964. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  31965. + inttypes.h stdint.h unistd.h
  31966. +do :
  31967. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  31968. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  31969. +"
  31970. +eval as_val=\$$as_ac_Header
  31971. + if test "x$as_val" = x""yes; then :
  31972. + cat >>confdefs.h <<_ACEOF
  31973. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  31974. +_ACEOF
  31975. -amigaos*)
  31976. - library_names_spec='$libname.ixlibrary $libname.a'
  31977. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31978. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  31979. - ;;
  31980. +fi
  31981. -beos*)
  31982. - library_names_spec='${libname}${shared_ext}'
  31983. - dynamic_linker="$host_os ld.so"
  31984. - shlibpath_var=LIBRARY_PATH
  31985. - ;;
  31986. +done
  31987. -bsdi4*)
  31988. - version_type=linux
  31989. - need_version=no
  31990. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31991. - soname_spec='${libname}${release}${shared_ext}$major'
  31992. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31993. - shlibpath_var=LD_LIBRARY_PATH
  31994. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31995. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31996. - # the default ld.so.conf also contains /usr/contrib/lib and
  31997. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31998. - # libtool to hard-code these into programs
  31999. - ;;
  32000. -cygwin* | mingw* | pw32*)
  32001. - version_type=windows
  32002. - shrext_cmds=".dll"
  32003. - need_version=no
  32004. - need_lib_prefix=no
  32005. +for ac_header in dlfcn.h
  32006. +do :
  32007. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  32008. +"
  32009. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  32010. + cat >>confdefs.h <<_ACEOF
  32011. +#define HAVE_DLFCN_H 1
  32012. +_ACEOF
  32013. - case $GCC,$host_os in
  32014. - yes,cygwin* | yes,mingw* | yes,pw32*)
  32015. - library_names_spec='$libname.dll.a'
  32016. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  32017. - postinstall_cmds='base_file=`basename \${file}`~
  32018. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  32019. - dldir=$destdir/`dirname \$dlpath`~
  32020. - test -d \$dldir || mkdir -p \$dldir~
  32021. - $install_prog $dir/$dlname \$dldir/$dlname'
  32022. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  32023. - dlpath=$dir/\$dldll~
  32024. - $rm \$dlpath'
  32025. - shlibpath_overrides_runpath=yes
  32026. +fi
  32027. - case $host_os in
  32028. - cygwin*)
  32029. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  32030. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32031. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  32032. - ;;
  32033. - mingw*)
  32034. - # MinGW DLLs use traditional 'lib' prefix
  32035. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  32036. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  32037. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  32038. - # It is most probably a Windows format PATH printed by
  32039. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  32040. - # path with ; separators, and with drive letters. We can handle the
  32041. - # drive letters (cygwin fileutils understands them), so leave them,
  32042. - # especially as we might pass files found there to a mingw objdump,
  32043. - # which wouldn't understand a cygwinified path. Ahh.
  32044. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  32045. - else
  32046. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  32047. - fi
  32048. - ;;
  32049. - pw32*)
  32050. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  32051. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  32052. - ;;
  32053. - esac
  32054. - ;;
  32055. +done
  32056. - *)
  32057. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  32058. - ;;
  32059. - esac
  32060. - dynamic_linker='Win32 ld.exe'
  32061. - # FIXME: first we should search . and the directory the executable is in
  32062. - shlibpath_var=PATH
  32063. - ;;
  32064. -darwin* | rhapsody*)
  32065. - dynamic_linker="$host_os dyld"
  32066. - version_type=darwin
  32067. - need_lib_prefix=no
  32068. - need_version=no
  32069. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  32070. - soname_spec='${libname}${release}${major}$shared_ext'
  32071. - shlibpath_overrides_runpath=yes
  32072. - shlibpath_var=DYLD_LIBRARY_PATH
  32073. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  32074. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  32075. - if test "$GCC" = yes; then
  32076. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  32077. - else
  32078. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  32079. - fi
  32080. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  32081. - ;;
  32082. -dgux*)
  32083. - version_type=linux
  32084. - need_lib_prefix=no
  32085. - need_version=no
  32086. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  32087. - soname_spec='${libname}${release}${shared_ext}$major'
  32088. - shlibpath_var=LD_LIBRARY_PATH
  32089. - ;;
  32090. +# Set options
  32091. -freebsd1*)
  32092. - dynamic_linker=no
  32093. - ;;
  32094. -kfreebsd*-gnu)
  32095. - version_type=linux
  32096. - need_lib_prefix=no
  32097. - need_version=no
  32098. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32099. - soname_spec='${libname}${release}${shared_ext}$major'
  32100. - shlibpath_var=LD_LIBRARY_PATH
  32101. - shlibpath_overrides_runpath=no
  32102. - hardcode_into_libs=yes
  32103. - dynamic_linker='GNU ld.so'
  32104. - ;;
  32105. -freebsd*)
  32106. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  32107. - version_type=freebsd-$objformat
  32108. - case $version_type in
  32109. - freebsd-elf*)
  32110. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  32111. - need_version=no
  32112. - need_lib_prefix=no
  32113. - ;;
  32114. - freebsd-*)
  32115. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  32116. - need_version=yes
  32117. - ;;
  32118. - esac
  32119. - shlibpath_var=LD_LIBRARY_PATH
  32120. - case $host_os in
  32121. - freebsd2*)
  32122. - shlibpath_overrides_runpath=yes
  32123. - ;;
  32124. - freebsd3.01* | freebsdelf3.01*)
  32125. - shlibpath_overrides_runpath=yes
  32126. - hardcode_into_libs=yes
  32127. - ;;
  32128. - *) # from 3.2 on
  32129. - shlibpath_overrides_runpath=no
  32130. - hardcode_into_libs=yes
  32131. - ;;
  32132. - esac
  32133. - ;;
  32134. + enable_dlopen=no
  32135. -gnu*)
  32136. - version_type=linux
  32137. - need_lib_prefix=no
  32138. - need_version=no
  32139. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  32140. - soname_spec='${libname}${release}${shared_ext}$major'
  32141. - shlibpath_var=LD_LIBRARY_PATH
  32142. - hardcode_into_libs=yes
  32143. - ;;
  32144. -hpux9* | hpux10* | hpux11*)
  32145. - # Give a soname corresponding to the major version so that dld.sl refuses to
  32146. - # link against other versions.
  32147. - version_type=sunos
  32148. - need_lib_prefix=no
  32149. - need_version=no
  32150. - case "$host_cpu" in
  32151. - ia64*)
  32152. - shrext_cmds='.so'
  32153. - hardcode_into_libs=yes
  32154. - dynamic_linker="$host_os dld.so"
  32155. - shlibpath_var=LD_LIBRARY_PATH
  32156. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32157. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32158. - soname_spec='${libname}${release}${shared_ext}$major'
  32159. - if test "X$HPUX_IA64_MODE" = X32; then
  32160. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  32161. - else
  32162. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  32163. - fi
  32164. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32165. - ;;
  32166. - hppa*64*)
  32167. - shrext_cmds='.sl'
  32168. - hardcode_into_libs=yes
  32169. - dynamic_linker="$host_os dld.sl"
  32170. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  32171. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  32172. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32173. - soname_spec='${libname}${release}${shared_ext}$major'
  32174. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  32175. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  32176. - ;;
  32177. - *)
  32178. - shrext_cmds='.sl'
  32179. - dynamic_linker="$host_os dld.sl"
  32180. - shlibpath_var=SHLIB_PATH
  32181. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  32182. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32183. - soname_spec='${libname}${release}${shared_ext}$major'
  32184. - ;;
  32185. - esac
  32186. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  32187. - postinstall_cmds='chmod 555 $lib'
  32188. - ;;
  32189. + enable_win32_dll=no
  32190. -irix5* | irix6* | nonstopux*)
  32191. - case $host_os in
  32192. - nonstopux*) version_type=nonstopux ;;
  32193. +
  32194. + # Check whether --enable-shared was given.
  32195. +if test "${enable_shared+set}" = set; then :
  32196. + enableval=$enable_shared; p=${PACKAGE-default}
  32197. + case $enableval in
  32198. + yes) enable_shared=yes ;;
  32199. + no) enable_shared=no ;;
  32200. *)
  32201. - if test "$lt_cv_prog_gnu_ld" = yes; then
  32202. - version_type=linux
  32203. - else
  32204. - version_type=irix
  32205. - fi ;;
  32206. - esac
  32207. - need_lib_prefix=no
  32208. - need_version=no
  32209. - soname_spec='${libname}${release}${shared_ext}$major'
  32210. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  32211. - case $host_os in
  32212. - irix5* | nonstopux*)
  32213. - libsuff= shlibsuff=
  32214. - ;;
  32215. - *)
  32216. - case $LD in # libtool.m4 will add one of these switches to LD
  32217. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  32218. - libsuff= shlibsuff= libmagic=32-bit;;
  32219. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  32220. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  32221. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  32222. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  32223. - *) libsuff= shlibsuff= libmagic=never-match;;
  32224. + enable_shared=no
  32225. + # Look at the argument we got. We use all the common list separators.
  32226. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  32227. + for pkg in $enableval; do
  32228. + IFS="$lt_save_ifs"
  32229. + if test "X$pkg" = "X$p"; then
  32230. + enable_shared=yes
  32231. + fi
  32232. + done
  32233. + IFS="$lt_save_ifs"
  32234. + ;;
  32235. esac
  32236. - ;;
  32237. - esac
  32238. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  32239. - shlibpath_overrides_runpath=no
  32240. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  32241. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  32242. - hardcode_into_libs=yes
  32243. - ;;
  32244. +else
  32245. + enable_shared=yes
  32246. +fi
  32247. -# No shared lib support for Linux oldld, aout, or coff.
  32248. -linux*oldld* | linux*aout* | linux*coff*)
  32249. - dynamic_linker=no
  32250. - ;;
  32251. -# This must be Linux ELF.
  32252. -linux*)
  32253. - version_type=linux
  32254. - need_lib_prefix=no
  32255. - need_version=no
  32256. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32257. - soname_spec='${libname}${release}${shared_ext}$major'
  32258. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  32259. - shlibpath_var=LD_LIBRARY_PATH
  32260. - shlibpath_overrides_runpath=no
  32261. - # This implies no fast_install, which is unacceptable.
  32262. - # Some rework will be needed to allow for fast_install
  32263. - # before this can be enabled.
  32264. - hardcode_into_libs=yes
  32265. - # Append ld.so.conf contents to the search path
  32266. - if test -f /etc/ld.so.conf; then
  32267. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  32268. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  32269. - fi
  32270. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  32271. - # powerpc, because MkLinux only supported shared libraries with the
  32272. - # GNU dynamic linker. Since this was broken with cross compilers,
  32273. - # most powerpc-linux boxes support dynamic linking these days and
  32274. - # people can always --disable-shared, the test was removed, and we
  32275. - # assume the GNU/Linux dynamic linker is in use.
  32276. - dynamic_linker='GNU/Linux ld.so'
  32277. - ;;
  32278. -netbsdelf*-gnu)
  32279. - version_type=linux
  32280. - need_lib_prefix=no
  32281. - need_version=no
  32282. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32283. - soname_spec='${libname}${release}${shared_ext}$major'
  32284. - shlibpath_var=LD_LIBRARY_PATH
  32285. - shlibpath_overrides_runpath=no
  32286. - hardcode_into_libs=yes
  32287. - dynamic_linker='NetBSD ld.elf_so'
  32288. - ;;
  32289. -knetbsd*-gnu)
  32290. - version_type=linux
  32291. - need_lib_prefix=no
  32292. - need_version=no
  32293. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32294. - soname_spec='${libname}${release}${shared_ext}$major'
  32295. - shlibpath_var=LD_LIBRARY_PATH
  32296. - shlibpath_overrides_runpath=no
  32297. - hardcode_into_libs=yes
  32298. - dynamic_linker='GNU ld.so'
  32299. - ;;
  32300. -netbsd*)
  32301. - version_type=sunos
  32302. - need_lib_prefix=no
  32303. - need_version=no
  32304. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  32305. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32306. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32307. - dynamic_linker='NetBSD (a.out) ld.so'
  32308. - else
  32309. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  32310. - soname_spec='${libname}${release}${shared_ext}$major'
  32311. - dynamic_linker='NetBSD ld.elf_so'
  32312. - fi
  32313. - shlibpath_var=LD_LIBRARY_PATH
  32314. - shlibpath_overrides_runpath=yes
  32315. - hardcode_into_libs=yes
  32316. - ;;
  32317. -newsos6)
  32318. - version_type=linux
  32319. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32320. - shlibpath_var=LD_LIBRARY_PATH
  32321. - shlibpath_overrides_runpath=yes
  32322. - ;;
  32323. -nto-qnx*)
  32324. - version_type=linux
  32325. - need_lib_prefix=no
  32326. - need_version=no
  32327. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32328. - soname_spec='${libname}${release}${shared_ext}$major'
  32329. - shlibpath_var=LD_LIBRARY_PATH
  32330. - shlibpath_overrides_runpath=yes
  32331. - ;;
  32332. + # Check whether --enable-static was given.
  32333. +if test "${enable_static+set}" = set; then :
  32334. + enableval=$enable_static; p=${PACKAGE-default}
  32335. + case $enableval in
  32336. + yes) enable_static=yes ;;
  32337. + no) enable_static=no ;;
  32338. + *)
  32339. + enable_static=no
  32340. + # Look at the argument we got. We use all the common list separators.
  32341. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  32342. + for pkg in $enableval; do
  32343. + IFS="$lt_save_ifs"
  32344. + if test "X$pkg" = "X$p"; then
  32345. + enable_static=yes
  32346. + fi
  32347. + done
  32348. + IFS="$lt_save_ifs"
  32349. + ;;
  32350. + esac
  32351. +else
  32352. + enable_static=yes
  32353. +fi
  32354. -openbsd*)
  32355. - version_type=sunos
  32356. - need_lib_prefix=no
  32357. - need_version=yes
  32358. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32359. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  32360. - shlibpath_var=LD_LIBRARY_PATH
  32361. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  32362. - case $host_os in
  32363. - openbsd2.[89] | openbsd2.[89].*)
  32364. - shlibpath_overrides_runpath=no
  32365. - ;;
  32366. - *)
  32367. - shlibpath_overrides_runpath=yes
  32368. - ;;
  32369. - esac
  32370. - else
  32371. - shlibpath_overrides_runpath=yes
  32372. - fi
  32373. - ;;
  32374. -os2*)
  32375. - libname_spec='$name'
  32376. - shrext_cmds=".dll"
  32377. - need_lib_prefix=no
  32378. - library_names_spec='$libname${shared_ext} $libname.a'
  32379. - dynamic_linker='OS/2 ld.exe'
  32380. - shlibpath_var=LIBPATH
  32381. - ;;
  32382. -osf3* | osf4* | osf5*)
  32383. - version_type=osf
  32384. - need_lib_prefix=no
  32385. - need_version=no
  32386. - soname_spec='${libname}${release}${shared_ext}$major'
  32387. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32388. - shlibpath_var=LD_LIBRARY_PATH
  32389. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  32390. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  32391. - ;;
  32392. -sco3.2v5*)
  32393. - version_type=osf
  32394. - soname_spec='${libname}${release}${shared_ext}$major'
  32395. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32396. - shlibpath_var=LD_LIBRARY_PATH
  32397. - ;;
  32398. -solaris*)
  32399. - version_type=linux
  32400. - need_lib_prefix=no
  32401. - need_version=no
  32402. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32403. - soname_spec='${libname}${release}${shared_ext}$major'
  32404. - shlibpath_var=LD_LIBRARY_PATH
  32405. - shlibpath_overrides_runpath=yes
  32406. - hardcode_into_libs=yes
  32407. - # ldd complains unless libraries are executable
  32408. - postinstall_cmds='chmod +x $lib'
  32409. - ;;
  32410. -sunos4*)
  32411. - version_type=sunos
  32412. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  32413. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  32414. - shlibpath_var=LD_LIBRARY_PATH
  32415. - shlibpath_overrides_runpath=yes
  32416. - if test "$with_gnu_ld" = yes; then
  32417. - need_lib_prefix=no
  32418. - fi
  32419. - need_version=yes
  32420. - ;;
  32421. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  32422. - version_type=linux
  32423. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32424. - soname_spec='${libname}${release}${shared_ext}$major'
  32425. - shlibpath_var=LD_LIBRARY_PATH
  32426. - case $host_vendor in
  32427. - sni)
  32428. - shlibpath_overrides_runpath=no
  32429. - need_lib_prefix=no
  32430. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  32431. - runpath_var=LD_RUN_PATH
  32432. - ;;
  32433. - siemens)
  32434. - need_lib_prefix=no
  32435. - ;;
  32436. - motorola)
  32437. - need_lib_prefix=no
  32438. - need_version=no
  32439. - shlibpath_overrides_runpath=no
  32440. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  32441. - ;;
  32442. - esac
  32443. - ;;
  32444. -sysv4*MP*)
  32445. - if test -d /usr/nec ;then
  32446. - version_type=linux
  32447. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  32448. - soname_spec='$libname${shared_ext}.$major'
  32449. - shlibpath_var=LD_LIBRARY_PATH
  32450. - fi
  32451. - ;;
  32452. -uts4*)
  32453. - version_type=linux
  32454. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  32455. - soname_spec='${libname}${release}${shared_ext}$major'
  32456. - shlibpath_var=LD_LIBRARY_PATH
  32457. - ;;
  32458. -*)
  32459. - dynamic_linker=no
  32460. - ;;
  32461. -esac
  32462. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  32463. -echo "${ECHO_T}$dynamic_linker" >&6
  32464. -test "$dynamic_linker" = no && can_build_shared=no
  32465. +# Check whether --with-pic was given.
  32466. +if test "${with_pic+set}" = set; then :
  32467. + withval=$with_pic; pic_mode="$withval"
  32468. +else
  32469. + pic_mode=default
  32470. +fi
  32471. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  32472. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  32473. -hardcode_action_F77=
  32474. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  32475. - test -n "$runpath_var F77" || \
  32476. - test "X$hardcode_automatic_F77"="Xyes" ; then
  32477. - # We can hardcode non-existant directories.
  32478. - if test "$hardcode_direct_F77" != no &&
  32479. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  32480. - # have to relink, otherwise we might link with an installed library
  32481. - # when we should be linking with a yet-to-be-installed one
  32482. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  32483. - test "$hardcode_minus_L_F77" != no; then
  32484. - # Linking always hardcodes the temporary library directory.
  32485. - hardcode_action_F77=relink
  32486. - else
  32487. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  32488. - hardcode_action_F77=immediate
  32489. - fi
  32490. +test -z "$pic_mode" && pic_mode=default
  32491. +
  32492. +
  32493. +
  32494. +
  32495. +
  32496. +
  32497. +
  32498. + # Check whether --enable-fast-install was given.
  32499. +if test "${enable_fast_install+set}" = set; then :
  32500. + enableval=$enable_fast_install; p=${PACKAGE-default}
  32501. + case $enableval in
  32502. + yes) enable_fast_install=yes ;;
  32503. + no) enable_fast_install=no ;;
  32504. + *)
  32505. + enable_fast_install=no
  32506. + # Look at the argument we got. We use all the common list separators.
  32507. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  32508. + for pkg in $enableval; do
  32509. + IFS="$lt_save_ifs"
  32510. + if test "X$pkg" = "X$p"; then
  32511. + enable_fast_install=yes
  32512. + fi
  32513. + done
  32514. + IFS="$lt_save_ifs"
  32515. + ;;
  32516. + esac
  32517. else
  32518. - # We cannot hardcode anything, or else we can only hardcode existing
  32519. - # directories.
  32520. - hardcode_action_F77=unsupported
  32521. + enable_fast_install=yes
  32522. fi
  32523. -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  32524. -echo "${ECHO_T}$hardcode_action_F77" >&6
  32525. -if test "$hardcode_action_F77" = relink; then
  32526. - # Fast installation is not supported
  32527. - enable_fast_install=no
  32528. -elif test "$shlibpath_overrides_runpath" = yes ||
  32529. - test "$enable_shared" = no; then
  32530. - # Fast installation is not necessary
  32531. - enable_fast_install=needless
  32532. -fi
  32533. -striplib=
  32534. -old_striplib=
  32535. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  32536. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  32537. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  32538. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  32539. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  32540. - echo "$as_me:$LINENO: result: yes" >&5
  32541. -echo "${ECHO_T}yes" >&6
  32542. -else
  32543. -# FIXME - insert some real tests, host_os isn't really good enough
  32544. - case $host_os in
  32545. - darwin*)
  32546. - if test -n "$STRIP" ; then
  32547. - striplib="$STRIP -x"
  32548. - echo "$as_me:$LINENO: result: yes" >&5
  32549. -echo "${ECHO_T}yes" >&6
  32550. - else
  32551. - echo "$as_me:$LINENO: result: no" >&5
  32552. -echo "${ECHO_T}no" >&6
  32553. -fi
  32554. - ;;
  32555. - *)
  32556. - echo "$as_me:$LINENO: result: no" >&5
  32557. -echo "${ECHO_T}no" >&6
  32558. - ;;
  32559. - esac
  32560. -fi
  32561. -# The else clause should only fire when bootstrapping the
  32562. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32563. -# with your package, and you will get complaints that there are
  32564. -# no rules to generate ltmain.sh.
  32565. -if test -f "$ltmain"; then
  32566. - # See if we are running on zsh, and set the options which allow our commands through
  32567. - # without removal of \ escapes.
  32568. - if test -n "${ZSH_VERSION+set}" ; then
  32569. - setopt NO_GLOB_SUBST
  32570. - fi
  32571. - # Now quote all the things that may contain metacharacters while being
  32572. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32573. - # variables and quote the copies for generation of the libtool script.
  32574. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  32575. - SED SHELL STRIP \
  32576. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32577. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32578. - deplibs_check_method reload_flag reload_cmds need_locks \
  32579. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32580. - lt_cv_sys_global_symbol_to_c_name_address \
  32581. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32582. - old_postinstall_cmds old_postuninstall_cmds \
  32583. - compiler_F77 \
  32584. - CC_F77 \
  32585. - LD_F77 \
  32586. - lt_prog_compiler_wl_F77 \
  32587. - lt_prog_compiler_pic_F77 \
  32588. - lt_prog_compiler_static_F77 \
  32589. - lt_prog_compiler_no_builtin_flag_F77 \
  32590. - export_dynamic_flag_spec_F77 \
  32591. - thread_safe_flag_spec_F77 \
  32592. - whole_archive_flag_spec_F77 \
  32593. - enable_shared_with_static_runtimes_F77 \
  32594. - old_archive_cmds_F77 \
  32595. - old_archive_from_new_cmds_F77 \
  32596. - predep_objects_F77 \
  32597. - postdep_objects_F77 \
  32598. - predeps_F77 \
  32599. - postdeps_F77 \
  32600. - compiler_lib_search_path_F77 \
  32601. - archive_cmds_F77 \
  32602. - archive_expsym_cmds_F77 \
  32603. - postinstall_cmds_F77 \
  32604. - postuninstall_cmds_F77 \
  32605. - old_archive_from_expsyms_cmds_F77 \
  32606. - allow_undefined_flag_F77 \
  32607. - no_undefined_flag_F77 \
  32608. - export_symbols_cmds_F77 \
  32609. - hardcode_libdir_flag_spec_F77 \
  32610. - hardcode_libdir_flag_spec_ld_F77 \
  32611. - hardcode_libdir_separator_F77 \
  32612. - hardcode_automatic_F77 \
  32613. - module_cmds_F77 \
  32614. - module_expsym_cmds_F77 \
  32615. - lt_cv_prog_compiler_c_o_F77 \
  32616. - exclude_expsyms_F77 \
  32617. - include_expsyms_F77; do
  32618. -
  32619. - case $var in
  32620. - old_archive_cmds_F77 | \
  32621. - old_archive_from_new_cmds_F77 | \
  32622. - archive_cmds_F77 | \
  32623. - archive_expsym_cmds_F77 | \
  32624. - module_cmds_F77 | \
  32625. - module_expsym_cmds_F77 | \
  32626. - old_archive_from_expsyms_cmds_F77 | \
  32627. - export_symbols_cmds_F77 | \
  32628. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32629. - postinstall_cmds | postuninstall_cmds | \
  32630. - old_postinstall_cmds | old_postuninstall_cmds | \
  32631. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32632. - # Double-quote double-evaled strings.
  32633. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32634. - ;;
  32635. - *)
  32636. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32637. - ;;
  32638. - esac
  32639. - done
  32640. - case $lt_echo in
  32641. - *'\$0 --fallback-echo"')
  32642. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32643. - ;;
  32644. - esac
  32645. -cfgfile="$ofile"
  32646. - cat <<__EOF__ >> "$cfgfile"
  32647. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32648. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32649. -# Shell to use when invoking shell scripts.
  32650. -SHELL=$lt_SHELL
  32651. -# Whether or not to build shared libraries.
  32652. -build_libtool_libs=$enable_shared
  32653. +# This can be used to rebuild libtool when needed
  32654. +LIBTOOL_DEPS="$ltmain"
  32655. -# Whether or not to build static libraries.
  32656. -build_old_libs=$enable_static
  32657. +# Always use our own libtool.
  32658. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  32659. -# Whether or not to add -lc for building shared libraries.
  32660. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  32661. -# Whether or not to disallow shared libs when runtime libs are static
  32662. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  32663. -# Whether or not to optimize for fast installation.
  32664. -fast_install=$enable_fast_install
  32665. -# The host system.
  32666. -host_alias=$host_alias
  32667. -host=$host
  32668. -# An echo program that does not interpret backslashes.
  32669. -echo=$lt_echo
  32670. -# The archiver.
  32671. -AR=$lt_AR
  32672. -AR_FLAGS=$lt_AR_FLAGS
  32673. -# A C compiler.
  32674. -LTCC=$lt_LTCC
  32675. -# A language-specific compiler.
  32676. -CC=$lt_compiler_F77
  32677. -# Is the compiler the GNU C compiler?
  32678. -with_gcc=$GCC_F77
  32679. -# An ERE matcher.
  32680. -EGREP=$lt_EGREP
  32681. -# The linker used to build libraries.
  32682. -LD=$lt_LD_F77
  32683. -# Whether we need hard or soft links.
  32684. -LN_S=$lt_LN_S
  32685. -# A BSD-compatible nm program.
  32686. -NM=$lt_NM
  32687. -# A symbol stripping program
  32688. -STRIP=$lt_STRIP
  32689. -# Used to examine libraries when file_magic_cmd begins "file"
  32690. -MAGIC_CMD=$MAGIC_CMD
  32691. -# Used on cygwin: DLL creation program.
  32692. -DLLTOOL="$DLLTOOL"
  32693. -# Used on cygwin: object dumper.
  32694. -OBJDUMP="$OBJDUMP"
  32695. -# Used on cygwin: assembler.
  32696. -AS="$AS"
  32697. -# The name of the directory that contains temporary libtool files.
  32698. -objdir=$objdir
  32699. -# How to create reloadable object files.
  32700. -reload_flag=$lt_reload_flag
  32701. -reload_cmds=$lt_reload_cmds
  32702. -# How to pass a linker flag through the compiler.
  32703. -wl=$lt_lt_prog_compiler_wl_F77
  32704. -# Object file suffix (normally "o").
  32705. -objext="$ac_objext"
  32706. -# Old archive suffix (normally "a").
  32707. -libext="$libext"
  32708. -# Shared library suffix (normally ".so").
  32709. -shrext_cmds='$shrext_cmds'
  32710. -# Executable file suffix (normally "").
  32711. -exeext="$exeext"
  32712. +test -z "$LN_S" && LN_S="ln -s"
  32713. -# Additional compiler flags for building library objects.
  32714. -pic_flag=$lt_lt_prog_compiler_pic_F77
  32715. -pic_mode=$pic_mode
  32716. -# What is the maximum length of a command?
  32717. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32718. -# Does compiler simultaneously support -c and -o options?
  32719. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  32720. -# Must we lock files when doing compilation ?
  32721. -need_locks=$lt_need_locks
  32722. -# Do we need the lib prefix for modules?
  32723. -need_lib_prefix=$need_lib_prefix
  32724. -# Do we need a version for libraries?
  32725. -need_version=$need_version
  32726. -# Whether dlopen is supported.
  32727. -dlopen_support=$enable_dlopen
  32728. -# Whether dlopen of programs is supported.
  32729. -dlopen_self=$enable_dlopen_self
  32730. -# Whether dlopen of statically linked programs is supported.
  32731. -dlopen_self_static=$enable_dlopen_self_static
  32732. -# Compiler flag to prevent dynamic linking.
  32733. -link_static_flag=$lt_lt_prog_compiler_static_F77
  32734. -# Compiler flag to turn off builtin functions.
  32735. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  32736. -# Compiler flag to allow reflexive dlopens.
  32737. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  32738. -# Compiler flag to generate shared objects directly from archives.
  32739. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  32740. -# Compiler flag to generate thread-safe objects.
  32741. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  32742. +if test -n "${ZSH_VERSION+set}" ; then
  32743. + setopt NO_GLOB_SUBST
  32744. +fi
  32745. -# Library versioning type.
  32746. -version_type=$version_type
  32747. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  32748. +$as_echo_n "checking for objdir... " >&6; }
  32749. +if test "${lt_cv_objdir+set}" = set; then :
  32750. + $as_echo_n "(cached) " >&6
  32751. +else
  32752. + rm -f .libs 2>/dev/null
  32753. +mkdir .libs 2>/dev/null
  32754. +if test -d .libs; then
  32755. + lt_cv_objdir=.libs
  32756. +else
  32757. + # MS-DOS does not allow filenames that begin with a dot.
  32758. + lt_cv_objdir=_libs
  32759. +fi
  32760. +rmdir .libs 2>/dev/null
  32761. +fi
  32762. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  32763. +$as_echo "$lt_cv_objdir" >&6; }
  32764. +objdir=$lt_cv_objdir
  32765. -# Format of library name prefix.
  32766. -libname_spec=$lt_libname_spec
  32767. -# List of archive names. First name is the real one, the rest are links.
  32768. -# The last name is the one that the linker finds with -lNAME.
  32769. -library_names_spec=$lt_library_names_spec
  32770. -# The coded name of the library, if different from the real name.
  32771. -soname_spec=$lt_soname_spec
  32772. -# Commands used to build and install an old-style archive.
  32773. -RANLIB=$lt_RANLIB
  32774. -old_archive_cmds=$lt_old_archive_cmds_F77
  32775. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32776. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32777. -# Create an old-style archive from a shared archive.
  32778. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  32779. +cat >>confdefs.h <<_ACEOF
  32780. +#define LT_OBJDIR "$lt_cv_objdir/"
  32781. +_ACEOF
  32782. -# Create a temporary old-style archive to link instead of a shared archive.
  32783. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  32784. -# Commands used to build and install a shared archive.
  32785. -archive_cmds=$lt_archive_cmds_F77
  32786. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  32787. -postinstall_cmds=$lt_postinstall_cmds
  32788. -postuninstall_cmds=$lt_postuninstall_cmds
  32789. -# Commands used to build a loadable module (assumed same as above if empty)
  32790. -module_cmds=$lt_module_cmds_F77
  32791. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  32792. -# Commands to strip libraries.
  32793. -old_striplib=$lt_old_striplib
  32794. -striplib=$lt_striplib
  32795. -# Dependencies to place before the objects being linked to create a
  32796. -# shared library.
  32797. -predep_objects=$lt_predep_objects_F77
  32798. -
  32799. -# Dependencies to place after the objects being linked to create a
  32800. -# shared library.
  32801. -postdep_objects=$lt_postdep_objects_F77
  32802. -
  32803. -# Dependencies to place before the objects being linked to create a
  32804. -# shared library.
  32805. -predeps=$lt_predeps_F77
  32806. -
  32807. -# Dependencies to place after the objects being linked to create a
  32808. -# shared library.
  32809. -postdeps=$lt_postdeps_F77
  32810. -
  32811. -# The library search path used internally by the compiler when linking
  32812. -# a shared library.
  32813. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  32814. -# Method to check whether dependent libraries are shared objects.
  32815. -deplibs_check_method=$lt_deplibs_check_method
  32816. -# Command to use when deplibs_check_method == file_magic.
  32817. -file_magic_cmd=$lt_file_magic_cmd
  32818. -# Flag that allows shared libraries with undefined symbols to be built.
  32819. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  32820. -# Flag that forces no undefined symbols.
  32821. -no_undefined_flag=$lt_no_undefined_flag_F77
  32822. -# Commands used to finish a libtool library installation in a directory.
  32823. -finish_cmds=$lt_finish_cmds
  32824. -# Same as above, but a single script fragment to be evaled but not shown.
  32825. -finish_eval=$lt_finish_eval
  32826. -# Take the output of nm and produce a listing of raw symbols and C names.
  32827. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32828. -# Transform the output of nm in a proper C declaration
  32829. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32830. -# Transform the output of nm in a C name address pair
  32831. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32832. -# This is the shared library runtime path variable.
  32833. -runpath_var=$runpath_var
  32834. -# This is the shared library path variable.
  32835. -shlibpath_var=$shlibpath_var
  32836. -# Is shlibpath searched before the hard-coded library search path?
  32837. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32838. +case $host_os in
  32839. +aix3*)
  32840. + # AIX sometimes has problems with the GCC collect2 program. For some
  32841. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  32842. + # vanish in a puff of smoke.
  32843. + if test "X${COLLECT_NAMES+set}" != Xset; then
  32844. + COLLECT_NAMES=
  32845. + export COLLECT_NAMES
  32846. + fi
  32847. + ;;
  32848. +esac
  32849. -# How to hardcode a shared library path into an executable.
  32850. -hardcode_action=$hardcode_action_F77
  32851. +# Sed substitution that helps us do robust quoting. It backslashifies
  32852. +# metacharacters that are still active within double-quoted strings.
  32853. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  32854. -# Whether we should hardcode library paths into libraries.
  32855. -hardcode_into_libs=$hardcode_into_libs
  32856. +# Same as above, but do not quote variable references.
  32857. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  32858. -# Flag to hardcode \$libdir into a binary during linking.
  32859. -# This must work even if \$libdir does not exist.
  32860. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  32861. +# Sed substitution to delay expansion of an escaped shell variable in a
  32862. +# double_quote_subst'ed string.
  32863. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  32864. -# If ld is used when linking, flag to hardcode \$libdir into
  32865. -# a binary during linking. This must work even if \$libdir does
  32866. -# not exist.
  32867. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  32868. -
  32869. -# Whether we need a single -rpath flag with a separated argument.
  32870. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  32871. -
  32872. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32873. -# resulting binary.
  32874. -hardcode_direct=$hardcode_direct_F77
  32875. -
  32876. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32877. -# resulting binary.
  32878. -hardcode_minus_L=$hardcode_minus_L_F77
  32879. -
  32880. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32881. -# the resulting binary.
  32882. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  32883. -
  32884. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32885. -# and all subsequent libraries and executables linked against it.
  32886. -hardcode_automatic=$hardcode_automatic_F77
  32887. +# Sed substitution to delay expansion of an escaped single quote.
  32888. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  32889. -# Variables whose values should be saved in libtool wrapper scripts and
  32890. -# restored at relink time.
  32891. -variables_saved_for_relink="$variables_saved_for_relink"
  32892. +# Sed substitution to avoid accidental globbing in evaled expressions
  32893. +no_glob_subst='s/\*/\\\*/g'
  32894. -# Whether libtool must link a program against all its dependency libraries.
  32895. -link_all_deplibs=$link_all_deplibs_F77
  32896. +# Global variables:
  32897. +ofile=libtool
  32898. +can_build_shared=yes
  32899. -# Compile-time system search path for libraries
  32900. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32901. +# All known linkers require a `.a' archive for static linking (except MSVC,
  32902. +# which needs '.lib').
  32903. +libext=a
  32904. -# Run-time system search path for libraries
  32905. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32906. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  32907. -# Fix the shell variable \$srcfile for the compiler.
  32908. -fix_srcfile_path="$fix_srcfile_path_F77"
  32909. +old_CC="$CC"
  32910. +old_CFLAGS="$CFLAGS"
  32911. -# Set to yes if exported symbols are required.
  32912. -always_export_symbols=$always_export_symbols_F77
  32913. +# Set sane defaults for various variables
  32914. +test -z "$CC" && CC=cc
  32915. +test -z "$LTCC" && LTCC=$CC
  32916. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  32917. +test -z "$LD" && LD=ld
  32918. +test -z "$ac_objext" && ac_objext=o
  32919. -# The commands to list exported symbols.
  32920. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  32921. +for cc_temp in $compiler""; do
  32922. + case $cc_temp in
  32923. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  32924. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  32925. + \-*) ;;
  32926. + *) break;;
  32927. + esac
  32928. +done
  32929. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  32930. -# The commands to extract the exported symbol list from a shared archive.
  32931. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32932. -# Symbols that should not be listed in the preloaded symbols.
  32933. -exclude_expsyms=$lt_exclude_expsyms_F77
  32934. +# Only perform the check for file, if the check method requires it
  32935. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  32936. +case $deplibs_check_method in
  32937. +file_magic*)
  32938. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  32939. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  32940. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  32941. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  32942. + $as_echo_n "(cached) " >&6
  32943. +else
  32944. + case $MAGIC_CMD in
  32945. +[\\/*] | ?:[\\/]*)
  32946. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  32947. + ;;
  32948. +*)
  32949. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  32950. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  32951. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  32952. + for ac_dir in $ac_dummy; do
  32953. + IFS="$lt_save_ifs"
  32954. + test -z "$ac_dir" && ac_dir=.
  32955. + if test -f $ac_dir/${ac_tool_prefix}file; then
  32956. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  32957. + if test -n "$file_magic_test_file"; then
  32958. + case $deplibs_check_method in
  32959. + "file_magic "*)
  32960. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  32961. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32962. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  32963. + $EGREP "$file_magic_regex" > /dev/null; then
  32964. + :
  32965. + else
  32966. + cat <<_LT_EOF 1>&2
  32967. +
  32968. +*** Warning: the command libtool uses to detect shared libraries,
  32969. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  32970. +*** The result is that libtool may fail to recognize shared libraries
  32971. +*** as such. This will affect the creation of libtool libraries that
  32972. +*** depend on shared libraries, but programs linked with such libtool
  32973. +*** libraries will work regardless of this problem. Nevertheless, you
  32974. +*** may want to report the problem to your system manager and/or to
  32975. +*** bug-libtool@gnu.org
  32976. +
  32977. +_LT_EOF
  32978. + fi ;;
  32979. + esac
  32980. + fi
  32981. + break
  32982. + fi
  32983. + done
  32984. + IFS="$lt_save_ifs"
  32985. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  32986. + ;;
  32987. +esac
  32988. +fi
  32989. +
  32990. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  32991. +if test -n "$MAGIC_CMD"; then
  32992. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  32993. +$as_echo "$MAGIC_CMD" >&6; }
  32994. +else
  32995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  32996. +$as_echo "no" >&6; }
  32997. +fi
  32998. +
  32999. +
  33000. +
  33001. +
  33002. +
  33003. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  33004. + if test -n "$ac_tool_prefix"; then
  33005. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  33006. +$as_echo_n "checking for file... " >&6; }
  33007. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  33008. + $as_echo_n "(cached) " >&6
  33009. +else
  33010. + case $MAGIC_CMD in
  33011. +[\\/*] | ?:[\\/]*)
  33012. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  33013. + ;;
  33014. +*)
  33015. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  33016. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  33017. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  33018. + for ac_dir in $ac_dummy; do
  33019. + IFS="$lt_save_ifs"
  33020. + test -z "$ac_dir" && ac_dir=.
  33021. + if test -f $ac_dir/file; then
  33022. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  33023. + if test -n "$file_magic_test_file"; then
  33024. + case $deplibs_check_method in
  33025. + "file_magic "*)
  33026. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  33027. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33028. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  33029. + $EGREP "$file_magic_regex" > /dev/null; then
  33030. + :
  33031. + else
  33032. + cat <<_LT_EOF 1>&2
  33033. -# Symbols that must always be exported.
  33034. -include_expsyms=$lt_include_expsyms_F77
  33035. +*** Warning: the command libtool uses to detect shared libraries,
  33036. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  33037. +*** The result is that libtool may fail to recognize shared libraries
  33038. +*** as such. This will affect the creation of libtool libraries that
  33039. +*** depend on shared libraries, but programs linked with such libtool
  33040. +*** libraries will work regardless of this problem. Nevertheless, you
  33041. +*** may want to report the problem to your system manager and/or to
  33042. +*** bug-libtool@gnu.org
  33043. -# ### END LIBTOOL TAG CONFIG: $tagname
  33044. +_LT_EOF
  33045. + fi ;;
  33046. + esac
  33047. + fi
  33048. + break
  33049. + fi
  33050. + done
  33051. + IFS="$lt_save_ifs"
  33052. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  33053. + ;;
  33054. +esac
  33055. +fi
  33056. -__EOF__
  33057. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  33058. +if test -n "$MAGIC_CMD"; then
  33059. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  33060. +$as_echo "$MAGIC_CMD" >&6; }
  33061. +else
  33062. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  33063. +$as_echo "no" >&6; }
  33064. +fi
  33065. -else
  33066. - # If there is no Makefile yet, we rely on a make rule to execute
  33067. - # `config.status --recheck' to rerun these tests and create the
  33068. - # libtool script then.
  33069. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33070. - if test -f "$ltmain_in"; then
  33071. - test -f Makefile && make "$ltmain"
  33072. + else
  33073. + MAGIC_CMD=:
  33074. fi
  33075. fi
  33076. + fi
  33077. + ;;
  33078. +esac
  33079. +
  33080. +# Use C for the default configuration in the libtool script
  33081. +lt_save_CC="$CC"
  33082. ac_ext=c
  33083. ac_cpp='$CPP $CPPFLAGS'
  33084. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33085. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33086. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33087. -CC="$lt_save_CC"
  33088. - else
  33089. - tagname=""
  33090. - fi
  33091. - ;;
  33092. +# Source file extension for C test sources.
  33093. +ac_ext=c
  33094. +
  33095. +# Object file extension for compiled C test sources.
  33096. +objext=o
  33097. +objext=$objext
  33098. - GCJ)
  33099. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  33100. +# Code to be used in simple compile tests
  33101. +lt_simple_compile_test_code="int some_variable = 0;"
  33102. +# Code to be used in simple link tests
  33103. +lt_simple_link_test_code='int main(){return(0);}'
  33104. -# Source file extension for Java test sources.
  33105. -ac_ext=java
  33106. -# Object file extension for compiled Java test sources.
  33107. -objext=o
  33108. -objext_GCJ=$objext
  33109. -# Code to be used in simple compile tests
  33110. -lt_simple_compile_test_code="class foo {}\n"
  33111. -# Code to be used in simple link tests
  33112. -lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
  33113. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33114. # If no C compiler was specified, use CC.
  33115. LTCC=${LTCC-"$CC"}
  33116. -# Allow CC to be a program name with arguments.
  33117. -compiler=$CC
  33118. -
  33119. +# If no C compiler flags were specified, use CFLAGS.
  33120. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  33121. # Allow CC to be a program name with arguments.
  33122. -lt_save_CC="$CC"
  33123. -CC=${GCJ-"gcj"}
  33124. compiler=$CC
  33125. -compiler_GCJ=$CC
  33126. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  33127. -archive_cmds_need_lc_GCJ=no
  33128. +# Save the default compiler, since it gets overwritten when the other
  33129. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  33130. +compiler_DEFAULT=$CC
  33131. +
  33132. +# save warnings/boilerplate of simple test code
  33133. +ac_outfile=conftest.$ac_objext
  33134. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  33135. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33136. +_lt_compiler_boilerplate=`cat conftest.err`
  33137. +$RM conftest*
  33138. +
  33139. +ac_outfile=conftest.$ac_objext
  33140. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  33141. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  33142. +_lt_linker_boilerplate=`cat conftest.err`
  33143. +$RM -r conftest*
  33144. -lt_prog_compiler_no_builtin_flag_GCJ=
  33145. +if test -n "$compiler"; then
  33146. -if test "$GCC" = yes; then
  33147. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  33148. +lt_prog_compiler_no_builtin_flag=
  33149. +if test "$GCC" = yes; then
  33150. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  33151. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33152. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  33153. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  33154. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33155. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  33156. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  33157. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  33158. + $as_echo_n "(cached) " >&6
  33159. else
  33160. lt_cv_prog_compiler_rtti_exceptions=no
  33161. - ac_outfile=conftest.$ac_objext
  33162. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33163. + ac_outfile=conftest.$ac_objext
  33164. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33165. lt_compiler_flag="-fno-rtti -fno-exceptions"
  33166. # Insert the option either (1) after the last *FLAGS variable, or
  33167. # (2) before a word containing "conftest.", or (3) at the end.
  33168. @@ -15472,292 +7327,498 @@
  33169. # with a dollar sign (not a hyphen), so the echo should work correctly.
  33170. # The option is referenced via a variable to avoid confusing sed.
  33171. lt_compile=`echo "$ac_compile" | $SED \
  33172. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33173. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33174. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33175. -e 's:$: $lt_compiler_flag:'`
  33176. - (eval echo "\"\$as_me:15478: $lt_compile\"" >&5)
  33177. + (eval echo "\"\$as_me:7333: $lt_compile\"" >&5)
  33178. (eval "$lt_compile" 2>conftest.err)
  33179. ac_status=$?
  33180. cat conftest.err >&5
  33181. - echo "$as_me:15482: \$? = $ac_status" >&5
  33182. + echo "$as_me:7337: \$? = $ac_status" >&5
  33183. if (exit $ac_status) && test -s "$ac_outfile"; then
  33184. # The compiler can only warn and ignore the option if not recognized
  33185. - # So say no if there are warnings
  33186. - if test ! -s conftest.err; then
  33187. + # So say no if there are warnings other than the usual output.
  33188. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33189. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33190. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33191. lt_cv_prog_compiler_rtti_exceptions=yes
  33192. fi
  33193. fi
  33194. - $rm conftest*
  33195. + $RM conftest*
  33196. fi
  33197. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33198. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  33199. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  33200. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  33201. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  33202. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  33203. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  33204. else
  33205. :
  33206. fi
  33207. fi
  33208. -lt_prog_compiler_wl_GCJ=
  33209. -lt_prog_compiler_pic_GCJ=
  33210. -lt_prog_compiler_static_GCJ=
  33211. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33212. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  33213. +
  33214. +
  33215. +
  33216. +
  33217. + lt_prog_compiler_wl=
  33218. +lt_prog_compiler_pic=
  33219. +lt_prog_compiler_static=
  33220. +
  33221. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  33222. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  33223. if test "$GCC" = yes; then
  33224. - lt_prog_compiler_wl_GCJ='-Wl,'
  33225. - lt_prog_compiler_static_GCJ='-static'
  33226. + lt_prog_compiler_wl='-Wl,'
  33227. + lt_prog_compiler_static='-static'
  33228. case $host_os in
  33229. aix*)
  33230. # All AIX code is PIC.
  33231. if test "$host_cpu" = ia64; then
  33232. # AIX 5 now supports IA64 processor
  33233. - lt_prog_compiler_static_GCJ='-Bstatic'
  33234. + lt_prog_compiler_static='-Bstatic'
  33235. fi
  33236. ;;
  33237. amigaos*)
  33238. - # FIXME: we need at least 68020 code to build shared libraries, but
  33239. - # adding the `-m68020' flag to GCC prevents building anything better,
  33240. - # like `-m68040'.
  33241. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  33242. + case $host_cpu in
  33243. + powerpc)
  33244. + # see comment about AmigaOS4 .so support
  33245. + lt_prog_compiler_pic='-fPIC'
  33246. + ;;
  33247. + m68k)
  33248. + # FIXME: we need at least 68020 code to build shared libraries, but
  33249. + # adding the `-m68020' flag to GCC prevents building anything better,
  33250. + # like `-m68040'.
  33251. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  33252. + ;;
  33253. + esac
  33254. ;;
  33255. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33256. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33257. # PIC is the default for these OSes.
  33258. ;;
  33259. - mingw* | pw32* | os2*)
  33260. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33261. # This hack is so that the source file can tell whether it is being
  33262. # built for inclusion in a dll (and should export symbols for example).
  33263. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  33264. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  33265. + # (--disable-auto-import) libraries
  33266. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33267. ;;
  33268. darwin* | rhapsody*)
  33269. # PIC is the default on this platform
  33270. # Common symbols not allowed in MH_DYLIB files
  33271. - lt_prog_compiler_pic_GCJ='-fno-common'
  33272. + lt_prog_compiler_pic='-fno-common'
  33273. + ;;
  33274. +
  33275. + hpux*)
  33276. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  33277. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  33278. + # sets the default TLS model and affects inlining.
  33279. + case $host_cpu in
  33280. + hppa*64*)
  33281. + # +Z the default
  33282. + ;;
  33283. + *)
  33284. + lt_prog_compiler_pic='-fPIC'
  33285. + ;;
  33286. + esac
  33287. + ;;
  33288. +
  33289. + interix[3-9]*)
  33290. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  33291. + # Instead, we relocate shared libraries at runtime.
  33292. ;;
  33293. msdosdjgpp*)
  33294. # Just because we use GCC doesn't mean we suddenly get shared libraries
  33295. # on systems that don't support them.
  33296. - lt_prog_compiler_can_build_shared_GCJ=no
  33297. + lt_prog_compiler_can_build_shared=no
  33298. enable_shared=no
  33299. ;;
  33300. + *nto* | *qnx*)
  33301. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33302. + # it will coredump.
  33303. + lt_prog_compiler_pic='-fPIC -shared'
  33304. + ;;
  33305. +
  33306. sysv4*MP*)
  33307. if test -d /usr/nec; then
  33308. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  33309. + lt_prog_compiler_pic=-Kconform_pic
  33310. fi
  33311. ;;
  33312. - hpux*)
  33313. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33314. - # not for PA HP-UX.
  33315. - case "$host_cpu" in
  33316. - hppa*64*|ia64*)
  33317. - # +Z the default
  33318. - ;;
  33319. - *)
  33320. - lt_prog_compiler_pic_GCJ='-fPIC'
  33321. - ;;
  33322. - esac
  33323. - ;;
  33324. -
  33325. *)
  33326. - lt_prog_compiler_pic_GCJ='-fPIC'
  33327. + lt_prog_compiler_pic='-fPIC'
  33328. ;;
  33329. esac
  33330. else
  33331. # PORTME Check for flag to pass linker flags through the system compiler.
  33332. case $host_os in
  33333. aix*)
  33334. - lt_prog_compiler_wl_GCJ='-Wl,'
  33335. + lt_prog_compiler_wl='-Wl,'
  33336. if test "$host_cpu" = ia64; then
  33337. # AIX 5 now supports IA64 processor
  33338. - lt_prog_compiler_static_GCJ='-Bstatic'
  33339. + lt_prog_compiler_static='-Bstatic'
  33340. else
  33341. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  33342. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  33343. fi
  33344. ;;
  33345. - mingw* | pw32* | os2*)
  33346. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  33347. # This hack is so that the source file can tell whether it is being
  33348. # built for inclusion in a dll (and should export symbols for example).
  33349. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  33350. + lt_prog_compiler_pic='-DDLL_EXPORT'
  33351. ;;
  33352. hpux9* | hpux10* | hpux11*)
  33353. - lt_prog_compiler_wl_GCJ='-Wl,'
  33354. + lt_prog_compiler_wl='-Wl,'
  33355. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33356. # not for PA HP-UX.
  33357. - case "$host_cpu" in
  33358. + case $host_cpu in
  33359. hppa*64*|ia64*)
  33360. # +Z the default
  33361. ;;
  33362. *)
  33363. - lt_prog_compiler_pic_GCJ='+Z'
  33364. + lt_prog_compiler_pic='+Z'
  33365. ;;
  33366. esac
  33367. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33368. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  33369. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  33370. ;;
  33371. irix5* | irix6* | nonstopux*)
  33372. - lt_prog_compiler_wl_GCJ='-Wl,'
  33373. + lt_prog_compiler_wl='-Wl,'
  33374. # PIC (with -KPIC) is the default.
  33375. - lt_prog_compiler_static_GCJ='-non_shared'
  33376. - ;;
  33377. -
  33378. - newsos6)
  33379. - lt_prog_compiler_pic_GCJ='-KPIC'
  33380. - lt_prog_compiler_static_GCJ='-Bstatic'
  33381. + lt_prog_compiler_static='-non_shared'
  33382. ;;
  33383. - linux*)
  33384. - case $CC in
  33385. - icc* | ecc*)
  33386. - lt_prog_compiler_wl_GCJ='-Wl,'
  33387. - lt_prog_compiler_pic_GCJ='-KPIC'
  33388. - lt_prog_compiler_static_GCJ='-static'
  33389. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  33390. + case $cc_basename in
  33391. + # old Intel for x86_64 which still supported -KPIC.
  33392. + ecc*)
  33393. + lt_prog_compiler_wl='-Wl,'
  33394. + lt_prog_compiler_pic='-KPIC'
  33395. + lt_prog_compiler_static='-static'
  33396. + ;;
  33397. + # icc used to be incompatible with GCC.
  33398. + # ICC 10 doesn't accept -KPIC any more.
  33399. + icc* | ifort*)
  33400. + lt_prog_compiler_wl='-Wl,'
  33401. + lt_prog_compiler_pic='-fPIC'
  33402. + lt_prog_compiler_static='-static'
  33403. + ;;
  33404. + # Lahey Fortran 8.1.
  33405. + lf95*)
  33406. + lt_prog_compiler_wl='-Wl,'
  33407. + lt_prog_compiler_pic='--shared'
  33408. + lt_prog_compiler_static='--static'
  33409. + ;;
  33410. + pgcc* | pgf77* | pgf90* | pgf95*)
  33411. + # Portland Group compilers (*not* the Pentium gcc compiler,
  33412. + # which looks to be a dead project)
  33413. + lt_prog_compiler_wl='-Wl,'
  33414. + lt_prog_compiler_pic='-fpic'
  33415. + lt_prog_compiler_static='-Bstatic'
  33416. ;;
  33417. ccc*)
  33418. - lt_prog_compiler_wl_GCJ='-Wl,'
  33419. + lt_prog_compiler_wl='-Wl,'
  33420. # All Alpha code is PIC.
  33421. - lt_prog_compiler_static_GCJ='-non_shared'
  33422. + lt_prog_compiler_static='-non_shared'
  33423. ;;
  33424. + xl*)
  33425. + # IBM XL C 8.0/Fortran 10.1 on PPC
  33426. + lt_prog_compiler_wl='-Wl,'
  33427. + lt_prog_compiler_pic='-qpic'
  33428. + lt_prog_compiler_static='-qstaticlink'
  33429. + ;;
  33430. + *)
  33431. + case `$CC -V 2>&1 | sed 5q` in
  33432. + *Sun\ C*)
  33433. + # Sun C 5.9
  33434. + lt_prog_compiler_pic='-KPIC'
  33435. + lt_prog_compiler_static='-Bstatic'
  33436. + lt_prog_compiler_wl='-Wl,'
  33437. + ;;
  33438. + *Sun\ F*)
  33439. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  33440. + lt_prog_compiler_pic='-KPIC'
  33441. + lt_prog_compiler_static='-Bstatic'
  33442. + lt_prog_compiler_wl=''
  33443. + ;;
  33444. + esac
  33445. + ;;
  33446. esac
  33447. ;;
  33448. + newsos6)
  33449. + lt_prog_compiler_pic='-KPIC'
  33450. + lt_prog_compiler_static='-Bstatic'
  33451. + ;;
  33452. +
  33453. + *nto* | *qnx*)
  33454. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  33455. + # it will coredump.
  33456. + lt_prog_compiler_pic='-fPIC -shared'
  33457. + ;;
  33458. +
  33459. osf3* | osf4* | osf5*)
  33460. - lt_prog_compiler_wl_GCJ='-Wl,'
  33461. + lt_prog_compiler_wl='-Wl,'
  33462. # All OSF/1 code is PIC.
  33463. - lt_prog_compiler_static_GCJ='-non_shared'
  33464. + lt_prog_compiler_static='-non_shared'
  33465. + ;;
  33466. +
  33467. + rdos*)
  33468. + lt_prog_compiler_static='-non_shared'
  33469. + ;;
  33470. +
  33471. + solaris*)
  33472. + lt_prog_compiler_pic='-KPIC'
  33473. + lt_prog_compiler_static='-Bstatic'
  33474. + case $cc_basename in
  33475. + f77* | f90* | f95*)
  33476. + lt_prog_compiler_wl='-Qoption ld ';;
  33477. + *)
  33478. + lt_prog_compiler_wl='-Wl,';;
  33479. + esac
  33480. + ;;
  33481. +
  33482. + sunos4*)
  33483. + lt_prog_compiler_wl='-Qoption ld '
  33484. + lt_prog_compiler_pic='-PIC'
  33485. + lt_prog_compiler_static='-Bstatic'
  33486. + ;;
  33487. +
  33488. + sysv4 | sysv4.2uw2* | sysv4.3*)
  33489. + lt_prog_compiler_wl='-Wl,'
  33490. + lt_prog_compiler_pic='-KPIC'
  33491. + lt_prog_compiler_static='-Bstatic'
  33492. + ;;
  33493. +
  33494. + sysv4*MP*)
  33495. + if test -d /usr/nec ;then
  33496. + lt_prog_compiler_pic='-Kconform_pic'
  33497. + lt_prog_compiler_static='-Bstatic'
  33498. + fi
  33499. + ;;
  33500. +
  33501. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  33502. + lt_prog_compiler_wl='-Wl,'
  33503. + lt_prog_compiler_pic='-KPIC'
  33504. + lt_prog_compiler_static='-Bstatic'
  33505. + ;;
  33506. +
  33507. + unicos*)
  33508. + lt_prog_compiler_wl='-Wl,'
  33509. + lt_prog_compiler_can_build_shared=no
  33510. + ;;
  33511. +
  33512. + uts4*)
  33513. + lt_prog_compiler_pic='-pic'
  33514. + lt_prog_compiler_static='-Bstatic'
  33515. + ;;
  33516. +
  33517. + *)
  33518. + lt_prog_compiler_can_build_shared=no
  33519. ;;
  33520. + esac
  33521. + fi
  33522. +
  33523. +case $host_os in
  33524. + # For platforms which do not support PIC, -DPIC is meaningless:
  33525. + *djgpp*)
  33526. + lt_prog_compiler_pic=
  33527. + ;;
  33528. + *)
  33529. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  33530. + ;;
  33531. +esac
  33532. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  33533. +$as_echo "$lt_prog_compiler_pic" >&6; }
  33534. +
  33535. +
  33536. +
  33537. +
  33538. +
  33539. +
  33540. +#
  33541. +# Check to make sure the PIC flag actually works.
  33542. +#
  33543. +if test -n "$lt_prog_compiler_pic"; then
  33544. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  33545. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  33546. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  33547. + $as_echo_n "(cached) " >&6
  33548. +else
  33549. + lt_cv_prog_compiler_pic_works=no
  33550. + ac_outfile=conftest.$ac_objext
  33551. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33552. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  33553. + # Insert the option either (1) after the last *FLAGS variable, or
  33554. + # (2) before a word containing "conftest.", or (3) at the end.
  33555. + # Note that $ac_compile itself does not contain backslashes and begins
  33556. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  33557. + # The option is referenced via a variable to avoid confusing sed.
  33558. + lt_compile=`echo "$ac_compile" | $SED \
  33559. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33560. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33561. + -e 's:$: $lt_compiler_flag:'`
  33562. + (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
  33563. + (eval "$lt_compile" 2>conftest.err)
  33564. + ac_status=$?
  33565. + cat conftest.err >&5
  33566. + echo "$as_me:7676: \$? = $ac_status" >&5
  33567. + if (exit $ac_status) && test -s "$ac_outfile"; then
  33568. + # The compiler can only warn and ignore the option if not recognized
  33569. + # So say no if there are warnings other than the usual output.
  33570. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  33571. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33572. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  33573. + lt_cv_prog_compiler_pic_works=yes
  33574. + fi
  33575. + fi
  33576. + $RM conftest*
  33577. +
  33578. +fi
  33579. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  33580. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  33581. +
  33582. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  33583. + case $lt_prog_compiler_pic in
  33584. + "" | " "*) ;;
  33585. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  33586. + esac
  33587. +else
  33588. + lt_prog_compiler_pic=
  33589. + lt_prog_compiler_can_build_shared=no
  33590. +fi
  33591. +
  33592. +fi
  33593. +
  33594. +
  33595. +
  33596. +
  33597. +
  33598. +
  33599. +#
  33600. +# Check to make sure the static flag actually works.
  33601. +#
  33602. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  33603. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  33604. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  33605. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  33606. + $as_echo_n "(cached) " >&6
  33607. +else
  33608. + lt_cv_prog_compiler_static_works=no
  33609. + save_LDFLAGS="$LDFLAGS"
  33610. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  33611. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  33612. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  33613. + # The linker can only warn and ignore the option if not recognized
  33614. + # So say no if there are warnings
  33615. + if test -s conftest.err; then
  33616. + # Append any errors to the config.log.
  33617. + cat conftest.err 1>&5
  33618. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  33619. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  33620. + if diff conftest.exp conftest.er2 >/dev/null; then
  33621. + lt_cv_prog_compiler_static_works=yes
  33622. + fi
  33623. + else
  33624. + lt_cv_prog_compiler_static_works=yes
  33625. + fi
  33626. + fi
  33627. + $RM -r conftest*
  33628. + LDFLAGS="$save_LDFLAGS"
  33629. - sco3.2v5*)
  33630. - lt_prog_compiler_pic_GCJ='-Kpic'
  33631. - lt_prog_compiler_static_GCJ='-dn'
  33632. - ;;
  33633. +fi
  33634. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  33635. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  33636. - solaris*)
  33637. - lt_prog_compiler_wl_GCJ='-Wl,'
  33638. - lt_prog_compiler_pic_GCJ='-KPIC'
  33639. - lt_prog_compiler_static_GCJ='-Bstatic'
  33640. - ;;
  33641. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  33642. + :
  33643. +else
  33644. + lt_prog_compiler_static=
  33645. +fi
  33646. - sunos4*)
  33647. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  33648. - lt_prog_compiler_pic_GCJ='-PIC'
  33649. - lt_prog_compiler_static_GCJ='-Bstatic'
  33650. - ;;
  33651. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  33652. - lt_prog_compiler_wl_GCJ='-Wl,'
  33653. - lt_prog_compiler_pic_GCJ='-KPIC'
  33654. - lt_prog_compiler_static_GCJ='-Bstatic'
  33655. - ;;
  33656. - sysv4*MP*)
  33657. - if test -d /usr/nec ;then
  33658. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  33659. - lt_prog_compiler_static_GCJ='-Bstatic'
  33660. - fi
  33661. - ;;
  33662. - uts4*)
  33663. - lt_prog_compiler_pic_GCJ='-pic'
  33664. - lt_prog_compiler_static_GCJ='-Bstatic'
  33665. - ;;
  33666. - *)
  33667. - lt_prog_compiler_can_build_shared_GCJ=no
  33668. - ;;
  33669. - esac
  33670. - fi
  33671. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  33672. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  33673. -#
  33674. -# Check to make sure the PIC flag actually works.
  33675. -#
  33676. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  33677. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33678. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33679. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33680. + $as_echo_n "(cached) " >&6
  33681. +else
  33682. + lt_cv_prog_compiler_c_o=no
  33683. + $RM -r conftest 2>/dev/null
  33684. + mkdir conftest
  33685. + cd conftest
  33686. + mkdir out
  33687. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33688. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  33689. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  33690. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  33691. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33692. -else
  33693. - lt_prog_compiler_pic_works_GCJ=no
  33694. - ac_outfile=conftest.$ac_objext
  33695. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33696. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  33697. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  33698. # Insert the option either (1) after the last *FLAGS variable, or
  33699. # (2) before a word containing "conftest.", or (3) at the end.
  33700. # Note that $ac_compile itself does not contain backslashes and begins
  33701. # with a dollar sign (not a hyphen), so the echo should work correctly.
  33702. - # The option is referenced via a variable to avoid confusing sed.
  33703. lt_compile=`echo "$ac_compile" | $SED \
  33704. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33705. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33706. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33707. -e 's:$: $lt_compiler_flag:'`
  33708. - (eval echo "\"\$as_me:15711: $lt_compile\"" >&5)
  33709. - (eval "$lt_compile" 2>conftest.err)
  33710. + (eval echo "\"\$as_me:7777: $lt_compile\"" >&5)
  33711. + (eval "$lt_compile" 2>out/conftest.err)
  33712. ac_status=$?
  33713. - cat conftest.err >&5
  33714. - echo "$as_me:15715: \$? = $ac_status" >&5
  33715. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33716. + cat out/conftest.err >&5
  33717. + echo "$as_me:7781: \$? = $ac_status" >&5
  33718. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33719. + then
  33720. # The compiler can only warn and ignore the option if not recognized
  33721. # So say no if there are warnings
  33722. - if test ! -s conftest.err; then
  33723. - lt_prog_compiler_pic_works_GCJ=yes
  33724. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33725. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33726. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33727. + lt_cv_prog_compiler_c_o=yes
  33728. fi
  33729. fi
  33730. - $rm conftest*
  33731. + chmod u+w . 2>&5
  33732. + $RM conftest*
  33733. + # SGI C++ compiler will create directory out/ii_files/ for
  33734. + # template instantiation
  33735. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33736. + $RM out/* && rmdir out
  33737. + cd ..
  33738. + $RM -r conftest
  33739. + $RM conftest*
  33740. fi
  33741. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  33742. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  33743. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33744. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33745. +
  33746. +
  33747. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  33748. - case $lt_prog_compiler_pic_GCJ in
  33749. - "" | " "*) ;;
  33750. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  33751. - esac
  33752. -else
  33753. - lt_prog_compiler_pic_GCJ=
  33754. - lt_prog_compiler_can_build_shared_GCJ=no
  33755. -fi
  33756. -fi
  33757. -case "$host_os" in
  33758. - # For platforms which do not support PIC, -DPIC is meaningless:
  33759. - *djgpp*)
  33760. - lt_prog_compiler_pic_GCJ=
  33761. - ;;
  33762. - *)
  33763. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  33764. - ;;
  33765. -esac
  33766. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33767. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  33768. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  33769. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33770. +
  33771. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  33772. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  33773. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  33774. + $as_echo_n "(cached) " >&6
  33775. else
  33776. - lt_cv_prog_compiler_c_o_GCJ=no
  33777. - $rm -r conftest 2>/dev/null
  33778. + lt_cv_prog_compiler_c_o=no
  33779. + $RM -r conftest 2>/dev/null
  33780. mkdir conftest
  33781. cd conftest
  33782. mkdir out
  33783. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33784. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  33785. lt_compiler_flag="-o out/conftest2.$ac_objext"
  33786. # Insert the option either (1) after the last *FLAGS variable, or
  33787. @@ -15765,101 +7826,114 @@
  33788. # Note that $ac_compile itself does not contain backslashes and begins
  33789. # with a dollar sign (not a hyphen), so the echo should work correctly.
  33790. lt_compile=`echo "$ac_compile" | $SED \
  33791. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33792. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  33793. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33794. -e 's:$: $lt_compiler_flag:'`
  33795. - (eval echo "\"\$as_me:15771: $lt_compile\"" >&5)
  33796. + (eval echo "\"\$as_me:7832: $lt_compile\"" >&5)
  33797. (eval "$lt_compile" 2>out/conftest.err)
  33798. ac_status=$?
  33799. cat out/conftest.err >&5
  33800. - echo "$as_me:15775: \$? = $ac_status" >&5
  33801. + echo "$as_me:7836: \$? = $ac_status" >&5
  33802. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33803. then
  33804. # The compiler can only warn and ignore the option if not recognized
  33805. # So say no if there are warnings
  33806. - if test ! -s out/conftest.err; then
  33807. - lt_cv_prog_compiler_c_o_GCJ=yes
  33808. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  33809. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  33810. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33811. + lt_cv_prog_compiler_c_o=yes
  33812. fi
  33813. fi
  33814. - chmod u+w .
  33815. - $rm conftest*
  33816. + chmod u+w . 2>&5
  33817. + $RM conftest*
  33818. # SGI C++ compiler will create directory out/ii_files/ for
  33819. # template instantiation
  33820. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33821. - $rm out/* && rmdir out
  33822. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  33823. + $RM out/* && rmdir out
  33824. cd ..
  33825. - rmdir conftest
  33826. - $rm conftest*
  33827. + $RM -r conftest
  33828. + $RM conftest*
  33829. fi
  33830. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  33831. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  33832. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  33833. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  33834. +
  33835. +
  33836. hard_links="nottested"
  33837. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  33838. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  33839. # do not overwrite the value of need_locks provided by the user
  33840. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33841. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  33842. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  33843. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  33844. hard_links=yes
  33845. - $rm conftest*
  33846. + $RM conftest*
  33847. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33848. touch conftest.a
  33849. ln conftest.a conftest.b 2>&5 || hard_links=no
  33850. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33851. - echo "$as_me:$LINENO: result: $hard_links" >&5
  33852. -echo "${ECHO_T}$hard_links" >&6
  33853. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  33854. +$as_echo "$hard_links" >&6; }
  33855. if test "$hard_links" = no; then
  33856. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33857. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33858. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33859. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33860. need_locks=warn
  33861. fi
  33862. else
  33863. need_locks=no
  33864. fi
  33865. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33866. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  33867. +
  33868. +
  33869. +
  33870. +
  33871. +
  33872. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33873. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  33874. runpath_var=
  33875. - allow_undefined_flag_GCJ=
  33876. - enable_shared_with_static_runtimes_GCJ=no
  33877. - archive_cmds_GCJ=
  33878. - archive_expsym_cmds_GCJ=
  33879. - old_archive_From_new_cmds_GCJ=
  33880. - old_archive_from_expsyms_cmds_GCJ=
  33881. - export_dynamic_flag_spec_GCJ=
  33882. - whole_archive_flag_spec_GCJ=
  33883. - thread_safe_flag_spec_GCJ=
  33884. - hardcode_libdir_flag_spec_GCJ=
  33885. - hardcode_libdir_flag_spec_ld_GCJ=
  33886. - hardcode_libdir_separator_GCJ=
  33887. - hardcode_direct_GCJ=no
  33888. - hardcode_minus_L_GCJ=no
  33889. - hardcode_shlibpath_var_GCJ=unsupported
  33890. - link_all_deplibs_GCJ=unknown
  33891. - hardcode_automatic_GCJ=no
  33892. - module_cmds_GCJ=
  33893. - module_expsym_cmds_GCJ=
  33894. - always_export_symbols_GCJ=no
  33895. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33896. + allow_undefined_flag=
  33897. + always_export_symbols=no
  33898. + archive_cmds=
  33899. + archive_expsym_cmds=
  33900. + compiler_needs_object=no
  33901. + enable_shared_with_static_runtimes=no
  33902. + export_dynamic_flag_spec=
  33903. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33904. + hardcode_automatic=no
  33905. + hardcode_direct=no
  33906. + hardcode_direct_absolute=no
  33907. + hardcode_libdir_flag_spec=
  33908. + hardcode_libdir_flag_spec_ld=
  33909. + hardcode_libdir_separator=
  33910. + hardcode_minus_L=no
  33911. + hardcode_shlibpath_var=unsupported
  33912. + inherit_rpath=no
  33913. + link_all_deplibs=unknown
  33914. + module_cmds=
  33915. + module_expsym_cmds=
  33916. + old_archive_from_new_cmds=
  33917. + old_archive_from_expsyms_cmds=
  33918. + thread_safe_flag_spec=
  33919. + whole_archive_flag_spec=
  33920. # include_expsyms should be a list of space-separated symbols to be *always*
  33921. # included in the symbol list
  33922. - include_expsyms_GCJ=
  33923. + include_expsyms=
  33924. # exclude_expsyms can be an extended regexp of symbols to exclude
  33925. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33926. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33927. # as well as any symbol that contains `d'.
  33928. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  33929. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  33930. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33931. # platforms (ab)use it in PIC code, but their linkers get confused if
  33932. # the symbol is explicitly referenced. Since portable code cannot
  33933. # rely on this symbol name, it's probably fine to never include it in
  33934. # preloaded symbol tables.
  33935. + # Exclude shared library initialization/finalization symbols.
  33936. extract_expsyms_cmds=
  33937. case $host_os in
  33938. - cygwin* | mingw* | pw32*)
  33939. + cygwin* | mingw* | pw32* | cegcc*)
  33940. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33941. # When not using gcc, we currently assume that we are using
  33942. # Microsoft Visual C++.
  33943. @@ -15867,23 +7941,52 @@
  33944. with_gnu_ld=no
  33945. fi
  33946. ;;
  33947. + interix*)
  33948. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  33949. + with_gnu_ld=yes
  33950. + ;;
  33951. openbsd*)
  33952. with_gnu_ld=no
  33953. ;;
  33954. + linux* | k*bsd*-gnu)
  33955. + link_all_deplibs=no
  33956. + ;;
  33957. esac
  33958. - ld_shlibs_GCJ=yes
  33959. + ld_shlibs=yes
  33960. if test "$with_gnu_ld" = yes; then
  33961. # If archive_cmds runs LD, not CC, wlarc should be empty
  33962. wlarc='${wl}'
  33963. + # Set some defaults for GNU ld with shared library support. These
  33964. + # are reset later if shared libraries are not supported. Putting them
  33965. + # here allows them to be overridden if necessary.
  33966. + runpath_var=LD_RUN_PATH
  33967. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  33968. + export_dynamic_flag_spec='${wl}--export-dynamic'
  33969. + # ancient GNU ld didn't support --whole-archive et. al.
  33970. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  33971. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33972. + else
  33973. + whole_archive_flag_spec=
  33974. + fi
  33975. + supports_anon_versioning=no
  33976. + case `$LD -v 2>&1` in
  33977. + *GNU\ gold*) supports_anon_versioning=yes ;;
  33978. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  33979. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33980. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33981. + *\ 2.11.*) ;; # other 2.11 versions
  33982. + *) supports_anon_versioning=yes ;;
  33983. + esac
  33984. +
  33985. # See if GNU ld supports shared libraries.
  33986. case $host_os in
  33987. - aix3* | aix4* | aix5*)
  33988. + aix[3-9]*)
  33989. # On AIX/PPC, the GNU linker is very broken
  33990. if test "$host_cpu" != ia64; then
  33991. - ld_shlibs_GCJ=no
  33992. - cat <<EOF 1>&2
  33993. + ld_shlibs=no
  33994. + cat <<_LT_EOF 1>&2
  33995. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33996. *** to be unable to reliably create shared libraries on AIX.
  33997. @@ -15891,74 +7994,160 @@
  33998. *** really care for shared libraries, you may want to modify your PATH
  33999. *** so that a non-GNU linker is found, and then restart.
  34000. -EOF
  34001. +_LT_EOF
  34002. fi
  34003. ;;
  34004. amigaos*)
  34005. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34006. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34007. - hardcode_minus_L_GCJ=yes
  34008. -
  34009. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  34010. - # that the semantics of dynamic libraries on AmigaOS, at least up
  34011. - # to version 4, is to share data among multiple programs linked
  34012. - # with the same dynamic library. Since this doesn't match the
  34013. - # behavior of shared libraries on other platforms, we can't use
  34014. - # them.
  34015. - ld_shlibs_GCJ=no
  34016. + case $host_cpu in
  34017. + powerpc)
  34018. + # see comment about AmigaOS4 .so support
  34019. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34020. + archive_expsym_cmds=''
  34021. + ;;
  34022. + m68k)
  34023. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34024. + hardcode_libdir_flag_spec='-L$libdir'
  34025. + hardcode_minus_L=yes
  34026. + ;;
  34027. + esac
  34028. ;;
  34029. beos*)
  34030. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34031. - allow_undefined_flag_GCJ=unsupported
  34032. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34033. + allow_undefined_flag=unsupported
  34034. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  34035. # support --undefined. This deserves some investigation. FIXME
  34036. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34037. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34038. else
  34039. - ld_shlibs_GCJ=no
  34040. + ld_shlibs=no
  34041. fi
  34042. ;;
  34043. - cygwin* | mingw* | pw32*)
  34044. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  34045. + cygwin* | mingw* | pw32* | cegcc*)
  34046. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  34047. # as there is no search path for DLLs.
  34048. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34049. - allow_undefined_flag_GCJ=unsupported
  34050. - always_export_symbols_GCJ=no
  34051. - enable_shared_with_static_runtimes_GCJ=yes
  34052. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  34053. + hardcode_libdir_flag_spec='-L$libdir'
  34054. + allow_undefined_flag=unsupported
  34055. + always_export_symbols=no
  34056. + enable_shared_with_static_runtimes=yes
  34057. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  34058. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  34059. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  34060. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  34061. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34062. # If the export-symbols file already is a .def file (1st line
  34063. # is EXPORTS), use it as is; otherwise, prepend...
  34064. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34065. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  34066. cp $export_symbols $output_objdir/$soname.def;
  34067. else
  34068. echo EXPORTS > $output_objdir/$soname.def;
  34069. cat $export_symbols >> $output_objdir/$soname.def;
  34070. fi~
  34071. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  34072. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  34073. else
  34074. ld_shlibs=no
  34075. fi
  34076. ;;
  34077. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  34078. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34079. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34080. + interix[3-9]*)
  34081. + hardcode_direct=no
  34082. + hardcode_shlibpath_var=no
  34083. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34084. + export_dynamic_flag_spec='${wl}-E'
  34085. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  34086. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  34087. + # default) and relocated if they conflict, which is a slow very memory
  34088. + # consuming and fragmenting process. To avoid this, we pick a random,
  34089. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  34090. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  34091. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34092. + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  34093. + ;;
  34094. +
  34095. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  34096. + tmp_diet=no
  34097. + if test "$host_os" = linux-dietlibc; then
  34098. + case $cc_basename in
  34099. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  34100. + esac
  34101. + fi
  34102. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  34103. + && test "$tmp_diet" = no
  34104. + then
  34105. + tmp_addflag=
  34106. + tmp_sharedflag='-shared'
  34107. + case $cc_basename,$host_cpu in
  34108. + pgcc*) # Portland Group C compiler
  34109. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34110. + tmp_addflag=' $pic_flag'
  34111. + ;;
  34112. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  34113. + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34114. + tmp_addflag=' $pic_flag -Mnomain' ;;
  34115. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  34116. + tmp_addflag=' -i_dynamic' ;;
  34117. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  34118. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  34119. + ifc* | ifort*) # Intel Fortran compiler
  34120. + tmp_addflag=' -nofor_main' ;;
  34121. + lf95*) # Lahey Fortran 8.1
  34122. + whole_archive_flag_spec=
  34123. + tmp_sharedflag='--shared' ;;
  34124. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  34125. + tmp_sharedflag='-qmkshrobj'
  34126. + tmp_addflag= ;;
  34127. + esac
  34128. + case `$CC -V 2>&1 | sed 5q` in
  34129. + *Sun\ C*) # Sun C 5.9
  34130. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  34131. + compiler_needs_object=yes
  34132. + tmp_sharedflag='-G' ;;
  34133. + *Sun\ F*) # Sun Fortran 8.3
  34134. + tmp_sharedflag='-G' ;;
  34135. + esac
  34136. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34137. +
  34138. + if test "x$supports_anon_versioning" = xyes; then
  34139. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34140. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34141. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34142. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34143. + fi
  34144. +
  34145. + case $cc_basename in
  34146. + xlf*)
  34147. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  34148. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  34149. + hardcode_libdir_flag_spec=
  34150. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  34151. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  34152. + if test "x$supports_anon_versioning" = xyes; then
  34153. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  34154. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34155. + echo "local: *; };" >> $output_objdir/$libname.ver~
  34156. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  34157. + fi
  34158. + ;;
  34159. + esac
  34160. + else
  34161. + ld_shlibs=no
  34162. + fi
  34163. + ;;
  34164. +
  34165. + netbsd* | netbsdelf*-gnu)
  34166. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34167. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  34168. wlarc=
  34169. else
  34170. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34171. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34172. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34173. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34174. fi
  34175. ;;
  34176. - solaris* | sysv5*)
  34177. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  34178. - ld_shlibs_GCJ=no
  34179. - cat <<EOF 1>&2
  34180. + solaris*)
  34181. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  34182. + ld_shlibs=no
  34183. + cat <<_LT_EOF 1>&2
  34184. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  34185. *** create shared libraries on Solaris systems. Therefore, libtool
  34186. @@ -15967,87 +8156,87 @@
  34187. *** your PATH or compiler configuration so that the native linker is
  34188. *** used, and then restart.
  34189. -EOF
  34190. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34191. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34192. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34193. +_LT_EOF
  34194. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34195. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34196. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34197. else
  34198. - ld_shlibs_GCJ=no
  34199. + ld_shlibs=no
  34200. fi
  34201. ;;
  34202. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  34203. + case `$LD -v 2>&1` in
  34204. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  34205. + ld_shlibs=no
  34206. + cat <<_LT_EOF 1>&2
  34207. +
  34208. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  34209. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  34210. +*** is disabling shared libraries support. We urge you to upgrade GNU
  34211. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  34212. +*** your PATH or compiler configuration so that the native linker is
  34213. +*** used, and then restart.
  34214. +
  34215. +_LT_EOF
  34216. + ;;
  34217. + *)
  34218. + # For security reasons, it is highly recommended that you always
  34219. + # use absolute paths for naming shared libraries, and exclude the
  34220. + # DT_RUNPATH tag from executables and libraries. But doing so
  34221. + # requires that you compile everything twice, which is a pain.
  34222. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34223. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34224. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34225. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34226. + else
  34227. + ld_shlibs=no
  34228. + fi
  34229. + ;;
  34230. + esac
  34231. + ;;
  34232. +
  34233. sunos4*)
  34234. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34235. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34236. wlarc=
  34237. - hardcode_direct_GCJ=yes
  34238. - hardcode_shlibpath_var_GCJ=no
  34239. + hardcode_direct=yes
  34240. + hardcode_shlibpath_var=no
  34241. ;;
  34242. - linux*)
  34243. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34244. - tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34245. - archive_cmds_GCJ="$tmp_archive_cmds"
  34246. - supports_anon_versioning=no
  34247. - case `$LD -v 2>/dev/null` in
  34248. - *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  34249. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  34250. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  34251. - *\ 2.11.*) ;; # other 2.11 versions
  34252. - *) supports_anon_versioning=yes ;;
  34253. - esac
  34254. - if test $supports_anon_versioning = yes; then
  34255. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  34256. -cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  34257. -$echo "local: *; };" >> $output_objdir/$libname.ver~
  34258. - $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  34259. - else
  34260. - archive_expsym_cmds_GCJ="$tmp_archive_cmds"
  34261. - fi
  34262. - link_all_deplibs_GCJ=no
  34263. - else
  34264. - ld_shlibs_GCJ=no
  34265. - fi
  34266. - ;;
  34267. -
  34268. *)
  34269. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  34270. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34271. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34272. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  34273. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34274. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  34275. else
  34276. - ld_shlibs_GCJ=no
  34277. + ld_shlibs=no
  34278. fi
  34279. ;;
  34280. esac
  34281. - if test "$ld_shlibs_GCJ" = yes; then
  34282. - runpath_var=LD_RUN_PATH
  34283. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  34284. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  34285. - # ancient GNU ld didn't support --whole-archive et. al.
  34286. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  34287. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  34288. - else
  34289. - whole_archive_flag_spec_GCJ=
  34290. - fi
  34291. + if test "$ld_shlibs" = no; then
  34292. + runpath_var=
  34293. + hardcode_libdir_flag_spec=
  34294. + export_dynamic_flag_spec=
  34295. + whole_archive_flag_spec=
  34296. fi
  34297. else
  34298. # PORTME fill in a description of your system's linker (not GNU ld)
  34299. case $host_os in
  34300. aix3*)
  34301. - allow_undefined_flag_GCJ=unsupported
  34302. - always_export_symbols_GCJ=yes
  34303. - archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  34304. + allow_undefined_flag=unsupported
  34305. + always_export_symbols=yes
  34306. + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  34307. # Note: this linker hardcodes the directories in LIBPATH if there
  34308. # are no directories specified by -L.
  34309. - hardcode_minus_L_GCJ=yes
  34310. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  34311. + hardcode_minus_L=yes
  34312. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  34313. # Neither direct hardcoding nor static linking is supported with a
  34314. # broken collect2.
  34315. - hardcode_direct_GCJ=unsupported
  34316. + hardcode_direct=unsupported
  34317. fi
  34318. ;;
  34319. - aix4* | aix5*)
  34320. + aix[4-9]*)
  34321. if test "$host_cpu" = ia64; then
  34322. # On IA64, the linker does run time linking by default, so we don't
  34323. # have to do anything special.
  34324. @@ -16057,23 +8246,24 @@
  34325. else
  34326. # If we're using GNU nm, then we don't want the "-C" option.
  34327. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  34328. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  34329. - export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  34330. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  34331. + export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34332. else
  34333. - export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
  34334. + export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  34335. fi
  34336. aix_use_runtimelinking=no
  34337. # Test if we are trying to use run time linking or normal
  34338. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  34339. # need to do runtime linking.
  34340. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  34341. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  34342. for ld_flag in $LDFLAGS; do
  34343. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34344. - aix_use_runtimelinking=yes
  34345. - break
  34346. - fi
  34347. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  34348. + aix_use_runtimelinking=yes
  34349. + break
  34350. + fi
  34351. done
  34352. + ;;
  34353. esac
  34354. exp_sym_flag='-bexport'
  34355. @@ -16086,61 +8276,66 @@
  34356. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  34357. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  34358. - archive_cmds_GCJ=''
  34359. - hardcode_direct_GCJ=yes
  34360. - hardcode_libdir_separator_GCJ=':'
  34361. - link_all_deplibs_GCJ=yes
  34362. + archive_cmds=''
  34363. + hardcode_direct=yes
  34364. + hardcode_direct_absolute=yes
  34365. + hardcode_libdir_separator=':'
  34366. + link_all_deplibs=yes
  34367. + file_list_spec='${wl}-f,'
  34368. if test "$GCC" = yes; then
  34369. - case $host_os in aix4.012|aix4.012.*)
  34370. + case $host_os in aix4.[012]|aix4.[012].*)
  34371. # We only want to do this on AIX 4.2 and lower, the check
  34372. # below for broken collect2 doesn't work under 4.3+
  34373. collect2name=`${CC} -print-prog-name=collect2`
  34374. - if test -f "$collect2name" && \
  34375. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  34376. + if test -f "$collect2name" &&
  34377. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  34378. then
  34379. - # We have reworked collect2
  34380. - hardcode_direct_GCJ=yes
  34381. + # We have reworked collect2
  34382. + :
  34383. else
  34384. - # We have old collect2
  34385. - hardcode_direct_GCJ=unsupported
  34386. - # It fails to find uninstalled libraries when the uninstalled
  34387. - # path is not listed in the libpath. Setting hardcode_minus_L
  34388. - # to unsupported forces relinking
  34389. - hardcode_minus_L_GCJ=yes
  34390. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34391. - hardcode_libdir_separator_GCJ=
  34392. + # We have old collect2
  34393. + hardcode_direct=unsupported
  34394. + # It fails to find uninstalled libraries when the uninstalled
  34395. + # path is not listed in the libpath. Setting hardcode_minus_L
  34396. + # to unsupported forces relinking
  34397. + hardcode_minus_L=yes
  34398. + hardcode_libdir_flag_spec='-L$libdir'
  34399. + hardcode_libdir_separator=
  34400. fi
  34401. + ;;
  34402. esac
  34403. shared_flag='-shared'
  34404. + if test "$aix_use_runtimelinking" = yes; then
  34405. + shared_flag="$shared_flag "'${wl}-G'
  34406. + fi
  34407. + link_all_deplibs=no
  34408. else
  34409. # not using gcc
  34410. if test "$host_cpu" = ia64; then
  34411. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34412. - # chokes on -Wl,-G. The following line is correct:
  34413. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  34414. + # chokes on -Wl,-G. The following line is correct:
  34415. shared_flag='-G'
  34416. else
  34417. - if test "$aix_use_runtimelinking" = yes; then
  34418. + if test "$aix_use_runtimelinking" = yes; then
  34419. shared_flag='${wl}-G'
  34420. else
  34421. shared_flag='${wl}-bM:SRE'
  34422. - fi
  34423. + fi
  34424. fi
  34425. fi
  34426. + export_dynamic_flag_spec='${wl}-bexpall'
  34427. # It seems that -bexpall does not export symbols beginning with
  34428. # underscore (_), so it is better to generate a list of symbols to export.
  34429. - always_export_symbols_GCJ=yes
  34430. + always_export_symbols=yes
  34431. if test "$aix_use_runtimelinking" = yes; then
  34432. # Warning - without using the other runtime loading flags (-brtl),
  34433. # -berok will link without error, but may produce a broken library.
  34434. - allow_undefined_flag_GCJ='-berok'
  34435. - # Determine the default libpath from the value encoded in an empty executable.
  34436. - cat >conftest.$ac_ext <<_ACEOF
  34437. -/* confdefs.h. */
  34438. -_ACEOF
  34439. -cat confdefs.h >>conftest.$ac_ext
  34440. -cat >>conftest.$ac_ext <<_ACEOF
  34441. + allow_undefined_flag='-berok'
  34442. + # Determine the default libpath from the value encoded in an
  34443. + # empty executable.
  34444. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34445. /* end confdefs.h. */
  34446. int
  34447. @@ -16151,56 +8346,36 @@
  34448. return 0;
  34449. }
  34450. _ACEOF
  34451. -rm -f conftest.$ac_objext conftest$ac_exeext
  34452. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34453. - (eval $ac_link) 2>conftest.er1
  34454. - ac_status=$?
  34455. - grep -v '^ *+' conftest.er1 >conftest.err
  34456. - rm -f conftest.er1
  34457. - cat conftest.err >&5
  34458. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34459. - (exit $ac_status); } &&
  34460. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34461. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34462. - (eval $ac_try) 2>&5
  34463. - ac_status=$?
  34464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34465. - (exit $ac_status); }; } &&
  34466. - { ac_try='test -s conftest$ac_exeext'
  34467. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34468. - (eval $ac_try) 2>&5
  34469. - ac_status=$?
  34470. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34471. - (exit $ac_status); }; }; then
  34472. +if ac_fn_c_try_link "$LINENO"; then :
  34473. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34474. -}'`
  34475. +lt_aix_libpath_sed='
  34476. + /Import File Strings/,/^$/ {
  34477. + /^0/ {
  34478. + s/^0 *\(.*\)$/\1/
  34479. + p
  34480. + }
  34481. + }'
  34482. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34483. # Check for a 64-bit object if we didn't find anything.
  34484. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34485. -}'`; fi
  34486. -else
  34487. - echo "$as_me: failed program was:" >&5
  34488. -sed 's/^/| /' conftest.$ac_ext >&5
  34489. -
  34490. +if test -z "$aix_libpath"; then
  34491. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34492. fi
  34493. -rm -f conftest.err conftest.$ac_objext \
  34494. - conftest$ac_exeext conftest.$ac_ext
  34495. +fi
  34496. +rm -f core conftest.err conftest.$ac_objext \
  34497. + conftest$ac_exeext conftest.$ac_ext
  34498. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34499. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  34500. - archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34501. - else
  34502. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34503. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  34504. + else
  34505. if test "$host_cpu" = ia64; then
  34506. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  34507. - allow_undefined_flag_GCJ="-z nodefs"
  34508. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  34509. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  34510. + allow_undefined_flag="-z nodefs"
  34511. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  34512. else
  34513. - # Determine the default libpath from the value encoded in an empty executable.
  34514. - cat >conftest.$ac_ext <<_ACEOF
  34515. -/* confdefs.h. */
  34516. -_ACEOF
  34517. -cat confdefs.h >>conftest.$ac_ext
  34518. -cat >>conftest.$ac_ext <<_ACEOF
  34519. + # Determine the default libpath from the value encoded in an
  34520. + # empty executable.
  34521. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34522. /* end confdefs.h. */
  34523. int
  34524. @@ -16211,149 +8386,114 @@
  34525. return 0;
  34526. }
  34527. _ACEOF
  34528. -rm -f conftest.$ac_objext conftest$ac_exeext
  34529. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  34530. - (eval $ac_link) 2>conftest.er1
  34531. - ac_status=$?
  34532. - grep -v '^ *+' conftest.er1 >conftest.err
  34533. - rm -f conftest.er1
  34534. - cat conftest.err >&5
  34535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34536. - (exit $ac_status); } &&
  34537. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  34538. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34539. - (eval $ac_try) 2>&5
  34540. - ac_status=$?
  34541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34542. - (exit $ac_status); }; } &&
  34543. - { ac_try='test -s conftest$ac_exeext'
  34544. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  34545. - (eval $ac_try) 2>&5
  34546. - ac_status=$?
  34547. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34548. - (exit $ac_status); }; }; then
  34549. +if ac_fn_c_try_link "$LINENO"; then :
  34550. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34551. -}'`
  34552. +lt_aix_libpath_sed='
  34553. + /Import File Strings/,/^$/ {
  34554. + /^0/ {
  34555. + s/^0 *\(.*\)$/\1/
  34556. + p
  34557. + }
  34558. + }'
  34559. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34560. # Check for a 64-bit object if we didn't find anything.
  34561. -if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  34562. -}'`; fi
  34563. -else
  34564. - echo "$as_me: failed program was:" >&5
  34565. -sed 's/^/| /' conftest.$ac_ext >&5
  34566. -
  34567. +if test -z "$aix_libpath"; then
  34568. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  34569. +fi
  34570. fi
  34571. -rm -f conftest.err conftest.$ac_objext \
  34572. - conftest$ac_exeext conftest.$ac_ext
  34573. +rm -f core conftest.err conftest.$ac_objext \
  34574. + conftest$ac_exeext conftest.$ac_ext
  34575. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  34576. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  34577. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  34578. # Warning - without using the other run time loading flags,
  34579. # -berok will link without error, but may produce a broken library.
  34580. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  34581. - allow_undefined_flag_GCJ=' ${wl}-berok'
  34582. - # -bexpall does not export symbols beginning with underscore (_)
  34583. - always_export_symbols_GCJ=yes
  34584. + no_undefined_flag=' ${wl}-bernotok'
  34585. + allow_undefined_flag=' ${wl}-berok'
  34586. # Exported symbols can be pulled into shared objects from archives
  34587. - whole_archive_flag_spec_GCJ=' '
  34588. - archive_cmds_need_lc_GCJ=yes
  34589. - # This is similar to how AIX traditionally builds it's shared libraries.
  34590. - archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  34591. + whole_archive_flag_spec='$convenience'
  34592. + archive_cmds_need_lc=yes
  34593. + # This is similar to how AIX traditionally builds its shared libraries.
  34594. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  34595. fi
  34596. fi
  34597. ;;
  34598. amigaos*)
  34599. - archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34600. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34601. - hardcode_minus_L_GCJ=yes
  34602. - # see comment about different semantics on the GNU ld section
  34603. - ld_shlibs_GCJ=no
  34604. + case $host_cpu in
  34605. + powerpc)
  34606. + # see comment about AmigaOS4 .so support
  34607. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  34608. + archive_expsym_cmds=''
  34609. + ;;
  34610. + m68k)
  34611. + archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  34612. + hardcode_libdir_flag_spec='-L$libdir'
  34613. + hardcode_minus_L=yes
  34614. + ;;
  34615. + esac
  34616. ;;
  34617. - bsdi4*)
  34618. - export_dynamic_flag_spec_GCJ=-rdynamic
  34619. + bsdi[45]*)
  34620. + export_dynamic_flag_spec=-rdynamic
  34621. ;;
  34622. - cygwin* | mingw* | pw32*)
  34623. + cygwin* | mingw* | pw32* | cegcc*)
  34624. # When not using gcc, we currently assume that we are using
  34625. # Microsoft Visual C++.
  34626. # hardcode_libdir_flag_spec is actually meaningless, as there is
  34627. # no search path for DLLs.
  34628. - hardcode_libdir_flag_spec_GCJ=' '
  34629. - allow_undefined_flag_GCJ=unsupported
  34630. + hardcode_libdir_flag_spec=' '
  34631. + allow_undefined_flag=unsupported
  34632. # Tell ltmain to make .lib files, not .a files.
  34633. libext=lib
  34634. # Tell ltmain to make .dll files, not .so files.
  34635. shrext_cmds=".dll"
  34636. # FIXME: Setting linknames here is a bad hack.
  34637. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34638. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  34639. # The linker will automatically build a .lib file if we build a DLL.
  34640. - old_archive_From_new_cmds_GCJ='true'
  34641. + old_archive_from_new_cmds='true'
  34642. # FIXME: Should let the user specify the lib program.
  34643. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  34644. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  34645. fix_srcfile_path='`cygpath -w "$srcfile"`'
  34646. - enable_shared_with_static_runtimes_GCJ=yes
  34647. + enable_shared_with_static_runtimes=yes
  34648. ;;
  34649. darwin* | rhapsody*)
  34650. - if test "$GXX" = yes ; then
  34651. - archive_cmds_need_lc_GCJ=no
  34652. - case "$host_os" in
  34653. - rhapsody* | darwin1.[012])
  34654. - allow_undefined_flag_GCJ='-undefined suppress'
  34655. - ;;
  34656. - *) # Darwin 1.3 on
  34657. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  34658. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  34659. - else
  34660. - case ${MACOSX_DEPLOYMENT_TARGET} in
  34661. - 10.[012])
  34662. - allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
  34663. - ;;
  34664. - 10.*)
  34665. - allow_undefined_flag_GCJ='-undefined dynamic_lookup'
  34666. - ;;
  34667. - esac
  34668. - fi
  34669. - ;;
  34670. - esac
  34671. - lt_int_apple_cc_single_mod=no
  34672. - output_verbose_link_cmd='echo'
  34673. - if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  34674. - lt_int_apple_cc_single_mod=yes
  34675. - fi
  34676. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  34677. - archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  34678. - else
  34679. - archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  34680. - fi
  34681. - module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  34682. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  34683. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  34684. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34685. - else
  34686. - archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34687. - fi
  34688. - module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  34689. - hardcode_direct_GCJ=no
  34690. - hardcode_automatic_GCJ=yes
  34691. - hardcode_shlibpath_var_GCJ=unsupported
  34692. - whole_archive_flag_spec_GCJ='-all_load $convenience'
  34693. - link_all_deplibs_GCJ=yes
  34694. - else
  34695. - ld_shlibs_GCJ=no
  34696. - fi
  34697. +
  34698. +
  34699. + archive_cmds_need_lc=no
  34700. + hardcode_direct=no
  34701. + hardcode_automatic=yes
  34702. + hardcode_shlibpath_var=unsupported
  34703. + whole_archive_flag_spec=''
  34704. + link_all_deplibs=yes
  34705. + allow_undefined_flag="$_lt_dar_allow_undefined"
  34706. + case $cc_basename in
  34707. + ifort*) _lt_dar_can_shared=yes ;;
  34708. + *) _lt_dar_can_shared=$GCC ;;
  34709. + esac
  34710. + if test "$_lt_dar_can_shared" = "yes"; then
  34711. + output_verbose_link_cmd=echo
  34712. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  34713. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  34714. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  34715. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  34716. +
  34717. + else
  34718. + ld_shlibs=no
  34719. + fi
  34720. +
  34721. ;;
  34722. dgux*)
  34723. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34724. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34725. - hardcode_shlibpath_var_GCJ=no
  34726. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34727. + hardcode_libdir_flag_spec='-L$libdir'
  34728. + hardcode_shlibpath_var=no
  34729. ;;
  34730. freebsd1*)
  34731. - ld_shlibs_GCJ=no
  34732. + ld_shlibs=no
  34733. ;;
  34734. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34735. @@ -16361,91 +8501,106 @@
  34736. # does not break anything, and helps significantly (at the cost of a little
  34737. # extra space).
  34738. freebsd2.2*)
  34739. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34740. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  34741. - hardcode_direct_GCJ=yes
  34742. - hardcode_shlibpath_var_GCJ=no
  34743. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34744. + hardcode_libdir_flag_spec='-R$libdir'
  34745. + hardcode_direct=yes
  34746. + hardcode_shlibpath_var=no
  34747. ;;
  34748. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34749. freebsd2*)
  34750. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34751. - hardcode_direct_GCJ=yes
  34752. - hardcode_minus_L_GCJ=yes
  34753. - hardcode_shlibpath_var_GCJ=no
  34754. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34755. + hardcode_direct=yes
  34756. + hardcode_minus_L=yes
  34757. + hardcode_shlibpath_var=no
  34758. ;;
  34759. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34760. - freebsd* | kfreebsd*-gnu)
  34761. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34762. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  34763. - hardcode_direct_GCJ=yes
  34764. - hardcode_shlibpath_var_GCJ=no
  34765. + freebsd* | dragonfly*)
  34766. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34767. + hardcode_libdir_flag_spec='-R$libdir'
  34768. + hardcode_direct=yes
  34769. + hardcode_shlibpath_var=no
  34770. ;;
  34771. hpux9*)
  34772. if test "$GCC" = yes; then
  34773. - archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34774. + archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34775. else
  34776. - archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34777. + archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  34778. fi
  34779. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  34780. - hardcode_libdir_separator_GCJ=:
  34781. - hardcode_direct_GCJ=yes
  34782. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34783. + hardcode_libdir_separator=:
  34784. + hardcode_direct=yes
  34785. # hardcode_minus_L: Not really in the search PATH,
  34786. # but as the default location of the library.
  34787. - hardcode_minus_L_GCJ=yes
  34788. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34789. + hardcode_minus_L=yes
  34790. + export_dynamic_flag_spec='${wl}-E'
  34791. ;;
  34792. - hpux10* | hpux11*)
  34793. + hpux10*)
  34794. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34795. - case "$host_cpu" in
  34796. - hppa*64*|ia64*)
  34797. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34798. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34799. + else
  34800. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34801. + fi
  34802. + if test "$with_gnu_ld" = no; then
  34803. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34804. + hardcode_libdir_flag_spec_ld='+b $libdir'
  34805. + hardcode_libdir_separator=:
  34806. + hardcode_direct=yes
  34807. + hardcode_direct_absolute=yes
  34808. + export_dynamic_flag_spec='${wl}-E'
  34809. + # hardcode_minus_L: Not really in the search PATH,
  34810. + # but as the default location of the library.
  34811. + hardcode_minus_L=yes
  34812. + fi
  34813. + ;;
  34814. +
  34815. + hpux11*)
  34816. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34817. + case $host_cpu in
  34818. + hppa*64*)
  34819. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34820. + ;;
  34821. + ia64*)
  34822. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34823. ;;
  34824. *)
  34825. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34826. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34827. ;;
  34828. esac
  34829. else
  34830. - case "$host_cpu" in
  34831. - hppa*64*|ia64*)
  34832. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  34833. + case $host_cpu in
  34834. + hppa*64*)
  34835. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34836. + ;;
  34837. + ia64*)
  34838. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  34839. ;;
  34840. *)
  34841. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34842. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34843. ;;
  34844. esac
  34845. fi
  34846. if test "$with_gnu_ld" = no; then
  34847. - case "$host_cpu" in
  34848. - hppa*64*)
  34849. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  34850. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  34851. - hardcode_libdir_separator_GCJ=:
  34852. - hardcode_direct_GCJ=no
  34853. - hardcode_shlibpath_var_GCJ=no
  34854. - ;;
  34855. - ia64*)
  34856. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34857. - hardcode_direct_GCJ=no
  34858. - hardcode_shlibpath_var_GCJ=no
  34859. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  34860. + hardcode_libdir_separator=:
  34861. - # hardcode_minus_L: Not really in the search PATH,
  34862. - # but as the default location of the library.
  34863. - hardcode_minus_L_GCJ=yes
  34864. + case $host_cpu in
  34865. + hppa*64*|ia64*)
  34866. + hardcode_direct=no
  34867. + hardcode_shlibpath_var=no
  34868. ;;
  34869. *)
  34870. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  34871. - hardcode_libdir_separator_GCJ=:
  34872. - hardcode_direct_GCJ=yes
  34873. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34874. + hardcode_direct=yes
  34875. + hardcode_direct_absolute=yes
  34876. + export_dynamic_flag_spec='${wl}-E'
  34877. # hardcode_minus_L: Not really in the search PATH,
  34878. # but as the default location of the library.
  34879. - hardcode_minus_L_GCJ=yes
  34880. + hardcode_minus_L=yes
  34881. ;;
  34882. esac
  34883. fi
  34884. @@ -16453,237 +8608,307 @@
  34885. irix5* | irix6* | nonstopux*)
  34886. if test "$GCC" = yes; then
  34887. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34888. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  34889. + # Try to use the -exported_symbol ld option, if it does not
  34890. + # work, assume that -exports_file does not work either and
  34891. + # implicitly export all symbols.
  34892. + save_LDFLAGS="$LDFLAGS"
  34893. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  34894. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  34895. +/* end confdefs.h. */
  34896. +int foo(void) {}
  34897. +_ACEOF
  34898. +if ac_fn_c_try_link "$LINENO"; then :
  34899. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  34900. +
  34901. +fi
  34902. +rm -f core conftest.err conftest.$ac_objext \
  34903. + conftest$ac_exeext conftest.$ac_ext
  34904. + LDFLAGS="$save_LDFLAGS"
  34905. else
  34906. - archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  34907. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  34908. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  34909. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  34910. fi
  34911. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  34912. - hardcode_libdir_separator_GCJ=:
  34913. - link_all_deplibs_GCJ=yes
  34914. + archive_cmds_need_lc='no'
  34915. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34916. + hardcode_libdir_separator=:
  34917. + inherit_rpath=yes
  34918. + link_all_deplibs=yes
  34919. ;;
  34920. - netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  34921. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34922. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34923. + netbsd* | netbsdelf*-gnu)
  34924. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  34925. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34926. else
  34927. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34928. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34929. fi
  34930. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  34931. - hardcode_direct_GCJ=yes
  34932. - hardcode_shlibpath_var_GCJ=no
  34933. + hardcode_libdir_flag_spec='-R$libdir'
  34934. + hardcode_direct=yes
  34935. + hardcode_shlibpath_var=no
  34936. ;;
  34937. newsos6)
  34938. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34939. - hardcode_direct_GCJ=yes
  34940. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  34941. - hardcode_libdir_separator_GCJ=:
  34942. - hardcode_shlibpath_var_GCJ=no
  34943. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34944. + hardcode_direct=yes
  34945. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  34946. + hardcode_libdir_separator=:
  34947. + hardcode_shlibpath_var=no
  34948. + ;;
  34949. +
  34950. + *nto* | *qnx*)
  34951. ;;
  34952. openbsd*)
  34953. - hardcode_direct_GCJ=yes
  34954. - hardcode_shlibpath_var_GCJ=no
  34955. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34956. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34957. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  34958. - export_dynamic_flag_spec_GCJ='${wl}-E'
  34959. + if test -f /usr/libexec/ld.so; then
  34960. + hardcode_direct=yes
  34961. + hardcode_shlibpath_var=no
  34962. + hardcode_direct_absolute=yes
  34963. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34964. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34965. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34966. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34967. + export_dynamic_flag_spec='${wl}-E'
  34968. + else
  34969. + case $host_os in
  34970. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34971. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34972. + hardcode_libdir_flag_spec='-R$libdir'
  34973. + ;;
  34974. + *)
  34975. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34976. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  34977. + ;;
  34978. + esac
  34979. + fi
  34980. else
  34981. - case $host_os in
  34982. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34983. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34984. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  34985. - ;;
  34986. - *)
  34987. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34988. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  34989. - ;;
  34990. - esac
  34991. + ld_shlibs=no
  34992. fi
  34993. ;;
  34994. os2*)
  34995. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  34996. - hardcode_minus_L_GCJ=yes
  34997. - allow_undefined_flag_GCJ=unsupported
  34998. - archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  34999. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35000. + hardcode_libdir_flag_spec='-L$libdir'
  35001. + hardcode_minus_L=yes
  35002. + allow_undefined_flag=unsupported
  35003. + archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  35004. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  35005. ;;
  35006. osf3*)
  35007. if test "$GCC" = yes; then
  35008. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35009. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35010. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35011. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35012. else
  35013. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35014. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  35015. + allow_undefined_flag=' -expect_unresolved \*'
  35016. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35017. fi
  35018. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35019. - hardcode_libdir_separator_GCJ=:
  35020. + archive_cmds_need_lc='no'
  35021. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35022. + hardcode_libdir_separator=:
  35023. ;;
  35024. osf4* | osf5*) # as osf3* with the addition of -msym flag
  35025. if test "$GCC" = yes; then
  35026. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  35027. - archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35028. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  35029. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  35030. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  35031. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35032. else
  35033. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  35034. - archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  35035. - archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  35036. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  35037. + allow_undefined_flag=' -expect_unresolved \*'
  35038. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  35039. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  35040. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  35041. # Both c and cxx compiler support -rpath directly
  35042. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  35043. + hardcode_libdir_flag_spec='-rpath $libdir'
  35044. fi
  35045. - hardcode_libdir_separator_GCJ=:
  35046. - ;;
  35047. -
  35048. - sco3.2v5*)
  35049. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35050. - hardcode_shlibpath_var_GCJ=no
  35051. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  35052. - runpath_var=LD_RUN_PATH
  35053. - hardcode_runpath_var=yes
  35054. + archive_cmds_need_lc='no'
  35055. + hardcode_libdir_separator=:
  35056. ;;
  35057. solaris*)
  35058. - no_undefined_flag_GCJ=' -z text'
  35059. + no_undefined_flag=' -z defs'
  35060. if test "$GCC" = yes; then
  35061. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35062. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35063. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  35064. - else
  35065. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35066. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35067. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35068. + wlarc='${wl}'
  35069. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35070. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35071. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35072. + else
  35073. + case `$CC -V 2>&1` in
  35074. + *"Compilers 5.0"*)
  35075. + wlarc=''
  35076. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35077. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35078. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  35079. + ;;
  35080. + *)
  35081. + wlarc='${wl}'
  35082. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35083. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  35084. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  35085. + ;;
  35086. + esac
  35087. fi
  35088. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  35089. - hardcode_shlibpath_var_GCJ=no
  35090. + hardcode_libdir_flag_spec='-R$libdir'
  35091. + hardcode_shlibpath_var=no
  35092. case $host_os in
  35093. solaris2.[0-5] | solaris2.[0-5].*) ;;
  35094. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  35095. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  35096. + *)
  35097. + # The compiler driver will combine and reorder linker options,
  35098. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  35099. + # but is careful enough not to reorder.
  35100. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  35101. + if test "$GCC" = yes; then
  35102. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  35103. + else
  35104. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  35105. + fi
  35106. + ;;
  35107. esac
  35108. - link_all_deplibs_GCJ=yes
  35109. + link_all_deplibs=yes
  35110. ;;
  35111. sunos4*)
  35112. if test "x$host_vendor" = xsequent; then
  35113. # Use $CC to link under sequent, because it throws in some extra .o
  35114. # files that make .init and .fini sections work.
  35115. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35116. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  35117. else
  35118. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35119. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  35120. fi
  35121. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35122. - hardcode_direct_GCJ=yes
  35123. - hardcode_minus_L_GCJ=yes
  35124. - hardcode_shlibpath_var_GCJ=no
  35125. + hardcode_libdir_flag_spec='-L$libdir'
  35126. + hardcode_direct=yes
  35127. + hardcode_minus_L=yes
  35128. + hardcode_shlibpath_var=no
  35129. ;;
  35130. sysv4)
  35131. case $host_vendor in
  35132. sni)
  35133. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35134. - hardcode_direct_GCJ=yes # is this really true???
  35135. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35136. + hardcode_direct=yes # is this really true???
  35137. ;;
  35138. siemens)
  35139. ## LD is ld it makes a PLAMLIB
  35140. ## CC just makes a GrossModule.
  35141. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35142. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  35143. - hardcode_direct_GCJ=no
  35144. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35145. + reload_cmds='$CC -r -o $output$reload_objs'
  35146. + hardcode_direct=no
  35147. ;;
  35148. motorola)
  35149. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35150. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  35151. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35152. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  35153. ;;
  35154. esac
  35155. runpath_var='LD_RUN_PATH'
  35156. - hardcode_shlibpath_var_GCJ=no
  35157. + hardcode_shlibpath_var=no
  35158. ;;
  35159. sysv4.3*)
  35160. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35161. - hardcode_shlibpath_var_GCJ=no
  35162. - export_dynamic_flag_spec_GCJ='-Bexport'
  35163. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35164. + hardcode_shlibpath_var=no
  35165. + export_dynamic_flag_spec='-Bexport'
  35166. ;;
  35167. sysv4*MP*)
  35168. if test -d /usr/nec; then
  35169. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35170. - hardcode_shlibpath_var_GCJ=no
  35171. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35172. + hardcode_shlibpath_var=no
  35173. runpath_var=LD_RUN_PATH
  35174. hardcode_runpath_var=yes
  35175. - ld_shlibs_GCJ=yes
  35176. + ld_shlibs=yes
  35177. fi
  35178. ;;
  35179. - sysv4.2uw2*)
  35180. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  35181. - hardcode_direct_GCJ=yes
  35182. - hardcode_minus_L_GCJ=no
  35183. - hardcode_shlibpath_var_GCJ=no
  35184. - hardcode_runpath_var=yes
  35185. - runpath_var=LD_RUN_PATH
  35186. - ;;
  35187. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  35188. + no_undefined_flag='${wl}-z,text'
  35189. + archive_cmds_need_lc=no
  35190. + hardcode_shlibpath_var=no
  35191. + runpath_var='LD_RUN_PATH'
  35192. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  35193. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  35194. if test "$GCC" = yes; then
  35195. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35196. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35197. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35198. else
  35199. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  35200. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35201. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35202. fi
  35203. - runpath_var='LD_RUN_PATH'
  35204. - hardcode_shlibpath_var_GCJ=no
  35205. ;;
  35206. - sysv5*)
  35207. - no_undefined_flag_GCJ=' -z text'
  35208. - # $CC -shared without GNU ld will not create a library from C++
  35209. - # object files and a static libstdc++, better avoid it by now
  35210. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35211. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  35212. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  35213. - hardcode_libdir_flag_spec_GCJ=
  35214. - hardcode_shlibpath_var_GCJ=no
  35215. + sysv5* | sco3.2v5* | sco5v6*)
  35216. + # Note: We can NOT use -z defs as we might desire, because we do not
  35217. + # link with -lc, and that would cause any symbols used from libc to
  35218. + # always be unresolved, which means just about no library would
  35219. + # ever link correctly. If we're not using GNU ld we use -z text
  35220. + # though, which does catch some bad symbols but isn't as heavy-handed
  35221. + # as -z defs.
  35222. + no_undefined_flag='${wl}-z,text'
  35223. + allow_undefined_flag='${wl}-z,nodefs'
  35224. + archive_cmds_need_lc=no
  35225. + hardcode_shlibpath_var=no
  35226. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  35227. + hardcode_libdir_separator=':'
  35228. + link_all_deplibs=yes
  35229. + export_dynamic_flag_spec='${wl}-Bexport'
  35230. runpath_var='LD_RUN_PATH'
  35231. +
  35232. + if test "$GCC" = yes; then
  35233. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35234. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35235. + else
  35236. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35237. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  35238. + fi
  35239. ;;
  35240. uts4*)
  35241. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35242. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  35243. - hardcode_shlibpath_var_GCJ=no
  35244. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  35245. + hardcode_libdir_flag_spec='-L$libdir'
  35246. + hardcode_shlibpath_var=no
  35247. ;;
  35248. *)
  35249. - ld_shlibs_GCJ=no
  35250. + ld_shlibs=no
  35251. ;;
  35252. esac
  35253. +
  35254. + if test x$host_vendor = xsni; then
  35255. + case $host in
  35256. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35257. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  35258. + ;;
  35259. + esac
  35260. + fi
  35261. fi
  35262. -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  35263. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  35264. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  35265. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  35266. +$as_echo "$ld_shlibs" >&6; }
  35267. +test "$ld_shlibs" = no && can_build_shared=no
  35268. +
  35269. +with_gnu_ld=$with_gnu_ld
  35270. +
  35271. +
  35272. +
  35273. +
  35274. +
  35275. +
  35276. +
  35277. +
  35278. +
  35279. +
  35280. +
  35281. +
  35282. +
  35283. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  35284. -if test "$GCC" = yes; then
  35285. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  35286. -fi
  35287. #
  35288. # Do we need to explicitly link libc?
  35289. #
  35290. -case "x$archive_cmds_need_lc_GCJ" in
  35291. +case "x$archive_cmds_need_lc" in
  35292. x|xyes)
  35293. # Assume -lc should be added
  35294. - archive_cmds_need_lc_GCJ=yes
  35295. + archive_cmds_need_lc=yes
  35296. if test "$enable_shared" = yes && test "$GCC" = yes; then
  35297. - case $archive_cmds_GCJ in
  35298. + case $archive_cmds in
  35299. *'~'*)
  35300. # FIXME: we may have to deal with multi-command sequences.
  35301. ;;
  35302. @@ -16691,2364 +8916,1605 @@
  35303. # Test whether the compiler implicitly links with -lc since on some
  35304. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  35305. # to ld, don't add -lc before -lgcc.
  35306. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  35307. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  35308. - $rm conftest*
  35309. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  35310. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  35311. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  35312. + $RM conftest*
  35313. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35314. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35315. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  35316. (eval $ac_compile) 2>&5
  35317. ac_status=$?
  35318. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35319. - (exit $ac_status); } 2>conftest.err; then
  35320. - soname=conftest
  35321. - lib=conftest
  35322. - libobjs=conftest.$ac_objext
  35323. - deplibs=
  35324. - wl=$lt_prog_compiler_wl_GCJ
  35325. - compiler_flags=-v
  35326. - linker_flags=-v
  35327. - verstring=
  35328. - output_objdir=.
  35329. - libname=conftest
  35330. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  35331. - allow_undefined_flag_GCJ=
  35332. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  35333. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35334. - ac_status=$?
  35335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35336. - (exit $ac_status); }
  35337. - then
  35338. - archive_cmds_need_lc_GCJ=no
  35339. - else
  35340. - archive_cmds_need_lc_GCJ=yes
  35341. - fi
  35342. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  35343. - else
  35344. - cat conftest.err 1>&5
  35345. - fi
  35346. - $rm conftest*
  35347. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  35348. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  35349. - ;;
  35350. - esac
  35351. - fi
  35352. - ;;
  35353. -esac
  35354. -
  35355. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  35356. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  35357. -library_names_spec=
  35358. -libname_spec='lib$name'
  35359. -soname_spec=
  35360. -shrext_cmds=".so"
  35361. -postinstall_cmds=
  35362. -postuninstall_cmds=
  35363. -finish_cmds=
  35364. -finish_eval=
  35365. -shlibpath_var=
  35366. -shlibpath_overrides_runpath=unknown
  35367. -version_type=none
  35368. -dynamic_linker="$host_os ld.so"
  35369. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  35370. -if test "$GCC" = yes; then
  35371. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35372. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  35373. - # if the path contains ";" then we assume it to be the separator
  35374. - # otherwise default to the standard path separator (i.e. ":") - it is
  35375. - # assumed that no part of a normal pathname contains ";" but that should
  35376. - # okay in the real world where ";" in dirpaths is itself problematic.
  35377. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35378. - else
  35379. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35380. - fi
  35381. -else
  35382. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  35383. -fi
  35384. -need_lib_prefix=unknown
  35385. -hardcode_into_libs=no
  35386. -
  35387. -# when you set need_version to no, make sure it does not cause -set_version
  35388. -# flags to be left without arguments
  35389. -need_version=unknown
  35390. -
  35391. -case $host_os in
  35392. -aix3*)
  35393. - version_type=linux
  35394. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  35395. - shlibpath_var=LIBPATH
  35396. -
  35397. - # AIX 3 has no versioning support, so we append a major version to the name.
  35398. - soname_spec='${libname}${release}${shared_ext}$major'
  35399. - ;;
  35400. -
  35401. -aix4* | aix5*)
  35402. - version_type=linux
  35403. - need_lib_prefix=no
  35404. - need_version=no
  35405. - hardcode_into_libs=yes
  35406. - if test "$host_cpu" = ia64; then
  35407. - # AIX 5 supports IA64
  35408. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  35409. - shlibpath_var=LD_LIBRARY_PATH
  35410. - else
  35411. - # With GCC up to 2.95.x, collect2 would create an import file
  35412. - # for dependence libraries. The import file would start with
  35413. - # the line `#! .'. This would cause the generated library to
  35414. - # depend on `.', always an invalid library. This was fixed in
  35415. - # development snapshots of GCC prior to 3.0.
  35416. - case $host_os in
  35417. - aix4 | aix4.[01] | aix4.[01].*)
  35418. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  35419. - echo ' yes '
  35420. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  35421. - :
  35422. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35423. + test $ac_status = 0; } 2>conftest.err; then
  35424. + soname=conftest
  35425. + lib=conftest
  35426. + libobjs=conftest.$ac_objext
  35427. + deplibs=
  35428. + wl=$lt_prog_compiler_wl
  35429. + pic_flag=$lt_prog_compiler_pic
  35430. + compiler_flags=-v
  35431. + linker_flags=-v
  35432. + verstring=
  35433. + output_objdir=.
  35434. + libname=conftest
  35435. + lt_save_allow_undefined_flag=$allow_undefined_flag
  35436. + allow_undefined_flag=
  35437. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  35438. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  35439. + ac_status=$?
  35440. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  35441. + test $ac_status = 0; }
  35442. + then
  35443. + archive_cmds_need_lc=no
  35444. + else
  35445. + archive_cmds_need_lc=yes
  35446. + fi
  35447. + allow_undefined_flag=$lt_save_allow_undefined_flag
  35448. else
  35449. - can_build_shared=no
  35450. + cat conftest.err 1>&5
  35451. fi
  35452. + $RM conftest*
  35453. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  35454. +$as_echo "$archive_cmds_need_lc" >&6; }
  35455. ;;
  35456. esac
  35457. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  35458. - # soname into executable. Probably we can add versioning support to
  35459. - # collect2, so additional links can be useful in future.
  35460. - if test "$aix_use_runtimelinking" = yes; then
  35461. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  35462. - # instead of lib<name>.a to let people know that these are not
  35463. - # typical AIX shared libraries.
  35464. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35465. - else
  35466. - # We preserve .a as extension for shared libraries through AIX4.2
  35467. - # and later when we are not doing run time linking.
  35468. - library_names_spec='${libname}${release}.a $libname.a'
  35469. - soname_spec='${libname}${release}${shared_ext}$major'
  35470. - fi
  35471. - shlibpath_var=LIBPATH
  35472. fi
  35473. ;;
  35474. +esac
  35475. +
  35476. +
  35477. +
  35478. +
  35479. +
  35480. +
  35481. +
  35482. +
  35483. +
  35484. +
  35485. +
  35486. +
  35487. +
  35488. +
  35489. +
  35490. +
  35491. +
  35492. +
  35493. +
  35494. +
  35495. +
  35496. +
  35497. +
  35498. +
  35499. +
  35500. +
  35501. +
  35502. +
  35503. +
  35504. +
  35505. +
  35506. +
  35507. +
  35508. +
  35509. +
  35510. +
  35511. +
  35512. +
  35513. +
  35514. +
  35515. +
  35516. +
  35517. +
  35518. +
  35519. +
  35520. +
  35521. +
  35522. +
  35523. +
  35524. +
  35525. +
  35526. +
  35527. +
  35528. +
  35529. +
  35530. +
  35531. +
  35532. +
  35533. +
  35534. +
  35535. +
  35536. +
  35537. +
  35538. +
  35539. +
  35540. +
  35541. -amigaos*)
  35542. - library_names_spec='$libname.ixlibrary $libname.a'
  35543. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  35544. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  35545. - ;;
  35546. -beos*)
  35547. - library_names_spec='${libname}${shared_ext}'
  35548. - dynamic_linker="$host_os ld.so"
  35549. - shlibpath_var=LIBRARY_PATH
  35550. - ;;
  35551. -bsdi4*)
  35552. - version_type=linux
  35553. - need_version=no
  35554. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35555. - soname_spec='${libname}${release}${shared_ext}$major'
  35556. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  35557. - shlibpath_var=LD_LIBRARY_PATH
  35558. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  35559. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  35560. - # the default ld.so.conf also contains /usr/contrib/lib and
  35561. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  35562. - # libtool to hard-code these into programs
  35563. - ;;
  35564. -cygwin* | mingw* | pw32*)
  35565. - version_type=windows
  35566. - shrext_cmds=".dll"
  35567. - need_version=no
  35568. - need_lib_prefix=no
  35569. - case $GCC,$host_os in
  35570. - yes,cygwin* | yes,mingw* | yes,pw32*)
  35571. - library_names_spec='$libname.dll.a'
  35572. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  35573. - postinstall_cmds='base_file=`basename \${file}`~
  35574. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  35575. - dldir=$destdir/`dirname \$dlpath`~
  35576. - test -d \$dldir || mkdir -p \$dldir~
  35577. - $install_prog $dir/$dlname \$dldir/$dlname'
  35578. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  35579. - dlpath=$dir/\$dldll~
  35580. - $rm \$dlpath'
  35581. - shlibpath_overrides_runpath=yes
  35582. - case $host_os in
  35583. - cygwin*)
  35584. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  35585. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35586. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  35587. - ;;
  35588. - mingw*)
  35589. - # MinGW DLLs use traditional 'lib' prefix
  35590. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  35591. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  35592. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  35593. - # It is most probably a Windows format PATH printed by
  35594. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  35595. - # path with ; separators, and with drive letters. We can handle the
  35596. - # drive letters (cygwin fileutils understands them), so leave them,
  35597. - # especially as we might pass files found there to a mingw objdump,
  35598. - # which wouldn't understand a cygwinified path. Ahh.
  35599. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  35600. - else
  35601. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  35602. - fi
  35603. - ;;
  35604. - pw32*)
  35605. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  35606. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
  35607. - ;;
  35608. - esac
  35609. - ;;
  35610. - *)
  35611. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  35612. - ;;
  35613. - esac
  35614. - dynamic_linker='Win32 ld.exe'
  35615. - # FIXME: first we should search . and the directory the executable is in
  35616. - shlibpath_var=PATH
  35617. - ;;
  35618. -darwin* | rhapsody*)
  35619. - dynamic_linker="$host_os dyld"
  35620. - version_type=darwin
  35621. - need_lib_prefix=no
  35622. - need_version=no
  35623. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  35624. - soname_spec='${libname}${release}${major}$shared_ext'
  35625. - shlibpath_overrides_runpath=yes
  35626. - shlibpath_var=DYLD_LIBRARY_PATH
  35627. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  35628. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  35629. - if test "$GCC" = yes; then
  35630. - sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
  35631. - else
  35632. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  35633. - fi
  35634. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  35635. - ;;
  35636. -dgux*)
  35637. - version_type=linux
  35638. - need_lib_prefix=no
  35639. - need_version=no
  35640. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  35641. - soname_spec='${libname}${release}${shared_ext}$major'
  35642. - shlibpath_var=LD_LIBRARY_PATH
  35643. - ;;
  35644. -freebsd1*)
  35645. - dynamic_linker=no
  35646. - ;;
  35647. -kfreebsd*-gnu)
  35648. - version_type=linux
  35649. - need_lib_prefix=no
  35650. - need_version=no
  35651. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35652. - soname_spec='${libname}${release}${shared_ext}$major'
  35653. - shlibpath_var=LD_LIBRARY_PATH
  35654. - shlibpath_overrides_runpath=no
  35655. - hardcode_into_libs=yes
  35656. - dynamic_linker='GNU ld.so'
  35657. - ;;
  35658. -freebsd*)
  35659. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  35660. - version_type=freebsd-$objformat
  35661. - case $version_type in
  35662. - freebsd-elf*)
  35663. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  35664. - need_version=no
  35665. - need_lib_prefix=no
  35666. - ;;
  35667. - freebsd-*)
  35668. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  35669. - need_version=yes
  35670. - ;;
  35671. - esac
  35672. - shlibpath_var=LD_LIBRARY_PATH
  35673. - case $host_os in
  35674. - freebsd2*)
  35675. - shlibpath_overrides_runpath=yes
  35676. - ;;
  35677. - freebsd3.01* | freebsdelf3.01*)
  35678. - shlibpath_overrides_runpath=yes
  35679. - hardcode_into_libs=yes
  35680. - ;;
  35681. - *) # from 3.2 on
  35682. - shlibpath_overrides_runpath=no
  35683. - hardcode_into_libs=yes
  35684. - ;;
  35685. - esac
  35686. - ;;
  35687. -gnu*)
  35688. - version_type=linux
  35689. - need_lib_prefix=no
  35690. - need_version=no
  35691. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  35692. - soname_spec='${libname}${release}${shared_ext}$major'
  35693. - shlibpath_var=LD_LIBRARY_PATH
  35694. - hardcode_into_libs=yes
  35695. - ;;
  35696. -hpux9* | hpux10* | hpux11*)
  35697. - # Give a soname corresponding to the major version so that dld.sl refuses to
  35698. - # link against other versions.
  35699. - version_type=sunos
  35700. - need_lib_prefix=no
  35701. - need_version=no
  35702. - case "$host_cpu" in
  35703. - ia64*)
  35704. - shrext_cmds='.so'
  35705. - hardcode_into_libs=yes
  35706. - dynamic_linker="$host_os dld.so"
  35707. - shlibpath_var=LD_LIBRARY_PATH
  35708. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35709. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35710. - soname_spec='${libname}${release}${shared_ext}$major'
  35711. - if test "X$HPUX_IA64_MODE" = X32; then
  35712. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  35713. - else
  35714. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  35715. - fi
  35716. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35717. - ;;
  35718. - hppa*64*)
  35719. - shrext_cmds='.sl'
  35720. - hardcode_into_libs=yes
  35721. - dynamic_linker="$host_os dld.sl"
  35722. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  35723. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  35724. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35725. - soname_spec='${libname}${release}${shared_ext}$major'
  35726. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  35727. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  35728. - ;;
  35729. - *)
  35730. - shrext_cmds='.sl'
  35731. - dynamic_linker="$host_os dld.sl"
  35732. - shlibpath_var=SHLIB_PATH
  35733. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  35734. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35735. - soname_spec='${libname}${release}${shared_ext}$major'
  35736. - ;;
  35737. - esac
  35738. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  35739. - postinstall_cmds='chmod 555 $lib'
  35740. - ;;
  35741. -irix5* | irix6* | nonstopux*)
  35742. - case $host_os in
  35743. - nonstopux*) version_type=nonstopux ;;
  35744. - *)
  35745. - if test "$lt_cv_prog_gnu_ld" = yes; then
  35746. - version_type=linux
  35747. - else
  35748. - version_type=irix
  35749. - fi ;;
  35750. - esac
  35751. - need_lib_prefix=no
  35752. - need_version=no
  35753. - soname_spec='${libname}${release}${shared_ext}$major'
  35754. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  35755. - case $host_os in
  35756. - irix5* | nonstopux*)
  35757. - libsuff= shlibsuff=
  35758. - ;;
  35759. - *)
  35760. - case $LD in # libtool.m4 will add one of these switches to LD
  35761. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  35762. - libsuff= shlibsuff= libmagic=32-bit;;
  35763. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  35764. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  35765. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  35766. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  35767. - *) libsuff= shlibsuff= libmagic=never-match;;
  35768. - esac
  35769. - ;;
  35770. - esac
  35771. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  35772. - shlibpath_overrides_runpath=no
  35773. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  35774. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  35775. - hardcode_into_libs=yes
  35776. - ;;
  35777. -# No shared lib support for Linux oldld, aout, or coff.
  35778. -linux*oldld* | linux*aout* | linux*coff*)
  35779. - dynamic_linker=no
  35780. - ;;
  35781. -# This must be Linux ELF.
  35782. -linux*)
  35783. - version_type=linux
  35784. - need_lib_prefix=no
  35785. - need_version=no
  35786. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35787. - soname_spec='${libname}${release}${shared_ext}$major'
  35788. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  35789. - shlibpath_var=LD_LIBRARY_PATH
  35790. - shlibpath_overrides_runpath=no
  35791. - # This implies no fast_install, which is unacceptable.
  35792. - # Some rework will be needed to allow for fast_install
  35793. - # before this can be enabled.
  35794. - hardcode_into_libs=yes
  35795. - # Append ld.so.conf contents to the search path
  35796. - if test -f /etc/ld.so.conf; then
  35797. - lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
  35798. - sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  35799. - fi
  35800. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  35801. - # powerpc, because MkLinux only supported shared libraries with the
  35802. - # GNU dynamic linker. Since this was broken with cross compilers,
  35803. - # most powerpc-linux boxes support dynamic linking these days and
  35804. - # people can always --disable-shared, the test was removed, and we
  35805. - # assume the GNU/Linux dynamic linker is in use.
  35806. - dynamic_linker='GNU/Linux ld.so'
  35807. - ;;
  35808. -netbsdelf*-gnu)
  35809. - version_type=linux
  35810. - need_lib_prefix=no
  35811. - need_version=no
  35812. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35813. - soname_spec='${libname}${release}${shared_ext}$major'
  35814. - shlibpath_var=LD_LIBRARY_PATH
  35815. - shlibpath_overrides_runpath=no
  35816. - hardcode_into_libs=yes
  35817. - dynamic_linker='NetBSD ld.elf_so'
  35818. - ;;
  35819. -knetbsd*-gnu)
  35820. - version_type=linux
  35821. - need_lib_prefix=no
  35822. - need_version=no
  35823. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35824. - soname_spec='${libname}${release}${shared_ext}$major'
  35825. - shlibpath_var=LD_LIBRARY_PATH
  35826. - shlibpath_overrides_runpath=no
  35827. - hardcode_into_libs=yes
  35828. - dynamic_linker='GNU ld.so'
  35829. - ;;
  35830. -netbsd*)
  35831. - version_type=sunos
  35832. - need_lib_prefix=no
  35833. - need_version=no
  35834. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35835. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35836. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35837. - dynamic_linker='NetBSD (a.out) ld.so'
  35838. - else
  35839. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35840. - soname_spec='${libname}${release}${shared_ext}$major'
  35841. - dynamic_linker='NetBSD ld.elf_so'
  35842. - fi
  35843. - shlibpath_var=LD_LIBRARY_PATH
  35844. - shlibpath_overrides_runpath=yes
  35845. - hardcode_into_libs=yes
  35846. - ;;
  35847. -newsos6)
  35848. - version_type=linux
  35849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35850. - shlibpath_var=LD_LIBRARY_PATH
  35851. - shlibpath_overrides_runpath=yes
  35852. - ;;
  35853. -nto-qnx*)
  35854. - version_type=linux
  35855. - need_lib_prefix=no
  35856. - need_version=no
  35857. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35858. - soname_spec='${libname}${release}${shared_ext}$major'
  35859. - shlibpath_var=LD_LIBRARY_PATH
  35860. - shlibpath_overrides_runpath=yes
  35861. - ;;
  35862. -openbsd*)
  35863. - version_type=sunos
  35864. - need_lib_prefix=no
  35865. - need_version=yes
  35866. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35867. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35868. - shlibpath_var=LD_LIBRARY_PATH
  35869. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35870. - case $host_os in
  35871. - openbsd2.[89] | openbsd2.[89].*)
  35872. - shlibpath_overrides_runpath=no
  35873. - ;;
  35874. - *)
  35875. - shlibpath_overrides_runpath=yes
  35876. - ;;
  35877. - esac
  35878. - else
  35879. - shlibpath_overrides_runpath=yes
  35880. - fi
  35881. - ;;
  35882. -os2*)
  35883. - libname_spec='$name'
  35884. - shrext_cmds=".dll"
  35885. - need_lib_prefix=no
  35886. - library_names_spec='$libname${shared_ext} $libname.a'
  35887. - dynamic_linker='OS/2 ld.exe'
  35888. - shlibpath_var=LIBPATH
  35889. - ;;
  35890. -osf3* | osf4* | osf5*)
  35891. - version_type=osf
  35892. - need_lib_prefix=no
  35893. - need_version=no
  35894. - soname_spec='${libname}${release}${shared_ext}$major'
  35895. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35896. - shlibpath_var=LD_LIBRARY_PATH
  35897. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  35898. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  35899. - ;;
  35900. -sco3.2v5*)
  35901. - version_type=osf
  35902. - soname_spec='${libname}${release}${shared_ext}$major'
  35903. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35904. - shlibpath_var=LD_LIBRARY_PATH
  35905. - ;;
  35906. -solaris*)
  35907. - version_type=linux
  35908. - need_lib_prefix=no
  35909. - need_version=no
  35910. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35911. - soname_spec='${libname}${release}${shared_ext}$major'
  35912. - shlibpath_var=LD_LIBRARY_PATH
  35913. - shlibpath_overrides_runpath=yes
  35914. - hardcode_into_libs=yes
  35915. - # ldd complains unless libraries are executable
  35916. - postinstall_cmds='chmod +x $lib'
  35917. - ;;
  35918. -sunos4*)
  35919. - version_type=sunos
  35920. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35921. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  35922. - shlibpath_var=LD_LIBRARY_PATH
  35923. - shlibpath_overrides_runpath=yes
  35924. - if test "$with_gnu_ld" = yes; then
  35925. - need_lib_prefix=no
  35926. - fi
  35927. - need_version=yes
  35928. - ;;
  35929. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35930. - version_type=linux
  35931. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35932. - soname_spec='${libname}${release}${shared_ext}$major'
  35933. - shlibpath_var=LD_LIBRARY_PATH
  35934. - case $host_vendor in
  35935. - sni)
  35936. - shlibpath_overrides_runpath=no
  35937. - need_lib_prefix=no
  35938. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  35939. - runpath_var=LD_RUN_PATH
  35940. - ;;
  35941. - siemens)
  35942. - need_lib_prefix=no
  35943. - ;;
  35944. - motorola)
  35945. - need_lib_prefix=no
  35946. - need_version=no
  35947. - shlibpath_overrides_runpath=no
  35948. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  35949. - ;;
  35950. - esac
  35951. - ;;
  35952. -sysv4*MP*)
  35953. - if test -d /usr/nec ;then
  35954. - version_type=linux
  35955. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  35956. - soname_spec='$libname${shared_ext}.$major'
  35957. - shlibpath_var=LD_LIBRARY_PATH
  35958. - fi
  35959. - ;;
  35960. -uts4*)
  35961. - version_type=linux
  35962. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35963. - soname_spec='${libname}${release}${shared_ext}$major'
  35964. - shlibpath_var=LD_LIBRARY_PATH
  35965. - ;;
  35966. -*)
  35967. - dynamic_linker=no
  35968. - ;;
  35969. -esac
  35970. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  35971. -echo "${ECHO_T}$dynamic_linker" >&6
  35972. -test "$dynamic_linker" = no && can_build_shared=no
  35973. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  35974. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  35975. -hardcode_action_GCJ=
  35976. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  35977. - test -n "$runpath_var GCJ" || \
  35978. - test "X$hardcode_automatic_GCJ"="Xyes" ; then
  35979. - # We can hardcode non-existant directories.
  35980. - if test "$hardcode_direct_GCJ" != no &&
  35981. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  35982. - # have to relink, otherwise we might link with an installed library
  35983. - # when we should be linking with a yet-to-be-installed one
  35984. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  35985. - test "$hardcode_minus_L_GCJ" != no; then
  35986. - # Linking always hardcodes the temporary library directory.
  35987. - hardcode_action_GCJ=relink
  35988. - else
  35989. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  35990. - hardcode_action_GCJ=immediate
  35991. - fi
  35992. -else
  35993. - # We cannot hardcode anything, or else we can only hardcode existing
  35994. - # directories.
  35995. - hardcode_action_GCJ=unsupported
  35996. -fi
  35997. -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  35998. -echo "${ECHO_T}$hardcode_action_GCJ" >&6
  35999. -if test "$hardcode_action_GCJ" = relink; then
  36000. - # Fast installation is not supported
  36001. - enable_fast_install=no
  36002. -elif test "$shlibpath_overrides_runpath" = yes ||
  36003. - test "$enable_shared" = no; then
  36004. - # Fast installation is not necessary
  36005. - enable_fast_install=needless
  36006. -fi
  36007. -striplib=
  36008. -old_striplib=
  36009. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  36010. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  36011. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  36012. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  36013. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  36014. - echo "$as_me:$LINENO: result: yes" >&5
  36015. -echo "${ECHO_T}yes" >&6
  36016. -else
  36017. -# FIXME - insert some real tests, host_os isn't really good enough
  36018. - case $host_os in
  36019. - darwin*)
  36020. - if test -n "$STRIP" ; then
  36021. - striplib="$STRIP -x"
  36022. - echo "$as_me:$LINENO: result: yes" >&5
  36023. -echo "${ECHO_T}yes" >&6
  36024. - else
  36025. - echo "$as_me:$LINENO: result: no" >&5
  36026. -echo "${ECHO_T}no" >&6
  36027. -fi
  36028. - ;;
  36029. - *)
  36030. - echo "$as_me:$LINENO: result: no" >&5
  36031. -echo "${ECHO_T}no" >&6
  36032. - ;;
  36033. - esac
  36034. -fi
  36035. -if test "x$enable_dlopen" != xyes; then
  36036. - enable_dlopen=unknown
  36037. - enable_dlopen_self=unknown
  36038. - enable_dlopen_self_static=unknown
  36039. -else
  36040. - lt_cv_dlopen=no
  36041. - lt_cv_dlopen_libs=
  36042. - case $host_os in
  36043. - beos*)
  36044. - lt_cv_dlopen="load_add_on"
  36045. - lt_cv_dlopen_libs=
  36046. - lt_cv_dlopen_self=yes
  36047. - ;;
  36048. - mingw* | pw32*)
  36049. - lt_cv_dlopen="LoadLibrary"
  36050. - lt_cv_dlopen_libs=
  36051. - ;;
  36052. - cygwin*)
  36053. - lt_cv_dlopen="dlopen"
  36054. - lt_cv_dlopen_libs=
  36055. - ;;
  36056. - darwin*)
  36057. - # if libdl is installed we need to link against it
  36058. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  36059. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  36060. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  36061. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36062. -else
  36063. - ac_check_lib_save_LIBS=$LIBS
  36064. -LIBS="-ldl $LIBS"
  36065. -cat >conftest.$ac_ext <<_ACEOF
  36066. -/* confdefs.h. */
  36067. -_ACEOF
  36068. -cat confdefs.h >>conftest.$ac_ext
  36069. -cat >>conftest.$ac_ext <<_ACEOF
  36070. -/* end confdefs.h. */
  36071. -/* Override any gcc2 internal prototype to avoid an error. */
  36072. -#ifdef __cplusplus
  36073. -extern "C"
  36074. -#endif
  36075. -/* We use char because int might match the return type of a gcc2
  36076. - builtin and then its argument prototype would still apply. */
  36077. -char dlopen ();
  36078. -int
  36079. -main ()
  36080. -{
  36081. -dlopen ();
  36082. - ;
  36083. - return 0;
  36084. -}
  36085. -_ACEOF
  36086. -rm -f conftest.$ac_objext conftest$ac_exeext
  36087. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36088. - (eval $ac_link) 2>conftest.er1
  36089. - ac_status=$?
  36090. - grep -v '^ *+' conftest.er1 >conftest.err
  36091. - rm -f conftest.er1
  36092. - cat conftest.err >&5
  36093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36094. - (exit $ac_status); } &&
  36095. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36096. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36097. - (eval $ac_try) 2>&5
  36098. - ac_status=$?
  36099. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36100. - (exit $ac_status); }; } &&
  36101. - { ac_try='test -s conftest$ac_exeext'
  36102. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36103. - (eval $ac_try) 2>&5
  36104. - ac_status=$?
  36105. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36106. - (exit $ac_status); }; }; then
  36107. - ac_cv_lib_dl_dlopen=yes
  36108. -else
  36109. - echo "$as_me: failed program was:" >&5
  36110. -sed 's/^/| /' conftest.$ac_ext >&5
  36111. -ac_cv_lib_dl_dlopen=no
  36112. -fi
  36113. -rm -f conftest.err conftest.$ac_objext \
  36114. - conftest$ac_exeext conftest.$ac_ext
  36115. -LIBS=$ac_check_lib_save_LIBS
  36116. -fi
  36117. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  36118. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  36119. -if test $ac_cv_lib_dl_dlopen = yes; then
  36120. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  36121. -else
  36122. - lt_cv_dlopen="dyld"
  36123. - lt_cv_dlopen_libs=
  36124. - lt_cv_dlopen_self=yes
  36125. -fi
  36126. - ;;
  36127. - *)
  36128. - echo "$as_me:$LINENO: checking for shl_load" >&5
  36129. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  36130. -if test "${ac_cv_func_shl_load+set}" = set; then
  36131. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36132. -else
  36133. - cat >conftest.$ac_ext <<_ACEOF
  36134. -/* confdefs.h. */
  36135. -_ACEOF
  36136. -cat confdefs.h >>conftest.$ac_ext
  36137. -cat >>conftest.$ac_ext <<_ACEOF
  36138. -/* end confdefs.h. */
  36139. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  36140. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36141. -#define shl_load innocuous_shl_load
  36142. -/* System header to define __stub macros and hopefully few prototypes,
  36143. - which can conflict with char shl_load (); below.
  36144. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36145. - <limits.h> exists even on freestanding compilers. */
  36146. -#ifdef __STDC__
  36147. -# include <limits.h>
  36148. -#else
  36149. -# include <assert.h>
  36150. -#endif
  36151. -#undef shl_load
  36152. -/* Override any gcc2 internal prototype to avoid an error. */
  36153. -#ifdef __cplusplus
  36154. -extern "C"
  36155. -{
  36156. -#endif
  36157. -/* We use char because int might match the return type of a gcc2
  36158. - builtin and then its argument prototype would still apply. */
  36159. -char shl_load ();
  36160. -/* The GNU C library defines this for functions which it implements
  36161. - to always fail with ENOSYS. Some functions are actually named
  36162. - something starting with __ and the normal name is an alias. */
  36163. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  36164. -choke me
  36165. -#else
  36166. -char (*f) () = shl_load;
  36167. -#endif
  36168. -#ifdef __cplusplus
  36169. -}
  36170. -#endif
  36171. -int
  36172. -main ()
  36173. -{
  36174. -return f != shl_load;
  36175. - ;
  36176. - return 0;
  36177. -}
  36178. -_ACEOF
  36179. -rm -f conftest.$ac_objext conftest$ac_exeext
  36180. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36181. - (eval $ac_link) 2>conftest.er1
  36182. - ac_status=$?
  36183. - grep -v '^ *+' conftest.er1 >conftest.err
  36184. - rm -f conftest.er1
  36185. - cat conftest.err >&5
  36186. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36187. - (exit $ac_status); } &&
  36188. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36189. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36190. - (eval $ac_try) 2>&5
  36191. - ac_status=$?
  36192. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36193. - (exit $ac_status); }; } &&
  36194. - { ac_try='test -s conftest$ac_exeext'
  36195. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36196. - (eval $ac_try) 2>&5
  36197. - ac_status=$?
  36198. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36199. - (exit $ac_status); }; }; then
  36200. - ac_cv_func_shl_load=yes
  36201. -else
  36202. - echo "$as_me: failed program was:" >&5
  36203. -sed 's/^/| /' conftest.$ac_ext >&5
  36204. -ac_cv_func_shl_load=no
  36205. -fi
  36206. -rm -f conftest.err conftest.$ac_objext \
  36207. - conftest$ac_exeext conftest.$ac_ext
  36208. -fi
  36209. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  36210. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  36211. -if test $ac_cv_func_shl_load = yes; then
  36212. - lt_cv_dlopen="shl_load"
  36213. -else
  36214. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  36215. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  36216. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  36217. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36218. -else
  36219. - ac_check_lib_save_LIBS=$LIBS
  36220. -LIBS="-ldld $LIBS"
  36221. -cat >conftest.$ac_ext <<_ACEOF
  36222. -/* confdefs.h. */
  36223. -_ACEOF
  36224. -cat confdefs.h >>conftest.$ac_ext
  36225. -cat >>conftest.$ac_ext <<_ACEOF
  36226. -/* end confdefs.h. */
  36227. -/* Override any gcc2 internal prototype to avoid an error. */
  36228. -#ifdef __cplusplus
  36229. -extern "C"
  36230. -#endif
  36231. -/* We use char because int might match the return type of a gcc2
  36232. - builtin and then its argument prototype would still apply. */
  36233. -char shl_load ();
  36234. -int
  36235. -main ()
  36236. -{
  36237. -shl_load ();
  36238. - ;
  36239. - return 0;
  36240. -}
  36241. -_ACEOF
  36242. -rm -f conftest.$ac_objext conftest$ac_exeext
  36243. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36244. - (eval $ac_link) 2>conftest.er1
  36245. - ac_status=$?
  36246. - grep -v '^ *+' conftest.er1 >conftest.err
  36247. - rm -f conftest.er1
  36248. - cat conftest.err >&5
  36249. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36250. - (exit $ac_status); } &&
  36251. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36252. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36253. - (eval $ac_try) 2>&5
  36254. - ac_status=$?
  36255. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36256. - (exit $ac_status); }; } &&
  36257. - { ac_try='test -s conftest$ac_exeext'
  36258. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36259. - (eval $ac_try) 2>&5
  36260. - ac_status=$?
  36261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36262. - (exit $ac_status); }; }; then
  36263. - ac_cv_lib_dld_shl_load=yes
  36264. -else
  36265. - echo "$as_me: failed program was:" >&5
  36266. -sed 's/^/| /' conftest.$ac_ext >&5
  36267. -ac_cv_lib_dld_shl_load=no
  36268. -fi
  36269. -rm -f conftest.err conftest.$ac_objext \
  36270. - conftest$ac_exeext conftest.$ac_ext
  36271. -LIBS=$ac_check_lib_save_LIBS
  36272. -fi
  36273. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  36274. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  36275. -if test $ac_cv_lib_dld_shl_load = yes; then
  36276. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  36277. -else
  36278. - echo "$as_me:$LINENO: checking for dlopen" >&5
  36279. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  36280. -if test "${ac_cv_func_dlopen+set}" = set; then
  36281. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36282. -else
  36283. - cat >conftest.$ac_ext <<_ACEOF
  36284. -/* confdefs.h. */
  36285. -_ACEOF
  36286. -cat confdefs.h >>conftest.$ac_ext
  36287. -cat >>conftest.$ac_ext <<_ACEOF
  36288. -/* end confdefs.h. */
  36289. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  36290. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  36291. -#define dlopen innocuous_dlopen
  36292. -/* System header to define __stub macros and hopefully few prototypes,
  36293. - which can conflict with char dlopen (); below.
  36294. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  36295. - <limits.h> exists even on freestanding compilers. */
  36296. -#ifdef __STDC__
  36297. -# include <limits.h>
  36298. -#else
  36299. -# include <assert.h>
  36300. -#endif
  36301. -#undef dlopen
  36302. -/* Override any gcc2 internal prototype to avoid an error. */
  36303. -#ifdef __cplusplus
  36304. -extern "C"
  36305. -{
  36306. -#endif
  36307. -/* We use char because int might match the return type of a gcc2
  36308. - builtin and then its argument prototype would still apply. */
  36309. -char dlopen ();
  36310. -/* The GNU C library defines this for functions which it implements
  36311. - to always fail with ENOSYS. Some functions are actually named
  36312. - something starting with __ and the normal name is an alias. */
  36313. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  36314. -choke me
  36315. -#else
  36316. -char (*f) () = dlopen;
  36317. -#endif
  36318. -#ifdef __cplusplus
  36319. -}
  36320. -#endif
  36321. -int
  36322. -main ()
  36323. -{
  36324. -return f != dlopen;
  36325. - ;
  36326. - return 0;
  36327. -}
  36328. -_ACEOF
  36329. -rm -f conftest.$ac_objext conftest$ac_exeext
  36330. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36331. - (eval $ac_link) 2>conftest.er1
  36332. - ac_status=$?
  36333. - grep -v '^ *+' conftest.er1 >conftest.err
  36334. - rm -f conftest.er1
  36335. - cat conftest.err >&5
  36336. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36337. - (exit $ac_status); } &&
  36338. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36339. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36340. - (eval $ac_try) 2>&5
  36341. - ac_status=$?
  36342. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36343. - (exit $ac_status); }; } &&
  36344. - { ac_try='test -s conftest$ac_exeext'
  36345. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36346. - (eval $ac_try) 2>&5
  36347. - ac_status=$?
  36348. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36349. - (exit $ac_status); }; }; then
  36350. - ac_cv_func_dlopen=yes
  36351. -else
  36352. - echo "$as_me: failed program was:" >&5
  36353. -sed 's/^/| /' conftest.$ac_ext >&5
  36354. -ac_cv_func_dlopen=no
  36355. -fi
  36356. -rm -f conftest.err conftest.$ac_objext \
  36357. - conftest$ac_exeext conftest.$ac_ext
  36358. -fi
  36359. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  36360. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  36361. -if test $ac_cv_func_dlopen = yes; then
  36362. - lt_cv_dlopen="dlopen"
  36363. -else
  36364. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  36365. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  36366. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  36367. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36368. -else
  36369. - ac_check_lib_save_LIBS=$LIBS
  36370. -LIBS="-ldl $LIBS"
  36371. -cat >conftest.$ac_ext <<_ACEOF
  36372. -/* confdefs.h. */
  36373. -_ACEOF
  36374. -cat confdefs.h >>conftest.$ac_ext
  36375. -cat >>conftest.$ac_ext <<_ACEOF
  36376. -/* end confdefs.h. */
  36377. -/* Override any gcc2 internal prototype to avoid an error. */
  36378. -#ifdef __cplusplus
  36379. -extern "C"
  36380. -#endif
  36381. -/* We use char because int might match the return type of a gcc2
  36382. - builtin and then its argument prototype would still apply. */
  36383. -char dlopen ();
  36384. -int
  36385. -main ()
  36386. -{
  36387. -dlopen ();
  36388. - ;
  36389. - return 0;
  36390. -}
  36391. -_ACEOF
  36392. -rm -f conftest.$ac_objext conftest$ac_exeext
  36393. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36394. - (eval $ac_link) 2>conftest.er1
  36395. - ac_status=$?
  36396. - grep -v '^ *+' conftest.er1 >conftest.err
  36397. - rm -f conftest.er1
  36398. - cat conftest.err >&5
  36399. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36400. - (exit $ac_status); } &&
  36401. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36402. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36403. - (eval $ac_try) 2>&5
  36404. - ac_status=$?
  36405. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36406. - (exit $ac_status); }; } &&
  36407. - { ac_try='test -s conftest$ac_exeext'
  36408. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36409. - (eval $ac_try) 2>&5
  36410. - ac_status=$?
  36411. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36412. - (exit $ac_status); }; }; then
  36413. - ac_cv_lib_dl_dlopen=yes
  36414. -else
  36415. - echo "$as_me: failed program was:" >&5
  36416. -sed 's/^/| /' conftest.$ac_ext >&5
  36417. -ac_cv_lib_dl_dlopen=no
  36418. -fi
  36419. -rm -f conftest.err conftest.$ac_objext \
  36420. - conftest$ac_exeext conftest.$ac_ext
  36421. -LIBS=$ac_check_lib_save_LIBS
  36422. -fi
  36423. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  36424. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  36425. -if test $ac_cv_lib_dl_dlopen = yes; then
  36426. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  36427. -else
  36428. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  36429. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  36430. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  36431. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36432. -else
  36433. - ac_check_lib_save_LIBS=$LIBS
  36434. -LIBS="-lsvld $LIBS"
  36435. -cat >conftest.$ac_ext <<_ACEOF
  36436. -/* confdefs.h. */
  36437. -_ACEOF
  36438. -cat confdefs.h >>conftest.$ac_ext
  36439. -cat >>conftest.$ac_ext <<_ACEOF
  36440. -/* end confdefs.h. */
  36441. -/* Override any gcc2 internal prototype to avoid an error. */
  36442. -#ifdef __cplusplus
  36443. -extern "C"
  36444. -#endif
  36445. -/* We use char because int might match the return type of a gcc2
  36446. - builtin and then its argument prototype would still apply. */
  36447. -char dlopen ();
  36448. -int
  36449. -main ()
  36450. -{
  36451. -dlopen ();
  36452. - ;
  36453. - return 0;
  36454. -}
  36455. -_ACEOF
  36456. -rm -f conftest.$ac_objext conftest$ac_exeext
  36457. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36458. - (eval $ac_link) 2>conftest.er1
  36459. - ac_status=$?
  36460. - grep -v '^ *+' conftest.er1 >conftest.err
  36461. - rm -f conftest.er1
  36462. - cat conftest.err >&5
  36463. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36464. - (exit $ac_status); } &&
  36465. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36466. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36467. - (eval $ac_try) 2>&5
  36468. - ac_status=$?
  36469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36470. - (exit $ac_status); }; } &&
  36471. - { ac_try='test -s conftest$ac_exeext'
  36472. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36473. - (eval $ac_try) 2>&5
  36474. - ac_status=$?
  36475. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36476. - (exit $ac_status); }; }; then
  36477. - ac_cv_lib_svld_dlopen=yes
  36478. -else
  36479. - echo "$as_me: failed program was:" >&5
  36480. -sed 's/^/| /' conftest.$ac_ext >&5
  36481. -ac_cv_lib_svld_dlopen=no
  36482. -fi
  36483. -rm -f conftest.err conftest.$ac_objext \
  36484. - conftest$ac_exeext conftest.$ac_ext
  36485. -LIBS=$ac_check_lib_save_LIBS
  36486. -fi
  36487. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  36488. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  36489. -if test $ac_cv_lib_svld_dlopen = yes; then
  36490. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  36491. -else
  36492. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  36493. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  36494. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  36495. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36496. -else
  36497. - ac_check_lib_save_LIBS=$LIBS
  36498. -LIBS="-ldld $LIBS"
  36499. -cat >conftest.$ac_ext <<_ACEOF
  36500. -/* confdefs.h. */
  36501. -_ACEOF
  36502. -cat confdefs.h >>conftest.$ac_ext
  36503. -cat >>conftest.$ac_ext <<_ACEOF
  36504. -/* end confdefs.h. */
  36505. -/* Override any gcc2 internal prototype to avoid an error. */
  36506. -#ifdef __cplusplus
  36507. -extern "C"
  36508. -#endif
  36509. -/* We use char because int might match the return type of a gcc2
  36510. - builtin and then its argument prototype would still apply. */
  36511. -char dld_link ();
  36512. -int
  36513. -main ()
  36514. -{
  36515. -dld_link ();
  36516. - ;
  36517. - return 0;
  36518. -}
  36519. -_ACEOF
  36520. -rm -f conftest.$ac_objext conftest$ac_exeext
  36521. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36522. - (eval $ac_link) 2>conftest.er1
  36523. - ac_status=$?
  36524. - grep -v '^ *+' conftest.er1 >conftest.err
  36525. - rm -f conftest.er1
  36526. - cat conftest.err >&5
  36527. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36528. - (exit $ac_status); } &&
  36529. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  36530. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36531. - (eval $ac_try) 2>&5
  36532. - ac_status=$?
  36533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36534. - (exit $ac_status); }; } &&
  36535. - { ac_try='test -s conftest$ac_exeext'
  36536. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  36537. - (eval $ac_try) 2>&5
  36538. - ac_status=$?
  36539. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36540. - (exit $ac_status); }; }; then
  36541. - ac_cv_lib_dld_dld_link=yes
  36542. -else
  36543. - echo "$as_me: failed program was:" >&5
  36544. -sed 's/^/| /' conftest.$ac_ext >&5
  36545. -ac_cv_lib_dld_dld_link=no
  36546. -fi
  36547. -rm -f conftest.err conftest.$ac_objext \
  36548. - conftest$ac_exeext conftest.$ac_ext
  36549. -LIBS=$ac_check_lib_save_LIBS
  36550. -fi
  36551. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  36552. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  36553. -if test $ac_cv_lib_dld_dld_link = yes; then
  36554. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  36555. -fi
  36556. -fi
  36557. -fi
  36558. -fi
  36559. -fi
  36560. -fi
  36561. - ;;
  36562. - esac
  36563. - if test "x$lt_cv_dlopen" != xno; then
  36564. - enable_dlopen=yes
  36565. - else
  36566. - enable_dlopen=no
  36567. - fi
  36568. - case $lt_cv_dlopen in
  36569. - dlopen)
  36570. - save_CPPFLAGS="$CPPFLAGS"
  36571. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  36572. - save_LDFLAGS="$LDFLAGS"
  36573. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  36574. - save_LIBS="$LIBS"
  36575. - LIBS="$lt_cv_dlopen_libs $LIBS"
  36576. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  36577. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  36578. -if test "${lt_cv_dlopen_self+set}" = set; then
  36579. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36580. -else
  36581. - if test "$cross_compiling" = yes; then :
  36582. - lt_cv_dlopen_self=cross
  36583. -else
  36584. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  36585. - lt_status=$lt_dlunknown
  36586. - cat > conftest.$ac_ext <<EOF
  36587. -#line 17959 "configure"
  36588. -#include "confdefs.h"
  36589. -#if HAVE_DLFCN_H
  36590. -#include <dlfcn.h>
  36591. -#endif
  36592. -#include <stdio.h>
  36593. -#ifdef RTLD_GLOBAL
  36594. -# define LT_DLGLOBAL RTLD_GLOBAL
  36595. -#else
  36596. -# ifdef DL_GLOBAL
  36597. -# define LT_DLGLOBAL DL_GLOBAL
  36598. -# else
  36599. -# define LT_DLGLOBAL 0
  36600. -# endif
  36601. -#endif
  36602. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  36603. - find out it does not work in some platform. */
  36604. -#ifndef LT_DLLAZY_OR_NOW
  36605. -# ifdef RTLD_LAZY
  36606. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  36607. -# else
  36608. -# ifdef DL_LAZY
  36609. -# define LT_DLLAZY_OR_NOW DL_LAZY
  36610. -# else
  36611. -# ifdef RTLD_NOW
  36612. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  36613. -# else
  36614. -# ifdef DL_NOW
  36615. -# define LT_DLLAZY_OR_NOW DL_NOW
  36616. -# else
  36617. -# define LT_DLLAZY_OR_NOW 0
  36618. -# endif
  36619. -# endif
  36620. -# endif
  36621. -# endif
  36622. -#endif
  36623. -#ifdef __cplusplus
  36624. -extern "C" void exit (int);
  36625. -#endif
  36626. -void fnord() { int i=42;}
  36627. -int main ()
  36628. -{
  36629. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  36630. - int status = $lt_dlunknown;
  36631. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  36632. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  36633. - if (self)
  36634. - {
  36635. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  36636. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  36637. - /* dlclose (self); */
  36638. +if test "$GCC" = yes; then
  36639. + case $host_os in
  36640. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  36641. + *) lt_awk_arg="/^libraries:/" ;;
  36642. + esac
  36643. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36644. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  36645. + # if the path contains ";" then we assume it to be the separator
  36646. + # otherwise default to the standard path separator (i.e. ":") - it is
  36647. + # assumed that no part of a normal pathname contains ";" but that should
  36648. + # okay in the real world where ";" in dirpaths is itself problematic.
  36649. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  36650. + else
  36651. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36652. + fi
  36653. + # Ok, now we have the path, separated by spaces, we can step through it
  36654. + # and add multilib dir if necessary.
  36655. + lt_tmp_lt_search_path_spec=
  36656. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  36657. + for lt_sys_path in $lt_search_path_spec; do
  36658. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  36659. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  36660. + else
  36661. + test -d "$lt_sys_path" && \
  36662. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  36663. + fi
  36664. + done
  36665. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  36666. +BEGIN {RS=" "; FS="/|\n";} {
  36667. + lt_foo="";
  36668. + lt_count=0;
  36669. + for (lt_i = NF; lt_i > 0; lt_i--) {
  36670. + if ($lt_i != "" && $lt_i != ".") {
  36671. + if ($lt_i == "..") {
  36672. + lt_count++;
  36673. + } else {
  36674. + if (lt_count == 0) {
  36675. + lt_foo="/" $lt_i lt_foo;
  36676. + } else {
  36677. + lt_count--;
  36678. + }
  36679. + }
  36680. }
  36681. + }
  36682. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  36683. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  36684. +}'`
  36685. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  36686. +else
  36687. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  36688. +fi
  36689. +library_names_spec=
  36690. +libname_spec='lib$name'
  36691. +soname_spec=
  36692. +shrext_cmds=".so"
  36693. +postinstall_cmds=
  36694. +postuninstall_cmds=
  36695. +finish_cmds=
  36696. +finish_eval=
  36697. +shlibpath_var=
  36698. +shlibpath_overrides_runpath=unknown
  36699. +version_type=none
  36700. +dynamic_linker="$host_os ld.so"
  36701. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  36702. +need_lib_prefix=unknown
  36703. +hardcode_into_libs=no
  36704. - exit (status);
  36705. -}
  36706. -EOF
  36707. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36708. - (eval $ac_link) 2>&5
  36709. - ac_status=$?
  36710. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36711. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  36712. - (./conftest; exit; ) 2>/dev/null
  36713. - lt_status=$?
  36714. - case x$lt_status in
  36715. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  36716. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  36717. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  36718. +# when you set need_version to no, make sure it does not cause -set_version
  36719. +# flags to be left without arguments
  36720. +need_version=unknown
  36721. +
  36722. +case $host_os in
  36723. +aix3*)
  36724. + version_type=linux
  36725. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  36726. + shlibpath_var=LIBPATH
  36727. +
  36728. + # AIX 3 has no versioning support, so we append a major version to the name.
  36729. + soname_spec='${libname}${release}${shared_ext}$major'
  36730. + ;;
  36731. +
  36732. +aix[4-9]*)
  36733. + version_type=linux
  36734. + need_lib_prefix=no
  36735. + need_version=no
  36736. + hardcode_into_libs=yes
  36737. + if test "$host_cpu" = ia64; then
  36738. + # AIX 5 supports IA64
  36739. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  36740. + shlibpath_var=LD_LIBRARY_PATH
  36741. + else
  36742. + # With GCC up to 2.95.x, collect2 would create an import file
  36743. + # for dependence libraries. The import file would start with
  36744. + # the line `#! .'. This would cause the generated library to
  36745. + # depend on `.', always an invalid library. This was fixed in
  36746. + # development snapshots of GCC prior to 3.0.
  36747. + case $host_os in
  36748. + aix4 | aix4.[01] | aix4.[01].*)
  36749. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  36750. + echo ' yes '
  36751. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  36752. + :
  36753. + else
  36754. + can_build_shared=no
  36755. + fi
  36756. + ;;
  36757. esac
  36758. - else :
  36759. - # compilation failed
  36760. - lt_cv_dlopen_self=no
  36761. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  36762. + # soname into executable. Probably we can add versioning support to
  36763. + # collect2, so additional links can be useful in future.
  36764. + if test "$aix_use_runtimelinking" = yes; then
  36765. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  36766. + # instead of lib<name>.a to let people know that these are not
  36767. + # typical AIX shared libraries.
  36768. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36769. + else
  36770. + # We preserve .a as extension for shared libraries through AIX4.2
  36771. + # and later when we are not doing run time linking.
  36772. + library_names_spec='${libname}${release}.a $libname.a'
  36773. + soname_spec='${libname}${release}${shared_ext}$major'
  36774. + fi
  36775. + shlibpath_var=LIBPATH
  36776. fi
  36777. -fi
  36778. -rm -fr conftest*
  36779. + ;;
  36780. +amigaos*)
  36781. + case $host_cpu in
  36782. + powerpc)
  36783. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  36784. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  36785. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36786. + ;;
  36787. + m68k)
  36788. + library_names_spec='$libname.ixlibrary $libname.a'
  36789. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  36790. + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
  36791. + ;;
  36792. + esac
  36793. + ;;
  36794. -fi
  36795. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  36796. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  36797. +beos*)
  36798. + library_names_spec='${libname}${shared_ext}'
  36799. + dynamic_linker="$host_os ld.so"
  36800. + shlibpath_var=LIBRARY_PATH
  36801. + ;;
  36802. - if test "x$lt_cv_dlopen_self" = xyes; then
  36803. - LDFLAGS="$LDFLAGS $link_static_flag"
  36804. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  36805. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  36806. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  36807. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36808. -else
  36809. - if test "$cross_compiling" = yes; then :
  36810. - lt_cv_dlopen_self_static=cross
  36811. -else
  36812. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  36813. - lt_status=$lt_dlunknown
  36814. - cat > conftest.$ac_ext <<EOF
  36815. -#line 18057 "configure"
  36816. -#include "confdefs.h"
  36817. +bsdi[45]*)
  36818. + version_type=linux
  36819. + need_version=no
  36820. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  36821. + soname_spec='${libname}${release}${shared_ext}$major'
  36822. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  36823. + shlibpath_var=LD_LIBRARY_PATH
  36824. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  36825. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  36826. + # the default ld.so.conf also contains /usr/contrib/lib and
  36827. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  36828. + # libtool to hard-code these into programs
  36829. + ;;
  36830. -#if HAVE_DLFCN_H
  36831. -#include <dlfcn.h>
  36832. -#endif
  36833. +cygwin* | mingw* | pw32* | cegcc*)
  36834. + version_type=windows
  36835. + shrext_cmds=".dll"
  36836. + need_version=no
  36837. + need_lib_prefix=no
  36838. -#include <stdio.h>
  36839. + case $GCC,$host_os in
  36840. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  36841. + library_names_spec='$libname.dll.a'
  36842. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  36843. + postinstall_cmds='base_file=`basename \${file}`~
  36844. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  36845. + dldir=$destdir/`dirname \$dlpath`~
  36846. + test -d \$dldir || mkdir -p \$dldir~
  36847. + $install_prog $dir/$dlname \$dldir/$dlname~
  36848. + chmod a+x \$dldir/$dlname~
  36849. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  36850. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  36851. + fi'
  36852. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  36853. + dlpath=$dir/\$dldll~
  36854. + $RM \$dlpath'
  36855. + shlibpath_overrides_runpath=yes
  36856. -#ifdef RTLD_GLOBAL
  36857. -# define LT_DLGLOBAL RTLD_GLOBAL
  36858. -#else
  36859. -# ifdef DL_GLOBAL
  36860. -# define LT_DLGLOBAL DL_GLOBAL
  36861. -# else
  36862. -# define LT_DLGLOBAL 0
  36863. -# endif
  36864. -#endif
  36865. + case $host_os in
  36866. + cygwin*)
  36867. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  36868. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36869. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  36870. + ;;
  36871. + mingw* | cegcc*)
  36872. + # MinGW DLLs use traditional 'lib' prefix
  36873. + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36874. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  36875. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  36876. + # It is most probably a Windows format PATH printed by
  36877. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  36878. + # path with ; separators, and with drive letters. We can handle the
  36879. + # drive letters (cygwin fileutils understands them), so leave them,
  36880. + # especially as we might pass files found there to a mingw objdump,
  36881. + # which wouldn't understand a cygwinified path. Ahh.
  36882. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  36883. + else
  36884. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  36885. + fi
  36886. + ;;
  36887. + pw32*)
  36888. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  36889. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  36890. + ;;
  36891. + esac
  36892. + ;;
  36893. +
  36894. + *)
  36895. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  36896. + ;;
  36897. + esac
  36898. + dynamic_linker='Win32 ld.exe'
  36899. + # FIXME: first we should search . and the directory the executable is in
  36900. + shlibpath_var=PATH
  36901. + ;;
  36902. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  36903. - find out it does not work in some platform. */
  36904. -#ifndef LT_DLLAZY_OR_NOW
  36905. -# ifdef RTLD_LAZY
  36906. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  36907. -# else
  36908. -# ifdef DL_LAZY
  36909. -# define LT_DLLAZY_OR_NOW DL_LAZY
  36910. -# else
  36911. -# ifdef RTLD_NOW
  36912. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  36913. -# else
  36914. -# ifdef DL_NOW
  36915. -# define LT_DLLAZY_OR_NOW DL_NOW
  36916. -# else
  36917. -# define LT_DLLAZY_OR_NOW 0
  36918. -# endif
  36919. -# endif
  36920. -# endif
  36921. -# endif
  36922. -#endif
  36923. +darwin* | rhapsody*)
  36924. + dynamic_linker="$host_os dyld"
  36925. + version_type=darwin
  36926. + need_lib_prefix=no
  36927. + need_version=no
  36928. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  36929. + soname_spec='${libname}${release}${major}$shared_ext'
  36930. + shlibpath_overrides_runpath=yes
  36931. + shlibpath_var=DYLD_LIBRARY_PATH
  36932. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  36933. -#ifdef __cplusplus
  36934. -extern "C" void exit (int);
  36935. -#endif
  36936. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  36937. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  36938. + ;;
  36939. -void fnord() { int i=42;}
  36940. -int main ()
  36941. -{
  36942. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  36943. - int status = $lt_dlunknown;
  36944. +dgux*)
  36945. + version_type=linux
  36946. + need_lib_prefix=no
  36947. + need_version=no
  36948. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  36949. + soname_spec='${libname}${release}${shared_ext}$major'
  36950. + shlibpath_var=LD_LIBRARY_PATH
  36951. + ;;
  36952. - if (self)
  36953. - {
  36954. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  36955. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  36956. - /* dlclose (self); */
  36957. - }
  36958. +freebsd1*)
  36959. + dynamic_linker=no
  36960. + ;;
  36961. - exit (status);
  36962. -}
  36963. -EOF
  36964. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  36965. - (eval $ac_link) 2>&5
  36966. - ac_status=$?
  36967. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  36968. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  36969. - (./conftest; exit; ) 2>/dev/null
  36970. - lt_status=$?
  36971. - case x$lt_status in
  36972. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  36973. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  36974. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  36975. +freebsd* | dragonfly*)
  36976. + # DragonFly does not have aout. When/if they implement a new
  36977. + # versioning mechanism, adjust this.
  36978. + if test -x /usr/bin/objformat; then
  36979. + objformat=`/usr/bin/objformat`
  36980. + else
  36981. + case $host_os in
  36982. + freebsd[123]*) objformat=aout ;;
  36983. + *) objformat=elf ;;
  36984. esac
  36985. - else :
  36986. - # compilation failed
  36987. - lt_cv_dlopen_self_static=no
  36988. fi
  36989. -fi
  36990. -rm -fr conftest*
  36991. -
  36992. -
  36993. -fi
  36994. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  36995. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  36996. - fi
  36997. -
  36998. - CPPFLAGS="$save_CPPFLAGS"
  36999. - LDFLAGS="$save_LDFLAGS"
  37000. - LIBS="$save_LIBS"
  37001. + version_type=freebsd-$objformat
  37002. + case $version_type in
  37003. + freebsd-elf*)
  37004. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37005. + need_version=no
  37006. + need_lib_prefix=no
  37007. + ;;
  37008. + freebsd-*)
  37009. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  37010. + need_version=yes
  37011. + ;;
  37012. + esac
  37013. + shlibpath_var=LD_LIBRARY_PATH
  37014. + case $host_os in
  37015. + freebsd2*)
  37016. + shlibpath_overrides_runpath=yes
  37017. + ;;
  37018. + freebsd3.[01]* | freebsdelf3.[01]*)
  37019. + shlibpath_overrides_runpath=yes
  37020. + hardcode_into_libs=yes
  37021. + ;;
  37022. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  37023. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  37024. + shlibpath_overrides_runpath=no
  37025. + hardcode_into_libs=yes
  37026. + ;;
  37027. + *) # from 4.6 on, and DragonFly
  37028. + shlibpath_overrides_runpath=yes
  37029. + hardcode_into_libs=yes
  37030. ;;
  37031. esac
  37032. + ;;
  37033. - case $lt_cv_dlopen_self in
  37034. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  37035. - *) enable_dlopen_self=unknown ;;
  37036. - esac
  37037. +gnu*)
  37038. + version_type=linux
  37039. + need_lib_prefix=no
  37040. + need_version=no
  37041. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  37042. + soname_spec='${libname}${release}${shared_ext}$major'
  37043. + shlibpath_var=LD_LIBRARY_PATH
  37044. + hardcode_into_libs=yes
  37045. + ;;
  37046. - case $lt_cv_dlopen_self_static in
  37047. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  37048. - *) enable_dlopen_self_static=unknown ;;
  37049. +hpux9* | hpux10* | hpux11*)
  37050. + # Give a soname corresponding to the major version so that dld.sl refuses to
  37051. + # link against other versions.
  37052. + version_type=sunos
  37053. + need_lib_prefix=no
  37054. + need_version=no
  37055. + case $host_cpu in
  37056. + ia64*)
  37057. + shrext_cmds='.so'
  37058. + hardcode_into_libs=yes
  37059. + dynamic_linker="$host_os dld.so"
  37060. + shlibpath_var=LD_LIBRARY_PATH
  37061. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37062. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37063. + soname_spec='${libname}${release}${shared_ext}$major'
  37064. + if test "X$HPUX_IA64_MODE" = X32; then
  37065. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  37066. + else
  37067. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  37068. + fi
  37069. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37070. + ;;
  37071. + hppa*64*)
  37072. + shrext_cmds='.sl'
  37073. + hardcode_into_libs=yes
  37074. + dynamic_linker="$host_os dld.sl"
  37075. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  37076. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  37077. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37078. + soname_spec='${libname}${release}${shared_ext}$major'
  37079. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  37080. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  37081. + ;;
  37082. + *)
  37083. + shrext_cmds='.sl'
  37084. + dynamic_linker="$host_os dld.sl"
  37085. + shlibpath_var=SHLIB_PATH
  37086. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  37087. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37088. + soname_spec='${libname}${release}${shared_ext}$major'
  37089. + ;;
  37090. esac
  37091. -fi
  37092. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  37093. + postinstall_cmds='chmod 555 $lib'
  37094. + ;;
  37095. +interix[3-9]*)
  37096. + version_type=linux
  37097. + need_lib_prefix=no
  37098. + need_version=no
  37099. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37100. + soname_spec='${libname}${release}${shared_ext}$major'
  37101. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  37102. + shlibpath_var=LD_LIBRARY_PATH
  37103. + shlibpath_overrides_runpath=no
  37104. + hardcode_into_libs=yes
  37105. + ;;
  37106. -# The else clause should only fire when bootstrapping the
  37107. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37108. -# with your package, and you will get complaints that there are
  37109. -# no rules to generate ltmain.sh.
  37110. -if test -f "$ltmain"; then
  37111. - # See if we are running on zsh, and set the options which allow our commands through
  37112. - # without removal of \ escapes.
  37113. - if test -n "${ZSH_VERSION+set}" ; then
  37114. - setopt NO_GLOB_SUBST
  37115. - fi
  37116. - # Now quote all the things that may contain metacharacters while being
  37117. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37118. - # variables and quote the copies for generation of the libtool script.
  37119. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  37120. - SED SHELL STRIP \
  37121. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37122. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37123. - deplibs_check_method reload_flag reload_cmds need_locks \
  37124. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37125. - lt_cv_sys_global_symbol_to_c_name_address \
  37126. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37127. - old_postinstall_cmds old_postuninstall_cmds \
  37128. - compiler_GCJ \
  37129. - CC_GCJ \
  37130. - LD_GCJ \
  37131. - lt_prog_compiler_wl_GCJ \
  37132. - lt_prog_compiler_pic_GCJ \
  37133. - lt_prog_compiler_static_GCJ \
  37134. - lt_prog_compiler_no_builtin_flag_GCJ \
  37135. - export_dynamic_flag_spec_GCJ \
  37136. - thread_safe_flag_spec_GCJ \
  37137. - whole_archive_flag_spec_GCJ \
  37138. - enable_shared_with_static_runtimes_GCJ \
  37139. - old_archive_cmds_GCJ \
  37140. - old_archive_from_new_cmds_GCJ \
  37141. - predep_objects_GCJ \
  37142. - postdep_objects_GCJ \
  37143. - predeps_GCJ \
  37144. - postdeps_GCJ \
  37145. - compiler_lib_search_path_GCJ \
  37146. - archive_cmds_GCJ \
  37147. - archive_expsym_cmds_GCJ \
  37148. - postinstall_cmds_GCJ \
  37149. - postuninstall_cmds_GCJ \
  37150. - old_archive_from_expsyms_cmds_GCJ \
  37151. - allow_undefined_flag_GCJ \
  37152. - no_undefined_flag_GCJ \
  37153. - export_symbols_cmds_GCJ \
  37154. - hardcode_libdir_flag_spec_GCJ \
  37155. - hardcode_libdir_flag_spec_ld_GCJ \
  37156. - hardcode_libdir_separator_GCJ \
  37157. - hardcode_automatic_GCJ \
  37158. - module_cmds_GCJ \
  37159. - module_expsym_cmds_GCJ \
  37160. - lt_cv_prog_compiler_c_o_GCJ \
  37161. - exclude_expsyms_GCJ \
  37162. - include_expsyms_GCJ; do
  37163. -
  37164. - case $var in
  37165. - old_archive_cmds_GCJ | \
  37166. - old_archive_from_new_cmds_GCJ | \
  37167. - archive_cmds_GCJ | \
  37168. - archive_expsym_cmds_GCJ | \
  37169. - module_cmds_GCJ | \
  37170. - module_expsym_cmds_GCJ | \
  37171. - old_archive_from_expsyms_cmds_GCJ | \
  37172. - export_symbols_cmds_GCJ | \
  37173. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37174. - postinstall_cmds | postuninstall_cmds | \
  37175. - old_postinstall_cmds | old_postuninstall_cmds | \
  37176. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37177. - # Double-quote double-evaled strings.
  37178. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37179. - ;;
  37180. +irix5* | irix6* | nonstopux*)
  37181. + case $host_os in
  37182. + nonstopux*) version_type=nonstopux ;;
  37183. *)
  37184. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37185. - ;;
  37186. + if test "$lt_cv_prog_gnu_ld" = yes; then
  37187. + version_type=linux
  37188. + else
  37189. + version_type=irix
  37190. + fi ;;
  37191. + esac
  37192. + need_lib_prefix=no
  37193. + need_version=no
  37194. + soname_spec='${libname}${release}${shared_ext}$major'
  37195. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  37196. + case $host_os in
  37197. + irix5* | nonstopux*)
  37198. + libsuff= shlibsuff=
  37199. + ;;
  37200. + *)
  37201. + case $LD in # libtool.m4 will add one of these switches to LD
  37202. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  37203. + libsuff= shlibsuff= libmagic=32-bit;;
  37204. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  37205. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  37206. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  37207. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  37208. + *) libsuff= shlibsuff= libmagic=never-match;;
  37209. esac
  37210. - done
  37211. -
  37212. - case $lt_echo in
  37213. - *'\$0 --fallback-echo"')
  37214. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37215. ;;
  37216. esac
  37217. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  37218. + shlibpath_overrides_runpath=no
  37219. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  37220. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  37221. + hardcode_into_libs=yes
  37222. + ;;
  37223. -cfgfile="$ofile"
  37224. +# No shared lib support for Linux oldld, aout, or coff.
  37225. +linux*oldld* | linux*aout* | linux*coff*)
  37226. + dynamic_linker=no
  37227. + ;;
  37228. - cat <<__EOF__ >> "$cfgfile"
  37229. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37230. +# This must be Linux ELF.
  37231. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  37232. + version_type=linux
  37233. + need_lib_prefix=no
  37234. + need_version=no
  37235. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37236. + soname_spec='${libname}${release}${shared_ext}$major'
  37237. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  37238. + shlibpath_var=LD_LIBRARY_PATH
  37239. + shlibpath_overrides_runpath=no
  37240. + # Some binutils ld are patched to set DT_RUNPATH
  37241. + save_LDFLAGS=$LDFLAGS
  37242. + save_libdir=$libdir
  37243. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  37244. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  37245. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37246. +/* end confdefs.h. */
  37247. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37248. +int
  37249. +main ()
  37250. +{
  37251. +
  37252. + ;
  37253. + return 0;
  37254. +}
  37255. +_ACEOF
  37256. +if ac_fn_c_try_link "$LINENO"; then :
  37257. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  37258. + shlibpath_overrides_runpath=yes
  37259. +fi
  37260. +fi
  37261. +rm -f core conftest.err conftest.$ac_objext \
  37262. + conftest$ac_exeext conftest.$ac_ext
  37263. + LDFLAGS=$save_LDFLAGS
  37264. + libdir=$save_libdir
  37265. +
  37266. + # This implies no fast_install, which is unacceptable.
  37267. + # Some rework will be needed to allow for fast_install
  37268. + # before this can be enabled.
  37269. + hardcode_into_libs=yes
  37270. +
  37271. + # Append ld.so.conf contents to the search path
  37272. + if test -f /etc/ld.so.conf; then
  37273. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  37274. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  37275. + fi
  37276. +
  37277. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  37278. + # powerpc, because MkLinux only supported shared libraries with the
  37279. + # GNU dynamic linker. Since this was broken with cross compilers,
  37280. + # most powerpc-linux boxes support dynamic linking these days and
  37281. + # people can always --disable-shared, the test was removed, and we
  37282. + # assume the GNU/Linux dynamic linker is in use.
  37283. + dynamic_linker='GNU/Linux ld.so'
  37284. + ;;
  37285. +
  37286. +netbsdelf*-gnu)
  37287. + version_type=linux
  37288. + need_lib_prefix=no
  37289. + need_version=no
  37290. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37291. + soname_spec='${libname}${release}${shared_ext}$major'
  37292. + shlibpath_var=LD_LIBRARY_PATH
  37293. + shlibpath_overrides_runpath=no
  37294. + hardcode_into_libs=yes
  37295. + dynamic_linker='NetBSD ld.elf_so'
  37296. + ;;
  37297. -# Shell to use when invoking shell scripts.
  37298. -SHELL=$lt_SHELL
  37299. +netbsd*)
  37300. + version_type=sunos
  37301. + need_lib_prefix=no
  37302. + need_version=no
  37303. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  37304. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37305. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37306. + dynamic_linker='NetBSD (a.out) ld.so'
  37307. + else
  37308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  37309. + soname_spec='${libname}${release}${shared_ext}$major'
  37310. + dynamic_linker='NetBSD ld.elf_so'
  37311. + fi
  37312. + shlibpath_var=LD_LIBRARY_PATH
  37313. + shlibpath_overrides_runpath=yes
  37314. + hardcode_into_libs=yes
  37315. + ;;
  37316. -# Whether or not to build shared libraries.
  37317. -build_libtool_libs=$enable_shared
  37318. +newsos6)
  37319. + version_type=linux
  37320. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37321. + shlibpath_var=LD_LIBRARY_PATH
  37322. + shlibpath_overrides_runpath=yes
  37323. + ;;
  37324. -# Whether or not to build static libraries.
  37325. -build_old_libs=$enable_static
  37326. +*nto* | *qnx*)
  37327. + version_type=qnx
  37328. + need_lib_prefix=no
  37329. + need_version=no
  37330. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37331. + soname_spec='${libname}${release}${shared_ext}$major'
  37332. + shlibpath_var=LD_LIBRARY_PATH
  37333. + shlibpath_overrides_runpath=no
  37334. + hardcode_into_libs=yes
  37335. + dynamic_linker='ldqnx.so'
  37336. + ;;
  37337. -# Whether or not to add -lc for building shared libraries.
  37338. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  37339. +openbsd*)
  37340. + version_type=sunos
  37341. + sys_lib_dlsearch_path_spec="/usr/lib"
  37342. + need_lib_prefix=no
  37343. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  37344. + case $host_os in
  37345. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  37346. + *) need_version=no ;;
  37347. + esac
  37348. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37349. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  37350. + shlibpath_var=LD_LIBRARY_PATH
  37351. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37352. + case $host_os in
  37353. + openbsd2.[89] | openbsd2.[89].*)
  37354. + shlibpath_overrides_runpath=no
  37355. + ;;
  37356. + *)
  37357. + shlibpath_overrides_runpath=yes
  37358. + ;;
  37359. + esac
  37360. + else
  37361. + shlibpath_overrides_runpath=yes
  37362. + fi
  37363. + ;;
  37364. -# Whether or not to disallow shared libs when runtime libs are static
  37365. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  37366. +os2*)
  37367. + libname_spec='$name'
  37368. + shrext_cmds=".dll"
  37369. + need_lib_prefix=no
  37370. + library_names_spec='$libname${shared_ext} $libname.a'
  37371. + dynamic_linker='OS/2 ld.exe'
  37372. + shlibpath_var=LIBPATH
  37373. + ;;
  37374. -# Whether or not to optimize for fast installation.
  37375. -fast_install=$enable_fast_install
  37376. +osf3* | osf4* | osf5*)
  37377. + version_type=osf
  37378. + need_lib_prefix=no
  37379. + need_version=no
  37380. + soname_spec='${libname}${release}${shared_ext}$major'
  37381. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37382. + shlibpath_var=LD_LIBRARY_PATH
  37383. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  37384. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  37385. + ;;
  37386. -# The host system.
  37387. -host_alias=$host_alias
  37388. -host=$host
  37389. +rdos*)
  37390. + dynamic_linker=no
  37391. + ;;
  37392. -# An echo program that does not interpret backslashes.
  37393. -echo=$lt_echo
  37394. +solaris*)
  37395. + version_type=linux
  37396. + need_lib_prefix=no
  37397. + need_version=no
  37398. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37399. + soname_spec='${libname}${release}${shared_ext}$major'
  37400. + shlibpath_var=LD_LIBRARY_PATH
  37401. + shlibpath_overrides_runpath=yes
  37402. + hardcode_into_libs=yes
  37403. + # ldd complains unless libraries are executable
  37404. + postinstall_cmds='chmod +x $lib'
  37405. + ;;
  37406. -# The archiver.
  37407. -AR=$lt_AR
  37408. -AR_FLAGS=$lt_AR_FLAGS
  37409. +sunos4*)
  37410. + version_type=sunos
  37411. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  37412. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  37413. + shlibpath_var=LD_LIBRARY_PATH
  37414. + shlibpath_overrides_runpath=yes
  37415. + if test "$with_gnu_ld" = yes; then
  37416. + need_lib_prefix=no
  37417. + fi
  37418. + need_version=yes
  37419. + ;;
  37420. -# A C compiler.
  37421. -LTCC=$lt_LTCC
  37422. +sysv4 | sysv4.3*)
  37423. + version_type=linux
  37424. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37425. + soname_spec='${libname}${release}${shared_ext}$major'
  37426. + shlibpath_var=LD_LIBRARY_PATH
  37427. + case $host_vendor in
  37428. + sni)
  37429. + shlibpath_overrides_runpath=no
  37430. + need_lib_prefix=no
  37431. + runpath_var=LD_RUN_PATH
  37432. + ;;
  37433. + siemens)
  37434. + need_lib_prefix=no
  37435. + ;;
  37436. + motorola)
  37437. + need_lib_prefix=no
  37438. + need_version=no
  37439. + shlibpath_overrides_runpath=no
  37440. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  37441. + ;;
  37442. + esac
  37443. + ;;
  37444. -# A language-specific compiler.
  37445. -CC=$lt_compiler_GCJ
  37446. +sysv4*MP*)
  37447. + if test -d /usr/nec ;then
  37448. + version_type=linux
  37449. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  37450. + soname_spec='$libname${shared_ext}.$major'
  37451. + shlibpath_var=LD_LIBRARY_PATH
  37452. + fi
  37453. + ;;
  37454. -# Is the compiler the GNU C compiler?
  37455. -with_gcc=$GCC_GCJ
  37456. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  37457. + version_type=freebsd-elf
  37458. + need_lib_prefix=no
  37459. + need_version=no
  37460. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  37461. + soname_spec='${libname}${release}${shared_ext}$major'
  37462. + shlibpath_var=LD_LIBRARY_PATH
  37463. + shlibpath_overrides_runpath=yes
  37464. + hardcode_into_libs=yes
  37465. + if test "$with_gnu_ld" = yes; then
  37466. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  37467. + else
  37468. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  37469. + case $host_os in
  37470. + sco3.2v5*)
  37471. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  37472. + ;;
  37473. + esac
  37474. + fi
  37475. + sys_lib_dlsearch_path_spec='/usr/lib'
  37476. + ;;
  37477. -# An ERE matcher.
  37478. -EGREP=$lt_EGREP
  37479. +tpf*)
  37480. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  37481. + version_type=linux
  37482. + need_lib_prefix=no
  37483. + need_version=no
  37484. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37485. + shlibpath_var=LD_LIBRARY_PATH
  37486. + shlibpath_overrides_runpath=no
  37487. + hardcode_into_libs=yes
  37488. + ;;
  37489. -# The linker used to build libraries.
  37490. -LD=$lt_LD_GCJ
  37491. +uts4*)
  37492. + version_type=linux
  37493. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  37494. + soname_spec='${libname}${release}${shared_ext}$major'
  37495. + shlibpath_var=LD_LIBRARY_PATH
  37496. + ;;
  37497. -# Whether we need hard or soft links.
  37498. -LN_S=$lt_LN_S
  37499. +*)
  37500. + dynamic_linker=no
  37501. + ;;
  37502. +esac
  37503. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  37504. +$as_echo "$dynamic_linker" >&6; }
  37505. +test "$dynamic_linker" = no && can_build_shared=no
  37506. -# A BSD-compatible nm program.
  37507. -NM=$lt_NM
  37508. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37509. +if test "$GCC" = yes; then
  37510. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37511. +fi
  37512. -# A symbol stripping program
  37513. -STRIP=$lt_STRIP
  37514. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  37515. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  37516. +fi
  37517. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  37518. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  37519. +fi
  37520. -# Used to examine libraries when file_magic_cmd begins "file"
  37521. -MAGIC_CMD=$MAGIC_CMD
  37522. -# Used on cygwin: DLL creation program.
  37523. -DLLTOOL="$DLLTOOL"
  37524. -# Used on cygwin: object dumper.
  37525. -OBJDUMP="$OBJDUMP"
  37526. -# Used on cygwin: assembler.
  37527. -AS="$AS"
  37528. -# The name of the directory that contains temporary libtool files.
  37529. -objdir=$objdir
  37530. -# How to create reloadable object files.
  37531. -reload_flag=$lt_reload_flag
  37532. -reload_cmds=$lt_reload_cmds
  37533. -# How to pass a linker flag through the compiler.
  37534. -wl=$lt_lt_prog_compiler_wl_GCJ
  37535. -# Object file suffix (normally "o").
  37536. -objext="$ac_objext"
  37537. -# Old archive suffix (normally "a").
  37538. -libext="$libext"
  37539. -# Shared library suffix (normally ".so").
  37540. -shrext_cmds='$shrext_cmds'
  37541. -# Executable file suffix (normally "").
  37542. -exeext="$exeext"
  37543. -# Additional compiler flags for building library objects.
  37544. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  37545. -pic_mode=$pic_mode
  37546. -# What is the maximum length of a command?
  37547. -max_cmd_len=$lt_cv_sys_max_cmd_len
  37548. -# Does compiler simultaneously support -c and -o options?
  37549. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  37550. -# Must we lock files when doing compilation ?
  37551. -need_locks=$lt_need_locks
  37552. -# Do we need the lib prefix for modules?
  37553. -need_lib_prefix=$need_lib_prefix
  37554. -# Do we need a version for libraries?
  37555. -need_version=$need_version
  37556. -# Whether dlopen is supported.
  37557. -dlopen_support=$enable_dlopen
  37558. -# Whether dlopen of programs is supported.
  37559. -dlopen_self=$enable_dlopen_self
  37560. -# Whether dlopen of statically linked programs is supported.
  37561. -dlopen_self_static=$enable_dlopen_self_static
  37562. -# Compiler flag to prevent dynamic linking.
  37563. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  37564. -# Compiler flag to turn off builtin functions.
  37565. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  37566. -# Compiler flag to allow reflexive dlopens.
  37567. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  37568. -# Compiler flag to generate shared objects directly from archives.
  37569. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  37570. -# Compiler flag to generate thread-safe objects.
  37571. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  37572. -# Library versioning type.
  37573. -version_type=$version_type
  37574. -# Format of library name prefix.
  37575. -libname_spec=$lt_libname_spec
  37576. -# List of archive names. First name is the real one, the rest are links.
  37577. -# The last name is the one that the linker finds with -lNAME.
  37578. -library_names_spec=$lt_library_names_spec
  37579. -# The coded name of the library, if different from the real name.
  37580. -soname_spec=$lt_soname_spec
  37581. -# Commands used to build and install an old-style archive.
  37582. -RANLIB=$lt_RANLIB
  37583. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  37584. -old_postinstall_cmds=$lt_old_postinstall_cmds
  37585. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  37586. -# Create an old-style archive from a shared archive.
  37587. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  37588. -# Create a temporary old-style archive to link instead of a shared archive.
  37589. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  37590. -# Commands used to build and install a shared archive.
  37591. -archive_cmds=$lt_archive_cmds_GCJ
  37592. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  37593. -postinstall_cmds=$lt_postinstall_cmds
  37594. -postuninstall_cmds=$lt_postuninstall_cmds
  37595. -# Commands used to build a loadable module (assumed same as above if empty)
  37596. -module_cmds=$lt_module_cmds_GCJ
  37597. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  37598. -# Commands to strip libraries.
  37599. -old_striplib=$lt_old_striplib
  37600. -striplib=$lt_striplib
  37601. -# Dependencies to place before the objects being linked to create a
  37602. -# shared library.
  37603. -predep_objects=$lt_predep_objects_GCJ
  37604. -
  37605. -# Dependencies to place after the objects being linked to create a
  37606. -# shared library.
  37607. -postdep_objects=$lt_postdep_objects_GCJ
  37608. -
  37609. -# Dependencies to place before the objects being linked to create a
  37610. -# shared library.
  37611. -predeps=$lt_predeps_GCJ
  37612. -
  37613. -# Dependencies to place after the objects being linked to create a
  37614. -# shared library.
  37615. -postdeps=$lt_postdeps_GCJ
  37616. -
  37617. -# The library search path used internally by the compiler when linking
  37618. -# a shared library.
  37619. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  37620. -# Method to check whether dependent libraries are shared objects.
  37621. -deplibs_check_method=$lt_deplibs_check_method
  37622. -# Command to use when deplibs_check_method == file_magic.
  37623. -file_magic_cmd=$lt_file_magic_cmd
  37624. -# Flag that allows shared libraries with undefined symbols to be built.
  37625. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  37626. -# Flag that forces no undefined symbols.
  37627. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  37628. -# Commands used to finish a libtool library installation in a directory.
  37629. -finish_cmds=$lt_finish_cmds
  37630. -# Same as above, but a single script fragment to be evaled but not shown.
  37631. -finish_eval=$lt_finish_eval
  37632. -# Take the output of nm and produce a listing of raw symbols and C names.
  37633. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  37634. -# Transform the output of nm in a proper C declaration
  37635. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  37636. -# Transform the output of nm in a C name address pair
  37637. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  37638. -# This is the shared library runtime path variable.
  37639. -runpath_var=$runpath_var
  37640. -# This is the shared library path variable.
  37641. -shlibpath_var=$shlibpath_var
  37642. -# Is shlibpath searched before the hard-coded library search path?
  37643. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  37644. -# How to hardcode a shared library path into an executable.
  37645. -hardcode_action=$hardcode_action_GCJ
  37646. -# Whether we should hardcode library paths into libraries.
  37647. -hardcode_into_libs=$hardcode_into_libs
  37648. -# Flag to hardcode \$libdir into a binary during linking.
  37649. -# This must work even if \$libdir does not exist.
  37650. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  37651. -# If ld is used when linking, flag to hardcode \$libdir into
  37652. -# a binary during linking. This must work even if \$libdir does
  37653. -# not exist.
  37654. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  37655. -
  37656. -# Whether we need a single -rpath flag with a separated argument.
  37657. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  37658. -
  37659. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  37660. -# resulting binary.
  37661. -hardcode_direct=$hardcode_direct_GCJ
  37662. -
  37663. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  37664. -# resulting binary.
  37665. -hardcode_minus_L=$hardcode_minus_L_GCJ
  37666. -
  37667. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  37668. -# the resulting binary.
  37669. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  37670. -
  37671. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  37672. -# and all subsequent libraries and executables linked against it.
  37673. -hardcode_automatic=$hardcode_automatic_GCJ
  37674. -# Variables whose values should be saved in libtool wrapper scripts and
  37675. -# restored at relink time.
  37676. -variables_saved_for_relink="$variables_saved_for_relink"
  37677. -# Whether libtool must link a program against all its dependency libraries.
  37678. -link_all_deplibs=$link_all_deplibs_GCJ
  37679. -# Compile-time system search path for libraries
  37680. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  37681. -# Run-time system search path for libraries
  37682. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  37683. -# Fix the shell variable \$srcfile for the compiler.
  37684. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  37685. -# Set to yes if exported symbols are required.
  37686. -always_export_symbols=$always_export_symbols_GCJ
  37687. -# The commands to list exported symbols.
  37688. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  37689. -# The commands to extract the exported symbol list from a shared archive.
  37690. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  37691. -# Symbols that should not be listed in the preloaded symbols.
  37692. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  37693. -# Symbols that must always be exported.
  37694. -include_expsyms=$lt_include_expsyms_GCJ
  37695. -# ### END LIBTOOL TAG CONFIG: $tagname
  37696. -__EOF__
  37697. -else
  37698. - # If there is no Makefile yet, we rely on a make rule to execute
  37699. - # `config.status --recheck' to rerun these tests and create the
  37700. - # libtool script then.
  37701. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  37702. - if test -f "$ltmain_in"; then
  37703. - test -f Makefile && make "$ltmain"
  37704. - fi
  37705. -fi
  37706. -ac_ext=c
  37707. -ac_cpp='$CPP $CPPFLAGS'
  37708. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  37709. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  37710. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  37711. -CC="$lt_save_CC"
  37712. - else
  37713. - tagname=""
  37714. - fi
  37715. - ;;
  37716. - RC)
  37717. -# Source file extension for RC test sources.
  37718. -ac_ext=rc
  37719. -# Object file extension for compiled RC test sources.
  37720. -objext=o
  37721. -objext_RC=$objext
  37722. -# Code to be used in simple compile tests
  37723. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  37724. -# Code to be used in simple link tests
  37725. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  37726. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  37727. -# If no C compiler was specified, use CC.
  37728. -LTCC=${LTCC-"$CC"}
  37729. -# Allow CC to be a program name with arguments.
  37730. -compiler=$CC
  37731. -# Allow CC to be a program name with arguments.
  37732. -lt_save_CC="$CC"
  37733. -CC=${RC-"windres"}
  37734. -compiler=$CC
  37735. -compiler_RC=$CC
  37736. -lt_cv_prog_compiler_c_o_RC=yes
  37737. -# The else clause should only fire when bootstrapping the
  37738. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  37739. -# with your package, and you will get complaints that there are
  37740. -# no rules to generate ltmain.sh.
  37741. -if test -f "$ltmain"; then
  37742. - # See if we are running on zsh, and set the options which allow our commands through
  37743. - # without removal of \ escapes.
  37744. - if test -n "${ZSH_VERSION+set}" ; then
  37745. - setopt NO_GLOB_SUBST
  37746. - fi
  37747. - # Now quote all the things that may contain metacharacters while being
  37748. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  37749. - # variables and quote the copies for generation of the libtool script.
  37750. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  37751. - SED SHELL STRIP \
  37752. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  37753. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  37754. - deplibs_check_method reload_flag reload_cmds need_locks \
  37755. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  37756. - lt_cv_sys_global_symbol_to_c_name_address \
  37757. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  37758. - old_postinstall_cmds old_postuninstall_cmds \
  37759. - compiler_RC \
  37760. - CC_RC \
  37761. - LD_RC \
  37762. - lt_prog_compiler_wl_RC \
  37763. - lt_prog_compiler_pic_RC \
  37764. - lt_prog_compiler_static_RC \
  37765. - lt_prog_compiler_no_builtin_flag_RC \
  37766. - export_dynamic_flag_spec_RC \
  37767. - thread_safe_flag_spec_RC \
  37768. - whole_archive_flag_spec_RC \
  37769. - enable_shared_with_static_runtimes_RC \
  37770. - old_archive_cmds_RC \
  37771. - old_archive_from_new_cmds_RC \
  37772. - predep_objects_RC \
  37773. - postdep_objects_RC \
  37774. - predeps_RC \
  37775. - postdeps_RC \
  37776. - compiler_lib_search_path_RC \
  37777. - archive_cmds_RC \
  37778. - archive_expsym_cmds_RC \
  37779. - postinstall_cmds_RC \
  37780. - postuninstall_cmds_RC \
  37781. - old_archive_from_expsyms_cmds_RC \
  37782. - allow_undefined_flag_RC \
  37783. - no_undefined_flag_RC \
  37784. - export_symbols_cmds_RC \
  37785. - hardcode_libdir_flag_spec_RC \
  37786. - hardcode_libdir_flag_spec_ld_RC \
  37787. - hardcode_libdir_separator_RC \
  37788. - hardcode_automatic_RC \
  37789. - module_cmds_RC \
  37790. - module_expsym_cmds_RC \
  37791. - lt_cv_prog_compiler_c_o_RC \
  37792. - exclude_expsyms_RC \
  37793. - include_expsyms_RC; do
  37794. -
  37795. - case $var in
  37796. - old_archive_cmds_RC | \
  37797. - old_archive_from_new_cmds_RC | \
  37798. - archive_cmds_RC | \
  37799. - archive_expsym_cmds_RC | \
  37800. - module_cmds_RC | \
  37801. - module_expsym_cmds_RC | \
  37802. - old_archive_from_expsyms_cmds_RC | \
  37803. - export_symbols_cmds_RC | \
  37804. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  37805. - postinstall_cmds | postuninstall_cmds | \
  37806. - old_postinstall_cmds | old_postuninstall_cmds | \
  37807. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  37808. - # Double-quote double-evaled strings.
  37809. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  37810. - ;;
  37811. - *)
  37812. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  37813. - ;;
  37814. - esac
  37815. - done
  37816. - case $lt_echo in
  37817. - *'\$0 --fallback-echo"')
  37818. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  37819. - ;;
  37820. - esac
  37821. -cfgfile="$ofile"
  37822. - cat <<__EOF__ >> "$cfgfile"
  37823. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  37824. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  37825. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  37826. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  37827. +hardcode_action=
  37828. +if test -n "$hardcode_libdir_flag_spec" ||
  37829. + test -n "$runpath_var" ||
  37830. + test "X$hardcode_automatic" = "Xyes" ; then
  37831. -# Shell to use when invoking shell scripts.
  37832. -SHELL=$lt_SHELL
  37833. + # We can hardcode non-existent directories.
  37834. + if test "$hardcode_direct" != no &&
  37835. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  37836. + # have to relink, otherwise we might link with an installed library
  37837. + # when we should be linking with a yet-to-be-installed one
  37838. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  37839. + test "$hardcode_minus_L" != no; then
  37840. + # Linking always hardcodes the temporary library directory.
  37841. + hardcode_action=relink
  37842. + else
  37843. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  37844. + hardcode_action=immediate
  37845. + fi
  37846. +else
  37847. + # We cannot hardcode anything, or else we can only hardcode existing
  37848. + # directories.
  37849. + hardcode_action=unsupported
  37850. +fi
  37851. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  37852. +$as_echo "$hardcode_action" >&6; }
  37853. -# Whether or not to build shared libraries.
  37854. -build_libtool_libs=$enable_shared
  37855. +if test "$hardcode_action" = relink ||
  37856. + test "$inherit_rpath" = yes; then
  37857. + # Fast installation is not supported
  37858. + enable_fast_install=no
  37859. +elif test "$shlibpath_overrides_runpath" = yes ||
  37860. + test "$enable_shared" = no; then
  37861. + # Fast installation is not necessary
  37862. + enable_fast_install=needless
  37863. +fi
  37864. -# Whether or not to build static libraries.
  37865. -build_old_libs=$enable_static
  37866. -# Whether or not to add -lc for building shared libraries.
  37867. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  37868. -# Whether or not to disallow shared libs when runtime libs are static
  37869. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  37870. -# Whether or not to optimize for fast installation.
  37871. -fast_install=$enable_fast_install
  37872. -# The host system.
  37873. -host_alias=$host_alias
  37874. -host=$host
  37875. -# An echo program that does not interpret backslashes.
  37876. -echo=$lt_echo
  37877. + if test "x$enable_dlopen" != xyes; then
  37878. + enable_dlopen=unknown
  37879. + enable_dlopen_self=unknown
  37880. + enable_dlopen_self_static=unknown
  37881. +else
  37882. + lt_cv_dlopen=no
  37883. + lt_cv_dlopen_libs=
  37884. -# The archiver.
  37885. -AR=$lt_AR
  37886. -AR_FLAGS=$lt_AR_FLAGS
  37887. + case $host_os in
  37888. + beos*)
  37889. + lt_cv_dlopen="load_add_on"
  37890. + lt_cv_dlopen_libs=
  37891. + lt_cv_dlopen_self=yes
  37892. + ;;
  37893. -# A C compiler.
  37894. -LTCC=$lt_LTCC
  37895. + mingw* | pw32* | cegcc*)
  37896. + lt_cv_dlopen="LoadLibrary"
  37897. + lt_cv_dlopen_libs=
  37898. + ;;
  37899. -# A language-specific compiler.
  37900. -CC=$lt_compiler_RC
  37901. + cygwin*)
  37902. + lt_cv_dlopen="dlopen"
  37903. + lt_cv_dlopen_libs=
  37904. + ;;
  37905. -# Is the compiler the GNU C compiler?
  37906. -with_gcc=$GCC_RC
  37907. + darwin*)
  37908. + # if libdl is installed we need to link against it
  37909. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  37910. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  37911. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  37912. + $as_echo_n "(cached) " >&6
  37913. +else
  37914. + ac_check_lib_save_LIBS=$LIBS
  37915. +LIBS="-ldl $LIBS"
  37916. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37917. +/* end confdefs.h. */
  37918. -# An ERE matcher.
  37919. -EGREP=$lt_EGREP
  37920. +/* Override any GCC internal prototype to avoid an error.
  37921. + Use char because int might match the return type of a GCC
  37922. + builtin and then its argument prototype would still apply. */
  37923. +#ifdef __cplusplus
  37924. +extern "C"
  37925. +#endif
  37926. +char dlopen ();
  37927. +int
  37928. +main ()
  37929. +{
  37930. +return dlopen ();
  37931. + ;
  37932. + return 0;
  37933. +}
  37934. +_ACEOF
  37935. +if ac_fn_c_try_link "$LINENO"; then :
  37936. + ac_cv_lib_dl_dlopen=yes
  37937. +else
  37938. + ac_cv_lib_dl_dlopen=no
  37939. +fi
  37940. +rm -f core conftest.err conftest.$ac_objext \
  37941. + conftest$ac_exeext conftest.$ac_ext
  37942. +LIBS=$ac_check_lib_save_LIBS
  37943. +fi
  37944. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  37945. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  37946. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  37947. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  37948. +else
  37949. -# The linker used to build libraries.
  37950. -LD=$lt_LD_RC
  37951. + lt_cv_dlopen="dyld"
  37952. + lt_cv_dlopen_libs=
  37953. + lt_cv_dlopen_self=yes
  37954. -# Whether we need hard or soft links.
  37955. -LN_S=$lt_LN_S
  37956. +fi
  37957. -# A BSD-compatible nm program.
  37958. -NM=$lt_NM
  37959. + ;;
  37960. -# A symbol stripping program
  37961. -STRIP=$lt_STRIP
  37962. + *)
  37963. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  37964. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  37965. + lt_cv_dlopen="shl_load"
  37966. +else
  37967. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  37968. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  37969. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  37970. + $as_echo_n "(cached) " >&6
  37971. +else
  37972. + ac_check_lib_save_LIBS=$LIBS
  37973. +LIBS="-ldld $LIBS"
  37974. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  37975. +/* end confdefs.h. */
  37976. -# Used to examine libraries when file_magic_cmd begins "file"
  37977. -MAGIC_CMD=$MAGIC_CMD
  37978. +/* Override any GCC internal prototype to avoid an error.
  37979. + Use char because int might match the return type of a GCC
  37980. + builtin and then its argument prototype would still apply. */
  37981. +#ifdef __cplusplus
  37982. +extern "C"
  37983. +#endif
  37984. +char shl_load ();
  37985. +int
  37986. +main ()
  37987. +{
  37988. +return shl_load ();
  37989. + ;
  37990. + return 0;
  37991. +}
  37992. +_ACEOF
  37993. +if ac_fn_c_try_link "$LINENO"; then :
  37994. + ac_cv_lib_dld_shl_load=yes
  37995. +else
  37996. + ac_cv_lib_dld_shl_load=no
  37997. +fi
  37998. +rm -f core conftest.err conftest.$ac_objext \
  37999. + conftest$ac_exeext conftest.$ac_ext
  38000. +LIBS=$ac_check_lib_save_LIBS
  38001. +fi
  38002. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  38003. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  38004. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  38005. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  38006. +else
  38007. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  38008. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  38009. + lt_cv_dlopen="dlopen"
  38010. +else
  38011. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  38012. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  38013. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  38014. + $as_echo_n "(cached) " >&6
  38015. +else
  38016. + ac_check_lib_save_LIBS=$LIBS
  38017. +LIBS="-ldl $LIBS"
  38018. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38019. +/* end confdefs.h. */
  38020. +
  38021. +/* Override any GCC internal prototype to avoid an error.
  38022. + Use char because int might match the return type of a GCC
  38023. + builtin and then its argument prototype would still apply. */
  38024. +#ifdef __cplusplus
  38025. +extern "C"
  38026. +#endif
  38027. +char dlopen ();
  38028. +int
  38029. +main ()
  38030. +{
  38031. +return dlopen ();
  38032. + ;
  38033. + return 0;
  38034. +}
  38035. +_ACEOF
  38036. +if ac_fn_c_try_link "$LINENO"; then :
  38037. + ac_cv_lib_dl_dlopen=yes
  38038. +else
  38039. + ac_cv_lib_dl_dlopen=no
  38040. +fi
  38041. +rm -f core conftest.err conftest.$ac_objext \
  38042. + conftest$ac_exeext conftest.$ac_ext
  38043. +LIBS=$ac_check_lib_save_LIBS
  38044. +fi
  38045. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  38046. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  38047. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  38048. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  38049. +else
  38050. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  38051. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  38052. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  38053. + $as_echo_n "(cached) " >&6
  38054. +else
  38055. + ac_check_lib_save_LIBS=$LIBS
  38056. +LIBS="-lsvld $LIBS"
  38057. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38058. +/* end confdefs.h. */
  38059. -# Used on cygwin: DLL creation program.
  38060. -DLLTOOL="$DLLTOOL"
  38061. +/* Override any GCC internal prototype to avoid an error.
  38062. + Use char because int might match the return type of a GCC
  38063. + builtin and then its argument prototype would still apply. */
  38064. +#ifdef __cplusplus
  38065. +extern "C"
  38066. +#endif
  38067. +char dlopen ();
  38068. +int
  38069. +main ()
  38070. +{
  38071. +return dlopen ();
  38072. + ;
  38073. + return 0;
  38074. +}
  38075. +_ACEOF
  38076. +if ac_fn_c_try_link "$LINENO"; then :
  38077. + ac_cv_lib_svld_dlopen=yes
  38078. +else
  38079. + ac_cv_lib_svld_dlopen=no
  38080. +fi
  38081. +rm -f core conftest.err conftest.$ac_objext \
  38082. + conftest$ac_exeext conftest.$ac_ext
  38083. +LIBS=$ac_check_lib_save_LIBS
  38084. +fi
  38085. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  38086. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  38087. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  38088. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  38089. +else
  38090. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  38091. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  38092. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  38093. + $as_echo_n "(cached) " >&6
  38094. +else
  38095. + ac_check_lib_save_LIBS=$LIBS
  38096. +LIBS="-ldld $LIBS"
  38097. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38098. +/* end confdefs.h. */
  38099. -# Used on cygwin: object dumper.
  38100. -OBJDUMP="$OBJDUMP"
  38101. +/* Override any GCC internal prototype to avoid an error.
  38102. + Use char because int might match the return type of a GCC
  38103. + builtin and then its argument prototype would still apply. */
  38104. +#ifdef __cplusplus
  38105. +extern "C"
  38106. +#endif
  38107. +char dld_link ();
  38108. +int
  38109. +main ()
  38110. +{
  38111. +return dld_link ();
  38112. + ;
  38113. + return 0;
  38114. +}
  38115. +_ACEOF
  38116. +if ac_fn_c_try_link "$LINENO"; then :
  38117. + ac_cv_lib_dld_dld_link=yes
  38118. +else
  38119. + ac_cv_lib_dld_dld_link=no
  38120. +fi
  38121. +rm -f core conftest.err conftest.$ac_objext \
  38122. + conftest$ac_exeext conftest.$ac_ext
  38123. +LIBS=$ac_check_lib_save_LIBS
  38124. +fi
  38125. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  38126. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  38127. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  38128. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  38129. +fi
  38130. -# Used on cygwin: assembler.
  38131. -AS="$AS"
  38132. -# The name of the directory that contains temporary libtool files.
  38133. -objdir=$objdir
  38134. +fi
  38135. -# How to create reloadable object files.
  38136. -reload_flag=$lt_reload_flag
  38137. -reload_cmds=$lt_reload_cmds
  38138. -# How to pass a linker flag through the compiler.
  38139. -wl=$lt_lt_prog_compiler_wl_RC
  38140. +fi
  38141. -# Object file suffix (normally "o").
  38142. -objext="$ac_objext"
  38143. -# Old archive suffix (normally "a").
  38144. -libext="$libext"
  38145. +fi
  38146. -# Shared library suffix (normally ".so").
  38147. -shrext_cmds='$shrext_cmds'
  38148. -# Executable file suffix (normally "").
  38149. -exeext="$exeext"
  38150. +fi
  38151. -# Additional compiler flags for building library objects.
  38152. -pic_flag=$lt_lt_prog_compiler_pic_RC
  38153. -pic_mode=$pic_mode
  38154. -# What is the maximum length of a command?
  38155. -max_cmd_len=$lt_cv_sys_max_cmd_len
  38156. +fi
  38157. -# Does compiler simultaneously support -c and -o options?
  38158. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  38159. + ;;
  38160. + esac
  38161. -# Must we lock files when doing compilation ?
  38162. -need_locks=$lt_need_locks
  38163. + if test "x$lt_cv_dlopen" != xno; then
  38164. + enable_dlopen=yes
  38165. + else
  38166. + enable_dlopen=no
  38167. + fi
  38168. -# Do we need the lib prefix for modules?
  38169. -need_lib_prefix=$need_lib_prefix
  38170. + case $lt_cv_dlopen in
  38171. + dlopen)
  38172. + save_CPPFLAGS="$CPPFLAGS"
  38173. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  38174. -# Do we need a version for libraries?
  38175. -need_version=$need_version
  38176. + save_LDFLAGS="$LDFLAGS"
  38177. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  38178. -# Whether dlopen is supported.
  38179. -dlopen_support=$enable_dlopen
  38180. + save_LIBS="$LIBS"
  38181. + LIBS="$lt_cv_dlopen_libs $LIBS"
  38182. -# Whether dlopen of programs is supported.
  38183. -dlopen_self=$enable_dlopen_self
  38184. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  38185. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  38186. +if test "${lt_cv_dlopen_self+set}" = set; then :
  38187. + $as_echo_n "(cached) " >&6
  38188. +else
  38189. + if test "$cross_compiling" = yes; then :
  38190. + lt_cv_dlopen_self=cross
  38191. +else
  38192. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38193. + lt_status=$lt_dlunknown
  38194. + cat > conftest.$ac_ext <<_LT_EOF
  38195. +#line 10216 "configure"
  38196. +#include "confdefs.h"
  38197. -# Whether dlopen of statically linked programs is supported.
  38198. -dlopen_self_static=$enable_dlopen_self_static
  38199. +#if HAVE_DLFCN_H
  38200. +#include <dlfcn.h>
  38201. +#endif
  38202. -# Compiler flag to prevent dynamic linking.
  38203. -link_static_flag=$lt_lt_prog_compiler_static_RC
  38204. +#include <stdio.h>
  38205. -# Compiler flag to turn off builtin functions.
  38206. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  38207. +#ifdef RTLD_GLOBAL
  38208. +# define LT_DLGLOBAL RTLD_GLOBAL
  38209. +#else
  38210. +# ifdef DL_GLOBAL
  38211. +# define LT_DLGLOBAL DL_GLOBAL
  38212. +# else
  38213. +# define LT_DLGLOBAL 0
  38214. +# endif
  38215. +#endif
  38216. -# Compiler flag to allow reflexive dlopens.
  38217. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  38218. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38219. + find out it does not work in some platform. */
  38220. +#ifndef LT_DLLAZY_OR_NOW
  38221. +# ifdef RTLD_LAZY
  38222. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38223. +# else
  38224. +# ifdef DL_LAZY
  38225. +# define LT_DLLAZY_OR_NOW DL_LAZY
  38226. +# else
  38227. +# ifdef RTLD_NOW
  38228. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  38229. +# else
  38230. +# ifdef DL_NOW
  38231. +# define LT_DLLAZY_OR_NOW DL_NOW
  38232. +# else
  38233. +# define LT_DLLAZY_OR_NOW 0
  38234. +# endif
  38235. +# endif
  38236. +# endif
  38237. +# endif
  38238. +#endif
  38239. -# Compiler flag to generate shared objects directly from archives.
  38240. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  38241. +void fnord() { int i=42;}
  38242. +int main ()
  38243. +{
  38244. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  38245. + int status = $lt_dlunknown;
  38246. -# Compiler flag to generate thread-safe objects.
  38247. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  38248. + if (self)
  38249. + {
  38250. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  38251. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  38252. + /* dlclose (self); */
  38253. + }
  38254. + else
  38255. + puts (dlerror ());
  38256. -# Library versioning type.
  38257. -version_type=$version_type
  38258. + return status;
  38259. +}
  38260. +_LT_EOF
  38261. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38262. + (eval $ac_link) 2>&5
  38263. + ac_status=$?
  38264. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38265. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  38266. + (./conftest; exit; ) >&5 2>/dev/null
  38267. + lt_status=$?
  38268. + case x$lt_status in
  38269. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  38270. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  38271. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  38272. + esac
  38273. + else :
  38274. + # compilation failed
  38275. + lt_cv_dlopen_self=no
  38276. + fi
  38277. +fi
  38278. +rm -fr conftest*
  38279. -# Format of library name prefix.
  38280. -libname_spec=$lt_libname_spec
  38281. -# List of archive names. First name is the real one, the rest are links.
  38282. -# The last name is the one that the linker finds with -lNAME.
  38283. -library_names_spec=$lt_library_names_spec
  38284. +fi
  38285. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  38286. +$as_echo "$lt_cv_dlopen_self" >&6; }
  38287. -# The coded name of the library, if different from the real name.
  38288. -soname_spec=$lt_soname_spec
  38289. + if test "x$lt_cv_dlopen_self" = xyes; then
  38290. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  38291. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  38292. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  38293. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  38294. + $as_echo_n "(cached) " >&6
  38295. +else
  38296. + if test "$cross_compiling" = yes; then :
  38297. + lt_cv_dlopen_self_static=cross
  38298. +else
  38299. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  38300. + lt_status=$lt_dlunknown
  38301. + cat > conftest.$ac_ext <<_LT_EOF
  38302. +#line 10312 "configure"
  38303. +#include "confdefs.h"
  38304. -# Commands used to build and install an old-style archive.
  38305. -RANLIB=$lt_RANLIB
  38306. -old_archive_cmds=$lt_old_archive_cmds_RC
  38307. -old_postinstall_cmds=$lt_old_postinstall_cmds
  38308. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  38309. +#if HAVE_DLFCN_H
  38310. +#include <dlfcn.h>
  38311. +#endif
  38312. -# Create an old-style archive from a shared archive.
  38313. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  38314. +#include <stdio.h>
  38315. -# Create a temporary old-style archive to link instead of a shared archive.
  38316. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  38317. +#ifdef RTLD_GLOBAL
  38318. +# define LT_DLGLOBAL RTLD_GLOBAL
  38319. +#else
  38320. +# ifdef DL_GLOBAL
  38321. +# define LT_DLGLOBAL DL_GLOBAL
  38322. +# else
  38323. +# define LT_DLGLOBAL 0
  38324. +# endif
  38325. +#endif
  38326. -# Commands used to build and install a shared archive.
  38327. -archive_cmds=$lt_archive_cmds_RC
  38328. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  38329. -postinstall_cmds=$lt_postinstall_cmds
  38330. -postuninstall_cmds=$lt_postuninstall_cmds
  38331. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  38332. + find out it does not work in some platform. */
  38333. +#ifndef LT_DLLAZY_OR_NOW
  38334. +# ifdef RTLD_LAZY
  38335. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  38336. +# else
  38337. +# ifdef DL_LAZY
  38338. +# define LT_DLLAZY_OR_NOW DL_LAZY
  38339. +# else
  38340. +# ifdef RTLD_NOW
  38341. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  38342. +# else
  38343. +# ifdef DL_NOW
  38344. +# define LT_DLLAZY_OR_NOW DL_NOW
  38345. +# else
  38346. +# define LT_DLLAZY_OR_NOW 0
  38347. +# endif
  38348. +# endif
  38349. +# endif
  38350. +# endif
  38351. +#endif
  38352. -# Commands used to build a loadable module (assumed same as above if empty)
  38353. -module_cmds=$lt_module_cmds_RC
  38354. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  38355. +void fnord() { int i=42;}
  38356. +int main ()
  38357. +{
  38358. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  38359. + int status = $lt_dlunknown;
  38360. -# Commands to strip libraries.
  38361. -old_striplib=$lt_old_striplib
  38362. -striplib=$lt_striplib
  38363. + if (self)
  38364. + {
  38365. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  38366. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  38367. + /* dlclose (self); */
  38368. + }
  38369. + else
  38370. + puts (dlerror ());
  38371. -# Dependencies to place before the objects being linked to create a
  38372. -# shared library.
  38373. -predep_objects=$lt_predep_objects_RC
  38374. -
  38375. -# Dependencies to place after the objects being linked to create a
  38376. -# shared library.
  38377. -postdep_objects=$lt_postdep_objects_RC
  38378. -
  38379. -# Dependencies to place before the objects being linked to create a
  38380. -# shared library.
  38381. -predeps=$lt_predeps_RC
  38382. -
  38383. -# Dependencies to place after the objects being linked to create a
  38384. -# shared library.
  38385. -postdeps=$lt_postdeps_RC
  38386. -
  38387. -# The library search path used internally by the compiler when linking
  38388. -# a shared library.
  38389. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  38390. + return status;
  38391. +}
  38392. +_LT_EOF
  38393. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  38394. + (eval $ac_link) 2>&5
  38395. + ac_status=$?
  38396. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  38397. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  38398. + (./conftest; exit; ) >&5 2>/dev/null
  38399. + lt_status=$?
  38400. + case x$lt_status in
  38401. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  38402. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  38403. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  38404. + esac
  38405. + else :
  38406. + # compilation failed
  38407. + lt_cv_dlopen_self_static=no
  38408. + fi
  38409. +fi
  38410. +rm -fr conftest*
  38411. -# Method to check whether dependent libraries are shared objects.
  38412. -deplibs_check_method=$lt_deplibs_check_method
  38413. -# Command to use when deplibs_check_method == file_magic.
  38414. -file_magic_cmd=$lt_file_magic_cmd
  38415. +fi
  38416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  38417. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  38418. + fi
  38419. -# Flag that allows shared libraries with undefined symbols to be built.
  38420. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  38421. + CPPFLAGS="$save_CPPFLAGS"
  38422. + LDFLAGS="$save_LDFLAGS"
  38423. + LIBS="$save_LIBS"
  38424. + ;;
  38425. + esac
  38426. -# Flag that forces no undefined symbols.
  38427. -no_undefined_flag=$lt_no_undefined_flag_RC
  38428. + case $lt_cv_dlopen_self in
  38429. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  38430. + *) enable_dlopen_self=unknown ;;
  38431. + esac
  38432. -# Commands used to finish a libtool library installation in a directory.
  38433. -finish_cmds=$lt_finish_cmds
  38434. + case $lt_cv_dlopen_self_static in
  38435. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  38436. + *) enable_dlopen_self_static=unknown ;;
  38437. + esac
  38438. +fi
  38439. -# Same as above, but a single script fragment to be evaled but not shown.
  38440. -finish_eval=$lt_finish_eval
  38441. -# Take the output of nm and produce a listing of raw symbols and C names.
  38442. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  38443. -# Transform the output of nm in a proper C declaration
  38444. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  38445. -# Transform the output of nm in a C name address pair
  38446. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  38447. -# This is the shared library runtime path variable.
  38448. -runpath_var=$runpath_var
  38449. -# This is the shared library path variable.
  38450. -shlibpath_var=$shlibpath_var
  38451. -# Is shlibpath searched before the hard-coded library search path?
  38452. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  38453. -# How to hardcode a shared library path into an executable.
  38454. -hardcode_action=$hardcode_action_RC
  38455. -# Whether we should hardcode library paths into libraries.
  38456. -hardcode_into_libs=$hardcode_into_libs
  38457. -# Flag to hardcode \$libdir into a binary during linking.
  38458. -# This must work even if \$libdir does not exist.
  38459. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  38460. -# If ld is used when linking, flag to hardcode \$libdir into
  38461. -# a binary during linking. This must work even if \$libdir does
  38462. -# not exist.
  38463. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  38464. -
  38465. -# Whether we need a single -rpath flag with a separated argument.
  38466. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  38467. -
  38468. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  38469. -# resulting binary.
  38470. -hardcode_direct=$hardcode_direct_RC
  38471. -
  38472. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  38473. -# resulting binary.
  38474. -hardcode_minus_L=$hardcode_minus_L_RC
  38475. -
  38476. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  38477. -# the resulting binary.
  38478. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  38479. -
  38480. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  38481. -# and all subsequent libraries and executables linked against it.
  38482. -hardcode_automatic=$hardcode_automatic_RC
  38483. -# Variables whose values should be saved in libtool wrapper scripts and
  38484. -# restored at relink time.
  38485. -variables_saved_for_relink="$variables_saved_for_relink"
  38486. -# Whether libtool must link a program against all its dependency libraries.
  38487. -link_all_deplibs=$link_all_deplibs_RC
  38488. -# Compile-time system search path for libraries
  38489. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  38490. -# Run-time system search path for libraries
  38491. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  38492. -# Fix the shell variable \$srcfile for the compiler.
  38493. -fix_srcfile_path="$fix_srcfile_path_RC"
  38494. -# Set to yes if exported symbols are required.
  38495. -always_export_symbols=$always_export_symbols_RC
  38496. +striplib=
  38497. +old_striplib=
  38498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  38499. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  38500. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  38501. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38502. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38503. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38504. +$as_echo "yes" >&6; }
  38505. +else
  38506. +# FIXME - insert some real tests, host_os isn't really good enough
  38507. + case $host_os in
  38508. + darwin*)
  38509. + if test -n "$STRIP" ; then
  38510. + striplib="$STRIP -x"
  38511. + old_striplib="$STRIP -S"
  38512. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  38513. +$as_echo "yes" >&6; }
  38514. + else
  38515. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38516. +$as_echo "no" >&6; }
  38517. + fi
  38518. + ;;
  38519. + *)
  38520. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  38521. +$as_echo "no" >&6; }
  38522. + ;;
  38523. + esac
  38524. +fi
  38525. -# The commands to list exported symbols.
  38526. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  38527. -# The commands to extract the exported symbol list from a shared archive.
  38528. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  38529. -# Symbols that should not be listed in the preloaded symbols.
  38530. -exclude_expsyms=$lt_exclude_expsyms_RC
  38531. -# Symbols that must always be exported.
  38532. -include_expsyms=$lt_include_expsyms_RC
  38533. -# ### END LIBTOOL TAG CONFIG: $tagname
  38534. -__EOF__
  38535. -else
  38536. - # If there is no Makefile yet, we rely on a make rule to execute
  38537. - # `config.status --recheck' to rerun these tests and create the
  38538. - # libtool script then.
  38539. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  38540. - if test -f "$ltmain_in"; then
  38541. - test -f Makefile && make "$ltmain"
  38542. - fi
  38543. -fi
  38544. -ac_ext=c
  38545. -ac_cpp='$CPP $CPPFLAGS'
  38546. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38547. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38548. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38549. -CC="$lt_save_CC"
  38550. - ;;
  38551. + # Report which library types will actually be built
  38552. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  38553. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  38554. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  38555. +$as_echo "$can_build_shared" >&6; }
  38556. - *)
  38557. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  38558. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  38559. - { (exit 1); exit 1; }; }
  38560. - ;;
  38561. - esac
  38562. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  38563. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  38564. + test "$can_build_shared" = "no" && enable_shared=no
  38565. - # Append the new tag name to the list of available tags.
  38566. - if test -n "$tagname" ; then
  38567. - available_tags="$available_tags $tagname"
  38568. - fi
  38569. + # On AIX, shared libraries and static libraries use the same namespace, and
  38570. + # are all built from PIC.
  38571. + case $host_os in
  38572. + aix3*)
  38573. + test "$enable_shared" = yes && enable_static=no
  38574. + if test -n "$RANLIB"; then
  38575. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  38576. + postinstall_cmds='$RANLIB $lib'
  38577. fi
  38578. - done
  38579. - IFS="$lt_save_ifs"
  38580. + ;;
  38581. - # Now substitute the updated list of available tags.
  38582. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  38583. - mv "${ofile}T" "$ofile"
  38584. - chmod +x "$ofile"
  38585. - else
  38586. - rm -f "${ofile}T"
  38587. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  38588. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  38589. - { (exit 1); exit 1; }; }
  38590. - fi
  38591. -fi
  38592. + aix[4-9]*)
  38593. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  38594. + test "$enable_shared" = yes && enable_static=no
  38595. + fi
  38596. + ;;
  38597. + esac
  38598. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  38599. +$as_echo "$enable_shared" >&6; }
  38600. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  38601. +$as_echo_n "checking whether to build static libraries... " >&6; }
  38602. + # Make sure either enable_shared or enable_static is yes.
  38603. + test "$enable_shared" = yes || enable_static=yes
  38604. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  38605. +$as_echo "$enable_static" >&6; }
  38606. -# This can be used to rebuild libtool when needed
  38607. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  38608. -# Always use our own libtool.
  38609. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  38610. -# Prevent multiple expansion
  38611. +fi
  38612. +ac_ext=c
  38613. +ac_cpp='$CPP $CPPFLAGS'
  38614. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  38615. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  38616. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  38617. +CC="$lt_save_CC"
  38618. @@ -19062,14 +10528,16 @@
  38619. + ac_config_commands="$ac_config_commands libtool"
  38620. +# Only expand once:
  38621. - ac_config_headers="$ac_config_headers config.h"
  38622. +ac_config_headers="$ac_config_headers config.h"
  38623. @@ -19122,16 +10590,12 @@
  38624. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  38625. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  38626. -if test "${ac_cv_header_stdc+set}" = set; then
  38627. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38628. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  38629. +$as_echo_n "checking for ANSI C header files... " >&6; }
  38630. +if test "${ac_cv_header_stdc+set}" = set; then :
  38631. + $as_echo_n "(cached) " >&6
  38632. else
  38633. - cat >conftest.$ac_ext <<_ACEOF
  38634. -/* confdefs.h. */
  38635. -_ACEOF
  38636. -cat confdefs.h >>conftest.$ac_ext
  38637. -cat >>conftest.$ac_ext <<_ACEOF
  38638. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38639. /* end confdefs.h. */
  38640. #include <stdlib.h>
  38641. #include <stdarg.h>
  38642. @@ -19146,50 +10610,23 @@
  38643. return 0;
  38644. }
  38645. _ACEOF
  38646. -rm -f conftest.$ac_objext
  38647. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38648. - (eval $ac_compile) 2>conftest.er1
  38649. - ac_status=$?
  38650. - grep -v '^ *+' conftest.er1 >conftest.err
  38651. - rm -f conftest.er1
  38652. - cat conftest.err >&5
  38653. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38654. - (exit $ac_status); } &&
  38655. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38656. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38657. - (eval $ac_try) 2>&5
  38658. - ac_status=$?
  38659. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38660. - (exit $ac_status); }; } &&
  38661. - { ac_try='test -s conftest.$ac_objext'
  38662. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38663. - (eval $ac_try) 2>&5
  38664. - ac_status=$?
  38665. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38666. - (exit $ac_status); }; }; then
  38667. +if ac_fn_c_try_compile "$LINENO"; then :
  38668. ac_cv_header_stdc=yes
  38669. else
  38670. - echo "$as_me: failed program was:" >&5
  38671. -sed 's/^/| /' conftest.$ac_ext >&5
  38672. -
  38673. -ac_cv_header_stdc=no
  38674. + ac_cv_header_stdc=no
  38675. fi
  38676. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38677. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38678. if test $ac_cv_header_stdc = yes; then
  38679. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  38680. - cat >conftest.$ac_ext <<_ACEOF
  38681. -/* confdefs.h. */
  38682. -_ACEOF
  38683. -cat confdefs.h >>conftest.$ac_ext
  38684. -cat >>conftest.$ac_ext <<_ACEOF
  38685. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38686. /* end confdefs.h. */
  38687. #include <string.h>
  38688. _ACEOF
  38689. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38690. - $EGREP "memchr" >/dev/null 2>&1; then
  38691. - :
  38692. + $EGREP "memchr" >/dev/null 2>&1; then :
  38693. +
  38694. else
  38695. ac_cv_header_stdc=no
  38696. fi
  38697. @@ -19199,18 +10636,14 @@
  38698. if test $ac_cv_header_stdc = yes; then
  38699. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  38700. - cat >conftest.$ac_ext <<_ACEOF
  38701. -/* confdefs.h. */
  38702. -_ACEOF
  38703. -cat confdefs.h >>conftest.$ac_ext
  38704. -cat >>conftest.$ac_ext <<_ACEOF
  38705. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38706. /* end confdefs.h. */
  38707. #include <stdlib.h>
  38708. _ACEOF
  38709. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  38710. - $EGREP "free" >/dev/null 2>&1; then
  38711. - :
  38712. + $EGREP "free" >/dev/null 2>&1; then :
  38713. +
  38714. else
  38715. ac_cv_header_stdc=no
  38716. fi
  38717. @@ -19220,16 +10653,13 @@
  38718. if test $ac_cv_header_stdc = yes; then
  38719. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  38720. - if test "$cross_compiling" = yes; then
  38721. + if test "$cross_compiling" = yes; then :
  38722. :
  38723. else
  38724. - cat >conftest.$ac_ext <<_ACEOF
  38725. -/* confdefs.h. */
  38726. -_ACEOF
  38727. -cat confdefs.h >>conftest.$ac_ext
  38728. -cat >>conftest.$ac_ext <<_ACEOF
  38729. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38730. /* end confdefs.h. */
  38731. #include <ctype.h>
  38732. +#include <stdlib.h>
  38733. #if ((' ' & 0x0FF) == 0x020)
  38734. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  38735. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  38736. @@ -19249,55 +10679,36 @@
  38737. for (i = 0; i < 256; i++)
  38738. if (XOR (islower (i), ISLOWER (i))
  38739. || toupper (i) != TOUPPER (i))
  38740. - exit(2);
  38741. - exit (0);
  38742. + return 2;
  38743. + return 0;
  38744. }
  38745. _ACEOF
  38746. -rm -f conftest$ac_exeext
  38747. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38748. - (eval $ac_link) 2>&5
  38749. - ac_status=$?
  38750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38751. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38752. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38753. - (eval $ac_try) 2>&5
  38754. - ac_status=$?
  38755. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38756. - (exit $ac_status); }; }; then
  38757. - :
  38758. -else
  38759. - echo "$as_me: program exited with status $ac_status" >&5
  38760. -echo "$as_me: failed program was:" >&5
  38761. -sed 's/^/| /' conftest.$ac_ext >&5
  38762. +if ac_fn_c_try_run "$LINENO"; then :
  38763. -( exit $ac_status )
  38764. -ac_cv_header_stdc=no
  38765. +else
  38766. + ac_cv_header_stdc=no
  38767. fi
  38768. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38769. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38770. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38771. fi
  38772. +
  38773. fi
  38774. fi
  38775. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  38776. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  38777. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  38778. +$as_echo "$ac_cv_header_stdc" >&6; }
  38779. if test $ac_cv_header_stdc = yes; then
  38780. -cat >>confdefs.h <<\_ACEOF
  38781. -#define STDC_HEADERS 1
  38782. -_ACEOF
  38783. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  38784. fi
  38785. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  38786. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  38787. -if test "${ac_cv_c_const+set}" = set; then
  38788. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38789. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  38790. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  38791. +if test "${ac_cv_c_const+set}" = set; then :
  38792. + $as_echo_n "(cached) " >&6
  38793. else
  38794. - cat >conftest.$ac_ext <<_ACEOF
  38795. -/* confdefs.h. */
  38796. -_ACEOF
  38797. -cat confdefs.h >>conftest.$ac_ext
  38798. -cat >>conftest.$ac_ext <<_ACEOF
  38799. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38800. /* end confdefs.h. */
  38801. int
  38802. @@ -19307,10 +10718,10 @@
  38803. #ifndef __cplusplus
  38804. /* Ultrix mips cc rejects this. */
  38805. typedef int charset[2];
  38806. - const charset x;
  38807. + const charset cs;
  38808. /* SunOS 4.1.1 cc rejects this. */
  38809. - char const *const *ccp;
  38810. - char **p;
  38811. + char const *const *pcpcc;
  38812. + char **ppc;
  38813. /* NEC SVR4.0.2 mips cc rejects this. */
  38814. struct point {int x, y;};
  38815. static struct point const zero = {0,0};
  38816. @@ -19319,16 +10730,17 @@
  38817. an arm of an if-expression whose if-part is not a constant
  38818. expression */
  38819. const char *g = "string";
  38820. - ccp = &g + (g ? g-g : 0);
  38821. + pcpcc = &g + (g ? g-g : 0);
  38822. /* HPUX 7.0 cc rejects these. */
  38823. - ++ccp;
  38824. - p = (char**) ccp;
  38825. - ccp = (char const *const *) p;
  38826. + ++pcpcc;
  38827. + ppc = (char**) pcpcc;
  38828. + pcpcc = (char const *const *) ppc;
  38829. { /* SCO 3.2v4 cc rejects this. */
  38830. char *t;
  38831. char const *s = 0 ? (char *) 0 : (char const *) 0;
  38832. *t++ = 0;
  38833. + if (s) return 0;
  38834. }
  38835. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  38836. int x[] = {25, 17};
  38837. @@ -19347,69 +10759,42 @@
  38838. }
  38839. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  38840. const int foo = 10;
  38841. + if (!foo) return 0;
  38842. }
  38843. + return !cs[0] && !zero.x;
  38844. #endif
  38845. ;
  38846. return 0;
  38847. }
  38848. _ACEOF
  38849. -rm -f conftest.$ac_objext
  38850. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38851. - (eval $ac_compile) 2>conftest.er1
  38852. - ac_status=$?
  38853. - grep -v '^ *+' conftest.er1 >conftest.err
  38854. - rm -f conftest.er1
  38855. - cat conftest.err >&5
  38856. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38857. - (exit $ac_status); } &&
  38858. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  38859. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38860. - (eval $ac_try) 2>&5
  38861. - ac_status=$?
  38862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38863. - (exit $ac_status); }; } &&
  38864. - { ac_try='test -s conftest.$ac_objext'
  38865. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38866. - (eval $ac_try) 2>&5
  38867. - ac_status=$?
  38868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38869. - (exit $ac_status); }; }; then
  38870. +if ac_fn_c_try_compile "$LINENO"; then :
  38871. ac_cv_c_const=yes
  38872. else
  38873. - echo "$as_me: failed program was:" >&5
  38874. -sed 's/^/| /' conftest.$ac_ext >&5
  38875. -
  38876. -ac_cv_c_const=no
  38877. + ac_cv_c_const=no
  38878. fi
  38879. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  38880. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  38881. fi
  38882. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  38883. -echo "${ECHO_T}$ac_cv_c_const" >&6
  38884. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  38885. +$as_echo "$ac_cv_c_const" >&6; }
  38886. if test $ac_cv_c_const = no; then
  38887. -cat >>confdefs.h <<\_ACEOF
  38888. -#define const
  38889. -_ACEOF
  38890. +$as_echo "#define const /**/" >>confdefs.h
  38891. fi
  38892. -echo "$as_me:$LINENO: checking for int16_t" >&5
  38893. -echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
  38894. -if test "${has_int16_t+set}" = set; then
  38895. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38896. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int16_t" >&5
  38897. +$as_echo_n "checking for int16_t... " >&6; }
  38898. +if test "${has_int16_t+set}" = set; then :
  38899. + $as_echo_n "(cached) " >&6
  38900. else
  38901. - if test "$cross_compiling" = yes; then
  38902. + if test "$cross_compiling" = yes; then :
  38903. has_int16_t=no
  38904. else
  38905. - cat >conftest.$ac_ext <<_ACEOF
  38906. -/* confdefs.h. */
  38907. -_ACEOF
  38908. -cat confdefs.h >>conftest.$ac_ext
  38909. -cat >>conftest.$ac_ext <<_ACEOF
  38910. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38911. /* end confdefs.h. */
  38912. #ifdef __BEOS__
  38913. @@ -19420,47 +10805,30 @@
  38914. int main() {return 0;}
  38915. _ACEOF
  38916. -rm -f conftest$ac_exeext
  38917. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38918. - (eval $ac_link) 2>&5
  38919. - ac_status=$?
  38920. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38921. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38922. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38923. - (eval $ac_try) 2>&5
  38924. - ac_status=$?
  38925. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38926. - (exit $ac_status); }; }; then
  38927. +if ac_fn_c_try_run "$LINENO"; then :
  38928. has_int16_t=yes
  38929. else
  38930. - echo "$as_me: program exited with status $ac_status" >&5
  38931. -echo "$as_me: failed program was:" >&5
  38932. -sed 's/^/| /' conftest.$ac_ext >&5
  38933. -
  38934. -( exit $ac_status )
  38935. -has_int16_t=no
  38936. + has_int16_t=no
  38937. fi
  38938. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38939. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38940. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38941. fi
  38942. +
  38943. fi
  38944. -echo "$as_me:$LINENO: result: $has_int16_t" >&5
  38945. -echo "${ECHO_T}$has_int16_t" >&6
  38946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_int16_t" >&5
  38947. +$as_echo "$has_int16_t" >&6; }
  38948. -echo "$as_me:$LINENO: checking for int32_t" >&5
  38949. -echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
  38950. -if test "${has_int32_t+set}" = set; then
  38951. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int32_t" >&5
  38953. +$as_echo_n "checking for int32_t... " >&6; }
  38954. +if test "${has_int32_t+set}" = set; then :
  38955. + $as_echo_n "(cached) " >&6
  38956. else
  38957. - if test "$cross_compiling" = yes; then
  38958. + if test "$cross_compiling" = yes; then :
  38959. has_int32_t=no
  38960. else
  38961. - cat >conftest.$ac_ext <<_ACEOF
  38962. -/* confdefs.h. */
  38963. -_ACEOF
  38964. -cat confdefs.h >>conftest.$ac_ext
  38965. -cat >>conftest.$ac_ext <<_ACEOF
  38966. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38967. /* end confdefs.h. */
  38968. #ifdef __BEOS__
  38969. @@ -19471,47 +10839,30 @@
  38970. int main() {return 0;}
  38971. _ACEOF
  38972. -rm -f conftest$ac_exeext
  38973. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38974. - (eval $ac_link) 2>&5
  38975. - ac_status=$?
  38976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38977. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  38978. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38979. - (eval $ac_try) 2>&5
  38980. - ac_status=$?
  38981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38982. - (exit $ac_status); }; }; then
  38983. +if ac_fn_c_try_run "$LINENO"; then :
  38984. has_int32_t=yes
  38985. else
  38986. - echo "$as_me: program exited with status $ac_status" >&5
  38987. -echo "$as_me: failed program was:" >&5
  38988. -sed 's/^/| /' conftest.$ac_ext >&5
  38989. -
  38990. -( exit $ac_status )
  38991. -has_int32_t=no
  38992. + has_int32_t=no
  38993. fi
  38994. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  38995. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  38996. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  38997. fi
  38998. +
  38999. fi
  39000. -echo "$as_me:$LINENO: result: $has_int32_t" >&5
  39001. -echo "${ECHO_T}$has_int32_t" >&6
  39002. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_int32_t" >&5
  39003. +$as_echo "$has_int32_t" >&6; }
  39004. -echo "$as_me:$LINENO: checking for uint32_t" >&5
  39005. -echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
  39006. -if test "${has_uint32_t+set}" = set; then
  39007. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39008. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint32_t" >&5
  39009. +$as_echo_n "checking for uint32_t... " >&6; }
  39010. +if test "${has_uint32_t+set}" = set; then :
  39011. + $as_echo_n "(cached) " >&6
  39012. else
  39013. - if test "$cross_compiling" = yes; then
  39014. + if test "$cross_compiling" = yes; then :
  39015. has_uint32_t=no
  39016. else
  39017. - cat >conftest.$ac_ext <<_ACEOF
  39018. -/* confdefs.h. */
  39019. -_ACEOF
  39020. -cat confdefs.h >>conftest.$ac_ext
  39021. -cat >>conftest.$ac_ext <<_ACEOF
  39022. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39023. /* end confdefs.h. */
  39024. #ifdef __BEOS__
  39025. @@ -19522,47 +10873,30 @@
  39026. int main() {return 0;}
  39027. _ACEOF
  39028. -rm -f conftest$ac_exeext
  39029. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39030. - (eval $ac_link) 2>&5
  39031. - ac_status=$?
  39032. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39033. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39034. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39035. - (eval $ac_try) 2>&5
  39036. - ac_status=$?
  39037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39038. - (exit $ac_status); }; }; then
  39039. +if ac_fn_c_try_run "$LINENO"; then :
  39040. has_uint32_t=yes
  39041. else
  39042. - echo "$as_me: program exited with status $ac_status" >&5
  39043. -echo "$as_me: failed program was:" >&5
  39044. -sed 's/^/| /' conftest.$ac_ext >&5
  39045. -
  39046. -( exit $ac_status )
  39047. -has_uint32_t=no
  39048. + has_uint32_t=no
  39049. fi
  39050. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39051. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39052. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39053. fi
  39054. +
  39055. fi
  39056. -echo "$as_me:$LINENO: result: $has_uint32_t" >&5
  39057. -echo "${ECHO_T}$has_uint32_t" >&6
  39058. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_uint32_t" >&5
  39059. +$as_echo "$has_uint32_t" >&6; }
  39060. -echo "$as_me:$LINENO: checking for uint16_t" >&5
  39061. -echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
  39062. -if test "${has_uint16_t+set}" = set; then
  39063. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39064. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint16_t" >&5
  39065. +$as_echo_n "checking for uint16_t... " >&6; }
  39066. +if test "${has_uint16_t+set}" = set; then :
  39067. + $as_echo_n "(cached) " >&6
  39068. else
  39069. - if test "$cross_compiling" = yes; then
  39070. + if test "$cross_compiling" = yes; then :
  39071. has_uint16_t=no
  39072. else
  39073. - cat >conftest.$ac_ext <<_ACEOF
  39074. -/* confdefs.h. */
  39075. -_ACEOF
  39076. -cat confdefs.h >>conftest.$ac_ext
  39077. -cat >>conftest.$ac_ext <<_ACEOF
  39078. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39079. /* end confdefs.h. */
  39080. #ifdef __BEOS__
  39081. @@ -19573,47 +10907,30 @@
  39082. int main() {return 0;}
  39083. _ACEOF
  39084. -rm -f conftest$ac_exeext
  39085. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39086. - (eval $ac_link) 2>&5
  39087. - ac_status=$?
  39088. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39089. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39090. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39091. - (eval $ac_try) 2>&5
  39092. - ac_status=$?
  39093. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39094. - (exit $ac_status); }; }; then
  39095. +if ac_fn_c_try_run "$LINENO"; then :
  39096. has_uint16_t=yes
  39097. else
  39098. - echo "$as_me: program exited with status $ac_status" >&5
  39099. -echo "$as_me: failed program was:" >&5
  39100. -sed 's/^/| /' conftest.$ac_ext >&5
  39101. -
  39102. -( exit $ac_status )
  39103. -has_uint16_t=no
  39104. + has_uint16_t=no
  39105. fi
  39106. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39107. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39108. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39109. fi
  39110. +
  39111. fi
  39112. -echo "$as_me:$LINENO: result: $has_uint16_t" >&5
  39113. -echo "${ECHO_T}$has_uint16_t" >&6
  39114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_uint16_t" >&5
  39115. +$as_echo "$has_uint16_t" >&6; }
  39116. -echo "$as_me:$LINENO: checking for u_int32_t" >&5
  39117. -echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  39118. -if test "${has_u_int32_t+set}" = set; then
  39119. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39120. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int32_t" >&5
  39121. +$as_echo_n "checking for u_int32_t... " >&6; }
  39122. +if test "${has_u_int32_t+set}" = set; then :
  39123. + $as_echo_n "(cached) " >&6
  39124. else
  39125. - if test "$cross_compiling" = yes; then
  39126. + if test "$cross_compiling" = yes; then :
  39127. has_u_int32_t=no
  39128. else
  39129. - cat >conftest.$ac_ext <<_ACEOF
  39130. -/* confdefs.h. */
  39131. -_ACEOF
  39132. -cat confdefs.h >>conftest.$ac_ext
  39133. -cat >>conftest.$ac_ext <<_ACEOF
  39134. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39135. /* end confdefs.h. */
  39136. #ifdef __BEOS__
  39137. @@ -19624,47 +10941,30 @@
  39138. int main() {return 0;}
  39139. _ACEOF
  39140. -rm -f conftest$ac_exeext
  39141. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39142. - (eval $ac_link) 2>&5
  39143. - ac_status=$?
  39144. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39145. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39146. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39147. - (eval $ac_try) 2>&5
  39148. - ac_status=$?
  39149. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39150. - (exit $ac_status); }; }; then
  39151. +if ac_fn_c_try_run "$LINENO"; then :
  39152. has_u_int32_t=yes
  39153. else
  39154. - echo "$as_me: program exited with status $ac_status" >&5
  39155. -echo "$as_me: failed program was:" >&5
  39156. -sed 's/^/| /' conftest.$ac_ext >&5
  39157. -
  39158. -( exit $ac_status )
  39159. -has_u_int32_t=no
  39160. + has_u_int32_t=no
  39161. fi
  39162. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39163. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39164. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39165. fi
  39166. +
  39167. fi
  39168. -echo "$as_me:$LINENO: result: $has_u_int32_t" >&5
  39169. -echo "${ECHO_T}$has_u_int32_t" >&6
  39170. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_u_int32_t" >&5
  39171. +$as_echo "$has_u_int32_t" >&6; }
  39172. -echo "$as_me:$LINENO: checking for u_int16_t" >&5
  39173. -echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  39174. -if test "${has_u_int16_t+set}" = set; then
  39175. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39176. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int16_t" >&5
  39177. +$as_echo_n "checking for u_int16_t... " >&6; }
  39178. +if test "${has_u_int16_t+set}" = set; then :
  39179. + $as_echo_n "(cached) " >&6
  39180. else
  39181. - if test "$cross_compiling" = yes; then
  39182. + if test "$cross_compiling" = yes; then :
  39183. has_u_int16_t=no
  39184. else
  39185. - cat >conftest.$ac_ext <<_ACEOF
  39186. -/* confdefs.h. */
  39187. -_ACEOF
  39188. -cat confdefs.h >>conftest.$ac_ext
  39189. -cat >>conftest.$ac_ext <<_ACEOF
  39190. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39191. /* end confdefs.h. */
  39192. #ifdef __BEOS__
  39193. @@ -19675,47 +10975,30 @@
  39194. int main() {return 0;}
  39195. _ACEOF
  39196. -rm -f conftest$ac_exeext
  39197. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39198. - (eval $ac_link) 2>&5
  39199. - ac_status=$?
  39200. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39201. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39202. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39203. - (eval $ac_try) 2>&5
  39204. - ac_status=$?
  39205. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39206. - (exit $ac_status); }; }; then
  39207. +if ac_fn_c_try_run "$LINENO"; then :
  39208. has_u_int16_t=yes
  39209. else
  39210. - echo "$as_me: program exited with status $ac_status" >&5
  39211. -echo "$as_me: failed program was:" >&5
  39212. -sed 's/^/| /' conftest.$ac_ext >&5
  39213. -
  39214. -( exit $ac_status )
  39215. -has_u_int16_t=no
  39216. + has_u_int16_t=no
  39217. fi
  39218. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39219. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39220. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39221. fi
  39222. +
  39223. fi
  39224. -echo "$as_me:$LINENO: result: $has_u_int16_t" >&5
  39225. -echo "${ECHO_T}$has_u_int16_t" >&6
  39226. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_u_int16_t" >&5
  39227. +$as_echo "$has_u_int16_t" >&6; }
  39228. -echo "$as_me:$LINENO: checking for int64_t" >&5
  39229. -echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
  39230. -if test "${has_int64_t+set}" = set; then
  39231. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39232. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t" >&5
  39233. +$as_echo_n "checking for int64_t... " >&6; }
  39234. +if test "${has_int64_t+set}" = set; then :
  39235. + $as_echo_n "(cached) " >&6
  39236. else
  39237. - if test "$cross_compiling" = yes; then
  39238. + if test "$cross_compiling" = yes; then :
  39239. has_int64_t=no
  39240. else
  39241. - cat >conftest.$ac_ext <<_ACEOF
  39242. -/* confdefs.h. */
  39243. -_ACEOF
  39244. -cat confdefs.h >>conftest.$ac_ext
  39245. -cat >>conftest.$ac_ext <<_ACEOF
  39246. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39247. /* end confdefs.h. */
  39248. #ifdef __BEOS__
  39249. @@ -19726,3274 +11009,2619 @@
  39250. int main() {return 0;}
  39251. _ACEOF
  39252. -rm -f conftest$ac_exeext
  39253. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39254. - (eval $ac_link) 2>&5
  39255. - ac_status=$?
  39256. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39257. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  39258. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39259. - (eval $ac_try) 2>&5
  39260. - ac_status=$?
  39261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39262. - (exit $ac_status); }; }; then
  39263. +if ac_fn_c_try_run "$LINENO"; then :
  39264. has_int64_t=yes
  39265. else
  39266. - echo "$as_me: program exited with status $ac_status" >&5
  39267. -echo "$as_me: failed program was:" >&5
  39268. -sed 's/^/| /' conftest.$ac_ext >&5
  39269. + has_int64_t=no
  39270. +fi
  39271. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39272. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39273. +fi
  39274. +
  39275. +fi
  39276. +
  39277. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_int64_t" >&5
  39278. +$as_echo "$has_int64_t" >&6; }
  39279. +
  39280. +# The cast to long int works around a bug in the HP C Compiler
  39281. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  39282. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  39283. +# This bug is HP SR number 8606223364.
  39284. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
  39285. +$as_echo_n "checking size of short... " >&6; }
  39286. +if test "${ac_cv_sizeof_short+set}" = set; then :
  39287. + $as_echo_n "(cached) " >&6
  39288. +else
  39289. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
  39290. +
  39291. +else
  39292. + if test "$ac_cv_type_short" = yes; then
  39293. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39294. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39295. +{ as_fn_set_status 77
  39296. +as_fn_error "cannot compute sizeof (short)
  39297. +See \`config.log' for more details." "$LINENO" 5; }; }
  39298. + else
  39299. + ac_cv_sizeof_short=0
  39300. + fi
  39301. +fi
  39302. +
  39303. +fi
  39304. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
  39305. +$as_echo "$ac_cv_sizeof_short" >&6; }
  39306. +
  39307. +
  39308. +
  39309. +cat >>confdefs.h <<_ACEOF
  39310. +#define SIZEOF_SHORT $ac_cv_sizeof_short
  39311. +_ACEOF
  39312. +
  39313. +
  39314. +# The cast to long int works around a bug in the HP C Compiler
  39315. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  39316. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  39317. +# This bug is HP SR number 8606223364.
  39318. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  39319. +$as_echo_n "checking size of int... " >&6; }
  39320. +if test "${ac_cv_sizeof_int+set}" = set; then :
  39321. + $as_echo_n "(cached) " >&6
  39322. +else
  39323. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  39324. +
  39325. +else
  39326. + if test "$ac_cv_type_int" = yes; then
  39327. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39328. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39329. +{ as_fn_set_status 77
  39330. +as_fn_error "cannot compute sizeof (int)
  39331. +See \`config.log' for more details." "$LINENO" 5; }; }
  39332. + else
  39333. + ac_cv_sizeof_int=0
  39334. + fi
  39335. +fi
  39336. +
  39337. +fi
  39338. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  39339. +$as_echo "$ac_cv_sizeof_int" >&6; }
  39340. +
  39341. +
  39342. +
  39343. +cat >>confdefs.h <<_ACEOF
  39344. +#define SIZEOF_INT $ac_cv_sizeof_int
  39345. +_ACEOF
  39346. +
  39347. +
  39348. +# The cast to long int works around a bug in the HP C Compiler
  39349. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  39350. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  39351. +# This bug is HP SR number 8606223364.
  39352. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  39353. +$as_echo_n "checking size of long... " >&6; }
  39354. +if test "${ac_cv_sizeof_long+set}" = set; then :
  39355. + $as_echo_n "(cached) " >&6
  39356. +else
  39357. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  39358. +
  39359. +else
  39360. + if test "$ac_cv_type_long" = yes; then
  39361. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39362. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39363. +{ as_fn_set_status 77
  39364. +as_fn_error "cannot compute sizeof (long)
  39365. +See \`config.log' for more details." "$LINENO" 5; }; }
  39366. + else
  39367. + ac_cv_sizeof_long=0
  39368. + fi
  39369. +fi
  39370. +
  39371. +fi
  39372. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  39373. +$as_echo "$ac_cv_sizeof_long" >&6; }
  39374. +
  39375. +
  39376. +
  39377. +cat >>confdefs.h <<_ACEOF
  39378. +#define SIZEOF_LONG $ac_cv_sizeof_long
  39379. +_ACEOF
  39380. +
  39381. +
  39382. +# The cast to long int works around a bug in the HP C Compiler
  39383. +# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  39384. +# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  39385. +# This bug is HP SR number 8606223364.
  39386. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
  39387. +$as_echo_n "checking size of long long... " >&6; }
  39388. +if test "${ac_cv_sizeof_long_long+set}" = set; then :
  39389. + $as_echo_n "(cached) " >&6
  39390. +else
  39391. + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
  39392. +
  39393. +else
  39394. + if test "$ac_cv_type_long_long" = yes; then
  39395. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  39396. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  39397. +{ as_fn_set_status 77
  39398. +as_fn_error "cannot compute sizeof (long long)
  39399. +See \`config.log' for more details." "$LINENO" 5; }; }
  39400. + else
  39401. + ac_cv_sizeof_long_long=0
  39402. + fi
  39403. +fi
  39404. +
  39405. +fi
  39406. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
  39407. +$as_echo "$ac_cv_sizeof_long_long" >&6; }
  39408. +
  39409. +
  39410. +
  39411. +cat >>confdefs.h <<_ACEOF
  39412. +#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  39413. +_ACEOF
  39414. -( exit $ac_status )
  39415. -has_int64_t=no
  39416. +
  39417. +
  39418. +
  39419. +if test x$has_int16_t = "xyes" ; then
  39420. + SIZE16="int16_t"
  39421. +else
  39422. + case 2 in
  39423. + $ac_cv_sizeof_short) SIZE16="short";;
  39424. + $ac_cv_sizeof_int) SIZE16="int";;
  39425. + esac
  39426. +fi
  39427. +
  39428. +if test x$has_int32_t = "xyes" ; then
  39429. + SIZE32="int32_t"
  39430. +else
  39431. + case 4 in
  39432. + $ac_cv_sizeof_short) SIZE32="short";;
  39433. + $ac_cv_sizeof_int) SIZE32="int";;
  39434. + $ac_cv_sizeof_long) SIZE32="long";;
  39435. + esac
  39436. +fi
  39437. +
  39438. +if test x$has_uint32_t = "xyes" ; then
  39439. + USIZE32="uint32_t"
  39440. +else
  39441. + if test x$has_u_int32_t = "xyes" ; then
  39442. + USIZE32="u_int32_t"
  39443. + else
  39444. + case 4 in
  39445. + $ac_cv_sizeof_short) USIZE32="unsigned short";;
  39446. + $ac_cv_sizeof_int) USIZE32="unsigned int";;
  39447. + $ac_cv_sizeof_long) USIZE32="unsigned long";;
  39448. + esac
  39449. + fi
  39450. +fi
  39451. +
  39452. +if test x$has_uint16_t = "xyes" ; then
  39453. + USIZE16="uint16_t"
  39454. +else
  39455. + if test x$has_u_int16_t = "xyes" ; then
  39456. + USIZE16="u_int16_t"
  39457. + else
  39458. + case 2 in
  39459. + $ac_cv_sizeof_short) USIZE16="unsigned short";;
  39460. + $ac_cv_sizeof_int) USIZE16="unsigned int";;
  39461. + $ac_cv_sizeof_long) USIZE16="unsigned long";;
  39462. + esac
  39463. + fi
  39464. +fi
  39465. +
  39466. +if test x$has_int64_t = "xyes" ; then
  39467. + SIZE64="int64_t"
  39468. +else
  39469. +case 8 in
  39470. + $ac_cv_sizeof_int) SIZE64="int";;
  39471. + $ac_cv_sizeof_long) SIZE64="long";;
  39472. + $ac_cv_sizeof_long_long) SIZE64="long long";;
  39473. +esac
  39474. +fi
  39475. +
  39476. +if test -z "$SIZE16"; then
  39477. + as_fn_error "No 16 bit type found on this platform!" "$LINENO" 5
  39478. +fi
  39479. +if test -z "$USIZE16"; then
  39480. + as_fn_error "No unsigned 16 bit type found on this platform!" "$LINENO" 5
  39481. +fi
  39482. +if test -z "$SIZE32"; then
  39483. + as_fn_error "No 32 bit type found on this platform!" "$LINENO" 5
  39484. fi
  39485. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  39486. +if test -z "$USIZE32"; then
  39487. + as_fn_error "No unsigned 32 bit type found on this platform!" "$LINENO" 5
  39488. fi
  39489. +if test -z "$SIZE64"; then
  39490. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No 64 bit type found on this platform!" >&5
  39491. +$as_echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  39492. fi
  39493. -echo "$as_me:$LINENO: result: $has_int64_t" >&5
  39494. -echo "${ECHO_T}$has_int64_t" >&6
  39495. -
  39496. -echo "$as_me:$LINENO: checking for short" >&5
  39497. -echo $ECHO_N "checking for short... $ECHO_C" >&6
  39498. -if test "${ac_cv_type_short+set}" = set; then
  39499. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39500. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  39501. +$as_echo_n "checking for working memcmp... " >&6; }
  39502. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  39503. + $as_echo_n "(cached) " >&6
  39504. else
  39505. - cat >conftest.$ac_ext <<_ACEOF
  39506. -/* confdefs.h. */
  39507. -_ACEOF
  39508. -cat confdefs.h >>conftest.$ac_ext
  39509. -cat >>conftest.$ac_ext <<_ACEOF
  39510. + if test "$cross_compiling" = yes; then :
  39511. + ac_cv_func_memcmp_working=no
  39512. +else
  39513. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39514. /* end confdefs.h. */
  39515. $ac_includes_default
  39516. int
  39517. main ()
  39518. {
  39519. -if ((short *) 0)
  39520. - return 0;
  39521. -if (sizeof (short))
  39522. - return 0;
  39523. +
  39524. + /* Some versions of memcmp are not 8-bit clean. */
  39525. + char c0 = '\100', c1 = '\200', c2 = '\201';
  39526. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  39527. + return 1;
  39528. +
  39529. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  39530. + or more and with at least one buffer not starting on a 4-byte boundary.
  39531. + William Lewis provided this test program. */
  39532. + {
  39533. + char foo[21];
  39534. + char bar[21];
  39535. + int i;
  39536. + for (i = 0; i < 4; i++)
  39537. + {
  39538. + char *a = foo + i;
  39539. + char *b = bar + i;
  39540. + strcpy (a, "--------01111111");
  39541. + strcpy (b, "--------10000000");
  39542. + if (memcmp (a, b, 16) >= 0)
  39543. + return 1;
  39544. + }
  39545. + return 0;
  39546. + }
  39547. +
  39548. ;
  39549. return 0;
  39550. }
  39551. _ACEOF
  39552. -rm -f conftest.$ac_objext
  39553. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39554. - (eval $ac_compile) 2>conftest.er1
  39555. - ac_status=$?
  39556. - grep -v '^ *+' conftest.er1 >conftest.err
  39557. - rm -f conftest.er1
  39558. - cat conftest.err >&5
  39559. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39560. - (exit $ac_status); } &&
  39561. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39562. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39563. - (eval $ac_try) 2>&5
  39564. - ac_status=$?
  39565. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39566. - (exit $ac_status); }; } &&
  39567. - { ac_try='test -s conftest.$ac_objext'
  39568. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39569. - (eval $ac_try) 2>&5
  39570. - ac_status=$?
  39571. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39572. - (exit $ac_status); }; }; then
  39573. - ac_cv_type_short=yes
  39574. +if ac_fn_c_try_run "$LINENO"; then :
  39575. + ac_cv_func_memcmp_working=yes
  39576. else
  39577. - echo "$as_me: failed program was:" >&5
  39578. -sed 's/^/| /' conftest.$ac_ext >&5
  39579. -
  39580. -ac_cv_type_short=no
  39581. + ac_cv_func_memcmp_working=no
  39582. fi
  39583. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  39584. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  39585. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  39586. fi
  39587. -echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  39588. -echo "${ECHO_T}$ac_cv_type_short" >&6
  39589. -echo "$as_me:$LINENO: checking size of short" >&5
  39590. -echo $ECHO_N "checking size of short... $ECHO_C" >&6
  39591. -if test "${ac_cv_sizeof_short+set}" = set; then
  39592. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39593. -else
  39594. - if test "$ac_cv_type_short" = yes; then
  39595. - # The cast to unsigned long works around a bug in the HP C Compiler
  39596. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  39597. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  39598. - # This bug is HP SR number 8606223364.
  39599. - if test "$cross_compiling" = yes; then
  39600. - # Depending upon the size, compute the lo and hi bounds.
  39601. -cat >conftest.$ac_ext <<_ACEOF
  39602. -/* confdefs.h. */
  39603. -_ACEOF
  39604. -cat confdefs.h >>conftest.$ac_ext
  39605. -cat >>conftest.$ac_ext <<_ACEOF
  39606. -/* end confdefs.h. */
  39607. -$ac_includes_default
  39608. -int
  39609. -main ()
  39610. -{
  39611. -static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  39612. -test_array [0] = 0
  39613. +fi
  39614. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  39615. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  39616. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  39617. + *" memcmp.$ac_objext "* ) ;;
  39618. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  39619. + ;;
  39620. +esac
  39621. - ;
  39622. - return 0;
  39623. -}
  39624. -_ACEOF
  39625. -rm -f conftest.$ac_objext
  39626. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39627. - (eval $ac_compile) 2>conftest.er1
  39628. - ac_status=$?
  39629. - grep -v '^ *+' conftest.er1 >conftest.err
  39630. - rm -f conftest.er1
  39631. - cat conftest.err >&5
  39632. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39633. - (exit $ac_status); } &&
  39634. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39635. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39636. - (eval $ac_try) 2>&5
  39637. - ac_status=$?
  39638. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39639. - (exit $ac_status); }; } &&
  39640. - { ac_try='test -s conftest.$ac_objext'
  39641. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39642. - (eval $ac_try) 2>&5
  39643. - ac_status=$?
  39644. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39645. - (exit $ac_status); }; }; then
  39646. - ac_lo=0 ac_mid=0
  39647. - while :; do
  39648. - cat >conftest.$ac_ext <<_ACEOF
  39649. -/* confdefs.h. */
  39650. -_ACEOF
  39651. -cat confdefs.h >>conftest.$ac_ext
  39652. -cat >>conftest.$ac_ext <<_ACEOF
  39653. -/* end confdefs.h. */
  39654. -$ac_includes_default
  39655. -int
  39656. -main ()
  39657. -{
  39658. -static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  39659. -test_array [0] = 0
  39660. - ;
  39661. - return 0;
  39662. -}
  39663. +
  39664. +
  39665. +
  39666. +
  39667. +
  39668. +
  39669. +
  39670. +
  39671. +
  39672. +
  39673. +
  39674. +
  39675. +
  39676. +
  39677. +ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile libogg.spec ogg.pc ogg-uninstalled.pc"
  39678. +
  39679. +cat >confcache <<\_ACEOF
  39680. +# This file is a shell script that caches the results of configure
  39681. +# tests run on this system so they can be shared between configure
  39682. +# scripts and configure runs, see configure's option --config-cache.
  39683. +# It is not useful on other systems. If it contains results you don't
  39684. +# want to keep, you may remove or edit it.
  39685. +#
  39686. +# config.status only pays attention to the cache file if you give it
  39687. +# the --recheck option to rerun configure.
  39688. +#
  39689. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  39690. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  39691. +# following values.
  39692. +
  39693. _ACEOF
  39694. -rm -f conftest.$ac_objext
  39695. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39696. - (eval $ac_compile) 2>conftest.er1
  39697. - ac_status=$?
  39698. - grep -v '^ *+' conftest.er1 >conftest.err
  39699. - rm -f conftest.er1
  39700. - cat conftest.err >&5
  39701. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39702. - (exit $ac_status); } &&
  39703. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39704. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39705. - (eval $ac_try) 2>&5
  39706. - ac_status=$?
  39707. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39708. - (exit $ac_status); }; } &&
  39709. - { ac_try='test -s conftest.$ac_objext'
  39710. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39711. - (eval $ac_try) 2>&5
  39712. - ac_status=$?
  39713. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39714. - (exit $ac_status); }; }; then
  39715. - ac_hi=$ac_mid; break
  39716. -else
  39717. - echo "$as_me: failed program was:" >&5
  39718. -sed 's/^/| /' conftest.$ac_ext >&5
  39719. -ac_lo=`expr $ac_mid + 1`
  39720. - if test $ac_lo -le $ac_mid; then
  39721. - ac_lo= ac_hi=
  39722. - break
  39723. - fi
  39724. - ac_mid=`expr 2 '*' $ac_mid + 1`
  39725. -fi
  39726. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  39727. +# The following way of writing the cache mishandles newlines in values,
  39728. +# but we know of no workaround that is simple, portable, and efficient.
  39729. +# So, we kill variables containing newlines.
  39730. +# Ultrix sh set writes to stderr and can't be redirected directly,
  39731. +# and sets the high bit in the cache file unless we assign to the vars.
  39732. +(
  39733. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  39734. + eval ac_val=\$$ac_var
  39735. + case $ac_val in #(
  39736. + *${as_nl}*)
  39737. + case $ac_var in #(
  39738. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  39739. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  39740. + esac
  39741. + case $ac_var in #(
  39742. + _ | IFS | as_nl) ;; #(
  39743. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  39744. + *) { eval $ac_var=; unset $ac_var;} ;;
  39745. + esac ;;
  39746. + esac
  39747. done
  39748. -else
  39749. - echo "$as_me: failed program was:" >&5
  39750. -sed 's/^/| /' conftest.$ac_ext >&5
  39751. -cat >conftest.$ac_ext <<_ACEOF
  39752. -/* confdefs.h. */
  39753. -_ACEOF
  39754. -cat confdefs.h >>conftest.$ac_ext
  39755. -cat >>conftest.$ac_ext <<_ACEOF
  39756. -/* end confdefs.h. */
  39757. -$ac_includes_default
  39758. -int
  39759. -main ()
  39760. -{
  39761. -static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  39762. -test_array [0] = 0
  39763. + (set) 2>&1 |
  39764. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  39765. + *${as_nl}ac_space=\ *)
  39766. + # `set' does not quote correctly, so add quotes: double-quote
  39767. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  39768. + sed -n \
  39769. + "s/'/'\\\\''/g;
  39770. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  39771. + ;; #(
  39772. + *)
  39773. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  39774. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  39775. + ;;
  39776. + esac |
  39777. + sort
  39778. +) |
  39779. + sed '
  39780. + /^ac_cv_env_/b end
  39781. + t clear
  39782. + :clear
  39783. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  39784. + t end
  39785. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  39786. + :end' >>confcache
  39787. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  39788. + if test -w "$cache_file"; then
  39789. + test "x$cache_file" != "x/dev/null" &&
  39790. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  39791. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  39792. + cat confcache >$cache_file
  39793. + else
  39794. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  39795. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  39796. + fi
  39797. +fi
  39798. +rm -f confcache
  39799. - ;
  39800. - return 0;
  39801. -}
  39802. -_ACEOF
  39803. -rm -f conftest.$ac_objext
  39804. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39805. - (eval $ac_compile) 2>conftest.er1
  39806. - ac_status=$?
  39807. - grep -v '^ *+' conftest.er1 >conftest.err
  39808. - rm -f conftest.er1
  39809. - cat conftest.err >&5
  39810. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39811. - (exit $ac_status); } &&
  39812. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39813. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39814. - (eval $ac_try) 2>&5
  39815. - ac_status=$?
  39816. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39817. - (exit $ac_status); }; } &&
  39818. - { ac_try='test -s conftest.$ac_objext'
  39819. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39820. - (eval $ac_try) 2>&5
  39821. - ac_status=$?
  39822. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39823. - (exit $ac_status); }; }; then
  39824. - ac_hi=-1 ac_mid=-1
  39825. - while :; do
  39826. - cat >conftest.$ac_ext <<_ACEOF
  39827. -/* confdefs.h. */
  39828. -_ACEOF
  39829. -cat confdefs.h >>conftest.$ac_ext
  39830. -cat >>conftest.$ac_ext <<_ACEOF
  39831. -/* end confdefs.h. */
  39832. -$ac_includes_default
  39833. -int
  39834. -main ()
  39835. -{
  39836. -static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  39837. -test_array [0] = 0
  39838. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  39839. +# Let make expand exec_prefix.
  39840. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  39841. - ;
  39842. - return 0;
  39843. -}
  39844. -_ACEOF
  39845. -rm -f conftest.$ac_objext
  39846. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  39847. - (eval $ac_compile) 2>conftest.er1
  39848. - ac_status=$?
  39849. - grep -v '^ *+' conftest.er1 >conftest.err
  39850. - rm -f conftest.er1
  39851. - cat conftest.err >&5
  39852. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39853. - (exit $ac_status); } &&
  39854. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  39855. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39856. - (eval $ac_try) 2>&5
  39857. - ac_status=$?
  39858. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39859. - (exit $ac_status); }; } &&
  39860. - { ac_try='test -s conftest.$ac_objext'
  39861. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39862. - (eval $ac_try) 2>&5
  39863. - ac_status=$?
  39864. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39865. - (exit $ac_status); }; }; then
  39866. - ac_lo=$ac_mid; break
  39867. +DEFS=-DHAVE_CONFIG_H
  39868. +
  39869. +ac_libobjs=
  39870. +ac_ltlibobjs=
  39871. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  39872. + # 1. Remove the extension, and $U if already installed.
  39873. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  39874. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  39875. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  39876. + # will be set to the directory where LIBOBJS objects are built.
  39877. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  39878. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  39879. +done
  39880. +LIBOBJS=$ac_libobjs
  39881. +
  39882. +LTLIBOBJS=$ac_ltlibobjs
  39883. +
  39884. +
  39885. + if test -n "$EXEEXT"; then
  39886. + am__EXEEXT_TRUE=
  39887. + am__EXEEXT_FALSE='#'
  39888. else
  39889. - echo "$as_me: failed program was:" >&5
  39890. -sed 's/^/| /' conftest.$ac_ext >&5
  39891. + am__EXEEXT_TRUE='#'
  39892. + am__EXEEXT_FALSE=
  39893. +fi
  39894. -ac_hi=`expr '(' $ac_mid ')' - 1`
  39895. - if test $ac_mid -le $ac_hi; then
  39896. - ac_lo= ac_hi=
  39897. - break
  39898. - fi
  39899. - ac_mid=`expr 2 '*' $ac_mid`
  39900. +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  39901. + as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
  39902. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39903. fi
  39904. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  39905. - done
  39906. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  39907. + as_fn_error "conditional \"AMDEP\" was never defined.
  39908. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39909. +fi
  39910. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  39911. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  39912. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  39913. +fi
  39914. +
  39915. +: ${CONFIG_STATUS=./config.status}
  39916. +ac_write_fail=0
  39917. +ac_clean_files_save=$ac_clean_files
  39918. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  39919. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  39920. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  39921. +as_write_fail=0
  39922. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  39923. +#! $SHELL
  39924. +# Generated by $as_me.
  39925. +# Run this file to recreate the current configuration.
  39926. +# Compiler output produced by configure, useful for debugging
  39927. +# configure, is in config.log if it exists.
  39928. +
  39929. +debug=false
  39930. +ac_cs_recheck=false
  39931. +ac_cs_silent=false
  39932. +
  39933. +SHELL=\${CONFIG_SHELL-$SHELL}
  39934. +export SHELL
  39935. +_ASEOF
  39936. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  39937. +## -------------------- ##
  39938. +## M4sh Initialization. ##
  39939. +## -------------------- ##
  39940. +
  39941. +# Be more Bourne compatible
  39942. +DUALCASE=1; export DUALCASE # for MKS sh
  39943. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  39944. + emulate sh
  39945. + NULLCMD=:
  39946. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  39947. + # is contrary to our usage. Disable this feature.
  39948. + alias -g '${1+"$@"}'='"$@"'
  39949. + setopt NO_GLOB_SUBST
  39950. else
  39951. - echo "$as_me: failed program was:" >&5
  39952. -sed 's/^/| /' conftest.$ac_ext >&5
  39953. + case `(set -o) 2>/dev/null` in #(
  39954. + *posix*) :
  39955. + set -o posix ;; #(
  39956. + *) :
  39957. + ;;
  39958. +esac
  39959. +fi
  39960. -ac_lo= ac_hi=
  39961. +
  39962. +as_nl='
  39963. +'
  39964. +export as_nl
  39965. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  39966. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  39967. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39968. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  39969. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  39970. +# but without wasting forks for bash or zsh.
  39971. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  39972. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  39973. + as_echo='print -r --'
  39974. + as_echo_n='print -rn --'
  39975. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  39976. + as_echo='printf %s\n'
  39977. + as_echo_n='printf %s'
  39978. +else
  39979. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  39980. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  39981. + as_echo_n='/usr/ucb/echo -n'
  39982. + else
  39983. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  39984. + as_echo_n_body='eval
  39985. + arg=$1;
  39986. + case $arg in #(
  39987. + *"$as_nl"*)
  39988. + expr "X$arg" : "X\\(.*\\)$as_nl";
  39989. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  39990. + esac;
  39991. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  39992. + '
  39993. + export as_echo_n_body
  39994. + as_echo_n='sh -c $as_echo_n_body as_echo'
  39995. + fi
  39996. + export as_echo_body
  39997. + as_echo='sh -c $as_echo_body as_echo'
  39998. fi
  39999. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40000. +
  40001. +# The user is always right.
  40002. +if test "${PATH_SEPARATOR+set}" != set; then
  40003. + PATH_SEPARATOR=:
  40004. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  40005. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  40006. + PATH_SEPARATOR=';'
  40007. + }
  40008. fi
  40009. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40010. -# Binary search between lo and hi bounds.
  40011. -while test "x$ac_lo" != "x$ac_hi"; do
  40012. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  40013. - cat >conftest.$ac_ext <<_ACEOF
  40014. -/* confdefs.h. */
  40015. -_ACEOF
  40016. -cat confdefs.h >>conftest.$ac_ext
  40017. -cat >>conftest.$ac_ext <<_ACEOF
  40018. -/* end confdefs.h. */
  40019. -$ac_includes_default
  40020. -int
  40021. -main ()
  40022. -{
  40023. -static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  40024. -test_array [0] = 0
  40025. - ;
  40026. - return 0;
  40027. -}
  40028. -_ACEOF
  40029. -rm -f conftest.$ac_objext
  40030. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40031. - (eval $ac_compile) 2>conftest.er1
  40032. - ac_status=$?
  40033. - grep -v '^ *+' conftest.er1 >conftest.err
  40034. - rm -f conftest.er1
  40035. - cat conftest.err >&5
  40036. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40037. - (exit $ac_status); } &&
  40038. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40039. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40040. - (eval $ac_try) 2>&5
  40041. - ac_status=$?
  40042. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40043. - (exit $ac_status); }; } &&
  40044. - { ac_try='test -s conftest.$ac_objext'
  40045. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40046. - (eval $ac_try) 2>&5
  40047. - ac_status=$?
  40048. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40049. - (exit $ac_status); }; }; then
  40050. - ac_hi=$ac_mid
  40051. -else
  40052. - echo "$as_me: failed program was:" >&5
  40053. -sed 's/^/| /' conftest.$ac_ext >&5
  40054. -ac_lo=`expr '(' $ac_mid ')' + 1`
  40055. -fi
  40056. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40057. -done
  40058. -case $ac_lo in
  40059. -?*) ac_cv_sizeof_short=$ac_lo;;
  40060. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  40061. -See \`config.log' for more details." >&5
  40062. -echo "$as_me: error: cannot compute sizeof (short), 77
  40063. -See \`config.log' for more details." >&2;}
  40064. - { (exit 1); exit 1; }; } ;;
  40065. -esac
  40066. +# IFS
  40067. +# We need space, tab and new line, in precisely that order. Quoting is
  40068. +# there to prevent editors from complaining about space-tab.
  40069. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  40070. +# splitting by setting IFS to empty value.)
  40071. +IFS=" "" $as_nl"
  40072. +
  40073. +# Find who we are. Look in the path if we contain no directory separator.
  40074. +case $0 in #((
  40075. + *[\\/]* ) as_myself=$0 ;;
  40076. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  40077. +for as_dir in $PATH
  40078. +do
  40079. + IFS=$as_save_IFS
  40080. + test -z "$as_dir" && as_dir=.
  40081. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  40082. + done
  40083. +IFS=$as_save_IFS
  40084. +
  40085. + ;;
  40086. +esac
  40087. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  40088. +# in which case we are not to be found in the path.
  40089. +if test "x$as_myself" = x; then
  40090. + as_myself=$0
  40091. +fi
  40092. +if test ! -f "$as_myself"; then
  40093. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  40094. + exit 1
  40095. +fi
  40096. +
  40097. +# Unset variables that we do not need and which cause bugs (e.g. in
  40098. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  40099. +# suppresses any "Segmentation fault" message there. '((' could
  40100. +# trigger a bug in pdksh 5.2.14.
  40101. +for as_var in BASH_ENV ENV MAIL MAILPATH
  40102. +do eval test x\${$as_var+set} = xset \
  40103. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  40104. +done
  40105. +PS1='$ '
  40106. +PS2='> '
  40107. +PS4='+ '
  40108. +
  40109. +# NLS nuisances.
  40110. +LC_ALL=C
  40111. +export LC_ALL
  40112. +LANGUAGE=C
  40113. +export LANGUAGE
  40114. +
  40115. +# CDPATH.
  40116. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40117. +
  40118. +
  40119. +# as_fn_error ERROR [LINENO LOG_FD]
  40120. +# ---------------------------------
  40121. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  40122. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  40123. +# script with status $?, using 1 if that was 0.
  40124. +as_fn_error ()
  40125. +{
  40126. + as_status=$?; test $as_status -eq 0 && as_status=1
  40127. + if test "$3"; then
  40128. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  40129. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  40130. + fi
  40131. + $as_echo "$as_me: error: $1" >&2
  40132. + as_fn_exit $as_status
  40133. +} # as_fn_error
  40134. +
  40135. +
  40136. +# as_fn_set_status STATUS
  40137. +# -----------------------
  40138. +# Set $? to STATUS, without forking.
  40139. +as_fn_set_status ()
  40140. +{
  40141. + return $1
  40142. +} # as_fn_set_status
  40143. +
  40144. +# as_fn_exit STATUS
  40145. +# -----------------
  40146. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  40147. +as_fn_exit ()
  40148. +{
  40149. + set +e
  40150. + as_fn_set_status $1
  40151. + exit $1
  40152. +} # as_fn_exit
  40153. +
  40154. +# as_fn_unset VAR
  40155. +# ---------------
  40156. +# Portably unset VAR.
  40157. +as_fn_unset ()
  40158. +{
  40159. + { eval $1=; unset $1;}
  40160. +}
  40161. +as_unset=as_fn_unset
  40162. +# as_fn_append VAR VALUE
  40163. +# ----------------------
  40164. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  40165. +# advantage of any shell optimizations that allow amortized linear growth over
  40166. +# repeated appends, instead of the typical quadratic growth present in naive
  40167. +# implementations.
  40168. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  40169. + eval 'as_fn_append ()
  40170. + {
  40171. + eval $1+=\$2
  40172. + }'
  40173. else
  40174. - if test "$cross_compiling" = yes; then
  40175. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  40176. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  40177. - { (exit 1); exit 1; }; }
  40178. + as_fn_append ()
  40179. + {
  40180. + eval $1=\$$1\$2
  40181. + }
  40182. +fi # as_fn_append
  40183. +
  40184. +# as_fn_arith ARG...
  40185. +# ------------------
  40186. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  40187. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  40188. +# must be portable across $(()) and expr.
  40189. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  40190. + eval 'as_fn_arith ()
  40191. + {
  40192. + as_val=$(( $* ))
  40193. + }'
  40194. else
  40195. - cat >conftest.$ac_ext <<_ACEOF
  40196. -/* confdefs.h. */
  40197. -_ACEOF
  40198. -cat confdefs.h >>conftest.$ac_ext
  40199. -cat >>conftest.$ac_ext <<_ACEOF
  40200. -/* end confdefs.h. */
  40201. -$ac_includes_default
  40202. -long longval () { return (long) (sizeof (short)); }
  40203. -unsigned long ulongval () { return (long) (sizeof (short)); }
  40204. -#include <stdio.h>
  40205. -#include <stdlib.h>
  40206. -int
  40207. -main ()
  40208. -{
  40209. + as_fn_arith ()
  40210. + {
  40211. + as_val=`expr "$@" || test $? -eq 1`
  40212. + }
  40213. +fi # as_fn_arith
  40214. - FILE *f = fopen ("conftest.val", "w");
  40215. - if (! f)
  40216. - exit (1);
  40217. - if (((long) (sizeof (short))) < 0)
  40218. - {
  40219. - long i = longval ();
  40220. - if (i != ((long) (sizeof (short))))
  40221. - exit (1);
  40222. - fprintf (f, "%ld\n", i);
  40223. - }
  40224. - else
  40225. - {
  40226. - unsigned long i = ulongval ();
  40227. - if (i != ((long) (sizeof (short))))
  40228. - exit (1);
  40229. - fprintf (f, "%lu\n", i);
  40230. - }
  40231. - exit (ferror (f) || fclose (f) != 0);
  40232. - ;
  40233. - return 0;
  40234. -}
  40235. -_ACEOF
  40236. -rm -f conftest$ac_exeext
  40237. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  40238. - (eval $ac_link) 2>&5
  40239. - ac_status=$?
  40240. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40241. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  40242. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40243. - (eval $ac_try) 2>&5
  40244. - ac_status=$?
  40245. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40246. - (exit $ac_status); }; }; then
  40247. - ac_cv_sizeof_short=`cat conftest.val`
  40248. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  40249. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  40250. + as_expr=expr
  40251. else
  40252. - echo "$as_me: program exited with status $ac_status" >&5
  40253. -echo "$as_me: failed program was:" >&5
  40254. -sed 's/^/| /' conftest.$ac_ext >&5
  40255. -
  40256. -( exit $ac_status )
  40257. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  40258. -See \`config.log' for more details." >&5
  40259. -echo "$as_me: error: cannot compute sizeof (short), 77
  40260. -See \`config.log' for more details." >&2;}
  40261. - { (exit 1); exit 1; }; }
  40262. + as_expr=false
  40263. fi
  40264. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  40265. +
  40266. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  40267. + as_basename=basename
  40268. +else
  40269. + as_basename=false
  40270. fi
  40271. +
  40272. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  40273. + as_dirname=dirname
  40274. +else
  40275. + as_dirname=false
  40276. fi
  40277. -rm -f conftest.val
  40278. +
  40279. +as_me=`$as_basename -- "$0" ||
  40280. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  40281. + X"$0" : 'X\(//\)$' \| \
  40282. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  40283. +$as_echo X/"$0" |
  40284. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  40285. + s//\1/
  40286. + q
  40287. + }
  40288. + /^X\/\(\/\/\)$/{
  40289. + s//\1/
  40290. + q
  40291. + }
  40292. + /^X\/\(\/\).*/{
  40293. + s//\1/
  40294. + q
  40295. + }
  40296. + s/.*/./; q'`
  40297. +
  40298. +# Avoid depending upon Character Ranges.
  40299. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  40300. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  40301. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  40302. +as_cr_digits='0123456789'
  40303. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  40304. +
  40305. +ECHO_C= ECHO_N= ECHO_T=
  40306. +case `echo -n x` in #(((((
  40307. +-n*)
  40308. + case `echo 'xy\c'` in
  40309. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  40310. + xy) ECHO_C='\c';;
  40311. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  40312. + ECHO_T=' ';;
  40313. + esac;;
  40314. +*)
  40315. + ECHO_N='-n';;
  40316. +esac
  40317. +
  40318. +rm -f conf$$ conf$$.exe conf$$.file
  40319. +if test -d conf$$.dir; then
  40320. + rm -f conf$$.dir/conf$$.file
  40321. else
  40322. - ac_cv_sizeof_short=0
  40323. + rm -f conf$$.dir
  40324. + mkdir conf$$.dir 2>/dev/null
  40325. fi
  40326. +if (echo >conf$$.file) 2>/dev/null; then
  40327. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  40328. + as_ln_s='ln -s'
  40329. + # ... but there are two gotchas:
  40330. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  40331. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  40332. + # In both cases, we have to default to `cp -p'.
  40333. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  40334. + as_ln_s='cp -p'
  40335. + elif ln conf$$.file conf$$ 2>/dev/null; then
  40336. + as_ln_s=ln
  40337. + else
  40338. + as_ln_s='cp -p'
  40339. + fi
  40340. +else
  40341. + as_ln_s='cp -p'
  40342. fi
  40343. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  40344. -echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  40345. -cat >>confdefs.h <<_ACEOF
  40346. -#define SIZEOF_SHORT $ac_cv_sizeof_short
  40347. -_ACEOF
  40348. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  40349. +rmdir conf$$.dir 2>/dev/null
  40350. -echo "$as_me:$LINENO: checking for int" >&5
  40351. -echo $ECHO_N "checking for int... $ECHO_C" >&6
  40352. -if test "${ac_cv_type_int+set}" = set; then
  40353. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40354. -else
  40355. - cat >conftest.$ac_ext <<_ACEOF
  40356. -/* confdefs.h. */
  40357. -_ACEOF
  40358. -cat confdefs.h >>conftest.$ac_ext
  40359. -cat >>conftest.$ac_ext <<_ACEOF
  40360. -/* end confdefs.h. */
  40361. -$ac_includes_default
  40362. -int
  40363. -main ()
  40364. +# as_fn_mkdir_p
  40365. +# -------------
  40366. +# Create "$as_dir" as a directory, including parents if necessary.
  40367. +as_fn_mkdir_p ()
  40368. {
  40369. -if ((int *) 0)
  40370. - return 0;
  40371. -if (sizeof (int))
  40372. - return 0;
  40373. - ;
  40374. - return 0;
  40375. -}
  40376. -_ACEOF
  40377. -rm -f conftest.$ac_objext
  40378. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40379. - (eval $ac_compile) 2>conftest.er1
  40380. - ac_status=$?
  40381. - grep -v '^ *+' conftest.er1 >conftest.err
  40382. - rm -f conftest.er1
  40383. - cat conftest.err >&5
  40384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40385. - (exit $ac_status); } &&
  40386. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40387. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40388. - (eval $ac_try) 2>&5
  40389. - ac_status=$?
  40390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40391. - (exit $ac_status); }; } &&
  40392. - { ac_try='test -s conftest.$ac_objext'
  40393. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40394. - (eval $ac_try) 2>&5
  40395. - ac_status=$?
  40396. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40397. - (exit $ac_status); }; }; then
  40398. - ac_cv_type_int=yes
  40399. -else
  40400. - echo "$as_me: failed program was:" >&5
  40401. -sed 's/^/| /' conftest.$ac_ext >&5
  40402. -ac_cv_type_int=no
  40403. -fi
  40404. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40405. + case $as_dir in #(
  40406. + -*) as_dir=./$as_dir;;
  40407. + esac
  40408. + test -d "$as_dir" || eval $as_mkdir_p || {
  40409. + as_dirs=
  40410. + while :; do
  40411. + case $as_dir in #(
  40412. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  40413. + *) as_qdir=$as_dir;;
  40414. + esac
  40415. + as_dirs="'$as_qdir' $as_dirs"
  40416. + as_dir=`$as_dirname -- "$as_dir" ||
  40417. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  40418. + X"$as_dir" : 'X\(//\)[^/]' \| \
  40419. + X"$as_dir" : 'X\(//\)$' \| \
  40420. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  40421. +$as_echo X"$as_dir" |
  40422. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  40423. + s//\1/
  40424. + q
  40425. + }
  40426. + /^X\(\/\/\)[^/].*/{
  40427. + s//\1/
  40428. + q
  40429. + }
  40430. + /^X\(\/\/\)$/{
  40431. + s//\1/
  40432. + q
  40433. + }
  40434. + /^X\(\/\).*/{
  40435. + s//\1/
  40436. + q
  40437. + }
  40438. + s/.*/./; q'`
  40439. + test -d "$as_dir" && break
  40440. + done
  40441. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  40442. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  40443. +
  40444. +
  40445. +} # as_fn_mkdir_p
  40446. +if mkdir -p . 2>/dev/null; then
  40447. + as_mkdir_p='mkdir -p "$as_dir"'
  40448. +else
  40449. + test -d ./-p && rmdir ./-p
  40450. + as_mkdir_p=false
  40451. fi
  40452. -echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  40453. -echo "${ECHO_T}$ac_cv_type_int" >&6
  40454. -echo "$as_me:$LINENO: checking size of int" >&5
  40455. -echo $ECHO_N "checking size of int... $ECHO_C" >&6
  40456. -if test "${ac_cv_sizeof_int+set}" = set; then
  40457. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40458. +if test -x / >/dev/null 2>&1; then
  40459. + as_test_x='test -x'
  40460. else
  40461. - if test "$ac_cv_type_int" = yes; then
  40462. - # The cast to unsigned long works around a bug in the HP C Compiler
  40463. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  40464. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  40465. - # This bug is HP SR number 8606223364.
  40466. - if test "$cross_compiling" = yes; then
  40467. - # Depending upon the size, compute the lo and hi bounds.
  40468. -cat >conftest.$ac_ext <<_ACEOF
  40469. -/* confdefs.h. */
  40470. -_ACEOF
  40471. -cat confdefs.h >>conftest.$ac_ext
  40472. -cat >>conftest.$ac_ext <<_ACEOF
  40473. -/* end confdefs.h. */
  40474. -$ac_includes_default
  40475. -int
  40476. -main ()
  40477. -{
  40478. -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  40479. -test_array [0] = 0
  40480. + if ls -dL / >/dev/null 2>&1; then
  40481. + as_ls_L_option=L
  40482. + else
  40483. + as_ls_L_option=
  40484. + fi
  40485. + as_test_x='
  40486. + eval sh -c '\''
  40487. + if test -d "$1"; then
  40488. + test -d "$1/.";
  40489. + else
  40490. + case $1 in #(
  40491. + -*)set "./$1";;
  40492. + esac;
  40493. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  40494. + ???[sx]*):;;*)false;;esac;fi
  40495. + '\'' sh
  40496. + '
  40497. +fi
  40498. +as_executable_p=$as_test_x
  40499. - ;
  40500. - return 0;
  40501. -}
  40502. -_ACEOF
  40503. -rm -f conftest.$ac_objext
  40504. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40505. - (eval $ac_compile) 2>conftest.er1
  40506. - ac_status=$?
  40507. - grep -v '^ *+' conftest.er1 >conftest.err
  40508. - rm -f conftest.er1
  40509. - cat conftest.err >&5
  40510. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40511. - (exit $ac_status); } &&
  40512. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40513. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40514. - (eval $ac_try) 2>&5
  40515. - ac_status=$?
  40516. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40517. - (exit $ac_status); }; } &&
  40518. - { ac_try='test -s conftest.$ac_objext'
  40519. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40520. - (eval $ac_try) 2>&5
  40521. - ac_status=$?
  40522. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40523. - (exit $ac_status); }; }; then
  40524. - ac_lo=0 ac_mid=0
  40525. - while :; do
  40526. - cat >conftest.$ac_ext <<_ACEOF
  40527. -/* confdefs.h. */
  40528. -_ACEOF
  40529. -cat confdefs.h >>conftest.$ac_ext
  40530. -cat >>conftest.$ac_ext <<_ACEOF
  40531. -/* end confdefs.h. */
  40532. -$ac_includes_default
  40533. -int
  40534. -main ()
  40535. -{
  40536. -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  40537. -test_array [0] = 0
  40538. +# Sed expression to map a string onto a valid CPP name.
  40539. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  40540. +
  40541. +# Sed expression to map a string onto a valid variable name.
  40542. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  40543. +
  40544. +
  40545. +exec 6>&1
  40546. +## ----------------------------------- ##
  40547. +## Main body of $CONFIG_STATUS script. ##
  40548. +## ----------------------------------- ##
  40549. +_ASEOF
  40550. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  40551. +
  40552. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40553. +# Save the log message, to keep $0 and so on meaningful, and to
  40554. +# report actual input values of CONFIG_FILES etc. instead of their
  40555. +# values after options handling.
  40556. +ac_log="
  40557. +This file was extended by $as_me, which was
  40558. +generated by GNU Autoconf 2.65. Invocation command line was
  40559. +
  40560. + CONFIG_FILES = $CONFIG_FILES
  40561. + CONFIG_HEADERS = $CONFIG_HEADERS
  40562. + CONFIG_LINKS = $CONFIG_LINKS
  40563. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  40564. + $ $0 $@
  40565. +
  40566. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  40567. +"
  40568. - ;
  40569. - return 0;
  40570. -}
  40571. _ACEOF
  40572. -rm -f conftest.$ac_objext
  40573. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40574. - (eval $ac_compile) 2>conftest.er1
  40575. - ac_status=$?
  40576. - grep -v '^ *+' conftest.er1 >conftest.err
  40577. - rm -f conftest.er1
  40578. - cat conftest.err >&5
  40579. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40580. - (exit $ac_status); } &&
  40581. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40582. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40583. - (eval $ac_try) 2>&5
  40584. - ac_status=$?
  40585. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40586. - (exit $ac_status); }; } &&
  40587. - { ac_try='test -s conftest.$ac_objext'
  40588. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40589. - (eval $ac_try) 2>&5
  40590. - ac_status=$?
  40591. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40592. - (exit $ac_status); }; }; then
  40593. - ac_hi=$ac_mid; break
  40594. -else
  40595. - echo "$as_me: failed program was:" >&5
  40596. -sed 's/^/| /' conftest.$ac_ext >&5
  40597. -ac_lo=`expr $ac_mid + 1`
  40598. - if test $ac_lo -le $ac_mid; then
  40599. - ac_lo= ac_hi=
  40600. - break
  40601. - fi
  40602. - ac_mid=`expr 2 '*' $ac_mid + 1`
  40603. -fi
  40604. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40605. - done
  40606. -else
  40607. - echo "$as_me: failed program was:" >&5
  40608. -sed 's/^/| /' conftest.$ac_ext >&5
  40609. +case $ac_config_files in *"
  40610. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  40611. +esac
  40612. +
  40613. +case $ac_config_headers in *"
  40614. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  40615. +esac
  40616. +
  40617. +
  40618. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40619. +# Files that config.status was made for.
  40620. +config_files="$ac_config_files"
  40621. +config_headers="$ac_config_headers"
  40622. +config_commands="$ac_config_commands"
  40623. -cat >conftest.$ac_ext <<_ACEOF
  40624. -/* confdefs.h. */
  40625. _ACEOF
  40626. -cat confdefs.h >>conftest.$ac_ext
  40627. -cat >>conftest.$ac_ext <<_ACEOF
  40628. -/* end confdefs.h. */
  40629. -$ac_includes_default
  40630. -int
  40631. -main ()
  40632. -{
  40633. -static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  40634. -test_array [0] = 0
  40635. - ;
  40636. - return 0;
  40637. -}
  40638. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40639. +ac_cs_usage="\
  40640. +\`$as_me' instantiates files and other configuration actions
  40641. +from templates according to the current configuration. Unless the files
  40642. +and actions are specified as TAGs, all are instantiated by default.
  40643. +
  40644. +Usage: $0 [OPTION]... [TAG]...
  40645. +
  40646. + -h, --help print this help, then exit
  40647. + -V, --version print version number and configuration settings, then exit
  40648. + --config print configuration, then exit
  40649. + -q, --quiet, --silent
  40650. + do not print progress messages
  40651. + -d, --debug don't remove temporary files
  40652. + --recheck update $as_me by reconfiguring in the same conditions
  40653. + --file=FILE[:TEMPLATE]
  40654. + instantiate the configuration file FILE
  40655. + --header=FILE[:TEMPLATE]
  40656. + instantiate the configuration header FILE
  40657. +
  40658. +Configuration files:
  40659. +$config_files
  40660. +
  40661. +Configuration headers:
  40662. +$config_headers
  40663. +
  40664. +Configuration commands:
  40665. +$config_commands
  40666. +
  40667. +Report bugs to the package provider."
  40668. +
  40669. _ACEOF
  40670. -rm -f conftest.$ac_objext
  40671. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40672. - (eval $ac_compile) 2>conftest.er1
  40673. - ac_status=$?
  40674. - grep -v '^ *+' conftest.er1 >conftest.err
  40675. - rm -f conftest.er1
  40676. - cat conftest.err >&5
  40677. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40678. - (exit $ac_status); } &&
  40679. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40680. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40681. - (eval $ac_try) 2>&5
  40682. - ac_status=$?
  40683. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40684. - (exit $ac_status); }; } &&
  40685. - { ac_try='test -s conftest.$ac_objext'
  40686. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40687. - (eval $ac_try) 2>&5
  40688. - ac_status=$?
  40689. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40690. - (exit $ac_status); }; }; then
  40691. - ac_hi=-1 ac_mid=-1
  40692. - while :; do
  40693. - cat >conftest.$ac_ext <<_ACEOF
  40694. -/* confdefs.h. */
  40695. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40696. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  40697. +ac_cs_version="\\
  40698. +config.status
  40699. +configured by $0, generated by GNU Autoconf 2.65,
  40700. + with options \\"\$ac_cs_config\\"
  40701. +
  40702. +Copyright (C) 2009 Free Software Foundation, Inc.
  40703. +This config.status script is free software; the Free Software Foundation
  40704. +gives unlimited permission to copy, distribute and modify it."
  40705. +
  40706. +ac_pwd='$ac_pwd'
  40707. +srcdir='$srcdir'
  40708. +INSTALL='$INSTALL'
  40709. +MKDIR_P='$MKDIR_P'
  40710. +AWK='$AWK'
  40711. +test -n "\$AWK" || AWK=awk
  40712. _ACEOF
  40713. -cat confdefs.h >>conftest.$ac_ext
  40714. -cat >>conftest.$ac_ext <<_ACEOF
  40715. -/* end confdefs.h. */
  40716. -$ac_includes_default
  40717. -int
  40718. -main ()
  40719. -{
  40720. -static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  40721. -test_array [0] = 0
  40722. - ;
  40723. - return 0;
  40724. -}
  40725. -_ACEOF
  40726. -rm -f conftest.$ac_objext
  40727. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40728. - (eval $ac_compile) 2>conftest.er1
  40729. - ac_status=$?
  40730. - grep -v '^ *+' conftest.er1 >conftest.err
  40731. - rm -f conftest.er1
  40732. - cat conftest.err >&5
  40733. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40734. - (exit $ac_status); } &&
  40735. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40736. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40737. - (eval $ac_try) 2>&5
  40738. - ac_status=$?
  40739. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40740. - (exit $ac_status); }; } &&
  40741. - { ac_try='test -s conftest.$ac_objext'
  40742. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40743. - (eval $ac_try) 2>&5
  40744. - ac_status=$?
  40745. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40746. - (exit $ac_status); }; }; then
  40747. - ac_lo=$ac_mid; break
  40748. -else
  40749. - echo "$as_me: failed program was:" >&5
  40750. -sed 's/^/| /' conftest.$ac_ext >&5
  40751. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40752. +# The default lists apply if the user does not specify any file.
  40753. +ac_need_defaults=:
  40754. +while test $# != 0
  40755. +do
  40756. + case $1 in
  40757. + --*=*)
  40758. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  40759. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  40760. + ac_shift=:
  40761. + ;;
  40762. + *)
  40763. + ac_option=$1
  40764. + ac_optarg=$2
  40765. + ac_shift=shift
  40766. + ;;
  40767. + esac
  40768. +
  40769. + case $ac_option in
  40770. + # Handling of the options.
  40771. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  40772. + ac_cs_recheck=: ;;
  40773. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  40774. + $as_echo "$ac_cs_version"; exit ;;
  40775. + --config | --confi | --conf | --con | --co | --c )
  40776. + $as_echo "$ac_cs_config"; exit ;;
  40777. + --debug | --debu | --deb | --de | --d | -d )
  40778. + debug=: ;;
  40779. + --file | --fil | --fi | --f )
  40780. + $ac_shift
  40781. + case $ac_optarg in
  40782. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40783. + esac
  40784. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  40785. + ac_need_defaults=false;;
  40786. + --header | --heade | --head | --hea )
  40787. + $ac_shift
  40788. + case $ac_optarg in
  40789. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  40790. + esac
  40791. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  40792. + ac_need_defaults=false;;
  40793. + --he | --h)
  40794. + # Conflict between --help and --header
  40795. + as_fn_error "ambiguous option: \`$1'
  40796. +Try \`$0 --help' for more information.";;
  40797. + --help | --hel | -h )
  40798. + $as_echo "$ac_cs_usage"; exit ;;
  40799. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  40800. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  40801. + ac_cs_silent=: ;;
  40802. +
  40803. + # This is an error.
  40804. + -*) as_fn_error "unrecognized option: \`$1'
  40805. +Try \`$0 --help' for more information." ;;
  40806. +
  40807. + *) as_fn_append ac_config_targets " $1"
  40808. + ac_need_defaults=false ;;
  40809. +
  40810. + esac
  40811. + shift
  40812. +done
  40813. +
  40814. +ac_configure_extra_args=
  40815. -ac_hi=`expr '(' $ac_mid ')' - 1`
  40816. - if test $ac_mid -le $ac_hi; then
  40817. - ac_lo= ac_hi=
  40818. - break
  40819. - fi
  40820. - ac_mid=`expr 2 '*' $ac_mid`
  40821. +if $ac_cs_silent; then
  40822. + exec 6>/dev/null
  40823. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  40824. fi
  40825. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40826. - done
  40827. -else
  40828. - echo "$as_me: failed program was:" >&5
  40829. -sed 's/^/| /' conftest.$ac_ext >&5
  40830. -ac_lo= ac_hi=
  40831. -fi
  40832. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40833. +_ACEOF
  40834. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40835. +if \$ac_cs_recheck; then
  40836. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  40837. + shift
  40838. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  40839. + CONFIG_SHELL='$SHELL'
  40840. + export CONFIG_SHELL
  40841. + exec "\$@"
  40842. fi
  40843. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40844. -# Binary search between lo and hi bounds.
  40845. -while test "x$ac_lo" != "x$ac_hi"; do
  40846. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  40847. - cat >conftest.$ac_ext <<_ACEOF
  40848. -/* confdefs.h. */
  40849. +
  40850. _ACEOF
  40851. -cat confdefs.h >>conftest.$ac_ext
  40852. -cat >>conftest.$ac_ext <<_ACEOF
  40853. -/* end confdefs.h. */
  40854. -$ac_includes_default
  40855. -int
  40856. -main ()
  40857. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  40858. +exec 5>>config.log
  40859. {
  40860. -static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  40861. -test_array [0] = 0
  40862. + echo
  40863. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  40864. +## Running $as_me. ##
  40865. +_ASBOX
  40866. + $as_echo "$ac_log"
  40867. +} >&5
  40868. - ;
  40869. - return 0;
  40870. -}
  40871. _ACEOF
  40872. -rm -f conftest.$ac_objext
  40873. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  40874. - (eval $ac_compile) 2>conftest.er1
  40875. - ac_status=$?
  40876. - grep -v '^ *+' conftest.er1 >conftest.err
  40877. - rm -f conftest.er1
  40878. - cat conftest.err >&5
  40879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40880. - (exit $ac_status); } &&
  40881. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  40882. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40883. - (eval $ac_try) 2>&5
  40884. - ac_status=$?
  40885. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40886. - (exit $ac_status); }; } &&
  40887. - { ac_try='test -s conftest.$ac_objext'
  40888. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  40889. - (eval $ac_try) 2>&5
  40890. - ac_status=$?
  40891. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  40892. - (exit $ac_status); }; }; then
  40893. - ac_hi=$ac_mid
  40894. -else
  40895. - echo "$as_me: failed program was:" >&5
  40896. -sed 's/^/| /' conftest.$ac_ext >&5
  40897. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  40898. +#
  40899. +# INIT-COMMANDS
  40900. +#
  40901. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  40902. -ac_lo=`expr '(' $ac_mid ')' + 1`
  40903. -fi
  40904. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  40905. +
  40906. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  40907. +# if CDPATH is set.
  40908. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  40909. +
  40910. +sed_quote_subst='$sed_quote_subst'
  40911. +double_quote_subst='$double_quote_subst'
  40912. +delay_variable_subst='$delay_variable_subst'
  40913. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  40914. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  40915. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  40916. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  40917. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  40918. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  40919. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  40920. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  40921. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  40922. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  40923. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  40924. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  40925. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  40926. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  40927. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  40928. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  40929. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  40930. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  40931. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  40932. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  40933. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  40934. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  40935. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  40936. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  40937. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  40938. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  40939. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40940. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40941. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  40942. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  40943. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  40944. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  40945. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  40946. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  40947. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  40948. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40949. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40950. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40951. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  40952. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  40953. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  40954. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  40955. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  40956. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  40957. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  40958. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  40959. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  40960. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  40961. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  40962. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  40963. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40964. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  40965. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  40966. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  40967. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  40968. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  40969. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  40970. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  40971. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  40972. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  40973. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  40974. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  40975. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40976. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40977. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  40978. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  40979. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40980. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40981. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  40982. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40983. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40984. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40985. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40986. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40987. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  40988. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  40989. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40990. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  40991. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  40992. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  40993. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  40994. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  40995. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  40996. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  40997. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  40998. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  40999. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  41000. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  41001. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  41002. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  41003. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41004. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41005. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  41006. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41007. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41008. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  41009. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  41010. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  41011. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  41012. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41013. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  41014. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  41015. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41016. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41017. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41018. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41019. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41020. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  41021. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  41022. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  41023. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41024. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  41025. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  41026. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  41027. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  41028. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  41029. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41030. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  41031. +
  41032. +LTCC='$LTCC'
  41033. +LTCFLAGS='$LTCFLAGS'
  41034. +compiler='$compiler_DEFAULT'
  41035. +
  41036. +# Quote evaled strings.
  41037. +for var in SED \
  41038. +GREP \
  41039. +EGREP \
  41040. +FGREP \
  41041. +LD \
  41042. +NM \
  41043. +LN_S \
  41044. +lt_SP2NL \
  41045. +lt_NL2SP \
  41046. +reload_flag \
  41047. +OBJDUMP \
  41048. +deplibs_check_method \
  41049. +file_magic_cmd \
  41050. +AR \
  41051. +AR_FLAGS \
  41052. +STRIP \
  41053. +RANLIB \
  41054. +CC \
  41055. +CFLAGS \
  41056. +compiler \
  41057. +lt_cv_sys_global_symbol_pipe \
  41058. +lt_cv_sys_global_symbol_to_cdecl \
  41059. +lt_cv_sys_global_symbol_to_c_name_address \
  41060. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  41061. +SHELL \
  41062. +ECHO \
  41063. +lt_prog_compiler_no_builtin_flag \
  41064. +lt_prog_compiler_wl \
  41065. +lt_prog_compiler_pic \
  41066. +lt_prog_compiler_static \
  41067. +lt_cv_prog_compiler_c_o \
  41068. +need_locks \
  41069. +DSYMUTIL \
  41070. +NMEDIT \
  41071. +LIPO \
  41072. +OTOOL \
  41073. +OTOOL64 \
  41074. +shrext_cmds \
  41075. +export_dynamic_flag_spec \
  41076. +whole_archive_flag_spec \
  41077. +compiler_needs_object \
  41078. +with_gnu_ld \
  41079. +allow_undefined_flag \
  41080. +no_undefined_flag \
  41081. +hardcode_libdir_flag_spec \
  41082. +hardcode_libdir_flag_spec_ld \
  41083. +hardcode_libdir_separator \
  41084. +fix_srcfile_path \
  41085. +exclude_expsyms \
  41086. +include_expsyms \
  41087. +file_list_spec \
  41088. +variables_saved_for_relink \
  41089. +libname_spec \
  41090. +library_names_spec \
  41091. +soname_spec \
  41092. +finish_eval \
  41093. +old_striplib \
  41094. +striplib; do
  41095. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41096. + *[\\\\\\\`\\"\\\$]*)
  41097. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  41098. + ;;
  41099. + *)
  41100. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41101. + ;;
  41102. + esac
  41103. done
  41104. -case $ac_lo in
  41105. -?*) ac_cv_sizeof_int=$ac_lo;;
  41106. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  41107. -See \`config.log' for more details." >&5
  41108. -echo "$as_me: error: cannot compute sizeof (int), 77
  41109. -See \`config.log' for more details." >&2;}
  41110. - { (exit 1); exit 1; }; } ;;
  41111. -esac
  41112. -else
  41113. - if test "$cross_compiling" = yes; then
  41114. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  41115. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  41116. - { (exit 1); exit 1; }; }
  41117. -else
  41118. - cat >conftest.$ac_ext <<_ACEOF
  41119. -/* confdefs.h. */
  41120. -_ACEOF
  41121. -cat confdefs.h >>conftest.$ac_ext
  41122. -cat >>conftest.$ac_ext <<_ACEOF
  41123. -/* end confdefs.h. */
  41124. -$ac_includes_default
  41125. -long longval () { return (long) (sizeof (int)); }
  41126. -unsigned long ulongval () { return (long) (sizeof (int)); }
  41127. -#include <stdio.h>
  41128. -#include <stdlib.h>
  41129. -int
  41130. -main ()
  41131. -{
  41132. - FILE *f = fopen ("conftest.val", "w");
  41133. - if (! f)
  41134. - exit (1);
  41135. - if (((long) (sizeof (int))) < 0)
  41136. - {
  41137. - long i = longval ();
  41138. - if (i != ((long) (sizeof (int))))
  41139. - exit (1);
  41140. - fprintf (f, "%ld\n", i);
  41141. - }
  41142. - else
  41143. - {
  41144. - unsigned long i = ulongval ();
  41145. - if (i != ((long) (sizeof (int))))
  41146. - exit (1);
  41147. - fprintf (f, "%lu\n", i);
  41148. - }
  41149. - exit (ferror (f) || fclose (f) != 0);
  41150. +# Double-quote double-evaled strings.
  41151. +for var in reload_cmds \
  41152. +old_postinstall_cmds \
  41153. +old_postuninstall_cmds \
  41154. +old_archive_cmds \
  41155. +extract_expsyms_cmds \
  41156. +old_archive_from_new_cmds \
  41157. +old_archive_from_expsyms_cmds \
  41158. +archive_cmds \
  41159. +archive_expsym_cmds \
  41160. +module_cmds \
  41161. +module_expsym_cmds \
  41162. +export_symbols_cmds \
  41163. +prelink_cmds \
  41164. +postinstall_cmds \
  41165. +postuninstall_cmds \
  41166. +finish_cmds \
  41167. +sys_lib_search_path_spec \
  41168. +sys_lib_dlsearch_path_spec; do
  41169. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  41170. + *[\\\\\\\`\\"\\\$]*)
  41171. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  41172. + ;;
  41173. + *)
  41174. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  41175. + ;;
  41176. + esac
  41177. +done
  41178. - ;
  41179. - return 0;
  41180. -}
  41181. -_ACEOF
  41182. -rm -f conftest$ac_exeext
  41183. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  41184. - (eval $ac_link) 2>&5
  41185. - ac_status=$?
  41186. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41187. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41188. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41189. - (eval $ac_try) 2>&5
  41190. - ac_status=$?
  41191. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41192. - (exit $ac_status); }; }; then
  41193. - ac_cv_sizeof_int=`cat conftest.val`
  41194. -else
  41195. - echo "$as_me: program exited with status $ac_status" >&5
  41196. -echo "$as_me: failed program was:" >&5
  41197. -sed 's/^/| /' conftest.$ac_ext >&5
  41198. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  41199. +case \$lt_ECHO in
  41200. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  41201. + ;;
  41202. +esac
  41203. -( exit $ac_status )
  41204. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  41205. -See \`config.log' for more details." >&5
  41206. -echo "$as_me: error: cannot compute sizeof (int), 77
  41207. -See \`config.log' for more details." >&2;}
  41208. - { (exit 1); exit 1; }; }
  41209. -fi
  41210. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41211. -fi
  41212. -fi
  41213. -rm -f conftest.val
  41214. -else
  41215. - ac_cv_sizeof_int=0
  41216. -fi
  41217. +ac_aux_dir='$ac_aux_dir'
  41218. +xsi_shell='$xsi_shell'
  41219. +lt_shell_append='$lt_shell_append'
  41220. +
  41221. +# See if we are running on zsh, and set the options which allow our
  41222. +# commands through without removal of \ escapes INIT.
  41223. +if test -n "\${ZSH_VERSION+set}" ; then
  41224. + setopt NO_GLOB_SUBST
  41225. fi
  41226. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  41227. -echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  41228. -cat >>confdefs.h <<_ACEOF
  41229. -#define SIZEOF_INT $ac_cv_sizeof_int
  41230. -_ACEOF
  41231. -echo "$as_me:$LINENO: checking for long" >&5
  41232. -echo $ECHO_N "checking for long... $ECHO_C" >&6
  41233. -if test "${ac_cv_type_long+set}" = set; then
  41234. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41235. -else
  41236. - cat >conftest.$ac_ext <<_ACEOF
  41237. -/* confdefs.h. */
  41238. -_ACEOF
  41239. -cat confdefs.h >>conftest.$ac_ext
  41240. -cat >>conftest.$ac_ext <<_ACEOF
  41241. -/* end confdefs.h. */
  41242. -$ac_includes_default
  41243. -int
  41244. -main ()
  41245. -{
  41246. -if ((long *) 0)
  41247. - return 0;
  41248. -if (sizeof (long))
  41249. - return 0;
  41250. - ;
  41251. - return 0;
  41252. -}
  41253. -_ACEOF
  41254. -rm -f conftest.$ac_objext
  41255. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41256. - (eval $ac_compile) 2>conftest.er1
  41257. - ac_status=$?
  41258. - grep -v '^ *+' conftest.er1 >conftest.err
  41259. - rm -f conftest.er1
  41260. - cat conftest.err >&5
  41261. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41262. - (exit $ac_status); } &&
  41263. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41264. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41265. - (eval $ac_try) 2>&5
  41266. - ac_status=$?
  41267. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41268. - (exit $ac_status); }; } &&
  41269. - { ac_try='test -s conftest.$ac_objext'
  41270. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41271. - (eval $ac_try) 2>&5
  41272. - ac_status=$?
  41273. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41274. - (exit $ac_status); }; }; then
  41275. - ac_cv_type_long=yes
  41276. -else
  41277. - echo "$as_me: failed program was:" >&5
  41278. -sed 's/^/| /' conftest.$ac_ext >&5
  41279. + PACKAGE='$PACKAGE'
  41280. + VERSION='$VERSION'
  41281. + TIMESTAMP='$TIMESTAMP'
  41282. + RM='$RM'
  41283. + ofile='$ofile'
  41284. -ac_cv_type_long=no
  41285. -fi
  41286. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41287. -fi
  41288. -echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  41289. -echo "${ECHO_T}$ac_cv_type_long" >&6
  41290. -echo "$as_me:$LINENO: checking size of long" >&5
  41291. -echo $ECHO_N "checking size of long... $ECHO_C" >&6
  41292. -if test "${ac_cv_sizeof_long+set}" = set; then
  41293. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41294. -else
  41295. - if test "$ac_cv_type_long" = yes; then
  41296. - # The cast to unsigned long works around a bug in the HP C Compiler
  41297. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  41298. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  41299. - # This bug is HP SR number 8606223364.
  41300. - if test "$cross_compiling" = yes; then
  41301. - # Depending upon the size, compute the lo and hi bounds.
  41302. -cat >conftest.$ac_ext <<_ACEOF
  41303. -/* confdefs.h. */
  41304. -_ACEOF
  41305. -cat confdefs.h >>conftest.$ac_ext
  41306. -cat >>conftest.$ac_ext <<_ACEOF
  41307. -/* end confdefs.h. */
  41308. -$ac_includes_default
  41309. -int
  41310. -main ()
  41311. -{
  41312. -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  41313. -test_array [0] = 0
  41314. - ;
  41315. - return 0;
  41316. -}
  41317. -_ACEOF
  41318. -rm -f conftest.$ac_objext
  41319. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41320. - (eval $ac_compile) 2>conftest.er1
  41321. - ac_status=$?
  41322. - grep -v '^ *+' conftest.er1 >conftest.err
  41323. - rm -f conftest.er1
  41324. - cat conftest.err >&5
  41325. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41326. - (exit $ac_status); } &&
  41327. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41328. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41329. - (eval $ac_try) 2>&5
  41330. - ac_status=$?
  41331. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41332. - (exit $ac_status); }; } &&
  41333. - { ac_try='test -s conftest.$ac_objext'
  41334. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41335. - (eval $ac_try) 2>&5
  41336. - ac_status=$?
  41337. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41338. - (exit $ac_status); }; }; then
  41339. - ac_lo=0 ac_mid=0
  41340. - while :; do
  41341. - cat >conftest.$ac_ext <<_ACEOF
  41342. -/* confdefs.h. */
  41343. -_ACEOF
  41344. -cat confdefs.h >>conftest.$ac_ext
  41345. -cat >>conftest.$ac_ext <<_ACEOF
  41346. -/* end confdefs.h. */
  41347. -$ac_includes_default
  41348. -int
  41349. -main ()
  41350. -{
  41351. -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  41352. -test_array [0] = 0
  41353. - ;
  41354. - return 0;
  41355. -}
  41356. _ACEOF
  41357. -rm -f conftest.$ac_objext
  41358. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41359. - (eval $ac_compile) 2>conftest.er1
  41360. - ac_status=$?
  41361. - grep -v '^ *+' conftest.er1 >conftest.err
  41362. - rm -f conftest.er1
  41363. - cat conftest.err >&5
  41364. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41365. - (exit $ac_status); } &&
  41366. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41367. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41368. - (eval $ac_try) 2>&5
  41369. - ac_status=$?
  41370. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41371. - (exit $ac_status); }; } &&
  41372. - { ac_try='test -s conftest.$ac_objext'
  41373. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41374. - (eval $ac_try) 2>&5
  41375. - ac_status=$?
  41376. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41377. - (exit $ac_status); }; }; then
  41378. - ac_hi=$ac_mid; break
  41379. -else
  41380. - echo "$as_me: failed program was:" >&5
  41381. -sed 's/^/| /' conftest.$ac_ext >&5
  41382. -ac_lo=`expr $ac_mid + 1`
  41383. - if test $ac_lo -le $ac_mid; then
  41384. - ac_lo= ac_hi=
  41385. - break
  41386. - fi
  41387. - ac_mid=`expr 2 '*' $ac_mid + 1`
  41388. -fi
  41389. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41390. - done
  41391. -else
  41392. - echo "$as_me: failed program was:" >&5
  41393. -sed 's/^/| /' conftest.$ac_ext >&5
  41394. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41395. -cat >conftest.$ac_ext <<_ACEOF
  41396. -/* confdefs.h. */
  41397. -_ACEOF
  41398. -cat confdefs.h >>conftest.$ac_ext
  41399. -cat >>conftest.$ac_ext <<_ACEOF
  41400. -/* end confdefs.h. */
  41401. -$ac_includes_default
  41402. -int
  41403. -main ()
  41404. -{
  41405. -static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  41406. -test_array [0] = 0
  41407. +# Handling of arguments.
  41408. +for ac_config_target in $ac_config_targets
  41409. +do
  41410. + case $ac_config_target in
  41411. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  41412. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  41413. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  41414. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  41415. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  41416. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  41417. + "doc/libogg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  41418. + "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  41419. + "include/ogg/Makefile") CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  41420. + "include/ogg/config_types.h") CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  41421. + "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  41422. + "libogg.spec") CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  41423. + "ogg.pc") CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  41424. + "ogg-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  41425. - ;
  41426. - return 0;
  41427. -}
  41428. -_ACEOF
  41429. -rm -f conftest.$ac_objext
  41430. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41431. - (eval $ac_compile) 2>conftest.er1
  41432. - ac_status=$?
  41433. - grep -v '^ *+' conftest.er1 >conftest.err
  41434. - rm -f conftest.er1
  41435. - cat conftest.err >&5
  41436. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41437. - (exit $ac_status); } &&
  41438. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41439. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41440. - (eval $ac_try) 2>&5
  41441. - ac_status=$?
  41442. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41443. - (exit $ac_status); }; } &&
  41444. - { ac_try='test -s conftest.$ac_objext'
  41445. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41446. - (eval $ac_try) 2>&5
  41447. - ac_status=$?
  41448. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41449. - (exit $ac_status); }; }; then
  41450. - ac_hi=-1 ac_mid=-1
  41451. - while :; do
  41452. - cat >conftest.$ac_ext <<_ACEOF
  41453. -/* confdefs.h. */
  41454. -_ACEOF
  41455. -cat confdefs.h >>conftest.$ac_ext
  41456. -cat >>conftest.$ac_ext <<_ACEOF
  41457. -/* end confdefs.h. */
  41458. -$ac_includes_default
  41459. -int
  41460. -main ()
  41461. -{
  41462. -static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  41463. -test_array [0] = 0
  41464. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  41465. + esac
  41466. +done
  41467. - ;
  41468. - return 0;
  41469. -}
  41470. -_ACEOF
  41471. -rm -f conftest.$ac_objext
  41472. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41473. - (eval $ac_compile) 2>conftest.er1
  41474. - ac_status=$?
  41475. - grep -v '^ *+' conftest.er1 >conftest.err
  41476. - rm -f conftest.er1
  41477. - cat conftest.err >&5
  41478. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41479. - (exit $ac_status); } &&
  41480. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41481. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41482. - (eval $ac_try) 2>&5
  41483. - ac_status=$?
  41484. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41485. - (exit $ac_status); }; } &&
  41486. - { ac_try='test -s conftest.$ac_objext'
  41487. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41488. - (eval $ac_try) 2>&5
  41489. - ac_status=$?
  41490. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41491. - (exit $ac_status); }; }; then
  41492. - ac_lo=$ac_mid; break
  41493. -else
  41494. - echo "$as_me: failed program was:" >&5
  41495. -sed 's/^/| /' conftest.$ac_ext >&5
  41496. -ac_hi=`expr '(' $ac_mid ')' - 1`
  41497. - if test $ac_mid -le $ac_hi; then
  41498. - ac_lo= ac_hi=
  41499. - break
  41500. - fi
  41501. - ac_mid=`expr 2 '*' $ac_mid`
  41502. +# If the user did not use the arguments to specify the items to instantiate,
  41503. +# then the envvar interface is used. Set only those that are not.
  41504. +# We use the long form for the default assignment because of an extremely
  41505. +# bizarre bug on SunOS 4.1.3.
  41506. +if $ac_need_defaults; then
  41507. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  41508. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  41509. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  41510. fi
  41511. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41512. - done
  41513. -else
  41514. - echo "$as_me: failed program was:" >&5
  41515. -sed 's/^/| /' conftest.$ac_ext >&5
  41516. -ac_lo= ac_hi=
  41517. -fi
  41518. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41519. -fi
  41520. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41521. -# Binary search between lo and hi bounds.
  41522. -while test "x$ac_lo" != "x$ac_hi"; do
  41523. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  41524. - cat >conftest.$ac_ext <<_ACEOF
  41525. -/* confdefs.h. */
  41526. -_ACEOF
  41527. -cat confdefs.h >>conftest.$ac_ext
  41528. -cat >>conftest.$ac_ext <<_ACEOF
  41529. -/* end confdefs.h. */
  41530. -$ac_includes_default
  41531. -int
  41532. -main ()
  41533. +# Have a temporary directory for convenience. Make it in the build tree
  41534. +# simply because there is no reason against having it here, and in addition,
  41535. +# creating and moving files from /tmp can sometimes cause problems.
  41536. +# Hook for its removal unless debugging.
  41537. +# Note that there is a small window in which the directory will not be cleaned:
  41538. +# after its creation but before its name has been assigned to `$tmp'.
  41539. +$debug ||
  41540. {
  41541. -static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  41542. -test_array [0] = 0
  41543. -
  41544. - ;
  41545. - return 0;
  41546. + tmp=
  41547. + trap 'exit_status=$?
  41548. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  41549. +' 0
  41550. + trap 'as_fn_exit 1' 1 2 13 15
  41551. }
  41552. -_ACEOF
  41553. -rm -f conftest.$ac_objext
  41554. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41555. - (eval $ac_compile) 2>conftest.er1
  41556. - ac_status=$?
  41557. - grep -v '^ *+' conftest.er1 >conftest.err
  41558. - rm -f conftest.er1
  41559. - cat conftest.err >&5
  41560. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41561. - (exit $ac_status); } &&
  41562. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41563. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41564. - (eval $ac_try) 2>&5
  41565. - ac_status=$?
  41566. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41567. - (exit $ac_status); }; } &&
  41568. - { ac_try='test -s conftest.$ac_objext'
  41569. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41570. - (eval $ac_try) 2>&5
  41571. - ac_status=$?
  41572. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41573. - (exit $ac_status); }; }; then
  41574. - ac_hi=$ac_mid
  41575. -else
  41576. - echo "$as_me: failed program was:" >&5
  41577. -sed 's/^/| /' conftest.$ac_ext >&5
  41578. -
  41579. -ac_lo=`expr '(' $ac_mid ')' + 1`
  41580. -fi
  41581. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41582. -done
  41583. -case $ac_lo in
  41584. -?*) ac_cv_sizeof_long=$ac_lo;;
  41585. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  41586. -See \`config.log' for more details." >&5
  41587. -echo "$as_me: error: cannot compute sizeof (long), 77
  41588. -See \`config.log' for more details." >&2;}
  41589. - { (exit 1); exit 1; }; } ;;
  41590. -esac
  41591. -else
  41592. - if test "$cross_compiling" = yes; then
  41593. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  41594. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  41595. - { (exit 1); exit 1; }; }
  41596. -else
  41597. - cat >conftest.$ac_ext <<_ACEOF
  41598. -/* confdefs.h. */
  41599. -_ACEOF
  41600. -cat confdefs.h >>conftest.$ac_ext
  41601. -cat >>conftest.$ac_ext <<_ACEOF
  41602. -/* end confdefs.h. */
  41603. -$ac_includes_default
  41604. -long longval () { return (long) (sizeof (long)); }
  41605. -unsigned long ulongval () { return (long) (sizeof (long)); }
  41606. -#include <stdio.h>
  41607. -#include <stdlib.h>
  41608. -int
  41609. -main ()
  41610. +# Create a (secure) tmp directory for tmp files.
  41611. +
  41612. +{
  41613. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  41614. + test -n "$tmp" && test -d "$tmp"
  41615. +} ||
  41616. {
  41617. + tmp=./conf$$-$RANDOM
  41618. + (umask 077 && mkdir "$tmp")
  41619. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  41620. - FILE *f = fopen ("conftest.val", "w");
  41621. - if (! f)
  41622. - exit (1);
  41623. - if (((long) (sizeof (long))) < 0)
  41624. - {
  41625. - long i = longval ();
  41626. - if (i != ((long) (sizeof (long))))
  41627. - exit (1);
  41628. - fprintf (f, "%ld\n", i);
  41629. - }
  41630. - else
  41631. - {
  41632. - unsigned long i = ulongval ();
  41633. - if (i != ((long) (sizeof (long))))
  41634. - exit (1);
  41635. - fprintf (f, "%lu\n", i);
  41636. - }
  41637. - exit (ferror (f) || fclose (f) != 0);
  41638. +# Set up the scripts for CONFIG_FILES section.
  41639. +# No need to generate them if there are no CONFIG_FILES.
  41640. +# This happens for instance with `./config.status config.h'.
  41641. +if test -n "$CONFIG_FILES"; then
  41642. - ;
  41643. - return 0;
  41644. -}
  41645. -_ACEOF
  41646. -rm -f conftest$ac_exeext
  41647. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  41648. - (eval $ac_link) 2>&5
  41649. - ac_status=$?
  41650. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41651. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41652. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41653. - (eval $ac_try) 2>&5
  41654. - ac_status=$?
  41655. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41656. - (exit $ac_status); }; }; then
  41657. - ac_cv_sizeof_long=`cat conftest.val`
  41658. -else
  41659. - echo "$as_me: program exited with status $ac_status" >&5
  41660. -echo "$as_me: failed program was:" >&5
  41661. -sed 's/^/| /' conftest.$ac_ext >&5
  41662. -( exit $ac_status )
  41663. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  41664. -See \`config.log' for more details." >&5
  41665. -echo "$as_me: error: cannot compute sizeof (long), 77
  41666. -See \`config.log' for more details." >&2;}
  41667. - { (exit 1); exit 1; }; }
  41668. +ac_cr=`echo X | tr X '\015'`
  41669. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  41670. +# But we know of no other shell where ac_cr would be empty at this
  41671. +# point, so we can use a bashism as a fallback.
  41672. +if test "x$ac_cr" = x; then
  41673. + eval ac_cr=\$\'\\r\'
  41674. fi
  41675. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41676. -fi
  41677. -fi
  41678. -rm -f conftest.val
  41679. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  41680. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  41681. + ac_cs_awk_cr='\r'
  41682. else
  41683. - ac_cv_sizeof_long=0
  41684. -fi
  41685. + ac_cs_awk_cr=$ac_cr
  41686. fi
  41687. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  41688. -echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  41689. -cat >>confdefs.h <<_ACEOF
  41690. -#define SIZEOF_LONG $ac_cv_sizeof_long
  41691. +
  41692. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  41693. _ACEOF
  41694. -echo "$as_me:$LINENO: checking for long long" >&5
  41695. -echo $ECHO_N "checking for long long... $ECHO_C" >&6
  41696. -if test "${ac_cv_type_long_long+set}" = set; then
  41697. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41698. -else
  41699. - cat >conftest.$ac_ext <<_ACEOF
  41700. -/* confdefs.h. */
  41701. -_ACEOF
  41702. -cat confdefs.h >>conftest.$ac_ext
  41703. -cat >>conftest.$ac_ext <<_ACEOF
  41704. -/* end confdefs.h. */
  41705. -$ac_includes_default
  41706. -int
  41707. -main ()
  41708. {
  41709. -if ((long long *) 0)
  41710. - return 0;
  41711. -if (sizeof (long long))
  41712. - return 0;
  41713. - ;
  41714. - return 0;
  41715. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  41716. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  41717. + echo "_ACEOF"
  41718. +} >conf$$subs.sh ||
  41719. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41720. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  41721. +ac_delim='%!_!# '
  41722. +for ac_last_try in false false false false false :; do
  41723. + . ./conf$$subs.sh ||
  41724. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41725. +
  41726. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  41727. + if test $ac_delim_n = $ac_delim_num; then
  41728. + break
  41729. + elif $ac_last_try; then
  41730. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  41731. + else
  41732. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41733. + fi
  41734. +done
  41735. +rm -f conf$$subs.sh
  41736. +
  41737. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41738. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  41739. +_ACEOF
  41740. +sed -n '
  41741. +h
  41742. +s/^/S["/; s/!.*/"]=/
  41743. +p
  41744. +g
  41745. +s/^[^!]*!//
  41746. +:repl
  41747. +t repl
  41748. +s/'"$ac_delim"'$//
  41749. +t delim
  41750. +:nl
  41751. +h
  41752. +s/\(.\{148\}\)..*/\1/
  41753. +t more1
  41754. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  41755. +p
  41756. +n
  41757. +b repl
  41758. +:more1
  41759. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41760. +p
  41761. +g
  41762. +s/.\{148\}//
  41763. +t nl
  41764. +:delim
  41765. +h
  41766. +s/\(.\{148\}\)..*/\1/
  41767. +t more2
  41768. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  41769. +p
  41770. +b
  41771. +:more2
  41772. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  41773. +p
  41774. +g
  41775. +s/.\{148\}//
  41776. +t delim
  41777. +' <conf$$subs.awk | sed '
  41778. +/^[^""]/{
  41779. + N
  41780. + s/\n//
  41781. +}
  41782. +' >>$CONFIG_STATUS || ac_write_fail=1
  41783. +rm -f conf$$subs.awk
  41784. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  41785. +_ACAWK
  41786. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  41787. + for (key in S) S_is_set[key] = 1
  41788. + FS = ""
  41789. +
  41790. +}
  41791. +{
  41792. + line = $ 0
  41793. + nfields = split(line, field, "@")
  41794. + substed = 0
  41795. + len = length(field[1])
  41796. + for (i = 2; i < nfields; i++) {
  41797. + key = field[i]
  41798. + keylen = length(key)
  41799. + if (S_is_set[key]) {
  41800. + value = S[key]
  41801. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  41802. + len += length(value) + length(field[++i])
  41803. + substed = 1
  41804. + } else
  41805. + len += 1 + keylen
  41806. + }
  41807. +
  41808. + print line
  41809. }
  41810. +
  41811. +_ACAWK
  41812. _ACEOF
  41813. -rm -f conftest.$ac_objext
  41814. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41815. - (eval $ac_compile) 2>conftest.er1
  41816. - ac_status=$?
  41817. - grep -v '^ *+' conftest.er1 >conftest.err
  41818. - rm -f conftest.er1
  41819. - cat conftest.err >&5
  41820. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41821. - (exit $ac_status); } &&
  41822. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41823. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41824. - (eval $ac_try) 2>&5
  41825. - ac_status=$?
  41826. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41827. - (exit $ac_status); }; } &&
  41828. - { ac_try='test -s conftest.$ac_objext'
  41829. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41830. - (eval $ac_try) 2>&5
  41831. - ac_status=$?
  41832. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41833. - (exit $ac_status); }; }; then
  41834. - ac_cv_type_long_long=yes
  41835. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41836. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  41837. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  41838. else
  41839. - echo "$as_me: failed program was:" >&5
  41840. -sed 's/^/| /' conftest.$ac_ext >&5
  41841. + cat
  41842. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  41843. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  41844. +_ACEOF
  41845. -ac_cv_type_long_long=no
  41846. -fi
  41847. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41848. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  41849. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  41850. +# trailing colons and then remove the whole line if VPATH becomes empty
  41851. +# (actually we leave an empty line to preserve line numbers).
  41852. +if test "x$srcdir" = x.; then
  41853. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  41854. +s/:*\$(srcdir):*/:/
  41855. +s/:*\${srcdir}:*/:/
  41856. +s/:*@srcdir@:*/:/
  41857. +s/^\([^=]*=[ ]*\):*/\1/
  41858. +s/:*$//
  41859. +s/^[^=]*=[ ]*$//
  41860. +}'
  41861. fi
  41862. -echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  41863. -echo "${ECHO_T}$ac_cv_type_long_long" >&6
  41864. -echo "$as_me:$LINENO: checking size of long long" >&5
  41865. -echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  41866. -if test "${ac_cv_sizeof_long_long+set}" = set; then
  41867. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41868. -else
  41869. - if test "$ac_cv_type_long_long" = yes; then
  41870. - # The cast to unsigned long works around a bug in the HP C Compiler
  41871. - # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  41872. - # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  41873. - # This bug is HP SR number 8606223364.
  41874. - if test "$cross_compiling" = yes; then
  41875. - # Depending upon the size, compute the lo and hi bounds.
  41876. -cat >conftest.$ac_ext <<_ACEOF
  41877. -/* confdefs.h. */
  41878. -_ACEOF
  41879. -cat confdefs.h >>conftest.$ac_ext
  41880. -cat >>conftest.$ac_ext <<_ACEOF
  41881. -/* end confdefs.h. */
  41882. -$ac_includes_default
  41883. -int
  41884. -main ()
  41885. -{
  41886. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  41887. -test_array [0] = 0
  41888. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  41889. +fi # test -n "$CONFIG_FILES"
  41890. - ;
  41891. - return 0;
  41892. -}
  41893. -_ACEOF
  41894. -rm -f conftest.$ac_objext
  41895. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41896. - (eval $ac_compile) 2>conftest.er1
  41897. - ac_status=$?
  41898. - grep -v '^ *+' conftest.er1 >conftest.err
  41899. - rm -f conftest.er1
  41900. - cat conftest.err >&5
  41901. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41902. - (exit $ac_status); } &&
  41903. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  41904. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41905. - (eval $ac_try) 2>&5
  41906. - ac_status=$?
  41907. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41908. - (exit $ac_status); }; } &&
  41909. - { ac_try='test -s conftest.$ac_objext'
  41910. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41911. - (eval $ac_try) 2>&5
  41912. - ac_status=$?
  41913. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41914. - (exit $ac_status); }; }; then
  41915. - ac_lo=0 ac_mid=0
  41916. - while :; do
  41917. - cat >conftest.$ac_ext <<_ACEOF
  41918. -/* confdefs.h. */
  41919. -_ACEOF
  41920. -cat confdefs.h >>conftest.$ac_ext
  41921. -cat >>conftest.$ac_ext <<_ACEOF
  41922. -/* end confdefs.h. */
  41923. -$ac_includes_default
  41924. -int
  41925. -main ()
  41926. -{
  41927. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  41928. -test_array [0] = 0
  41929. +# Set up the scripts for CONFIG_HEADERS section.
  41930. +# No need to generate them if there are no CONFIG_HEADERS.
  41931. +# This happens for instance with `./config.status Makefile'.
  41932. +if test -n "$CONFIG_HEADERS"; then
  41933. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  41934. +BEGIN {
  41935. +_ACEOF
  41936. +
  41937. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  41938. +# here-document in config.status, that substitutes the proper values into
  41939. +# config.h.in to produce config.h.
  41940. +
  41941. +# Create a delimiter string that does not exist in confdefs.h, to ease
  41942. +# handling of long lines.
  41943. +ac_delim='%!_!# '
  41944. +for ac_last_try in false false :; do
  41945. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  41946. + if test -z "$ac_t"; then
  41947. + break
  41948. + elif $ac_last_try; then
  41949. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  41950. + else
  41951. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  41952. + fi
  41953. +done
  41954. - ;
  41955. - return 0;
  41956. +# For the awk script, D is an array of macro values keyed by name,
  41957. +# likewise P contains macro parameters if any. Preserve backslash
  41958. +# newline sequences.
  41959. +
  41960. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  41961. +sed -n '
  41962. +s/.\{148\}/&'"$ac_delim"'/g
  41963. +t rset
  41964. +:rset
  41965. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  41966. +t def
  41967. +d
  41968. +:def
  41969. +s/\\$//
  41970. +t bsnl
  41971. +s/["\\]/\\&/g
  41972. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41973. +D["\1"]=" \3"/p
  41974. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  41975. +d
  41976. +:bsnl
  41977. +s/["\\]/\\&/g
  41978. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  41979. +D["\1"]=" \3\\\\\\n"\\/p
  41980. +t cont
  41981. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  41982. +t cont
  41983. +d
  41984. +:cont
  41985. +n
  41986. +s/.\{148\}/&'"$ac_delim"'/g
  41987. +t clear
  41988. +:clear
  41989. +s/\\$//
  41990. +t bsnlc
  41991. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  41992. +d
  41993. +:bsnlc
  41994. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  41995. +b cont
  41996. +' <confdefs.h | sed '
  41997. +s/'"$ac_delim"'/"\\\
  41998. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  41999. +
  42000. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42001. + for (key in D) D_is_set[key] = 1
  42002. + FS = ""
  42003. +}
  42004. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  42005. + line = \$ 0
  42006. + split(line, arg, " ")
  42007. + if (arg[1] == "#") {
  42008. + defundef = arg[2]
  42009. + mac1 = arg[3]
  42010. + } else {
  42011. + defundef = substr(arg[1], 2)
  42012. + mac1 = arg[2]
  42013. + }
  42014. + split(mac1, mac2, "(") #)
  42015. + macro = mac2[1]
  42016. + prefix = substr(line, 1, index(line, defundef) - 1)
  42017. + if (D_is_set[macro]) {
  42018. + # Preserve the white space surrounding the "#".
  42019. + print prefix "define", macro P[macro] D[macro]
  42020. + next
  42021. + } else {
  42022. + # Replace #undef with comments. This is necessary, for example,
  42023. + # in the case of _POSIX_SOURCE, which is predefined and required
  42024. + # on some systems where configure will not decide to define it.
  42025. + if (defundef == "undef") {
  42026. + print "/*", prefix defundef, macro, "*/"
  42027. + next
  42028. + }
  42029. + }
  42030. }
  42031. +{ print }
  42032. +_ACAWK
  42033. _ACEOF
  42034. -rm -f conftest.$ac_objext
  42035. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42036. - (eval $ac_compile) 2>conftest.er1
  42037. - ac_status=$?
  42038. - grep -v '^ *+' conftest.er1 >conftest.err
  42039. - rm -f conftest.er1
  42040. - cat conftest.err >&5
  42041. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42042. - (exit $ac_status); } &&
  42043. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42044. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42045. - (eval $ac_try) 2>&5
  42046. - ac_status=$?
  42047. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42048. - (exit $ac_status); }; } &&
  42049. - { ac_try='test -s conftest.$ac_objext'
  42050. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42051. - (eval $ac_try) 2>&5
  42052. - ac_status=$?
  42053. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42054. - (exit $ac_status); }; }; then
  42055. - ac_hi=$ac_mid; break
  42056. -else
  42057. - echo "$as_me: failed program was:" >&5
  42058. -sed 's/^/| /' conftest.$ac_ext >&5
  42059. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42060. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  42061. +fi # test -n "$CONFIG_HEADERS"
  42062. +
  42063. +
  42064. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  42065. +shift
  42066. +for ac_tag
  42067. +do
  42068. + case $ac_tag in
  42069. + :[FHLC]) ac_mode=$ac_tag; continue;;
  42070. + esac
  42071. + case $ac_mode$ac_tag in
  42072. + :[FHL]*:*);;
  42073. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  42074. + :[FH]-) ac_tag=-:-;;
  42075. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  42076. + esac
  42077. + ac_save_IFS=$IFS
  42078. + IFS=:
  42079. + set x $ac_tag
  42080. + IFS=$ac_save_IFS
  42081. + shift
  42082. + ac_file=$1
  42083. + shift
  42084. -ac_lo=`expr $ac_mid + 1`
  42085. - if test $ac_lo -le $ac_mid; then
  42086. - ac_lo= ac_hi=
  42087. - break
  42088. - fi
  42089. - ac_mid=`expr 2 '*' $ac_mid + 1`
  42090. -fi
  42091. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42092. - done
  42093. -else
  42094. - echo "$as_me: failed program was:" >&5
  42095. -sed 's/^/| /' conftest.$ac_ext >&5
  42096. + case $ac_mode in
  42097. + :L) ac_source=$1;;
  42098. + :[FH])
  42099. + ac_file_inputs=
  42100. + for ac_f
  42101. + do
  42102. + case $ac_f in
  42103. + -) ac_f="$tmp/stdin";;
  42104. + *) # Look for the file first in the build tree, then in the source tree
  42105. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  42106. + # because $ac_f cannot contain `:'.
  42107. + test -f "$ac_f" ||
  42108. + case $ac_f in
  42109. + [\\/$]*) false;;
  42110. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  42111. + esac ||
  42112. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  42113. + esac
  42114. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  42115. + as_fn_append ac_file_inputs " '$ac_f'"
  42116. + done
  42117. -cat >conftest.$ac_ext <<_ACEOF
  42118. -/* confdefs.h. */
  42119. -_ACEOF
  42120. -cat confdefs.h >>conftest.$ac_ext
  42121. -cat >>conftest.$ac_ext <<_ACEOF
  42122. -/* end confdefs.h. */
  42123. -$ac_includes_default
  42124. -int
  42125. -main ()
  42126. -{
  42127. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  42128. -test_array [0] = 0
  42129. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  42130. + # use $as_me), people would be surprised to read:
  42131. + # /* config.h. Generated by config.status. */
  42132. + configure_input='Generated from '`
  42133. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  42134. + `' by configure.'
  42135. + if test x"$ac_file" != x-; then
  42136. + configure_input="$ac_file. $configure_input"
  42137. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  42138. +$as_echo "$as_me: creating $ac_file" >&6;}
  42139. + fi
  42140. + # Neutralize special characters interpreted by sed in replacement strings.
  42141. + case $configure_input in #(
  42142. + *\&* | *\|* | *\\* )
  42143. + ac_sed_conf_input=`$as_echo "$configure_input" |
  42144. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  42145. + *) ac_sed_conf_input=$configure_input;;
  42146. + esac
  42147. - ;
  42148. - return 0;
  42149. -}
  42150. + case $ac_tag in
  42151. + *:-:* | *:-) cat >"$tmp/stdin" \
  42152. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  42153. + esac
  42154. + ;;
  42155. + esac
  42156. +
  42157. + ac_dir=`$as_dirname -- "$ac_file" ||
  42158. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42159. + X"$ac_file" : 'X\(//\)[^/]' \| \
  42160. + X"$ac_file" : 'X\(//\)$' \| \
  42161. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  42162. +$as_echo X"$ac_file" |
  42163. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42164. + s//\1/
  42165. + q
  42166. + }
  42167. + /^X\(\/\/\)[^/].*/{
  42168. + s//\1/
  42169. + q
  42170. + }
  42171. + /^X\(\/\/\)$/{
  42172. + s//\1/
  42173. + q
  42174. + }
  42175. + /^X\(\/\).*/{
  42176. + s//\1/
  42177. + q
  42178. + }
  42179. + s/.*/./; q'`
  42180. + as_dir="$ac_dir"; as_fn_mkdir_p
  42181. + ac_builddir=.
  42182. +
  42183. +case "$ac_dir" in
  42184. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42185. +*)
  42186. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  42187. + # A ".." for each directory in $ac_dir_suffix.
  42188. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  42189. + case $ac_top_builddir_sub in
  42190. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  42191. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  42192. + esac ;;
  42193. +esac
  42194. +ac_abs_top_builddir=$ac_pwd
  42195. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  42196. +# for backward compatibility:
  42197. +ac_top_builddir=$ac_top_build_prefix
  42198. +
  42199. +case $srcdir in
  42200. + .) # We are building in place.
  42201. + ac_srcdir=.
  42202. + ac_top_srcdir=$ac_top_builddir_sub
  42203. + ac_abs_top_srcdir=$ac_pwd ;;
  42204. + [\\/]* | ?:[\\/]* ) # Absolute name.
  42205. + ac_srcdir=$srcdir$ac_dir_suffix;
  42206. + ac_top_srcdir=$srcdir
  42207. + ac_abs_top_srcdir=$srcdir ;;
  42208. + *) # Relative name.
  42209. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  42210. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  42211. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  42212. +esac
  42213. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  42214. +
  42215. +
  42216. + case $ac_mode in
  42217. + :F)
  42218. + #
  42219. + # CONFIG_FILE
  42220. + #
  42221. +
  42222. + case $INSTALL in
  42223. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  42224. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  42225. + esac
  42226. + ac_MKDIR_P=$MKDIR_P
  42227. + case $MKDIR_P in
  42228. + [\\/$]* | ?:[\\/]* ) ;;
  42229. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  42230. + esac
  42231. _ACEOF
  42232. -rm -f conftest.$ac_objext
  42233. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42234. - (eval $ac_compile) 2>conftest.er1
  42235. - ac_status=$?
  42236. - grep -v '^ *+' conftest.er1 >conftest.err
  42237. - rm -f conftest.er1
  42238. - cat conftest.err >&5
  42239. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42240. - (exit $ac_status); } &&
  42241. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42242. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42243. - (eval $ac_try) 2>&5
  42244. - ac_status=$?
  42245. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42246. - (exit $ac_status); }; } &&
  42247. - { ac_try='test -s conftest.$ac_objext'
  42248. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42249. - (eval $ac_try) 2>&5
  42250. - ac_status=$?
  42251. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42252. - (exit $ac_status); }; }; then
  42253. - ac_hi=-1 ac_mid=-1
  42254. - while :; do
  42255. - cat >conftest.$ac_ext <<_ACEOF
  42256. -/* confdefs.h. */
  42257. +
  42258. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42259. +# If the template does not know about datarootdir, expand it.
  42260. +# FIXME: This hack should be removed a few years after 2.60.
  42261. +ac_datarootdir_hack=; ac_datarootdir_seen=
  42262. +ac_sed_dataroot='
  42263. +/datarootdir/ {
  42264. + p
  42265. + q
  42266. +}
  42267. +/@datadir@/p
  42268. +/@docdir@/p
  42269. +/@infodir@/p
  42270. +/@localedir@/p
  42271. +/@mandir@/p'
  42272. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  42273. +*datarootdir*) ac_datarootdir_seen=yes;;
  42274. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  42275. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  42276. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  42277. +_ACEOF
  42278. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42279. + ac_datarootdir_hack='
  42280. + s&@datadir@&$datadir&g
  42281. + s&@docdir@&$docdir&g
  42282. + s&@infodir@&$infodir&g
  42283. + s&@localedir@&$localedir&g
  42284. + s&@mandir@&$mandir&g
  42285. + s&\\\${datarootdir}&$datarootdir&g' ;;
  42286. +esac
  42287. _ACEOF
  42288. -cat confdefs.h >>conftest.$ac_ext
  42289. -cat >>conftest.$ac_ext <<_ACEOF
  42290. -/* end confdefs.h. */
  42291. -$ac_includes_default
  42292. -int
  42293. -main ()
  42294. -{
  42295. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  42296. -test_array [0] = 0
  42297. - ;
  42298. - return 0;
  42299. -}
  42300. +# Neutralize VPATH when `$srcdir' = `.'.
  42301. +# Shell code in configure.ac might set extrasub.
  42302. +# FIXME: do we really want to maintain this feature?
  42303. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42304. +ac_sed_extra="$ac_vpsub
  42305. +$extrasub
  42306. _ACEOF
  42307. -rm -f conftest.$ac_objext
  42308. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42309. - (eval $ac_compile) 2>conftest.er1
  42310. - ac_status=$?
  42311. - grep -v '^ *+' conftest.er1 >conftest.err
  42312. - rm -f conftest.er1
  42313. - cat conftest.err >&5
  42314. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42315. - (exit $ac_status); } &&
  42316. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42317. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42318. - (eval $ac_try) 2>&5
  42319. - ac_status=$?
  42320. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42321. - (exit $ac_status); }; } &&
  42322. - { ac_try='test -s conftest.$ac_objext'
  42323. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42324. - (eval $ac_try) 2>&5
  42325. - ac_status=$?
  42326. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42327. - (exit $ac_status); }; }; then
  42328. - ac_lo=$ac_mid; break
  42329. -else
  42330. - echo "$as_me: failed program was:" >&5
  42331. -sed 's/^/| /' conftest.$ac_ext >&5
  42332. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42333. +:t
  42334. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  42335. +s|@configure_input@|$ac_sed_conf_input|;t t
  42336. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  42337. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  42338. +s&@srcdir@&$ac_srcdir&;t t
  42339. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  42340. +s&@top_srcdir@&$ac_top_srcdir&;t t
  42341. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  42342. +s&@builddir@&$ac_builddir&;t t
  42343. +s&@abs_builddir@&$ac_abs_builddir&;t t
  42344. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  42345. +s&@INSTALL@&$ac_INSTALL&;t t
  42346. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  42347. +$ac_datarootdir_hack
  42348. +"
  42349. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  42350. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42351. +
  42352. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  42353. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  42354. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  42355. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42356. +which seems to be undefined. Please make sure it is defined." >&5
  42357. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  42358. +which seems to be undefined. Please make sure it is defined." >&2;}
  42359. -ac_hi=`expr '(' $ac_mid ')' - 1`
  42360. - if test $ac_mid -le $ac_hi; then
  42361. - ac_lo= ac_hi=
  42362. - break
  42363. - fi
  42364. - ac_mid=`expr 2 '*' $ac_mid`
  42365. -fi
  42366. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42367. - done
  42368. -else
  42369. - echo "$as_me: failed program was:" >&5
  42370. -sed 's/^/| /' conftest.$ac_ext >&5
  42371. + rm -f "$tmp/stdin"
  42372. + case $ac_file in
  42373. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  42374. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  42375. + esac \
  42376. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42377. + ;;
  42378. + :H)
  42379. + #
  42380. + # CONFIG_HEADER
  42381. + #
  42382. + if test x"$ac_file" != x-; then
  42383. + {
  42384. + $as_echo "/* $configure_input */" \
  42385. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  42386. + } >"$tmp/config.h" \
  42387. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42388. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  42389. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  42390. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  42391. + else
  42392. + rm -f "$ac_file"
  42393. + mv "$tmp/config.h" "$ac_file" \
  42394. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  42395. + fi
  42396. + else
  42397. + $as_echo "/* $configure_input */" \
  42398. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  42399. + || as_fn_error "could not create -" "$LINENO" 5
  42400. + fi
  42401. +# Compute "$ac_file"'s index in $config_headers.
  42402. +_am_arg="$ac_file"
  42403. +_am_stamp_count=1
  42404. +for _am_header in $config_headers :; do
  42405. + case $_am_header in
  42406. + $_am_arg | $_am_arg:* )
  42407. + break ;;
  42408. + * )
  42409. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  42410. + esac
  42411. +done
  42412. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  42413. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42414. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  42415. + X"$_am_arg" : 'X\(//\)$' \| \
  42416. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  42417. +$as_echo X"$_am_arg" |
  42418. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42419. + s//\1/
  42420. + q
  42421. + }
  42422. + /^X\(\/\/\)[^/].*/{
  42423. + s//\1/
  42424. + q
  42425. + }
  42426. + /^X\(\/\/\)$/{
  42427. + s//\1/
  42428. + q
  42429. + }
  42430. + /^X\(\/\).*/{
  42431. + s//\1/
  42432. + q
  42433. + }
  42434. + s/.*/./; q'`/stamp-h$_am_stamp_count
  42435. + ;;
  42436. -ac_lo= ac_hi=
  42437. -fi
  42438. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42439. -fi
  42440. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42441. -# Binary search between lo and hi bounds.
  42442. -while test "x$ac_lo" != "x$ac_hi"; do
  42443. - ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  42444. - cat >conftest.$ac_ext <<_ACEOF
  42445. -/* confdefs.h. */
  42446. -_ACEOF
  42447. -cat confdefs.h >>conftest.$ac_ext
  42448. -cat >>conftest.$ac_ext <<_ACEOF
  42449. -/* end confdefs.h. */
  42450. -$ac_includes_default
  42451. -int
  42452. -main ()
  42453. -{
  42454. -static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  42455. -test_array [0] = 0
  42456. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  42457. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  42458. + ;;
  42459. + esac
  42460. - ;
  42461. - return 0;
  42462. +
  42463. + case $ac_file$ac_mode in
  42464. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  42465. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  42466. + # are listed without --file. Let's play safe and only enable the eval
  42467. + # if we detect the quoting.
  42468. + case $CONFIG_FILES in
  42469. + *\'*) eval set x "$CONFIG_FILES" ;;
  42470. + *) set x $CONFIG_FILES ;;
  42471. + esac
  42472. + shift
  42473. + for mf
  42474. + do
  42475. + # Strip MF so we end up with the name of the file.
  42476. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  42477. + # Check whether this is an Automake generated Makefile or not.
  42478. + # We used to match only the files named `Makefile.in', but
  42479. + # some people rename them; so instead we look at the file content.
  42480. + # Grep'ing the first line is not enough: some people post-process
  42481. + # each Makefile.in and add a new line on top of each file to say so.
  42482. + # Grep'ing the whole file is not good either: AIX grep has a line
  42483. + # limit of 2048, but all sed's we know have understand at least 4000.
  42484. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  42485. + dirpart=`$as_dirname -- "$mf" ||
  42486. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42487. + X"$mf" : 'X\(//\)[^/]' \| \
  42488. + X"$mf" : 'X\(//\)$' \| \
  42489. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  42490. +$as_echo X"$mf" |
  42491. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42492. + s//\1/
  42493. + q
  42494. + }
  42495. + /^X\(\/\/\)[^/].*/{
  42496. + s//\1/
  42497. + q
  42498. + }
  42499. + /^X\(\/\/\)$/{
  42500. + s//\1/
  42501. + q
  42502. + }
  42503. + /^X\(\/\).*/{
  42504. + s//\1/
  42505. + q
  42506. + }
  42507. + s/.*/./; q'`
  42508. + else
  42509. + continue
  42510. + fi
  42511. + # Extract the definition of DEPDIR, am__include, and am__quote
  42512. + # from the Makefile without running `make'.
  42513. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  42514. + test -z "$DEPDIR" && continue
  42515. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  42516. + test -z "am__include" && continue
  42517. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  42518. + # When using ansi2knr, U may be empty or an underscore; expand it
  42519. + U=`sed -n 's/^U = //p' < "$mf"`
  42520. + # Find all dependency output files, they are included files with
  42521. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  42522. + # simplest approach to changing $(DEPDIR) to its actual value in the
  42523. + # expansion.
  42524. + for file in `sed -n "
  42525. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  42526. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  42527. + # Make sure the directory exists.
  42528. + test -f "$dirpart/$file" && continue
  42529. + fdir=`$as_dirname -- "$file" ||
  42530. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  42531. + X"$file" : 'X\(//\)[^/]' \| \
  42532. + X"$file" : 'X\(//\)$' \| \
  42533. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  42534. +$as_echo X"$file" |
  42535. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  42536. + s//\1/
  42537. + q
  42538. + }
  42539. + /^X\(\/\/\)[^/].*/{
  42540. + s//\1/
  42541. + q
  42542. + }
  42543. + /^X\(\/\/\)$/{
  42544. + s//\1/
  42545. + q
  42546. + }
  42547. + /^X\(\/\).*/{
  42548. + s//\1/
  42549. + q
  42550. + }
  42551. + s/.*/./; q'`
  42552. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  42553. + # echo "creating $dirpart/$file"
  42554. + echo '# dummy' > "$dirpart/$file"
  42555. + done
  42556. + done
  42557. }
  42558. -_ACEOF
  42559. -rm -f conftest.$ac_objext
  42560. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42561. - (eval $ac_compile) 2>conftest.er1
  42562. - ac_status=$?
  42563. - grep -v '^ *+' conftest.er1 >conftest.err
  42564. - rm -f conftest.er1
  42565. - cat conftest.err >&5
  42566. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42567. - (exit $ac_status); } &&
  42568. - { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  42569. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42570. - (eval $ac_try) 2>&5
  42571. - ac_status=$?
  42572. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42573. - (exit $ac_status); }; } &&
  42574. - { ac_try='test -s conftest.$ac_objext'
  42575. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42576. - (eval $ac_try) 2>&5
  42577. - ac_status=$?
  42578. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42579. - (exit $ac_status); }; }; then
  42580. - ac_hi=$ac_mid
  42581. -else
  42582. - echo "$as_me: failed program was:" >&5
  42583. -sed 's/^/| /' conftest.$ac_ext >&5
  42584. + ;;
  42585. + "libtool":C)
  42586. -ac_lo=`expr '(' $ac_mid ')' + 1`
  42587. -fi
  42588. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42589. -done
  42590. -case $ac_lo in
  42591. -?*) ac_cv_sizeof_long_long=$ac_lo;;
  42592. -'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  42593. -See \`config.log' for more details." >&5
  42594. -echo "$as_me: error: cannot compute sizeof (long long), 77
  42595. -See \`config.log' for more details." >&2;}
  42596. - { (exit 1); exit 1; }; } ;;
  42597. -esac
  42598. -else
  42599. - if test "$cross_compiling" = yes; then
  42600. - { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  42601. -echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  42602. - { (exit 1); exit 1; }; }
  42603. -else
  42604. - cat >conftest.$ac_ext <<_ACEOF
  42605. -/* confdefs.h. */
  42606. -_ACEOF
  42607. -cat confdefs.h >>conftest.$ac_ext
  42608. -cat >>conftest.$ac_ext <<_ACEOF
  42609. -/* end confdefs.h. */
  42610. -$ac_includes_default
  42611. -long longval () { return (long) (sizeof (long long)); }
  42612. -unsigned long ulongval () { return (long) (sizeof (long long)); }
  42613. -#include <stdio.h>
  42614. -#include <stdlib.h>
  42615. -int
  42616. -main ()
  42617. -{
  42618. + # See if we are running on zsh, and set the options which allow our
  42619. + # commands through without removal of \ escapes.
  42620. + if test -n "${ZSH_VERSION+set}" ; then
  42621. + setopt NO_GLOB_SUBST
  42622. + fi
  42623. +
  42624. + cfgfile="${ofile}T"
  42625. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  42626. + $RM "$cfgfile"
  42627. +
  42628. + cat <<_LT_EOF >> "$cfgfile"
  42629. +#! $SHELL
  42630. - FILE *f = fopen ("conftest.val", "w");
  42631. - if (! f)
  42632. - exit (1);
  42633. - if (((long) (sizeof (long long))) < 0)
  42634. - {
  42635. - long i = longval ();
  42636. - if (i != ((long) (sizeof (long long))))
  42637. - exit (1);
  42638. - fprintf (f, "%ld\n", i);
  42639. - }
  42640. - else
  42641. - {
  42642. - unsigned long i = ulongval ();
  42643. - if (i != ((long) (sizeof (long long))))
  42644. - exit (1);
  42645. - fprintf (f, "%lu\n", i);
  42646. - }
  42647. - exit (ferror (f) || fclose (f) != 0);
  42648. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  42649. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  42650. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  42651. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  42652. +#
  42653. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  42654. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  42655. +# Written by Gordon Matzigkeit, 1996
  42656. +#
  42657. +# This file is part of GNU Libtool.
  42658. +#
  42659. +# GNU Libtool is free software; you can redistribute it and/or
  42660. +# modify it under the terms of the GNU General Public License as
  42661. +# published by the Free Software Foundation; either version 2 of
  42662. +# the License, or (at your option) any later version.
  42663. +#
  42664. +# As a special exception to the GNU General Public License,
  42665. +# if you distribute this file as part of a program or library that
  42666. +# is built using GNU Libtool, you may include this file under the
  42667. +# same distribution terms that you use for the rest of that program.
  42668. +#
  42669. +# GNU Libtool is distributed in the hope that it will be useful,
  42670. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  42671. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  42672. +# GNU General Public License for more details.
  42673. +#
  42674. +# You should have received a copy of the GNU General Public License
  42675. +# along with GNU Libtool; see the file COPYING. If not, a copy
  42676. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  42677. +# obtained by writing to the Free Software Foundation, Inc.,
  42678. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  42679. - ;
  42680. - return 0;
  42681. -}
  42682. -_ACEOF
  42683. -rm -f conftest$ac_exeext
  42684. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42685. - (eval $ac_link) 2>&5
  42686. - ac_status=$?
  42687. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42688. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42689. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42690. - (eval $ac_try) 2>&5
  42691. - ac_status=$?
  42692. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42693. - (exit $ac_status); }; }; then
  42694. - ac_cv_sizeof_long_long=`cat conftest.val`
  42695. -else
  42696. - echo "$as_me: program exited with status $ac_status" >&5
  42697. -echo "$as_me: failed program was:" >&5
  42698. -sed 's/^/| /' conftest.$ac_ext >&5
  42699. -( exit $ac_status )
  42700. -{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  42701. -See \`config.log' for more details." >&5
  42702. -echo "$as_me: error: cannot compute sizeof (long long), 77
  42703. -See \`config.log' for more details." >&2;}
  42704. - { (exit 1); exit 1; }; }
  42705. -fi
  42706. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42707. -fi
  42708. -fi
  42709. -rm -f conftest.val
  42710. -else
  42711. - ac_cv_sizeof_long_long=0
  42712. -fi
  42713. -fi
  42714. -echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  42715. -echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  42716. -cat >>confdefs.h <<_ACEOF
  42717. -#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  42718. -_ACEOF
  42719. +# The names of the tagged configurations supported by this script.
  42720. +available_tags=""
  42721. +# ### BEGIN LIBTOOL CONFIG
  42722. +# Which release of libtool.m4 was used?
  42723. +macro_version=$macro_version
  42724. +macro_revision=$macro_revision
  42725. +# Whether or not to build shared libraries.
  42726. +build_libtool_libs=$enable_shared
  42727. -if test x$has_int16_t = "xyes" ; then
  42728. - SIZE16="int16_t"
  42729. -else
  42730. - case 2 in
  42731. - $ac_cv_sizeof_short) SIZE16="short";;
  42732. - $ac_cv_sizeof_int) SIZE16="int";;
  42733. - esac
  42734. -fi
  42735. +# Whether or not to build static libraries.
  42736. +build_old_libs=$enable_static
  42737. -if test x$has_int32_t = "xyes" ; then
  42738. - SIZE32="int32_t"
  42739. -else
  42740. - case 4 in
  42741. - $ac_cv_sizeof_short) SIZE32="short";;
  42742. - $ac_cv_sizeof_int) SIZE32="int";;
  42743. - $ac_cv_sizeof_long) SIZE32="long";;
  42744. - esac
  42745. -fi
  42746. +# What type of objects to build.
  42747. +pic_mode=$pic_mode
  42748. -if test x$has_uint32_t = "xyes" ; then
  42749. - USIZE32="uint32_t"
  42750. -else
  42751. - if test x$has_u_int32_t = "xyes" ; then
  42752. - USIZE32="u_int32_t"
  42753. - else
  42754. - case 4 in
  42755. - $ac_cv_sizeof_short) USIZE32="unsigned short";;
  42756. - $ac_cv_sizeof_int) USIZE32="unsigned int";;
  42757. - $ac_cv_sizeof_long) USIZE32="unsigned long";;
  42758. - esac
  42759. - fi
  42760. -fi
  42761. +# Whether or not to optimize for fast installation.
  42762. +fast_install=$enable_fast_install
  42763. -if test x$has_uint16_t = "xyes" ; then
  42764. - USIZE16="uint16_t"
  42765. -else
  42766. - if test x$has_u_int16_t = "xyes" ; then
  42767. - USIZE16="u_int16_t"
  42768. - else
  42769. - case 2 in
  42770. - $ac_cv_sizeof_short) USIZE16="unsigned short";;
  42771. - $ac_cv_sizeof_int) USIZE16="unsigned int";;
  42772. - $ac_cv_sizeof_long) USIZE16="unsigned long";;
  42773. - esac
  42774. - fi
  42775. -fi
  42776. +# The host system.
  42777. +host_alias=$host_alias
  42778. +host=$host
  42779. +host_os=$host_os
  42780. -if test x$has_int64_t = "xyes" ; then
  42781. - SIZE64="int64_t"
  42782. -else
  42783. -case 8 in
  42784. - $ac_cv_sizeof_int) SIZE64="int";;
  42785. - $ac_cv_sizeof_long) SIZE64="long";;
  42786. - $ac_cv_sizeof_long_long) SIZE64="long long";;
  42787. -esac
  42788. -fi
  42789. +# The build system.
  42790. +build_alias=$build_alias
  42791. +build=$build
  42792. +build_os=$build_os
  42793. -if test -z "$SIZE16"; then
  42794. - { { echo "$as_me:$LINENO: error: No 16 bit type found on this platform!" >&5
  42795. -echo "$as_me: error: No 16 bit type found on this platform!" >&2;}
  42796. - { (exit 1); exit 1; }; }
  42797. -fi
  42798. -if test -z "$USIZE16"; then
  42799. - { { echo "$as_me:$LINENO: error: No unsigned 16 bit type found on this platform!" >&5
  42800. -echo "$as_me: error: No unsigned 16 bit type found on this platform!" >&2;}
  42801. - { (exit 1); exit 1; }; }
  42802. -fi
  42803. -if test -z "$SIZE32"; then
  42804. - { { echo "$as_me:$LINENO: error: No 32 bit type found on this platform!" >&5
  42805. -echo "$as_me: error: No 32 bit type found on this platform!" >&2;}
  42806. - { (exit 1); exit 1; }; }
  42807. -fi
  42808. -if test -z "$USIZE32"; then
  42809. - { { echo "$as_me:$LINENO: error: No unsigned 32 bit type found on this platform!" >&5
  42810. -echo "$as_me: error: No unsigned 32 bit type found on this platform!" >&2;}
  42811. - { (exit 1); exit 1; }; }
  42812. -fi
  42813. -if test -z "$SIZE64"; then
  42814. - { echo "$as_me:$LINENO: WARNING: No 64 bit type found on this platform!" >&5
  42815. -echo "$as_me: WARNING: No 64 bit type found on this platform!" >&2;}
  42816. -fi
  42817. +# A sed program that does not truncate output.
  42818. +SED=$lt_SED
  42819. -echo "$as_me:$LINENO: checking for working memcmp" >&5
  42820. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  42821. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  42822. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42823. -else
  42824. - if test "$cross_compiling" = yes; then
  42825. - ac_cv_func_memcmp_working=no
  42826. -else
  42827. - cat >conftest.$ac_ext <<_ACEOF
  42828. -/* confdefs.h. */
  42829. -_ACEOF
  42830. -cat confdefs.h >>conftest.$ac_ext
  42831. -cat >>conftest.$ac_ext <<_ACEOF
  42832. -/* end confdefs.h. */
  42833. -$ac_includes_default
  42834. -int
  42835. -main ()
  42836. -{
  42837. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  42838. +Xsed="\$SED -e 1s/^X//"
  42839. - /* Some versions of memcmp are not 8-bit clean. */
  42840. - char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  42841. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  42842. - exit (1);
  42843. +# A grep program that handles long lines.
  42844. +GREP=$lt_GREP
  42845. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  42846. - or more and with at least one buffer not starting on a 4-byte boundary.
  42847. - William Lewis provided this test program. */
  42848. - {
  42849. - char foo[21];
  42850. - char bar[21];
  42851. - int i;
  42852. - for (i = 0; i < 4; i++)
  42853. - {
  42854. - char *a = foo + i;
  42855. - char *b = bar + i;
  42856. - strcpy (a, "--------01111111");
  42857. - strcpy (b, "--------10000000");
  42858. - if (memcmp (a, b, 16) >= 0)
  42859. - exit (1);
  42860. - }
  42861. - exit (0);
  42862. - }
  42863. +# An ERE matcher.
  42864. +EGREP=$lt_EGREP
  42865. - ;
  42866. - return 0;
  42867. -}
  42868. -_ACEOF
  42869. -rm -f conftest$ac_exeext
  42870. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42871. - (eval $ac_link) 2>&5
  42872. - ac_status=$?
  42873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42874. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42875. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42876. - (eval $ac_try) 2>&5
  42877. - ac_status=$?
  42878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42879. - (exit $ac_status); }; }; then
  42880. - ac_cv_func_memcmp_working=yes
  42881. -else
  42882. - echo "$as_me: program exited with status $ac_status" >&5
  42883. -echo "$as_me: failed program was:" >&5
  42884. -sed 's/^/| /' conftest.$ac_ext >&5
  42885. +# A literal string matcher.
  42886. +FGREP=$lt_FGREP
  42887. -( exit $ac_status )
  42888. -ac_cv_func_memcmp_working=no
  42889. -fi
  42890. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42891. -fi
  42892. -fi
  42893. -echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  42894. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  42895. -test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  42896. - "memcmp.$ac_objext" | \
  42897. - *" memcmp.$ac_objext" | \
  42898. - "memcmp.$ac_objext "* | \
  42899. - *" memcmp.$ac_objext "* ) ;;
  42900. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  42901. -esac
  42902. +# A BSD- or MS-compatible name lister.
  42903. +NM=$lt_NM
  42904. +# Whether we need soft or hard links.
  42905. +LN_S=$lt_LN_S
  42906. +# What is the maximum length of a command?
  42907. +max_cmd_len=$max_cmd_len
  42908. +# Object file suffix (normally "o").
  42909. +objext=$ac_objext
  42910. +# Executable file suffix (normally "").
  42911. +exeext=$exeext
  42912. +# whether the shell understands "unset".
  42913. +lt_unset=$lt_unset
  42914. +# turn spaces into newlines.
  42915. +SP2NL=$lt_lt_SP2NL
  42916. +# turn newlines into spaces.
  42917. +NL2SP=$lt_lt_NL2SP
  42918. +# How to create reloadable object files.
  42919. +reload_flag=$lt_reload_flag
  42920. +reload_cmds=$lt_reload_cmds
  42921. +# An object symbol dumper.
  42922. +OBJDUMP=$lt_OBJDUMP
  42923. +# Method to check whether dependent libraries are shared objects.
  42924. +deplibs_check_method=$lt_deplibs_check_method
  42925. +# Command to use when deplibs_check_method == "file_magic".
  42926. +file_magic_cmd=$lt_file_magic_cmd
  42927. +# The archiver.
  42928. +AR=$lt_AR
  42929. +AR_FLAGS=$lt_AR_FLAGS
  42930. +# A symbol stripping program.
  42931. +STRIP=$lt_STRIP
  42932. +# Commands used to install an old-style archive.
  42933. +RANLIB=$lt_RANLIB
  42934. +old_postinstall_cmds=$lt_old_postinstall_cmds
  42935. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  42936. +# A C compiler.
  42937. +LTCC=$lt_CC
  42938. - ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile doc/libogg/Makefile include/Makefile include/ogg/Makefile include/ogg/config_types.h win32/Makefile libogg.spec ogg.pc ogg-uninstalled.pc"
  42939. -cat >confcache <<\_ACEOF
  42940. -# This file is a shell script that caches the results of configure
  42941. -# tests run on this system so they can be shared between configure
  42942. -# scripts and configure runs, see configure's option --config-cache.
  42943. -# It is not useful on other systems. If it contains results you don't
  42944. -# want to keep, you may remove or edit it.
  42945. -#
  42946. -# config.status only pays attention to the cache file if you give it
  42947. -# the --recheck option to rerun configure.
  42948. -#
  42949. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  42950. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  42951. -# following values.
  42952. +# LTCC compiler flags.
  42953. +LTCFLAGS=$lt_CFLAGS
  42954. -_ACEOF
  42955. +# Take the output of nm and produce a listing of raw symbols and C names.
  42956. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  42957. -# The following way of writing the cache mishandles newlines in values,
  42958. -# but we know of no workaround that is simple, portable, and efficient.
  42959. -# So, don't put newlines in cache variables' values.
  42960. -# Ultrix sh set writes to stderr and can't be redirected directly,
  42961. -# and sets the high bit in the cache file unless we assign to the vars.
  42962. -{
  42963. - (set) 2>&1 |
  42964. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  42965. - *ac_space=\ *)
  42966. - # `set' does not quote correctly, so add quotes (double-quote
  42967. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  42968. - sed -n \
  42969. - "s/'/'\\\\''/g;
  42970. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  42971. - ;;
  42972. - *)
  42973. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  42974. - sed -n \
  42975. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  42976. - ;;
  42977. - esac;
  42978. -} |
  42979. - sed '
  42980. - t clear
  42981. - : clear
  42982. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  42983. - t end
  42984. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  42985. - : end' >>confcache
  42986. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  42987. - if test -w $cache_file; then
  42988. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  42989. - cat confcache >$cache_file
  42990. - else
  42991. - echo "not updating unwritable cache $cache_file"
  42992. - fi
  42993. -fi
  42994. -rm -f confcache
  42995. +# Transform the output of nm in a proper C declaration.
  42996. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  42997. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  42998. -# Let make expand exec_prefix.
  42999. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  43000. +# Transform the output of nm in a C name address pair.
  43001. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  43002. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  43003. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  43004. -# trailing colons and then remove the whole line if VPATH becomes empty
  43005. -# (actually we leave an empty line to preserve line numbers).
  43006. -if test "x$srcdir" = x.; then
  43007. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  43008. -s/:*\$(srcdir):*/:/;
  43009. -s/:*\${srcdir}:*/:/;
  43010. -s/:*@srcdir@:*/:/;
  43011. -s/^\([^=]*=[ ]*\):*/\1/;
  43012. -s/:*$//;
  43013. -s/^[^=]*=[ ]*$//;
  43014. -}'
  43015. -fi
  43016. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  43017. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  43018. -DEFS=-DHAVE_CONFIG_H
  43019. +# The name of the directory that contains temporary libtool files.
  43020. +objdir=$objdir
  43021. -ac_libobjs=
  43022. -ac_ltlibobjs=
  43023. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  43024. - # 1. Remove the extension, and $U if already installed.
  43025. - ac_i=`echo "$ac_i" |
  43026. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  43027. - # 2. Add them.
  43028. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  43029. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  43030. -done
  43031. -LIBOBJS=$ac_libobjs
  43032. +# Shell to use when invoking shell scripts.
  43033. +SHELL=$lt_SHELL
  43034. -LTLIBOBJS=$ac_ltlibobjs
  43035. +# An echo program that does not interpret backslashes.
  43036. +ECHO=$lt_ECHO
  43037. +# Used to examine libraries when file_magic_cmd begins with "file".
  43038. +MAGIC_CMD=$MAGIC_CMD
  43039. -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  43040. - { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
  43041. -Usually this means the macro was only invoked conditionally." >&5
  43042. -echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
  43043. -Usually this means the macro was only invoked conditionally." >&2;}
  43044. - { (exit 1); exit 1; }; }
  43045. -fi
  43046. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  43047. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  43048. -Usually this means the macro was only invoked conditionally." >&5
  43049. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  43050. -Usually this means the macro was only invoked conditionally." >&2;}
  43051. - { (exit 1); exit 1; }; }
  43052. -fi
  43053. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  43054. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  43055. -Usually this means the macro was only invoked conditionally." >&5
  43056. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  43057. -Usually this means the macro was only invoked conditionally." >&2;}
  43058. - { (exit 1); exit 1; }; }
  43059. -fi
  43060. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  43061. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  43062. -Usually this means the macro was only invoked conditionally." >&5
  43063. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  43064. -Usually this means the macro was only invoked conditionally." >&2;}
  43065. - { (exit 1); exit 1; }; }
  43066. -fi
  43067. +# Must we lock files when doing compilation?
  43068. +need_locks=$lt_need_locks
  43069. -: ${CONFIG_STATUS=./config.status}
  43070. -ac_clean_files_save=$ac_clean_files
  43071. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  43072. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  43073. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  43074. -cat >$CONFIG_STATUS <<_ACEOF
  43075. -#! $SHELL
  43076. -# Generated by $as_me.
  43077. -# Run this file to recreate the current configuration.
  43078. -# Compiler output produced by configure, useful for debugging
  43079. -# configure, is in config.log if it exists.
  43080. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  43081. +DSYMUTIL=$lt_DSYMUTIL
  43082. +
  43083. +# Tool to change global to local symbols on Mac OS X.
  43084. +NMEDIT=$lt_NMEDIT
  43085. +
  43086. +# Tool to manipulate fat objects and archives on Mac OS X.
  43087. +LIPO=$lt_LIPO
  43088. +
  43089. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  43090. +OTOOL=$lt_OTOOL
  43091. -debug=false
  43092. -ac_cs_recheck=false
  43093. -ac_cs_silent=false
  43094. -SHELL=\${CONFIG_SHELL-$SHELL}
  43095. -_ACEOF
  43096. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  43097. +OTOOL64=$lt_OTOOL64
  43098. -cat >>$CONFIG_STATUS <<\_ACEOF
  43099. -## --------------------- ##
  43100. -## M4sh Initialization. ##
  43101. -## --------------------- ##
  43102. +# Old archive suffix (normally "a").
  43103. +libext=$libext
  43104. -# Be Bourne compatible
  43105. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  43106. - emulate sh
  43107. - NULLCMD=:
  43108. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  43109. - # is contrary to our usage. Disable this feature.
  43110. - alias -g '${1+"$@"}'='"$@"'
  43111. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  43112. - set -o posix
  43113. -fi
  43114. -DUALCASE=1; export DUALCASE # for MKS sh
  43115. +# Shared library suffix (normally ".so").
  43116. +shrext_cmds=$lt_shrext_cmds
  43117. -# Support unset when possible.
  43118. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  43119. - as_unset=unset
  43120. -else
  43121. - as_unset=false
  43122. -fi
  43123. +# The commands to extract the exported symbol list from a shared archive.
  43124. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  43125. +# Variables whose values should be saved in libtool wrapper scripts and
  43126. +# restored at link time.
  43127. +variables_saved_for_relink=$lt_variables_saved_for_relink
  43128. -# Work around bugs in pre-3.0 UWIN ksh.
  43129. -$as_unset ENV MAIL MAILPATH
  43130. -PS1='$ '
  43131. -PS2='> '
  43132. -PS4='+ '
  43133. +# Do we need the "lib" prefix for modules?
  43134. +need_lib_prefix=$need_lib_prefix
  43135. -# NLS nuisances.
  43136. -for as_var in \
  43137. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  43138. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  43139. - LC_TELEPHONE LC_TIME
  43140. -do
  43141. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43142. - eval $as_var=C; export $as_var
  43143. - else
  43144. - $as_unset $as_var
  43145. - fi
  43146. -done
  43147. +# Do we need a version for libraries?
  43148. +need_version=$need_version
  43149. -# Required to use basename.
  43150. -if expr a : '\(a\)' >/dev/null 2>&1; then
  43151. - as_expr=expr
  43152. -else
  43153. - as_expr=false
  43154. -fi
  43155. +# Library versioning type.
  43156. +version_type=$version_type
  43157. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  43158. - as_basename=basename
  43159. -else
  43160. - as_basename=false
  43161. -fi
  43162. +# Shared library runtime path variable.
  43163. +runpath_var=$runpath_var
  43164. +# Shared library path variable.
  43165. +shlibpath_var=$shlibpath_var
  43166. -# Name of the executable.
  43167. -as_me=`$as_basename "$0" ||
  43168. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  43169. - X"$0" : 'X\(//\)$' \| \
  43170. - X"$0" : 'X\(/\)$' \| \
  43171. - . : '\(.\)' 2>/dev/null ||
  43172. -echo X/"$0" |
  43173. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  43174. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  43175. - /^X\/\(\/\).*/{ s//\1/; q; }
  43176. - s/.*/./; q'`
  43177. +# Is shlibpath searched before the hard-coded library search path?
  43178. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  43179. +# Format of library name prefix.
  43180. +libname_spec=$lt_libname_spec
  43181. -# PATH needs CR, and LINENO needs CR and PATH.
  43182. -# Avoid depending upon Character Ranges.
  43183. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  43184. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  43185. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  43186. -as_cr_digits='0123456789'
  43187. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  43188. +# List of archive names. First name is the real one, the rest are links.
  43189. +# The last name is the one that the linker finds with -lNAME
  43190. +library_names_spec=$lt_library_names_spec
  43191. -# The user is always right.
  43192. -if test "${PATH_SEPARATOR+set}" != set; then
  43193. - echo "#! /bin/sh" >conf$$.sh
  43194. - echo "exit 0" >>conf$$.sh
  43195. - chmod +x conf$$.sh
  43196. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  43197. - PATH_SEPARATOR=';'
  43198. - else
  43199. - PATH_SEPARATOR=:
  43200. - fi
  43201. - rm -f conf$$.sh
  43202. -fi
  43203. +# The coded name of the library, if different from the real name.
  43204. +soname_spec=$lt_soname_spec
  43205. +# Command to use after installation of a shared archive.
  43206. +postinstall_cmds=$lt_postinstall_cmds
  43207. - as_lineno_1=$LINENO
  43208. - as_lineno_2=$LINENO
  43209. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  43210. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43211. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  43212. - # Find who we are. Look in the path if we contain no path at all
  43213. - # relative or not.
  43214. - case $0 in
  43215. - *[\\/]* ) as_myself=$0 ;;
  43216. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43217. -for as_dir in $PATH
  43218. -do
  43219. - IFS=$as_save_IFS
  43220. - test -z "$as_dir" && as_dir=.
  43221. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  43222. -done
  43223. +# Command to use after uninstallation of a shared archive.
  43224. +postuninstall_cmds=$lt_postuninstall_cmds
  43225. - ;;
  43226. - esac
  43227. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  43228. - # in which case we are not to be found in the path.
  43229. - if test "x$as_myself" = x; then
  43230. - as_myself=$0
  43231. - fi
  43232. - if test ! -f "$as_myself"; then
  43233. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  43234. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  43235. - { (exit 1); exit 1; }; }
  43236. - fi
  43237. - case $CONFIG_SHELL in
  43238. - '')
  43239. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  43240. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  43241. -do
  43242. - IFS=$as_save_IFS
  43243. - test -z "$as_dir" && as_dir=.
  43244. - for as_base in sh bash ksh sh5; do
  43245. - case $as_dir in
  43246. - /*)
  43247. - if ("$as_dir/$as_base" -c '
  43248. - as_lineno_1=$LINENO
  43249. - as_lineno_2=$LINENO
  43250. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  43251. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  43252. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  43253. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  43254. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  43255. - CONFIG_SHELL=$as_dir/$as_base
  43256. - export CONFIG_SHELL
  43257. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  43258. - fi;;
  43259. - esac
  43260. - done
  43261. -done
  43262. -;;
  43263. - esac
  43264. +# Commands used to finish a libtool library installation in a directory.
  43265. +finish_cmds=$lt_finish_cmds
  43266. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  43267. - # uniformly replaced by the line number. The first 'sed' inserts a
  43268. - # line-number line before each line; the second 'sed' does the real
  43269. - # work. The second script uses 'N' to pair each line-number line
  43270. - # with the numbered line, and appends trailing '-' during
  43271. - # substitution so that $LINENO is not a special case at line end.
  43272. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  43273. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  43274. - sed '=' <$as_myself |
  43275. - sed '
  43276. - N
  43277. - s,$,-,
  43278. - : loop
  43279. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  43280. - t loop
  43281. - s,-$,,
  43282. - s,^['$as_cr_digits']*\n,,
  43283. - ' >$as_me.lineno &&
  43284. - chmod +x $as_me.lineno ||
  43285. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  43286. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  43287. - { (exit 1); exit 1; }; }
  43288. +# As "finish_cmds", except a single script fragment to be evaled but
  43289. +# not shown.
  43290. +finish_eval=$lt_finish_eval
  43291. - # Don't try to exec as it changes $[0], causing all sort of problems
  43292. - # (the dirname of $[0] is not the place where we might find the
  43293. - # original and so on. Autoconf is especially sensible to this).
  43294. - . ./$as_me.lineno
  43295. - # Exit status is that of the last command.
  43296. - exit
  43297. -}
  43298. +# Whether we should hardcode library paths into libraries.
  43299. +hardcode_into_libs=$hardcode_into_libs
  43300. +# Compile-time system search path for libraries.
  43301. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  43302. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  43303. - *c*,-n*) ECHO_N= ECHO_C='
  43304. -' ECHO_T=' ' ;;
  43305. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  43306. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  43307. -esac
  43308. +# Run-time system search path for libraries.
  43309. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  43310. -if expr a : '\(a\)' >/dev/null 2>&1; then
  43311. - as_expr=expr
  43312. -else
  43313. - as_expr=false
  43314. -fi
  43315. +# Whether dlopen is supported.
  43316. +dlopen_support=$enable_dlopen
  43317. -rm -f conf$$ conf$$.exe conf$$.file
  43318. -echo >conf$$.file
  43319. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  43320. - # We could just check for DJGPP; but this test a) works b) is more generic
  43321. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  43322. - if test -f conf$$.exe; then
  43323. - # Don't use ln at all; we don't have any links
  43324. - as_ln_s='cp -p'
  43325. - else
  43326. - as_ln_s='ln -s'
  43327. - fi
  43328. -elif ln conf$$.file conf$$ 2>/dev/null; then
  43329. - as_ln_s=ln
  43330. -else
  43331. - as_ln_s='cp -p'
  43332. -fi
  43333. -rm -f conf$$ conf$$.exe conf$$.file
  43334. +# Whether dlopen of programs is supported.
  43335. +dlopen_self=$enable_dlopen_self
  43336. -if mkdir -p . 2>/dev/null; then
  43337. - as_mkdir_p=:
  43338. -else
  43339. - test -d ./-p && rmdir ./-p
  43340. - as_mkdir_p=false
  43341. -fi
  43342. +# Whether dlopen of statically linked programs is supported.
  43343. +dlopen_self_static=$enable_dlopen_self_static
  43344. -as_executable_p="test -f"
  43345. +# Commands to strip libraries.
  43346. +old_striplib=$lt_old_striplib
  43347. +striplib=$lt_striplib
  43348. -# Sed expression to map a string onto a valid CPP name.
  43349. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  43350. -# Sed expression to map a string onto a valid variable name.
  43351. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  43352. +# The linker used to build libraries.
  43353. +LD=$lt_LD
  43354. +# Commands used to build an old-style archive.
  43355. +old_archive_cmds=$lt_old_archive_cmds
  43356. -# IFS
  43357. -# We need space, tab and new line, in precisely that order.
  43358. -as_nl='
  43359. -'
  43360. -IFS=" $as_nl"
  43361. +# A language specific compiler.
  43362. +CC=$lt_compiler
  43363. -# CDPATH.
  43364. -$as_unset CDPATH
  43365. +# Is the compiler the GNU compiler?
  43366. +with_gcc=$GCC
  43367. -exec 6>&1
  43368. +# Compiler flag to turn off builtin functions.
  43369. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  43370. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  43371. -# report actual input values of CONFIG_FILES etc. instead of their
  43372. -# values after options handling. Logging --version etc. is OK.
  43373. -exec 5>>config.log
  43374. -{
  43375. - echo
  43376. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  43377. -## Running $as_me. ##
  43378. -_ASBOX
  43379. -} >&5
  43380. -cat >&5 <<_CSEOF
  43381. +# How to pass a linker flag through the compiler.
  43382. +wl=$lt_lt_prog_compiler_wl
  43383. -This file was extended by $as_me, which was
  43384. -generated by GNU Autoconf 2.59. Invocation command line was
  43385. +# Additional compiler flags for building library objects.
  43386. +pic_flag=$lt_lt_prog_compiler_pic
  43387. - CONFIG_FILES = $CONFIG_FILES
  43388. - CONFIG_HEADERS = $CONFIG_HEADERS
  43389. - CONFIG_LINKS = $CONFIG_LINKS
  43390. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  43391. - $ $0 $@
  43392. +# Compiler flag to prevent dynamic linking.
  43393. +link_static_flag=$lt_lt_prog_compiler_static
  43394. -_CSEOF
  43395. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  43396. -echo >&5
  43397. -_ACEOF
  43398. +# Does compiler simultaneously support -c and -o options?
  43399. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  43400. -# Files that config.status was made for.
  43401. -if test -n "$ac_config_files"; then
  43402. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  43403. -fi
  43404. +# Whether or not to add -lc for building shared libraries.
  43405. +build_libtool_need_lc=$archive_cmds_need_lc
  43406. -if test -n "$ac_config_headers"; then
  43407. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  43408. -fi
  43409. +# Whether or not to disallow shared libs when runtime libs are static.
  43410. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  43411. -if test -n "$ac_config_links"; then
  43412. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  43413. -fi
  43414. +# Compiler flag to allow reflexive dlopens.
  43415. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  43416. -if test -n "$ac_config_commands"; then
  43417. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  43418. -fi
  43419. +# Compiler flag to generate shared objects directly from archives.
  43420. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  43421. -cat >>$CONFIG_STATUS <<\_ACEOF
  43422. +# Whether the compiler copes with passing no objects directly.
  43423. +compiler_needs_object=$lt_compiler_needs_object
  43424. -ac_cs_usage="\
  43425. -\`$as_me' instantiates files from templates according to the
  43426. -current configuration.
  43427. +# Create an old-style archive from a shared archive.
  43428. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  43429. -Usage: $0 [OPTIONS] [FILE]...
  43430. +# Create a temporary old-style archive to link instead of a shared archive.
  43431. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  43432. - -h, --help print this help, then exit
  43433. - -V, --version print version number, then exit
  43434. - -q, --quiet do not print progress messages
  43435. - -d, --debug don't remove temporary files
  43436. - --recheck update $as_me by reconfiguring in the same conditions
  43437. - --file=FILE[:TEMPLATE]
  43438. - instantiate the configuration file FILE
  43439. - --header=FILE[:TEMPLATE]
  43440. - instantiate the configuration header FILE
  43441. +# Commands used to build a shared archive.
  43442. +archive_cmds=$lt_archive_cmds
  43443. +archive_expsym_cmds=$lt_archive_expsym_cmds
  43444. -Configuration files:
  43445. -$config_files
  43446. +# Commands used to build a loadable module if different from building
  43447. +# a shared archive.
  43448. +module_cmds=$lt_module_cmds
  43449. +module_expsym_cmds=$lt_module_expsym_cmds
  43450. -Configuration headers:
  43451. -$config_headers
  43452. +# Whether we are building with GNU ld or not.
  43453. +with_gnu_ld=$lt_with_gnu_ld
  43454. -Configuration commands:
  43455. -$config_commands
  43456. +# Flag that allows shared libraries with undefined symbols to be built.
  43457. +allow_undefined_flag=$lt_allow_undefined_flag
  43458. -Report bugs to <bug-autoconf@gnu.org>."
  43459. -_ACEOF
  43460. +# Flag that enforces no undefined symbols.
  43461. +no_undefined_flag=$lt_no_undefined_flag
  43462. -cat >>$CONFIG_STATUS <<_ACEOF
  43463. -ac_cs_version="\\
  43464. -config.status
  43465. -configured by $0, generated by GNU Autoconf 2.59,
  43466. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  43467. +# Flag to hardcode \$libdir into a binary during linking.
  43468. +# This must work even if \$libdir does not exist
  43469. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  43470. -Copyright (C) 2003 Free Software Foundation, Inc.
  43471. -This config.status script is free software; the Free Software Foundation
  43472. -gives unlimited permission to copy, distribute and modify it."
  43473. -srcdir=$srcdir
  43474. -INSTALL="$INSTALL"
  43475. -_ACEOF
  43476. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  43477. +# during linking. This must work even if \$libdir does not exist.
  43478. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  43479. -cat >>$CONFIG_STATUS <<\_ACEOF
  43480. -# If no file are specified by the user, then we need to provide default
  43481. -# value. By we need to know if files were specified by the user.
  43482. -ac_need_defaults=:
  43483. -while test $# != 0
  43484. -do
  43485. - case $1 in
  43486. - --*=*)
  43487. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  43488. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  43489. - ac_shift=:
  43490. - ;;
  43491. - -*)
  43492. - ac_option=$1
  43493. - ac_optarg=$2
  43494. - ac_shift=shift
  43495. - ;;
  43496. - *) # This is not an option, so the user has probably given explicit
  43497. - # arguments.
  43498. - ac_option=$1
  43499. - ac_need_defaults=false;;
  43500. - esac
  43501. +# Whether we need a single "-rpath" flag with a separated argument.
  43502. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  43503. - case $ac_option in
  43504. - # Handling of the options.
  43505. -_ACEOF
  43506. -cat >>$CONFIG_STATUS <<\_ACEOF
  43507. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  43508. - ac_cs_recheck=: ;;
  43509. - --version | --vers* | -V )
  43510. - echo "$ac_cs_version"; exit 0 ;;
  43511. - --he | --h)
  43512. - # Conflict between --help and --header
  43513. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  43514. -Try \`$0 --help' for more information." >&5
  43515. -echo "$as_me: error: ambiguous option: $1
  43516. -Try \`$0 --help' for more information." >&2;}
  43517. - { (exit 1); exit 1; }; };;
  43518. - --help | --hel | -h )
  43519. - echo "$ac_cs_usage"; exit 0 ;;
  43520. - --debug | --d* | -d )
  43521. - debug=: ;;
  43522. - --file | --fil | --fi | --f )
  43523. - $ac_shift
  43524. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  43525. - ac_need_defaults=false;;
  43526. - --header | --heade | --head | --hea )
  43527. - $ac_shift
  43528. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  43529. - ac_need_defaults=false;;
  43530. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  43531. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  43532. - ac_cs_silent=: ;;
  43533. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43534. +# DIR into the resulting binary.
  43535. +hardcode_direct=$hardcode_direct
  43536. - # This is an error.
  43537. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  43538. -Try \`$0 --help' for more information." >&5
  43539. -echo "$as_me: error: unrecognized option: $1
  43540. -Try \`$0 --help' for more information." >&2;}
  43541. - { (exit 1); exit 1; }; } ;;
  43542. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  43543. +# DIR into the resulting binary and the resulting library dependency is
  43544. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  43545. +# library is relocated.
  43546. +hardcode_direct_absolute=$hardcode_direct_absolute
  43547. +
  43548. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  43549. +# into the resulting binary.
  43550. +hardcode_minus_L=$hardcode_minus_L
  43551. - *) ac_config_targets="$ac_config_targets $1" ;;
  43552. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  43553. +# into the resulting binary.
  43554. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  43555. - esac
  43556. - shift
  43557. -done
  43558. +# Set to "yes" if building a shared library automatically hardcodes DIR
  43559. +# into the library and all subsequent libraries and executables linked
  43560. +# against it.
  43561. +hardcode_automatic=$hardcode_automatic
  43562. -ac_configure_extra_args=
  43563. +# Set to yes if linker adds runtime paths of dependent libraries
  43564. +# to runtime path list.
  43565. +inherit_rpath=$inherit_rpath
  43566. -if $ac_cs_silent; then
  43567. - exec 6>/dev/null
  43568. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  43569. -fi
  43570. +# Whether libtool must link a program against all its dependency libraries.
  43571. +link_all_deplibs=$link_all_deplibs
  43572. -_ACEOF
  43573. -cat >>$CONFIG_STATUS <<_ACEOF
  43574. -if \$ac_cs_recheck; then
  43575. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  43576. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  43577. -fi
  43578. +# Fix the shell variable \$srcfile for the compiler.
  43579. +fix_srcfile_path=$lt_fix_srcfile_path
  43580. -_ACEOF
  43581. +# Set to "yes" if exported symbols are required.
  43582. +always_export_symbols=$always_export_symbols
  43583. -cat >>$CONFIG_STATUS <<_ACEOF
  43584. -#
  43585. -# INIT-COMMANDS section.
  43586. -#
  43587. +# The commands to list exported symbols.
  43588. +export_symbols_cmds=$lt_export_symbols_cmds
  43589. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  43590. +# Symbols that should not be listed in the preloaded symbols.
  43591. +exclude_expsyms=$lt_exclude_expsyms
  43592. -_ACEOF
  43593. +# Symbols that must always be exported.
  43594. +include_expsyms=$lt_include_expsyms
  43595. +# Commands necessary for linking programs (against libraries) with templates.
  43596. +prelink_cmds=$lt_prelink_cmds
  43597. +# Specify filename containing input files.
  43598. +file_list_spec=$lt_file_list_spec
  43599. -cat >>$CONFIG_STATUS <<\_ACEOF
  43600. -for ac_config_target in $ac_config_targets
  43601. -do
  43602. - case "$ac_config_target" in
  43603. - # Handling of arguments.
  43604. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  43605. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  43606. - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  43607. - "doc/libogg/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/libogg/Makefile" ;;
  43608. - "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  43609. - "include/ogg/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/ogg/Makefile" ;;
  43610. - "include/ogg/config_types.h" ) CONFIG_FILES="$CONFIG_FILES include/ogg/config_types.h" ;;
  43611. - "win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
  43612. - "libogg.spec" ) CONFIG_FILES="$CONFIG_FILES libogg.spec" ;;
  43613. - "ogg.pc" ) CONFIG_FILES="$CONFIG_FILES ogg.pc" ;;
  43614. - "ogg-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES ogg-uninstalled.pc" ;;
  43615. - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  43616. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  43617. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  43618. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  43619. - { (exit 1); exit 1; }; };;
  43620. - esac
  43621. -done
  43622. +# How to hardcode a shared library path into an executable.
  43623. +hardcode_action=$hardcode_action
  43624. -# If the user did not use the arguments to specify the items to instantiate,
  43625. -# then the envvar interface is used. Set only those that are not.
  43626. -# We use the long form for the default assignment because of an extremely
  43627. -# bizarre bug on SunOS 4.1.3.
  43628. -if $ac_need_defaults; then
  43629. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  43630. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  43631. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  43632. -fi
  43633. +# ### END LIBTOOL CONFIG
  43634. -# Have a temporary directory for convenience. Make it in the build tree
  43635. -# simply because there is no reason to put it here, and in addition,
  43636. -# creating and moving files from /tmp can sometimes cause problems.
  43637. -# Create a temporary directory, and hook for its removal unless debugging.
  43638. -$debug ||
  43639. -{
  43640. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  43641. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  43642. -}
  43643. +_LT_EOF
  43644. -# Create a (secure) tmp directory for tmp files.
  43645. + case $host_os in
  43646. + aix3*)
  43647. + cat <<\_LT_EOF >> "$cfgfile"
  43648. +# AIX sometimes has problems with the GCC collect2 program. For some
  43649. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  43650. +# vanish in a puff of smoke.
  43651. +if test "X${COLLECT_NAMES+set}" != Xset; then
  43652. + COLLECT_NAMES=
  43653. + export COLLECT_NAMES
  43654. +fi
  43655. +_LT_EOF
  43656. + ;;
  43657. + esac
  43658. -{
  43659. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  43660. - test -n "$tmp" && test -d "$tmp"
  43661. -} ||
  43662. -{
  43663. - tmp=./confstat$$-$RANDOM
  43664. - (umask 077 && mkdir $tmp)
  43665. -} ||
  43666. -{
  43667. - echo "$me: cannot create a temporary directory in ." >&2
  43668. - { (exit 1); exit 1; }
  43669. -}
  43670. -_ACEOF
  43671. +ltmain="$ac_aux_dir/ltmain.sh"
  43672. -cat >>$CONFIG_STATUS <<_ACEOF
  43673. -#
  43674. -# CONFIG_FILES section.
  43675. -#
  43676. + # We use sed instead of cat because bash on DJGPP gets confused if
  43677. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  43678. + # text mode, it properly converts lines to CR/LF. This bash problem
  43679. + # is reportedly fixed, but why not run on old versions too?
  43680. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  43681. + || (rm -f "$cfgfile"; exit 1)
  43682. -# No need to generate the scripts if there are no CONFIG_FILES.
  43683. -# This happens for instance when ./config.status config.h
  43684. -if test -n "\$CONFIG_FILES"; then
  43685. - # Protect against being on the right side of a sed subst in config.status.
  43686. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  43687. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  43688. -s,@SHELL@,$SHELL,;t t
  43689. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  43690. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  43691. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  43692. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  43693. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  43694. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  43695. -s,@exec_prefix@,$exec_prefix,;t t
  43696. -s,@prefix@,$prefix,;t t
  43697. -s,@program_transform_name@,$program_transform_name,;t t
  43698. -s,@bindir@,$bindir,;t t
  43699. -s,@sbindir@,$sbindir,;t t
  43700. -s,@libexecdir@,$libexecdir,;t t
  43701. -s,@datadir@,$datadir,;t t
  43702. -s,@sysconfdir@,$sysconfdir,;t t
  43703. -s,@sharedstatedir@,$sharedstatedir,;t t
  43704. -s,@localstatedir@,$localstatedir,;t t
  43705. -s,@libdir@,$libdir,;t t
  43706. -s,@includedir@,$includedir,;t t
  43707. -s,@oldincludedir@,$oldincludedir,;t t
  43708. -s,@infodir@,$infodir,;t t
  43709. -s,@mandir@,$mandir,;t t
  43710. -s,@build_alias@,$build_alias,;t t
  43711. -s,@host_alias@,$host_alias,;t t
  43712. -s,@target_alias@,$target_alias,;t t
  43713. -s,@DEFS@,$DEFS,;t t
  43714. -s,@ECHO_C@,$ECHO_C,;t t
  43715. -s,@ECHO_N@,$ECHO_N,;t t
  43716. -s,@ECHO_T@,$ECHO_T,;t t
  43717. -s,@LIBS@,$LIBS,;t t
  43718. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  43719. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  43720. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  43721. -s,@CYGPATH_W@,$CYGPATH_W,;t t
  43722. -s,@PACKAGE@,$PACKAGE,;t t
  43723. -s,@VERSION@,$VERSION,;t t
  43724. -s,@ACLOCAL@,$ACLOCAL,;t t
  43725. -s,@AUTOCONF@,$AUTOCONF,;t t
  43726. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  43727. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  43728. -s,@MAKEINFO@,$MAKEINFO,;t t
  43729. -s,@install_sh@,$install_sh,;t t
  43730. -s,@STRIP@,$STRIP,;t t
  43731. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  43732. -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  43733. -s,@mkdir_p@,$mkdir_p,;t t
  43734. -s,@AWK@,$AWK,;t t
  43735. -s,@SET_MAKE@,$SET_MAKE,;t t
  43736. -s,@am__leading_dot@,$am__leading_dot,;t t
  43737. -s,@AMTAR@,$AMTAR,;t t
  43738. -s,@am__tar@,$am__tar,;t t
  43739. -s,@am__untar@,$am__untar,;t t
  43740. -s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
  43741. -s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
  43742. -s,@MAINT@,$MAINT,;t t
  43743. -s,@LIB_CURRENT@,$LIB_CURRENT,;t t
  43744. -s,@LIB_REVISION@,$LIB_REVISION,;t t
  43745. -s,@LIB_AGE@,$LIB_AGE,;t t
  43746. -s,@CC@,$CC,;t t
  43747. -s,@CFLAGS@,$CFLAGS,;t t
  43748. -s,@LDFLAGS@,$LDFLAGS,;t t
  43749. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  43750. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  43751. -s,@EXEEXT@,$EXEEXT,;t t
  43752. -s,@OBJEXT@,$OBJEXT,;t t
  43753. -s,@DEPDIR@,$DEPDIR,;t t
  43754. -s,@am__include@,$am__include,;t t
  43755. -s,@am__quote@,$am__quote,;t t
  43756. -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  43757. -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  43758. -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  43759. -s,@CCDEPMODE@,$CCDEPMODE,;t t
  43760. -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  43761. -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  43762. -s,@build@,$build,;t t
  43763. -s,@build_cpu@,$build_cpu,;t t
  43764. -s,@build_vendor@,$build_vendor,;t t
  43765. -s,@build_os@,$build_os,;t t
  43766. -s,@host@,$host,;t t
  43767. -s,@host_cpu@,$host_cpu,;t t
  43768. -s,@host_vendor@,$host_vendor,;t t
  43769. -s,@host_os@,$host_os,;t t
  43770. -s,@EGREP@,$EGREP,;t t
  43771. -s,@LN_S@,$LN_S,;t t
  43772. -s,@ECHO@,$ECHO,;t t
  43773. -s,@AR@,$AR,;t t
  43774. -s,@ac_ct_AR@,$ac_ct_AR,;t t
  43775. -s,@RANLIB@,$RANLIB,;t t
  43776. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  43777. -s,@CPP@,$CPP,;t t
  43778. -s,@CXX@,$CXX,;t t
  43779. -s,@CXXFLAGS@,$CXXFLAGS,;t t
  43780. -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  43781. -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  43782. -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  43783. -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  43784. -s,@CXXCPP@,$CXXCPP,;t t
  43785. -s,@F77@,$F77,;t t
  43786. -s,@FFLAGS@,$FFLAGS,;t t
  43787. -s,@ac_ct_F77@,$ac_ct_F77,;t t
  43788. -s,@LIBTOOL@,$LIBTOOL,;t t
  43789. -s,@LIBOBJS@,$LIBOBJS,;t t
  43790. -s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
  43791. -s,@SIZE16@,$SIZE16,;t t
  43792. -s,@USIZE16@,$USIZE16,;t t
  43793. -s,@SIZE32@,$SIZE32,;t t
  43794. -s,@USIZE32@,$USIZE32,;t t
  43795. -s,@SIZE64@,$SIZE64,;t t
  43796. -s,@OPT@,$OPT,;t t
  43797. -s,@DEBUG@,$DEBUG,;t t
  43798. -s,@PROFILE@,$PROFILE,;t t
  43799. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  43800. -CEOF
  43801. -
  43802. -_ACEOF
  43803. -
  43804. - cat >>$CONFIG_STATUS <<\_ACEOF
  43805. - # Split the substitutions into bite-sized pieces for seds with
  43806. - # small command number limits, like on Digital OSF/1 and HP-UX.
  43807. - ac_max_sed_lines=48
  43808. - ac_sed_frag=1 # Number of current file.
  43809. - ac_beg=1 # First line for current file.
  43810. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  43811. - ac_more_lines=:
  43812. - ac_sed_cmds=
  43813. - while $ac_more_lines; do
  43814. - if test $ac_beg -gt 1; then
  43815. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  43816. - else
  43817. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  43818. - fi
  43819. - if test ! -s $tmp/subs.frag; then
  43820. - ac_more_lines=false
  43821. - else
  43822. - # The purpose of the label and of the branching condition is to
  43823. - # speed up the sed processing (if there are no `@' at all, there
  43824. - # is no need to browse any of the substitutions).
  43825. - # These are the two extra sed commands mentioned above.
  43826. - (echo ':t
  43827. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  43828. - if test -z "$ac_sed_cmds"; then
  43829. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  43830. - else
  43831. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  43832. - fi
  43833. - ac_sed_frag=`expr $ac_sed_frag + 1`
  43834. - ac_beg=$ac_end
  43835. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  43836. - fi
  43837. - done
  43838. - if test -z "$ac_sed_cmds"; then
  43839. - ac_sed_cmds=cat
  43840. - fi
  43841. -fi # test -n "$CONFIG_FILES"
  43842. + case $xsi_shell in
  43843. + yes)
  43844. + cat << \_LT_EOF >> "$cfgfile"
  43845. -_ACEOF
  43846. -cat >>$CONFIG_STATUS <<\_ACEOF
  43847. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  43848. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  43849. - case $ac_file in
  43850. - - | *:- | *:-:* ) # input from stdin
  43851. - cat >$tmp/stdin
  43852. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  43853. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  43854. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  43855. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  43856. - * ) ac_file_in=$ac_file.in ;;
  43857. +# func_dirname file append nondir_replacement
  43858. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  43859. +# otherwise set result to NONDIR_REPLACEMENT.
  43860. +func_dirname ()
  43861. +{
  43862. + case ${1} in
  43863. + */*) func_dirname_result="${1%/*}${2}" ;;
  43864. + * ) func_dirname_result="${3}" ;;
  43865. esac
  43866. +}
  43867. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  43868. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  43869. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43870. - X"$ac_file" : 'X\(//\)[^/]' \| \
  43871. - X"$ac_file" : 'X\(//\)$' \| \
  43872. - X"$ac_file" : 'X\(/\)' \| \
  43873. - . : '\(.\)' 2>/dev/null ||
  43874. -echo X"$ac_file" |
  43875. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43876. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43877. - /^X\(\/\/\)$/{ s//\1/; q; }
  43878. - /^X\(\/\).*/{ s//\1/; q; }
  43879. - s/.*/./; q'`
  43880. - { if $as_mkdir_p; then
  43881. - mkdir -p "$ac_dir"
  43882. - else
  43883. - as_dir="$ac_dir"
  43884. - as_dirs=
  43885. - while test ! -d "$as_dir"; do
  43886. - as_dirs="$as_dir $as_dirs"
  43887. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  43888. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43889. - X"$as_dir" : 'X\(//\)[^/]' \| \
  43890. - X"$as_dir" : 'X\(//\)$' \| \
  43891. - X"$as_dir" : 'X\(/\)' \| \
  43892. - . : '\(.\)' 2>/dev/null ||
  43893. -echo X"$as_dir" |
  43894. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  43895. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  43896. - /^X\(\/\/\)$/{ s//\1/; q; }
  43897. - /^X\(\/\).*/{ s//\1/; q; }
  43898. - s/.*/./; q'`
  43899. - done
  43900. - test ! -n "$as_dirs" || mkdir $as_dirs
  43901. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  43902. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  43903. - { (exit 1); exit 1; }; }; }
  43904. +# func_basename file
  43905. +func_basename ()
  43906. +{
  43907. + func_basename_result="${1##*/}"
  43908. +}
  43909. - ac_builddir=.
  43910. +# func_dirname_and_basename file append nondir_replacement
  43911. +# perform func_basename and func_dirname in a single function
  43912. +# call:
  43913. +# dirname: Compute the dirname of FILE. If nonempty,
  43914. +# add APPEND to the result, otherwise set result
  43915. +# to NONDIR_REPLACEMENT.
  43916. +# value returned in "$func_dirname_result"
  43917. +# basename: Compute filename of FILE.
  43918. +# value retuned in "$func_basename_result"
  43919. +# Implementation must be kept synchronized with func_dirname
  43920. +# and func_basename. For efficiency, we do not delegate to
  43921. +# those functions but instead duplicate the functionality here.
  43922. +func_dirname_and_basename ()
  43923. +{
  43924. + case ${1} in
  43925. + */*) func_dirname_result="${1%/*}${2}" ;;
  43926. + * ) func_dirname_result="${3}" ;;
  43927. + esac
  43928. + func_basename_result="${1##*/}"
  43929. +}
  43930. -if test "$ac_dir" != .; then
  43931. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  43932. - # A "../" for each directory in $ac_dir_suffix.
  43933. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  43934. -else
  43935. - ac_dir_suffix= ac_top_builddir=
  43936. -fi
  43937. +# func_stripname prefix suffix name
  43938. +# strip PREFIX and SUFFIX off of NAME.
  43939. +# PREFIX and SUFFIX must not contain globbing or regex special
  43940. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  43941. +# dot (in which case that matches only a dot).
  43942. +func_stripname ()
  43943. +{
  43944. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  43945. + # positional parameters, so assign one to ordinary parameter first.
  43946. + func_stripname_result=${3}
  43947. + func_stripname_result=${func_stripname_result#"${1}"}
  43948. + func_stripname_result=${func_stripname_result%"${2}"}
  43949. +}
  43950. -case $srcdir in
  43951. - .) # No --srcdir option. We are building in place.
  43952. - ac_srcdir=.
  43953. - if test -z "$ac_top_builddir"; then
  43954. - ac_top_srcdir=.
  43955. - else
  43956. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  43957. - fi ;;
  43958. - [\\/]* | ?:[\\/]* ) # Absolute path.
  43959. - ac_srcdir=$srcdir$ac_dir_suffix;
  43960. - ac_top_srcdir=$srcdir ;;
  43961. - *) # Relative path.
  43962. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  43963. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  43964. -esac
  43965. +# func_opt_split
  43966. +func_opt_split ()
  43967. +{
  43968. + func_opt_split_opt=${1%%=*}
  43969. + func_opt_split_arg=${1#*=}
  43970. +}
  43971. -# Do not use `cd foo && pwd` to compute absolute paths, because
  43972. -# the directories may not exist.
  43973. -case `pwd` in
  43974. -.) ac_abs_builddir="$ac_dir";;
  43975. -*)
  43976. - case "$ac_dir" in
  43977. - .) ac_abs_builddir=`pwd`;;
  43978. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  43979. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  43980. - esac;;
  43981. -esac
  43982. -case $ac_abs_builddir in
  43983. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  43984. -*)
  43985. - case ${ac_top_builddir}. in
  43986. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  43987. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  43988. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  43989. - esac;;
  43990. -esac
  43991. -case $ac_abs_builddir in
  43992. -.) ac_abs_srcdir=$ac_srcdir;;
  43993. -*)
  43994. - case $ac_srcdir in
  43995. - .) ac_abs_srcdir=$ac_abs_builddir;;
  43996. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  43997. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  43998. - esac;;
  43999. -esac
  44000. -case $ac_abs_builddir in
  44001. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  44002. -*)
  44003. - case $ac_top_srcdir in
  44004. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  44005. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  44006. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  44007. - esac;;
  44008. -esac
  44009. +# func_lo2o object
  44010. +func_lo2o ()
  44011. +{
  44012. + case ${1} in
  44013. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  44014. + *) func_lo2o_result=${1} ;;
  44015. + esac
  44016. +}
  44017. +# func_xform libobj-or-source
  44018. +func_xform ()
  44019. +{
  44020. + func_xform_result=${1%.*}.lo
  44021. +}
  44022. - case $INSTALL in
  44023. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  44024. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  44025. - esac
  44026. +# func_arith arithmetic-term...
  44027. +func_arith ()
  44028. +{
  44029. + func_arith_result=$(( $* ))
  44030. +}
  44031. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  44032. - # use $as_me), people would be surprised to read:
  44033. - # /* config.h. Generated by config.status. */
  44034. - if test x"$ac_file" = x-; then
  44035. - configure_input=
  44036. - else
  44037. - configure_input="$ac_file. "
  44038. - fi
  44039. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  44040. - sed 's,.*/,,'` by configure."
  44041. +# func_len string
  44042. +# STRING may not start with a hyphen.
  44043. +func_len ()
  44044. +{
  44045. + func_len_result=${#1}
  44046. +}
  44047. - # First look for the input files in the build tree, otherwise in the
  44048. - # src tree.
  44049. - ac_file_inputs=`IFS=:
  44050. - for f in $ac_file_in; do
  44051. - case $f in
  44052. - -) echo $tmp/stdin ;;
  44053. - [\\/$]*)
  44054. - # Absolute (can't be DOS-style, as IFS=:)
  44055. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  44056. -echo "$as_me: error: cannot find input file: $f" >&2;}
  44057. - { (exit 1); exit 1; }; }
  44058. - echo "$f";;
  44059. - *) # Relative
  44060. - if test -f "$f"; then
  44061. - # Build tree
  44062. - echo "$f"
  44063. - elif test -f "$srcdir/$f"; then
  44064. - # Source tree
  44065. - echo "$srcdir/$f"
  44066. - else
  44067. - # /dev/null tree
  44068. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  44069. -echo "$as_me: error: cannot find input file: $f" >&2;}
  44070. - { (exit 1); exit 1; }; }
  44071. - fi;;
  44072. - esac
  44073. - done` || { (exit 1); exit 1; }
  44074. +_LT_EOF
  44075. + ;;
  44076. + *) # Bourne compatible functions.
  44077. + cat << \_LT_EOF >> "$cfgfile"
  44078. - if test x"$ac_file" != x-; then
  44079. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  44080. -echo "$as_me: creating $ac_file" >&6;}
  44081. - rm -f "$ac_file"
  44082. - fi
  44083. -_ACEOF
  44084. -cat >>$CONFIG_STATUS <<_ACEOF
  44085. - sed "$ac_vpsub
  44086. -$extrasub
  44087. -_ACEOF
  44088. -cat >>$CONFIG_STATUS <<\_ACEOF
  44089. -:t
  44090. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  44091. -s,@configure_input@,$configure_input,;t t
  44092. -s,@srcdir@,$ac_srcdir,;t t
  44093. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  44094. -s,@top_srcdir@,$ac_top_srcdir,;t t
  44095. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  44096. -s,@builddir@,$ac_builddir,;t t
  44097. -s,@abs_builddir@,$ac_abs_builddir,;t t
  44098. -s,@top_builddir@,$ac_top_builddir,;t t
  44099. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  44100. -s,@INSTALL@,$ac_INSTALL,;t t
  44101. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  44102. - rm -f $tmp/stdin
  44103. - if test x"$ac_file" != x-; then
  44104. - mv $tmp/out $ac_file
  44105. +# func_dirname file append nondir_replacement
  44106. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  44107. +# otherwise set result to NONDIR_REPLACEMENT.
  44108. +func_dirname ()
  44109. +{
  44110. + # Extract subdirectory from the argument.
  44111. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  44112. + if test "X$func_dirname_result" = "X${1}"; then
  44113. + func_dirname_result="${3}"
  44114. else
  44115. - cat $tmp/out
  44116. - rm -f $tmp/out
  44117. + func_dirname_result="$func_dirname_result${2}"
  44118. fi
  44119. +}
  44120. -done
  44121. -_ACEOF
  44122. -cat >>$CONFIG_STATUS <<\_ACEOF
  44123. -
  44124. -#
  44125. -# CONFIG_HEADER section.
  44126. -#
  44127. +# func_basename file
  44128. +func_basename ()
  44129. +{
  44130. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  44131. +}
  44132. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  44133. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  44134. -#
  44135. -# ac_d sets the value in "#define NAME VALUE" lines.
  44136. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  44137. -ac_dB='[ ].*$,\1#\2'
  44138. -ac_dC=' '
  44139. -ac_dD=',;t'
  44140. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  44141. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  44142. -ac_uB='$,\1#\2define\3'
  44143. -ac_uC=' '
  44144. -ac_uD=',;t'
  44145. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  44146. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  44147. - case $ac_file in
  44148. - - | *:- | *:-:* ) # input from stdin
  44149. - cat >$tmp/stdin
  44150. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  44151. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  44152. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  44153. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  44154. - * ) ac_file_in=$ac_file.in ;;
  44155. +# func_stripname prefix suffix name
  44156. +# strip PREFIX and SUFFIX off of NAME.
  44157. +# PREFIX and SUFFIX must not contain globbing or regex special
  44158. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  44159. +# dot (in which case that matches only a dot).
  44160. +# func_strip_suffix prefix name
  44161. +func_stripname ()
  44162. +{
  44163. + case ${2} in
  44164. + .*) func_stripname_result=`$ECHO "X${3}" \
  44165. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  44166. + *) func_stripname_result=`$ECHO "X${3}" \
  44167. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  44168. esac
  44169. +}
  44170. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  44171. -echo "$as_me: creating $ac_file" >&6;}
  44172. +# sed scripts:
  44173. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  44174. +my_sed_long_arg='1s/^-[^=]*=//'
  44175. - # First look for the input files in the build tree, otherwise in the
  44176. - # src tree.
  44177. - ac_file_inputs=`IFS=:
  44178. - for f in $ac_file_in; do
  44179. - case $f in
  44180. - -) echo $tmp/stdin ;;
  44181. - [\\/$]*)
  44182. - # Absolute (can't be DOS-style, as IFS=:)
  44183. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  44184. -echo "$as_me: error: cannot find input file: $f" >&2;}
  44185. - { (exit 1); exit 1; }; }
  44186. - # Do quote $f, to prevent DOS paths from being IFS'd.
  44187. - echo "$f";;
  44188. - *) # Relative
  44189. - if test -f "$f"; then
  44190. - # Build tree
  44191. - echo "$f"
  44192. - elif test -f "$srcdir/$f"; then
  44193. - # Source tree
  44194. - echo "$srcdir/$f"
  44195. - else
  44196. - # /dev/null tree
  44197. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  44198. -echo "$as_me: error: cannot find input file: $f" >&2;}
  44199. - { (exit 1); exit 1; }; }
  44200. - fi;;
  44201. - esac
  44202. - done` || { (exit 1); exit 1; }
  44203. - # Remove the trailing spaces.
  44204. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  44205. +# func_opt_split
  44206. +func_opt_split ()
  44207. +{
  44208. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  44209. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  44210. +}
  44211. -_ACEOF
  44212. +# func_lo2o object
  44213. +func_lo2o ()
  44214. +{
  44215. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  44216. +}
  44217. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  44218. -# `conftest.undefs', that substitutes the proper values into
  44219. -# config.h.in to produce config.h. The first handles `#define'
  44220. -# templates, and the second `#undef' templates.
  44221. -# And first: Protect against being on the right side of a sed subst in
  44222. -# config.status. Protect against being in an unquoted here document
  44223. -# in config.status.
  44224. -rm -f conftest.defines conftest.undefs
  44225. -# Using a here document instead of a string reduces the quoting nightmare.
  44226. -# Putting comments in sed scripts is not portable.
  44227. -#
  44228. -# `end' is used to avoid that the second main sed command (meant for
  44229. -# 0-ary CPP macros) applies to n-ary macro definitions.
  44230. -# See the Autoconf documentation for `clear'.
  44231. -cat >confdef2sed.sed <<\_ACEOF
  44232. -s/[\\&,]/\\&/g
  44233. -s,[\\$`],\\&,g
  44234. -t clear
  44235. -: clear
  44236. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  44237. -t end
  44238. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  44239. -: end
  44240. -_ACEOF
  44241. -# If some macros were called several times there might be several times
  44242. -# the same #defines, which is useless. Nevertheless, we may not want to
  44243. -# sort them, since we want the *last* AC-DEFINE to be honored.
  44244. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  44245. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  44246. -rm -f confdef2sed.sed
  44247. -
  44248. -# This sed command replaces #undef with comments. This is necessary, for
  44249. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  44250. -# on some systems where configure will not decide to define it.
  44251. -cat >>conftest.undefs <<\_ACEOF
  44252. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  44253. -_ACEOF
  44254. -
  44255. -# Break up conftest.defines because some shells have a limit on the size
  44256. -# of here documents, and old seds have small limits too (100 cmds).
  44257. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  44258. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  44259. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  44260. -echo ' :' >>$CONFIG_STATUS
  44261. -rm -f conftest.tail
  44262. -while grep . conftest.defines >/dev/null
  44263. -do
  44264. - # Write a limited-size here document to $tmp/defines.sed.
  44265. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  44266. - # Speed up: don't consider the non `#define' lines.
  44267. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  44268. - # Work around the forget-to-reset-the-flag bug.
  44269. - echo 't clr' >>$CONFIG_STATUS
  44270. - echo ': clr' >>$CONFIG_STATUS
  44271. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  44272. - echo 'CEOF
  44273. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  44274. - rm -f $tmp/in
  44275. - mv $tmp/out $tmp/in
  44276. -' >>$CONFIG_STATUS
  44277. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  44278. - rm -f conftest.defines
  44279. - mv conftest.tail conftest.defines
  44280. -done
  44281. -rm -f conftest.defines
  44282. -echo ' fi # grep' >>$CONFIG_STATUS
  44283. -echo >>$CONFIG_STATUS
  44284. -
  44285. -# Break up conftest.undefs because some shells have a limit on the size
  44286. -# of here documents, and old seds have small limits too (100 cmds).
  44287. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  44288. -rm -f conftest.tail
  44289. -while grep . conftest.undefs >/dev/null
  44290. -do
  44291. - # Write a limited-size here document to $tmp/undefs.sed.
  44292. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  44293. - # Speed up: don't consider the non `#undef'
  44294. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  44295. - # Work around the forget-to-reset-the-flag bug.
  44296. - echo 't clr' >>$CONFIG_STATUS
  44297. - echo ': clr' >>$CONFIG_STATUS
  44298. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  44299. - echo 'CEOF
  44300. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  44301. - rm -f $tmp/in
  44302. - mv $tmp/out $tmp/in
  44303. -' >>$CONFIG_STATUS
  44304. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  44305. - rm -f conftest.undefs
  44306. - mv conftest.tail conftest.undefs
  44307. -done
  44308. -rm -f conftest.undefs
  44309. +# func_xform libobj-or-source
  44310. +func_xform ()
  44311. +{
  44312. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  44313. +}
  44314. -cat >>$CONFIG_STATUS <<\_ACEOF
  44315. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  44316. - # use $as_me), people would be surprised to read:
  44317. - # /* config.h. Generated by config.status. */
  44318. - if test x"$ac_file" = x-; then
  44319. - echo "/* Generated by configure. */" >$tmp/config.h
  44320. - else
  44321. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  44322. - fi
  44323. - cat $tmp/in >>$tmp/config.h
  44324. - rm -f $tmp/in
  44325. - if test x"$ac_file" != x-; then
  44326. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  44327. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  44328. -echo "$as_me: $ac_file is unchanged" >&6;}
  44329. - else
  44330. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  44331. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44332. - X"$ac_file" : 'X\(//\)[^/]' \| \
  44333. - X"$ac_file" : 'X\(//\)$' \| \
  44334. - X"$ac_file" : 'X\(/\)' \| \
  44335. - . : '\(.\)' 2>/dev/null ||
  44336. -echo X"$ac_file" |
  44337. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44338. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44339. - /^X\(\/\/\)$/{ s//\1/; q; }
  44340. - /^X\(\/\).*/{ s//\1/; q; }
  44341. - s/.*/./; q'`
  44342. - { if $as_mkdir_p; then
  44343. - mkdir -p "$ac_dir"
  44344. - else
  44345. - as_dir="$ac_dir"
  44346. - as_dirs=
  44347. - while test ! -d "$as_dir"; do
  44348. - as_dirs="$as_dir $as_dirs"
  44349. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  44350. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44351. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44352. - X"$as_dir" : 'X\(//\)$' \| \
  44353. - X"$as_dir" : 'X\(/\)' \| \
  44354. - . : '\(.\)' 2>/dev/null ||
  44355. -echo X"$as_dir" |
  44356. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44357. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44358. - /^X\(\/\/\)$/{ s//\1/; q; }
  44359. - /^X\(\/\).*/{ s//\1/; q; }
  44360. - s/.*/./; q'`
  44361. - done
  44362. - test ! -n "$as_dirs" || mkdir $as_dirs
  44363. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  44364. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  44365. - { (exit 1); exit 1; }; }; }
  44366. +# func_arith arithmetic-term...
  44367. +func_arith ()
  44368. +{
  44369. + func_arith_result=`expr "$@"`
  44370. +}
  44371. - rm -f $ac_file
  44372. - mv $tmp/config.h $ac_file
  44373. - fi
  44374. - else
  44375. - cat $tmp/config.h
  44376. - rm -f $tmp/config.h
  44377. - fi
  44378. -# Compute $ac_file's index in $config_headers.
  44379. -_am_stamp_count=1
  44380. -for _am_header in $config_headers :; do
  44381. - case $_am_header in
  44382. - $ac_file | $ac_file:* )
  44383. - break ;;
  44384. - * )
  44385. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  44386. - esac
  44387. -done
  44388. -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  44389. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44390. - X$ac_file : 'X\(//\)[^/]' \| \
  44391. - X$ac_file : 'X\(//\)$' \| \
  44392. - X$ac_file : 'X\(/\)' \| \
  44393. - . : '\(.\)' 2>/dev/null ||
  44394. -echo X$ac_file |
  44395. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44396. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44397. - /^X\(\/\/\)$/{ s//\1/; q; }
  44398. - /^X\(\/\).*/{ s//\1/; q; }
  44399. - s/.*/./; q'`/stamp-h$_am_stamp_count
  44400. -done
  44401. -_ACEOF
  44402. -cat >>$CONFIG_STATUS <<\_ACEOF
  44403. +# func_len string
  44404. +# STRING may not start with a hyphen.
  44405. +func_len ()
  44406. +{
  44407. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  44408. +}
  44409. -#
  44410. -# CONFIG_COMMANDS section.
  44411. -#
  44412. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  44413. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  44414. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  44415. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  44416. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44417. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  44418. - X"$ac_dest" : 'X\(//\)$' \| \
  44419. - X"$ac_dest" : 'X\(/\)' \| \
  44420. - . : '\(.\)' 2>/dev/null ||
  44421. -echo X"$ac_dest" |
  44422. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44423. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44424. - /^X\(\/\/\)$/{ s//\1/; q; }
  44425. - /^X\(\/\).*/{ s//\1/; q; }
  44426. - s/.*/./; q'`
  44427. - { if $as_mkdir_p; then
  44428. - mkdir -p "$ac_dir"
  44429. - else
  44430. - as_dir="$ac_dir"
  44431. - as_dirs=
  44432. - while test ! -d "$as_dir"; do
  44433. - as_dirs="$as_dir $as_dirs"
  44434. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  44435. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44436. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44437. - X"$as_dir" : 'X\(//\)$' \| \
  44438. - X"$as_dir" : 'X\(/\)' \| \
  44439. - . : '\(.\)' 2>/dev/null ||
  44440. -echo X"$as_dir" |
  44441. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44442. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44443. - /^X\(\/\/\)$/{ s//\1/; q; }
  44444. - /^X\(\/\).*/{ s//\1/; q; }
  44445. - s/.*/./; q'`
  44446. - done
  44447. - test ! -n "$as_dirs" || mkdir $as_dirs
  44448. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  44449. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  44450. - { (exit 1); exit 1; }; }; }
  44451. +_LT_EOF
  44452. +esac
  44453. - ac_builddir=.
  44454. +case $lt_shell_append in
  44455. + yes)
  44456. + cat << \_LT_EOF >> "$cfgfile"
  44457. -if test "$ac_dir" != .; then
  44458. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  44459. - # A "../" for each directory in $ac_dir_suffix.
  44460. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  44461. -else
  44462. - ac_dir_suffix= ac_top_builddir=
  44463. -fi
  44464. +# func_append var value
  44465. +# Append VALUE to the end of shell variable VAR.
  44466. +func_append ()
  44467. +{
  44468. + eval "$1+=\$2"
  44469. +}
  44470. +_LT_EOF
  44471. + ;;
  44472. + *)
  44473. + cat << \_LT_EOF >> "$cfgfile"
  44474. -case $srcdir in
  44475. - .) # No --srcdir option. We are building in place.
  44476. - ac_srcdir=.
  44477. - if test -z "$ac_top_builddir"; then
  44478. - ac_top_srcdir=.
  44479. - else
  44480. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  44481. - fi ;;
  44482. - [\\/]* | ?:[\\/]* ) # Absolute path.
  44483. - ac_srcdir=$srcdir$ac_dir_suffix;
  44484. - ac_top_srcdir=$srcdir ;;
  44485. - *) # Relative path.
  44486. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  44487. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  44488. -esac
  44489. +# func_append var value
  44490. +# Append VALUE to the end of shell variable VAR.
  44491. +func_append ()
  44492. +{
  44493. + eval "$1=\$$1\$2"
  44494. +}
  44495. -# Do not use `cd foo && pwd` to compute absolute paths, because
  44496. -# the directories may not exist.
  44497. -case `pwd` in
  44498. -.) ac_abs_builddir="$ac_dir";;
  44499. -*)
  44500. - case "$ac_dir" in
  44501. - .) ac_abs_builddir=`pwd`;;
  44502. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  44503. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  44504. - esac;;
  44505. -esac
  44506. -case $ac_abs_builddir in
  44507. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  44508. -*)
  44509. - case ${ac_top_builddir}. in
  44510. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  44511. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  44512. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  44513. - esac;;
  44514. -esac
  44515. -case $ac_abs_builddir in
  44516. -.) ac_abs_srcdir=$ac_srcdir;;
  44517. -*)
  44518. - case $ac_srcdir in
  44519. - .) ac_abs_srcdir=$ac_abs_builddir;;
  44520. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  44521. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  44522. - esac;;
  44523. -esac
  44524. -case $ac_abs_builddir in
  44525. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  44526. -*)
  44527. - case $ac_top_srcdir in
  44528. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  44529. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  44530. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  44531. - esac;;
  44532. -esac
  44533. +_LT_EOF
  44534. + ;;
  44535. + esac
  44536. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  44537. -echo "$as_me: executing $ac_dest commands" >&6;}
  44538. - case $ac_dest in
  44539. - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  44540. - # Strip MF so we end up with the name of the file.
  44541. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  44542. - # Check whether this is an Automake generated Makefile or not.
  44543. - # We used to match only the files named `Makefile.in', but
  44544. - # some people rename them; so instead we look at the file content.
  44545. - # Grep'ing the first line is not enough: some people post-process
  44546. - # each Makefile.in and add a new line on top of each file to say so.
  44547. - # So let's grep whole file.
  44548. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  44549. - dirpart=`(dirname "$mf") 2>/dev/null ||
  44550. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44551. - X"$mf" : 'X\(//\)[^/]' \| \
  44552. - X"$mf" : 'X\(//\)$' \| \
  44553. - X"$mf" : 'X\(/\)' \| \
  44554. - . : '\(.\)' 2>/dev/null ||
  44555. -echo X"$mf" |
  44556. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44557. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44558. - /^X\(\/\/\)$/{ s//\1/; q; }
  44559. - /^X\(\/\).*/{ s//\1/; q; }
  44560. - s/.*/./; q'`
  44561. - else
  44562. - continue
  44563. - fi
  44564. - # Extract the definition of DEPDIR, am__include, and am__quote
  44565. - # from the Makefile without running `make'.
  44566. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  44567. - test -z "$DEPDIR" && continue
  44568. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  44569. - test -z "am__include" && continue
  44570. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  44571. - # When using ansi2knr, U may be empty or an underscore; expand it
  44572. - U=`sed -n 's/^U = //p' < "$mf"`
  44573. - # Find all dependency output files, they are included files with
  44574. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  44575. - # simplest approach to changing $(DEPDIR) to its actual value in the
  44576. - # expansion.
  44577. - for file in `sed -n "
  44578. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  44579. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  44580. - # Make sure the directory exists.
  44581. - test -f "$dirpart/$file" && continue
  44582. - fdir=`(dirname "$file") 2>/dev/null ||
  44583. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44584. - X"$file" : 'X\(//\)[^/]' \| \
  44585. - X"$file" : 'X\(//\)$' \| \
  44586. - X"$file" : 'X\(/\)' \| \
  44587. - . : '\(.\)' 2>/dev/null ||
  44588. -echo X"$file" |
  44589. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44590. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44591. - /^X\(\/\/\)$/{ s//\1/; q; }
  44592. - /^X\(\/\).*/{ s//\1/; q; }
  44593. - s/.*/./; q'`
  44594. - { if $as_mkdir_p; then
  44595. - mkdir -p $dirpart/$fdir
  44596. - else
  44597. - as_dir=$dirpart/$fdir
  44598. - as_dirs=
  44599. - while test ! -d "$as_dir"; do
  44600. - as_dirs="$as_dir $as_dirs"
  44601. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  44602. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  44603. - X"$as_dir" : 'X\(//\)[^/]' \| \
  44604. - X"$as_dir" : 'X\(//\)$' \| \
  44605. - X"$as_dir" : 'X\(/\)' \| \
  44606. - . : '\(.\)' 2>/dev/null ||
  44607. -echo X"$as_dir" |
  44608. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  44609. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  44610. - /^X\(\/\/\)$/{ s//\1/; q; }
  44611. - /^X\(\/\).*/{ s//\1/; q; }
  44612. - s/.*/./; q'`
  44613. - done
  44614. - test ! -n "$as_dirs" || mkdir $as_dirs
  44615. - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  44616. -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  44617. - { (exit 1); exit 1; }; }; }
  44618. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  44619. + || (rm -f "$cfgfile"; exit 1)
  44620. +
  44621. + mv -f "$cfgfile" "$ofile" ||
  44622. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  44623. + chmod +x "$ofile"
  44624. - # echo "creating $dirpart/$file"
  44625. - echo '# dummy' > "$dirpart/$file"
  44626. - done
  44627. -done
  44628. ;;
  44629. +
  44630. esac
  44631. -done
  44632. -_ACEOF
  44633. +done # for ac_tag
  44634. -cat >>$CONFIG_STATUS <<\_ACEOF
  44635. -{ (exit 0); exit 0; }
  44636. +as_fn_exit 0
  44637. _ACEOF
  44638. -chmod +x $CONFIG_STATUS
  44639. ac_clean_files=$ac_clean_files_save
  44640. +test $ac_write_fail = 0 ||
  44641. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  44642. +
  44643. # configure is writing to config.log, and then calls config.status.
  44644. # config.status does its own redirection, appending to config.log.
  44645. @@ -23013,6 +13641,10 @@
  44646. exec 5>>config.log
  44647. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  44648. # would make configure fail if this is the last instruction.
  44649. - $ac_cs_success || { (exit 1); exit 1; }
  44650. + $ac_cs_success || as_fn_exit $?
  44651. +fi
  44652. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  44653. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  44654. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  44655. fi
  44656. diff -Nur libogg-1.1.3.orig/depcomp libogg-1.1.3/depcomp
  44657. --- libogg-1.1.3.orig/depcomp 2005-04-14 07:08:53.000000000 +0200
  44658. +++ libogg-1.1.3/depcomp 2011-02-17 18:12:13.684800429 +0100
  44659. @@ -1,9 +1,10 @@
  44660. #! /bin/sh
  44661. # depcomp - compile a program generating dependencies as side-effects
  44662. -scriptversion=2005-02-09.22
  44663. +scriptversion=2009-04-28.21; # UTC
  44664. -# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
  44665. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  44666. +# Software Foundation, Inc.
  44667. # This program is free software; you can redistribute it and/or modify
  44668. # it under the terms of the GNU General Public License as published by
  44669. @@ -16,9 +17,7 @@
  44670. # GNU General Public License for more details.
  44671. # You should have received a copy of the GNU General Public License
  44672. -# along with this program; if not, write to the Free Software
  44673. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  44674. -# 02111-1307, USA.
  44675. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  44676. # As a special exception to the GNU General Public License, if you
  44677. # distribute this file as part of a program that contains a
  44678. @@ -86,12 +85,34 @@
  44679. depmode=dashmstdout
  44680. fi
  44681. +cygpath_u="cygpath -u -f -"
  44682. +if test "$depmode" = msvcmsys; then
  44683. + # This is just like msvisualcpp but w/o cygpath translation.
  44684. + # Just convert the backslash-escaped backslashes to single forward
  44685. + # slashes to satisfy depend.m4
  44686. + cygpath_u="sed s,\\\\\\\\,/,g"
  44687. + depmode=msvisualcpp
  44688. +fi
  44689. +
  44690. case "$depmode" in
  44691. gcc3)
  44692. ## gcc 3 implements dependency tracking that does exactly what
  44693. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  44694. ## it if -MD -MP comes after the -MF stuff. Hmm.
  44695. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  44696. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  44697. +## the command line argument order; so add the flags where they
  44698. +## appear in depend2.am. Note that the slowdown incurred here
  44699. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  44700. + for arg
  44701. + do
  44702. + case $arg in
  44703. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  44704. + *) set fnord "$@" "$arg" ;;
  44705. + esac
  44706. + shift # fnord
  44707. + shift # $arg
  44708. + done
  44709. + "$@"
  44710. stat=$?
  44711. if test $stat -eq 0; then :
  44712. else
  44713. @@ -178,14 +199,14 @@
  44714. ' < "$tmpdepfile" \
  44715. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  44716. tr '
  44717. -' ' ' >> $depfile
  44718. - echo >> $depfile
  44719. +' ' ' >> "$depfile"
  44720. + echo >> "$depfile"
  44721. # The second pass generates a dummy entry for each header file.
  44722. tr ' ' '
  44723. ' < "$tmpdepfile" \
  44724. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  44725. - >> $depfile
  44726. + >> "$depfile"
  44727. else
  44728. # The sourcefile does not contain any dependencies, so just
  44729. # store a dummy comment line, to avoid errors with the Makefile
  44730. @@ -201,34 +222,39 @@
  44731. # current directory. Also, the AIX compiler puts `$object:' at the
  44732. # start of each line; $object doesn't have directory information.
  44733. # Version 6 uses the directory in both cases.
  44734. - stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
  44735. - tmpdepfile="$stripped.u"
  44736. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  44737. + test "x$dir" = "x$object" && dir=
  44738. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  44739. if test "$libtool" = yes; then
  44740. + tmpdepfile1=$dir$base.u
  44741. + tmpdepfile2=$base.u
  44742. + tmpdepfile3=$dir.libs/$base.u
  44743. "$@" -Wc,-M
  44744. else
  44745. + tmpdepfile1=$dir$base.u
  44746. + tmpdepfile2=$dir$base.u
  44747. + tmpdepfile3=$dir$base.u
  44748. "$@" -M
  44749. fi
  44750. stat=$?
  44751. - if test -f "$tmpdepfile"; then :
  44752. - else
  44753. - stripped=`echo "$stripped" | sed 's,^.*/,,'`
  44754. - tmpdepfile="$stripped.u"
  44755. - fi
  44756. -
  44757. if test $stat -eq 0; then :
  44758. else
  44759. - rm -f "$tmpdepfile"
  44760. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  44761. exit $stat
  44762. fi
  44763. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  44764. + do
  44765. + test -f "$tmpdepfile" && break
  44766. + done
  44767. if test -f "$tmpdepfile"; then
  44768. - outname="$stripped.o"
  44769. # Each line is of the form `foo.o: dependent.h'.
  44770. # Do two passes, one to just change these to
  44771. # `$object: dependent.h' and one to simply `dependent.h:'.
  44772. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  44773. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  44774. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  44775. + # That's a tab and a space in the [].
  44776. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  44777. else
  44778. # The sourcefile does not contain any dependencies, so just
  44779. # store a dummy comment line, to avoid errors with the Makefile
  44780. @@ -276,6 +302,51 @@
  44781. rm -f "$tmpdepfile"
  44782. ;;
  44783. +hp2)
  44784. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  44785. + # compilers, which have integrated preprocessors. The correct option
  44786. + # to use with these is +Maked; it writes dependencies to a file named
  44787. + # 'foo.d', which lands next to the object file, wherever that
  44788. + # happens to be.
  44789. + # Much of this is similar to the tru64 case; see comments there.
  44790. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  44791. + test "x$dir" = "x$object" && dir=
  44792. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  44793. + if test "$libtool" = yes; then
  44794. + tmpdepfile1=$dir$base.d
  44795. + tmpdepfile2=$dir.libs/$base.d
  44796. + "$@" -Wc,+Maked
  44797. + else
  44798. + tmpdepfile1=$dir$base.d
  44799. + tmpdepfile2=$dir$base.d
  44800. + "$@" +Maked
  44801. + fi
  44802. + stat=$?
  44803. + if test $stat -eq 0; then :
  44804. + else
  44805. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  44806. + exit $stat
  44807. + fi
  44808. +
  44809. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  44810. + do
  44811. + test -f "$tmpdepfile" && break
  44812. + done
  44813. + if test -f "$tmpdepfile"; then
  44814. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  44815. + # Add `dependent.h:' lines.
  44816. + sed -ne '2,${
  44817. + s/^ *//
  44818. + s/ \\*$//
  44819. + s/$/:/
  44820. + p
  44821. + }' "$tmpdepfile" >> "$depfile"
  44822. + else
  44823. + echo "#dummy" > "$depfile"
  44824. + fi
  44825. + rm -f "$tmpdepfile" "$tmpdepfile2"
  44826. + ;;
  44827. +
  44828. tru64)
  44829. # The Tru64 compiler uses -MD to generate dependencies as a side
  44830. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  44831. @@ -288,13 +359,13 @@
  44832. if test "$libtool" = yes; then
  44833. # With Tru64 cc, shared objects can also be used to make a
  44834. - # static library. This mecanism is used in libtool 1.4 series to
  44835. + # static library. This mechanism is used in libtool 1.4 series to
  44836. # handle both shared and static libraries in a single compilation.
  44837. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  44838. #
  44839. # With libtool 1.5 this exception was removed, and libtool now
  44840. # generates 2 separate objects for the 2 libraries. These two
  44841. - # compilations output dependencies in in $dir.libs/$base.o.d and
  44842. + # compilations output dependencies in $dir.libs/$base.o.d and
  44843. # in $dir$base.o.d. We have to check for both files, because
  44844. # one of the two compilations can be disabled. We should prefer
  44845. # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  44846. @@ -345,7 +416,7 @@
  44847. # Remove the call to Libtool.
  44848. if test "$libtool" = yes; then
  44849. - while test $1 != '--mode=compile'; do
  44850. + while test "X$1" != 'X--mode=compile'; do
  44851. shift
  44852. done
  44853. shift
  44854. @@ -396,32 +467,39 @@
  44855. "$@" || exit $?
  44856. # Remove any Libtool call
  44857. if test "$libtool" = yes; then
  44858. - while test $1 != '--mode=compile'; do
  44859. + while test "X$1" != 'X--mode=compile'; do
  44860. shift
  44861. done
  44862. shift
  44863. fi
  44864. # X makedepend
  44865. shift
  44866. - cleared=no
  44867. - for arg in "$@"; do
  44868. + cleared=no eat=no
  44869. + for arg
  44870. + do
  44871. case $cleared in
  44872. no)
  44873. set ""; shift
  44874. cleared=yes ;;
  44875. esac
  44876. + if test $eat = yes; then
  44877. + eat=no
  44878. + continue
  44879. + fi
  44880. case "$arg" in
  44881. -D*|-I*)
  44882. set fnord "$@" "$arg"; shift ;;
  44883. # Strip any option that makedepend may not understand. Remove
  44884. # the object too, otherwise makedepend will parse it as a source file.
  44885. + -arch)
  44886. + eat=yes ;;
  44887. -*|$object)
  44888. ;;
  44889. *)
  44890. set fnord "$@" "$arg"; shift ;;
  44891. esac
  44892. done
  44893. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  44894. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  44895. touch "$tmpdepfile"
  44896. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  44897. rm -f "$depfile"
  44898. @@ -441,7 +519,7 @@
  44899. # Remove the call to Libtool.
  44900. if test "$libtool" = yes; then
  44901. - while test $1 != '--mode=compile'; do
  44902. + while test "X$1" != 'X--mode=compile'; do
  44903. shift
  44904. done
  44905. shift
  44906. @@ -467,7 +545,8 @@
  44907. done
  44908. "$@" -E |
  44909. - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  44910. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  44911. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  44912. sed '$ s: \\$::' > "$tmpdepfile"
  44913. rm -f "$depfile"
  44914. echo "$object : \\" > "$depfile"
  44915. @@ -478,13 +557,27 @@
  44916. msvisualcpp)
  44917. # Important note: in order to support this mode, a compiler *must*
  44918. - # always write the preprocessed file to stdout, regardless of -o,
  44919. - # because we must use -o when running libtool.
  44920. + # always write the preprocessed file to stdout.
  44921. "$@" || exit $?
  44922. +
  44923. + # Remove the call to Libtool.
  44924. + if test "$libtool" = yes; then
  44925. + while test "X$1" != 'X--mode=compile'; do
  44926. + shift
  44927. + done
  44928. + shift
  44929. + fi
  44930. +
  44931. IFS=" "
  44932. for arg
  44933. do
  44934. case "$arg" in
  44935. + -o)
  44936. + shift
  44937. + ;;
  44938. + $object)
  44939. + shift
  44940. + ;;
  44941. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  44942. set fnord "$@"
  44943. shift
  44944. @@ -497,16 +590,23 @@
  44945. ;;
  44946. esac
  44947. done
  44948. - "$@" -E |
  44949. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  44950. + "$@" -E 2>/dev/null |
  44951. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  44952. rm -f "$depfile"
  44953. echo "$object : \\" > "$depfile"
  44954. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  44955. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  44956. echo " " >> "$depfile"
  44957. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  44958. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  44959. rm -f "$tmpdepfile"
  44960. ;;
  44961. +msvcmsys)
  44962. + # This case exists only to let depend.m4 do its work. It works by
  44963. + # looking at the text of this script. This case will never be run,
  44964. + # since it is checked for above.
  44965. + exit 1
  44966. + ;;
  44967. +
  44968. none)
  44969. exec "$@"
  44970. ;;
  44971. @@ -525,5 +625,6 @@
  44972. # eval: (add-hook 'write-file-hooks 'time-stamp)
  44973. # time-stamp-start: "scriptversion="
  44974. # time-stamp-format: "%:y-%02m-%02d.%02H"
  44975. -# time-stamp-end: "$"
  44976. +# time-stamp-time-zone: "UTC"
  44977. +# time-stamp-end: "; # UTC"
  44978. # End:
  44979. diff -Nur libogg-1.1.3.orig/doc/libogg/Makefile.in libogg-1.1.3/doc/libogg/Makefile.in
  44980. --- libogg-1.1.3.orig/doc/libogg/Makefile.in 2005-11-28 05:26:30.000000000 +0100
  44981. +++ libogg-1.1.3/doc/libogg/Makefile.in 2011-02-17 18:12:13.593562835 +0100
  44982. @@ -1,8 +1,9 @@
  44983. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  44984. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  44985. # @configure_input@
  44986. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  44987. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  44988. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  44989. +# Inc.
  44990. # This Makefile.in is free software; the Free Software Foundation
  44991. # gives unlimited permission to copy and/or distribute it,
  44992. # with or without modifications, as long as this notice is preserved.
  44993. @@ -14,15 +15,12 @@
  44994. @SET_MAKE@
  44995. -srcdir = @srcdir@
  44996. -top_srcdir = @top_srcdir@
  44997. VPATH = @srcdir@
  44998. pkgdatadir = $(datadir)/@PACKAGE@
  44999. -pkglibdir = $(libdir)/@PACKAGE@
  45000. pkgincludedir = $(includedir)/@PACKAGE@
  45001. -top_builddir = ../..
  45002. +pkglibdir = $(libdir)/@PACKAGE@
  45003. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45004. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45005. -INSTALL = @INSTALL@
  45006. install_sh_DATA = $(install_sh) -c -m 644
  45007. install_sh_PROGRAM = $(install_sh) -c
  45008. install_sh_SCRIPT = $(install_sh) -c
  45009. @@ -45,6 +43,7 @@
  45010. mkinstalldirs = $(install_sh) -d
  45011. CONFIG_HEADER = $(top_builddir)/config.h
  45012. CONFIG_CLEAN_FILES =
  45013. +CONFIG_CLEAN_VPATH_FILES =
  45014. SOURCES =
  45015. DIST_SOURCES =
  45016. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  45017. @@ -52,14 +51,26 @@
  45018. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45019. *) f=$$p;; \
  45020. esac;
  45021. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  45022. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  45023. +am__install_max = 40
  45024. +am__nobase_strip_setup = \
  45025. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  45026. +am__nobase_strip = \
  45027. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  45028. +am__nobase_list = $(am__nobase_strip_setup); \
  45029. + for p in $$list; do echo "$$p $$p"; done | \
  45030. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  45031. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  45032. + if (++n[$$2] == $(am__install_max)) \
  45033. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  45034. + END { for (dir in files) print dir, files[dir] }'
  45035. +am__base_list = \
  45036. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  45037. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  45038. am__installdirs = "$(DESTDIR)$(docdir)"
  45039. -docDATA_INSTALL = $(INSTALL_DATA)
  45040. DATA = $(doc_DATA)
  45041. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45042. ACLOCAL = @ACLOCAL@
  45043. -AMDEP_FALSE = @AMDEP_FALSE@
  45044. -AMDEP_TRUE = @AMDEP_TRUE@
  45045. AMTAR = @AMTAR@
  45046. AR = @AR@
  45047. AUTOCONF = @AUTOCONF@
  45048. @@ -71,26 +82,25 @@
  45049. CFLAGS = @CFLAGS@
  45050. CPP = @CPP@
  45051. CPPFLAGS = @CPPFLAGS@
  45052. -CXX = @CXX@
  45053. -CXXCPP = @CXXCPP@
  45054. -CXXDEPMODE = @CXXDEPMODE@
  45055. -CXXFLAGS = @CXXFLAGS@
  45056. CYGPATH_W = @CYGPATH_W@
  45057. DEBUG = @DEBUG@
  45058. DEFS = @DEFS@
  45059. DEPDIR = @DEPDIR@
  45060. -ECHO = @ECHO@
  45061. +DSYMUTIL = @DSYMUTIL@
  45062. +DUMPBIN = @DUMPBIN@
  45063. ECHO_C = @ECHO_C@
  45064. ECHO_N = @ECHO_N@
  45065. ECHO_T = @ECHO_T@
  45066. EGREP = @EGREP@
  45067. EXEEXT = @EXEEXT@
  45068. -F77 = @F77@
  45069. -FFLAGS = @FFLAGS@
  45070. +FGREP = @FGREP@
  45071. +GREP = @GREP@
  45072. +INSTALL = @INSTALL@
  45073. INSTALL_DATA = @INSTALL_DATA@
  45074. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45075. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45076. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45077. +LD = @LD@
  45078. LDFLAGS = @LDFLAGS@
  45079. LIBOBJS = @LIBOBJS@
  45080. LIBS = @LIBS@
  45081. @@ -99,23 +109,30 @@
  45082. LIB_AGE = @LIB_AGE@
  45083. LIB_CURRENT = @LIB_CURRENT@
  45084. LIB_REVISION = @LIB_REVISION@
  45085. +LIPO = @LIPO@
  45086. LN_S = @LN_S@
  45087. LTLIBOBJS = @LTLIBOBJS@
  45088. MAINT = @MAINT@
  45089. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  45090. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  45091. MAKEINFO = @MAKEINFO@
  45092. +MKDIR_P = @MKDIR_P@
  45093. +NM = @NM@
  45094. +NMEDIT = @NMEDIT@
  45095. +OBJDUMP = @OBJDUMP@
  45096. OBJEXT = @OBJEXT@
  45097. OPT = @OPT@
  45098. +OTOOL = @OTOOL@
  45099. +OTOOL64 = @OTOOL64@
  45100. PACKAGE = @PACKAGE@
  45101. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45102. PACKAGE_NAME = @PACKAGE_NAME@
  45103. PACKAGE_STRING = @PACKAGE_STRING@
  45104. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45105. +PACKAGE_URL = @PACKAGE_URL@
  45106. PACKAGE_VERSION = @PACKAGE_VERSION@
  45107. PATH_SEPARATOR = @PATH_SEPARATOR@
  45108. PROFILE = @PROFILE@
  45109. RANLIB = @RANLIB@
  45110. +SED = @SED@
  45111. SET_MAKE = @SET_MAKE@
  45112. SHELL = @SHELL@
  45113. SIZE16 = @SIZE16@
  45114. @@ -125,16 +142,12 @@
  45115. USIZE16 = @USIZE16@
  45116. USIZE32 = @USIZE32@
  45117. VERSION = @VERSION@
  45118. -ac_ct_AR = @ac_ct_AR@
  45119. +abs_builddir = @abs_builddir@
  45120. +abs_srcdir = @abs_srcdir@
  45121. +abs_top_builddir = @abs_top_builddir@
  45122. +abs_top_srcdir = @abs_top_srcdir@
  45123. ac_ct_CC = @ac_ct_CC@
  45124. -ac_ct_CXX = @ac_ct_CXX@
  45125. -ac_ct_F77 = @ac_ct_F77@
  45126. -ac_ct_RANLIB = @ac_ct_RANLIB@
  45127. -ac_ct_STRIP = @ac_ct_STRIP@
  45128. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  45129. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  45130. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  45131. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  45132. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45133. am__include = @am__include@
  45134. am__leading_dot = @am__leading_dot@
  45135. am__quote = @am__quote@
  45136. @@ -146,29 +159,41 @@
  45137. build_cpu = @build_cpu@
  45138. build_os = @build_os@
  45139. build_vendor = @build_vendor@
  45140. +builddir = @builddir@
  45141. datadir = @datadir@
  45142. +datarootdir = @datarootdir@
  45143. +docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg
  45144. +dvidir = @dvidir@
  45145. exec_prefix = @exec_prefix@
  45146. host = @host@
  45147. host_alias = @host_alias@
  45148. host_cpu = @host_cpu@
  45149. host_os = @host_os@
  45150. host_vendor = @host_vendor@
  45151. +htmldir = @htmldir@
  45152. includedir = @includedir@
  45153. infodir = @infodir@
  45154. install_sh = @install_sh@
  45155. libdir = @libdir@
  45156. libexecdir = @libexecdir@
  45157. +localedir = @localedir@
  45158. localstatedir = @localstatedir@
  45159. +lt_ECHO = @lt_ECHO@
  45160. mandir = @mandir@
  45161. mkdir_p = @mkdir_p@
  45162. oldincludedir = @oldincludedir@
  45163. +pdfdir = @pdfdir@
  45164. prefix = @prefix@
  45165. program_transform_name = @program_transform_name@
  45166. +psdir = @psdir@
  45167. sbindir = @sbindir@
  45168. sharedstatedir = @sharedstatedir@
  45169. +srcdir = @srcdir@
  45170. sysconfdir = @sysconfdir@
  45171. target_alias = @target_alias@
  45172. -docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)/ogg
  45173. +top_build_prefix = @top_build_prefix@
  45174. +top_builddir = @top_builddir@
  45175. +top_srcdir = @top_srcdir@
  45176. doc_DATA = bitpacking.html datastructures.html decoding.html encoding.html\
  45177. general.html index.html ogg_packet.html ogg_packet_clear.html\
  45178. ogg_page.html ogg_page_bos.html ogg_page_checksum_set.html\
  45179. @@ -200,14 +225,14 @@
  45180. @for dep in $?; do \
  45181. case '$(am__configure_deps)' in \
  45182. *$$dep*) \
  45183. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45184. - && exit 0; \
  45185. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45186. + && { if test -f $@; then exit 0; else break; fi; }; \
  45187. exit 1;; \
  45188. esac; \
  45189. done; \
  45190. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/libogg/Makefile'; \
  45191. - cd $(top_srcdir) && \
  45192. - $(AUTOMAKE) --gnu doc/libogg/Makefile
  45193. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/libogg/Makefile'; \
  45194. + $(am__cd) $(top_srcdir) && \
  45195. + $(AUTOMAKE) --gnu doc/libogg/Makefile
  45196. .PRECIOUS: Makefile
  45197. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45198. @case '$?' in \
  45199. @@ -225,33 +250,33 @@
  45200. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45201. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45202. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45203. +$(am__aclocal_m4_deps):
  45204. mostlyclean-libtool:
  45205. -rm -f *.lo
  45206. clean-libtool:
  45207. -rm -rf .libs _libs
  45208. -
  45209. -distclean-libtool:
  45210. - -rm -f libtool
  45211. -uninstall-info-am:
  45212. install-docDATA: $(doc_DATA)
  45213. @$(NORMAL_INSTALL)
  45214. - test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
  45215. - @list='$(doc_DATA)'; for p in $$list; do \
  45216. + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  45217. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  45218. + for p in $$list; do \
  45219. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  45220. - f=$(am__strip_dir) \
  45221. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  45222. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  45223. + echo "$$d$$p"; \
  45224. + done | $(am__base_list) | \
  45225. + while read files; do \
  45226. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  45227. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  45228. done
  45229. uninstall-docDATA:
  45230. @$(NORMAL_UNINSTALL)
  45231. - @list='$(doc_DATA)'; for p in $$list; do \
  45232. - f=$(am__strip_dir) \
  45233. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  45234. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  45235. - done
  45236. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  45237. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  45238. + test -n "$$files" || exit 0; \
  45239. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  45240. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  45241. tags: TAGS
  45242. TAGS:
  45243. @@ -260,29 +285,32 @@
  45244. distdir: $(DISTFILES)
  45245. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  45246. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  45247. - list='$(DISTFILES)'; for file in $$list; do \
  45248. - case $$file in \
  45249. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  45250. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  45251. - esac; \
  45252. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45253. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45254. + list='$(DISTFILES)'; \
  45255. + dist_files=`for file in $$list; do echo $$file; done | \
  45256. + sed -e "s|^$$srcdirstrip/||;t" \
  45257. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  45258. + case $$dist_files in \
  45259. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  45260. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  45261. + sort -u` ;; \
  45262. + esac; \
  45263. + for file in $$dist_files; do \
  45264. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45265. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  45266. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  45267. - dir="/$$dir"; \
  45268. - $(mkdir_p) "$(distdir)$$dir"; \
  45269. - else \
  45270. - dir=''; \
  45271. - fi; \
  45272. if test -d $$d/$$file; then \
  45273. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45274. + if test -d "$(distdir)/$$file"; then \
  45275. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45276. + fi; \
  45277. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45278. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45279. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45280. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45281. fi; \
  45282. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45283. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45284. else \
  45285. - test -f $(distdir)/$$file \
  45286. - || cp -p $$d/$$file $(distdir)/$$file \
  45287. + test -f "$(distdir)/$$file" \
  45288. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45289. || exit 1; \
  45290. fi; \
  45291. done
  45292. @@ -291,7 +319,7 @@
  45293. all-am: Makefile $(DATA)
  45294. installdirs:
  45295. for dir in "$(DESTDIR)$(docdir)"; do \
  45296. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  45297. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  45298. done
  45299. install: install-am
  45300. install-exec: install-exec-am
  45301. @@ -313,6 +341,7 @@
  45302. distclean-generic:
  45303. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45304. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45305. maintainer-clean-generic:
  45306. @echo "This command is intended for maintainers to use"
  45307. @@ -323,7 +352,7 @@
  45308. distclean: distclean-am
  45309. -rm -f Makefile
  45310. -distclean-am: clean-am distclean-generic distclean-libtool
  45311. +distclean-am: clean-am distclean-generic
  45312. dvi: dvi-am
  45313. @@ -331,18 +360,38 @@
  45314. html: html-am
  45315. +html-am:
  45316. +
  45317. info: info-am
  45318. info-am:
  45319. install-data-am: install-docDATA
  45320. +install-dvi: install-dvi-am
  45321. +
  45322. +install-dvi-am:
  45323. +
  45324. install-exec-am:
  45325. +install-html: install-html-am
  45326. +
  45327. +install-html-am:
  45328. +
  45329. install-info: install-info-am
  45330. +install-info-am:
  45331. +
  45332. install-man:
  45333. +install-pdf: install-pdf-am
  45334. +
  45335. +install-pdf-am:
  45336. +
  45337. +install-ps: install-ps-am
  45338. +
  45339. +install-ps-am:
  45340. +
  45341. installcheck-am:
  45342. maintainer-clean: maintainer-clean-am
  45343. @@ -361,17 +410,22 @@
  45344. ps-am:
  45345. -uninstall-am: uninstall-docDATA uninstall-info-am
  45346. +uninstall-am: uninstall-docDATA
  45347. +
  45348. +.MAKE: install-am install-strip
  45349. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  45350. distclean distclean-generic distclean-libtool distdir dvi \
  45351. dvi-am html html-am info info-am install install-am \
  45352. - install-data install-data-am install-docDATA install-exec \
  45353. - install-exec-am install-info install-info-am install-man \
  45354. + install-data install-data-am install-docDATA install-dvi \
  45355. + install-dvi-am install-exec install-exec-am install-html \
  45356. + install-html-am install-info install-info-am install-man \
  45357. + install-pdf install-pdf-am install-ps install-ps-am \
  45358. install-strip installcheck installcheck-am installdirs \
  45359. maintainer-clean maintainer-clean-generic mostlyclean \
  45360. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  45361. - uninstall uninstall-am uninstall-docDATA uninstall-info-am
  45362. + uninstall uninstall-am uninstall-docDATA
  45363. +
  45364. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45365. # Otherwise a system limit (for SysV at least) may be exceeded.
  45366. diff -Nur libogg-1.1.3.orig/doc/Makefile.in libogg-1.1.3/doc/Makefile.in
  45367. --- libogg-1.1.3.orig/doc/Makefile.in 2005-11-28 05:26:30.000000000 +0100
  45368. +++ libogg-1.1.3/doc/Makefile.in 2011-02-17 18:12:13.563563015 +0100
  45369. @@ -1,8 +1,9 @@
  45370. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  45371. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45372. # @configure_input@
  45373. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45374. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  45375. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45376. +# Inc.
  45377. # This Makefile.in is free software; the Free Software Foundation
  45378. # gives unlimited permission to copy and/or distribute it,
  45379. # with or without modifications, as long as this notice is preserved.
  45380. @@ -14,15 +15,12 @@
  45381. @SET_MAKE@
  45382. -srcdir = @srcdir@
  45383. -top_srcdir = @top_srcdir@
  45384. VPATH = @srcdir@
  45385. pkgdatadir = $(datadir)/@PACKAGE@
  45386. -pkglibdir = $(libdir)/@PACKAGE@
  45387. pkgincludedir = $(includedir)/@PACKAGE@
  45388. -top_builddir = ..
  45389. +pkglibdir = $(libdir)/@PACKAGE@
  45390. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45391. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45392. -INSTALL = @INSTALL@
  45393. install_sh_DATA = $(install_sh) -c -m 644
  45394. install_sh_PROGRAM = $(install_sh) -c
  45395. install_sh_SCRIPT = $(install_sh) -c
  45396. @@ -45,30 +43,74 @@
  45397. mkinstalldirs = $(install_sh) -d
  45398. CONFIG_HEADER = $(top_builddir)/config.h
  45399. CONFIG_CLEAN_FILES =
  45400. +CONFIG_CLEAN_VPATH_FILES =
  45401. SOURCES =
  45402. DIST_SOURCES =
  45403. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  45404. html-recursive info-recursive install-data-recursive \
  45405. - install-exec-recursive install-info-recursive \
  45406. - install-recursive installcheck-recursive installdirs-recursive \
  45407. - pdf-recursive ps-recursive uninstall-info-recursive \
  45408. - uninstall-recursive
  45409. + install-dvi-recursive install-exec-recursive \
  45410. + install-html-recursive install-info-recursive \
  45411. + install-pdf-recursive install-ps-recursive install-recursive \
  45412. + installcheck-recursive installdirs-recursive pdf-recursive \
  45413. + ps-recursive uninstall-recursive
  45414. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  45415. am__vpath_adj = case $$p in \
  45416. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  45417. *) f=$$p;; \
  45418. esac;
  45419. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  45420. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  45421. +am__install_max = 40
  45422. +am__nobase_strip_setup = \
  45423. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  45424. +am__nobase_strip = \
  45425. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  45426. +am__nobase_list = $(am__nobase_strip_setup); \
  45427. + for p in $$list; do echo "$$p $$p"; done | \
  45428. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  45429. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  45430. + if (++n[$$2] == $(am__install_max)) \
  45431. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  45432. + END { for (dir in files) print dir, files[dir] }'
  45433. +am__base_list = \
  45434. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  45435. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  45436. am__installdirs = "$(DESTDIR)$(docdir)"
  45437. -docDATA_INSTALL = $(INSTALL_DATA)
  45438. DATA = $(doc_DATA)
  45439. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  45440. + distclean-recursive maintainer-clean-recursive
  45441. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  45442. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  45443. + distdir
  45444. ETAGS = etags
  45445. CTAGS = ctags
  45446. DIST_SUBDIRS = $(SUBDIRS)
  45447. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  45448. +am__relativize = \
  45449. + dir0=`pwd`; \
  45450. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  45451. + sed_rest='s,^[^/]*/*,,'; \
  45452. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  45453. + sed_butlast='s,/*[^/]*$$,,'; \
  45454. + while test -n "$$dir1"; do \
  45455. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  45456. + if test "$$first" != "."; then \
  45457. + if test "$$first" = ".."; then \
  45458. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  45459. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  45460. + else \
  45461. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  45462. + if test "$$first2" = "$$first"; then \
  45463. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  45464. + else \
  45465. + dir2="../$$dir2"; \
  45466. + fi; \
  45467. + dir0="$$dir0"/"$$first"; \
  45468. + fi; \
  45469. + fi; \
  45470. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  45471. + done; \
  45472. + reldir="$$dir2"
  45473. ACLOCAL = @ACLOCAL@
  45474. -AMDEP_FALSE = @AMDEP_FALSE@
  45475. -AMDEP_TRUE = @AMDEP_TRUE@
  45476. AMTAR = @AMTAR@
  45477. AR = @AR@
  45478. AUTOCONF = @AUTOCONF@
  45479. @@ -80,26 +122,25 @@
  45480. CFLAGS = @CFLAGS@
  45481. CPP = @CPP@
  45482. CPPFLAGS = @CPPFLAGS@
  45483. -CXX = @CXX@
  45484. -CXXCPP = @CXXCPP@
  45485. -CXXDEPMODE = @CXXDEPMODE@
  45486. -CXXFLAGS = @CXXFLAGS@
  45487. CYGPATH_W = @CYGPATH_W@
  45488. DEBUG = @DEBUG@
  45489. DEFS = @DEFS@
  45490. DEPDIR = @DEPDIR@
  45491. -ECHO = @ECHO@
  45492. +DSYMUTIL = @DSYMUTIL@
  45493. +DUMPBIN = @DUMPBIN@
  45494. ECHO_C = @ECHO_C@
  45495. ECHO_N = @ECHO_N@
  45496. ECHO_T = @ECHO_T@
  45497. EGREP = @EGREP@
  45498. EXEEXT = @EXEEXT@
  45499. -F77 = @F77@
  45500. -FFLAGS = @FFLAGS@
  45501. +FGREP = @FGREP@
  45502. +GREP = @GREP@
  45503. +INSTALL = @INSTALL@
  45504. INSTALL_DATA = @INSTALL_DATA@
  45505. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  45506. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  45507. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  45508. +LD = @LD@
  45509. LDFLAGS = @LDFLAGS@
  45510. LIBOBJS = @LIBOBJS@
  45511. LIBS = @LIBS@
  45512. @@ -108,23 +149,30 @@
  45513. LIB_AGE = @LIB_AGE@
  45514. LIB_CURRENT = @LIB_CURRENT@
  45515. LIB_REVISION = @LIB_REVISION@
  45516. +LIPO = @LIPO@
  45517. LN_S = @LN_S@
  45518. LTLIBOBJS = @LTLIBOBJS@
  45519. MAINT = @MAINT@
  45520. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  45521. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  45522. MAKEINFO = @MAKEINFO@
  45523. +MKDIR_P = @MKDIR_P@
  45524. +NM = @NM@
  45525. +NMEDIT = @NMEDIT@
  45526. +OBJDUMP = @OBJDUMP@
  45527. OBJEXT = @OBJEXT@
  45528. OPT = @OPT@
  45529. +OTOOL = @OTOOL@
  45530. +OTOOL64 = @OTOOL64@
  45531. PACKAGE = @PACKAGE@
  45532. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  45533. PACKAGE_NAME = @PACKAGE_NAME@
  45534. PACKAGE_STRING = @PACKAGE_STRING@
  45535. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  45536. +PACKAGE_URL = @PACKAGE_URL@
  45537. PACKAGE_VERSION = @PACKAGE_VERSION@
  45538. PATH_SEPARATOR = @PATH_SEPARATOR@
  45539. PROFILE = @PROFILE@
  45540. RANLIB = @RANLIB@
  45541. +SED = @SED@
  45542. SET_MAKE = @SET_MAKE@
  45543. SHELL = @SHELL@
  45544. SIZE16 = @SIZE16@
  45545. @@ -134,16 +182,12 @@
  45546. USIZE16 = @USIZE16@
  45547. USIZE32 = @USIZE32@
  45548. VERSION = @VERSION@
  45549. -ac_ct_AR = @ac_ct_AR@
  45550. +abs_builddir = @abs_builddir@
  45551. +abs_srcdir = @abs_srcdir@
  45552. +abs_top_builddir = @abs_top_builddir@
  45553. +abs_top_srcdir = @abs_top_srcdir@
  45554. ac_ct_CC = @ac_ct_CC@
  45555. -ac_ct_CXX = @ac_ct_CXX@
  45556. -ac_ct_F77 = @ac_ct_F77@
  45557. -ac_ct_RANLIB = @ac_ct_RANLIB@
  45558. -ac_ct_STRIP = @ac_ct_STRIP@
  45559. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  45560. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  45561. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  45562. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  45563. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  45564. am__include = @am__include@
  45565. am__leading_dot = @am__leading_dot@
  45566. am__quote = @am__quote@
  45567. @@ -155,30 +199,42 @@
  45568. build_cpu = @build_cpu@
  45569. build_os = @build_os@
  45570. build_vendor = @build_vendor@
  45571. +builddir = @builddir@
  45572. datadir = @datadir@
  45573. +datarootdir = @datarootdir@
  45574. +docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
  45575. +dvidir = @dvidir@
  45576. exec_prefix = @exec_prefix@
  45577. host = @host@
  45578. host_alias = @host_alias@
  45579. host_cpu = @host_cpu@
  45580. host_os = @host_os@
  45581. host_vendor = @host_vendor@
  45582. +htmldir = @htmldir@
  45583. includedir = @includedir@
  45584. infodir = @infodir@
  45585. install_sh = @install_sh@
  45586. libdir = @libdir@
  45587. libexecdir = @libexecdir@
  45588. +localedir = @localedir@
  45589. localstatedir = @localstatedir@
  45590. +lt_ECHO = @lt_ECHO@
  45591. mandir = @mandir@
  45592. mkdir_p = @mkdir_p@
  45593. oldincludedir = @oldincludedir@
  45594. +pdfdir = @pdfdir@
  45595. prefix = @prefix@
  45596. program_transform_name = @program_transform_name@
  45597. +psdir = @psdir@
  45598. sbindir = @sbindir@
  45599. sharedstatedir = @sharedstatedir@
  45600. +srcdir = @srcdir@
  45601. sysconfdir = @sysconfdir@
  45602. target_alias = @target_alias@
  45603. +top_build_prefix = @top_build_prefix@
  45604. +top_builddir = @top_builddir@
  45605. +top_srcdir = @top_srcdir@
  45606. SUBDIRS = libogg
  45607. -docdir = $(datadir)/doc/$(PACKAGE)-$(VERSION)
  45608. doc_DATA = framing.html index.html oggstream.html ogg-multiplex.html \
  45609. stream.png vorbisword2.png white-ogg.png white-xifish.png \
  45610. rfc3533.txt rfc3534.txt
  45611. @@ -191,14 +247,14 @@
  45612. @for dep in $?; do \
  45613. case '$(am__configure_deps)' in \
  45614. *$$dep*) \
  45615. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  45616. - && exit 0; \
  45617. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  45618. + && { if test -f $@; then exit 0; else break; fi; }; \
  45619. exit 1;; \
  45620. esac; \
  45621. done; \
  45622. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  45623. - cd $(top_srcdir) && \
  45624. - $(AUTOMAKE) --gnu doc/Makefile
  45625. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  45626. + $(am__cd) $(top_srcdir) && \
  45627. + $(AUTOMAKE) --gnu doc/Makefile
  45628. .PRECIOUS: Makefile
  45629. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  45630. @case '$?' in \
  45631. @@ -216,33 +272,33 @@
  45632. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45633. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  45634. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  45635. +$(am__aclocal_m4_deps):
  45636. mostlyclean-libtool:
  45637. -rm -f *.lo
  45638. clean-libtool:
  45639. -rm -rf .libs _libs
  45640. -
  45641. -distclean-libtool:
  45642. - -rm -f libtool
  45643. -uninstall-info-am:
  45644. install-docDATA: $(doc_DATA)
  45645. @$(NORMAL_INSTALL)
  45646. - test -z "$(docdir)" || $(mkdir_p) "$(DESTDIR)$(docdir)"
  45647. - @list='$(doc_DATA)'; for p in $$list; do \
  45648. + test -z "$(docdir)" || $(MKDIR_P) "$(DESTDIR)$(docdir)"
  45649. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  45650. + for p in $$list; do \
  45651. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  45652. - f=$(am__strip_dir) \
  45653. - echo " $(docDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(docdir)/$$f'"; \
  45654. - $(docDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(docdir)/$$f"; \
  45655. + echo "$$d$$p"; \
  45656. + done | $(am__base_list) | \
  45657. + while read files; do \
  45658. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(docdir)'"; \
  45659. + $(INSTALL_DATA) $$files "$(DESTDIR)$(docdir)" || exit $$?; \
  45660. done
  45661. uninstall-docDATA:
  45662. @$(NORMAL_UNINSTALL)
  45663. - @list='$(doc_DATA)'; for p in $$list; do \
  45664. - f=$(am__strip_dir) \
  45665. - echo " rm -f '$(DESTDIR)$(docdir)/$$f'"; \
  45666. - rm -f "$(DESTDIR)$(docdir)/$$f"; \
  45667. - done
  45668. + @list='$(doc_DATA)'; test -n "$(docdir)" || list=; \
  45669. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  45670. + test -n "$$files" || exit 0; \
  45671. + echo " ( cd '$(DESTDIR)$(docdir)' && rm -f" $$files ")"; \
  45672. + cd "$(DESTDIR)$(docdir)" && rm -f $$files
  45673. # This directory's subdirectories are mostly independent; you can cd
  45674. # into them and run `make' without going through this Makefile.
  45675. @@ -251,7 +307,7 @@
  45676. # (which will cause the Makefiles to be regenerated when you run `make');
  45677. # (2) otherwise, pass the desired values on the `make' command line.
  45678. $(RECURSIVE_TARGETS):
  45679. - @failcom='exit 1'; \
  45680. + @fail= failcom='exit 1'; \
  45681. for f in x $$MAKEFLAGS; do \
  45682. case $$f in \
  45683. *=* | --[!k]*);; \
  45684. @@ -268,16 +324,15 @@
  45685. else \
  45686. local_target="$$target"; \
  45687. fi; \
  45688. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45689. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45690. || eval $$failcom; \
  45691. done; \
  45692. if test "$$dot_seen" = "no"; then \
  45693. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  45694. fi; test -z "$$fail"
  45695. -mostlyclean-recursive clean-recursive distclean-recursive \
  45696. -maintainer-clean-recursive:
  45697. - @failcom='exit 1'; \
  45698. +$(RECURSIVE_CLEAN_TARGETS):
  45699. + @fail= failcom='exit 1'; \
  45700. for f in x $$MAKEFLAGS; do \
  45701. case $$f in \
  45702. *=* | --[!k]*);; \
  45703. @@ -303,16 +358,16 @@
  45704. else \
  45705. local_target="$$target"; \
  45706. fi; \
  45707. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45708. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  45709. || eval $$failcom; \
  45710. done && test -z "$$fail"
  45711. tags-recursive:
  45712. list='$(SUBDIRS)'; for subdir in $$list; do \
  45713. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  45714. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  45715. done
  45716. ctags-recursive:
  45717. list='$(SUBDIRS)'; for subdir in $$list; do \
  45718. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  45719. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  45720. done
  45721. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  45722. @@ -320,14 +375,14 @@
  45723. unique=`for i in $$list; do \
  45724. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45725. done | \
  45726. - $(AWK) ' { files[$$0] = 1; } \
  45727. - END { for (i in files) print i; }'`; \
  45728. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45729. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45730. mkid -fID $$unique
  45731. tags: TAGS
  45732. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45733. $(TAGS_FILES) $(LISP)
  45734. - tags=; \
  45735. + set x; \
  45736. here=`pwd`; \
  45737. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  45738. include_option=--etags-include; \
  45739. @@ -339,81 +394,101 @@
  45740. list='$(SUBDIRS)'; for subdir in $$list; do \
  45741. if test "$$subdir" = .; then :; else \
  45742. test ! -f $$subdir/TAGS || \
  45743. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  45744. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  45745. fi; \
  45746. done; \
  45747. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45748. unique=`for i in $$list; do \
  45749. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45750. done | \
  45751. - $(AWK) ' { files[$$0] = 1; } \
  45752. - END { for (i in files) print i; }'`; \
  45753. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  45754. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45755. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45756. + shift; \
  45757. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  45758. test -n "$$unique" || unique=$$empty_fix; \
  45759. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45760. - $$tags $$unique; \
  45761. + if test $$# -gt 0; then \
  45762. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45763. + "$$@" $$unique; \
  45764. + else \
  45765. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  45766. + $$unique; \
  45767. + fi; \
  45768. fi
  45769. ctags: CTAGS
  45770. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  45771. $(TAGS_FILES) $(LISP)
  45772. - tags=; \
  45773. - here=`pwd`; \
  45774. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  45775. unique=`for i in $$list; do \
  45776. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  45777. done | \
  45778. - $(AWK) ' { files[$$0] = 1; } \
  45779. - END { for (i in files) print i; }'`; \
  45780. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  45781. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  45782. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  45783. + test -z "$(CTAGS_ARGS)$$unique" \
  45784. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  45785. - $$tags $$unique
  45786. + $$unique
  45787. GTAGS:
  45788. here=`$(am__cd) $(top_builddir) && pwd` \
  45789. - && cd $(top_srcdir) \
  45790. - && gtags -i $(GTAGS_ARGS) $$here
  45791. + && $(am__cd) $(top_srcdir) \
  45792. + && gtags -i $(GTAGS_ARGS) "$$here"
  45793. distclean-tags:
  45794. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  45795. distdir: $(DISTFILES)
  45796. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  45797. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  45798. - list='$(DISTFILES)'; for file in $$list; do \
  45799. - case $$file in \
  45800. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  45801. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  45802. - esac; \
  45803. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45804. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  45805. + list='$(DISTFILES)'; \
  45806. + dist_files=`for file in $$list; do echo $$file; done | \
  45807. + sed -e "s|^$$srcdirstrip/||;t" \
  45808. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  45809. + case $$dist_files in \
  45810. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  45811. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  45812. + sort -u` ;; \
  45813. + esac; \
  45814. + for file in $$dist_files; do \
  45815. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  45816. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  45817. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  45818. - dir="/$$dir"; \
  45819. - $(mkdir_p) "$(distdir)$$dir"; \
  45820. - else \
  45821. - dir=''; \
  45822. - fi; \
  45823. if test -d $$d/$$file; then \
  45824. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  45825. + if test -d "$(distdir)/$$file"; then \
  45826. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45827. + fi; \
  45828. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  45829. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  45830. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  45831. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  45832. fi; \
  45833. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  45834. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  45835. else \
  45836. - test -f $(distdir)/$$file \
  45837. - || cp -p $$d/$$file $(distdir)/$$file \
  45838. + test -f "$(distdir)/$$file" \
  45839. + || cp -p $$d/$$file "$(distdir)/$$file" \
  45840. || exit 1; \
  45841. fi; \
  45842. done
  45843. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45844. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45845. if test "$$subdir" = .; then :; else \
  45846. test -d "$(distdir)/$$subdir" \
  45847. - || $(mkdir_p) "$(distdir)/$$subdir" \
  45848. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  45849. || exit 1; \
  45850. - distdir=`$(am__cd) $(distdir) && pwd`; \
  45851. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  45852. - (cd $$subdir && \
  45853. + fi; \
  45854. + done
  45855. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  45856. + if test "$$subdir" = .; then :; else \
  45857. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  45858. + $(am__relativize); \
  45859. + new_distdir=$$reldir; \
  45860. + dir1=$$subdir; dir2="$(top_distdir)"; \
  45861. + $(am__relativize); \
  45862. + new_top_distdir=$$reldir; \
  45863. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  45864. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  45865. + ($(am__cd) $$subdir && \
  45866. $(MAKE) $(AM_MAKEFLAGS) \
  45867. - top_distdir="$$top_distdir" \
  45868. - distdir="$$distdir/$$subdir" \
  45869. + top_distdir="$$new_top_distdir" \
  45870. + distdir="$$new_distdir" \
  45871. + am__remove_distdir=: \
  45872. + am__skip_length_check=: \
  45873. + am__skip_mode_fix=: \
  45874. distdir) \
  45875. || exit 1; \
  45876. fi; \
  45877. @@ -424,7 +499,7 @@
  45878. installdirs: installdirs-recursive
  45879. installdirs-am:
  45880. for dir in "$(DESTDIR)$(docdir)"; do \
  45881. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  45882. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  45883. done
  45884. install: install-recursive
  45885. install-exec: install-exec-recursive
  45886. @@ -446,6 +521,7 @@
  45887. distclean-generic:
  45888. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  45889. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  45890. maintainer-clean-generic:
  45891. @echo "This command is intended for maintainers to use"
  45892. @@ -456,8 +532,7 @@
  45893. distclean: distclean-recursive
  45894. -rm -f Makefile
  45895. -distclean-am: clean-am distclean-generic distclean-libtool \
  45896. - distclean-tags
  45897. +distclean-am: clean-am distclean-generic distclean-tags
  45898. dvi: dvi-recursive
  45899. @@ -465,18 +540,38 @@
  45900. html: html-recursive
  45901. +html-am:
  45902. +
  45903. info: info-recursive
  45904. info-am:
  45905. install-data-am: install-docDATA
  45906. +install-dvi: install-dvi-recursive
  45907. +
  45908. +install-dvi-am:
  45909. +
  45910. install-exec-am:
  45911. +install-html: install-html-recursive
  45912. +
  45913. +install-html-am:
  45914. +
  45915. install-info: install-info-recursive
  45916. +install-info-am:
  45917. +
  45918. install-man:
  45919. +install-pdf: install-pdf-recursive
  45920. +
  45921. +install-pdf-am:
  45922. +
  45923. +install-ps: install-ps-recursive
  45924. +
  45925. +install-ps-am:
  45926. +
  45927. installcheck-am:
  45928. maintainer-clean: maintainer-clean-recursive
  45929. @@ -495,23 +590,25 @@
  45930. ps-am:
  45931. -uninstall-am: uninstall-docDATA uninstall-info-am
  45932. +uninstall-am: uninstall-docDATA
  45933. -uninstall-info: uninstall-info-recursive
  45934. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  45935. + install-am install-strip tags-recursive
  45936. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  45937. - clean clean-generic clean-libtool clean-recursive ctags \
  45938. - ctags-recursive distclean distclean-generic distclean-libtool \
  45939. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  45940. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  45941. + all all-am check check-am clean clean-generic clean-libtool \
  45942. + ctags ctags-recursive distclean distclean-generic \
  45943. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  45944. html-am info info-am install install-am install-data \
  45945. - install-data-am install-docDATA install-exec install-exec-am \
  45946. - install-info install-info-am install-man install-strip \
  45947. + install-data-am install-docDATA install-dvi install-dvi-am \
  45948. + install-exec install-exec-am install-html install-html-am \
  45949. + install-info install-info-am install-man install-pdf \
  45950. + install-pdf-am install-ps install-ps-am install-strip \
  45951. installcheck installcheck-am installdirs installdirs-am \
  45952. - maintainer-clean maintainer-clean-generic \
  45953. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  45954. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  45955. - tags tags-recursive uninstall uninstall-am uninstall-docDATA \
  45956. - uninstall-info-am
  45957. + maintainer-clean maintainer-clean-generic mostlyclean \
  45958. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  45959. + tags tags-recursive uninstall uninstall-am uninstall-docDATA
  45960. +
  45961. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  45962. # Otherwise a system limit (for SysV at least) may be exceeded.
  45963. diff -Nur libogg-1.1.3.orig/include/Makefile.in libogg-1.1.3/include/Makefile.in
  45964. --- libogg-1.1.3.orig/include/Makefile.in 2005-11-28 05:26:30.000000000 +0100
  45965. +++ libogg-1.1.3/include/Makefile.in 2011-02-17 18:12:13.623562894 +0100
  45966. @@ -1,8 +1,9 @@
  45967. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  45968. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  45969. # @configure_input@
  45970. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  45971. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  45972. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  45973. +# Inc.
  45974. # This Makefile.in is free software; the Free Software Foundation
  45975. # gives unlimited permission to copy and/or distribute it,
  45976. # with or without modifications, as long as this notice is preserved.
  45977. @@ -13,15 +14,12 @@
  45978. # PARTICULAR PURPOSE.
  45979. @SET_MAKE@
  45980. -srcdir = @srcdir@
  45981. -top_srcdir = @top_srcdir@
  45982. VPATH = @srcdir@
  45983. pkgdatadir = $(datadir)/@PACKAGE@
  45984. -pkglibdir = $(libdir)/@PACKAGE@
  45985. pkgincludedir = $(includedir)/@PACKAGE@
  45986. -top_builddir = ..
  45987. +pkglibdir = $(libdir)/@PACKAGE@
  45988. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  45989. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  45990. -INSTALL = @INSTALL@
  45991. install_sh_DATA = $(install_sh) -c -m 644
  45992. install_sh_PROGRAM = $(install_sh) -c
  45993. install_sh_SCRIPT = $(install_sh) -c
  45994. @@ -44,21 +42,51 @@
  45995. mkinstalldirs = $(install_sh) -d
  45996. CONFIG_HEADER = $(top_builddir)/config.h
  45997. CONFIG_CLEAN_FILES =
  45998. +CONFIG_CLEAN_VPATH_FILES =
  45999. SOURCES =
  46000. DIST_SOURCES =
  46001. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  46002. html-recursive info-recursive install-data-recursive \
  46003. - install-exec-recursive install-info-recursive \
  46004. - install-recursive installcheck-recursive installdirs-recursive \
  46005. - pdf-recursive ps-recursive uninstall-info-recursive \
  46006. - uninstall-recursive
  46007. + install-dvi-recursive install-exec-recursive \
  46008. + install-html-recursive install-info-recursive \
  46009. + install-pdf-recursive install-ps-recursive install-recursive \
  46010. + installcheck-recursive installdirs-recursive pdf-recursive \
  46011. + ps-recursive uninstall-recursive
  46012. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  46013. + distclean-recursive maintainer-clean-recursive
  46014. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  46015. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  46016. + distdir
  46017. ETAGS = etags
  46018. CTAGS = ctags
  46019. DIST_SUBDIRS = $(SUBDIRS)
  46020. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46021. +am__relativize = \
  46022. + dir0=`pwd`; \
  46023. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  46024. + sed_rest='s,^[^/]*/*,,'; \
  46025. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  46026. + sed_butlast='s,/*[^/]*$$,,'; \
  46027. + while test -n "$$dir1"; do \
  46028. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  46029. + if test "$$first" != "."; then \
  46030. + if test "$$first" = ".."; then \
  46031. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  46032. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  46033. + else \
  46034. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  46035. + if test "$$first2" = "$$first"; then \
  46036. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  46037. + else \
  46038. + dir2="../$$dir2"; \
  46039. + fi; \
  46040. + dir0="$$dir0"/"$$first"; \
  46041. + fi; \
  46042. + fi; \
  46043. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  46044. + done; \
  46045. + reldir="$$dir2"
  46046. ACLOCAL = @ACLOCAL@
  46047. -AMDEP_FALSE = @AMDEP_FALSE@
  46048. -AMDEP_TRUE = @AMDEP_TRUE@
  46049. AMTAR = @AMTAR@
  46050. AR = @AR@
  46051. AUTOCONF = @AUTOCONF@
  46052. @@ -70,26 +98,25 @@
  46053. CFLAGS = @CFLAGS@
  46054. CPP = @CPP@
  46055. CPPFLAGS = @CPPFLAGS@
  46056. -CXX = @CXX@
  46057. -CXXCPP = @CXXCPP@
  46058. -CXXDEPMODE = @CXXDEPMODE@
  46059. -CXXFLAGS = @CXXFLAGS@
  46060. CYGPATH_W = @CYGPATH_W@
  46061. DEBUG = @DEBUG@
  46062. DEFS = @DEFS@
  46063. DEPDIR = @DEPDIR@
  46064. -ECHO = @ECHO@
  46065. +DSYMUTIL = @DSYMUTIL@
  46066. +DUMPBIN = @DUMPBIN@
  46067. ECHO_C = @ECHO_C@
  46068. ECHO_N = @ECHO_N@
  46069. ECHO_T = @ECHO_T@
  46070. EGREP = @EGREP@
  46071. EXEEXT = @EXEEXT@
  46072. -F77 = @F77@
  46073. -FFLAGS = @FFLAGS@
  46074. +FGREP = @FGREP@
  46075. +GREP = @GREP@
  46076. +INSTALL = @INSTALL@
  46077. INSTALL_DATA = @INSTALL_DATA@
  46078. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46079. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46080. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46081. +LD = @LD@
  46082. LDFLAGS = @LDFLAGS@
  46083. LIBOBJS = @LIBOBJS@
  46084. LIBS = @LIBS@
  46085. @@ -98,23 +125,30 @@
  46086. LIB_AGE = @LIB_AGE@
  46087. LIB_CURRENT = @LIB_CURRENT@
  46088. LIB_REVISION = @LIB_REVISION@
  46089. +LIPO = @LIPO@
  46090. LN_S = @LN_S@
  46091. LTLIBOBJS = @LTLIBOBJS@
  46092. MAINT = @MAINT@
  46093. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  46094. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  46095. MAKEINFO = @MAKEINFO@
  46096. +MKDIR_P = @MKDIR_P@
  46097. +NM = @NM@
  46098. +NMEDIT = @NMEDIT@
  46099. +OBJDUMP = @OBJDUMP@
  46100. OBJEXT = @OBJEXT@
  46101. OPT = @OPT@
  46102. +OTOOL = @OTOOL@
  46103. +OTOOL64 = @OTOOL64@
  46104. PACKAGE = @PACKAGE@
  46105. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46106. PACKAGE_NAME = @PACKAGE_NAME@
  46107. PACKAGE_STRING = @PACKAGE_STRING@
  46108. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46109. +PACKAGE_URL = @PACKAGE_URL@
  46110. PACKAGE_VERSION = @PACKAGE_VERSION@
  46111. PATH_SEPARATOR = @PATH_SEPARATOR@
  46112. PROFILE = @PROFILE@
  46113. RANLIB = @RANLIB@
  46114. +SED = @SED@
  46115. SET_MAKE = @SET_MAKE@
  46116. SHELL = @SHELL@
  46117. SIZE16 = @SIZE16@
  46118. @@ -124,16 +158,12 @@
  46119. USIZE16 = @USIZE16@
  46120. USIZE32 = @USIZE32@
  46121. VERSION = @VERSION@
  46122. -ac_ct_AR = @ac_ct_AR@
  46123. +abs_builddir = @abs_builddir@
  46124. +abs_srcdir = @abs_srcdir@
  46125. +abs_top_builddir = @abs_top_builddir@
  46126. +abs_top_srcdir = @abs_top_srcdir@
  46127. ac_ct_CC = @ac_ct_CC@
  46128. -ac_ct_CXX = @ac_ct_CXX@
  46129. -ac_ct_F77 = @ac_ct_F77@
  46130. -ac_ct_RANLIB = @ac_ct_RANLIB@
  46131. -ac_ct_STRIP = @ac_ct_STRIP@
  46132. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  46133. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  46134. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  46135. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  46136. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46137. am__include = @am__include@
  46138. am__leading_dot = @am__leading_dot@
  46139. am__quote = @am__quote@
  46140. @@ -145,28 +175,41 @@
  46141. build_cpu = @build_cpu@
  46142. build_os = @build_os@
  46143. build_vendor = @build_vendor@
  46144. +builddir = @builddir@
  46145. datadir = @datadir@
  46146. +datarootdir = @datarootdir@
  46147. +docdir = @docdir@
  46148. +dvidir = @dvidir@
  46149. exec_prefix = @exec_prefix@
  46150. host = @host@
  46151. host_alias = @host_alias@
  46152. host_cpu = @host_cpu@
  46153. host_os = @host_os@
  46154. host_vendor = @host_vendor@
  46155. +htmldir = @htmldir@
  46156. includedir = @includedir@
  46157. infodir = @infodir@
  46158. install_sh = @install_sh@
  46159. libdir = @libdir@
  46160. libexecdir = @libexecdir@
  46161. +localedir = @localedir@
  46162. localstatedir = @localstatedir@
  46163. +lt_ECHO = @lt_ECHO@
  46164. mandir = @mandir@
  46165. mkdir_p = @mkdir_p@
  46166. oldincludedir = @oldincludedir@
  46167. +pdfdir = @pdfdir@
  46168. prefix = @prefix@
  46169. program_transform_name = @program_transform_name@
  46170. +psdir = @psdir@
  46171. sbindir = @sbindir@
  46172. sharedstatedir = @sharedstatedir@
  46173. +srcdir = @srcdir@
  46174. sysconfdir = @sysconfdir@
  46175. target_alias = @target_alias@
  46176. +top_build_prefix = @top_build_prefix@
  46177. +top_builddir = @top_builddir@
  46178. +top_srcdir = @top_srcdir@
  46179. SUBDIRS = ogg
  46180. all: all-recursive
  46181. @@ -175,14 +218,14 @@
  46182. @for dep in $?; do \
  46183. case '$(am__configure_deps)' in \
  46184. *$$dep*) \
  46185. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46186. - && exit 0; \
  46187. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46188. + && { if test -f $@; then exit 0; else break; fi; }; \
  46189. exit 1;; \
  46190. esac; \
  46191. done; \
  46192. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  46193. - cd $(top_srcdir) && \
  46194. - $(AUTOMAKE) --gnu include/Makefile
  46195. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/Makefile'; \
  46196. + $(am__cd) $(top_srcdir) && \
  46197. + $(AUTOMAKE) --gnu include/Makefile
  46198. .PRECIOUS: Makefile
  46199. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46200. @case '$?' in \
  46201. @@ -200,6 +243,7 @@
  46202. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46203. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46204. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46205. +$(am__aclocal_m4_deps):
  46206. mostlyclean-libtool:
  46207. -rm -f *.lo
  46208. @@ -207,10 +251,6 @@
  46209. clean-libtool:
  46210. -rm -rf .libs _libs
  46211. -distclean-libtool:
  46212. - -rm -f libtool
  46213. -uninstall-info-am:
  46214. -
  46215. # This directory's subdirectories are mostly independent; you can cd
  46216. # into them and run `make' without going through this Makefile.
  46217. # To change the values of `make' variables: instead of editing Makefiles,
  46218. @@ -218,7 +258,7 @@
  46219. # (which will cause the Makefiles to be regenerated when you run `make');
  46220. # (2) otherwise, pass the desired values on the `make' command line.
  46221. $(RECURSIVE_TARGETS):
  46222. - @failcom='exit 1'; \
  46223. + @fail= failcom='exit 1'; \
  46224. for f in x $$MAKEFLAGS; do \
  46225. case $$f in \
  46226. *=* | --[!k]*);; \
  46227. @@ -235,16 +275,15 @@
  46228. else \
  46229. local_target="$$target"; \
  46230. fi; \
  46231. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46232. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46233. || eval $$failcom; \
  46234. done; \
  46235. if test "$$dot_seen" = "no"; then \
  46236. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  46237. fi; test -z "$$fail"
  46238. -mostlyclean-recursive clean-recursive distclean-recursive \
  46239. -maintainer-clean-recursive:
  46240. - @failcom='exit 1'; \
  46241. +$(RECURSIVE_CLEAN_TARGETS):
  46242. + @fail= failcom='exit 1'; \
  46243. for f in x $$MAKEFLAGS; do \
  46244. case $$f in \
  46245. *=* | --[!k]*);; \
  46246. @@ -270,16 +309,16 @@
  46247. else \
  46248. local_target="$$target"; \
  46249. fi; \
  46250. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46251. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  46252. || eval $$failcom; \
  46253. done && test -z "$$fail"
  46254. tags-recursive:
  46255. list='$(SUBDIRS)'; for subdir in $$list; do \
  46256. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46257. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  46258. done
  46259. ctags-recursive:
  46260. list='$(SUBDIRS)'; for subdir in $$list; do \
  46261. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46262. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  46263. done
  46264. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46265. @@ -287,14 +326,14 @@
  46266. unique=`for i in $$list; do \
  46267. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46268. done | \
  46269. - $(AWK) ' { files[$$0] = 1; } \
  46270. - END { for (i in files) print i; }'`; \
  46271. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46272. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46273. mkid -fID $$unique
  46274. tags: TAGS
  46275. TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46276. $(TAGS_FILES) $(LISP)
  46277. - tags=; \
  46278. + set x; \
  46279. here=`pwd`; \
  46280. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  46281. include_option=--etags-include; \
  46282. @@ -306,81 +345,101 @@
  46283. list='$(SUBDIRS)'; for subdir in $$list; do \
  46284. if test "$$subdir" = .; then :; else \
  46285. test ! -f $$subdir/TAGS || \
  46286. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  46287. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  46288. fi; \
  46289. done; \
  46290. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46291. unique=`for i in $$list; do \
  46292. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46293. done | \
  46294. - $(AWK) ' { files[$$0] = 1; } \
  46295. - END { for (i in files) print i; }'`; \
  46296. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46297. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46298. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46299. + shift; \
  46300. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46301. test -n "$$unique" || unique=$$empty_fix; \
  46302. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46303. - $$tags $$unique; \
  46304. + if test $$# -gt 0; then \
  46305. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46306. + "$$@" $$unique; \
  46307. + else \
  46308. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46309. + $$unique; \
  46310. + fi; \
  46311. fi
  46312. ctags: CTAGS
  46313. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46314. $(TAGS_FILES) $(LISP)
  46315. - tags=; \
  46316. - here=`pwd`; \
  46317. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46318. unique=`for i in $$list; do \
  46319. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46320. done | \
  46321. - $(AWK) ' { files[$$0] = 1; } \
  46322. - END { for (i in files) print i; }'`; \
  46323. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46324. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46325. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46326. + test -z "$(CTAGS_ARGS)$$unique" \
  46327. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46328. - $$tags $$unique
  46329. + $$unique
  46330. GTAGS:
  46331. here=`$(am__cd) $(top_builddir) && pwd` \
  46332. - && cd $(top_srcdir) \
  46333. - && gtags -i $(GTAGS_ARGS) $$here
  46334. + && $(am__cd) $(top_srcdir) \
  46335. + && gtags -i $(GTAGS_ARGS) "$$here"
  46336. distclean-tags:
  46337. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46338. distdir: $(DISTFILES)
  46339. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  46340. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  46341. - list='$(DISTFILES)'; for file in $$list; do \
  46342. - case $$file in \
  46343. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  46344. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  46345. - esac; \
  46346. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46347. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46348. + list='$(DISTFILES)'; \
  46349. + dist_files=`for file in $$list; do echo $$file; done | \
  46350. + sed -e "s|^$$srcdirstrip/||;t" \
  46351. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  46352. + case $$dist_files in \
  46353. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  46354. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  46355. + sort -u` ;; \
  46356. + esac; \
  46357. + for file in $$dist_files; do \
  46358. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46359. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  46360. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  46361. - dir="/$$dir"; \
  46362. - $(mkdir_p) "$(distdir)$$dir"; \
  46363. - else \
  46364. - dir=''; \
  46365. - fi; \
  46366. if test -d $$d/$$file; then \
  46367. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46368. + if test -d "$(distdir)/$$file"; then \
  46369. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46370. + fi; \
  46371. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46372. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46373. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46374. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46375. fi; \
  46376. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46377. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46378. else \
  46379. - test -f $(distdir)/$$file \
  46380. - || cp -p $$d/$$file $(distdir)/$$file \
  46381. + test -f "$(distdir)/$$file" \
  46382. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46383. || exit 1; \
  46384. fi; \
  46385. done
  46386. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46387. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46388. if test "$$subdir" = .; then :; else \
  46389. test -d "$(distdir)/$$subdir" \
  46390. - || $(mkdir_p) "$(distdir)/$$subdir" \
  46391. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  46392. || exit 1; \
  46393. - distdir=`$(am__cd) $(distdir) && pwd`; \
  46394. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  46395. - (cd $$subdir && \
  46396. + fi; \
  46397. + done
  46398. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  46399. + if test "$$subdir" = .; then :; else \
  46400. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  46401. + $(am__relativize); \
  46402. + new_distdir=$$reldir; \
  46403. + dir1=$$subdir; dir2="$(top_distdir)"; \
  46404. + $(am__relativize); \
  46405. + new_top_distdir=$$reldir; \
  46406. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  46407. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  46408. + ($(am__cd) $$subdir && \
  46409. $(MAKE) $(AM_MAKEFLAGS) \
  46410. - top_distdir="$$top_distdir" \
  46411. - distdir="$$distdir/$$subdir" \
  46412. + top_distdir="$$new_top_distdir" \
  46413. + distdir="$$new_distdir" \
  46414. + am__remove_distdir=: \
  46415. + am__skip_length_check=: \
  46416. + am__skip_mode_fix=: \
  46417. distdir) \
  46418. || exit 1; \
  46419. fi; \
  46420. @@ -410,6 +469,7 @@
  46421. distclean-generic:
  46422. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46423. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46424. maintainer-clean-generic:
  46425. @echo "This command is intended for maintainers to use"
  46426. @@ -420,8 +480,7 @@
  46427. distclean: distclean-recursive
  46428. -rm -f Makefile
  46429. -distclean-am: clean-am distclean-generic distclean-libtool \
  46430. - distclean-tags
  46431. +distclean-am: clean-am distclean-generic distclean-tags
  46432. dvi: dvi-recursive
  46433. @@ -429,18 +488,38 @@
  46434. html: html-recursive
  46435. +html-am:
  46436. +
  46437. info: info-recursive
  46438. info-am:
  46439. install-data-am:
  46440. +install-dvi: install-dvi-recursive
  46441. +
  46442. +install-dvi-am:
  46443. +
  46444. install-exec-am:
  46445. +install-html: install-html-recursive
  46446. +
  46447. +install-html-am:
  46448. +
  46449. install-info: install-info-recursive
  46450. +install-info-am:
  46451. +
  46452. install-man:
  46453. +install-pdf: install-pdf-recursive
  46454. +
  46455. +install-pdf-am:
  46456. +
  46457. +install-ps: install-ps-recursive
  46458. +
  46459. +install-ps-am:
  46460. +
  46461. installcheck-am:
  46462. maintainer-clean: maintainer-clean-recursive
  46463. @@ -459,22 +538,25 @@
  46464. ps-am:
  46465. -uninstall-am: uninstall-info-am
  46466. +uninstall-am:
  46467. -uninstall-info: uninstall-info-recursive
  46468. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) ctags-recursive \
  46469. + install-am install-strip tags-recursive
  46470. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  46471. - clean clean-generic clean-libtool clean-recursive ctags \
  46472. - ctags-recursive distclean distclean-generic distclean-libtool \
  46473. - distclean-recursive distclean-tags distdir dvi dvi-am html \
  46474. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  46475. + all all-am check check-am clean clean-generic clean-libtool \
  46476. + ctags ctags-recursive distclean distclean-generic \
  46477. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  46478. html-am info info-am install install-am install-data \
  46479. - install-data-am install-exec install-exec-am install-info \
  46480. - install-info-am install-man install-strip installcheck \
  46481. + install-data-am install-dvi install-dvi-am install-exec \
  46482. + install-exec-am install-html install-html-am install-info \
  46483. + install-info-am install-man install-pdf install-pdf-am \
  46484. + install-ps install-ps-am install-strip installcheck \
  46485. installcheck-am installdirs installdirs-am maintainer-clean \
  46486. - maintainer-clean-generic maintainer-clean-recursive \
  46487. - mostlyclean mostlyclean-generic mostlyclean-libtool \
  46488. - mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  46489. - uninstall uninstall-am uninstall-info-am
  46490. + maintainer-clean-generic mostlyclean mostlyclean-generic \
  46491. + mostlyclean-libtool pdf pdf-am ps ps-am tags tags-recursive \
  46492. + uninstall uninstall-am
  46493. +
  46494. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46495. # Otherwise a system limit (for SysV at least) may be exceeded.
  46496. diff -Nur libogg-1.1.3.orig/include/ogg/Makefile.in libogg-1.1.3/include/ogg/Makefile.in
  46497. --- libogg-1.1.3.orig/include/ogg/Makefile.in 2005-11-28 05:26:30.000000000 +0100
  46498. +++ libogg-1.1.3/include/ogg/Makefile.in 2011-02-17 18:12:13.654802314 +0100
  46499. @@ -1,8 +1,9 @@
  46500. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  46501. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46502. # @configure_input@
  46503. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46504. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  46505. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46506. +# Inc.
  46507. # This Makefile.in is free software; the Free Software Foundation
  46508. # gives unlimited permission to copy and/or distribute it,
  46509. # with or without modifications, as long as this notice is preserved.
  46510. @@ -14,15 +15,12 @@
  46511. @SET_MAKE@
  46512. -srcdir = @srcdir@
  46513. -top_srcdir = @top_srcdir@
  46514. VPATH = @srcdir@
  46515. pkgdatadir = $(datadir)/@PACKAGE@
  46516. -pkglibdir = $(libdir)/@PACKAGE@
  46517. pkgincludedir = $(includedir)/@PACKAGE@
  46518. -top_builddir = ../..
  46519. +pkglibdir = $(libdir)/@PACKAGE@
  46520. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46521. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46522. -INSTALL = @INSTALL@
  46523. install_sh_DATA = $(install_sh) -c -m 644
  46524. install_sh_PROGRAM = $(install_sh) -c
  46525. install_sh_SCRIPT = $(install_sh) -c
  46526. @@ -46,6 +44,7 @@
  46527. mkinstalldirs = $(install_sh) -d
  46528. CONFIG_HEADER = $(top_builddir)/config.h
  46529. CONFIG_CLEAN_FILES = config_types.h
  46530. +CONFIG_CLEAN_VPATH_FILES =
  46531. SOURCES =
  46532. DIST_SOURCES =
  46533. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  46534. @@ -53,18 +52,29 @@
  46535. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46536. *) f=$$p;; \
  46537. esac;
  46538. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  46539. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46540. +am__install_max = 40
  46541. +am__nobase_strip_setup = \
  46542. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46543. +am__nobase_strip = \
  46544. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46545. +am__nobase_list = $(am__nobase_strip_setup); \
  46546. + for p in $$list; do echo "$$p $$p"; done | \
  46547. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46548. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46549. + if (++n[$$2] == $(am__install_max)) \
  46550. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46551. + END { for (dir in files) print dir, files[dir] }'
  46552. +am__base_list = \
  46553. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46554. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46555. am__installdirs = "$(DESTDIR)$(oggincludedir)" \
  46556. "$(DESTDIR)$(oggincludedir)"
  46557. -nodist_oggincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  46558. -oggincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  46559. HEADERS = $(nodist_ogginclude_HEADERS) $(ogginclude_HEADERS)
  46560. ETAGS = etags
  46561. CTAGS = ctags
  46562. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46563. ACLOCAL = @ACLOCAL@
  46564. -AMDEP_FALSE = @AMDEP_FALSE@
  46565. -AMDEP_TRUE = @AMDEP_TRUE@
  46566. AMTAR = @AMTAR@
  46567. AR = @AR@
  46568. AUTOCONF = @AUTOCONF@
  46569. @@ -76,26 +86,25 @@
  46570. CFLAGS = @CFLAGS@
  46571. CPP = @CPP@
  46572. CPPFLAGS = @CPPFLAGS@
  46573. -CXX = @CXX@
  46574. -CXXCPP = @CXXCPP@
  46575. -CXXDEPMODE = @CXXDEPMODE@
  46576. -CXXFLAGS = @CXXFLAGS@
  46577. CYGPATH_W = @CYGPATH_W@
  46578. DEBUG = @DEBUG@
  46579. DEFS = @DEFS@
  46580. DEPDIR = @DEPDIR@
  46581. -ECHO = @ECHO@
  46582. +DSYMUTIL = @DSYMUTIL@
  46583. +DUMPBIN = @DUMPBIN@
  46584. ECHO_C = @ECHO_C@
  46585. ECHO_N = @ECHO_N@
  46586. ECHO_T = @ECHO_T@
  46587. EGREP = @EGREP@
  46588. EXEEXT = @EXEEXT@
  46589. -F77 = @F77@
  46590. -FFLAGS = @FFLAGS@
  46591. +FGREP = @FGREP@
  46592. +GREP = @GREP@
  46593. +INSTALL = @INSTALL@
  46594. INSTALL_DATA = @INSTALL_DATA@
  46595. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46596. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46597. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46598. +LD = @LD@
  46599. LDFLAGS = @LDFLAGS@
  46600. LIBOBJS = @LIBOBJS@
  46601. LIBS = @LIBS@
  46602. @@ -104,23 +113,30 @@
  46603. LIB_AGE = @LIB_AGE@
  46604. LIB_CURRENT = @LIB_CURRENT@
  46605. LIB_REVISION = @LIB_REVISION@
  46606. +LIPO = @LIPO@
  46607. LN_S = @LN_S@
  46608. LTLIBOBJS = @LTLIBOBJS@
  46609. MAINT = @MAINT@
  46610. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  46611. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  46612. MAKEINFO = @MAKEINFO@
  46613. +MKDIR_P = @MKDIR_P@
  46614. +NM = @NM@
  46615. +NMEDIT = @NMEDIT@
  46616. +OBJDUMP = @OBJDUMP@
  46617. OBJEXT = @OBJEXT@
  46618. OPT = @OPT@
  46619. +OTOOL = @OTOOL@
  46620. +OTOOL64 = @OTOOL64@
  46621. PACKAGE = @PACKAGE@
  46622. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46623. PACKAGE_NAME = @PACKAGE_NAME@
  46624. PACKAGE_STRING = @PACKAGE_STRING@
  46625. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46626. +PACKAGE_URL = @PACKAGE_URL@
  46627. PACKAGE_VERSION = @PACKAGE_VERSION@
  46628. PATH_SEPARATOR = @PATH_SEPARATOR@
  46629. PROFILE = @PROFILE@
  46630. RANLIB = @RANLIB@
  46631. +SED = @SED@
  46632. SET_MAKE = @SET_MAKE@
  46633. SHELL = @SHELL@
  46634. SIZE16 = @SIZE16@
  46635. @@ -130,16 +146,12 @@
  46636. USIZE16 = @USIZE16@
  46637. USIZE32 = @USIZE32@
  46638. VERSION = @VERSION@
  46639. -ac_ct_AR = @ac_ct_AR@
  46640. +abs_builddir = @abs_builddir@
  46641. +abs_srcdir = @abs_srcdir@
  46642. +abs_top_builddir = @abs_top_builddir@
  46643. +abs_top_srcdir = @abs_top_srcdir@
  46644. ac_ct_CC = @ac_ct_CC@
  46645. -ac_ct_CXX = @ac_ct_CXX@
  46646. -ac_ct_F77 = @ac_ct_F77@
  46647. -ac_ct_RANLIB = @ac_ct_RANLIB@
  46648. -ac_ct_STRIP = @ac_ct_STRIP@
  46649. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  46650. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  46651. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  46652. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  46653. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46654. am__include = @am__include@
  46655. am__leading_dot = @am__leading_dot@
  46656. am__quote = @am__quote@
  46657. @@ -151,28 +163,41 @@
  46658. build_cpu = @build_cpu@
  46659. build_os = @build_os@
  46660. build_vendor = @build_vendor@
  46661. +builddir = @builddir@
  46662. datadir = @datadir@
  46663. +datarootdir = @datarootdir@
  46664. +docdir = @docdir@
  46665. +dvidir = @dvidir@
  46666. exec_prefix = @exec_prefix@
  46667. host = @host@
  46668. host_alias = @host_alias@
  46669. host_cpu = @host_cpu@
  46670. host_os = @host_os@
  46671. host_vendor = @host_vendor@
  46672. +htmldir = @htmldir@
  46673. includedir = @includedir@
  46674. infodir = @infodir@
  46675. install_sh = @install_sh@
  46676. libdir = @libdir@
  46677. libexecdir = @libexecdir@
  46678. +localedir = @localedir@
  46679. localstatedir = @localstatedir@
  46680. +lt_ECHO = @lt_ECHO@
  46681. mandir = @mandir@
  46682. mkdir_p = @mkdir_p@
  46683. oldincludedir = @oldincludedir@
  46684. +pdfdir = @pdfdir@
  46685. prefix = @prefix@
  46686. program_transform_name = @program_transform_name@
  46687. +psdir = @psdir@
  46688. sbindir = @sbindir@
  46689. sharedstatedir = @sharedstatedir@
  46690. +srcdir = @srcdir@
  46691. sysconfdir = @sysconfdir@
  46692. target_alias = @target_alias@
  46693. +top_build_prefix = @top_build_prefix@
  46694. +top_builddir = @top_builddir@
  46695. +top_srcdir = @top_srcdir@
  46696. oggincludedir = $(includedir)/ogg
  46697. ogginclude_HEADERS = ogg.h os_types.h
  46698. nodist_ogginclude_HEADERS = config_types.h
  46699. @@ -183,14 +208,14 @@
  46700. @for dep in $?; do \
  46701. case '$(am__configure_deps)' in \
  46702. *$$dep*) \
  46703. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46704. - && exit 0; \
  46705. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46706. + && { if test -f $@; then exit 0; else break; fi; }; \
  46707. exit 1;; \
  46708. esac; \
  46709. done; \
  46710. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/ogg/Makefile'; \
  46711. - cd $(top_srcdir) && \
  46712. - $(AUTOMAKE) --gnu include/ogg/Makefile
  46713. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu include/ogg/Makefile'; \
  46714. + $(am__cd) $(top_srcdir) && \
  46715. + $(AUTOMAKE) --gnu include/ogg/Makefile
  46716. .PRECIOUS: Makefile
  46717. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46718. @case '$?' in \
  46719. @@ -208,6 +233,7 @@
  46720. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46721. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  46722. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46723. +$(am__aclocal_m4_deps):
  46724. config_types.h: $(top_builddir)/config.status $(srcdir)/config_types.h.in
  46725. cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
  46726. @@ -216,117 +242,126 @@
  46727. clean-libtool:
  46728. -rm -rf .libs _libs
  46729. -
  46730. -distclean-libtool:
  46731. - -rm -f libtool
  46732. -uninstall-info-am:
  46733. install-nodist_oggincludeHEADERS: $(nodist_ogginclude_HEADERS)
  46734. @$(NORMAL_INSTALL)
  46735. - test -z "$(oggincludedir)" || $(mkdir_p) "$(DESTDIR)$(oggincludedir)"
  46736. - @list='$(nodist_ogginclude_HEADERS)'; for p in $$list; do \
  46737. + test -z "$(oggincludedir)" || $(MKDIR_P) "$(DESTDIR)$(oggincludedir)"
  46738. + @list='$(nodist_ogginclude_HEADERS)'; test -n "$(oggincludedir)" || list=; \
  46739. + for p in $$list; do \
  46740. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  46741. - f=$(am__strip_dir) \
  46742. - echo " $(nodist_oggincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(oggincludedir)/$$f'"; \
  46743. - $(nodist_oggincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(oggincludedir)/$$f"; \
  46744. + echo "$$d$$p"; \
  46745. + done | $(am__base_list) | \
  46746. + while read files; do \
  46747. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(oggincludedir)'"; \
  46748. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(oggincludedir)" || exit $$?; \
  46749. done
  46750. uninstall-nodist_oggincludeHEADERS:
  46751. @$(NORMAL_UNINSTALL)
  46752. - @list='$(nodist_ogginclude_HEADERS)'; for p in $$list; do \
  46753. - f=$(am__strip_dir) \
  46754. - echo " rm -f '$(DESTDIR)$(oggincludedir)/$$f'"; \
  46755. - rm -f "$(DESTDIR)$(oggincludedir)/$$f"; \
  46756. - done
  46757. + @list='$(nodist_ogginclude_HEADERS)'; test -n "$(oggincludedir)" || list=; \
  46758. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  46759. + test -n "$$files" || exit 0; \
  46760. + echo " ( cd '$(DESTDIR)$(oggincludedir)' && rm -f" $$files ")"; \
  46761. + cd "$(DESTDIR)$(oggincludedir)" && rm -f $$files
  46762. install-oggincludeHEADERS: $(ogginclude_HEADERS)
  46763. @$(NORMAL_INSTALL)
  46764. - test -z "$(oggincludedir)" || $(mkdir_p) "$(DESTDIR)$(oggincludedir)"
  46765. - @list='$(ogginclude_HEADERS)'; for p in $$list; do \
  46766. + test -z "$(oggincludedir)" || $(MKDIR_P) "$(DESTDIR)$(oggincludedir)"
  46767. + @list='$(ogginclude_HEADERS)'; test -n "$(oggincludedir)" || list=; \
  46768. + for p in $$list; do \
  46769. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  46770. - f=$(am__strip_dir) \
  46771. - echo " $(oggincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(oggincludedir)/$$f'"; \
  46772. - $(oggincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(oggincludedir)/$$f"; \
  46773. + echo "$$d$$p"; \
  46774. + done | $(am__base_list) | \
  46775. + while read files; do \
  46776. + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(oggincludedir)'"; \
  46777. + $(INSTALL_HEADER) $$files "$(DESTDIR)$(oggincludedir)" || exit $$?; \
  46778. done
  46779. uninstall-oggincludeHEADERS:
  46780. @$(NORMAL_UNINSTALL)
  46781. - @list='$(ogginclude_HEADERS)'; for p in $$list; do \
  46782. - f=$(am__strip_dir) \
  46783. - echo " rm -f '$(DESTDIR)$(oggincludedir)/$$f'"; \
  46784. - rm -f "$(DESTDIR)$(oggincludedir)/$$f"; \
  46785. - done
  46786. + @list='$(ogginclude_HEADERS)'; test -n "$(oggincludedir)" || list=; \
  46787. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  46788. + test -n "$$files" || exit 0; \
  46789. + echo " ( cd '$(DESTDIR)$(oggincludedir)' && rm -f" $$files ")"; \
  46790. + cd "$(DESTDIR)$(oggincludedir)" && rm -f $$files
  46791. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  46792. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46793. unique=`for i in $$list; do \
  46794. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46795. done | \
  46796. - $(AWK) ' { files[$$0] = 1; } \
  46797. - END { for (i in files) print i; }'`; \
  46798. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46799. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46800. mkid -fID $$unique
  46801. tags: TAGS
  46802. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46803. $(TAGS_FILES) $(LISP)
  46804. - tags=; \
  46805. + set x; \
  46806. here=`pwd`; \
  46807. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46808. unique=`for i in $$list; do \
  46809. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46810. done | \
  46811. - $(AWK) ' { files[$$0] = 1; } \
  46812. - END { for (i in files) print i; }'`; \
  46813. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  46814. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46815. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46816. + shift; \
  46817. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  46818. test -n "$$unique" || unique=$$empty_fix; \
  46819. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46820. - $$tags $$unique; \
  46821. + if test $$# -gt 0; then \
  46822. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46823. + "$$@" $$unique; \
  46824. + else \
  46825. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  46826. + $$unique; \
  46827. + fi; \
  46828. fi
  46829. ctags: CTAGS
  46830. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  46831. $(TAGS_FILES) $(LISP)
  46832. - tags=; \
  46833. - here=`pwd`; \
  46834. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  46835. unique=`for i in $$list; do \
  46836. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  46837. done | \
  46838. - $(AWK) ' { files[$$0] = 1; } \
  46839. - END { for (i in files) print i; }'`; \
  46840. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  46841. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  46842. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  46843. + test -z "$(CTAGS_ARGS)$$unique" \
  46844. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  46845. - $$tags $$unique
  46846. + $$unique
  46847. GTAGS:
  46848. here=`$(am__cd) $(top_builddir) && pwd` \
  46849. - && cd $(top_srcdir) \
  46850. - && gtags -i $(GTAGS_ARGS) $$here
  46851. + && $(am__cd) $(top_srcdir) \
  46852. + && gtags -i $(GTAGS_ARGS) "$$here"
  46853. distclean-tags:
  46854. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  46855. distdir: $(DISTFILES)
  46856. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  46857. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  46858. - list='$(DISTFILES)'; for file in $$list; do \
  46859. - case $$file in \
  46860. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  46861. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  46862. - esac; \
  46863. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46864. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46865. + list='$(DISTFILES)'; \
  46866. + dist_files=`for file in $$list; do echo $$file; done | \
  46867. + sed -e "s|^$$srcdirstrip/||;t" \
  46868. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  46869. + case $$dist_files in \
  46870. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  46871. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  46872. + sort -u` ;; \
  46873. + esac; \
  46874. + for file in $$dist_files; do \
  46875. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46876. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  46877. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  46878. - dir="/$$dir"; \
  46879. - $(mkdir_p) "$(distdir)$$dir"; \
  46880. - else \
  46881. - dir=''; \
  46882. - fi; \
  46883. if test -d $$d/$$file; then \
  46884. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46885. + if test -d "$(distdir)/$$file"; then \
  46886. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46887. + fi; \
  46888. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46889. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46890. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46891. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46892. fi; \
  46893. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46894. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46895. else \
  46896. - test -f $(distdir)/$$file \
  46897. - || cp -p $$d/$$file $(distdir)/$$file \
  46898. + test -f "$(distdir)/$$file" \
  46899. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46900. || exit 1; \
  46901. fi; \
  46902. done
  46903. @@ -335,7 +370,7 @@
  46904. all-am: Makefile $(HEADERS)
  46905. installdirs:
  46906. for dir in "$(DESTDIR)$(oggincludedir)" "$(DESTDIR)$(oggincludedir)"; do \
  46907. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  46908. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  46909. done
  46910. install: install-am
  46911. install-exec: install-exec-am
  46912. @@ -357,6 +392,7 @@
  46913. distclean-generic:
  46914. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46915. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46916. maintainer-clean-generic:
  46917. @echo "This command is intended for maintainers to use"
  46918. @@ -367,8 +403,7 @@
  46919. distclean: distclean-am
  46920. -rm -f Makefile
  46921. -distclean-am: clean-am distclean-generic distclean-libtool \
  46922. - distclean-tags
  46923. +distclean-am: clean-am distclean-generic distclean-tags
  46924. dvi: dvi-am
  46925. @@ -376,6 +411,8 @@
  46926. html: html-am
  46927. +html-am:
  46928. +
  46929. info: info-am
  46930. info-am:
  46931. @@ -383,12 +420,30 @@
  46932. install-data-am: install-nodist_oggincludeHEADERS \
  46933. install-oggincludeHEADERS
  46934. +install-dvi: install-dvi-am
  46935. +
  46936. +install-dvi-am:
  46937. +
  46938. install-exec-am:
  46939. +install-html: install-html-am
  46940. +
  46941. +install-html-am:
  46942. +
  46943. install-info: install-info-am
  46944. +install-info-am:
  46945. +
  46946. install-man:
  46947. +install-pdf: install-pdf-am
  46948. +
  46949. +install-pdf-am:
  46950. +
  46951. +install-ps: install-ps-am
  46952. +
  46953. +install-ps-am:
  46954. +
  46955. installcheck-am:
  46956. maintainer-clean: maintainer-clean-am
  46957. @@ -407,21 +462,26 @@
  46958. ps-am:
  46959. -uninstall-am: uninstall-info-am uninstall-nodist_oggincludeHEADERS \
  46960. +uninstall-am: uninstall-nodist_oggincludeHEADERS \
  46961. uninstall-oggincludeHEADERS
  46962. +.MAKE: install-am install-strip
  46963. +
  46964. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  46965. clean-libtool ctags distclean distclean-generic \
  46966. distclean-libtool distclean-tags distdir dvi dvi-am html \
  46967. html-am info info-am install install-am install-data \
  46968. - install-data-am install-exec install-exec-am install-info \
  46969. + install-data-am install-dvi install-dvi-am install-exec \
  46970. + install-exec-am install-html install-html-am install-info \
  46971. install-info-am install-man install-nodist_oggincludeHEADERS \
  46972. - install-oggincludeHEADERS install-strip installcheck \
  46973. + install-oggincludeHEADERS install-pdf install-pdf-am \
  46974. + install-ps install-ps-am install-strip installcheck \
  46975. installcheck-am installdirs maintainer-clean \
  46976. maintainer-clean-generic mostlyclean mostlyclean-generic \
  46977. mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
  46978. - uninstall-am uninstall-info-am \
  46979. - uninstall-nodist_oggincludeHEADERS uninstall-oggincludeHEADERS
  46980. + uninstall-am uninstall-nodist_oggincludeHEADERS \
  46981. + uninstall-oggincludeHEADERS
  46982. +
  46983. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  46984. # Otherwise a system limit (for SysV at least) may be exceeded.
  46985. diff -Nur libogg-1.1.3.orig/install-sh libogg-1.1.3/install-sh
  46986. --- libogg-1.1.3.orig/install-sh 2005-04-14 07:08:53.000000000 +0200
  46987. +++ libogg-1.1.3/install-sh 2011-02-17 18:12:13.513552365 +0100
  46988. @@ -1,7 +1,7 @@
  46989. #!/bin/sh
  46990. # install - install a program, script, or datafile
  46991. -scriptversion=2005-02-02.21
  46992. +scriptversion=2009-04-28.21; # UTC
  46993. # This originates from X11R5 (mit/util/scripts/install.sh), which was
  46994. # later released in X11R6 (xc/config/util/install.sh) with the
  46995. @@ -39,38 +39,68 @@
  46996. # when there is no Makefile.
  46997. #
  46998. # This script is compatible with the BSD install script, but was written
  46999. -# from scratch. It can only install one file at a time, a restriction
  47000. -# shared with many OS's install programs.
  47001. +# from scratch.
  47002. +
  47003. +nl='
  47004. +'
  47005. +IFS=" "" $nl"
  47006. # set DOITPROG to echo to test this script
  47007. # Don't use :- since 4.3BSD and earlier shells don't like it.
  47008. -doit="${DOITPROG-}"
  47009. +doit=${DOITPROG-}
  47010. +if test -z "$doit"; then
  47011. + doit_exec=exec
  47012. +else
  47013. + doit_exec=$doit
  47014. +fi
  47015. -# put in absolute paths if you don't have them in your path; or use env. vars.
  47016. +# Put in absolute file names if you don't have them in your path;
  47017. +# or use environment vars.
  47018. -mvprog="${MVPROG-mv}"
  47019. -cpprog="${CPPROG-cp}"
  47020. -chmodprog="${CHMODPROG-chmod}"
  47021. -chownprog="${CHOWNPROG-chown}"
  47022. -chgrpprog="${CHGRPPROG-chgrp}"
  47023. -stripprog="${STRIPPROG-strip}"
  47024. -rmprog="${RMPROG-rm}"
  47025. -mkdirprog="${MKDIRPROG-mkdir}"
  47026. +chgrpprog=${CHGRPPROG-chgrp}
  47027. +chmodprog=${CHMODPROG-chmod}
  47028. +chownprog=${CHOWNPROG-chown}
  47029. +cmpprog=${CMPPROG-cmp}
  47030. +cpprog=${CPPROG-cp}
  47031. +mkdirprog=${MKDIRPROG-mkdir}
  47032. +mvprog=${MVPROG-mv}
  47033. +rmprog=${RMPROG-rm}
  47034. +stripprog=${STRIPPROG-strip}
  47035. +
  47036. +posix_glob='?'
  47037. +initialize_posix_glob='
  47038. + test "$posix_glob" != "?" || {
  47039. + if (set -f) 2>/dev/null; then
  47040. + posix_glob=
  47041. + else
  47042. + posix_glob=:
  47043. + fi
  47044. + }
  47045. +'
  47046. +
  47047. +posix_mkdir=
  47048. +
  47049. +# Desired mode of installed file.
  47050. +mode=0755
  47051. -chmodcmd="$chmodprog 0755"
  47052. -chowncmd=
  47053. chgrpcmd=
  47054. -stripcmd=
  47055. +chmodcmd=$chmodprog
  47056. +chowncmd=
  47057. +mvcmd=$mvprog
  47058. rmcmd="$rmprog -f"
  47059. -mvcmd="$mvprog"
  47060. +stripcmd=
  47061. +
  47062. src=
  47063. dst=
  47064. dir_arg=
  47065. -dstarg=
  47066. +dst_arg=
  47067. +
  47068. +copy_on_change=false
  47069. no_target_directory=
  47070. -usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47071. +usage="\
  47072. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47073. or: $0 [OPTION]... SRCFILES... DIRECTORY
  47074. or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  47075. or: $0 [OPTION]... -d DIRECTORIES...
  47076. @@ -80,81 +110,86 @@
  47077. In the 4th, create DIRECTORIES.
  47078. Options:
  47079. --c (ignored)
  47080. --d create directories instead of installing files.
  47081. --g GROUP $chgrpprog installed files to GROUP.
  47082. --m MODE $chmodprog installed files to MODE.
  47083. --o USER $chownprog installed files to USER.
  47084. --s $stripprog installed files.
  47085. --t DIRECTORY install into DIRECTORY.
  47086. --T report an error if DSTFILE is a directory.
  47087. ---help display this help and exit.
  47088. ---version display version info and exit.
  47089. + --help display this help and exit.
  47090. + --version display version info and exit.
  47091. +
  47092. + -c (ignored)
  47093. + -C install only if different (preserve the last data modification time)
  47094. + -d create directories instead of installing files.
  47095. + -g GROUP $chgrpprog installed files to GROUP.
  47096. + -m MODE $chmodprog installed files to MODE.
  47097. + -o USER $chownprog installed files to USER.
  47098. + -s $stripprog installed files.
  47099. + -t DIRECTORY install into DIRECTORY.
  47100. + -T report an error if DSTFILE is a directory.
  47101. Environment variables override the default commands:
  47102. - CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
  47103. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  47104. + RMPROG STRIPPROG
  47105. "
  47106. -while test -n "$1"; do
  47107. +while test $# -ne 0; do
  47108. case $1 in
  47109. - -c) shift
  47110. - continue;;
  47111. + -c) ;;
  47112. - -d) dir_arg=true
  47113. - shift
  47114. - continue;;
  47115. + -C) copy_on_change=true;;
  47116. +
  47117. + -d) dir_arg=true;;
  47118. -g) chgrpcmd="$chgrpprog $2"
  47119. - shift
  47120. - shift
  47121. - continue;;
  47122. + shift;;
  47123. --help) echo "$usage"; exit $?;;
  47124. - -m) chmodcmd="$chmodprog $2"
  47125. - shift
  47126. - shift
  47127. - continue;;
  47128. + -m) mode=$2
  47129. + case $mode in
  47130. + *' '* | *' '* | *'
  47131. +'* | *'*'* | *'?'* | *'['*)
  47132. + echo "$0: invalid mode: $mode" >&2
  47133. + exit 1;;
  47134. + esac
  47135. + shift;;
  47136. -o) chowncmd="$chownprog $2"
  47137. - shift
  47138. - shift
  47139. - continue;;
  47140. -
  47141. - -s) stripcmd=$stripprog
  47142. - shift
  47143. - continue;;
  47144. -
  47145. - -t) dstarg=$2
  47146. - shift
  47147. - shift
  47148. - continue;;
  47149. -
  47150. - -T) no_target_directory=true
  47151. - shift
  47152. - continue;;
  47153. + shift;;
  47154. +
  47155. + -s) stripcmd=$stripprog;;
  47156. +
  47157. + -t) dst_arg=$2
  47158. + shift;;
  47159. +
  47160. + -T) no_target_directory=true;;
  47161. --version) echo "$0 $scriptversion"; exit $?;;
  47162. - *) # When -d is used, all remaining arguments are directories to create.
  47163. - # When -t is used, the destination is already specified.
  47164. - test -n "$dir_arg$dstarg" && break
  47165. - # Otherwise, the last argument is the destination. Remove it from $@.
  47166. - for arg
  47167. - do
  47168. - if test -n "$dstarg"; then
  47169. - # $@ is not empty: it contains at least $arg.
  47170. - set fnord "$@" "$dstarg"
  47171. - shift # fnord
  47172. - fi
  47173. - shift # arg
  47174. - dstarg=$arg
  47175. - done
  47176. + --) shift
  47177. break;;
  47178. +
  47179. + -*) echo "$0: invalid option: $1" >&2
  47180. + exit 1;;
  47181. +
  47182. + *) break;;
  47183. esac
  47184. + shift
  47185. done
  47186. -if test -z "$1"; then
  47187. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  47188. + # When -d is used, all remaining arguments are directories to create.
  47189. + # When -t is used, the destination is already specified.
  47190. + # Otherwise, the last argument is the destination. Remove it from $@.
  47191. + for arg
  47192. + do
  47193. + if test -n "$dst_arg"; then
  47194. + # $@ is not empty: it contains at least $arg.
  47195. + set fnord "$@" "$dst_arg"
  47196. + shift # fnord
  47197. + fi
  47198. + shift # arg
  47199. + dst_arg=$arg
  47200. + done
  47201. +fi
  47202. +
  47203. +if test $# -eq 0; then
  47204. if test -z "$dir_arg"; then
  47205. echo "$0: no input file specified." >&2
  47206. exit 1
  47207. @@ -164,24 +199,47 @@
  47208. exit 0
  47209. fi
  47210. +if test -z "$dir_arg"; then
  47211. + trap '(exit $?); exit' 1 2 13 15
  47212. +
  47213. + # Set umask so as not to create temps with too-generous modes.
  47214. + # However, 'strip' requires both read and write access to temps.
  47215. + case $mode in
  47216. + # Optimize common cases.
  47217. + *644) cp_umask=133;;
  47218. + *755) cp_umask=22;;
  47219. +
  47220. + *[0-7])
  47221. + if test -z "$stripcmd"; then
  47222. + u_plus_rw=
  47223. + else
  47224. + u_plus_rw='% 200'
  47225. + fi
  47226. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  47227. + *)
  47228. + if test -z "$stripcmd"; then
  47229. + u_plus_rw=
  47230. + else
  47231. + u_plus_rw=,u+rw
  47232. + fi
  47233. + cp_umask=$mode$u_plus_rw;;
  47234. + esac
  47235. +fi
  47236. +
  47237. for src
  47238. do
  47239. # Protect names starting with `-'.
  47240. case $src in
  47241. - -*) src=./$src ;;
  47242. + -*) src=./$src;;
  47243. esac
  47244. if test -n "$dir_arg"; then
  47245. dst=$src
  47246. - src=
  47247. -
  47248. - if test -d "$dst"; then
  47249. - mkdircmd=:
  47250. - chmodcmd=
  47251. - else
  47252. - mkdircmd=$mkdirprog
  47253. - fi
  47254. + dstdir=$dst
  47255. + test -d "$dstdir"
  47256. + dstdir_status=$?
  47257. else
  47258. +
  47259. # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  47260. # might cause directories to be created, which would be especially bad
  47261. # if $src (and thus $dsttmp) contains '*'.
  47262. @@ -190,71 +248,199 @@
  47263. exit 1
  47264. fi
  47265. - if test -z "$dstarg"; then
  47266. + if test -z "$dst_arg"; then
  47267. echo "$0: no destination specified." >&2
  47268. exit 1
  47269. fi
  47270. - dst=$dstarg
  47271. + dst=$dst_arg
  47272. # Protect names starting with `-'.
  47273. case $dst in
  47274. - -*) dst=./$dst ;;
  47275. + -*) dst=./$dst;;
  47276. esac
  47277. # If destination is a directory, append the input filename; won't work
  47278. # if double slashes aren't ignored.
  47279. if test -d "$dst"; then
  47280. if test -n "$no_target_directory"; then
  47281. - echo "$0: $dstarg: Is a directory" >&2
  47282. + echo "$0: $dst_arg: Is a directory" >&2
  47283. exit 1
  47284. fi
  47285. - dst=$dst/`basename "$src"`
  47286. + dstdir=$dst
  47287. + dst=$dstdir/`basename "$src"`
  47288. + dstdir_status=0
  47289. + else
  47290. + # Prefer dirname, but fall back on a substitute if dirname fails.
  47291. + dstdir=`
  47292. + (dirname "$dst") 2>/dev/null ||
  47293. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47294. + X"$dst" : 'X\(//\)[^/]' \| \
  47295. + X"$dst" : 'X\(//\)$' \| \
  47296. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  47297. + echo X"$dst" |
  47298. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47299. + s//\1/
  47300. + q
  47301. + }
  47302. + /^X\(\/\/\)[^/].*/{
  47303. + s//\1/
  47304. + q
  47305. + }
  47306. + /^X\(\/\/\)$/{
  47307. + s//\1/
  47308. + q
  47309. + }
  47310. + /^X\(\/\).*/{
  47311. + s//\1/
  47312. + q
  47313. + }
  47314. + s/.*/./; q'
  47315. + `
  47316. +
  47317. + test -d "$dstdir"
  47318. + dstdir_status=$?
  47319. fi
  47320. fi
  47321. - # This sed command emulates the dirname command.
  47322. - dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
  47323. -
  47324. - # Make sure that the destination directory exists.
  47325. + obsolete_mkdir_used=false
  47326. - # Skip lots of stat calls in the usual case.
  47327. - if test ! -d "$dstdir"; then
  47328. - defaultIFS='
  47329. - '
  47330. - IFS="${IFS-$defaultIFS}"
  47331. -
  47332. - oIFS=$IFS
  47333. - # Some sh's can't handle IFS=/ for some reason.
  47334. - IFS='%'
  47335. - set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
  47336. - shift
  47337. - IFS=$oIFS
  47338. + if test $dstdir_status != 0; then
  47339. + case $posix_mkdir in
  47340. + '')
  47341. + # Create intermediate dirs using mode 755 as modified by the umask.
  47342. + # This is like FreeBSD 'install' as of 1997-10-28.
  47343. + umask=`umask`
  47344. + case $stripcmd.$umask in
  47345. + # Optimize common cases.
  47346. + *[2367][2367]) mkdir_umask=$umask;;
  47347. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  47348. +
  47349. + *[0-7])
  47350. + mkdir_umask=`expr $umask + 22 \
  47351. + - $umask % 100 % 40 + $umask % 20 \
  47352. + - $umask % 10 % 4 + $umask % 2
  47353. + `;;
  47354. + *) mkdir_umask=$umask,go-w;;
  47355. + esac
  47356. +
  47357. + # With -d, create the new directory with the user-specified mode.
  47358. + # Otherwise, rely on $mkdir_umask.
  47359. + if test -n "$dir_arg"; then
  47360. + mkdir_mode=-m$mode
  47361. + else
  47362. + mkdir_mode=
  47363. + fi
  47364. +
  47365. + posix_mkdir=false
  47366. + case $umask in
  47367. + *[123567][0-7][0-7])
  47368. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  47369. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  47370. + ;;
  47371. + *)
  47372. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  47373. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  47374. +
  47375. + if (umask $mkdir_umask &&
  47376. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  47377. + then
  47378. + if test -z "$dir_arg" || {
  47379. + # Check for POSIX incompatibilities with -m.
  47380. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  47381. + # other-writeable bit of parent directory when it shouldn't.
  47382. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  47383. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  47384. + case $ls_ld_tmpdir in
  47385. + d????-?r-*) different_mode=700;;
  47386. + d????-?--*) different_mode=755;;
  47387. + *) false;;
  47388. + esac &&
  47389. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  47390. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  47391. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  47392. + }
  47393. + }
  47394. + then posix_mkdir=:
  47395. + fi
  47396. + rmdir "$tmpdir/d" "$tmpdir"
  47397. + else
  47398. + # Remove any dirs left behind by ancient mkdir implementations.
  47399. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  47400. + fi
  47401. + trap '' 0;;
  47402. + esac;;
  47403. + esac
  47404. - pathcomp=
  47405. + if
  47406. + $posix_mkdir && (
  47407. + umask $mkdir_umask &&
  47408. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  47409. + )
  47410. + then :
  47411. + else
  47412. - while test $# -ne 0 ; do
  47413. - pathcomp=$pathcomp$1
  47414. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  47415. + # or it failed possibly due to a race condition. Create the
  47416. + # directory the slow way, step by step, checking for races as we go.
  47417. +
  47418. + case $dstdir in
  47419. + /*) prefix='/';;
  47420. + -*) prefix='./';;
  47421. + *) prefix='';;
  47422. + esac
  47423. +
  47424. + eval "$initialize_posix_glob"
  47425. +
  47426. + oIFS=$IFS
  47427. + IFS=/
  47428. + $posix_glob set -f
  47429. + set fnord $dstdir
  47430. shift
  47431. - if test ! -d "$pathcomp"; then
  47432. - $mkdirprog "$pathcomp"
  47433. - # mkdir can fail with a `File exist' error in case several
  47434. - # install-sh are creating the directory concurrently. This
  47435. - # is OK.
  47436. - test -d "$pathcomp" || exit
  47437. + $posix_glob set +f
  47438. + IFS=$oIFS
  47439. +
  47440. + prefixes=
  47441. +
  47442. + for d
  47443. + do
  47444. + test -z "$d" && continue
  47445. +
  47446. + prefix=$prefix$d
  47447. + if test -d "$prefix"; then
  47448. + prefixes=
  47449. + else
  47450. + if $posix_mkdir; then
  47451. + (umask=$mkdir_umask &&
  47452. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  47453. + # Don't fail if two instances are running concurrently.
  47454. + test -d "$prefix" || exit 1
  47455. + else
  47456. + case $prefix in
  47457. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  47458. + *) qprefix=$prefix;;
  47459. + esac
  47460. + prefixes="$prefixes '$qprefix'"
  47461. + fi
  47462. + fi
  47463. + prefix=$prefix/
  47464. + done
  47465. +
  47466. + if test -n "$prefixes"; then
  47467. + # Don't fail if two instances are running concurrently.
  47468. + (umask $mkdir_umask &&
  47469. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  47470. + test -d "$dstdir" || exit 1
  47471. + obsolete_mkdir_used=true
  47472. fi
  47473. - pathcomp=$pathcomp/
  47474. - done
  47475. + fi
  47476. fi
  47477. if test -n "$dir_arg"; then
  47478. - $doit $mkdircmd "$dst" \
  47479. - && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
  47480. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
  47481. - && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
  47482. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
  47483. -
  47484. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  47485. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  47486. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  47487. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  47488. else
  47489. - dstfile=`basename "$dst"`
  47490. # Make a couple of temp file names in the proper directory.
  47491. dsttmp=$dstdir/_inst.$$_
  47492. @@ -262,10 +448,9 @@
  47493. # Trap to clean up those temp files at exit.
  47494. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  47495. - trap '(exit $?); exit' 1 2 13 15
  47496. # Copy the file name to the temp name.
  47497. - $doit $cpprog "$src" "$dsttmp" &&
  47498. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  47499. # and set any options; do chmod last to preserve setuid bits.
  47500. #
  47501. @@ -273,51 +458,63 @@
  47502. # ignore errors from any of these, just make sure not to ignore
  47503. # errors from the above "$doit $cpprog $src $dsttmp" command.
  47504. #
  47505. - { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
  47506. - && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
  47507. - && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
  47508. - && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
  47509. -
  47510. - # Now rename the file to the real destination.
  47511. - { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
  47512. - || {
  47513. - # The rename failed, perhaps because mv can't rename something else
  47514. - # to itself, or perhaps because mv is so ancient that it does not
  47515. - # support -f.
  47516. -
  47517. - # Now remove or move aside any old file at destination location.
  47518. - # We try this two ways since rm can't unlink itself on some
  47519. - # systems and the destination file might be busy for other
  47520. - # reasons. In this case, the final cleanup might fail but the new
  47521. - # file should still install successfully.
  47522. - {
  47523. - if test -f "$dstdir/$dstfile"; then
  47524. - $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
  47525. - || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
  47526. - || {
  47527. - echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
  47528. - (exit 1); exit 1
  47529. - }
  47530. - else
  47531. - :
  47532. - fi
  47533. - } &&
  47534. -
  47535. - # Now rename the file to the real destination.
  47536. - $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
  47537. - }
  47538. - }
  47539. - fi || { (exit 1); exit 1; }
  47540. -done
  47541. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  47542. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  47543. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  47544. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47545. +
  47546. + # If -C, don't bother to copy if it wouldn't change the file.
  47547. + if $copy_on_change &&
  47548. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  47549. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  47550. +
  47551. + eval "$initialize_posix_glob" &&
  47552. + $posix_glob set -f &&
  47553. + set X $old && old=:$2:$4:$5:$6 &&
  47554. + set X $new && new=:$2:$4:$5:$6 &&
  47555. + $posix_glob set +f &&
  47556. +
  47557. + test "$old" = "$new" &&
  47558. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  47559. + then
  47560. + rm -f "$dsttmp"
  47561. + else
  47562. + # Rename the file to the real destination.
  47563. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  47564. -# The final little trick to "correctly" pass the exit status to the exit trap.
  47565. -{
  47566. - (exit 0); exit 0
  47567. -}
  47568. + # The rename failed, perhaps because mv can't rename something else
  47569. + # to itself, or perhaps because mv is so ancient that it does not
  47570. + # support -f.
  47571. + {
  47572. + # Now remove or move aside any old file at destination location.
  47573. + # We try this two ways since rm can't unlink itself on some
  47574. + # systems and the destination file might be busy for other
  47575. + # reasons. In this case, the final cleanup might fail but the new
  47576. + # file should still install successfully.
  47577. + {
  47578. + test ! -f "$dst" ||
  47579. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  47580. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  47581. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  47582. + } ||
  47583. + { echo "$0: cannot unlink or rename $dst" >&2
  47584. + (exit 1); exit 1
  47585. + }
  47586. + } &&
  47587. +
  47588. + # Now rename the file to the real destination.
  47589. + $doit $mvcmd "$dsttmp" "$dst"
  47590. + }
  47591. + fi || exit 1
  47592. +
  47593. + trap '' 0
  47594. + fi
  47595. +done
  47596. # Local variables:
  47597. # eval: (add-hook 'write-file-hooks 'time-stamp)
  47598. # time-stamp-start: "scriptversion="
  47599. # time-stamp-format: "%:y-%02m-%02d.%02H"
  47600. -# time-stamp-end: "$"
  47601. +# time-stamp-time-zone: "UTC"
  47602. +# time-stamp-end: "; # UTC"
  47603. # End:
  47604. diff -Nur libogg-1.1.3.orig/ltmain.sh libogg-1.1.3/ltmain.sh
  47605. --- libogg-1.1.3.orig/ltmain.sh 2005-05-18 21:50:14.000000000 +0200
  47606. +++ libogg-1.1.3/ltmain.sh 2011-02-17 18:12:10.243551864 +0100
  47607. @@ -1,4596 +1,3140 @@
  47608. -# ltmain.sh - Provide generalized library-building support services.
  47609. -# NOTE: Changing this file will not affect anything until you rerun configure.
  47610. -#
  47611. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  47612. -# Free Software Foundation, Inc.
  47613. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47614. -#
  47615. -# This program is free software; you can redistribute it and/or modify
  47616. +# Generated from ltmain.m4sh.
  47617. +
  47618. +# ltmain.sh (GNU libtool) 2.2.6b
  47619. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  47620. +
  47621. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  47622. +# This is free software; see the source for copying conditions. There is NO
  47623. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  47624. +
  47625. +# GNU Libtool is free software; you can redistribute it and/or modify
  47626. # it under the terms of the GNU General Public License as published by
  47627. # the Free Software Foundation; either version 2 of the License, or
  47628. # (at your option) any later version.
  47629. #
  47630. -# This program is distributed in the hope that it will be useful, but
  47631. +# As a special exception to the GNU General Public License,
  47632. +# if you distribute this file as part of a program or library that
  47633. +# is built using GNU Libtool, you may include this file under the
  47634. +# same distribution terms that you use for the rest of that program.
  47635. +#
  47636. +# GNU Libtool is distributed in the hope that it will be useful, but
  47637. # WITHOUT ANY WARRANTY; without even the implied warranty of
  47638. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  47639. # General Public License for more details.
  47640. #
  47641. # You should have received a copy of the GNU General Public License
  47642. -# along with this program; if not, write to the Free Software
  47643. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  47644. +# along with GNU Libtool; see the file COPYING. If not, a copy
  47645. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  47646. +# or obtained by writing to the Free Software Foundation, Inc.,
  47647. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  47648. +
  47649. +# Usage: $progname [OPTION]... [MODE-ARG]...
  47650. +#
  47651. +# Provide generalized library-building support services.
  47652. #
  47653. -# As a special exception to the GNU General Public License, if you
  47654. -# distribute this file as part of a program that contains a
  47655. -# configuration script generated by Autoconf, you may include it under
  47656. -# the same distribution terms that you use for the rest of that program.
  47657. +# --config show all configuration variables
  47658. +# --debug enable verbose shell tracing
  47659. +# -n, --dry-run display commands without modifying any files
  47660. +# --features display basic configuration information and exit
  47661. +# --mode=MODE use operation mode MODE
  47662. +# --preserve-dup-deps don't remove duplicate dependency libraries
  47663. +# --quiet, --silent don't print informational messages
  47664. +# --tag=TAG use configuration variables from tag TAG
  47665. +# -v, --verbose print informational messages (default)
  47666. +# --version print version information
  47667. +# -h, --help print short or long help message
  47668. +#
  47669. +# MODE must be one of the following:
  47670. +#
  47671. +# clean remove files from the build directory
  47672. +# compile compile a source file into a libtool object
  47673. +# execute automatically set library path, then run a program
  47674. +# finish complete the installation of libtool libraries
  47675. +# install install libraries or executables
  47676. +# link create a library or an executable
  47677. +# uninstall remove libraries from an installed directory
  47678. +#
  47679. +# MODE-ARGS vary depending on the MODE.
  47680. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  47681. +#
  47682. +# When reporting a bug, please describe a test case to reproduce it and
  47683. +# include the following information:
  47684. +#
  47685. +# host-triplet: $host
  47686. +# shell: $SHELL
  47687. +# compiler: $LTCC
  47688. +# compiler flags: $LTCFLAGS
  47689. +# linker: $LD (gnu? $with_gnu_ld)
  47690. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  47691. +# automake: $automake_version
  47692. +# autoconf: $autoconf_version
  47693. +#
  47694. +# Report bugs to <bug-libtool@gnu.org>.
  47695. +
  47696. +PROGRAM=ltmain.sh
  47697. +PACKAGE=libtool
  47698. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  47699. +TIMESTAMP=""
  47700. +package_revision=1.3017
  47701. +
  47702. +# Be Bourne compatible
  47703. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  47704. + emulate sh
  47705. + NULLCMD=:
  47706. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  47707. + # is contrary to our usage. Disable this feature.
  47708. + alias -g '${1+"$@"}'='"$@"'
  47709. + setopt NO_GLOB_SUBST
  47710. +else
  47711. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  47712. +fi
  47713. +BIN_SH=xpg4; export BIN_SH # for Tru64
  47714. +DUALCASE=1; export DUALCASE # for MKS sh
  47715. +
  47716. +# NLS nuisances: We save the old values to restore during execute mode.
  47717. +# Only set LANG and LC_ALL to C if already set.
  47718. +# These must not be set unconditionally because not all systems understand
  47719. +# e.g. LANG=C (notably SCO).
  47720. +lt_user_locale=
  47721. +lt_safe_locale=
  47722. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  47723. +do
  47724. + eval "if test \"\${$lt_var+set}\" = set; then
  47725. + save_$lt_var=\$$lt_var
  47726. + $lt_var=C
  47727. + export $lt_var
  47728. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  47729. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  47730. + fi"
  47731. +done
  47732. -basename="s,^.*/,,g"
  47733. +$lt_unset CDPATH
  47734. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47735. -# is ksh but when the shell is invoked as "sh" and the current value of
  47736. -# the _XPG environment variable is not equal to 1 (one), the special
  47737. -# positional parameter $0, within a function call, is the name of the
  47738. -# function.
  47739. -progpath="$0"
  47740. -# The name of this program:
  47741. -progname=`echo "$progpath" | $SED $basename`
  47742. -modename="$progname"
  47743. +
  47744. +
  47745. +
  47746. +: ${CP="cp -f"}
  47747. +: ${ECHO="echo"}
  47748. +: ${EGREP="/bin/grep -E"}
  47749. +: ${FGREP="/bin/grep -F"}
  47750. +: ${GREP="/bin/grep"}
  47751. +: ${LN_S="ln -s"}
  47752. +: ${MAKE="make"}
  47753. +: ${MKDIR="mkdir"}
  47754. +: ${MV="mv -f"}
  47755. +: ${RM="rm -f"}
  47756. +: ${SED="/bin/sed"}
  47757. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  47758. +: ${Xsed="$SED -e 1s/^X//"}
  47759. # Global variables:
  47760. EXIT_SUCCESS=0
  47761. EXIT_FAILURE=1
  47762. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  47763. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  47764. -PROGRAM=ltmain.sh
  47765. -PACKAGE=libtool
  47766. -VERSION=1.5.6
  47767. -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42) Debian$Rev: 224 $"
  47768. +exit_status=$EXIT_SUCCESS
  47769. +# Make sure IFS has a sensible default
  47770. +lt_nl='
  47771. +'
  47772. +IFS=" $lt_nl"
  47773. +
  47774. +dirname="s,/[^/]*$,,"
  47775. +basename="s,^.*/,,"
  47776. +
  47777. +# func_dirname_and_basename file append nondir_replacement
  47778. +# perform func_basename and func_dirname in a single function
  47779. +# call:
  47780. +# dirname: Compute the dirname of FILE. If nonempty,
  47781. +# add APPEND to the result, otherwise set result
  47782. +# to NONDIR_REPLACEMENT.
  47783. +# value returned in "$func_dirname_result"
  47784. +# basename: Compute filename of FILE.
  47785. +# value retuned in "$func_basename_result"
  47786. +# Implementation must be kept synchronized with func_dirname
  47787. +# and func_basename. For efficiency, we do not delegate to
  47788. +# those functions but instead duplicate the functionality here.
  47789. +func_dirname_and_basename ()
  47790. +{
  47791. + # Extract subdirectory from the argument.
  47792. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  47793. + if test "X$func_dirname_result" = "X${1}"; then
  47794. + func_dirname_result="${3}"
  47795. + else
  47796. + func_dirname_result="$func_dirname_result${2}"
  47797. + fi
  47798. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  47799. +}
  47800. -# Check that we have a working $echo.
  47801. -if test "X$1" = X--no-reexec; then
  47802. - # Discard the --no-reexec flag, and continue.
  47803. - shift
  47804. -elif test "X$1" = X--fallback-echo; then
  47805. - # Avoid inline document here, it may be left over
  47806. - :
  47807. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  47808. - # Yippee, $echo works!
  47809. - :
  47810. -else
  47811. - # Restart under the correct shell, and then maybe $echo will work.
  47812. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  47813. -fi
  47814. +# Generated shell functions inserted here.
  47815. -if test "X$1" = X--fallback-echo; then
  47816. - # used as fallback echo
  47817. - shift
  47818. - cat <<EOF
  47819. -$*
  47820. -EOF
  47821. - exit $EXIT_SUCCESS
  47822. -fi
  47823. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  47824. +# is ksh but when the shell is invoked as "sh" and the current value of
  47825. +# the _XPG environment variable is not equal to 1 (one), the special
  47826. +# positional parameter $0, within a function call, is the name of the
  47827. +# function.
  47828. +progpath="$0"
  47829. -default_mode=
  47830. -help="Try \`$progname --help' for more information."
  47831. -magic="%%%MAGIC variable%%%"
  47832. -mkdir="mkdir"
  47833. -mv="mv -f"
  47834. -rm="rm -f"
  47835. +# The name of this program:
  47836. +# In the unlikely event $progname began with a '-', it would play havoc with
  47837. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  47838. +func_dirname_and_basename "$progpath"
  47839. +progname=$func_basename_result
  47840. +case $progname in
  47841. + -*) progname=./$progname ;;
  47842. +esac
  47843. +
  47844. +# Make sure we have an absolute path for reexecution:
  47845. +case $progpath in
  47846. + [\\/]*|[A-Za-z]:\\*) ;;
  47847. + *[\\/]*)
  47848. + progdir=$func_dirname_result
  47849. + progdir=`cd "$progdir" && pwd`
  47850. + progpath="$progdir/$progname"
  47851. + ;;
  47852. + *)
  47853. + save_IFS="$IFS"
  47854. + IFS=:
  47855. + for progdir in $PATH; do
  47856. + IFS="$save_IFS"
  47857. + test -x "$progdir/$progname" && break
  47858. + done
  47859. + IFS="$save_IFS"
  47860. + test -n "$progdir" || progdir=`pwd`
  47861. + progpath="$progdir/$progname"
  47862. + ;;
  47863. +esac
  47864. # Sed substitution that helps us do robust quoting. It backslashifies
  47865. # metacharacters that are still active within double-quoted strings.
  47866. Xsed="${SED}"' -e 1s/^X//'
  47867. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  47868. -# test EBCDIC or ASCII
  47869. -case `echo A|tr A '\301'` in
  47870. - A) # EBCDIC based system
  47871. - SP2NL="tr '\100' '\n'"
  47872. - NL2SP="tr '\r\n' '\100\100'"
  47873. - ;;
  47874. - *) # Assume ASCII based system
  47875. - SP2NL="tr '\040' '\012'"
  47876. - NL2SP="tr '\015\012' '\040\040'"
  47877. - ;;
  47878. -esac
  47879. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  47880. -# NLS nuisances.
  47881. -# Only set LANG and LC_ALL to C if already set.
  47882. -# These must not be set unconditionally because not all systems understand
  47883. -# e.g. LANG=C (notably SCO).
  47884. -# We save the old values to restore during execute mode.
  47885. -if test "${LC_ALL+set}" = set; then
  47886. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  47887. -fi
  47888. -if test "${LANG+set}" = set; then
  47889. - save_LANG="$LANG"; LANG=C; export LANG
  47890. -fi
  47891. +# Same as above, but do not quote variable references.
  47892. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  47893. -# Make sure IFS has a sensible default
  47894. -: ${IFS="
  47895. -"}
  47896. +# Re-`\' parameter expansions in output of double_quote_subst that were
  47897. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  47898. +# in input to double_quote_subst, that '$' was protected from expansion.
  47899. +# Since each input `\' is now two `\'s, look for any number of runs of
  47900. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  47901. +bs='\\'
  47902. +bs2='\\\\'
  47903. +bs4='\\\\\\\\'
  47904. +dollar='\$'
  47905. +sed_double_backslash="\
  47906. + s/$bs4/&\\
  47907. +/g
  47908. + s/^$bs2$dollar/$bs&/
  47909. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  47910. + s/\n//g"
  47911. +
  47912. +# Standard options:
  47913. +opt_dry_run=false
  47914. +opt_help=false
  47915. +opt_quiet=false
  47916. +opt_verbose=false
  47917. +opt_warning=:
  47918. +
  47919. +# func_echo arg...
  47920. +# Echo program name prefixed message, along with the current mode
  47921. +# name if it has been set yet.
  47922. +func_echo ()
  47923. +{
  47924. + $ECHO "$progname${mode+: }$mode: $*"
  47925. +}
  47926. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  47927. - $echo "$modename: not configured to build any kind of library" 1>&2
  47928. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  47929. - exit $EXIT_FAILURE
  47930. -fi
  47931. +# func_verbose arg...
  47932. +# Echo program name prefixed message in verbose mode only.
  47933. +func_verbose ()
  47934. +{
  47935. + $opt_verbose && func_echo ${1+"$@"}
  47936. -# Global variables.
  47937. -mode=$default_mode
  47938. -nonopt=
  47939. -prev=
  47940. -prevopt=
  47941. -run=
  47942. -show="$echo"
  47943. -show_help=
  47944. -execute_dlfiles=
  47945. -lo2o="s/\\.lo\$/.${objext}/"
  47946. -o2lo="s/\\.${objext}\$/.lo/"
  47947. + # A bug in bash halts the script if the last line of a function
  47948. + # fails when set -e is in force, so we need another command to
  47949. + # work around that:
  47950. + :
  47951. +}
  47952. -#####################################
  47953. -# Shell function definitions:
  47954. -# This seems to be the best place for them
  47955. +# func_error arg...
  47956. +# Echo program name prefixed message to standard error.
  47957. +func_error ()
  47958. +{
  47959. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  47960. +}
  47961. -# func_win32_libid arg
  47962. -# return the library type of file 'arg'
  47963. -#
  47964. -# Need a lot of goo to handle *both* DLLs and import libs
  47965. -# Has to be a shell function in order to 'eat' the argument
  47966. -# that is supplied when $file_magic_command is called.
  47967. -func_win32_libid () {
  47968. - win32_libid_type="unknown"
  47969. - win32_fileres=`file -L $1 2>/dev/null`
  47970. - case $win32_fileres in
  47971. - *ar\ archive\ import\ library*) # definitely import
  47972. - win32_libid_type="x86 archive import"
  47973. - ;;
  47974. - *ar\ archive*) # could be an import, or static
  47975. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  47976. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  47977. - win32_nmres=`eval $NM -f posix -A $1 | \
  47978. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  47979. - if test "X$win32_nmres" = "Ximport" ; then
  47980. - win32_libid_type="x86 archive import"
  47981. - else
  47982. - win32_libid_type="x86 archive static"
  47983. - fi
  47984. - fi
  47985. - ;;
  47986. - *DLL*)
  47987. - win32_libid_type="x86 DLL"
  47988. - ;;
  47989. - *executable*) # but shell scripts are "executable" too...
  47990. - case $win32_fileres in
  47991. - *MS\ Windows\ PE\ Intel*)
  47992. - win32_libid_type="x86 DLL"
  47993. - ;;
  47994. - esac
  47995. - ;;
  47996. - esac
  47997. - $echo $win32_libid_type
  47998. +# func_warning arg...
  47999. +# Echo program name prefixed warning message to standard error.
  48000. +func_warning ()
  48001. +{
  48002. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  48003. +
  48004. + # bash bug again:
  48005. + :
  48006. }
  48007. +# func_fatal_error arg...
  48008. +# Echo program name prefixed message to standard error, and exit.
  48009. +func_fatal_error ()
  48010. +{
  48011. + func_error ${1+"$@"}
  48012. + exit $EXIT_FAILURE
  48013. +}
  48014. -# func_infer_tag arg
  48015. -# Infer tagged configuration to use if any are available and
  48016. -# if one wasn't chosen via the "--tag" command line option.
  48017. -# Only attempt this if the compiler in the base compile
  48018. -# command doesn't match the default compiler.
  48019. -# arg is usually of the form 'gcc ...'
  48020. -func_infer_tag () {
  48021. - if test -n "$available_tags" && test -z "$tagname"; then
  48022. - CC_quoted=
  48023. - for arg in $CC; do
  48024. - case $arg in
  48025. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48026. - arg="\"$arg\""
  48027. - ;;
  48028. - esac
  48029. - CC_quoted="$CC_quoted $arg"
  48030. - done
  48031. - case $@ in
  48032. - # Blanks in the command may have been stripped by the calling shell,
  48033. - # but not from the CC environment variable when configure was run.
  48034. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  48035. - # Blanks at the start of $base_compile will cause this to fail
  48036. - # if we don't check for them as well.
  48037. - *)
  48038. - for z in $available_tags; do
  48039. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  48040. - # Evaluate the configuration.
  48041. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  48042. - CC_quoted=
  48043. - for arg in $CC; do
  48044. - # Double-quote args containing other shell metacharacters.
  48045. - case $arg in
  48046. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48047. - arg="\"$arg\""
  48048. - ;;
  48049. - esac
  48050. - CC_quoted="$CC_quoted $arg"
  48051. - done
  48052. - case "$@ " in
  48053. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  48054. - # The compiler in the base compile command matches
  48055. - # the one in the tagged configuration.
  48056. - # Assume this is the tagged configuration we want.
  48057. - tagname=$z
  48058. - break
  48059. - ;;
  48060. - esac
  48061. - fi
  48062. - done
  48063. - # If $tagname still isn't set, then no tagged configuration
  48064. - # was found and let the user know that the "--tag" command
  48065. - # line option must be used.
  48066. - if test -z "$tagname"; then
  48067. - $echo "$modename: unable to infer tagged configuration"
  48068. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  48069. - exit $EXIT_FAILURE
  48070. -# else
  48071. -# $echo "$modename: using $tagname tagged configuration"
  48072. - fi
  48073. - ;;
  48074. - esac
  48075. - fi
  48076. +# func_fatal_help arg...
  48077. +# Echo program name prefixed message to standard error, followed by
  48078. +# a help hint, and exit.
  48079. +func_fatal_help ()
  48080. +{
  48081. + func_error ${1+"$@"}
  48082. + func_fatal_error "$help"
  48083. }
  48084. -# End of Shell function definitions
  48085. -#####################################
  48086. +help="Try \`$progname --help' for more information." ## default
  48087. -# Darwin sucks
  48088. -eval std_shrext=\"$shrext_cmds\"
  48089. -# Parse our command line options once, thoroughly.
  48090. -while test "$#" -gt 0
  48091. -do
  48092. - arg="$1"
  48093. - shift
  48094. +# func_grep expression filename
  48095. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  48096. +func_grep ()
  48097. +{
  48098. + $GREP "$1" "$2" >/dev/null 2>&1
  48099. +}
  48100. - case $arg in
  48101. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  48102. - *) optarg= ;;
  48103. - esac
  48104. - # If the previous option needs an argument, assign it.
  48105. - if test -n "$prev"; then
  48106. - case $prev in
  48107. - execute_dlfiles)
  48108. - execute_dlfiles="$execute_dlfiles $arg"
  48109. - ;;
  48110. - tag)
  48111. - tagname="$arg"
  48112. - preserve_args="${preserve_args}=$arg"
  48113. -
  48114. - # Check whether tagname contains only valid characters
  48115. - case $tagname in
  48116. - *[!-_A-Za-z0-9,/]*)
  48117. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48118. - exit $EXIT_FAILURE
  48119. - ;;
  48120. - esac
  48121. +# func_mkdir_p directory-path
  48122. +# Make sure the entire path to DIRECTORY-PATH is available.
  48123. +func_mkdir_p ()
  48124. +{
  48125. + my_directory_path="$1"
  48126. + my_dir_list=
  48127. - case $tagname in
  48128. - CC)
  48129. - # Don't test for the "default" C tag, as we know, it's there, but
  48130. - # not specially marked.
  48131. - ;;
  48132. - *)
  48133. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  48134. - taglist="$taglist $tagname"
  48135. - # Evaluate the configuration.
  48136. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  48137. - else
  48138. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48139. - fi
  48140. - ;;
  48141. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  48142. +
  48143. + # Protect directory names starting with `-'
  48144. + case $my_directory_path in
  48145. + -*) my_directory_path="./$my_directory_path" ;;
  48146. esac
  48147. - ;;
  48148. - *)
  48149. - eval "$prev=\$arg"
  48150. - ;;
  48151. - esac
  48152. - prev=
  48153. - prevopt=
  48154. - continue
  48155. - fi
  48156. + # While some portion of DIR does not yet exist...
  48157. + while test ! -d "$my_directory_path"; do
  48158. + # ...make a list in topmost first order. Use a colon delimited
  48159. + # list incase some portion of path contains whitespace.
  48160. + my_dir_list="$my_directory_path:$my_dir_list"
  48161. - # Have we seen a non-optional argument yet?
  48162. - case $arg in
  48163. - --help)
  48164. - show_help=yes
  48165. - ;;
  48166. + # If the last portion added has no slash in it, the list is done
  48167. + case $my_directory_path in */*) ;; *) break ;; esac
  48168. - --version)
  48169. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  48170. - $echo
  48171. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  48172. - $echo "This is free software; see the source for copying conditions. There is NO"
  48173. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48174. - exit $EXIT_SUCCESS
  48175. - ;;
  48176. + # ...otherwise throw away the child directory and loop
  48177. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  48178. + done
  48179. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  48180. - --config)
  48181. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  48182. - # Now print the configurations for the tags.
  48183. - for tagname in $taglist; do
  48184. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  48185. - done
  48186. - exit $EXIT_SUCCESS
  48187. - ;;
  48188. + save_mkdir_p_IFS="$IFS"; IFS=':'
  48189. + for my_dir in $my_dir_list; do
  48190. + IFS="$save_mkdir_p_IFS"
  48191. + # mkdir can fail with a `File exist' error if two processes
  48192. + # try to create one of the directories concurrently. Don't
  48193. + # stop in that case!
  48194. + $MKDIR "$my_dir" 2>/dev/null || :
  48195. + done
  48196. + IFS="$save_mkdir_p_IFS"
  48197. - --debug)
  48198. - $echo "$progname: enabling shell trace mode"
  48199. - set -x
  48200. - preserve_args="$preserve_args $arg"
  48201. - ;;
  48202. + # Bail out if we (or some other process) failed to create a directory.
  48203. + test -d "$my_directory_path" || \
  48204. + func_fatal_error "Failed to create \`$1'"
  48205. + fi
  48206. +}
  48207. - --dry-run | -n)
  48208. - run=:
  48209. - ;;
  48210. - --features)
  48211. - $echo "host: $host"
  48212. - if test "$build_libtool_libs" = yes; then
  48213. - $echo "enable shared libraries"
  48214. - else
  48215. - $echo "disable shared libraries"
  48216. - fi
  48217. - if test "$build_old_libs" = yes; then
  48218. - $echo "enable static libraries"
  48219. +# func_mktempdir [string]
  48220. +# Make a temporary directory that won't clash with other running
  48221. +# libtool processes, and avoids race conditions if possible. If
  48222. +# given, STRING is the basename for that directory.
  48223. +func_mktempdir ()
  48224. +{
  48225. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  48226. +
  48227. + if test "$opt_dry_run" = ":"; then
  48228. + # Return a directory name, but don't create it in dry-run mode
  48229. + my_tmpdir="${my_template}-$$"
  48230. else
  48231. - $echo "disable static libraries"
  48232. - fi
  48233. - exit $EXIT_SUCCESS
  48234. - ;;
  48235. - --finish) mode="finish" ;;
  48236. + # If mktemp works, use that first and foremost
  48237. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  48238. - --mode) prevopt="--mode" prev=mode ;;
  48239. - --mode=*) mode="$optarg" ;;
  48240. + if test ! -d "$my_tmpdir"; then
  48241. + # Failing that, at least try and use $RANDOM to avoid a race
  48242. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  48243. - --preserve-dup-deps) duplicate_deps="yes" ;;
  48244. + save_mktempdir_umask=`umask`
  48245. + umask 0077
  48246. + $MKDIR "$my_tmpdir"
  48247. + umask $save_mktempdir_umask
  48248. + fi
  48249. - --quiet | --silent)
  48250. - show=:
  48251. - preserve_args="$preserve_args $arg"
  48252. - ;;
  48253. + # If we're not in dry-run mode, bomb out on failure
  48254. + test -d "$my_tmpdir" || \
  48255. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  48256. + fi
  48257. - --tag) prevopt="--tag" prev=tag ;;
  48258. - --tag=*)
  48259. - set tag "$optarg" ${1+"$@"}
  48260. - shift
  48261. - prev=tag
  48262. - preserve_args="$preserve_args --tag"
  48263. - ;;
  48264. + $ECHO "X$my_tmpdir" | $Xsed
  48265. +}
  48266. - -dlopen)
  48267. - prevopt="-dlopen"
  48268. - prev=execute_dlfiles
  48269. - ;;
  48270. - -*)
  48271. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  48272. - $echo "$help" 1>&2
  48273. - exit $EXIT_FAILURE
  48274. - ;;
  48275. +# func_quote_for_eval arg
  48276. +# Aesthetically quote ARG to be evaled later.
  48277. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  48278. +# is double-quoted, suitable for a subsequent eval, whereas
  48279. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  48280. +# which are still active within double quotes backslashified.
  48281. +func_quote_for_eval ()
  48282. +{
  48283. + case $1 in
  48284. + *[\\\`\"\$]*)
  48285. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  48286. + *)
  48287. + func_quote_for_eval_unquoted_result="$1" ;;
  48288. + esac
  48289. - *)
  48290. - nonopt="$arg"
  48291. - break
  48292. - ;;
  48293. - esac
  48294. -done
  48295. + case $func_quote_for_eval_unquoted_result in
  48296. + # Double-quote args containing shell metacharacters to delay
  48297. + # word splitting, command substitution and and variable
  48298. + # expansion for a subsequent eval.
  48299. + # Many Bourne shells cannot handle close brackets correctly
  48300. + # in scan sets, so we specify it separately.
  48301. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48302. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  48303. + ;;
  48304. + *)
  48305. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  48306. + esac
  48307. +}
  48308. -if test -n "$prevopt"; then
  48309. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  48310. - $echo "$help" 1>&2
  48311. - exit $EXIT_FAILURE
  48312. -fi
  48313. -# If this variable is set in any of the actions, the command in it
  48314. -# will be execed at the end. This prevents here-documents from being
  48315. -# left over by shells.
  48316. -exec_cmd=
  48317. +# func_quote_for_expand arg
  48318. +# Aesthetically quote ARG to be evaled later; same as above,
  48319. +# but do not quote variable references.
  48320. +func_quote_for_expand ()
  48321. +{
  48322. + case $1 in
  48323. + *[\\\`\"]*)
  48324. + my_arg=`$ECHO "X$1" | $Xsed \
  48325. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  48326. + *)
  48327. + my_arg="$1" ;;
  48328. + esac
  48329. -if test -z "$show_help"; then
  48330. + case $my_arg in
  48331. + # Double-quote args containing shell metacharacters to delay
  48332. + # word splitting and command substitution for a subsequent eval.
  48333. + # Many Bourne shells cannot handle close brackets correctly
  48334. + # in scan sets, so we specify it separately.
  48335. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48336. + my_arg="\"$my_arg\""
  48337. + ;;
  48338. + esac
  48339. - # Infer the operation mode.
  48340. - if test -z "$mode"; then
  48341. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  48342. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  48343. - case $nonopt in
  48344. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  48345. - mode=link
  48346. - for arg
  48347. - do
  48348. - case $arg in
  48349. - -c)
  48350. - mode=compile
  48351. - break
  48352. - ;;
  48353. - esac
  48354. - done
  48355. - ;;
  48356. - *db | *dbx | *strace | *truss)
  48357. - mode=execute
  48358. - ;;
  48359. - *install*|cp|mv)
  48360. - mode=install
  48361. - ;;
  48362. - *rm)
  48363. - mode=uninstall
  48364. - ;;
  48365. - *)
  48366. - # If we have no mode, but dlfiles were specified, then do execute mode.
  48367. - test -n "$execute_dlfiles" && mode=execute
  48368. + func_quote_for_expand_result="$my_arg"
  48369. +}
  48370. - # Just use the default operation mode.
  48371. - if test -z "$mode"; then
  48372. - if test -n "$nonopt"; then
  48373. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  48374. - else
  48375. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  48376. - fi
  48377. +
  48378. +# func_show_eval cmd [fail_exp]
  48379. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48380. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48381. +# is given, then evaluate it.
  48382. +func_show_eval ()
  48383. +{
  48384. + my_cmd="$1"
  48385. + my_fail_exp="${2-:}"
  48386. +
  48387. + ${opt_silent-false} || {
  48388. + func_quote_for_expand "$my_cmd"
  48389. + eval "func_echo $func_quote_for_expand_result"
  48390. + }
  48391. +
  48392. + if ${opt_dry_run-false}; then :; else
  48393. + eval "$my_cmd"
  48394. + my_status=$?
  48395. + if test "$my_status" -eq 0; then :; else
  48396. + eval "(exit $my_status); $my_fail_exp"
  48397. fi
  48398. - ;;
  48399. - esac
  48400. - fi
  48401. + fi
  48402. +}
  48403. - # Only execute mode is allowed to have -dlopen flags.
  48404. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  48405. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  48406. - $echo "$help" 1>&2
  48407. - exit $EXIT_FAILURE
  48408. - fi
  48409. - # Change the help message to a mode-specific one.
  48410. - generic_help="$help"
  48411. - help="Try \`$modename --help --mode=$mode' for more information."
  48412. +# func_show_eval_locale cmd [fail_exp]
  48413. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48414. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48415. +# is given, then evaluate it. Use the saved locale for evaluation.
  48416. +func_show_eval_locale ()
  48417. +{
  48418. + my_cmd="$1"
  48419. + my_fail_exp="${2-:}"
  48420. - # These modes are in order of execution frequency so that they run quickly.
  48421. - case $mode in
  48422. - # libtool compile mode
  48423. - compile)
  48424. - modename="$modename: compile"
  48425. - # Get the compilation command and the source file.
  48426. - base_compile=
  48427. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48428. - suppress_opt=yes
  48429. - suppress_output=
  48430. - arg_mode=normal
  48431. - libobj=
  48432. - later=
  48433. + ${opt_silent-false} || {
  48434. + func_quote_for_expand "$my_cmd"
  48435. + eval "func_echo $func_quote_for_expand_result"
  48436. + }
  48437. +
  48438. + if ${opt_dry_run-false}; then :; else
  48439. + eval "$lt_user_locale
  48440. + $my_cmd"
  48441. + my_status=$?
  48442. + eval "$lt_safe_locale"
  48443. + if test "$my_status" -eq 0; then :; else
  48444. + eval "(exit $my_status); $my_fail_exp"
  48445. + fi
  48446. + fi
  48447. +}
  48448. - for arg
  48449. - do
  48450. - case "$arg_mode" in
  48451. - arg )
  48452. - # do not "continue". Instead, add this to base_compile
  48453. - lastarg="$arg"
  48454. - arg_mode=normal
  48455. - ;;
  48456. - target )
  48457. - libobj="$arg"
  48458. - arg_mode=normal
  48459. - continue
  48460. - ;;
  48461. - normal )
  48462. - # Accept any command-line options.
  48463. - case $arg in
  48464. - -o)
  48465. - if test -n "$libobj" ; then
  48466. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  48467. - exit $EXIT_FAILURE
  48468. - fi
  48469. - arg_mode=target
  48470. - continue
  48471. - ;;
  48472. - -static | -prefer-pic | -prefer-non-pic)
  48473. - later="$later $arg"
  48474. - continue
  48475. - ;;
  48476. - -no-suppress)
  48477. - suppress_opt=no
  48478. - continue
  48479. - ;;
  48480. +# func_version
  48481. +# Echo version message to standard output and exit.
  48482. +func_version ()
  48483. +{
  48484. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  48485. + s/^# //
  48486. + s/^# *$//
  48487. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  48488. + p
  48489. + }' < "$progpath"
  48490. + exit $?
  48491. +}
  48492. - -Xcompiler)
  48493. - arg_mode=arg # the next one goes into the "base_compile" arg list
  48494. - continue # The current "srcfile" will either be retained or
  48495. - ;; # replaced later. I would guess that would be a bug.
  48496. +# func_usage
  48497. +# Echo short help message to standard output and exit.
  48498. +func_usage ()
  48499. +{
  48500. + $SED -n '/^# Usage:/,/# -h/ {
  48501. + s/^# //
  48502. + s/^# *$//
  48503. + s/\$progname/'$progname'/
  48504. + p
  48505. + }' < "$progpath"
  48506. + $ECHO
  48507. + $ECHO "run \`$progname --help | more' for full usage"
  48508. + exit $?
  48509. +}
  48510. - -Wc,*)
  48511. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  48512. - lastarg=
  48513. - save_ifs="$IFS"; IFS=','
  48514. - for arg in $args; do
  48515. - IFS="$save_ifs"
  48516. +# func_help
  48517. +# Echo long help message to standard output and exit.
  48518. +func_help ()
  48519. +{
  48520. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  48521. + s/^# //
  48522. + s/^# *$//
  48523. + s*\$progname*'$progname'*
  48524. + s*\$host*'"$host"'*
  48525. + s*\$SHELL*'"$SHELL"'*
  48526. + s*\$LTCC*'"$LTCC"'*
  48527. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  48528. + s*\$LD*'"$LD"'*
  48529. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  48530. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  48531. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  48532. + p
  48533. + }' < "$progpath"
  48534. + exit $?
  48535. +}
  48536. - # Double-quote args containing other shell metacharacters.
  48537. - # Many Bourne shells cannot handle close brackets correctly
  48538. - # in scan sets, so we specify it separately.
  48539. - case $arg in
  48540. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48541. - arg="\"$arg\""
  48542. - ;;
  48543. - esac
  48544. - lastarg="$lastarg $arg"
  48545. - done
  48546. - IFS="$save_ifs"
  48547. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  48548. +# func_missing_arg argname
  48549. +# Echo program name prefixed message to standard error and set global
  48550. +# exit_cmd.
  48551. +func_missing_arg ()
  48552. +{
  48553. + func_error "missing argument for $1"
  48554. + exit_cmd=exit
  48555. +}
  48556. - # Add the arguments to base_compile.
  48557. - base_compile="$base_compile $lastarg"
  48558. - continue
  48559. - ;;
  48560. +exit_cmd=:
  48561. - * )
  48562. - # Accept the current argument as the source file.
  48563. - # The previous "srcfile" becomes the current argument.
  48564. - #
  48565. - lastarg="$srcfile"
  48566. - srcfile="$arg"
  48567. - ;;
  48568. - esac # case $arg
  48569. - ;;
  48570. - esac # case $arg_mode
  48571. - # Aesthetically quote the previous argument.
  48572. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  48573. - case $lastarg in
  48574. - # Double-quote args containing other shell metacharacters.
  48575. - # Many Bourne shells cannot handle close brackets correctly
  48576. - # in scan sets, so we specify it separately.
  48577. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48578. - lastarg="\"$lastarg\""
  48579. - ;;
  48580. - esac
  48581. - base_compile="$base_compile $lastarg"
  48582. - done # for arg
  48583. - case $arg_mode in
  48584. - arg)
  48585. - $echo "$modename: you must specify an argument for -Xcompile"
  48586. - exit $EXIT_FAILURE
  48587. - ;;
  48588. - target)
  48589. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  48590. - exit $EXIT_FAILURE
  48591. - ;;
  48592. - *)
  48593. - # Get the name of the library object.
  48594. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  48595. - ;;
  48596. - esac
  48597. +# Check that we have a working $ECHO.
  48598. +if test "X$1" = X--no-reexec; then
  48599. + # Discard the --no-reexec flag, and continue.
  48600. + shift
  48601. +elif test "X$1" = X--fallback-echo; then
  48602. + # Avoid inline document here, it may be left over
  48603. + :
  48604. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  48605. + # Yippee, $ECHO works!
  48606. + :
  48607. +else
  48608. + # Restart under the correct shell, and then maybe $ECHO will work.
  48609. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  48610. +fi
  48611. - # Recognize several different file suffixes.
  48612. - # If the user specifies -o file.o, it is replaced with file.lo
  48613. - xform='[cCFSifmso]'
  48614. - case $libobj in
  48615. - *.ada) xform=ada ;;
  48616. - *.adb) xform=adb ;;
  48617. - *.ads) xform=ads ;;
  48618. - *.asm) xform=asm ;;
  48619. - *.c++) xform=c++ ;;
  48620. - *.cc) xform=cc ;;
  48621. - *.ii) xform=ii ;;
  48622. - *.class) xform=class ;;
  48623. - *.cpp) xform=cpp ;;
  48624. - *.cxx) xform=cxx ;;
  48625. - *.f90) xform=f90 ;;
  48626. - *.for) xform=for ;;
  48627. - *.java) xform=java ;;
  48628. - esac
  48629. +if test "X$1" = X--fallback-echo; then
  48630. + # used as fallback echo
  48631. + shift
  48632. + cat <<EOF
  48633. +$*
  48634. +EOF
  48635. + exit $EXIT_SUCCESS
  48636. +fi
  48637. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  48638. +magic="%%%MAGIC variable%%%"
  48639. +magic_exe="%%%MAGIC EXE variable%%%"
  48640. - case $libobj in
  48641. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  48642. - *)
  48643. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  48644. - exit $EXIT_FAILURE
  48645. - ;;
  48646. - esac
  48647. +# Global variables.
  48648. +# $mode is unset
  48649. +nonopt=
  48650. +execute_dlfiles=
  48651. +preserve_args=
  48652. +lo2o="s/\\.lo\$/.${objext}/"
  48653. +o2lo="s/\\.${objext}\$/.lo/"
  48654. +extracted_archives=
  48655. +extracted_serial=0
  48656. - func_infer_tag $base_compile
  48657. +opt_dry_run=false
  48658. +opt_duplicate_deps=false
  48659. +opt_silent=false
  48660. +opt_debug=:
  48661. - for arg in $later; do
  48662. - case $arg in
  48663. - -static)
  48664. - build_old_libs=yes
  48665. - continue
  48666. - ;;
  48667. +# If this variable is set in any of the actions, the command in it
  48668. +# will be execed at the end. This prevents here-documents from being
  48669. +# left over by shells.
  48670. +exec_cmd=
  48671. - -prefer-pic)
  48672. - pic_mode=yes
  48673. - continue
  48674. - ;;
  48675. +# func_fatal_configuration arg...
  48676. +# Echo program name prefixed message to standard error, followed by
  48677. +# a configuration failure hint, and exit.
  48678. +func_fatal_configuration ()
  48679. +{
  48680. + func_error ${1+"$@"}
  48681. + func_error "See the $PACKAGE documentation for more information."
  48682. + func_fatal_error "Fatal configuration error."
  48683. +}
  48684. - -prefer-non-pic)
  48685. - pic_mode=no
  48686. - continue
  48687. - ;;
  48688. - esac
  48689. +
  48690. +# func_config
  48691. +# Display the configuration for all the tags in this script.
  48692. +func_config ()
  48693. +{
  48694. + re_begincf='^# ### BEGIN LIBTOOL'
  48695. + re_endcf='^# ### END LIBTOOL'
  48696. +
  48697. + # Default configuration.
  48698. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  48699. +
  48700. + # Now print the configurations for the tags.
  48701. + for tagname in $taglist; do
  48702. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  48703. done
  48704. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  48705. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  48706. - if test "X$xdir" = "X$obj"; then
  48707. - xdir=
  48708. - else
  48709. - xdir=$xdir/
  48710. - fi
  48711. - lobj=${xdir}$objdir/$objname
  48712. + exit $?
  48713. +}
  48714. - if test -z "$base_compile"; then
  48715. - $echo "$modename: you must specify a compilation command" 1>&2
  48716. - $echo "$help" 1>&2
  48717. - exit $EXIT_FAILURE
  48718. +# func_features
  48719. +# Display the features supported by this script.
  48720. +func_features ()
  48721. +{
  48722. + $ECHO "host: $host"
  48723. + if test "$build_libtool_libs" = yes; then
  48724. + $ECHO "enable shared libraries"
  48725. + else
  48726. + $ECHO "disable shared libraries"
  48727. fi
  48728. -
  48729. - # Delete any leftover library objects.
  48730. if test "$build_old_libs" = yes; then
  48731. - removelist="$obj $lobj $libobj ${libobj}T"
  48732. + $ECHO "enable static libraries"
  48733. else
  48734. - removelist="$lobj $libobj ${libobj}T"
  48735. + $ECHO "disable static libraries"
  48736. fi
  48737. - $run $rm $removelist
  48738. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  48739. -
  48740. - # On Cygwin there's no "real" PIC flag so we must build both object types
  48741. - case $host_os in
  48742. - cygwin* | mingw* | pw32* | os2*)
  48743. - pic_mode=default
  48744. - ;;
  48745. - esac
  48746. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  48747. - # non-PIC code in shared libraries is not supported
  48748. - pic_mode=default
  48749. - fi
  48750. + exit $?
  48751. +}
  48752. - # Calculate the filename of the output object if compiler does
  48753. - # not support -o with -c
  48754. - if test "$compiler_c_o" = no; then
  48755. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  48756. - lockfile="$output_obj.lock"
  48757. - removelist="$removelist $output_obj $lockfile"
  48758. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  48759. - else
  48760. - output_obj=
  48761. - need_locks=no
  48762. - lockfile=
  48763. - fi
  48764. +# func_enable_tag tagname
  48765. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  48766. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  48767. +# variable here.
  48768. +func_enable_tag ()
  48769. +{
  48770. + # Global variable:
  48771. + tagname="$1"
  48772. - # Lock this critical section if it is needed
  48773. - # We use this script file to make the link, it avoids creating a new file
  48774. - if test "$need_locks" = yes; then
  48775. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  48776. - $show "Waiting for $lockfile to be removed"
  48777. - sleep 2
  48778. - done
  48779. - elif test "$need_locks" = warn; then
  48780. - if test -f "$lockfile"; then
  48781. - $echo "\
  48782. -*** ERROR, $lockfile exists and contains:
  48783. -`cat $lockfile 2>/dev/null`
  48784. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  48785. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  48786. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  48787. +
  48788. + # Validate tagname.
  48789. + case $tagname in
  48790. + *[!-_A-Za-z0-9,/]*)
  48791. + func_fatal_error "invalid tag name: $tagname"
  48792. + ;;
  48793. + esac
  48794. -This indicates that another process is trying to use the same
  48795. -temporary object file, and libtool could not work around it because
  48796. -your compiler does not support \`-c' and \`-o' together. If you
  48797. -repeat this compilation, it may succeed, by chance, but you had better
  48798. -avoid parallel builds (make -j) in this platform, or get a better
  48799. -compiler."
  48800. + # Don't test for the "default" C tag, as we know it's
  48801. + # there but not specially marked.
  48802. + case $tagname in
  48803. + CC) ;;
  48804. + *)
  48805. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  48806. + taglist="$taglist $tagname"
  48807. - $run $rm $removelist
  48808. - exit $EXIT_FAILURE
  48809. + # Evaluate the configuration. Be careful to quote the path
  48810. + # and the sed script, to avoid splitting on whitespace, but
  48811. + # also don't use non-portable quotes within backquotes within
  48812. + # quotes we have to do it in 2 steps:
  48813. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  48814. + eval "$extractedcf"
  48815. + else
  48816. + func_error "ignoring unknown tag $tagname"
  48817. fi
  48818. - $echo $srcfile > "$lockfile"
  48819. - fi
  48820. + ;;
  48821. + esac
  48822. +}
  48823. - if test -n "$fix_srcfile_path"; then
  48824. - eval srcfile=\"$fix_srcfile_path\"
  48825. - fi
  48826. +# Parse options once, thoroughly. This comes as soon as possible in
  48827. +# the script to make things like `libtool --version' happen quickly.
  48828. +{
  48829. - $run $rm "$libobj" "${libobj}T"
  48830. + # Shorthand for --mode=foo, only valid as the first argument
  48831. + case $1 in
  48832. + clean|clea|cle|cl)
  48833. + shift; set dummy --mode clean ${1+"$@"}; shift
  48834. + ;;
  48835. + compile|compil|compi|comp|com|co|c)
  48836. + shift; set dummy --mode compile ${1+"$@"}; shift
  48837. + ;;
  48838. + execute|execut|execu|exec|exe|ex|e)
  48839. + shift; set dummy --mode execute ${1+"$@"}; shift
  48840. + ;;
  48841. + finish|finis|fini|fin|fi|f)
  48842. + shift; set dummy --mode finish ${1+"$@"}; shift
  48843. + ;;
  48844. + install|instal|insta|inst|ins|in|i)
  48845. + shift; set dummy --mode install ${1+"$@"}; shift
  48846. + ;;
  48847. + link|lin|li|l)
  48848. + shift; set dummy --mode link ${1+"$@"}; shift
  48849. + ;;
  48850. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  48851. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  48852. + ;;
  48853. + esac
  48854. - # Create a libtool object file (analogous to a ".la" file),
  48855. - # but don't create it if we're doing a dry run.
  48856. - test -z "$run" && cat > ${libobj}T <<EOF
  48857. -# $libobj - a libtool object file
  48858. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  48859. -#
  48860. -# Please DO NOT delete this file!
  48861. -# It is necessary for linking the library.
  48862. + # Parse non-mode specific arguments:
  48863. + while test "$#" -gt 0; do
  48864. + opt="$1"
  48865. + shift
  48866. -# Name of the PIC object.
  48867. -EOF
  48868. + case $opt in
  48869. + --config) func_config ;;
  48870. - # Only build a PIC object if we are building libtool libraries.
  48871. - if test "$build_libtool_libs" = yes; then
  48872. - # Without this assignment, base_compile gets emptied.
  48873. - fbsd_hideous_sh_bug=$base_compile
  48874. + --debug) preserve_args="$preserve_args $opt"
  48875. + func_echo "enabling shell trace mode"
  48876. + opt_debug='set -x'
  48877. + $opt_debug
  48878. + ;;
  48879. - if test "$pic_mode" != no; then
  48880. - command="$base_compile $srcfile $pic_flag"
  48881. - else
  48882. - # Don't build PIC code
  48883. - command="$base_compile $srcfile"
  48884. - fi
  48885. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48886. + execute_dlfiles="$execute_dlfiles $1"
  48887. + shift
  48888. + ;;
  48889. - if test ! -d "${xdir}$objdir"; then
  48890. - $show "$mkdir ${xdir}$objdir"
  48891. - $run $mkdir ${xdir}$objdir
  48892. - status=$?
  48893. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  48894. - exit $status
  48895. - fi
  48896. - fi
  48897. + --dry-run | -n) opt_dry_run=: ;;
  48898. + --features) func_features ;;
  48899. + --finish) mode="finish" ;;
  48900. +
  48901. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48902. + case $1 in
  48903. + # Valid mode arguments:
  48904. + clean) ;;
  48905. + compile) ;;
  48906. + execute) ;;
  48907. + finish) ;;
  48908. + install) ;;
  48909. + link) ;;
  48910. + relink) ;;
  48911. + uninstall) ;;
  48912. +
  48913. + # Catch anything else as an error
  48914. + *) func_error "invalid argument for $opt"
  48915. + exit_cmd=exit
  48916. + break
  48917. + ;;
  48918. + esac
  48919. - if test -z "$output_obj"; then
  48920. - # Place PIC objects in $objdir
  48921. - command="$command -o $lobj"
  48922. - fi
  48923. + mode="$1"
  48924. + shift
  48925. + ;;
  48926. - $run $rm "$lobj" "$output_obj"
  48927. + --preserve-dup-deps)
  48928. + opt_duplicate_deps=: ;;
  48929. - $show "$command"
  48930. - if $run eval "$command"; then :
  48931. - else
  48932. - test -n "$output_obj" && $run $rm $removelist
  48933. - exit $EXIT_FAILURE
  48934. - fi
  48935. + --quiet|--silent) preserve_args="$preserve_args $opt"
  48936. + opt_silent=:
  48937. + ;;
  48938. - if test "$need_locks" = warn &&
  48939. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  48940. - $echo "\
  48941. -*** ERROR, $lockfile contains:
  48942. -`cat $lockfile 2>/dev/null`
  48943. + --verbose| -v) preserve_args="$preserve_args $opt"
  48944. + opt_silent=false
  48945. + ;;
  48946. -but it should contain:
  48947. -$srcfile
  48948. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  48949. + preserve_args="$preserve_args $opt $1"
  48950. + func_enable_tag "$1" # tagname is set here
  48951. + shift
  48952. + ;;
  48953. -This indicates that another process is trying to use the same
  48954. -temporary object file, and libtool could not work around it because
  48955. -your compiler does not support \`-c' and \`-o' together. If you
  48956. -repeat this compilation, it may succeed, by chance, but you had better
  48957. -avoid parallel builds (make -j) in this platform, or get a better
  48958. -compiler."
  48959. + # Separate optargs to long options:
  48960. + -dlopen=*|--mode=*|--tag=*)
  48961. + func_opt_split "$opt"
  48962. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  48963. + shift
  48964. + ;;
  48965. - $run $rm $removelist
  48966. - exit $EXIT_FAILURE
  48967. - fi
  48968. + -\?|-h) func_usage ;;
  48969. + --help) opt_help=: ;;
  48970. + --version) func_version ;;
  48971. - # Just move the object if needed, then go on to compile the next one
  48972. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  48973. - $show "$mv $output_obj $lobj"
  48974. - if $run $mv $output_obj $lobj; then :
  48975. - else
  48976. - error=$?
  48977. - $run $rm $removelist
  48978. - exit $error
  48979. - fi
  48980. - fi
  48981. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  48982. - # Append the name of the PIC object to the libtool object file.
  48983. - test -z "$run" && cat >> ${libobj}T <<EOF
  48984. -pic_object='$objdir/$objname'
  48985. + *) nonopt="$opt"
  48986. + break
  48987. + ;;
  48988. + esac
  48989. + done
  48990. -EOF
  48991. - # Allow error messages only from the first compilation.
  48992. - if test "$suppress_opt" = yes; then
  48993. - suppress_output=' >/dev/null 2>&1'
  48994. - fi
  48995. - else
  48996. - # No PIC object so indicate it doesn't exist in the libtool
  48997. - # object file.
  48998. - test -z "$run" && cat >> ${libobj}T <<EOF
  48999. -pic_object=none
  49000. + case $host in
  49001. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  49002. + # don't eliminate duplications in $postdeps and $predeps
  49003. + opt_duplicate_compiler_generated_deps=:
  49004. + ;;
  49005. + *)
  49006. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  49007. + ;;
  49008. + esac
  49009. -EOF
  49010. - fi
  49011. + # Having warned about all mis-specified options, bail out if
  49012. + # anything was wrong.
  49013. + $exit_cmd $EXIT_FAILURE
  49014. +}
  49015. - # Only build a position-dependent object if we build old libraries.
  49016. - if test "$build_old_libs" = yes; then
  49017. - if test "$pic_mode" != yes; then
  49018. - # Don't build PIC code
  49019. - command="$base_compile $srcfile"
  49020. +# func_check_version_match
  49021. +# Ensure that we are using m4 macros, and libtool script from the same
  49022. +# release of libtool.
  49023. +func_check_version_match ()
  49024. +{
  49025. + if test "$package_revision" != "$macro_revision"; then
  49026. + if test "$VERSION" != "$macro_version"; then
  49027. + if test -z "$macro_version"; then
  49028. + cat >&2 <<_LT_EOF
  49029. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49030. +$progname: definition of this LT_INIT comes from an older release.
  49031. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49032. +$progname: and run autoconf again.
  49033. +_LT_EOF
  49034. else
  49035. - command="$base_compile $srcfile $pic_flag"
  49036. - fi
  49037. - if test "$compiler_c_o" = yes; then
  49038. - command="$command -o $obj"
  49039. + cat >&2 <<_LT_EOF
  49040. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49041. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  49042. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49043. +$progname: and run autoconf again.
  49044. +_LT_EOF
  49045. fi
  49046. + else
  49047. + cat >&2 <<_LT_EOF
  49048. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  49049. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  49050. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  49051. +$progname: of $PACKAGE $VERSION and run autoconf again.
  49052. +_LT_EOF
  49053. + fi
  49054. - # Suppress compiler output if we already did a PIC compilation.
  49055. - command="$command$suppress_output"
  49056. - $run $rm "$obj" "$output_obj"
  49057. - $show "$command"
  49058. - if $run eval "$command"; then :
  49059. - else
  49060. - $run $rm $removelist
  49061. - exit $EXIT_FAILURE
  49062. - fi
  49063. + exit $EXIT_MISMATCH
  49064. + fi
  49065. +}
  49066. - if test "$need_locks" = warn &&
  49067. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49068. - $echo "\
  49069. -*** ERROR, $lockfile contains:
  49070. -`cat $lockfile 2>/dev/null`
  49071. -but it should contain:
  49072. -$srcfile
  49073. +## ----------- ##
  49074. +## Main. ##
  49075. +## ----------- ##
  49076. +
  49077. +$opt_help || {
  49078. + # Sanity checks first:
  49079. + func_check_version_match
  49080. -This indicates that another process is trying to use the same
  49081. -temporary object file, and libtool could not work around it because
  49082. -your compiler does not support \`-c' and \`-o' together. If you
  49083. -repeat this compilation, it may succeed, by chance, but you had better
  49084. -avoid parallel builds (make -j) in this platform, or get a better
  49085. -compiler."
  49086. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  49087. + func_fatal_configuration "not configured to build any kind of library"
  49088. + fi
  49089. - $run $rm $removelist
  49090. - exit $EXIT_FAILURE
  49091. - fi
  49092. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  49093. - # Just move the object if needed
  49094. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  49095. - $show "$mv $output_obj $obj"
  49096. - if $run $mv $output_obj $obj; then :
  49097. - else
  49098. - error=$?
  49099. - $run $rm $removelist
  49100. - exit $error
  49101. - fi
  49102. - fi
  49103. - # Append the name of the non-PIC object the libtool object file.
  49104. - # Only append if the libtool object file exists.
  49105. - test -z "$run" && cat >> ${libobj}T <<EOF
  49106. -# Name of the non-PIC object.
  49107. -non_pic_object='$objname'
  49108. + # Darwin sucks
  49109. + eval std_shrext=\"$shrext_cmds\"
  49110. -EOF
  49111. - else
  49112. - # Append the name of the non-PIC object the libtool object file.
  49113. - # Only append if the libtool object file exists.
  49114. - test -z "$run" && cat >> ${libobj}T <<EOF
  49115. -# Name of the non-PIC object.
  49116. -non_pic_object=none
  49117. -EOF
  49118. + # Only execute mode is allowed to have -dlopen flags.
  49119. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  49120. + func_error "unrecognized option \`-dlopen'"
  49121. + $ECHO "$help" 1>&2
  49122. + exit $EXIT_FAILURE
  49123. + fi
  49124. +
  49125. + # Change the help message to a mode-specific one.
  49126. + generic_help="$help"
  49127. + help="Try \`$progname --help --mode=$mode' for more information."
  49128. +}
  49129. +
  49130. +
  49131. +# func_lalib_p file
  49132. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49133. +# This function is only a basic sanity check; it will hardly flush out
  49134. +# determined imposters.
  49135. +func_lalib_p ()
  49136. +{
  49137. + test -f "$1" &&
  49138. + $SED -e 4q "$1" 2>/dev/null \
  49139. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  49140. +}
  49141. +
  49142. +# func_lalib_unsafe_p file
  49143. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49144. +# This function implements the same check as func_lalib_p without
  49145. +# resorting to external programs. To this end, it redirects stdin and
  49146. +# closes it afterwards, without saving the original file descriptor.
  49147. +# As a safety measure, use it only where a negative result would be
  49148. +# fatal anyway. Works if `file' does not exist.
  49149. +func_lalib_unsafe_p ()
  49150. +{
  49151. + lalib_p=no
  49152. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  49153. + for lalib_p_l in 1 2 3 4
  49154. + do
  49155. + read lalib_p_line
  49156. + case "$lalib_p_line" in
  49157. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  49158. + esac
  49159. + done
  49160. + exec 0<&5 5<&-
  49161. fi
  49162. + test "$lalib_p" = yes
  49163. +}
  49164. +
  49165. +# func_ltwrapper_script_p file
  49166. +# True iff FILE is a libtool wrapper script
  49167. +# This function is only a basic sanity check; it will hardly flush out
  49168. +# determined imposters.
  49169. +func_ltwrapper_script_p ()
  49170. +{
  49171. + func_lalib_p "$1"
  49172. +}
  49173. - $run $mv "${libobj}T" "${libobj}"
  49174. +# func_ltwrapper_executable_p file
  49175. +# True iff FILE is a libtool wrapper executable
  49176. +# This function is only a basic sanity check; it will hardly flush out
  49177. +# determined imposters.
  49178. +func_ltwrapper_executable_p ()
  49179. +{
  49180. + func_ltwrapper_exec_suffix=
  49181. + case $1 in
  49182. + *.exe) ;;
  49183. + *) func_ltwrapper_exec_suffix=.exe ;;
  49184. + esac
  49185. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  49186. +}
  49187. - # Unlock the critical section if it was locked
  49188. - if test "$need_locks" != no; then
  49189. - $run $rm "$lockfile"
  49190. +# func_ltwrapper_scriptname file
  49191. +# Assumes file is an ltwrapper_executable
  49192. +# uses $file to determine the appropriate filename for a
  49193. +# temporary ltwrapper_script.
  49194. +func_ltwrapper_scriptname ()
  49195. +{
  49196. + func_ltwrapper_scriptname_result=""
  49197. + if func_ltwrapper_executable_p "$1"; then
  49198. + func_dirname_and_basename "$1" "" "."
  49199. + func_stripname '' '.exe' "$func_basename_result"
  49200. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  49201. fi
  49202. +}
  49203. - exit $EXIT_SUCCESS
  49204. - ;;
  49205. +# func_ltwrapper_p file
  49206. +# True iff FILE is a libtool wrapper script or wrapper executable
  49207. +# This function is only a basic sanity check; it will hardly flush out
  49208. +# determined imposters.
  49209. +func_ltwrapper_p ()
  49210. +{
  49211. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  49212. +}
  49213. - # libtool link mode
  49214. - link | relink)
  49215. - modename="$modename: link"
  49216. - case $host in
  49217. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49218. - # It is impossible to link a dll without this setting, and
  49219. - # we shouldn't force the makefile maintainer to figure out
  49220. - # which system we are compiling for in order to pass an extra
  49221. - # flag for every libtool invocation.
  49222. - # allow_undefined=no
  49223. - # FIXME: Unfortunately, there are problems with the above when trying
  49224. - # to make a dll which has undefined symbols, in which case not
  49225. - # even a static library is built. For now, we need to specify
  49226. - # -no-undefined on the libtool link line when we can be certain
  49227. - # that all symbols are satisfied, otherwise we get a static library.
  49228. - allow_undefined=yes
  49229. - ;;
  49230. - *)
  49231. - allow_undefined=yes
  49232. - ;;
  49233. - esac
  49234. - libtool_args="$nonopt"
  49235. - base_compile="$nonopt $@"
  49236. - compile_command="$nonopt"
  49237. - finalize_command="$nonopt"
  49238. +# func_execute_cmds commands fail_cmd
  49239. +# Execute tilde-delimited COMMANDS.
  49240. +# If FAIL_CMD is given, eval that upon failure.
  49241. +# FAIL_CMD may read-access the current command in variable CMD!
  49242. +func_execute_cmds ()
  49243. +{
  49244. + $opt_debug
  49245. + save_ifs=$IFS; IFS='~'
  49246. + for cmd in $1; do
  49247. + IFS=$save_ifs
  49248. + eval cmd=\"$cmd\"
  49249. + func_show_eval "$cmd" "${2-:}"
  49250. + done
  49251. + IFS=$save_ifs
  49252. +}
  49253. - compile_rpath=
  49254. - finalize_rpath=
  49255. - compile_shlibpath=
  49256. - finalize_shlibpath=
  49257. - convenience=
  49258. - old_convenience=
  49259. - deplibs=
  49260. - old_deplibs=
  49261. - compiler_flags=
  49262. - linker_flags=
  49263. - dllsearchpath=
  49264. - lib_search_path=`pwd`
  49265. - inst_prefix_dir=
  49266. - avoid_version=no
  49267. - dlfiles=
  49268. - dlprefiles=
  49269. - dlself=no
  49270. - export_dynamic=no
  49271. - export_symbols=
  49272. - export_symbols_regex=
  49273. - generated=
  49274. - libobjs=
  49275. - ltlibs=
  49276. - module=no
  49277. - no_install=no
  49278. - objs=
  49279. - non_pic_objects=
  49280. - precious_files_regex=
  49281. - prefer_static_libs=no
  49282. - preload=no
  49283. - prev=
  49284. - prevarg=
  49285. - release=
  49286. - rpath=
  49287. - xrpath=
  49288. - perm_rpath=
  49289. - temp_rpath=
  49290. - thread_safe=no
  49291. - vinfo=
  49292. - vinfo_number=no
  49293. +# func_source file
  49294. +# Source FILE, adding directory component if necessary.
  49295. +# Note that it is not necessary on cygwin/mingw to append a dot to
  49296. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  49297. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  49298. +# `FILE.' does not work on cygwin managed mounts.
  49299. +func_source ()
  49300. +{
  49301. + $opt_debug
  49302. + case $1 in
  49303. + */* | *\\*) . "$1" ;;
  49304. + *) . "./$1" ;;
  49305. + esac
  49306. +}
  49307. - func_infer_tag $base_compile
  49308. - # We need to know -static, to get the right output filenames.
  49309. - for arg
  49310. - do
  49311. - case $arg in
  49312. - -all-static | -static)
  49313. - if test "X$arg" = "X-all-static"; then
  49314. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49315. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  49316. - fi
  49317. - if test -n "$link_static_flag"; then
  49318. - dlopen_self=$dlopen_self_static
  49319. - fi
  49320. - else
  49321. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49322. - dlopen_self=$dlopen_self_static
  49323. +# func_infer_tag arg
  49324. +# Infer tagged configuration to use if any are available and
  49325. +# if one wasn't chosen via the "--tag" command line option.
  49326. +# Only attempt this if the compiler in the base compile
  49327. +# command doesn't match the default compiler.
  49328. +# arg is usually of the form 'gcc ...'
  49329. +func_infer_tag ()
  49330. +{
  49331. + $opt_debug
  49332. + if test -n "$available_tags" && test -z "$tagname"; then
  49333. + CC_quoted=
  49334. + for arg in $CC; do
  49335. + func_quote_for_eval "$arg"
  49336. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49337. + done
  49338. + case $@ in
  49339. + # Blanks in the command may have been stripped by the calling shell,
  49340. + # but not from the CC environment variable when configure was run.
  49341. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  49342. + # Blanks at the start of $base_compile will cause this to fail
  49343. + # if we don't check for them as well.
  49344. + *)
  49345. + for z in $available_tags; do
  49346. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  49347. + # Evaluate the configuration.
  49348. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  49349. + CC_quoted=
  49350. + for arg in $CC; do
  49351. + # Double-quote args containing other shell metacharacters.
  49352. + func_quote_for_eval "$arg"
  49353. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49354. + done
  49355. + case "$@ " in
  49356. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  49357. + # The compiler in the base compile command matches
  49358. + # the one in the tagged configuration.
  49359. + # Assume this is the tagged configuration we want.
  49360. + tagname=$z
  49361. + break
  49362. + ;;
  49363. + esac
  49364. fi
  49365. + done
  49366. + # If $tagname still isn't set, then no tagged configuration
  49367. + # was found and let the user know that the "--tag" command
  49368. + # line option must be used.
  49369. + if test -z "$tagname"; then
  49370. + func_echo "unable to infer tagged configuration"
  49371. + func_fatal_error "specify a tag with \`--tag'"
  49372. +# else
  49373. +# func_verbose "using $tagname tagged configuration"
  49374. fi
  49375. - build_libtool_libs=no
  49376. - build_old_libs=yes
  49377. - prefer_static_libs=yes
  49378. - break
  49379. ;;
  49380. esac
  49381. - done
  49382. -
  49383. - # See if our shared archives depend on static archives.
  49384. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49385. + fi
  49386. +}
  49387. - # Go through the arguments, transforming them on the way.
  49388. - while test "$#" -gt 0; do
  49389. - arg="$1"
  49390. - shift
  49391. - case $arg in
  49392. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49393. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  49394. - ;;
  49395. - *) qarg=$arg ;;
  49396. - esac
  49397. - libtool_args="$libtool_args $qarg"
  49398. - # If the previous option needs an argument, assign it.
  49399. - if test -n "$prev"; then
  49400. - case $prev in
  49401. - output)
  49402. - compile_command="$compile_command @OUTPUT@"
  49403. - finalize_command="$finalize_command @OUTPUT@"
  49404. - ;;
  49405. - esac
  49406. - case $prev in
  49407. - dlfiles|dlprefiles)
  49408. - if test "$preload" = no; then
  49409. - # Add the symbol object into the linking commands.
  49410. - compile_command="$compile_command @SYMFILE@"
  49411. - finalize_command="$finalize_command @SYMFILE@"
  49412. - preload=yes
  49413. - fi
  49414. - case $arg in
  49415. - *.la | *.lo) ;; # We handle these cases below.
  49416. - force)
  49417. - if test "$dlself" = no; then
  49418. - dlself=needless
  49419. - export_dynamic=yes
  49420. - fi
  49421. - prev=
  49422. - continue
  49423. - ;;
  49424. - self)
  49425. - if test "$prev" = dlprefiles; then
  49426. - dlself=yes
  49427. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49428. - dlself=yes
  49429. - else
  49430. - dlself=needless
  49431. - export_dynamic=yes
  49432. - fi
  49433. - prev=
  49434. - continue
  49435. - ;;
  49436. - *)
  49437. - if test "$prev" = dlfiles; then
  49438. - dlfiles="$dlfiles $arg"
  49439. - else
  49440. - dlprefiles="$dlprefiles $arg"
  49441. - fi
  49442. - prev=
  49443. - continue
  49444. - ;;
  49445. - esac
  49446. - ;;
  49447. - expsyms)
  49448. - export_symbols="$arg"
  49449. - if test ! -f "$arg"; then
  49450. - $echo "$modename: symbol file \`$arg' does not exist"
  49451. - exit $EXIT_FAILURE
  49452. - fi
  49453. - prev=
  49454. - continue
  49455. - ;;
  49456. - expsyms_regex)
  49457. - export_symbols_regex="$arg"
  49458. - prev=
  49459. - continue
  49460. - ;;
  49461. - inst_prefix)
  49462. - inst_prefix_dir="$arg"
  49463. - prev=
  49464. - continue
  49465. - ;;
  49466. - precious_regex)
  49467. - precious_files_regex="$arg"
  49468. - prev=
  49469. - continue
  49470. - ;;
  49471. - release)
  49472. - release="-$arg"
  49473. - prev=
  49474. - continue
  49475. - ;;
  49476. - objectlist)
  49477. - if test -f "$arg"; then
  49478. - save_arg=$arg
  49479. - moreargs=
  49480. - for fil in `cat $save_arg`
  49481. - do
  49482. -# moreargs="$moreargs $fil"
  49483. - arg=$fil
  49484. - # A libtool-controlled object.
  49485. -
  49486. - # Check to see that this really is a libtool object.
  49487. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49488. - pic_object=
  49489. - non_pic_object=
  49490. -
  49491. - # Read the .lo file
  49492. - # If there is no directory component, then add one.
  49493. - case $arg in
  49494. - */* | *\\*) . $arg ;;
  49495. - *) . ./$arg ;;
  49496. - esac
  49497. -
  49498. - if test -z "$pic_object" || \
  49499. - test -z "$non_pic_object" ||
  49500. - test "$pic_object" = none && \
  49501. - test "$non_pic_object" = none; then
  49502. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  49503. - exit $EXIT_FAILURE
  49504. - fi
  49505. +# func_write_libtool_object output_name pic_name nonpic_name
  49506. +# Create a libtool object file (analogous to a ".la" file),
  49507. +# but don't create it if we're doing a dry run.
  49508. +func_write_libtool_object ()
  49509. +{
  49510. + write_libobj=${1}
  49511. + if test "$build_libtool_libs" = yes; then
  49512. + write_lobj=\'${2}\'
  49513. + else
  49514. + write_lobj=none
  49515. + fi
  49516. - # Extract subdirectory from the argument.
  49517. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49518. - if test "X$xdir" = "X$arg"; then
  49519. - xdir=
  49520. - else
  49521. - xdir="$xdir/"
  49522. - fi
  49523. + if test "$build_old_libs" = yes; then
  49524. + write_oldobj=\'${3}\'
  49525. + else
  49526. + write_oldobj=none
  49527. + fi
  49528. - if test "$pic_object" != none; then
  49529. - # Prepend the subdirectory the object is found in.
  49530. - pic_object="$xdir$pic_object"
  49531. + $opt_dry_run || {
  49532. + cat >${write_libobj}T <<EOF
  49533. +# $write_libobj - a libtool object file
  49534. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49535. +#
  49536. +# Please DO NOT delete this file!
  49537. +# It is necessary for linking the library.
  49538. - if test "$prev" = dlfiles; then
  49539. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49540. - dlfiles="$dlfiles $pic_object"
  49541. - prev=
  49542. - continue
  49543. - else
  49544. - # If libtool objects are unsupported, then we need to preload.
  49545. - prev=dlprefiles
  49546. - fi
  49547. - fi
  49548. +# Name of the PIC object.
  49549. +pic_object=$write_lobj
  49550. - # CHECK ME: I think I busted this. -Ossama
  49551. - if test "$prev" = dlprefiles; then
  49552. - # Preload the old-style object.
  49553. - dlprefiles="$dlprefiles $pic_object"
  49554. - prev=
  49555. - fi
  49556. +# Name of the non-PIC object
  49557. +non_pic_object=$write_oldobj
  49558. - # A PIC object.
  49559. - libobjs="$libobjs $pic_object"
  49560. - arg="$pic_object"
  49561. - fi
  49562. +EOF
  49563. + $MV "${write_libobj}T" "${write_libobj}"
  49564. + }
  49565. +}
  49566. - # Non-PIC object.
  49567. - if test "$non_pic_object" != none; then
  49568. - # Prepend the subdirectory the object is found in.
  49569. - non_pic_object="$xdir$non_pic_object"
  49570. +# func_mode_compile arg...
  49571. +func_mode_compile ()
  49572. +{
  49573. + $opt_debug
  49574. + # Get the compilation command and the source file.
  49575. + base_compile=
  49576. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  49577. + suppress_opt=yes
  49578. + suppress_output=
  49579. + arg_mode=normal
  49580. + libobj=
  49581. + later=
  49582. + pie_flag=
  49583. - # A standard non-PIC object
  49584. - non_pic_objects="$non_pic_objects $non_pic_object"
  49585. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49586. - arg="$non_pic_object"
  49587. - fi
  49588. - fi
  49589. - else
  49590. - # Only an error if not doing a dry-run.
  49591. - if test -z "$run"; then
  49592. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  49593. - exit $EXIT_FAILURE
  49594. - else
  49595. - # Dry-run case.
  49596. + for arg
  49597. + do
  49598. + case $arg_mode in
  49599. + arg )
  49600. + # do not "continue". Instead, add this to base_compile
  49601. + lastarg="$arg"
  49602. + arg_mode=normal
  49603. + ;;
  49604. - # Extract subdirectory from the argument.
  49605. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49606. - if test "X$xdir" = "X$arg"; then
  49607. - xdir=
  49608. - else
  49609. - xdir="$xdir/"
  49610. - fi
  49611. + target )
  49612. + libobj="$arg"
  49613. + arg_mode=normal
  49614. + continue
  49615. + ;;
  49616. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  49617. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  49618. - libobjs="$libobjs $pic_object"
  49619. - non_pic_objects="$non_pic_objects $non_pic_object"
  49620. - fi
  49621. - fi
  49622. - done
  49623. - else
  49624. - $echo "$modename: link input file \`$save_arg' does not exist"
  49625. - exit $EXIT_FAILURE
  49626. - fi
  49627. - arg=$save_arg
  49628. - prev=
  49629. - continue
  49630. - ;;
  49631. - rpath | xrpath)
  49632. - # We need an absolute path.
  49633. - case $arg in
  49634. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49635. - *)
  49636. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  49637. - exit $EXIT_FAILURE
  49638. - ;;
  49639. - esac
  49640. - if test "$prev" = rpath; then
  49641. - case "$rpath " in
  49642. - *" $arg "*) ;;
  49643. - *) rpath="$rpath $arg" ;;
  49644. - esac
  49645. - else
  49646. - case "$xrpath " in
  49647. - *" $arg "*) ;;
  49648. - *) xrpath="$xrpath $arg" ;;
  49649. - esac
  49650. - fi
  49651. - prev=
  49652. + normal )
  49653. + # Accept any command-line options.
  49654. + case $arg in
  49655. + -o)
  49656. + test -n "$libobj" && \
  49657. + func_fatal_error "you cannot specify \`-o' more than once"
  49658. + arg_mode=target
  49659. continue
  49660. ;;
  49661. - xcompiler)
  49662. - compiler_flags="$compiler_flags $qarg"
  49663. - prev=
  49664. - compile_command="$compile_command $qarg"
  49665. - finalize_command="$finalize_command $qarg"
  49666. +
  49667. + -pie | -fpie | -fPIE)
  49668. + pie_flag="$pie_flag $arg"
  49669. continue
  49670. ;;
  49671. - xlinker)
  49672. - linker_flags="$linker_flags $qarg"
  49673. - compiler_flags="$compiler_flags $wl$qarg"
  49674. - prev=
  49675. - compile_command="$compile_command $wl$qarg"
  49676. - finalize_command="$finalize_command $wl$qarg"
  49677. +
  49678. + -shared | -static | -prefer-pic | -prefer-non-pic)
  49679. + later="$later $arg"
  49680. continue
  49681. ;;
  49682. - xcclinker)
  49683. - linker_flags="$linker_flags $qarg"
  49684. - compiler_flags="$compiler_flags $qarg"
  49685. - prev=
  49686. - compile_command="$compile_command $qarg"
  49687. - finalize_command="$finalize_command $qarg"
  49688. +
  49689. + -no-suppress)
  49690. + suppress_opt=no
  49691. continue
  49692. ;;
  49693. - shrext)
  49694. - shrext_cmds="$arg"
  49695. - prev=
  49696. +
  49697. + -Xcompiler)
  49698. + arg_mode=arg # the next one goes into the "base_compile" arg list
  49699. + continue # The current "srcfile" will either be retained or
  49700. + ;; # replaced later. I would guess that would be a bug.
  49701. +
  49702. + -Wc,*)
  49703. + func_stripname '-Wc,' '' "$arg"
  49704. + args=$func_stripname_result
  49705. + lastarg=
  49706. + save_ifs="$IFS"; IFS=','
  49707. + for arg in $args; do
  49708. + IFS="$save_ifs"
  49709. + func_quote_for_eval "$arg"
  49710. + lastarg="$lastarg $func_quote_for_eval_result"
  49711. + done
  49712. + IFS="$save_ifs"
  49713. + func_stripname ' ' '' "$lastarg"
  49714. + lastarg=$func_stripname_result
  49715. +
  49716. + # Add the arguments to base_compile.
  49717. + base_compile="$base_compile $lastarg"
  49718. continue
  49719. ;;
  49720. +
  49721. *)
  49722. - eval "$prev=\"\$arg\""
  49723. - prev=
  49724. - continue
  49725. + # Accept the current argument as the source file.
  49726. + # The previous "srcfile" becomes the current argument.
  49727. + #
  49728. + lastarg="$srcfile"
  49729. + srcfile="$arg"
  49730. ;;
  49731. - esac
  49732. - fi # test -n "$prev"
  49733. -
  49734. - prevarg="$arg"
  49735. -
  49736. - case $arg in
  49737. - -all-static)
  49738. - if test -n "$link_static_flag"; then
  49739. - compile_command="$compile_command $link_static_flag"
  49740. - finalize_command="$finalize_command $link_static_flag"
  49741. - fi
  49742. - continue
  49743. - ;;
  49744. -
  49745. - -allow-undefined)
  49746. - # FIXME: remove this flag sometime in the future.
  49747. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  49748. - continue
  49749. + esac # case $arg
  49750. ;;
  49751. + esac # case $arg_mode
  49752. - -avoid-version)
  49753. - avoid_version=yes
  49754. - continue
  49755. - ;;
  49756. + # Aesthetically quote the previous argument.
  49757. + func_quote_for_eval "$lastarg"
  49758. + base_compile="$base_compile $func_quote_for_eval_result"
  49759. + done # for arg
  49760. - -dlopen)
  49761. - prev=dlfiles
  49762. - continue
  49763. - ;;
  49764. + case $arg_mode in
  49765. + arg)
  49766. + func_fatal_error "you must specify an argument for -Xcompile"
  49767. + ;;
  49768. + target)
  49769. + func_fatal_error "you must specify a target with \`-o'"
  49770. + ;;
  49771. + *)
  49772. + # Get the name of the library object.
  49773. + test -z "$libobj" && {
  49774. + func_basename "$srcfile"
  49775. + libobj="$func_basename_result"
  49776. + }
  49777. + ;;
  49778. + esac
  49779. - -dlpreopen)
  49780. - prev=dlprefiles
  49781. - continue
  49782. - ;;
  49783. + # Recognize several different file suffixes.
  49784. + # If the user specifies -o file.o, it is replaced with file.lo
  49785. + case $libobj in
  49786. + *.[cCFSifmso] | \
  49787. + *.ada | *.adb | *.ads | *.asm | \
  49788. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  49789. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  49790. + func_xform "$libobj"
  49791. + libobj=$func_xform_result
  49792. + ;;
  49793. + esac
  49794. - -export-dynamic)
  49795. - export_dynamic=yes
  49796. - continue
  49797. - ;;
  49798. + case $libobj in
  49799. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  49800. + *)
  49801. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  49802. + ;;
  49803. + esac
  49804. - -export-symbols | -export-symbols-regex)
  49805. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  49806. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  49807. - exit $EXIT_FAILURE
  49808. - fi
  49809. - if test "X$arg" = "X-export-symbols"; then
  49810. - prev=expsyms
  49811. - else
  49812. - prev=expsyms_regex
  49813. - fi
  49814. - continue
  49815. - ;;
  49816. + func_infer_tag $base_compile
  49817. - -inst-prefix-dir)
  49818. - prev=inst_prefix
  49819. + for arg in $later; do
  49820. + case $arg in
  49821. + -shared)
  49822. + test "$build_libtool_libs" != yes && \
  49823. + func_fatal_configuration "can not build a shared library"
  49824. + build_old_libs=no
  49825. continue
  49826. ;;
  49827. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  49828. - # so, if we see these flags be careful not to treat them like -L
  49829. - -L[A-Z][A-Z]*:*)
  49830. - case $with_gcc/$host in
  49831. - no/*-*-irix* | /*-*-irix*)
  49832. - compile_command="$compile_command $arg"
  49833. - finalize_command="$finalize_command $arg"
  49834. - ;;
  49835. - esac
  49836. + -static)
  49837. + build_libtool_libs=no
  49838. + build_old_libs=yes
  49839. continue
  49840. ;;
  49841. - -L*)
  49842. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  49843. - # We need an absolute path.
  49844. - case $dir in
  49845. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  49846. - *)
  49847. - absdir=`cd "$dir" && pwd`
  49848. - if test -z "$absdir"; then
  49849. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  49850. - exit $EXIT_FAILURE
  49851. - fi
  49852. - dir="$absdir"
  49853. - ;;
  49854. - esac
  49855. - case "$deplibs " in
  49856. - *" -L$dir "*) ;;
  49857. - *)
  49858. - deplibs="$deplibs -L$dir"
  49859. - lib_search_path="$lib_search_path $dir"
  49860. - ;;
  49861. - esac
  49862. - case $host in
  49863. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49864. - case :$dllsearchpath: in
  49865. - *":$dir:"*) ;;
  49866. - *) dllsearchpath="$dllsearchpath:$dir";;
  49867. - esac
  49868. - ;;
  49869. - esac
  49870. + -prefer-pic)
  49871. + pic_mode=yes
  49872. continue
  49873. ;;
  49874. - -l*)
  49875. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  49876. - case $host in
  49877. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  49878. - # These systems don't actually have a C or math library (as such)
  49879. - continue
  49880. - ;;
  49881. - *-*-mingw* | *-*-os2*)
  49882. - # These systems don't actually have a C library (as such)
  49883. - test "X$arg" = "X-lc" && continue
  49884. - ;;
  49885. - *-*-openbsd* | *-*-freebsd*)
  49886. - # Do not include libc due to us having libc/libc_r.
  49887. - test "X$arg" = "X-lc" && continue
  49888. - ;;
  49889. - *-*-rhapsody* | *-*-darwin1.[012])
  49890. - # Rhapsody C and math libraries are in the System framework
  49891. - deplibs="$deplibs -framework System"
  49892. - continue
  49893. - esac
  49894. - elif test "X$arg" = "X-lc_r"; then
  49895. - case $host in
  49896. - *-*-openbsd* | *-*-freebsd*)
  49897. - # Do not include libc_r directly, use -pthread flag.
  49898. - continue
  49899. - ;;
  49900. - esac
  49901. - fi
  49902. - deplibs="$deplibs $arg"
  49903. + -prefer-non-pic)
  49904. + pic_mode=no
  49905. continue
  49906. ;;
  49907. + esac
  49908. + done
  49909. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  49910. - deplibs="$deplibs $arg"
  49911. - continue
  49912. - ;;
  49913. + func_quote_for_eval "$libobj"
  49914. + test "X$libobj" != "X$func_quote_for_eval_result" \
  49915. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  49916. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  49917. + func_dirname_and_basename "$obj" "/" ""
  49918. + objname="$func_basename_result"
  49919. + xdir="$func_dirname_result"
  49920. + lobj=${xdir}$objdir/$objname
  49921. - -module)
  49922. - module=yes
  49923. - continue
  49924. - ;;
  49925. + test -z "$base_compile" && \
  49926. + func_fatal_help "you must specify a compilation command"
  49927. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  49928. - # in order to pass architecture information to the linker
  49929. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  49930. - # but this is not reliable with gcc because gcc may use -mfoo to
  49931. - # select a different linker, different libraries, etc, while
  49932. - # -Wl,-mfoo simply passes -mfoo to the linker.
  49933. - -m*)
  49934. - # Unknown arguments in both finalize_command and compile_command need
  49935. - # to be aesthetically quoted because they are evaled later.
  49936. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  49937. - case $arg in
  49938. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49939. - arg="\"$arg\""
  49940. - ;;
  49941. - esac
  49942. - compile_command="$compile_command $arg"
  49943. - finalize_command="$finalize_command $arg"
  49944. - if test "$with_gcc" = "yes" ; then
  49945. - compiler_flags="$compiler_flags $arg"
  49946. - fi
  49947. - continue
  49948. - ;;
  49949. + # Delete any leftover library objects.
  49950. + if test "$build_old_libs" = yes; then
  49951. + removelist="$obj $lobj $libobj ${libobj}T"
  49952. + else
  49953. + removelist="$lobj $libobj ${libobj}T"
  49954. + fi
  49955. - -shrext)
  49956. - prev=shrext
  49957. - continue
  49958. - ;;
  49959. + # On Cygwin there's no "real" PIC flag so we must build both object types
  49960. + case $host_os in
  49961. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  49962. + pic_mode=default
  49963. + ;;
  49964. + esac
  49965. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  49966. + # non-PIC code in shared libraries is not supported
  49967. + pic_mode=default
  49968. + fi
  49969. - -no-fast-install)
  49970. - fast_install=no
  49971. - continue
  49972. - ;;
  49973. + # Calculate the filename of the output object if compiler does
  49974. + # not support -o with -c
  49975. + if test "$compiler_c_o" = no; then
  49976. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49977. + lockfile="$output_obj.lock"
  49978. + else
  49979. + output_obj=
  49980. + need_locks=no
  49981. + lockfile=
  49982. + fi
  49983. - -no-install)
  49984. - case $host in
  49985. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49986. - # The PATH hackery in wrapper scripts is required on Windows
  49987. - # in order for the loader to find any dlls it needs.
  49988. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  49989. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  49990. - fast_install=no
  49991. - ;;
  49992. - *) no_install=yes ;;
  49993. - esac
  49994. - continue
  49995. - ;;
  49996. + # Lock this critical section if it is needed
  49997. + # We use this script file to make the link, it avoids creating a new file
  49998. + if test "$need_locks" = yes; then
  49999. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  50000. + func_echo "Waiting for $lockfile to be removed"
  50001. + sleep 2
  50002. + done
  50003. + elif test "$need_locks" = warn; then
  50004. + if test -f "$lockfile"; then
  50005. + $ECHO "\
  50006. +*** ERROR, $lockfile exists and contains:
  50007. +`cat $lockfile 2>/dev/null`
  50008. - -no-undefined)
  50009. - allow_undefined=no
  50010. - continue
  50011. - ;;
  50012. +This indicates that another process is trying to use the same
  50013. +temporary object file, and libtool could not work around it because
  50014. +your compiler does not support \`-c' and \`-o' together. If you
  50015. +repeat this compilation, it may succeed, by chance, but you had better
  50016. +avoid parallel builds (make -j) in this platform, or get a better
  50017. +compiler."
  50018. - -objectlist)
  50019. - prev=objectlist
  50020. - continue
  50021. - ;;
  50022. + $opt_dry_run || $RM $removelist
  50023. + exit $EXIT_FAILURE
  50024. + fi
  50025. + removelist="$removelist $output_obj"
  50026. + $ECHO "$srcfile" > "$lockfile"
  50027. + fi
  50028. - -o) prev=output ;;
  50029. + $opt_dry_run || $RM $removelist
  50030. + removelist="$removelist $lockfile"
  50031. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  50032. - -precious-files-regex)
  50033. - prev=precious_regex
  50034. - continue
  50035. - ;;
  50036. + if test -n "$fix_srcfile_path"; then
  50037. + eval srcfile=\"$fix_srcfile_path\"
  50038. + fi
  50039. + func_quote_for_eval "$srcfile"
  50040. + qsrcfile=$func_quote_for_eval_result
  50041. - -release)
  50042. - prev=release
  50043. - continue
  50044. - ;;
  50045. + # Only build a PIC object if we are building libtool libraries.
  50046. + if test "$build_libtool_libs" = yes; then
  50047. + # Without this assignment, base_compile gets emptied.
  50048. + fbsd_hideous_sh_bug=$base_compile
  50049. - -rpath)
  50050. - prev=rpath
  50051. - continue
  50052. - ;;
  50053. + if test "$pic_mode" != no; then
  50054. + command="$base_compile $qsrcfile $pic_flag"
  50055. + else
  50056. + # Don't build PIC code
  50057. + command="$base_compile $qsrcfile"
  50058. + fi
  50059. - -R)
  50060. - prev=xrpath
  50061. - continue
  50062. - ;;
  50063. + func_mkdir_p "$xdir$objdir"
  50064. - -R*)
  50065. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  50066. - # We need an absolute path.
  50067. - case $dir in
  50068. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50069. - *)
  50070. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50071. - exit $EXIT_FAILURE
  50072. - ;;
  50073. - esac
  50074. - case "$xrpath " in
  50075. - *" $dir "*) ;;
  50076. - *) xrpath="$xrpath $dir" ;;
  50077. - esac
  50078. - continue
  50079. - ;;
  50080. + if test -z "$output_obj"; then
  50081. + # Place PIC objects in $objdir
  50082. + command="$command -o $lobj"
  50083. + fi
  50084. - -static)
  50085. - # The effects of -static are defined in a previous loop.
  50086. - # We used to do the same as -all-static on platforms that
  50087. - # didn't have a PIC flag, but the assumption that the effects
  50088. - # would be equivalent was wrong. It would break on at least
  50089. - # Digital Unix and AIX.
  50090. - continue
  50091. - ;;
  50092. + func_show_eval_locale "$command" \
  50093. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  50094. - -thread-safe)
  50095. - thread_safe=yes
  50096. - continue
  50097. - ;;
  50098. + if test "$need_locks" = warn &&
  50099. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50100. + $ECHO "\
  50101. +*** ERROR, $lockfile contains:
  50102. +`cat $lockfile 2>/dev/null`
  50103. - -version-info)
  50104. - prev=vinfo
  50105. - continue
  50106. - ;;
  50107. - -version-number)
  50108. - prev=vinfo
  50109. - vinfo_number=yes
  50110. - continue
  50111. - ;;
  50112. +but it should contain:
  50113. +$srcfile
  50114. - -Wc,*)
  50115. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  50116. - arg=
  50117. - save_ifs="$IFS"; IFS=','
  50118. - for flag in $args; do
  50119. - IFS="$save_ifs"
  50120. - case $flag in
  50121. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50122. - flag="\"$flag\""
  50123. - ;;
  50124. - esac
  50125. - arg="$arg $wl$flag"
  50126. - compiler_flags="$compiler_flags $flag"
  50127. - done
  50128. - IFS="$save_ifs"
  50129. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50130. - ;;
  50131. +This indicates that another process is trying to use the same
  50132. +temporary object file, and libtool could not work around it because
  50133. +your compiler does not support \`-c' and \`-o' together. If you
  50134. +repeat this compilation, it may succeed, by chance, but you had better
  50135. +avoid parallel builds (make -j) in this platform, or get a better
  50136. +compiler."
  50137. - -Wl,*)
  50138. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  50139. - arg=
  50140. - save_ifs="$IFS"; IFS=','
  50141. - for flag in $args; do
  50142. - IFS="$save_ifs"
  50143. - case $flag in
  50144. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50145. - flag="\"$flag\""
  50146. - ;;
  50147. - esac
  50148. - arg="$arg $wl$flag"
  50149. - compiler_flags="$compiler_flags $wl$flag"
  50150. - linker_flags="$linker_flags $flag"
  50151. - done
  50152. - IFS="$save_ifs"
  50153. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50154. - ;;
  50155. + $opt_dry_run || $RM $removelist
  50156. + exit $EXIT_FAILURE
  50157. + fi
  50158. - -Xcompiler)
  50159. - prev=xcompiler
  50160. - continue
  50161. - ;;
  50162. + # Just move the object if needed, then go on to compile the next one
  50163. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  50164. + func_show_eval '$MV "$output_obj" "$lobj"' \
  50165. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50166. + fi
  50167. - -Xlinker)
  50168. - prev=xlinker
  50169. - continue
  50170. - ;;
  50171. + # Allow error messages only from the first compilation.
  50172. + if test "$suppress_opt" = yes; then
  50173. + suppress_output=' >/dev/null 2>&1'
  50174. + fi
  50175. + fi
  50176. - -XCClinker)
  50177. - prev=xcclinker
  50178. - continue
  50179. - ;;
  50180. + # Only build a position-dependent object if we build old libraries.
  50181. + if test "$build_old_libs" = yes; then
  50182. + if test "$pic_mode" != yes; then
  50183. + # Don't build PIC code
  50184. + command="$base_compile $qsrcfile$pie_flag"
  50185. + else
  50186. + command="$base_compile $qsrcfile $pic_flag"
  50187. + fi
  50188. + if test "$compiler_c_o" = yes; then
  50189. + command="$command -o $obj"
  50190. + fi
  50191. - # Some other compiler flag.
  50192. - -* | +*)
  50193. - # Unknown arguments in both finalize_command and compile_command need
  50194. - # to be aesthetically quoted because they are evaled later.
  50195. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50196. - case $arg in
  50197. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50198. - arg="\"$arg\""
  50199. - ;;
  50200. - esac
  50201. - ;;
  50202. + # Suppress compiler output if we already did a PIC compilation.
  50203. + command="$command$suppress_output"
  50204. + func_show_eval_locale "$command" \
  50205. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  50206. - *.$objext)
  50207. - # A standard object.
  50208. - objs="$objs $arg"
  50209. - ;;
  50210. + if test "$need_locks" = warn &&
  50211. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50212. + $ECHO "\
  50213. +*** ERROR, $lockfile contains:
  50214. +`cat $lockfile 2>/dev/null`
  50215. - *.lo)
  50216. - # A libtool-controlled object.
  50217. +but it should contain:
  50218. +$srcfile
  50219. - # Check to see that this really is a libtool object.
  50220. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50221. - pic_object=
  50222. - non_pic_object=
  50223. +This indicates that another process is trying to use the same
  50224. +temporary object file, and libtool could not work around it because
  50225. +your compiler does not support \`-c' and \`-o' together. If you
  50226. +repeat this compilation, it may succeed, by chance, but you had better
  50227. +avoid parallel builds (make -j) in this platform, or get a better
  50228. +compiler."
  50229. - # Read the .lo file
  50230. - # If there is no directory component, then add one.
  50231. - case $arg in
  50232. - */* | *\\*) . $arg ;;
  50233. - *) . ./$arg ;;
  50234. - esac
  50235. + $opt_dry_run || $RM $removelist
  50236. + exit $EXIT_FAILURE
  50237. + fi
  50238. - if test -z "$pic_object" || \
  50239. - test -z "$non_pic_object" ||
  50240. - test "$pic_object" = none && \
  50241. - test "$non_pic_object" = none; then
  50242. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50243. - exit $EXIT_FAILURE
  50244. - fi
  50245. + # Just move the object if needed
  50246. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  50247. + func_show_eval '$MV "$output_obj" "$obj"' \
  50248. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50249. + fi
  50250. + fi
  50251. - # Extract subdirectory from the argument.
  50252. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50253. - if test "X$xdir" = "X$arg"; then
  50254. - xdir=
  50255. - else
  50256. - xdir="$xdir/"
  50257. - fi
  50258. + $opt_dry_run || {
  50259. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  50260. - if test "$pic_object" != none; then
  50261. - # Prepend the subdirectory the object is found in.
  50262. - pic_object="$xdir$pic_object"
  50263. + # Unlock the critical section if it was locked
  50264. + if test "$need_locks" != no; then
  50265. + removelist=$lockfile
  50266. + $RM "$lockfile"
  50267. + fi
  50268. + }
  50269. - if test "$prev" = dlfiles; then
  50270. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50271. - dlfiles="$dlfiles $pic_object"
  50272. - prev=
  50273. - continue
  50274. - else
  50275. - # If libtool objects are unsupported, then we need to preload.
  50276. - prev=dlprefiles
  50277. - fi
  50278. - fi
  50279. + exit $EXIT_SUCCESS
  50280. +}
  50281. - # CHECK ME: I think I busted this. -Ossama
  50282. - if test "$prev" = dlprefiles; then
  50283. - # Preload the old-style object.
  50284. - dlprefiles="$dlprefiles $pic_object"
  50285. - prev=
  50286. - fi
  50287. +$opt_help || {
  50288. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  50289. +}
  50290. - # A PIC object.
  50291. - libobjs="$libobjs $pic_object"
  50292. - arg="$pic_object"
  50293. - fi
  50294. +func_mode_help ()
  50295. +{
  50296. + # We need to display help for each of the modes.
  50297. + case $mode in
  50298. + "")
  50299. + # Generic help is extracted from the usage comments
  50300. + # at the start of this file.
  50301. + func_help
  50302. + ;;
  50303. - # Non-PIC object.
  50304. - if test "$non_pic_object" != none; then
  50305. - # Prepend the subdirectory the object is found in.
  50306. - non_pic_object="$xdir$non_pic_object"
  50307. + clean)
  50308. + $ECHO \
  50309. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  50310. - # A standard non-PIC object
  50311. - non_pic_objects="$non_pic_objects $non_pic_object"
  50312. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50313. - arg="$non_pic_object"
  50314. - fi
  50315. - fi
  50316. - else
  50317. - # Only an error if not doing a dry-run.
  50318. - if test -z "$run"; then
  50319. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50320. - exit $EXIT_FAILURE
  50321. - else
  50322. - # Dry-run case.
  50323. +Remove files from the build directory.
  50324. - # Extract subdirectory from the argument.
  50325. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50326. - if test "X$xdir" = "X$arg"; then
  50327. - xdir=
  50328. - else
  50329. - xdir="$xdir/"
  50330. - fi
  50331. +RM is the name of the program to use to delete files associated with each FILE
  50332. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50333. +to RM.
  50334. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50335. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50336. - libobjs="$libobjs $pic_object"
  50337. - non_pic_objects="$non_pic_objects $non_pic_object"
  50338. - fi
  50339. - fi
  50340. - ;;
  50341. +If FILE is a libtool library, object or program, all the files associated
  50342. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  50343. + ;;
  50344. - *.$libext)
  50345. - # An archive.
  50346. - deplibs="$deplibs $arg"
  50347. - old_deplibs="$old_deplibs $arg"
  50348. - continue
  50349. - ;;
  50350. + compile)
  50351. + $ECHO \
  50352. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  50353. - *.la)
  50354. - # A libtool-controlled library.
  50355. +Compile a source file into a libtool library object.
  50356. - if test "$prev" = dlfiles; then
  50357. - # This library was specified with -dlopen.
  50358. - dlfiles="$dlfiles $arg"
  50359. - prev=
  50360. - elif test "$prev" = dlprefiles; then
  50361. - # The library was specified with -dlpreopen.
  50362. - dlprefiles="$dlprefiles $arg"
  50363. - prev=
  50364. - else
  50365. - deplibs="$deplibs $arg"
  50366. - fi
  50367. - continue
  50368. - ;;
  50369. +This mode accepts the following additional options:
  50370. - # Some other compiler argument.
  50371. - *)
  50372. - # Unknown arguments in both finalize_command and compile_command need
  50373. - # to be aesthetically quoted because they are evaled later.
  50374. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50375. - case $arg in
  50376. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50377. - arg="\"$arg\""
  50378. - ;;
  50379. - esac
  50380. - ;;
  50381. - esac # arg
  50382. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  50383. + -no-suppress do not suppress compiler output for multiple passes
  50384. + -prefer-pic try to building PIC objects only
  50385. + -prefer-non-pic try to building non-PIC objects only
  50386. + -shared do not build a \`.o' file suitable for static linking
  50387. + -static only build a \`.o' file suitable for static linking
  50388. - # Now actually substitute the argument into the commands.
  50389. - if test -n "$arg"; then
  50390. - compile_command="$compile_command $arg"
  50391. - finalize_command="$finalize_command $arg"
  50392. - fi
  50393. - done # argument parsing loop
  50394. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  50395. +from the given SOURCEFILE.
  50396. - if test -n "$prev"; then
  50397. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  50398. - $echo "$help" 1>&2
  50399. - exit $EXIT_FAILURE
  50400. - fi
  50401. +The output file name is determined by removing the directory component from
  50402. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  50403. +library object suffix, \`.lo'."
  50404. + ;;
  50405. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50406. - eval arg=\"$export_dynamic_flag_spec\"
  50407. - compile_command="$compile_command $arg"
  50408. - finalize_command="$finalize_command $arg"
  50409. - fi
  50410. + execute)
  50411. + $ECHO \
  50412. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  50413. - oldlibs=
  50414. - # calculate the name of the file, without its directory
  50415. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  50416. - libobjs_save="$libobjs"
  50417. +Automatically set library path, then run a program.
  50418. - if test -n "$shlibpath_var"; then
  50419. - # get the directories listed in $shlibpath_var
  50420. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50421. - else
  50422. - shlib_search_path=
  50423. - fi
  50424. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50425. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50426. +This mode accepts the following additional options:
  50427. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  50428. - if test "X$output_objdir" = "X$output"; then
  50429. - output_objdir="$objdir"
  50430. - else
  50431. - output_objdir="$output_objdir/$objdir"
  50432. - fi
  50433. - # Create the object directory.
  50434. - if test ! -d "$output_objdir"; then
  50435. - $show "$mkdir $output_objdir"
  50436. - $run $mkdir $output_objdir
  50437. - status=$?
  50438. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  50439. - exit $status
  50440. - fi
  50441. - fi
  50442. + -dlopen FILE add the directory containing FILE to the library path
  50443. - # Determine the type of output
  50444. - case $output in
  50445. - "")
  50446. - $echo "$modename: you must specify an output file" 1>&2
  50447. - $echo "$help" 1>&2
  50448. - exit $EXIT_FAILURE
  50449. - ;;
  50450. - *.$libext) linkmode=oldlib ;;
  50451. - *.lo | *.$objext) linkmode=obj ;;
  50452. - *.la) linkmode=lib ;;
  50453. - *) linkmode=prog ;; # Anything else should be a program.
  50454. - esac
  50455. +This mode sets the library path environment variable according to \`-dlopen'
  50456. +flags.
  50457. - case $host in
  50458. - *cygwin* | *mingw* | *pw32*)
  50459. - # don't eliminate duplications in $postdeps and $predeps
  50460. - duplicate_compiler_generated_deps=yes
  50461. - ;;
  50462. - *)
  50463. - duplicate_compiler_generated_deps=$duplicate_deps
  50464. - ;;
  50465. - esac
  50466. - specialdeplibs=
  50467. +If any of the ARGS are libtool executable wrappers, then they are translated
  50468. +into their corresponding uninstalled binary, and any of their required library
  50469. +directories are added to the library path.
  50470. - libs=
  50471. - # Find all interdependent deplibs by searching for libraries
  50472. - # that are linked more than once (e.g. -la -lb -la)
  50473. - for deplib in $deplibs; do
  50474. - if test "X$duplicate_deps" = "Xyes" ; then
  50475. - case "$libs " in
  50476. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50477. - esac
  50478. - fi
  50479. - libs="$libs $deplib"
  50480. - done
  50481. +Then, COMMAND is executed, with ARGS as arguments."
  50482. + ;;
  50483. - if test "$linkmode" = lib; then
  50484. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50485. + finish)
  50486. + $ECHO \
  50487. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  50488. - # Compute libraries that are listed more than once in $predeps
  50489. - # $postdeps and mark them as special (i.e., whose duplicates are
  50490. - # not to be eliminated).
  50491. - pre_post_deps=
  50492. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  50493. - for pre_post_dep in $predeps $postdeps; do
  50494. - case "$pre_post_deps " in
  50495. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50496. - esac
  50497. - pre_post_deps="$pre_post_deps $pre_post_dep"
  50498. - done
  50499. - fi
  50500. - pre_post_deps=
  50501. - fi
  50502. +Complete the installation of libtool libraries.
  50503. - deplibs=
  50504. - newdependency_libs=
  50505. - newlib_search_path=
  50506. - need_relink=no # whether we're linking any uninstalled libtool libraries
  50507. - notinst_deplibs= # not-installed libtool libraries
  50508. - notinst_path= # paths that contain not-installed libtool libraries
  50509. - case $linkmode in
  50510. - lib)
  50511. - passes="conv link"
  50512. - for file in $dlfiles $dlprefiles; do
  50513. - case $file in
  50514. - *.la) ;;
  50515. - *)
  50516. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  50517. - exit $EXIT_FAILURE
  50518. - ;;
  50519. - esac
  50520. - done
  50521. - ;;
  50522. - prog)
  50523. - compile_deplibs=
  50524. - finalize_deplibs=
  50525. - alldeplibs=no
  50526. - newdlfiles=
  50527. - newdlprefiles=
  50528. - passes="conv scan dlopen dlpreopen link"
  50529. - ;;
  50530. - *) passes="conv"
  50531. - ;;
  50532. - esac
  50533. - for pass in $passes; do
  50534. - if test "$linkmode,$pass" = "lib,link" ||
  50535. - test "$linkmode,$pass" = "prog,scan"; then
  50536. - libs="$deplibs"
  50537. - deplibs=
  50538. - fi
  50539. - if test "$linkmode" = prog; then
  50540. - case $pass in
  50541. - dlopen) libs="$dlfiles" ;;
  50542. - dlpreopen) libs="$dlprefiles" ;;
  50543. - link)
  50544. - libs="$deplibs %DEPLIBS%"
  50545. - test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  50546. - ;;
  50547. - esac
  50548. - fi
  50549. - if test "$pass" = dlopen; then
  50550. - # Collect dlpreopened libraries
  50551. - save_deplibs="$deplibs"
  50552. - deplibs=
  50553. - fi
  50554. - for deplib in $libs; do
  50555. - lib=
  50556. - found=no
  50557. - case $deplib in
  50558. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  50559. - if test "$linkmode,$pass" = "prog,link"; then
  50560. - compile_deplibs="$deplib $compile_deplibs"
  50561. - finalize_deplibs="$deplib $finalize_deplibs"
  50562. - else
  50563. - deplibs="$deplib $deplibs"
  50564. - fi
  50565. - continue
  50566. - ;;
  50567. - -l*)
  50568. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  50569. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  50570. - continue
  50571. - fi
  50572. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  50573. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50574. - for search_ext in .la $std_shrext .so .a; do
  50575. - # Search the libtool library
  50576. - lib="$searchdir/lib${name}${search_ext}"
  50577. - if test -f "$lib"; then
  50578. - if test "$search_ext" = ".la"; then
  50579. - found=yes
  50580. - else
  50581. - found=no
  50582. - fi
  50583. - break 2
  50584. - fi
  50585. - done
  50586. - done
  50587. - if test "$found" != yes; then
  50588. - # deplib doesn't seem to be a libtool library
  50589. - if test "$linkmode,$pass" = "prog,link"; then
  50590. - compile_deplibs="$deplib $compile_deplibs"
  50591. - finalize_deplibs="$deplib $finalize_deplibs"
  50592. - else
  50593. - deplibs="$deplib $deplibs"
  50594. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50595. - fi
  50596. - continue
  50597. - else # deplib is a libtool library
  50598. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  50599. - # We need to do some special things here, and not later.
  50600. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  50601. - case " $predeps $postdeps " in
  50602. - *" $deplib "*)
  50603. - if (${SED} -e '2q' $lib |
  50604. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50605. - library_names=
  50606. - old_library=
  50607. - case $lib in
  50608. - */* | *\\*) . $lib ;;
  50609. - *) . ./$lib ;;
  50610. - esac
  50611. - for l in $old_library $library_names; do
  50612. - ll="$l"
  50613. - done
  50614. - if test "X$ll" = "X$old_library" ; then # only static version available
  50615. - found=no
  50616. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  50617. - test "X$ladir" = "X$lib" && ladir="."
  50618. - lib=$ladir/$old_library
  50619. - if test "$linkmode,$pass" = "prog,link"; then
  50620. - compile_deplibs="$deplib $compile_deplibs"
  50621. - finalize_deplibs="$deplib $finalize_deplibs"
  50622. - else
  50623. - deplibs="$deplib $deplibs"
  50624. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  50625. - fi
  50626. - continue
  50627. - fi
  50628. - fi
  50629. - ;;
  50630. - *) ;;
  50631. - esac
  50632. - fi
  50633. - fi
  50634. - ;; # -l
  50635. - -L*)
  50636. - case $linkmode in
  50637. - lib)
  50638. - deplibs="$deplib $deplibs"
  50639. - test "$pass" = conv && continue
  50640. - newdependency_libs="$deplib $newdependency_libs"
  50641. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  50642. - ;;
  50643. - prog)
  50644. - if test "$pass" = conv; then
  50645. - deplibs="$deplib $deplibs"
  50646. - continue
  50647. - fi
  50648. - if test "$pass" = scan; then
  50649. - deplibs="$deplib $deplibs"
  50650. - else
  50651. - compile_deplibs="$deplib $compile_deplibs"
  50652. - finalize_deplibs="$deplib $finalize_deplibs"
  50653. - fi
  50654. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  50655. - ;;
  50656. - *)
  50657. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  50658. - ;;
  50659. - esac # linkmode
  50660. - continue
  50661. - ;; # -L
  50662. - -R*)
  50663. - if test "$pass" = link; then
  50664. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  50665. - # Make sure the xrpath contains only unique directories.
  50666. - case "$xrpath " in
  50667. - *" $dir "*) ;;
  50668. - *) xrpath="$xrpath $dir" ;;
  50669. - esac
  50670. - fi
  50671. - deplibs="$deplib $deplibs"
  50672. - continue
  50673. - ;;
  50674. - *.la) lib="$deplib" ;;
  50675. - *.$libext)
  50676. - if test "$pass" = conv; then
  50677. - deplibs="$deplib $deplibs"
  50678. - continue
  50679. - fi
  50680. - case $linkmode in
  50681. - lib)
  50682. - if test "$deplibs_check_method" != pass_all; then
  50683. - $echo
  50684. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  50685. - $echo "*** I have the capability to make that library automatically link in when"
  50686. - $echo "*** you link to this library. But I can only do this if you have a"
  50687. - $echo "*** shared version of the library, which you do not appear to have"
  50688. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  50689. - $echo "*** that it is just a static archive that I should not used here."
  50690. - else
  50691. - $echo
  50692. - $echo "*** Warning: Linking the shared library $output against the"
  50693. - $echo "*** static library $deplib is not portable!"
  50694. - deplibs="$deplib $deplibs"
  50695. - fi
  50696. - continue
  50697. - ;;
  50698. - prog)
  50699. - if test "$pass" != link; then
  50700. - deplibs="$deplib $deplibs"
  50701. - else
  50702. - compile_deplibs="$deplib $compile_deplibs"
  50703. - finalize_deplibs="$deplib $finalize_deplibs"
  50704. - fi
  50705. - continue
  50706. - ;;
  50707. - esac # linkmode
  50708. - ;; # *.$libext
  50709. - *.lo | *.$objext)
  50710. - if test "$pass" = conv; then
  50711. - deplibs="$deplib $deplibs"
  50712. - elif test "$linkmode" = prog; then
  50713. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  50714. - # If there is no dlopen support or we're linking statically,
  50715. - # we need to preload.
  50716. - newdlprefiles="$newdlprefiles $deplib"
  50717. - compile_deplibs="$deplib $compile_deplibs"
  50718. - finalize_deplibs="$deplib $finalize_deplibs"
  50719. - else
  50720. - newdlfiles="$newdlfiles $deplib"
  50721. - fi
  50722. - fi
  50723. - continue
  50724. - ;;
  50725. - %DEPLIBS%)
  50726. - alldeplibs=yes
  50727. - continue
  50728. - ;;
  50729. - esac # case $deplib
  50730. - if test "$found" = yes || test -f "$lib"; then :
  50731. - else
  50732. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  50733. - exit $EXIT_FAILURE
  50734. - fi
  50735. +Each LIBDIR is a directory that contains libtool libraries.
  50736. - # Check to see that this really is a libtool archive.
  50737. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  50738. - else
  50739. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  50740. - exit $EXIT_FAILURE
  50741. - fi
  50742. +The commands that this mode executes may require superuser privileges. Use
  50743. +the \`--dry-run' option if you just want to see what would be executed."
  50744. + ;;
  50745. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  50746. - test "X$ladir" = "X$lib" && ladir="."
  50747. + install)
  50748. + $ECHO \
  50749. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  50750. - dlname=
  50751. - dlopen=
  50752. - dlpreopen=
  50753. - libdir=
  50754. - library_names=
  50755. - old_library=
  50756. - # If the library was installed with an old release of libtool,
  50757. - # it will not redefine variables installed, or shouldnotlink
  50758. - installed=yes
  50759. - shouldnotlink=no
  50760. +Install executables or libraries.
  50761. - # Read the .la file
  50762. - case $lib in
  50763. - */* | *\\*) . $lib ;;
  50764. - *) . ./$lib ;;
  50765. - esac
  50766. +INSTALL-COMMAND is the installation command. The first component should be
  50767. +either the \`install' or \`cp' program.
  50768. - if test "$linkmode,$pass" = "lib,link" ||
  50769. - test "$linkmode,$pass" = "prog,scan" ||
  50770. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  50771. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  50772. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  50773. - fi
  50774. +The following components of INSTALL-COMMAND are treated specially:
  50775. - if test "$pass" = conv; then
  50776. - # Only check for convenience libraries
  50777. - deplibs="$lib $deplibs"
  50778. - if test -z "$libdir"; then
  50779. - if test -z "$old_library"; then
  50780. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  50781. - exit $EXIT_FAILURE
  50782. - fi
  50783. - # It is a libtool convenience library, so add in its objects.
  50784. - convenience="$convenience $ladir/$objdir/$old_library"
  50785. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  50786. - tmp_libs=
  50787. - for deplib in $dependency_libs; do
  50788. - deplibs="$deplib $deplibs"
  50789. - if test "X$duplicate_deps" = "Xyes" ; then
  50790. - case "$tmp_libs " in
  50791. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50792. - esac
  50793. - fi
  50794. - tmp_libs="$tmp_libs $deplib"
  50795. - done
  50796. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  50797. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  50798. - exit $EXIT_FAILURE
  50799. - fi
  50800. - continue
  50801. - fi # $pass = conv
  50802. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  50803. +The rest of the components are interpreted as arguments to that command (only
  50804. +BSD-compatible install options are recognized)."
  50805. + ;;
  50806. - # Get the name of the library we link against.
  50807. - linklib=
  50808. - for l in $old_library $library_names; do
  50809. - linklib="$l"
  50810. - done
  50811. - if test -z "$linklib"; then
  50812. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  50813. - exit $EXIT_FAILURE
  50814. - fi
  50815. + link)
  50816. + $ECHO \
  50817. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  50818. - # This library was specified with -dlopen.
  50819. - if test "$pass" = dlopen; then
  50820. - if test -z "$libdir"; then
  50821. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  50822. - exit $EXIT_FAILURE
  50823. - fi
  50824. - if test -z "$dlname" ||
  50825. - test "$dlopen_support" != yes ||
  50826. - test "$build_libtool_libs" = no; then
  50827. - # If there is no dlname, no dlopen support or we're linking
  50828. - # statically, we need to preload. We also need to preload any
  50829. - # dependent libraries so libltdl's deplib preloader doesn't
  50830. - # bomb out in the load deplibs phase.
  50831. - dlprefiles="$dlprefiles $lib $dependency_libs"
  50832. - else
  50833. - newdlfiles="$newdlfiles $lib"
  50834. - fi
  50835. - continue
  50836. - fi # $pass = dlopen
  50837. +Link object files or libraries together to form another library, or to
  50838. +create an executable program.
  50839. - # We need an absolute path.
  50840. - case $ladir in
  50841. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  50842. - *)
  50843. - abs_ladir=`cd "$ladir" && pwd`
  50844. - if test -z "$abs_ladir"; then
  50845. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  50846. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  50847. - abs_ladir="$ladir"
  50848. - fi
  50849. - ;;
  50850. - esac
  50851. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  50852. +LINK-COMMAND is a command using the C compiler that you would use to create
  50853. +a program from several object files.
  50854. - # Find the relevant object directory and library name.
  50855. - if test "X$installed" = Xyes; then
  50856. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  50857. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  50858. - dir="$ladir"
  50859. - absdir="$abs_ladir"
  50860. - libdir="$abs_ladir"
  50861. - else
  50862. - dir="$libdir"
  50863. - absdir="$libdir"
  50864. - fi
  50865. - else
  50866. - dir="$ladir/$objdir"
  50867. - absdir="$abs_ladir/$objdir"
  50868. - # Remove this search path later
  50869. - notinst_path="$notinst_path $abs_ladir"
  50870. - fi # $installed = yes
  50871. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  50872. +The following components of LINK-COMMAND are treated specially:
  50873. - # This library was specified with -dlpreopen.
  50874. - if test "$pass" = dlpreopen; then
  50875. - if test -z "$libdir"; then
  50876. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  50877. - exit $EXIT_FAILURE
  50878. - fi
  50879. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  50880. - # are required to link).
  50881. - if test -n "$old_library"; then
  50882. - newdlprefiles="$newdlprefiles $dir/$old_library"
  50883. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  50884. - elif test -n "$dlname"; then
  50885. - newdlprefiles="$newdlprefiles $dir/$dlname"
  50886. - else
  50887. - newdlprefiles="$newdlprefiles $dir/$linklib"
  50888. - fi
  50889. - fi # $pass = dlpreopen
  50890. + -all-static do not do any dynamic linking at all
  50891. + -avoid-version do not add a version suffix if possible
  50892. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  50893. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  50894. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  50895. + -export-symbols SYMFILE
  50896. + try to export only the symbols listed in SYMFILE
  50897. + -export-symbols-regex REGEX
  50898. + try to export only the symbols matching REGEX
  50899. + -LLIBDIR search LIBDIR for required installed libraries
  50900. + -lNAME OUTPUT-FILE requires the installed library libNAME
  50901. + -module build a library that can dlopened
  50902. + -no-fast-install disable the fast-install mode
  50903. + -no-install link a not-installable executable
  50904. + -no-undefined declare that a library does not refer to external symbols
  50905. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  50906. + -objectlist FILE Use a list of object files found in FILE to specify objects
  50907. + -precious-files-regex REGEX
  50908. + don't remove output files matching REGEX
  50909. + -release RELEASE specify package release information
  50910. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  50911. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  50912. + -shared only do dynamic linking of libtool libraries
  50913. + -shrext SUFFIX override the standard shared library file extension
  50914. + -static do not do any dynamic linking of uninstalled libtool libraries
  50915. + -static-libtool-libs
  50916. + do not do any dynamic linking of libtool libraries
  50917. + -version-info CURRENT[:REVISION[:AGE]]
  50918. + specify library version info [each variable defaults to 0]
  50919. + -weak LIBNAME declare that the target provides the LIBNAME interface
  50920. - if test -z "$libdir"; then
  50921. - # Link the convenience library
  50922. - if test "$linkmode" = lib; then
  50923. - deplibs="$dir/$old_library $deplibs"
  50924. - elif test "$linkmode,$pass" = "prog,link"; then
  50925. - compile_deplibs="$dir/$old_library $compile_deplibs"
  50926. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  50927. - else
  50928. - deplibs="$lib $deplibs" # used for prog,scan pass
  50929. - fi
  50930. - continue
  50931. - fi
  50932. +All other options (arguments beginning with \`-') are ignored.
  50933. +Every other argument is treated as a filename. Files ending in \`.la' are
  50934. +treated as uninstalled libtool libraries, other files are standard or library
  50935. +object files.
  50936. - if test "$linkmode" = prog && test "$pass" != link; then
  50937. - newlib_search_path="$newlib_search_path $ladir"
  50938. - deplibs="$lib $deplibs"
  50939. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  50940. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  50941. +required, except when creating a convenience library.
  50942. - linkalldeplibs=no
  50943. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  50944. - test "$build_libtool_libs" = no; then
  50945. - linkalldeplibs=yes
  50946. - fi
  50947. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  50948. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  50949. - tmp_libs=
  50950. - for deplib in $dependency_libs; do
  50951. - case $deplib in
  50952. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  50953. - esac
  50954. - # Need to link against all dependency_libs?
  50955. - if test "$linkalldeplibs" = yes; then
  50956. - deplibs="$deplib $deplibs"
  50957. - else
  50958. - # Need to hardcode shared library paths
  50959. - # or/and link against static libraries
  50960. - newdependency_libs="$deplib $newdependency_libs"
  50961. - fi
  50962. - if test "X$duplicate_deps" = "Xyes" ; then
  50963. - case "$tmp_libs " in
  50964. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50965. - esac
  50966. - fi
  50967. - tmp_libs="$tmp_libs $deplib"
  50968. - done # for deplib
  50969. - continue
  50970. - fi # $linkmode = prog...
  50971. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  50972. +is created, otherwise an executable program is created."
  50973. + ;;
  50974. - if test "$linkmode,$pass" = "prog,link"; then
  50975. - if test -n "$library_names" &&
  50976. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  50977. - # We need to hardcode the library path
  50978. - if test -n "$shlibpath_var"; then
  50979. - # Make sure the rpath contains only unique directories.
  50980. - case "$temp_rpath " in
  50981. - *" $dir "*) ;;
  50982. - *" $absdir "*) ;;
  50983. - *) temp_rpath="$temp_rpath $dir" ;;
  50984. - esac
  50985. - fi
  50986. + uninstall)
  50987. + $ECHO \
  50988. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  50989. - # Hardcode the library path.
  50990. - # Skip directories that are in the system default run-time
  50991. - # search path.
  50992. - case " $sys_lib_dlsearch_path " in
  50993. - *" $absdir "*) ;;
  50994. - *)
  50995. - case "$compile_rpath " in
  50996. - *" $absdir "*) ;;
  50997. - *) compile_rpath="$compile_rpath $absdir"
  50998. - esac
  50999. - ;;
  51000. - esac
  51001. - case " $sys_lib_dlsearch_path " in
  51002. - *" $libdir "*) ;;
  51003. - *)
  51004. - case "$finalize_rpath " in
  51005. - *" $libdir "*) ;;
  51006. - *) finalize_rpath="$finalize_rpath $libdir"
  51007. - esac
  51008. - ;;
  51009. - esac
  51010. - fi # $linkmode,$pass = prog,link...
  51011. +Remove libraries from an installation directory.
  51012. - if test "$alldeplibs" = yes &&
  51013. - { test "$deplibs_check_method" = pass_all ||
  51014. - { test "$build_libtool_libs" = yes &&
  51015. - test -n "$library_names"; }; }; then
  51016. - # We only need to search for static libraries
  51017. - continue
  51018. - fi
  51019. - fi
  51020. +RM is the name of the program to use to delete files associated with each FILE
  51021. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  51022. +to RM.
  51023. - link_static=no # Whether the deplib will be linked statically
  51024. - if test -n "$library_names" &&
  51025. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  51026. - if test "$installed" = no; then
  51027. - notinst_deplibs="$notinst_deplibs $lib"
  51028. - need_relink=yes
  51029. - fi
  51030. - # This is a shared library
  51031. +If FILE is a libtool library, all the files associated with it are deleted.
  51032. +Otherwise, only FILE itself is deleted using RM."
  51033. + ;;
  51034. - # Warn about portability, can't link against -module's on
  51035. - # some systems (darwin)
  51036. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  51037. - $echo
  51038. - if test "$linkmode" = prog; then
  51039. - $echo "*** Warning: Linking the executable $output against the loadable module"
  51040. - else
  51041. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  51042. - fi
  51043. - $echo "*** $linklib is not portable!"
  51044. - fi
  51045. - if test "$linkmode" = lib &&
  51046. - test "$hardcode_into_libs" = yes; then
  51047. - # Hardcode the library path.
  51048. - # Skip directories that are in the system default run-time
  51049. - # search path.
  51050. - case " $sys_lib_dlsearch_path " in
  51051. - *" $absdir "*) ;;
  51052. - *)
  51053. - case "$compile_rpath " in
  51054. - *" $absdir "*) ;;
  51055. - *) compile_rpath="$compile_rpath $absdir"
  51056. - esac
  51057. - ;;
  51058. - esac
  51059. - case " $sys_lib_dlsearch_path " in
  51060. - *" $libdir "*) ;;
  51061. - *)
  51062. - case "$finalize_rpath " in
  51063. - *" $libdir "*) ;;
  51064. - *) finalize_rpath="$finalize_rpath $libdir"
  51065. - esac
  51066. - ;;
  51067. - esac
  51068. - fi
  51069. + *)
  51070. + func_fatal_help "invalid operation mode \`$mode'"
  51071. + ;;
  51072. + esac
  51073. - if test -n "$old_archive_from_expsyms_cmds"; then
  51074. - # figure out the soname
  51075. - set dummy $library_names
  51076. - realname="$2"
  51077. - shift; shift
  51078. - libname=`eval \\$echo \"$libname_spec\"`
  51079. - # use dlname if we got it. it's perfectly good, no?
  51080. - if test -n "$dlname"; then
  51081. - soname="$dlname"
  51082. - elif test -n "$soname_spec"; then
  51083. - # bleh windows
  51084. - case $host in
  51085. - *cygwin* | mingw*)
  51086. - major=`expr $current - $age`
  51087. - versuffix="-$major"
  51088. - ;;
  51089. - esac
  51090. - eval soname=\"$soname_spec\"
  51091. - else
  51092. - soname="$realname"
  51093. - fi
  51094. + $ECHO
  51095. + $ECHO "Try \`$progname --help' for more information about other modes."
  51096. - # Make a new name for the extract_expsyms_cmds to use
  51097. - soroot="$soname"
  51098. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  51099. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  51100. + exit $?
  51101. +}
  51102. - # If the library has no export list, then create one now
  51103. - if test -f "$output_objdir/$soname-def"; then :
  51104. - else
  51105. - $show "extracting exported symbol list from \`$soname'"
  51106. - save_ifs="$IFS"; IFS='~'
  51107. - cmds=$extract_expsyms_cmds
  51108. - for cmd in $cmds; do
  51109. - IFS="$save_ifs"
  51110. - eval cmd=\"$cmd\"
  51111. - $show "$cmd"
  51112. - $run eval "$cmd" || exit $?
  51113. - done
  51114. - IFS="$save_ifs"
  51115. - fi
  51116. + # Now that we've collected a possible --mode arg, show help if necessary
  51117. + $opt_help && func_mode_help
  51118. - # Create $newlib
  51119. - if test -f "$output_objdir/$newlib"; then :; else
  51120. - $show "generating import library for \`$soname'"
  51121. - save_ifs="$IFS"; IFS='~'
  51122. - cmds=$old_archive_from_expsyms_cmds
  51123. - for cmd in $cmds; do
  51124. - IFS="$save_ifs"
  51125. - eval cmd=\"$cmd\"
  51126. - $show "$cmd"
  51127. - $run eval "$cmd" || exit $?
  51128. - done
  51129. - IFS="$save_ifs"
  51130. - fi
  51131. - # make sure the library variables are pointing to the new library
  51132. - dir=$output_objdir
  51133. - linklib=$newlib
  51134. - fi # test -n "$old_archive_from_expsyms_cmds"
  51135. - if test "$linkmode" = prog || test "$mode" != relink; then
  51136. - add_shlibpath=
  51137. - add_dir=
  51138. - add=
  51139. - lib_linked=yes
  51140. - case $hardcode_action in
  51141. - immediate | unsupported)
  51142. - if test "$hardcode_direct" = no; then
  51143. - add="$dir/$linklib"
  51144. - case $host in
  51145. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  51146. - *-*-darwin* )
  51147. - # if the lib is a module then we can not link against
  51148. - # it, someone is ignoring the new warnings I added
  51149. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  51150. - $echo "** Warning, lib $linklib is a module, not a shared library"
  51151. - if test -z "$old_library" ; then
  51152. - $echo
  51153. - $echo "** And there doesn't seem to be a static archive available"
  51154. - $echo "** The link will probably fail, sorry"
  51155. - else
  51156. - add="$dir/$old_library"
  51157. - fi
  51158. - fi
  51159. - esac
  51160. - elif test "$hardcode_minus_L" = no; then
  51161. - case $host in
  51162. - *-*-sunos*) add_shlibpath="$dir" ;;
  51163. - esac
  51164. - add_dir="-L$dir"
  51165. - add="-l$name"
  51166. - elif test "$hardcode_shlibpath_var" = no; then
  51167. - add_shlibpath="$dir"
  51168. - add="-l$name"
  51169. - else
  51170. - lib_linked=no
  51171. - fi
  51172. - ;;
  51173. - relink)
  51174. - if test "$hardcode_direct" = yes; then
  51175. - add="$dir/$linklib"
  51176. - elif test "$hardcode_minus_L" = yes; then
  51177. - add_dir="-L$dir"
  51178. - # Try looking first in the location we're being installed to.
  51179. - if test -n "$inst_prefix_dir"; then
  51180. - case "$libdir" in
  51181. - [\\/]*)
  51182. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51183. - ;;
  51184. - esac
  51185. - fi
  51186. - add="-l$name"
  51187. - elif test "$hardcode_shlibpath_var" = yes; then
  51188. - add_shlibpath="$dir"
  51189. - add="-l$name"
  51190. - else
  51191. - lib_linked=no
  51192. - fi
  51193. - ;;
  51194. - *) lib_linked=no ;;
  51195. - esac
  51196. +# func_mode_execute arg...
  51197. +func_mode_execute ()
  51198. +{
  51199. + $opt_debug
  51200. + # The first argument is the command name.
  51201. + cmd="$nonopt"
  51202. + test -z "$cmd" && \
  51203. + func_fatal_help "you must specify a COMMAND"
  51204. - if test "$lib_linked" != yes; then
  51205. - $echo "$modename: configuration error: unsupported hardcode properties"
  51206. - exit $EXIT_FAILURE
  51207. - fi
  51208. + # Handle -dlopen flags immediately.
  51209. + for file in $execute_dlfiles; do
  51210. + test -f "$file" \
  51211. + || func_fatal_help "\`$file' is not a file"
  51212. - if test -n "$add_shlibpath"; then
  51213. - case :$compile_shlibpath: in
  51214. - *":$add_shlibpath:"*) ;;
  51215. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  51216. - esac
  51217. - fi
  51218. - if test "$linkmode" = prog; then
  51219. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  51220. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  51221. - else
  51222. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51223. - test -n "$add" && deplibs="$add $deplibs"
  51224. - if test "$hardcode_direct" != yes && \
  51225. - test "$hardcode_minus_L" != yes && \
  51226. - test "$hardcode_shlibpath_var" = yes; then
  51227. - case :$finalize_shlibpath: in
  51228. - *":$libdir:"*) ;;
  51229. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51230. - esac
  51231. - fi
  51232. - fi
  51233. - fi
  51234. + dir=
  51235. + case $file in
  51236. + *.la)
  51237. + # Check to see that this really is a libtool archive.
  51238. + func_lalib_unsafe_p "$file" \
  51239. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  51240. - if test "$linkmode" = prog || test "$mode" = relink; then
  51241. - add_shlibpath=
  51242. - add_dir=
  51243. - add=
  51244. - # Finalize command for both is simple: just hardcode it.
  51245. - if test "$hardcode_direct" = yes; then
  51246. - add="$libdir/$linklib"
  51247. - elif test "$hardcode_minus_L" = yes; then
  51248. - add_dir="-L$libdir"
  51249. - add="-l$name"
  51250. - elif test "$hardcode_shlibpath_var" = yes; then
  51251. - case :$finalize_shlibpath: in
  51252. - *":$libdir:"*) ;;
  51253. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51254. - esac
  51255. - add="-l$name"
  51256. - elif test "$hardcode_automatic" = yes; then
  51257. - if test -n "$inst_prefix_dir" &&
  51258. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  51259. - add="$inst_prefix_dir$libdir/$linklib"
  51260. - else
  51261. - add="$libdir/$linklib"
  51262. - fi
  51263. - else
  51264. - # We cannot seem to hardcode it, guess we'll fake it.
  51265. - add_dir="-L$libdir"
  51266. - # Try looking first in the location we're being installed to.
  51267. - if test -n "$inst_prefix_dir"; then
  51268. - case "$libdir" in
  51269. - [\\/]*)
  51270. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51271. - ;;
  51272. - esac
  51273. - fi
  51274. - add="-l$name"
  51275. - fi
  51276. + # Read the libtool library.
  51277. + dlname=
  51278. + library_names=
  51279. + func_source "$file"
  51280. - if test "$linkmode" = prog; then
  51281. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  51282. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  51283. - else
  51284. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51285. - test -n "$add" && deplibs="$add $deplibs"
  51286. - fi
  51287. - fi
  51288. - elif test "$linkmode" = prog; then
  51289. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  51290. - # is not unsupported. This is valid on all known static and
  51291. - # shared platforms.
  51292. - if test "$hardcode_direct" != unsupported; then
  51293. - test -n "$old_library" && linklib="$old_library"
  51294. - compile_deplibs="$dir/$linklib $compile_deplibs"
  51295. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  51296. - else
  51297. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  51298. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  51299. - fi
  51300. - elif test "$build_libtool_libs" = yes; then
  51301. - # Not a shared library
  51302. - if test "$deplibs_check_method" != pass_all; then
  51303. - # We're trying link a shared library against a static one
  51304. - # but the system doesn't support it.
  51305. + # Skip this library if it cannot be dlopened.
  51306. + if test -z "$dlname"; then
  51307. + # Warn if it was a shared library.
  51308. + test -n "$library_names" && \
  51309. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  51310. + continue
  51311. + fi
  51312. - # Just print a warning and add the library to dependency_libs so
  51313. - # that the program can be linked against the static library.
  51314. - $echo
  51315. - $echo "*** Warning: This system can not link to static lib archive $lib."
  51316. - $echo "*** I have the capability to make that library automatically link in when"
  51317. - $echo "*** you link to this library. But I can only do this if you have a"
  51318. - $echo "*** shared version of the library, which you do not appear to have."
  51319. - if test "$module" = yes; then
  51320. - $echo "*** But as you try to build a module library, libtool will still create "
  51321. - $echo "*** a static module, that should work as long as the dlopening application"
  51322. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  51323. - if test -z "$global_symbol_pipe"; then
  51324. - $echo
  51325. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51326. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51327. - $echo "*** not find such a program. So, this module is probably useless."
  51328. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51329. - fi
  51330. - if test "$build_old_libs" = no; then
  51331. - build_libtool_libs=module
  51332. - build_old_libs=yes
  51333. - else
  51334. - build_libtool_libs=no
  51335. - fi
  51336. - fi
  51337. - else
  51338. - convenience="$convenience $dir/$old_library"
  51339. - old_convenience="$old_convenience $dir/$old_library"
  51340. - deplibs="$dir/$old_library $deplibs"
  51341. - link_static=yes
  51342. - fi
  51343. - fi # link shared/static library?
  51344. + func_dirname "$file" "" "."
  51345. + dir="$func_dirname_result"
  51346. - if test "$linkmode" = lib; then
  51347. - if test -n "$dependency_libs" &&
  51348. - { test "$hardcode_into_libs" != yes ||
  51349. - test "$build_old_libs" = yes ||
  51350. - test "$link_static" = yes; }; then
  51351. - # Extract -R from dependency_libs
  51352. - temp_deplibs=
  51353. - for libdir in $dependency_libs; do
  51354. - case $libdir in
  51355. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  51356. - case " $xrpath " in
  51357. - *" $temp_xrpath "*) ;;
  51358. - *) xrpath="$xrpath $temp_xrpath";;
  51359. - esac;;
  51360. - *) temp_deplibs="$temp_deplibs $libdir";;
  51361. - esac
  51362. - done
  51363. - dependency_libs="$temp_deplibs"
  51364. + if test -f "$dir/$objdir/$dlname"; then
  51365. + dir="$dir/$objdir"
  51366. + else
  51367. + if test ! -f "$dir/$dlname"; then
  51368. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  51369. fi
  51370. + fi
  51371. + ;;
  51372. - newlib_search_path="$newlib_search_path $absdir"
  51373. - # Link against this library
  51374. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  51375. - # ... and its dependency_libs
  51376. - tmp_libs=
  51377. - for deplib in $dependency_libs; do
  51378. - newdependency_libs="$deplib $newdependency_libs"
  51379. - if test "X$duplicate_deps" = "Xyes" ; then
  51380. - case "$tmp_libs " in
  51381. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51382. - esac
  51383. - fi
  51384. - tmp_libs="$tmp_libs $deplib"
  51385. - done
  51386. + *.lo)
  51387. + # Just add the directory containing the .lo file.
  51388. + func_dirname "$file" "" "."
  51389. + dir="$func_dirname_result"
  51390. + ;;
  51391. - if test "$link_all_deplibs" != no; then
  51392. - # Add the search paths of all dependency libraries
  51393. - for deplib in $dependency_libs; do
  51394. - case $deplib in
  51395. - -L*) path="$deplib" ;;
  51396. - *.la)
  51397. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  51398. - test "X$dir" = "X$deplib" && dir="."
  51399. - # We need an absolute path.
  51400. - case $dir in
  51401. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  51402. - *)
  51403. - absdir=`cd "$dir" && pwd`
  51404. - if test -z "$absdir"; then
  51405. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  51406. - absdir="$dir"
  51407. - fi
  51408. - ;;
  51409. - esac
  51410. - if grep "^installed=no" $deplib > /dev/null; then
  51411. - path="$absdir/$objdir"
  51412. - else
  51413. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51414. - if test -z "$libdir"; then
  51415. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  51416. - exit $EXIT_FAILURE
  51417. - fi
  51418. - if test "$absdir" != "$libdir"; then
  51419. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  51420. - fi
  51421. - path="$absdir"
  51422. - fi
  51423. - depdepl=
  51424. - case $host in
  51425. - *-*-darwin*)
  51426. - # we do not want to link against static libs,
  51427. - # but need to link against shared
  51428. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  51429. - if test -n "$deplibrary_names" ; then
  51430. - for tmp in $deplibrary_names ; do
  51431. - depdepl=$tmp
  51432. - done
  51433. - if test -f "$path/$depdepl" ; then
  51434. - depdepl="$path/$depdepl"
  51435. - fi
  51436. - # do not add paths which are already there
  51437. - case " $newlib_search_path " in
  51438. - *" $path "*) ;;
  51439. - *) newlib_search_path="$newlib_search_path $path";;
  51440. - esac
  51441. - fi
  51442. - path=""
  51443. - ;;
  51444. - *)
  51445. - path="-L$path"
  51446. - ;;
  51447. - esac
  51448. - ;;
  51449. - -l*)
  51450. - case $host in
  51451. - *-*-darwin*)
  51452. - # Again, we only want to link against shared libraries
  51453. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  51454. - for tmp in $newlib_search_path ; do
  51455. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  51456. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  51457. - break
  51458. - fi
  51459. - done
  51460. - path=""
  51461. - ;;
  51462. - *) continue ;;
  51463. - esac
  51464. - ;;
  51465. - *) continue ;;
  51466. - esac
  51467. - case " $deplibs " in
  51468. - *" $depdepl "*) ;;
  51469. - *) deplibs="$depdepl $deplibs" ;;
  51470. - esac
  51471. - case " $deplibs " in
  51472. - *" $path "*) ;;
  51473. - *) deplibs="$deplibs $path" ;;
  51474. - esac
  51475. - done
  51476. - fi # link_all_deplibs != no
  51477. - fi # linkmode = lib
  51478. - done # for deplib in $libs
  51479. - dependency_libs="$newdependency_libs"
  51480. - if test "$pass" = dlpreopen; then
  51481. - # Link the dlpreopened libraries before other libraries
  51482. - for deplib in $save_deplibs; do
  51483. - deplibs="$deplib $deplibs"
  51484. - done
  51485. - fi
  51486. - if test "$pass" != dlopen; then
  51487. - if test "$pass" != conv; then
  51488. - # Make sure lib_search_path contains only unique directories.
  51489. - lib_search_path=
  51490. - for dir in $newlib_search_path; do
  51491. - case "$lib_search_path " in
  51492. - *" $dir "*) ;;
  51493. - *) lib_search_path="$lib_search_path $dir" ;;
  51494. - esac
  51495. - done
  51496. - newlib_search_path=
  51497. - fi
  51498. -
  51499. - if test "$linkmode,$pass" != "prog,link"; then
  51500. - vars="deplibs"
  51501. - else
  51502. - vars="compile_deplibs finalize_deplibs"
  51503. - fi
  51504. - for var in $vars dependency_libs; do
  51505. - # Add libraries to $var in reverse order
  51506. - eval tmp_libs=\"\$$var\"
  51507. - new_libs=
  51508. - for deplib in $tmp_libs; do
  51509. - # FIXME: Pedantically, this is the right thing to do, so
  51510. - # that some nasty dependency loop isn't accidentally
  51511. - # broken:
  51512. - #new_libs="$deplib $new_libs"
  51513. - # Pragmatically, this seems to cause very few problems in
  51514. - # practice:
  51515. - case $deplib in
  51516. - -L*) new_libs="$deplib $new_libs" ;;
  51517. - -R*) ;;
  51518. - *)
  51519. - # And here is the reason: when a library appears more
  51520. - # than once as an explicit dependence of a library, or
  51521. - # is implicitly linked in more than once by the
  51522. - # compiler, it is considered special, and multiple
  51523. - # occurrences thereof are not removed. Compare this
  51524. - # with having the same library being listed as a
  51525. - # dependency of multiple other libraries: in this case,
  51526. - # we know (pedantically, we assume) the library does not
  51527. - # need to be listed more than once, so we keep only the
  51528. - # last copy. This is not always right, but it is rare
  51529. - # enough that we require users that really mean to play
  51530. - # such unportable linking tricks to link the library
  51531. - # using -Wl,-lname, so that libtool does not consider it
  51532. - # for duplicate removal.
  51533. - case " $specialdeplibs " in
  51534. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  51535. - *)
  51536. - case " $new_libs " in
  51537. - *" $deplib "*) ;;
  51538. - *) new_libs="$deplib $new_libs" ;;
  51539. - esac
  51540. - ;;
  51541. - esac
  51542. - ;;
  51543. - esac
  51544. - done
  51545. - tmp_libs=
  51546. - for deplib in $new_libs; do
  51547. - case $deplib in
  51548. - -L*)
  51549. - case " $tmp_libs " in
  51550. - *" $deplib "*) ;;
  51551. - *) tmp_libs="$tmp_libs $deplib" ;;
  51552. - esac
  51553. - ;;
  51554. - *) tmp_libs="$tmp_libs $deplib" ;;
  51555. - esac
  51556. - done
  51557. - eval $var=\"$tmp_libs\"
  51558. - done # for var
  51559. - fi
  51560. - # Last step: remove runtime libs from dependency_libs
  51561. - # (they stay in deplibs)
  51562. - tmp_libs=
  51563. - for i in $dependency_libs ; do
  51564. - case " $predeps $postdeps $compiler_lib_search_path " in
  51565. - *" $i "*)
  51566. - i=""
  51567. - ;;
  51568. - esac
  51569. - if test -n "$i" ; then
  51570. - tmp_libs="$tmp_libs $i"
  51571. - fi
  51572. - done
  51573. - dependency_libs=$tmp_libs
  51574. - done # for pass
  51575. - if test "$linkmode" = prog; then
  51576. - dlfiles="$newdlfiles"
  51577. - dlprefiles="$newdlprefiles"
  51578. - fi
  51579. -
  51580. - case $linkmode in
  51581. - oldlib)
  51582. - if test -n "$deplibs"; then
  51583. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  51584. - fi
  51585. -
  51586. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51587. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  51588. - fi
  51589. -
  51590. - if test -n "$rpath"; then
  51591. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  51592. - fi
  51593. -
  51594. - if test -n "$xrpath"; then
  51595. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  51596. - fi
  51597. -
  51598. - if test -n "$vinfo"; then
  51599. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  51600. - fi
  51601. + *)
  51602. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  51603. + continue
  51604. + ;;
  51605. + esac
  51606. - if test -n "$release"; then
  51607. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  51608. - fi
  51609. + # Get the absolute pathname.
  51610. + absdir=`cd "$dir" && pwd`
  51611. + test -n "$absdir" && dir="$absdir"
  51612. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  51613. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  51614. + # Now add the directory to shlibpath_var.
  51615. + if eval "test -z \"\$$shlibpath_var\""; then
  51616. + eval "$shlibpath_var=\"\$dir\""
  51617. + else
  51618. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  51619. fi
  51620. + done
  51621. - # Now set the variables for building old libraries.
  51622. - build_libtool_libs=no
  51623. - oldlibs="$output"
  51624. - objs="$objs$old_deplibs"
  51625. - ;;
  51626. + # This variable tells wrapper scripts just to set shlibpath_var
  51627. + # rather than running their programs.
  51628. + libtool_execute_magic="$magic"
  51629. - lib)
  51630. - # Make sure we only generate libraries of the form `libNAME.la'.
  51631. - case $outputname in
  51632. - lib*)
  51633. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51634. - eval shared_ext=\"$shrext_cmds\"
  51635. - eval libname=\"$libname_spec\"
  51636. - ;;
  51637. + # Check if any of the arguments is a wrapper script.
  51638. + args=
  51639. + for file
  51640. + do
  51641. + case $file in
  51642. + -*) ;;
  51643. *)
  51644. - if test "$module" = no; then
  51645. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  51646. - $echo "$help" 1>&2
  51647. - exit $EXIT_FAILURE
  51648. - fi
  51649. - if test "$need_lib_prefix" != no; then
  51650. - # Add the "lib" prefix for modules if required
  51651. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51652. - eval shared_ext=\"$shrext_cmds\"
  51653. - eval libname=\"$libname_spec\"
  51654. - else
  51655. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  51656. + # Do a test to see if this is really a libtool program.
  51657. + if func_ltwrapper_script_p "$file"; then
  51658. + func_source "$file"
  51659. + # Transform arg to wrapped name.
  51660. + file="$progdir/$program"
  51661. + elif func_ltwrapper_executable_p "$file"; then
  51662. + func_ltwrapper_scriptname "$file"
  51663. + func_source "$func_ltwrapper_scriptname_result"
  51664. + # Transform arg to wrapped name.
  51665. + file="$progdir/$program"
  51666. fi
  51667. ;;
  51668. esac
  51669. + # Quote arguments (to preserve shell metacharacters).
  51670. + func_quote_for_eval "$file"
  51671. + args="$args $func_quote_for_eval_result"
  51672. + done
  51673. - if test -n "$objs"; then
  51674. - if test "$deplibs_check_method" != pass_all; then
  51675. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  51676. - exit $EXIT_FAILURE
  51677. - else
  51678. - $echo
  51679. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  51680. - $echo "*** objects $objs is not portable!"
  51681. - libobjs="$libobjs $objs"
  51682. - fi
  51683. + if test "X$opt_dry_run" = Xfalse; then
  51684. + if test -n "$shlibpath_var"; then
  51685. + # Export the shlibpath_var.
  51686. + eval "export $shlibpath_var"
  51687. fi
  51688. - if test "$dlself" != no; then
  51689. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  51690. - fi
  51691. + # Restore saved environment variables
  51692. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  51693. + do
  51694. + eval "if test \"\${save_$lt_var+set}\" = set; then
  51695. + $lt_var=\$save_$lt_var; export $lt_var
  51696. + else
  51697. + $lt_unset $lt_var
  51698. + fi"
  51699. + done
  51700. - set dummy $rpath
  51701. - if test "$#" -gt 2; then
  51702. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  51703. + # Now prepare to actually exec the command.
  51704. + exec_cmd="\$cmd$args"
  51705. + else
  51706. + # Display what would be done.
  51707. + if test -n "$shlibpath_var"; then
  51708. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  51709. + $ECHO "export $shlibpath_var"
  51710. fi
  51711. - install_libdir="$2"
  51712. + $ECHO "$cmd$args"
  51713. + exit $EXIT_SUCCESS
  51714. + fi
  51715. +}
  51716. - oldlibs=
  51717. - if test -z "$rpath"; then
  51718. - if test "$build_libtool_libs" = yes; then
  51719. - # Building a libtool convenience library.
  51720. - # Some compilers have problems with a `.al' extension so
  51721. - # convenience libraries should have the same extension an
  51722. - # archive normally would.
  51723. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  51724. - build_libtool_libs=convenience
  51725. - build_old_libs=yes
  51726. - fi
  51727. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  51728. - if test -n "$vinfo"; then
  51729. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  51730. - fi
  51731. - if test -n "$release"; then
  51732. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  51733. - fi
  51734. - else
  51735. +# func_mode_finish arg...
  51736. +func_mode_finish ()
  51737. +{
  51738. + $opt_debug
  51739. + libdirs="$nonopt"
  51740. + admincmds=
  51741. - # Parse the version information argument.
  51742. - save_ifs="$IFS"; IFS=':'
  51743. - set dummy $vinfo 0 0 0
  51744. - IFS="$save_ifs"
  51745. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  51746. + for dir
  51747. + do
  51748. + libdirs="$libdirs $dir"
  51749. + done
  51750. - if test -n "$8"; then
  51751. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  51752. - $echo "$help" 1>&2
  51753. - exit $EXIT_FAILURE
  51754. + for libdir in $libdirs; do
  51755. + if test -n "$finish_cmds"; then
  51756. + # Do each command in the finish commands.
  51757. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  51758. +'"$cmd"'"'
  51759. fi
  51760. + if test -n "$finish_eval"; then
  51761. + # Do the single finish_eval.
  51762. + eval cmds=\"$finish_eval\"
  51763. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  51764. + $cmds"
  51765. + fi
  51766. + done
  51767. + fi
  51768. - # convert absolute version numbers to libtool ages
  51769. - # this retains compatibility with .la files and attempts
  51770. - # to make the code below a bit more comprehensible
  51771. + # Exit here if they wanted silent mode.
  51772. + $opt_silent && exit $EXIT_SUCCESS
  51773. - case $vinfo_number in
  51774. - yes)
  51775. - number_major="$2"
  51776. - number_minor="$3"
  51777. - number_revision="$4"
  51778. - #
  51779. - # There are really only two kinds -- those that
  51780. - # use the current revision as the major version
  51781. - # and those that subtract age and use age as
  51782. - # a minor version. But, then there is irix
  51783. - # which has an extra 1 added just for fun
  51784. - #
  51785. - case $version_type in
  51786. - darwin|linux|osf|windows)
  51787. - current=`expr $number_major + $number_minor`
  51788. - age="$number_minor"
  51789. - revision="$number_revision"
  51790. - ;;
  51791. - freebsd-aout|freebsd-elf|sunos)
  51792. - current="$number_major"
  51793. - revision="$number_minor"
  51794. - age="0"
  51795. - ;;
  51796. - irix|nonstopux)
  51797. - current=`expr $number_major + $number_minor - 1`
  51798. - age="$number_minor"
  51799. - revision="$number_minor"
  51800. - ;;
  51801. - *)
  51802. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  51803. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  51804. - exit $EXIT_FAILURE
  51805. - ;;
  51806. - esac
  51807. - ;;
  51808. - no)
  51809. - current="$2"
  51810. - revision="$3"
  51811. - age="$4"
  51812. - ;;
  51813. - esac
  51814. -
  51815. - # Check that each of the things are valid numbers.
  51816. - case $current in
  51817. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  51818. - *)
  51819. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  51820. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51821. - exit $EXIT_FAILURE
  51822. - ;;
  51823. - esac
  51824. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  51825. + $ECHO "Libraries have been installed in:"
  51826. + for libdir in $libdirs; do
  51827. + $ECHO " $libdir"
  51828. + done
  51829. + $ECHO
  51830. + $ECHO "If you ever happen to want to link against installed libraries"
  51831. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  51832. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  51833. + $ECHO "flag during linking and do at least one of the following:"
  51834. + if test -n "$shlibpath_var"; then
  51835. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  51836. + $ECHO " during execution"
  51837. + fi
  51838. + if test -n "$runpath_var"; then
  51839. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  51840. + $ECHO " during linking"
  51841. + fi
  51842. + if test -n "$hardcode_libdir_flag_spec"; then
  51843. + libdir=LIBDIR
  51844. + eval flag=\"$hardcode_libdir_flag_spec\"
  51845. - case $revision in
  51846. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  51847. - *)
  51848. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  51849. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51850. - exit $EXIT_FAILURE
  51851. - ;;
  51852. - esac
  51853. + $ECHO " - use the \`$flag' linker flag"
  51854. + fi
  51855. + if test -n "$admincmds"; then
  51856. + $ECHO " - have your system administrator run these commands:$admincmds"
  51857. + fi
  51858. + if test -f /etc/ld.so.conf; then
  51859. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  51860. + fi
  51861. + $ECHO
  51862. - case $age in
  51863. - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  51864. - *)
  51865. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  51866. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51867. - exit $EXIT_FAILURE
  51868. - ;;
  51869. - esac
  51870. + $ECHO "See any operating system documentation about shared libraries for"
  51871. + case $host in
  51872. + solaris2.[6789]|solaris2.1[0-9])
  51873. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  51874. + $ECHO "pages."
  51875. + ;;
  51876. + *)
  51877. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  51878. + ;;
  51879. + esac
  51880. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  51881. + exit $EXIT_SUCCESS
  51882. +}
  51883. - if test "$age" -gt "$current"; then
  51884. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  51885. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  51886. - exit $EXIT_FAILURE
  51887. - fi
  51888. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  51889. - # Calculate the version variables.
  51890. - major=
  51891. - versuffix=
  51892. - verstring=
  51893. - case $version_type in
  51894. - none) ;;
  51895. - darwin)
  51896. - # Like Linux, but with the current version available in
  51897. - # verstring for coding it into the library header
  51898. - major=.`expr $current - $age`
  51899. - versuffix="$major.$age.$revision"
  51900. - # Darwin ld doesn't like 0 for these options...
  51901. - minor_current=`expr $current + 1`
  51902. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  51903. - ;;
  51904. +# func_mode_install arg...
  51905. +func_mode_install ()
  51906. +{
  51907. + $opt_debug
  51908. + # There may be an optional sh(1) argument at the beginning of
  51909. + # install_prog (especially on Windows NT).
  51910. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  51911. + # Allow the use of GNU shtool's install command.
  51912. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  51913. + # Aesthetically quote it.
  51914. + func_quote_for_eval "$nonopt"
  51915. + install_prog="$func_quote_for_eval_result "
  51916. + arg=$1
  51917. + shift
  51918. + else
  51919. + install_prog=
  51920. + arg=$nonopt
  51921. + fi
  51922. - freebsd-aout)
  51923. - major=".$current"
  51924. - versuffix=".$current.$revision";
  51925. - ;;
  51926. + # The real first argument should be the name of the installation program.
  51927. + # Aesthetically quote it.
  51928. + func_quote_for_eval "$arg"
  51929. + install_prog="$install_prog$func_quote_for_eval_result"
  51930. - freebsd-elf)
  51931. - major=".$current"
  51932. - versuffix=".$current";
  51933. - ;;
  51934. + # We need to accept at least all the BSD install flags.
  51935. + dest=
  51936. + files=
  51937. + opts=
  51938. + prev=
  51939. + install_type=
  51940. + isdir=no
  51941. + stripme=
  51942. + for arg
  51943. + do
  51944. + if test -n "$dest"; then
  51945. + files="$files $dest"
  51946. + dest=$arg
  51947. + continue
  51948. + fi
  51949. - irix | nonstopux)
  51950. - major=`expr $current - $age + 1`
  51951. + case $arg in
  51952. + -d) isdir=yes ;;
  51953. + -f)
  51954. + case " $install_prog " in
  51955. + *[\\\ /]cp\ *) ;;
  51956. + *) prev=$arg ;;
  51957. + esac
  51958. + ;;
  51959. + -g | -m | -o)
  51960. + prev=$arg
  51961. + ;;
  51962. + -s)
  51963. + stripme=" -s"
  51964. + continue
  51965. + ;;
  51966. + -*)
  51967. + ;;
  51968. + *)
  51969. + # If the previous option needed an argument, then skip it.
  51970. + if test -n "$prev"; then
  51971. + prev=
  51972. + else
  51973. + dest=$arg
  51974. + continue
  51975. + fi
  51976. + ;;
  51977. + esac
  51978. - case $version_type in
  51979. - nonstopux) verstring_prefix=nonstopux ;;
  51980. - *) verstring_prefix=sgi ;;
  51981. - esac
  51982. - verstring="$verstring_prefix$major.$revision"
  51983. + # Aesthetically quote the argument.
  51984. + func_quote_for_eval "$arg"
  51985. + install_prog="$install_prog $func_quote_for_eval_result"
  51986. + done
  51987. - # Add in all the interfaces that we are compatible with.
  51988. - loop=$revision
  51989. - while test "$loop" -ne 0; do
  51990. - iface=`expr $revision - $loop`
  51991. - loop=`expr $loop - 1`
  51992. - verstring="$verstring_prefix$major.$iface:$verstring"
  51993. - done
  51994. + test -z "$install_prog" && \
  51995. + func_fatal_help "you must specify an install program"
  51996. - # Before this point, $major must not contain `.'.
  51997. - major=.$major
  51998. - versuffix="$major.$revision"
  51999. - ;;
  52000. + test -n "$prev" && \
  52001. + func_fatal_help "the \`$prev' option requires an argument"
  52002. - linux)
  52003. - major=.`expr $current - $age`
  52004. - versuffix="$major.$age.$revision"
  52005. - ;;
  52006. + if test -z "$files"; then
  52007. + if test -z "$dest"; then
  52008. + func_fatal_help "no file or destination specified"
  52009. + else
  52010. + func_fatal_help "you must specify a destination"
  52011. + fi
  52012. + fi
  52013. - osf)
  52014. - major=.`expr $current - $age`
  52015. - versuffix=".$current.$age.$revision"
  52016. - verstring="$current.$age.$revision"
  52017. + # Strip any trailing slash from the destination.
  52018. + func_stripname '' '/' "$dest"
  52019. + dest=$func_stripname_result
  52020. - # Add in all the interfaces that we are compatible with.
  52021. - loop=$age
  52022. - while test "$loop" -ne 0; do
  52023. - iface=`expr $current - $loop`
  52024. - loop=`expr $loop - 1`
  52025. - verstring="$verstring:${iface}.0"
  52026. - done
  52027. + # Check to see that the destination is a directory.
  52028. + test -d "$dest" && isdir=yes
  52029. + if test "$isdir" = yes; then
  52030. + destdir="$dest"
  52031. + destname=
  52032. + else
  52033. + func_dirname_and_basename "$dest" "" "."
  52034. + destdir="$func_dirname_result"
  52035. + destname="$func_basename_result"
  52036. - # Make executables depend on our current version.
  52037. - verstring="$verstring:${current}.0"
  52038. + # Not a directory, so check to see that there is only one file specified.
  52039. + set dummy $files; shift
  52040. + test "$#" -gt 1 && \
  52041. + func_fatal_help "\`$dest' is not a directory"
  52042. + fi
  52043. + case $destdir in
  52044. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  52045. + *)
  52046. + for file in $files; do
  52047. + case $file in
  52048. + *.lo) ;;
  52049. + *)
  52050. + func_fatal_help "\`$destdir' must be an absolute directory name"
  52051. ;;
  52052. + esac
  52053. + done
  52054. + ;;
  52055. + esac
  52056. - sunos)
  52057. - major=".$current"
  52058. - versuffix=".$current.$revision"
  52059. - ;;
  52060. + # This variable tells wrapper scripts just to set variables rather
  52061. + # than running their programs.
  52062. + libtool_install_magic="$magic"
  52063. - windows)
  52064. - # Use '-' rather than '.', since we only want one
  52065. - # extension on DOS 8.3 filesystems.
  52066. - major=`expr $current - $age`
  52067. - versuffix="-$major"
  52068. - ;;
  52069. + staticlibs=
  52070. + future_libdirs=
  52071. + current_libdirs=
  52072. + for file in $files; do
  52073. - *)
  52074. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  52075. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  52076. - exit $EXIT_FAILURE
  52077. - ;;
  52078. - esac
  52079. + # Do each installation.
  52080. + case $file in
  52081. + *.$libext)
  52082. + # Do the static libraries later.
  52083. + staticlibs="$staticlibs $file"
  52084. + ;;
  52085. - # Clear the version info if we defaulted, and they specified a release.
  52086. - if test -z "$vinfo" && test -n "$release"; then
  52087. - major=
  52088. - case $version_type in
  52089. - darwin)
  52090. - # we can't check for "0.0" in archive_cmds due to quoting
  52091. - # problems, so we reset it completely
  52092. - verstring=
  52093. - ;;
  52094. - *)
  52095. - verstring="0.0"
  52096. - ;;
  52097. + *.la)
  52098. + # Check to see that this really is a libtool archive.
  52099. + func_lalib_unsafe_p "$file" \
  52100. + || func_fatal_help "\`$file' is not a valid libtool archive"
  52101. +
  52102. + library_names=
  52103. + old_library=
  52104. + relink_command=
  52105. + func_source "$file"
  52106. +
  52107. + # Add the libdir to current_libdirs if it is the destination.
  52108. + if test "X$destdir" = "X$libdir"; then
  52109. + case "$current_libdirs " in
  52110. + *" $libdir "*) ;;
  52111. + *) current_libdirs="$current_libdirs $libdir" ;;
  52112. esac
  52113. - if test "$need_version" = no; then
  52114. - versuffix=
  52115. + else
  52116. + # Note the libdir as a future libdir.
  52117. + case "$future_libdirs " in
  52118. + *" $libdir "*) ;;
  52119. + *) future_libdirs="$future_libdirs $libdir" ;;
  52120. + esac
  52121. + fi
  52122. +
  52123. + func_dirname "$file" "/" ""
  52124. + dir="$func_dirname_result"
  52125. + dir="$dir$objdir"
  52126. +
  52127. + if test -n "$relink_command"; then
  52128. + # Determine the prefix the user has applied to our future dir.
  52129. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  52130. +
  52131. + # Don't allow the user to place us outside of our expected
  52132. + # location b/c this prevents finding dependent libraries that
  52133. + # are installed to the same prefix.
  52134. + # At present, this check doesn't affect windows .dll's that
  52135. + # are installed into $libdir/../bin (currently, that works fine)
  52136. + # but it's something to keep an eye on.
  52137. + test "$inst_prefix_dir" = "$destdir" && \
  52138. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  52139. +
  52140. + if test -n "$inst_prefix_dir"; then
  52141. + # Stick the inst_prefix_dir data into the link command.
  52142. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  52143. else
  52144. - versuffix=".0.0"
  52145. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  52146. fi
  52147. - fi
  52148. - # Remove version info from name if versioning should be avoided
  52149. - if test "$avoid_version" = yes && test "$need_version" = no; then
  52150. - major=
  52151. - versuffix=
  52152. - verstring=""
  52153. + func_warning "relinking \`$file'"
  52154. + func_show_eval "$relink_command" \
  52155. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  52156. fi
  52157. - # Check to see if the archive will have undefined symbols.
  52158. - if test "$allow_undefined" = yes; then
  52159. - if test "$allow_undefined_flag" = unsupported; then
  52160. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  52161. - build_libtool_libs=no
  52162. - build_old_libs=yes
  52163. - fi
  52164. - else
  52165. - # Don't allow undefined symbols.
  52166. - allow_undefined_flag="$no_undefined_flag"
  52167. - fi
  52168. - fi
  52169. + # See the names of the shared library.
  52170. + set dummy $library_names; shift
  52171. + if test -n "$1"; then
  52172. + realname="$1"
  52173. + shift
  52174. - if test "$mode" != relink; then
  52175. - # Remove our outputs, but don't remove object files since they
  52176. - # may have been created when compiling PIC objects.
  52177. - removelist=
  52178. - tempremovelist=`$echo "$output_objdir/*"`
  52179. - for p in $tempremovelist; do
  52180. - case $p in
  52181. - *.$objext)
  52182. - ;;
  52183. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  52184. - if test "X$precious_files_regex" != "X"; then
  52185. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  52186. - then
  52187. - continue
  52188. - fi
  52189. - fi
  52190. - removelist="$removelist $p"
  52191. - ;;
  52192. - *) ;;
  52193. + srcname="$realname"
  52194. + test -n "$relink_command" && srcname="$realname"T
  52195. +
  52196. + # Install the shared library and build the symlinks.
  52197. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  52198. + 'exit $?'
  52199. + tstripme="$stripme"
  52200. + case $host_os in
  52201. + cygwin* | mingw* | pw32* | cegcc*)
  52202. + case $realname in
  52203. + *.dll.a)
  52204. + tstripme=""
  52205. + ;;
  52206. + esac
  52207. + ;;
  52208. esac
  52209. - done
  52210. - if test -n "$removelist"; then
  52211. - $show "${rm}r $removelist"
  52212. - $run ${rm}r $removelist
  52213. + if test -n "$tstripme" && test -n "$striplib"; then
  52214. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  52215. + fi
  52216. +
  52217. + if test "$#" -gt 0; then
  52218. + # Delete the old symlinks, and create new ones.
  52219. + # Try `ln -sf' first, because the `ln' binary might depend on
  52220. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  52221. + # so we also need to try rm && ln -s.
  52222. + for linkname
  52223. + do
  52224. + test "$linkname" != "$realname" \
  52225. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  52226. + done
  52227. + fi
  52228. +
  52229. + # Do each command in the postinstall commands.
  52230. + lib="$destdir/$realname"
  52231. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  52232. fi
  52233. - fi
  52234. - # Now set the variables for building old libraries.
  52235. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  52236. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  52237. + # Install the pseudo-library for information purposes.
  52238. + func_basename "$file"
  52239. + name="$func_basename_result"
  52240. + instname="$dir/$name"i
  52241. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  52242. - # Transform .lo files to .o files.
  52243. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  52244. - fi
  52245. + # Maybe install the static library, too.
  52246. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  52247. + ;;
  52248. - # Eliminate all temporary directories.
  52249. - for path in $notinst_path; do
  52250. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  52251. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  52252. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  52253. - done
  52254. + *.lo)
  52255. + # Install (i.e. copy) a libtool object.
  52256. - if test -n "$xrpath"; then
  52257. - # If the user specified any rpath flags, then add them.
  52258. - temp_xrpath=
  52259. - for libdir in $xrpath; do
  52260. - temp_xrpath="$temp_xrpath -R$libdir"
  52261. - case "$finalize_rpath " in
  52262. - *" $libdir "*) ;;
  52263. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52264. - esac
  52265. - done
  52266. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  52267. - dependency_libs="$temp_xrpath $dependency_libs"
  52268. + # Figure out destination file name, if it wasn't already specified.
  52269. + if test -n "$destname"; then
  52270. + destfile="$destdir/$destname"
  52271. + else
  52272. + func_basename "$file"
  52273. + destfile="$func_basename_result"
  52274. + destfile="$destdir/$destfile"
  52275. fi
  52276. - fi
  52277. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  52278. - old_dlfiles="$dlfiles"
  52279. - dlfiles=
  52280. - for lib in $old_dlfiles; do
  52281. - case " $dlprefiles $dlfiles " in
  52282. - *" $lib "*) ;;
  52283. - *) dlfiles="$dlfiles $lib" ;;
  52284. + # Deduce the name of the destination old-style object file.
  52285. + case $destfile in
  52286. + *.lo)
  52287. + func_lo2o "$destfile"
  52288. + staticdest=$func_lo2o_result
  52289. + ;;
  52290. + *.$objext)
  52291. + staticdest="$destfile"
  52292. + destfile=
  52293. + ;;
  52294. + *)
  52295. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  52296. + ;;
  52297. esac
  52298. - done
  52299. - # Make sure dlprefiles contains only unique files
  52300. - old_dlprefiles="$dlprefiles"
  52301. - dlprefiles=
  52302. - for lib in $old_dlprefiles; do
  52303. - case "$dlprefiles " in
  52304. - *" $lib "*) ;;
  52305. - *) dlprefiles="$dlprefiles $lib" ;;
  52306. - esac
  52307. - done
  52308. + # Install the libtool object if requested.
  52309. + test -n "$destfile" && \
  52310. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  52311. - if test "$build_libtool_libs" = yes; then
  52312. - if test -n "$rpath"; then
  52313. - case $host in
  52314. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  52315. - # these systems don't actually have a c library (as such)!
  52316. - ;;
  52317. - *-*-rhapsody* | *-*-darwin1.[012])
  52318. - # Rhapsody C library is in the System framework
  52319. - deplibs="$deplibs -framework System"
  52320. + # Install the old object if enabled.
  52321. + if test "$build_old_libs" = yes; then
  52322. + # Deduce the name of the old-style object file.
  52323. + func_lo2o "$file"
  52324. + staticobj=$func_lo2o_result
  52325. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  52326. + fi
  52327. + exit $EXIT_SUCCESS
  52328. + ;;
  52329. +
  52330. + *)
  52331. + # Figure out destination file name, if it wasn't already specified.
  52332. + if test -n "$destname"; then
  52333. + destfile="$destdir/$destname"
  52334. + else
  52335. + func_basename "$file"
  52336. + destfile="$func_basename_result"
  52337. + destfile="$destdir/$destfile"
  52338. + fi
  52339. +
  52340. + # If the file is missing, and there is a .exe on the end, strip it
  52341. + # because it is most likely a libtool script we actually want to
  52342. + # install
  52343. + stripped_ext=""
  52344. + case $file in
  52345. + *.exe)
  52346. + if test ! -f "$file"; then
  52347. + func_stripname '' '.exe' "$file"
  52348. + file=$func_stripname_result
  52349. + stripped_ext=".exe"
  52350. + fi
  52351. ;;
  52352. - *-*-netbsd*)
  52353. - # Don't link with libc until the a.out ld.so is fixed.
  52354. + esac
  52355. +
  52356. + # Do a test to see if this is really a libtool program.
  52357. + case $host in
  52358. + *cygwin* | *mingw*)
  52359. + if func_ltwrapper_executable_p "$file"; then
  52360. + func_ltwrapper_scriptname "$file"
  52361. + wrapper=$func_ltwrapper_scriptname_result
  52362. + else
  52363. + func_stripname '' '.exe' "$file"
  52364. + wrapper=$func_stripname_result
  52365. + fi
  52366. ;;
  52367. - *-*-openbsd* | *-*-freebsd*)
  52368. - # Do not include libc due to us having libc/libc_r.
  52369. - test "X$arg" = "X-lc" && continue
  52370. + *)
  52371. + wrapper=$file
  52372. ;;
  52373. - *)
  52374. - # Add libc to deplibs on all other systems if necessary.
  52375. - if test "$build_libtool_need_lc" = "yes"; then
  52376. - deplibs="$deplibs -lc"
  52377. + esac
  52378. + if func_ltwrapper_script_p "$wrapper"; then
  52379. + notinst_deplibs=
  52380. + relink_command=
  52381. +
  52382. + func_source "$wrapper"
  52383. +
  52384. + # Check the variables that should have been set.
  52385. + test -z "$generated_by_libtool_version" && \
  52386. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  52387. +
  52388. + finalize=yes
  52389. + for lib in $notinst_deplibs; do
  52390. + # Check to see that each library is installed.
  52391. + libdir=
  52392. + if test -f "$lib"; then
  52393. + func_source "$lib"
  52394. fi
  52395. - ;;
  52396. - esac
  52397. - fi
  52398. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  52399. + if test -n "$libdir" && test ! -f "$libfile"; then
  52400. + func_warning "\`$lib' has not been installed in \`$libdir'"
  52401. + finalize=no
  52402. + fi
  52403. + done
  52404. - # Transform deplibs into only deplibs that can be linked in shared.
  52405. - name_save=$name
  52406. - libname_save=$libname
  52407. - release_save=$release
  52408. - versuffix_save=$versuffix
  52409. - major_save=$major
  52410. - # I'm not sure if I'm treating the release correctly. I think
  52411. - # release should show up in the -l (ie -lgmp5) so we don't want to
  52412. - # add it in twice. Is that correct?
  52413. - release=""
  52414. - versuffix=""
  52415. - major=""
  52416. - newdeplibs=
  52417. - droppeddeps=no
  52418. - case $deplibs_check_method in
  52419. - pass_all)
  52420. - # Don't check for shared/static. Everything works.
  52421. - # This might be a little naive. We might want to check
  52422. - # whether the library exists or not. But this is on
  52423. - # osf3 & osf4 and I'm not really sure... Just
  52424. - # implementing what was already the behavior.
  52425. - newdeplibs=$deplibs
  52426. - ;;
  52427. - test_compile)
  52428. - # This code stresses the "libraries are programs" paradigm to its
  52429. - # limits. Maybe even breaks it. We compile a program, linking it
  52430. - # against the deplibs as a proxy for the library. Then we can check
  52431. - # whether they linked in statically or dynamically with ldd.
  52432. - $rm conftest.c
  52433. - cat > conftest.c <<EOF
  52434. - int main() { return 0; }
  52435. -EOF
  52436. - $rm conftest
  52437. - $LTCC -o conftest conftest.c $deplibs
  52438. - if test "$?" -eq 0 ; then
  52439. - ldd_output=`ldd conftest`
  52440. - for i in $deplibs; do
  52441. - name="`expr $i : '-l\(.*\)'`"
  52442. - # If $name is empty we are operating on a -L argument.
  52443. - if test "$name" != "" && test "$name" -ne "0"; then
  52444. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52445. - case " $predeps $postdeps " in
  52446. - *" $i "*)
  52447. - newdeplibs="$newdeplibs $i"
  52448. - i=""
  52449. - ;;
  52450. - esac
  52451. + relink_command=
  52452. + func_source "$wrapper"
  52453. +
  52454. + outputname=
  52455. + if test "$fast_install" = no && test -n "$relink_command"; then
  52456. + $opt_dry_run || {
  52457. + if test "$finalize" = yes; then
  52458. + tmpdir=`func_mktempdir`
  52459. + func_basename "$file$stripped_ext"
  52460. + file="$func_basename_result"
  52461. + outputname="$tmpdir/$file"
  52462. + # Replace the output file specification.
  52463. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  52464. +
  52465. + $opt_silent || {
  52466. + func_quote_for_expand "$relink_command"
  52467. + eval "func_echo $func_quote_for_expand_result"
  52468. + }
  52469. + if eval "$relink_command"; then :
  52470. + else
  52471. + func_error "error: relink \`$file' with the above command before installing it"
  52472. + $opt_dry_run || ${RM}r "$tmpdir"
  52473. + continue
  52474. fi
  52475. - if test -n "$i" ; then
  52476. - libname=`eval \\$echo \"$libname_spec\"`
  52477. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52478. - set dummy $deplib_matches
  52479. - deplib_match=$2
  52480. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52481. - newdeplibs="$newdeplibs $i"
  52482. - else
  52483. - droppeddeps=yes
  52484. - $echo
  52485. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52486. - $echo "*** I have the capability to make that library automatically link in when"
  52487. - $echo "*** you link to this library. But I can only do this if you have a"
  52488. - $echo "*** shared version of the library, which I believe you do not have"
  52489. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  52490. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  52491. - fi
  52492. - fi
  52493. + file="$outputname"
  52494. else
  52495. - newdeplibs="$newdeplibs $i"
  52496. + func_warning "cannot relink \`$file'"
  52497. fi
  52498. - done
  52499. + }
  52500. else
  52501. - # Error occurred in the first compile. Let's try to salvage
  52502. - # the situation: Compile a separate program for each library.
  52503. - for i in $deplibs; do
  52504. - name="`expr $i : '-l\(.*\)'`"
  52505. - # If $name is empty we are operating on a -L argument.
  52506. - if test "$name" != "" && test "$name" != "0"; then
  52507. - $rm conftest
  52508. - $LTCC -o conftest conftest.c $i
  52509. - # Did it work?
  52510. - if test "$?" -eq 0 ; then
  52511. - ldd_output=`ldd conftest`
  52512. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52513. - case " $predeps $postdeps " in
  52514. - *" $i "*)
  52515. - newdeplibs="$newdeplibs $i"
  52516. - i=""
  52517. - ;;
  52518. - esac
  52519. - fi
  52520. - if test -n "$i" ; then
  52521. - libname=`eval \\$echo \"$libname_spec\"`
  52522. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52523. - set dummy $deplib_matches
  52524. - deplib_match=$2
  52525. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52526. - newdeplibs="$newdeplibs $i"
  52527. - else
  52528. - droppeddeps=yes
  52529. - $echo
  52530. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52531. - $echo "*** I have the capability to make that library automatically link in when"
  52532. - $echo "*** you link to this library. But I can only do this if you have a"
  52533. - $echo "*** shared version of the library, which you do not appear to have"
  52534. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  52535. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  52536. - fi
  52537. - fi
  52538. - else
  52539. - droppeddeps=yes
  52540. - $echo
  52541. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  52542. - $echo "*** make it link in! You will probably need to install it or some"
  52543. - $echo "*** library that it depends on before this library will be fully"
  52544. - $echo "*** functional. Installing it before continuing would be even better."
  52545. - fi
  52546. - else
  52547. - newdeplibs="$newdeplibs $i"
  52548. - fi
  52549. - done
  52550. + # Install the binary that we compiled earlier.
  52551. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  52552. fi
  52553. - ;;
  52554. - file_magic*)
  52555. - set dummy $deplibs_check_method
  52556. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52557. - for a_deplib in $deplibs; do
  52558. - name="`expr $a_deplib : '-l\(.*\)'`"
  52559. - # If $name is empty we are operating on a -L argument.
  52560. - if test "$name" != "" && test "$name" != "0"; then
  52561. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52562. - case " $predeps $postdeps " in
  52563. - *" $a_deplib "*)
  52564. - newdeplibs="$newdeplibs $a_deplib"
  52565. - a_deplib=""
  52566. - ;;
  52567. - esac
  52568. - fi
  52569. - if test -n "$a_deplib" ; then
  52570. - libname=`eval \\$echo \"$libname_spec\"`
  52571. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52572. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52573. - for potent_lib in $potential_libs; do
  52574. - # Follow soft links.
  52575. - if ls -lLd "$potent_lib" 2>/dev/null \
  52576. - | grep " -> " >/dev/null; then
  52577. - continue
  52578. - fi
  52579. - # The statement above tries to avoid entering an
  52580. - # endless loop below, in case of cyclic links.
  52581. - # We might still enter an endless loop, since a link
  52582. - # loop can be closed while we follow links,
  52583. - # but so what?
  52584. - potlib="$potent_lib"
  52585. - while test -h "$potlib" 2>/dev/null; do
  52586. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  52587. - case $potliblink in
  52588. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  52589. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  52590. - esac
  52591. - done
  52592. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  52593. - | ${SED} 10q \
  52594. - | $EGREP "$file_magic_regex" > /dev/null; then
  52595. - newdeplibs="$newdeplibs $a_deplib"
  52596. - a_deplib=""
  52597. - break 2
  52598. - fi
  52599. - done
  52600. - done
  52601. - fi
  52602. - if test -n "$a_deplib" ; then
  52603. - droppeddeps=yes
  52604. - $echo
  52605. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52606. - $echo "*** I have the capability to make that library automatically link in when"
  52607. - $echo "*** you link to this library. But I can only do this if you have a"
  52608. - $echo "*** shared version of the library, which you do not appear to have"
  52609. - $echo "*** because I did check the linker path looking for a file starting"
  52610. - if test -z "$potlib" ; then
  52611. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  52612. - else
  52613. - $echo "*** with $libname and none of the candidates passed a file format test"
  52614. - $echo "*** using a file magic. Last file checked: $potlib"
  52615. - fi
  52616. - fi
  52617. - else
  52618. - # Add a -L argument.
  52619. - newdeplibs="$newdeplibs $a_deplib"
  52620. - fi
  52621. - done # Gone through all deplibs.
  52622. - ;;
  52623. - match_pattern*)
  52624. - set dummy $deplibs_check_method
  52625. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52626. - for a_deplib in $deplibs; do
  52627. - name="`expr $a_deplib : '-l\(.*\)'`"
  52628. - # If $name is empty we are operating on a -L argument.
  52629. - if test -n "$name" && test "$name" != "0"; then
  52630. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52631. - case " $predeps $postdeps " in
  52632. - *" $a_deplib "*)
  52633. - newdeplibs="$newdeplibs $a_deplib"
  52634. - a_deplib=""
  52635. - ;;
  52636. - esac
  52637. - fi
  52638. - if test -n "$a_deplib" ; then
  52639. - libname=`eval \\$echo \"$libname_spec\"`
  52640. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52641. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52642. - for potent_lib in $potential_libs; do
  52643. - potlib="$potent_lib" # see symlink-check above in file_magic test
  52644. - if eval $echo \"$potent_lib\" 2>/dev/null \
  52645. - | ${SED} 10q \
  52646. - | $EGREP "$match_pattern_regex" > /dev/null; then
  52647. - newdeplibs="$newdeplibs $a_deplib"
  52648. - a_deplib=""
  52649. - break 2
  52650. - fi
  52651. - done
  52652. - done
  52653. - fi
  52654. - if test -n "$a_deplib" ; then
  52655. - droppeddeps=yes
  52656. - $echo
  52657. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  52658. - $echo "*** I have the capability to make that library automatically link in when"
  52659. - $echo "*** you link to this library. But I can only do this if you have a"
  52660. - $echo "*** shared version of the library, which you do not appear to have"
  52661. - $echo "*** because I did check the linker path looking for a file starting"
  52662. - if test -z "$potlib" ; then
  52663. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  52664. - else
  52665. - $echo "*** with $libname and none of the candidates passed a file format test"
  52666. - $echo "*** using a regex pattern. Last file checked: $potlib"
  52667. - fi
  52668. - fi
  52669. - else
  52670. - # Add a -L argument.
  52671. - newdeplibs="$newdeplibs $a_deplib"
  52672. - fi
  52673. - done # Gone through all deplibs.
  52674. - ;;
  52675. - none | unknown | *)
  52676. - newdeplibs=""
  52677. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  52678. - -e 's/ -[LR][^ ]*//g'`
  52679. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52680. - for i in $predeps $postdeps ; do
  52681. - # can't use Xsed below, because $i might contain '/'
  52682. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  52683. - done
  52684. - fi
  52685. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  52686. - | grep . >/dev/null; then
  52687. - $echo
  52688. - if test "X$deplibs_check_method" = "Xnone"; then
  52689. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  52690. - else
  52691. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  52692. - fi
  52693. - $echo "*** All declared inter-library dependencies are being dropped."
  52694. - droppeddeps=yes
  52695. - fi
  52696. - ;;
  52697. - esac
  52698. - versuffix=$versuffix_save
  52699. - major=$major_save
  52700. - release=$release_save
  52701. - libname=$libname_save
  52702. - name=$name_save
  52703. + fi
  52704. - case $host in
  52705. - *-*-rhapsody* | *-*-darwin1.[012])
  52706. - # On Rhapsody replace the C library is the System framework
  52707. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  52708. + # remove .exe since cygwin /usr/bin/install will append another
  52709. + # one anyway
  52710. + case $install_prog,$host in
  52711. + */usr/bin/install*,*cygwin*)
  52712. + case $file:$destfile in
  52713. + *.exe:*.exe)
  52714. + # this is ok
  52715. + ;;
  52716. + *.exe:*)
  52717. + destfile=$destfile.exe
  52718. + ;;
  52719. + *:*.exe)
  52720. + func_stripname '' '.exe' "$destfile"
  52721. + destfile=$func_stripname_result
  52722. + ;;
  52723. + esac
  52724. ;;
  52725. esac
  52726. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  52727. + $opt_dry_run || if test -n "$outputname"; then
  52728. + ${RM}r "$tmpdir"
  52729. + fi
  52730. + ;;
  52731. + esac
  52732. + done
  52733. - if test "$droppeddeps" = yes; then
  52734. - if test "$module" = yes; then
  52735. - $echo
  52736. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  52737. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  52738. - $echo "*** a static module, that should work as long as the dlopening"
  52739. - $echo "*** application is linked with the -dlopen flag."
  52740. - if test -z "$global_symbol_pipe"; then
  52741. - $echo
  52742. - $echo "*** However, this would only work if libtool was able to extract symbol"
  52743. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  52744. - $echo "*** not find such a program. So, this module is probably useless."
  52745. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  52746. - fi
  52747. - if test "$build_old_libs" = no; then
  52748. - oldlibs="$output_objdir/$libname.$libext"
  52749. - build_libtool_libs=module
  52750. - build_old_libs=yes
  52751. - else
  52752. - build_libtool_libs=no
  52753. - fi
  52754. - else
  52755. - $echo "*** The inter-library dependencies that have been dropped here will be"
  52756. - $echo "*** automatically added whenever a program is linked with this library"
  52757. - $echo "*** or is declared to -dlopen it."
  52758. + for file in $staticlibs; do
  52759. + func_basename "$file"
  52760. + name="$func_basename_result"
  52761. - if test "$allow_undefined" = no; then
  52762. - $echo
  52763. - $echo "*** Since this library must not contain undefined symbols,"
  52764. - $echo "*** because either the platform does not support them or"
  52765. - $echo "*** it was explicitly requested with -no-undefined,"
  52766. - $echo "*** libtool will only create a static version of it."
  52767. - if test "$build_old_libs" = no; then
  52768. - oldlibs="$output_objdir/$libname.$libext"
  52769. - build_libtool_libs=module
  52770. - build_old_libs=yes
  52771. - else
  52772. - build_libtool_libs=no
  52773. - fi
  52774. - fi
  52775. - fi
  52776. - fi
  52777. - # Done checking deplibs!
  52778. - deplibs=$newdeplibs
  52779. + # Set up the ranlib parameters.
  52780. + oldlib="$destdir/$name"
  52781. +
  52782. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  52783. +
  52784. + if test -n "$stripme" && test -n "$old_striplib"; then
  52785. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  52786. fi
  52787. - # All the library-specific variables (install_libdir is set above).
  52788. - library_names=
  52789. - old_library=
  52790. - dlname=
  52791. + # Do each command in the postinstall commands.
  52792. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  52793. + done
  52794. - # Test again, we may have decided not to build it any more
  52795. - if test "$build_libtool_libs" = yes; then
  52796. - if test "$hardcode_into_libs" = yes; then
  52797. - # Hardcode the library paths
  52798. - hardcode_libdirs=
  52799. - dep_rpath=
  52800. - rpath="$finalize_rpath"
  52801. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  52802. - for libdir in $rpath; do
  52803. - if test -n "$hardcode_libdir_flag_spec"; then
  52804. - if test -n "$hardcode_libdir_separator"; then
  52805. - if test -z "$hardcode_libdirs"; then
  52806. - hardcode_libdirs="$libdir"
  52807. - else
  52808. - # Just accumulate the unique libdirs.
  52809. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  52810. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  52811. - ;;
  52812. - *)
  52813. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  52814. - ;;
  52815. - esac
  52816. - fi
  52817. - else
  52818. - eval flag=\"$hardcode_libdir_flag_spec\"
  52819. - dep_rpath="$dep_rpath $flag"
  52820. - fi
  52821. - elif test -n "$runpath_var"; then
  52822. - case "$perm_rpath " in
  52823. - *" $libdir "*) ;;
  52824. - *) perm_rpath="$perm_rpath $libdir" ;;
  52825. - esac
  52826. - fi
  52827. - done
  52828. - # Substitute the hardcoded libdirs into the rpath.
  52829. - if test -n "$hardcode_libdir_separator" &&
  52830. - test -n "$hardcode_libdirs"; then
  52831. - libdir="$hardcode_libdirs"
  52832. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  52833. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  52834. - else
  52835. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  52836. - fi
  52837. - fi
  52838. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  52839. - # We should set the runpath_var.
  52840. - rpath=
  52841. - for dir in $perm_rpath; do
  52842. - rpath="$rpath$dir:"
  52843. - done
  52844. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  52845. - fi
  52846. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  52847. - fi
  52848. + test -n "$future_libdirs" && \
  52849. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  52850. - shlibpath="$finalize_shlibpath"
  52851. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  52852. - if test -n "$shlibpath"; then
  52853. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  52854. - fi
  52855. + if test -n "$current_libdirs"; then
  52856. + # Maybe just do a dry run.
  52857. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  52858. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  52859. + else
  52860. + exit $EXIT_SUCCESS
  52861. + fi
  52862. +}
  52863. - # Get the real and link names of the library.
  52864. - eval shared_ext=\"$shrext_cmds\"
  52865. - eval library_names=\"$library_names_spec\"
  52866. - set dummy $library_names
  52867. - realname="$2"
  52868. - shift; shift
  52869. +test "$mode" = install && func_mode_install ${1+"$@"}
  52870. - if test -n "$soname_spec"; then
  52871. - eval soname=\"$soname_spec\"
  52872. - else
  52873. - soname="$realname"
  52874. - fi
  52875. - if test -z "$dlname"; then
  52876. - dlname=$soname
  52877. - fi
  52878. - lib="$output_objdir/$realname"
  52879. - for link
  52880. - do
  52881. - linknames="$linknames $link"
  52882. - done
  52883. +# func_generate_dlsyms outputname originator pic_p
  52884. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  52885. +# a dlpreopen symbol table.
  52886. +func_generate_dlsyms ()
  52887. +{
  52888. + $opt_debug
  52889. + my_outputname="$1"
  52890. + my_originator="$2"
  52891. + my_pic_p="${3-no}"
  52892. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  52893. + my_dlsyms=
  52894. +
  52895. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  52896. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  52897. + my_dlsyms="${my_outputname}S.c"
  52898. + else
  52899. + func_error "not configured to extract global symbols from dlpreopened files"
  52900. + fi
  52901. + fi
  52902. - # Use standard objects if they are pic
  52903. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  52904. + if test -n "$my_dlsyms"; then
  52905. + case $my_dlsyms in
  52906. + "") ;;
  52907. + *.c)
  52908. + # Discover the nlist of each of the dlfiles.
  52909. + nlist="$output_objdir/${my_outputname}.nm"
  52910. - # Prepare the list of exported symbols
  52911. - if test -z "$export_symbols"; then
  52912. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  52913. - $show "generating symbol list for \`$libname.la'"
  52914. - export_symbols="$output_objdir/$libname.exp"
  52915. - $run $rm $export_symbols
  52916. - cmds=$export_symbols_cmds
  52917. - save_ifs="$IFS"; IFS='~'
  52918. - for cmd in $cmds; do
  52919. - IFS="$save_ifs"
  52920. - eval cmd=\"$cmd\"
  52921. - if len=`expr "X$cmd" : ".*"` &&
  52922. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  52923. - $show "$cmd"
  52924. - $run eval "$cmd" || exit $?
  52925. - skipped_export=false
  52926. - else
  52927. - # The command line is too long to execute in one step.
  52928. - $show "using reloadable object file for export list..."
  52929. - skipped_export=:
  52930. - fi
  52931. - done
  52932. - IFS="$save_ifs"
  52933. - if test -n "$export_symbols_regex"; then
  52934. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  52935. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  52936. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  52937. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  52938. - fi
  52939. - fi
  52940. - fi
  52941. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  52942. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  52943. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  52944. - fi
  52945. + # Parse the name list into a source file.
  52946. + func_verbose "creating $output_objdir/$my_dlsyms"
  52947. - tmp_deplibs=
  52948. - for test_deplib in $deplibs; do
  52949. - case " $convenience " in
  52950. - *" $test_deplib "*) ;;
  52951. - *)
  52952. - tmp_deplibs="$tmp_deplibs $test_deplib"
  52953. - ;;
  52954. - esac
  52955. - done
  52956. - deplibs="$tmp_deplibs"
  52957. -
  52958. - if test -n "$convenience"; then
  52959. - if test -n "$whole_archive_flag_spec"; then
  52960. - save_libobjs=$libobjs
  52961. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  52962. - else
  52963. - gentop="$output_objdir/${outputname}x"
  52964. - $show "${rm}r $gentop"
  52965. - $run ${rm}r "$gentop"
  52966. - $show "$mkdir $gentop"
  52967. - $run $mkdir "$gentop"
  52968. - status=$?
  52969. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  52970. - exit $status
  52971. - fi
  52972. - generated="$generated $gentop"
  52973. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  52974. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  52975. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  52976. - for xlib in $convenience; do
  52977. - # Extract the objects.
  52978. - case $xlib in
  52979. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  52980. - *) xabs=`pwd`"/$xlib" ;;
  52981. - esac
  52982. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  52983. - xdir="$gentop/$xlib"
  52984. +#ifdef __cplusplus
  52985. +extern \"C\" {
  52986. +#endif
  52987. - $show "${rm}r $xdir"
  52988. - $run ${rm}r "$xdir"
  52989. - $show "$mkdir $xdir"
  52990. - $run $mkdir "$xdir"
  52991. - status=$?
  52992. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  52993. - exit $status
  52994. - fi
  52995. - # We will extract separately just the conflicting names and we will no
  52996. - # longer touch any unique names. It is faster to leave these extract
  52997. - # automatically by $AR in one run.
  52998. - $show "(cd $xdir && $AR x $xabs)"
  52999. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  53000. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  53001. - :
  53002. - else
  53003. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  53004. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  53005. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  53006. - do
  53007. - i=1
  53008. - while test "$i" -le "$count"
  53009. - do
  53010. - # Put our $i before any first dot (extension)
  53011. - # Never overwrite any file
  53012. - name_to="$name"
  53013. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  53014. - do
  53015. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  53016. - done
  53017. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  53018. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  53019. - i=`expr $i + 1`
  53020. - done
  53021. - done
  53022. - fi
  53023. +/* External symbol declarations for the compiler. */\
  53024. +"
  53025. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53026. - done
  53027. - fi
  53028. - fi
  53029. + if test "$dlself" = yes; then
  53030. + func_verbose "generating symbol list for \`$output'"
  53031. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  53032. - eval flag=\"$thread_safe_flag_spec\"
  53033. - linker_flags="$linker_flags $flag"
  53034. - fi
  53035. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  53036. - # Make a backup of the uninstalled library when relinking
  53037. - if test "$mode" = relink; then
  53038. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  53039. - fi
  53040. + # Add our own program objects to the symbol list.
  53041. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53042. + for progfile in $progfiles; do
  53043. + func_verbose "extracting global C symbols from \`$progfile'"
  53044. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  53045. + done
  53046. - # Do each of the archive commands.
  53047. - if test "$module" = yes && test -n "$module_cmds" ; then
  53048. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53049. - eval test_cmds=\"$module_expsym_cmds\"
  53050. - cmds=$module_expsym_cmds
  53051. + if test -n "$exclude_expsyms"; then
  53052. + $opt_dry_run || {
  53053. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  53054. + eval '$MV "$nlist"T "$nlist"'
  53055. + }
  53056. + fi
  53057. +
  53058. + if test -n "$export_symbols_regex"; then
  53059. + $opt_dry_run || {
  53060. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  53061. + eval '$MV "$nlist"T "$nlist"'
  53062. + }
  53063. + fi
  53064. +
  53065. + # Prepare the list of exported symbols
  53066. + if test -z "$export_symbols"; then
  53067. + export_symbols="$output_objdir/$outputname.exp"
  53068. + $opt_dry_run || {
  53069. + $RM $export_symbols
  53070. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  53071. + case $host in
  53072. + *cygwin* | *mingw* | *cegcc* )
  53073. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53074. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  53075. + ;;
  53076. + esac
  53077. + }
  53078. else
  53079. - eval test_cmds=\"$module_cmds\"
  53080. - cmds=$module_cmds
  53081. - fi
  53082. - else
  53083. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53084. - eval test_cmds=\"$archive_expsym_cmds\"
  53085. - cmds=$archive_expsym_cmds
  53086. - else
  53087. - eval test_cmds=\"$archive_cmds\"
  53088. - cmds=$archive_cmds
  53089. + $opt_dry_run || {
  53090. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  53091. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  53092. + eval '$MV "$nlist"T "$nlist"'
  53093. + case $host in
  53094. + *cygwin | *mingw* | *cegcc* )
  53095. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53096. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  53097. + ;;
  53098. + esac
  53099. + }
  53100. fi
  53101. fi
  53102. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  53103. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53104. - :
  53105. - else
  53106. - # The command line is too long to link in one step, link piecewise.
  53107. - $echo "creating reloadable object files..."
  53108. + for dlprefile in $dlprefiles; do
  53109. + func_verbose "extracting global C symbols from \`$dlprefile'"
  53110. + func_basename "$dlprefile"
  53111. + name="$func_basename_result"
  53112. + $opt_dry_run || {
  53113. + eval '$ECHO ": $name " >> "$nlist"'
  53114. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  53115. + }
  53116. + done
  53117. - # Save the value of $output and $libobjs because we want to
  53118. - # use them later. If we have whole_archive_flag_spec, we
  53119. - # want to use save_libobjs as it was before
  53120. - # whole_archive_flag_spec was expanded, because we can't
  53121. - # assume the linker understands whole_archive_flag_spec.
  53122. - # This may have to be revisited, in case too many
  53123. - # convenience libraries get linked in and end up exceeding
  53124. - # the spec.
  53125. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  53126. - save_libobjs=$libobjs
  53127. + $opt_dry_run || {
  53128. + # Make sure we have at least an empty file.
  53129. + test -f "$nlist" || : > "$nlist"
  53130. +
  53131. + if test -n "$exclude_expsyms"; then
  53132. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  53133. + $MV "$nlist"T "$nlist"
  53134. fi
  53135. - save_output=$output
  53136. - # Clear the reloadable object creation command queue and
  53137. - # initialize k to one.
  53138. - test_cmds=
  53139. - concat_cmds=
  53140. - objlist=
  53141. - delfiles=
  53142. - last_robj=
  53143. - k=1
  53144. - output=$output_objdir/$save_output-${k}.$objext
  53145. - # Loop over the list of objects to be linked.
  53146. - for obj in $save_libobjs
  53147. - do
  53148. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  53149. - if test "X$objlist" = X ||
  53150. - { len=`expr "X$test_cmds" : ".*"` &&
  53151. - test "$len" -le "$max_cmd_len"; }; then
  53152. - objlist="$objlist $obj"
  53153. - else
  53154. - # The command $test_cmds is almost too long, add a
  53155. - # command to the queue.
  53156. - if test "$k" -eq 1 ; then
  53157. - # The first file doesn't have a previous command to add.
  53158. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  53159. + # Try sorting and uniquifying the output.
  53160. + if $GREP -v "^: " < "$nlist" |
  53161. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  53162. + sort -k 3
  53163. else
  53164. - # All subsequent reloadable object files will link in
  53165. - # the last one created.
  53166. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  53167. - fi
  53168. - last_robj=$output_objdir/$save_output-${k}.$objext
  53169. - k=`expr $k + 1`
  53170. - output=$output_objdir/$save_output-${k}.$objext
  53171. - objlist=$obj
  53172. - len=1
  53173. - fi
  53174. - done
  53175. - # Handle the remaining objects by creating one last
  53176. - # reloadable object file. All subsequent reloadable object
  53177. - # files will link in the last one created.
  53178. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53179. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  53180. + sort +2
  53181. + fi |
  53182. + uniq > "$nlist"S; then
  53183. + :
  53184. + else
  53185. + $GREP -v "^: " < "$nlist" > "$nlist"S
  53186. + fi
  53187. - if ${skipped_export-false}; then
  53188. - $show "generating symbol list for \`$libname.la'"
  53189. - export_symbols="$output_objdir/$libname.exp"
  53190. - $run $rm $export_symbols
  53191. - libobjs=$output
  53192. - # Append the command to create the export file.
  53193. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  53194. - fi
  53195. -
  53196. - # Set up a command to remove the reloadale object files
  53197. - # after they are used.
  53198. - i=0
  53199. - while test "$i" -lt "$k"
  53200. - do
  53201. - i=`expr $i + 1`
  53202. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  53203. - done
  53204. + if test -f "$nlist"S; then
  53205. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  53206. + else
  53207. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  53208. + fi
  53209. - $echo "creating a temporary reloadable object file: $output"
  53210. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53211. - # Loop through the commands generated above and execute them.
  53212. - save_ifs="$IFS"; IFS='~'
  53213. - for cmd in $concat_cmds; do
  53214. - IFS="$save_ifs"
  53215. - $show "$cmd"
  53216. - $run eval "$cmd" || exit $?
  53217. - done
  53218. - IFS="$save_ifs"
  53219. +/* The mapping between symbol names and symbols. */
  53220. +typedef struct {
  53221. + const char *name;
  53222. + void *address;
  53223. +} lt_dlsymlist;
  53224. +"
  53225. + case $host in
  53226. + *cygwin* | *mingw* | *cegcc* )
  53227. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53228. +/* DATA imports from DLLs on WIN32 con't be const, because
  53229. + runtime relocations are performed -- see ld's documentation
  53230. + on pseudo-relocs. */"
  53231. + lt_dlsym_const= ;;
  53232. + *osf5*)
  53233. + echo >> "$output_objdir/$my_dlsyms" "\
  53234. +/* This system does not cope well with relocations in const data */"
  53235. + lt_dlsym_const= ;;
  53236. + *)
  53237. + lt_dlsym_const=const ;;
  53238. + esac
  53239. - libobjs=$output
  53240. - # Restore the value of output.
  53241. - output=$save_output
  53242. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53243. +extern $lt_dlsym_const lt_dlsymlist
  53244. +lt_${my_prefix}_LTX_preloaded_symbols[];
  53245. +$lt_dlsym_const lt_dlsymlist
  53246. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  53247. +{\
  53248. + { \"$my_originator\", (void *) 0 },"
  53249. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  53250. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53251. - fi
  53252. - # Expand the library linking commands again to reset the
  53253. - # value of $libobjs for piecewise linking.
  53254. + case $need_lib_prefix in
  53255. + no)
  53256. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  53257. + ;;
  53258. + *)
  53259. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  53260. + ;;
  53261. + esac
  53262. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53263. + {0, (void *) 0}
  53264. +};
  53265. - # Do each of the archive commands.
  53266. - if test "$module" = yes && test -n "$module_cmds" ; then
  53267. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53268. - cmds=$module_expsym_cmds
  53269. - else
  53270. - cmds=$module_cmds
  53271. - fi
  53272. - else
  53273. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53274. - cmds=$archive_expsym_cmds
  53275. - else
  53276. - cmds=$archive_cmds
  53277. - fi
  53278. - fi
  53279. +/* This works around a problem in FreeBSD linker */
  53280. +#ifdef FREEBSD_WORKAROUND
  53281. +static const void *lt_preloaded_setup() {
  53282. + return lt_${my_prefix}_LTX_preloaded_symbols;
  53283. +}
  53284. +#endif
  53285. - # Append the command to remove the reloadable object files
  53286. - # to the just-reset $cmds.
  53287. - eval cmds=\"\$cmds~\$rm $delfiles\"
  53288. - fi
  53289. - save_ifs="$IFS"; IFS='~'
  53290. - for cmd in $cmds; do
  53291. - IFS="$save_ifs"
  53292. - eval cmd=\"$cmd\"
  53293. - $show "$cmd"
  53294. - $run eval "$cmd" || exit $?
  53295. +#ifdef __cplusplus
  53296. +}
  53297. +#endif\
  53298. +"
  53299. + } # !$opt_dry_run
  53300. +
  53301. + pic_flag_for_symtable=
  53302. + case "$compile_command " in
  53303. + *" -static "*) ;;
  53304. + *)
  53305. + case $host in
  53306. + # compiling the symbol table file with pic_flag works around
  53307. + # a FreeBSD bug that causes programs to crash when -lm is
  53308. + # linked before any other PIC object. But we must not use
  53309. + # pic_flag when linking with -static. The problem exists in
  53310. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  53311. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  53312. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  53313. + *-*-hpux*)
  53314. + pic_flag_for_symtable=" $pic_flag" ;;
  53315. + *)
  53316. + if test "X$my_pic_p" != Xno; then
  53317. + pic_flag_for_symtable=" $pic_flag"
  53318. + fi
  53319. + ;;
  53320. + esac
  53321. + ;;
  53322. + esac
  53323. + symtab_cflags=
  53324. + for arg in $LTCFLAGS; do
  53325. + case $arg in
  53326. + -pie | -fpie | -fPIE) ;;
  53327. + *) symtab_cflags="$symtab_cflags $arg" ;;
  53328. + esac
  53329. done
  53330. - IFS="$save_ifs"
  53331. - # Restore the uninstalled library and exit
  53332. - if test "$mode" = relink; then
  53333. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  53334. - exit $EXIT_SUCCESS
  53335. - fi
  53336. + # Now compile the dynamic symbol file.
  53337. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  53338. - # Create links to the real library.
  53339. - for linkname in $linknames; do
  53340. - if test "$realname" != "$linkname"; then
  53341. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  53342. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  53343. + # Clean up the generated files.
  53344. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  53345. +
  53346. + # Transform the symbol file into the correct name.
  53347. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  53348. + case $host in
  53349. + *cygwin* | *mingw* | *cegcc* )
  53350. + if test -f "$output_objdir/$my_outputname.def"; then
  53351. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  53352. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  53353. + else
  53354. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53355. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53356. fi
  53357. - done
  53358. + ;;
  53359. + *)
  53360. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53361. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53362. + ;;
  53363. + esac
  53364. + ;;
  53365. + *)
  53366. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  53367. + ;;
  53368. + esac
  53369. + else
  53370. + # We keep going just in case the user didn't refer to
  53371. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  53372. + # really was required.
  53373. +
  53374. + # Nullify the symbol file.
  53375. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  53376. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  53377. + fi
  53378. +}
  53379. - # If -module or -export-dynamic was specified, set the dlname.
  53380. - if test "$module" = yes || test "$export_dynamic" = yes; then
  53381. - # On all known operating systems, these are identical.
  53382. - dlname="$soname"
  53383. - fi
  53384. - fi
  53385. +# func_win32_libid arg
  53386. +# return the library type of file 'arg'
  53387. +#
  53388. +# Need a lot of goo to handle *both* DLLs and import libs
  53389. +# Has to be a shell function in order to 'eat' the argument
  53390. +# that is supplied when $file_magic_command is called.
  53391. +func_win32_libid ()
  53392. +{
  53393. + $opt_debug
  53394. + win32_libid_type="unknown"
  53395. + win32_fileres=`file -L $1 2>/dev/null`
  53396. + case $win32_fileres in
  53397. + *ar\ archive\ import\ library*) # definitely import
  53398. + win32_libid_type="x86 archive import"
  53399. + ;;
  53400. + *ar\ archive*) # could be an import, or static
  53401. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  53402. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  53403. + win32_nmres=`eval $NM -f posix -A $1 |
  53404. + $SED -n -e '
  53405. + 1,100{
  53406. + / I /{
  53407. + s,.*,import,
  53408. + p
  53409. + q
  53410. + }
  53411. + }'`
  53412. + case $win32_nmres in
  53413. + import*) win32_libid_type="x86 archive import";;
  53414. + *) win32_libid_type="x86 archive static";;
  53415. + esac
  53416. + fi
  53417. + ;;
  53418. + *DLL*)
  53419. + win32_libid_type="x86 DLL"
  53420. + ;;
  53421. + *executable*) # but shell scripts are "executable" too...
  53422. + case $win32_fileres in
  53423. + *MS\ Windows\ PE\ Intel*)
  53424. + win32_libid_type="x86 DLL"
  53425. ;;
  53426. + esac
  53427. + ;;
  53428. + esac
  53429. + $ECHO "$win32_libid_type"
  53430. +}
  53431. - obj)
  53432. - if test -n "$deplibs"; then
  53433. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  53434. - fi
  53435. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53436. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  53437. - fi
  53438. - if test -n "$rpath"; then
  53439. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  53440. - fi
  53441. +# func_extract_an_archive dir oldlib
  53442. +func_extract_an_archive ()
  53443. +{
  53444. + $opt_debug
  53445. + f_ex_an_ar_dir="$1"; shift
  53446. + f_ex_an_ar_oldlib="$1"
  53447. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  53448. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  53449. + :
  53450. + else
  53451. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  53452. + fi
  53453. +}
  53454. - if test -n "$xrpath"; then
  53455. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  53456. - fi
  53457. - if test -n "$vinfo"; then
  53458. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  53459. - fi
  53460. +# func_extract_archives gentop oldlib ...
  53461. +func_extract_archives ()
  53462. +{
  53463. + $opt_debug
  53464. + my_gentop="$1"; shift
  53465. + my_oldlibs=${1+"$@"}
  53466. + my_oldobjs=""
  53467. + my_xlib=""
  53468. + my_xabs=""
  53469. + my_xdir=""
  53470. +
  53471. + for my_xlib in $my_oldlibs; do
  53472. + # Extract the objects.
  53473. + case $my_xlib in
  53474. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  53475. + *) my_xabs=`pwd`"/$my_xlib" ;;
  53476. + esac
  53477. + func_basename "$my_xlib"
  53478. + my_xlib="$func_basename_result"
  53479. + my_xlib_u=$my_xlib
  53480. + while :; do
  53481. + case " $extracted_archives " in
  53482. + *" $my_xlib_u "*)
  53483. + func_arith $extracted_serial + 1
  53484. + extracted_serial=$func_arith_result
  53485. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  53486. + *) break ;;
  53487. + esac
  53488. + done
  53489. + extracted_archives="$extracted_archives $my_xlib_u"
  53490. + my_xdir="$my_gentop/$my_xlib_u"
  53491. - if test -n "$release"; then
  53492. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  53493. - fi
  53494. + func_mkdir_p "$my_xdir"
  53495. - case $output in
  53496. - *.lo)
  53497. - if test -n "$objs$old_deplibs"; then
  53498. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  53499. - exit $EXIT_FAILURE
  53500. - fi
  53501. - libobj="$output"
  53502. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  53503. + case $host in
  53504. + *-darwin*)
  53505. + func_verbose "Extracting $my_xabs"
  53506. + # Do not bother doing anything if just a dry run
  53507. + $opt_dry_run || {
  53508. + darwin_orig_dir=`pwd`
  53509. + cd $my_xdir || exit $?
  53510. + darwin_archive=$my_xabs
  53511. + darwin_curdir=`pwd`
  53512. + darwin_base_archive=`basename "$darwin_archive"`
  53513. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  53514. + if test -n "$darwin_arches"; then
  53515. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  53516. + darwin_arch=
  53517. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  53518. + for darwin_arch in $darwin_arches ; do
  53519. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53520. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  53521. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53522. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  53523. + cd "$darwin_curdir"
  53524. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  53525. + done # $darwin_arches
  53526. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  53527. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  53528. + darwin_file=
  53529. + darwin_files=
  53530. + for darwin_file in $darwin_filelist; do
  53531. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  53532. + $LIPO -create -output "$darwin_file" $darwin_files
  53533. + done # $darwin_filelist
  53534. + $RM -rf unfat-$$
  53535. + cd "$darwin_orig_dir"
  53536. + else
  53537. + cd $darwin_orig_dir
  53538. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53539. + fi # $darwin_arches
  53540. + } # !$opt_dry_run
  53541. ;;
  53542. *)
  53543. - libobj=
  53544. - obj="$output"
  53545. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53546. ;;
  53547. esac
  53548. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53549. + done
  53550. - # Delete the old objects.
  53551. - $run $rm $obj $libobj
  53552. + func_extract_archives_result="$my_oldobjs"
  53553. +}
  53554. - # Objects from convenience libraries. This assumes
  53555. - # single-version convenience libraries. Whenever we create
  53556. - # different ones for PIC/non-PIC, this we'll have to duplicate
  53557. - # the extraction.
  53558. - reload_conv_objs=
  53559. - gentop=
  53560. - # reload_cmds runs $LD directly, so let us get rid of
  53561. - # -Wl from whole_archive_flag_spec
  53562. - wl=
  53563. - if test -n "$convenience"; then
  53564. - if test -n "$whole_archive_flag_spec"; then
  53565. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  53566. - else
  53567. - gentop="$output_objdir/${obj}x"
  53568. - $show "${rm}r $gentop"
  53569. - $run ${rm}r "$gentop"
  53570. - $show "$mkdir $gentop"
  53571. - $run $mkdir "$gentop"
  53572. - status=$?
  53573. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  53574. - exit $status
  53575. - fi
  53576. - generated="$generated $gentop"
  53577. - for xlib in $convenience; do
  53578. - # Extract the objects.
  53579. - case $xlib in
  53580. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  53581. - *) xabs=`pwd`"/$xlib" ;;
  53582. - esac
  53583. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  53584. - xdir="$gentop/$xlib"
  53585. +# func_emit_wrapper_part1 [arg=no]
  53586. +#
  53587. +# Emit the first part of a libtool wrapper script on stdout.
  53588. +# For more information, see the description associated with
  53589. +# func_emit_wrapper(), below.
  53590. +func_emit_wrapper_part1 ()
  53591. +{
  53592. + func_emit_wrapper_part1_arg1=no
  53593. + if test -n "$1" ; then
  53594. + func_emit_wrapper_part1_arg1=$1
  53595. + fi
  53596. - $show "${rm}r $xdir"
  53597. - $run ${rm}r "$xdir"
  53598. - $show "$mkdir $xdir"
  53599. - $run $mkdir "$xdir"
  53600. - status=$?
  53601. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  53602. - exit $status
  53603. - fi
  53604. - # We will extract separately just the conflicting names and we will no
  53605. - # longer touch any unique names. It is faster to leave these extract
  53606. - # automatically by $AR in one run.
  53607. - $show "(cd $xdir && $AR x $xabs)"
  53608. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  53609. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  53610. - :
  53611. - else
  53612. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  53613. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  53614. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  53615. - do
  53616. - i=1
  53617. - while test "$i" -le "$count"
  53618. - do
  53619. - # Put our $i before any first dot (extension)
  53620. - # Never overwrite any file
  53621. - name_to="$name"
  53622. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  53623. - do
  53624. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  53625. - done
  53626. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  53627. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  53628. - i=`expr $i + 1`
  53629. - done
  53630. - done
  53631. - fi
  53632. -
  53633. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53634. - done
  53635. - fi
  53636. - fi
  53637. -
  53638. - # Create the old-style object.
  53639. - reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  53640. + $ECHO "\
  53641. +#! $SHELL
  53642. - output="$obj"
  53643. - cmds=$reload_cmds
  53644. - save_ifs="$IFS"; IFS='~'
  53645. - for cmd in $cmds; do
  53646. - IFS="$save_ifs"
  53647. - eval cmd=\"$cmd\"
  53648. - $show "$cmd"
  53649. - $run eval "$cmd" || exit $?
  53650. - done
  53651. - IFS="$save_ifs"
  53652. +# $output - temporary wrapper script for $objdir/$outputname
  53653. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  53654. +#
  53655. +# The $output program cannot be directly executed until all the libtool
  53656. +# libraries that it depends on are installed.
  53657. +#
  53658. +# This wrapper script should never be moved out of the build directory.
  53659. +# If it is, it will not operate correctly.
  53660. - # Exit if we aren't doing a library object file.
  53661. - if test -z "$libobj"; then
  53662. - if test -n "$gentop"; then
  53663. - $show "${rm}r $gentop"
  53664. - $run ${rm}r $gentop
  53665. - fi
  53666. +# Sed substitution that helps us do robust quoting. It backslashifies
  53667. +# metacharacters that are still active within double-quoted strings.
  53668. +Xsed='${SED} -e 1s/^X//'
  53669. +sed_quote_subst='$sed_quote_subst'
  53670. - exit $EXIT_SUCCESS
  53671. - fi
  53672. +# Be Bourne compatible
  53673. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  53674. + emulate sh
  53675. + NULLCMD=:
  53676. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  53677. + # is contrary to our usage. Disable this feature.
  53678. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  53679. + setopt NO_GLOB_SUBST
  53680. +else
  53681. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  53682. +fi
  53683. +BIN_SH=xpg4; export BIN_SH # for Tru64
  53684. +DUALCASE=1; export DUALCASE # for MKS sh
  53685. - if test "$build_libtool_libs" != yes; then
  53686. - if test -n "$gentop"; then
  53687. - $show "${rm}r $gentop"
  53688. - $run ${rm}r $gentop
  53689. - fi
  53690. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  53691. +# if CDPATH is set.
  53692. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  53693. - # Create an invalid libtool object if no PIC, so that we don't
  53694. - # accidentally link it into a program.
  53695. - # $show "echo timestamp > $libobj"
  53696. - # $run eval "echo timestamp > $libobj" || exit $?
  53697. - exit $EXIT_SUCCESS
  53698. - fi
  53699. +relink_command=\"$relink_command\"
  53700. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  53701. - # Only do commands if we really have different PIC objects.
  53702. - reload_objs="$libobjs $reload_conv_objs"
  53703. - output="$libobj"
  53704. - cmds=$reload_cmds
  53705. - save_ifs="$IFS"; IFS='~'
  53706. - for cmd in $cmds; do
  53707. - IFS="$save_ifs"
  53708. - eval cmd=\"$cmd\"
  53709. - $show "$cmd"
  53710. - $run eval "$cmd" || exit $?
  53711. - done
  53712. - IFS="$save_ifs"
  53713. - fi
  53714. +# This environment variable determines our operation mode.
  53715. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  53716. + # install mode needs the following variables:
  53717. + generated_by_libtool_version='$macro_version'
  53718. + notinst_deplibs='$notinst_deplibs'
  53719. +else
  53720. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  53721. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  53722. + ECHO=\"$qecho\"
  53723. + file=\"\$0\"
  53724. + # Make sure echo works.
  53725. + if test \"X\$1\" = X--no-reexec; then
  53726. + # Discard the --no-reexec flag, and continue.
  53727. + shift
  53728. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  53729. + # Yippee, \$ECHO works!
  53730. + :
  53731. + else
  53732. + # Restart under the correct shell, and then maybe \$ECHO will work.
  53733. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  53734. + fi
  53735. + fi\
  53736. +"
  53737. + $ECHO "\
  53738. - if test -n "$gentop"; then
  53739. - $show "${rm}r $gentop"
  53740. - $run ${rm}r $gentop
  53741. - fi
  53742. + # Find the directory that this script lives in.
  53743. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  53744. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  53745. - exit $EXIT_SUCCESS
  53746. - ;;
  53747. + # Follow symbolic links until we get to the real thisdir.
  53748. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  53749. + while test -n \"\$file\"; do
  53750. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  53751. - prog)
  53752. - case $host in
  53753. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  53754. + # If there was a directory component, then change thisdir.
  53755. + if test \"x\$destdir\" != \"x\$file\"; then
  53756. + case \"\$destdir\" in
  53757. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  53758. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  53759. esac
  53760. - if test -n "$vinfo"; then
  53761. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  53762. - fi
  53763. + fi
  53764. - if test -n "$release"; then
  53765. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  53766. - fi
  53767. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  53768. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  53769. + done
  53770. +"
  53771. +}
  53772. +# end: func_emit_wrapper_part1
  53773. - if test "$preload" = yes; then
  53774. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  53775. - test "$dlopen_self_static" = unknown; then
  53776. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  53777. - fi
  53778. - fi
  53779. +# func_emit_wrapper_part2 [arg=no]
  53780. +#
  53781. +# Emit the second part of a libtool wrapper script on stdout.
  53782. +# For more information, see the description associated with
  53783. +# func_emit_wrapper(), below.
  53784. +func_emit_wrapper_part2 ()
  53785. +{
  53786. + func_emit_wrapper_part2_arg1=no
  53787. + if test -n "$1" ; then
  53788. + func_emit_wrapper_part2_arg1=$1
  53789. + fi
  53790. +
  53791. + $ECHO "\
  53792. +
  53793. + # Usually 'no', except on cygwin/mingw when embedded into
  53794. + # the cwrapper.
  53795. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  53796. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  53797. + # special case for '.'
  53798. + if test \"\$thisdir\" = \".\"; then
  53799. + thisdir=\`pwd\`
  53800. + fi
  53801. + # remove .libs from thisdir
  53802. + case \"\$thisdir\" in
  53803. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  53804. + $objdir ) thisdir=. ;;
  53805. + esac
  53806. + fi
  53807. - case $host in
  53808. - *-*-rhapsody* | *-*-darwin1.[012])
  53809. - # On Rhapsody replace the C library is the System framework
  53810. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53811. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53812. - ;;
  53813. - esac
  53814. + # Try to get the absolute directory name.
  53815. + absdir=\`cd \"\$thisdir\" && pwd\`
  53816. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  53817. +"
  53818. - case $host in
  53819. - *darwin*)
  53820. - # Don't allow lazy linking, it breaks C++ global constructors
  53821. - if test "$tagname" = CXX ; then
  53822. - compile_command="$compile_command ${wl}-bind_at_load"
  53823. - finalize_command="$finalize_command ${wl}-bind_at_load"
  53824. - fi
  53825. - ;;
  53826. - esac
  53827. + if test "$fast_install" = yes; then
  53828. + $ECHO "\
  53829. + program=lt-'$outputname'$exeext
  53830. + progdir=\"\$thisdir/$objdir\"
  53831. - compile_command="$compile_command $compile_deplibs"
  53832. - finalize_command="$finalize_command $finalize_deplibs"
  53833. + if test ! -f \"\$progdir/\$program\" ||
  53834. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  53835. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  53836. - if test -n "$rpath$xrpath"; then
  53837. - # If the user specified any rpath flags, then add them.
  53838. - for libdir in $rpath $xrpath; do
  53839. - # This is the magic to use -rpath.
  53840. - case "$finalize_rpath " in
  53841. - *" $libdir "*) ;;
  53842. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  53843. - esac
  53844. - done
  53845. - fi
  53846. + file=\"\$\$-\$program\"
  53847. - # Now hardcode the library paths
  53848. - rpath=
  53849. - hardcode_libdirs=
  53850. - for libdir in $compile_rpath $finalize_rpath; do
  53851. - if test -n "$hardcode_libdir_flag_spec"; then
  53852. - if test -n "$hardcode_libdir_separator"; then
  53853. - if test -z "$hardcode_libdirs"; then
  53854. - hardcode_libdirs="$libdir"
  53855. - else
  53856. - # Just accumulate the unique libdirs.
  53857. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53858. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53859. - ;;
  53860. - *)
  53861. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53862. - ;;
  53863. - esac
  53864. - fi
  53865. - else
  53866. - eval flag=\"$hardcode_libdir_flag_spec\"
  53867. - rpath="$rpath $flag"
  53868. - fi
  53869. - elif test -n "$runpath_var"; then
  53870. - case "$perm_rpath " in
  53871. - *" $libdir "*) ;;
  53872. - *) perm_rpath="$perm_rpath $libdir" ;;
  53873. - esac
  53874. - fi
  53875. - case $host in
  53876. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  53877. - case :$dllsearchpath: in
  53878. - *":$libdir:"*) ;;
  53879. - *) dllsearchpath="$dllsearchpath:$libdir";;
  53880. - esac
  53881. - ;;
  53882. - esac
  53883. - done
  53884. - # Substitute the hardcoded libdirs into the rpath.
  53885. - if test -n "$hardcode_libdir_separator" &&
  53886. - test -n "$hardcode_libdirs"; then
  53887. - libdir="$hardcode_libdirs"
  53888. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53889. - fi
  53890. - compile_rpath="$rpath"
  53891. + if test ! -d \"\$progdir\"; then
  53892. + $MKDIR \"\$progdir\"
  53893. + else
  53894. + $RM \"\$progdir/\$file\"
  53895. + fi"
  53896. - rpath=
  53897. - hardcode_libdirs=
  53898. - for libdir in $finalize_rpath; do
  53899. - if test -n "$hardcode_libdir_flag_spec"; then
  53900. - if test -n "$hardcode_libdir_separator"; then
  53901. - if test -z "$hardcode_libdirs"; then
  53902. - hardcode_libdirs="$libdir"
  53903. - else
  53904. - # Just accumulate the unique libdirs.
  53905. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53906. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53907. - ;;
  53908. - *)
  53909. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53910. - ;;
  53911. - esac
  53912. - fi
  53913. - else
  53914. - eval flag=\"$hardcode_libdir_flag_spec\"
  53915. - rpath="$rpath $flag"
  53916. - fi
  53917. - elif test -n "$runpath_var"; then
  53918. - case "$finalize_perm_rpath " in
  53919. - *" $libdir "*) ;;
  53920. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  53921. - esac
  53922. - fi
  53923. - done
  53924. - # Substitute the hardcoded libdirs into the rpath.
  53925. - if test -n "$hardcode_libdir_separator" &&
  53926. - test -n "$hardcode_libdirs"; then
  53927. - libdir="$hardcode_libdirs"
  53928. - eval rpath=\" $hardcode_libdir_flag_spec\"
  53929. - fi
  53930. - finalize_rpath="$rpath"
  53931. + $ECHO "\
  53932. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  53933. - # Transform all the library objects into standard objects.
  53934. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53935. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53936. + # relink executable if necessary
  53937. + if test -n \"\$relink_command\"; then
  53938. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  53939. + else
  53940. + $ECHO \"\$relink_command_output\" >&2
  53941. + $RM \"\$progdir/\$file\"
  53942. + exit 1
  53943. fi
  53944. + fi
  53945. - dlsyms=
  53946. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53947. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  53948. - dlsyms="${outputname}S.c"
  53949. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  53950. + { $RM \"\$progdir/\$program\";
  53951. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  53952. + $RM \"\$progdir/\$file\"
  53953. + fi"
  53954. else
  53955. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  53956. + $ECHO "\
  53957. + program='$outputname'
  53958. + progdir=\"\$thisdir/$objdir\"
  53959. +"
  53960. fi
  53961. - fi
  53962. -
  53963. - if test -n "$dlsyms"; then
  53964. - case $dlsyms in
  53965. - "") ;;
  53966. - *.c)
  53967. - # Discover the nlist of each of the dlfiles.
  53968. - nlist="$output_objdir/${outputname}.nm"
  53969. - $show "$rm $nlist ${nlist}S ${nlist}T"
  53970. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  53971. + $ECHO "\
  53972. - # Parse the name list into a source file.
  53973. - $show "creating $output_objdir/$dlsyms"
  53974. -
  53975. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  53976. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  53977. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  53978. + if test -f \"\$progdir/\$program\"; then"
  53979. -#ifdef __cplusplus
  53980. -extern \"C\" {
  53981. -#endif
  53982. + # Export our shlibpath_var if we have one.
  53983. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  53984. + $ECHO "\
  53985. + # Add our own library path to $shlibpath_var
  53986. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  53987. -/* Prevent the only kind of declaration conflicts we can make. */
  53988. -#define lt_preloaded_symbols some_other_symbol
  53989. + # Some systems cannot cope with colon-terminated $shlibpath_var
  53990. + # The second colon is a workaround for a bug in BeOS R4 sed
  53991. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  53992. -/* External symbol declarations for the compiler. */\
  53993. + export $shlibpath_var
  53994. "
  53995. + fi
  53996. - if test "$dlself" = yes; then
  53997. - $show "generating symbol list for \`$output'"
  53998. + # fixup the dll searchpath if we need to.
  53999. + if test -n "$dllsearchpath"; then
  54000. + $ECHO "\
  54001. + # Add the dll search path components to the executable PATH
  54002. + PATH=$dllsearchpath:\$PATH
  54003. +"
  54004. + fi
  54005. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  54006. + $ECHO "\
  54007. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54008. + # Run the actual program with our arguments.
  54009. +"
  54010. + case $host in
  54011. + # Backslashes separate directories on plain windows
  54012. + *-*-mingw | *-*-os2* | *-cegcc*)
  54013. + $ECHO "\
  54014. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  54015. +"
  54016. + ;;
  54017. - # Add our own program objects to the symbol list.
  54018. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54019. - for arg in $progfiles; do
  54020. - $show "extracting global C symbols from \`$arg'"
  54021. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54022. - done
  54023. -
  54024. - if test -n "$exclude_expsyms"; then
  54025. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  54026. - $run eval '$mv "$nlist"T "$nlist"'
  54027. - fi
  54028. -
  54029. - if test -n "$export_symbols_regex"; then
  54030. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  54031. - $run eval '$mv "$nlist"T "$nlist"'
  54032. - fi
  54033. -
  54034. - # Prepare the list of exported symbols
  54035. - if test -z "$export_symbols"; then
  54036. - export_symbols="$output_objdir/$output.exp"
  54037. - $run $rm $export_symbols
  54038. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  54039. - else
  54040. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  54041. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  54042. - $run eval 'mv "$nlist"T "$nlist"'
  54043. - fi
  54044. - fi
  54045. -
  54046. - for arg in $dlprefiles; do
  54047. - $show "extracting global C symbols from \`$arg'"
  54048. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  54049. - $run eval '$echo ": $name " >> "$nlist"'
  54050. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54051. - done
  54052. -
  54053. - if test -z "$run"; then
  54054. - # Make sure we have at least an empty file.
  54055. - test -f "$nlist" || : > "$nlist"
  54056. -
  54057. - if test -n "$exclude_expsyms"; then
  54058. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  54059. - $mv "$nlist"T "$nlist"
  54060. - fi
  54061. -
  54062. - # Try sorting and uniquifying the output.
  54063. - if grep -v "^: " < "$nlist" |
  54064. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  54065. - sort -k 3
  54066. - else
  54067. - sort +2
  54068. - fi |
  54069. - uniq > "$nlist"S; then
  54070. - :
  54071. - else
  54072. - grep -v "^: " < "$nlist" > "$nlist"S
  54073. - fi
  54074. -
  54075. - if test -f "$nlist"S; then
  54076. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  54077. - else
  54078. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  54079. - fi
  54080. -
  54081. - $echo >> "$output_objdir/$dlsyms" "\
  54082. -
  54083. -#undef lt_preloaded_symbols
  54084. -
  54085. -#if defined (__STDC__) && __STDC__
  54086. -# define lt_ptr void *
  54087. -#else
  54088. -# define lt_ptr char *
  54089. -# define const
  54090. -#endif
  54091. -
  54092. -/* The mapping between symbol names and symbols. */
  54093. -const struct {
  54094. - const char *name;
  54095. - lt_ptr address;
  54096. -}
  54097. -lt_preloaded_symbols[] =
  54098. -{\
  54099. -"
  54100. -
  54101. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  54102. -
  54103. - $echo >> "$output_objdir/$dlsyms" "\
  54104. - {0, (lt_ptr) 0}
  54105. -};
  54106. -
  54107. -/* This works around a problem in FreeBSD linker */
  54108. -#ifdef FREEBSD_WORKAROUND
  54109. -static const void *lt_preloaded_setup() {
  54110. - return lt_preloaded_symbols;
  54111. -}
  54112. -#endif
  54113. -
  54114. -#ifdef __cplusplus
  54115. -}
  54116. -#endif\
  54117. -"
  54118. - fi
  54119. -
  54120. - pic_flag_for_symtable=
  54121. - case $host in
  54122. - # compiling the symbol table file with pic_flag works around
  54123. - # a FreeBSD bug that causes programs to crash when -lm is
  54124. - # linked before any other PIC object. But we must not use
  54125. - # pic_flag when linking with -static. The problem exists in
  54126. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  54127. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  54128. - case "$compile_command " in
  54129. - *" -static "*) ;;
  54130. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  54131. - esac;;
  54132. - *-*-hpux*)
  54133. - case "$compile_command " in
  54134. - *" -static "*) ;;
  54135. - *) pic_flag_for_symtable=" $pic_flag";;
  54136. - esac
  54137. - esac
  54138. -
  54139. - # Now compile the dynamic symbol file.
  54140. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  54141. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  54142. -
  54143. - # Clean up the generated files.
  54144. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  54145. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  54146. -
  54147. - # Transform the symbol file into the correct name.
  54148. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  54149. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  54150. - ;;
  54151. *)
  54152. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  54153. - exit $EXIT_FAILURE
  54154. + $ECHO "\
  54155. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  54156. +"
  54157. ;;
  54158. esac
  54159. - else
  54160. - # We keep going just in case the user didn't refer to
  54161. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  54162. - # really was required.
  54163. -
  54164. - # Nullify the symbol file.
  54165. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  54166. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  54167. - fi
  54168. -
  54169. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  54170. - # Replace the output file specification.
  54171. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54172. - link_command="$compile_command$compile_rpath"
  54173. -
  54174. - # We have no uninstalled library dependencies, so finalize right now.
  54175. - $show "$link_command"
  54176. - $run eval "$link_command"
  54177. - status=$?
  54178. -
  54179. - # Delete the generated files.
  54180. - if test -n "$dlsyms"; then
  54181. - $show "$rm $output_objdir/${outputname}S.${objext}"
  54182. - $run $rm "$output_objdir/${outputname}S.${objext}"
  54183. - fi
  54184. -
  54185. - exit $status
  54186. - fi
  54187. -
  54188. - if test -n "$shlibpath_var"; then
  54189. - # We should set the shlibpath_var
  54190. - rpath=
  54191. - for dir in $temp_rpath; do
  54192. - case $dir in
  54193. - [\\/]* | [A-Za-z]:[\\/]*)
  54194. - # Absolute path.
  54195. - rpath="$rpath$dir:"
  54196. - ;;
  54197. - *)
  54198. - # Relative path: add a thisdir entry.
  54199. - rpath="$rpath\$thisdir/$dir:"
  54200. - ;;
  54201. - esac
  54202. - done
  54203. - temp_rpath="$rpath"
  54204. - fi
  54205. -
  54206. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  54207. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  54208. - fi
  54209. - if test -n "$finalize_shlibpath"; then
  54210. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  54211. - fi
  54212. -
  54213. - compile_var=
  54214. - finalize_var=
  54215. - if test -n "$runpath_var"; then
  54216. - if test -n "$perm_rpath"; then
  54217. - # We should set the runpath_var.
  54218. - rpath=
  54219. - for dir in $perm_rpath; do
  54220. - rpath="$rpath$dir:"
  54221. - done
  54222. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54223. - fi
  54224. - if test -n "$finalize_perm_rpath"; then
  54225. - # We should set the runpath_var.
  54226. - rpath=
  54227. - for dir in $finalize_perm_rpath; do
  54228. - rpath="$rpath$dir:"
  54229. - done
  54230. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54231. - fi
  54232. - fi
  54233. -
  54234. - if test "$no_install" = yes; then
  54235. - # We don't need to create a wrapper script.
  54236. - link_command="$compile_var$compile_command$compile_rpath"
  54237. - # Replace the output file specification.
  54238. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54239. - # Delete the old output file.
  54240. - $run $rm $output
  54241. - # Link the executable and exit
  54242. - $show "$link_command"
  54243. - $run eval "$link_command" || exit $?
  54244. - exit $EXIT_SUCCESS
  54245. - fi
  54246. + $ECHO "\
  54247. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  54248. + exit 1
  54249. + fi
  54250. + else
  54251. + # The program doesn't exist.
  54252. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  54253. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  54254. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  54255. + exit 1
  54256. + fi
  54257. +fi\
  54258. +"
  54259. +}
  54260. +# end: func_emit_wrapper_part2
  54261. - if test "$hardcode_action" = relink; then
  54262. - # Fast installation is not supported
  54263. - link_command="$compile_var$compile_command$compile_rpath"
  54264. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54265. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  54266. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  54267. - else
  54268. - if test "$fast_install" != no; then
  54269. - link_command="$finalize_var$compile_command$finalize_rpath"
  54270. - if test "$fast_install" = yes; then
  54271. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  54272. - else
  54273. - # fast_install is set to needless
  54274. - relink_command=
  54275. - fi
  54276. - else
  54277. - link_command="$compile_var$compile_command$compile_rpath"
  54278. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54279. +# func_emit_wrapper [arg=no]
  54280. +#
  54281. +# Emit a libtool wrapper script on stdout.
  54282. +# Don't directly open a file because we may want to
  54283. +# incorporate the script contents within a cygwin/mingw
  54284. +# wrapper executable. Must ONLY be called from within
  54285. +# func_mode_link because it depends on a number of variables
  54286. +# set therein.
  54287. +#
  54288. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  54289. +# variable will take. If 'yes', then the emitted script
  54290. +# will assume that the directory in which it is stored is
  54291. +# the $objdir directory. This is a cygwin/mingw-specific
  54292. +# behavior.
  54293. +func_emit_wrapper ()
  54294. +{
  54295. + func_emit_wrapper_arg1=no
  54296. + if test -n "$1" ; then
  54297. + func_emit_wrapper_arg1=$1
  54298. fi
  54299. - fi
  54300. - # Replace the output file specification.
  54301. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  54302. -
  54303. - # Delete the old output files.
  54304. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  54305. -
  54306. - $show "$link_command"
  54307. - $run eval "$link_command" || exit $?
  54308. -
  54309. - # Now create the wrapper script.
  54310. - $show "creating $output"
  54311. + # split this up so that func_emit_cwrapperexe_src
  54312. + # can call each part independently.
  54313. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  54314. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  54315. +}
  54316. - # Quote the relink command for shipping.
  54317. - if test -n "$relink_command"; then
  54318. - # Preserve any variables that may affect compiler behavior
  54319. - for var in $variables_saved_for_relink; do
  54320. - if eval test -z \"\${$var+set}\"; then
  54321. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  54322. - elif eval var_value=\$$var; test -z "$var_value"; then
  54323. - relink_command="$var=; export $var; $relink_command"
  54324. - else
  54325. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  54326. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  54327. - fi
  54328. - done
  54329. - relink_command="(cd `pwd`; $relink_command)"
  54330. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  54331. - fi
  54332. - # Quote $echo for shipping.
  54333. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  54334. - case $progpath in
  54335. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  54336. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  54337. - esac
  54338. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  54339. - else
  54340. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  54341. - fi
  54342. +# func_to_host_path arg
  54343. +#
  54344. +# Convert paths to host format when used with build tools.
  54345. +# Intended for use with "native" mingw (where libtool itself
  54346. +# is running under the msys shell), or in the following cross-
  54347. +# build environments:
  54348. +# $build $host
  54349. +# mingw (msys) mingw [e.g. native]
  54350. +# cygwin mingw
  54351. +# *nix + wine mingw
  54352. +# where wine is equipped with the `winepath' executable.
  54353. +# In the native mingw case, the (msys) shell automatically
  54354. +# converts paths for any non-msys applications it launches,
  54355. +# but that facility isn't available from inside the cwrapper.
  54356. +# Similar accommodations are necessary for $host mingw and
  54357. +# $build cygwin. Calling this function does no harm for other
  54358. +# $host/$build combinations not listed above.
  54359. +#
  54360. +# ARG is the path (on $build) that should be converted to
  54361. +# the proper representation for $host. The result is stored
  54362. +# in $func_to_host_path_result.
  54363. +func_to_host_path ()
  54364. +{
  54365. + func_to_host_path_result="$1"
  54366. + if test -n "$1" ; then
  54367. + case $host in
  54368. + *mingw* )
  54369. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  54370. + case $build in
  54371. + *mingw* ) # actually, msys
  54372. + # awkward: cmd appends spaces to result
  54373. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  54374. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  54375. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  54376. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54377. + $SED -e "$lt_sed_naive_backslashify"`
  54378. + ;;
  54379. + *cygwin* )
  54380. + func_to_host_path_tmp1=`cygpath -w "$1"`
  54381. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54382. + $SED -e "$lt_sed_naive_backslashify"`
  54383. + ;;
  54384. + * )
  54385. + # Unfortunately, winepath does not exit with a non-zero
  54386. + # error code, so we are forced to check the contents of
  54387. + # stdout. On the other hand, if the command is not
  54388. + # found, the shell will set an exit code of 127 and print
  54389. + # *an error message* to stdout. So we must check for both
  54390. + # error code of zero AND non-empty stdout, which explains
  54391. + # the odd construction:
  54392. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  54393. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  54394. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54395. + $SED -e "$lt_sed_naive_backslashify"`
  54396. + else
  54397. + # Allow warning below.
  54398. + func_to_host_path_result=""
  54399. + fi
  54400. + ;;
  54401. + esac
  54402. + if test -z "$func_to_host_path_result" ; then
  54403. + func_error "Could not determine host path corresponding to"
  54404. + func_error " '$1'"
  54405. + func_error "Continuing, but uninstalled executables may not work."
  54406. + # Fallback:
  54407. + func_to_host_path_result="$1"
  54408. + fi
  54409. + ;;
  54410. + esac
  54411. + fi
  54412. +}
  54413. +# end: func_to_host_path
  54414. - # Only actually do things if our run command is non-null.
  54415. - if test -z "$run"; then
  54416. - # win32 will think the script is a binary if it has
  54417. - # a .exe suffix, so we strip it off here.
  54418. - case $output in
  54419. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  54420. - esac
  54421. - # test for cygwin because mv fails w/o .exe extensions
  54422. - case $host in
  54423. - *cygwin*)
  54424. - exeext=.exe
  54425. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  54426. - *) exeext= ;;
  54427. - esac
  54428. - case $host in
  54429. - *cygwin* | *mingw* )
  54430. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  54431. - cwrapper=`$echo ${output}.exe`
  54432. - $rm $cwrappersource $cwrapper
  54433. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  54434. +# func_to_host_pathlist arg
  54435. +#
  54436. +# Convert pathlists to host format when used with build tools.
  54437. +# See func_to_host_path(), above. This function supports the
  54438. +# following $build/$host combinations (but does no harm for
  54439. +# combinations not listed here):
  54440. +# $build $host
  54441. +# mingw (msys) mingw [e.g. native]
  54442. +# cygwin mingw
  54443. +# *nix + wine mingw
  54444. +#
  54445. +# Path separators are also converted from $build format to
  54446. +# $host format. If ARG begins or ends with a path separator
  54447. +# character, it is preserved (but converted to $host format)
  54448. +# on output.
  54449. +#
  54450. +# ARG is a pathlist (on $build) that should be converted to
  54451. +# the proper representation on $host. The result is stored
  54452. +# in $func_to_host_pathlist_result.
  54453. +func_to_host_pathlist ()
  54454. +{
  54455. + func_to_host_pathlist_result="$1"
  54456. + if test -n "$1" ; then
  54457. + case $host in
  54458. + *mingw* )
  54459. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  54460. + # Remove leading and trailing path separator characters from
  54461. + # ARG. msys behavior is inconsistent here, cygpath turns them
  54462. + # into '.;' and ';.', and winepath ignores them completely.
  54463. + func_to_host_pathlist_tmp2="$1"
  54464. + # Once set for this call, this variable should not be
  54465. + # reassigned. It is used in tha fallback case.
  54466. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  54467. + $SED -e 's|^:*||' -e 's|:*$||'`
  54468. + case $build in
  54469. + *mingw* ) # Actually, msys.
  54470. + # Awkward: cmd appends spaces to result.
  54471. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  54472. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  54473. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  54474. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  54475. + $SED -e "$lt_sed_naive_backslashify"`
  54476. + ;;
  54477. + *cygwin* )
  54478. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  54479. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  54480. + $SED -e "$lt_sed_naive_backslashify"`
  54481. + ;;
  54482. + * )
  54483. + # unfortunately, winepath doesn't convert pathlists
  54484. + func_to_host_pathlist_result=""
  54485. + func_to_host_pathlist_oldIFS=$IFS
  54486. + IFS=:
  54487. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  54488. + IFS=$func_to_host_pathlist_oldIFS
  54489. + if test -n "$func_to_host_pathlist_f" ; then
  54490. + func_to_host_path "$func_to_host_pathlist_f"
  54491. + if test -n "$func_to_host_path_result" ; then
  54492. + if test -z "$func_to_host_pathlist_result" ; then
  54493. + func_to_host_pathlist_result="$func_to_host_path_result"
  54494. + else
  54495. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  54496. + fi
  54497. + fi
  54498. + fi
  54499. + IFS=:
  54500. + done
  54501. + IFS=$func_to_host_pathlist_oldIFS
  54502. + ;;
  54503. + esac
  54504. + if test -z "$func_to_host_pathlist_result" ; then
  54505. + func_error "Could not determine the host path(s) corresponding to"
  54506. + func_error " '$1'"
  54507. + func_error "Continuing, but uninstalled executables may not work."
  54508. + # Fallback. This may break if $1 contains DOS-style drive
  54509. + # specifications. The fix is not to complicate the expression
  54510. + # below, but for the user to provide a working wine installation
  54511. + # with winepath so that path translation in the cross-to-mingw
  54512. + # case works properly.
  54513. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  54514. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  54515. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  54516. + fi
  54517. + # Now, add the leading and trailing path separators back
  54518. + case "$1" in
  54519. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  54520. + ;;
  54521. + esac
  54522. + case "$1" in
  54523. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  54524. + ;;
  54525. + esac
  54526. + ;;
  54527. + esac
  54528. + fi
  54529. +}
  54530. +# end: func_to_host_pathlist
  54531. - cat > $cwrappersource <<EOF
  54532. +# func_emit_cwrapperexe_src
  54533. +# emit the source code for a wrapper executable on stdout
  54534. +# Must ONLY be called from within func_mode_link because
  54535. +# it depends on a number of variable set therein.
  54536. +func_emit_cwrapperexe_src ()
  54537. +{
  54538. + cat <<EOF
  54539. /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  54540. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54541. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  54542. The $output program cannot be directly executed until all the libtool
  54543. libraries that it depends on are installed.
  54544. @@ -4598,18 +3142,40 @@
  54545. This wrapper executable should never be moved out of the build directory.
  54546. If it is, it will not operate correctly.
  54547. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  54548. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  54549. but could eventually absorb all of the scripts functionality and
  54550. exec $objdir/$outputname directly.
  54551. */
  54552. EOF
  54553. - cat >> $cwrappersource<<"EOF"
  54554. + cat <<"EOF"
  54555. #include <stdio.h>
  54556. #include <stdlib.h>
  54557. -#include <unistd.h>
  54558. +#ifdef _MSC_VER
  54559. +# include <direct.h>
  54560. +# include <process.h>
  54561. +# include <io.h>
  54562. +# define setmode _setmode
  54563. +#else
  54564. +# include <unistd.h>
  54565. +# include <stdint.h>
  54566. +# ifdef __CYGWIN__
  54567. +# include <io.h>
  54568. +# define HAVE_SETENV
  54569. +# ifdef __STRICT_ANSI__
  54570. +char *realpath (const char *, char *);
  54571. +int putenv (char *);
  54572. +int setenv (const char *, const char *, int);
  54573. +# endif
  54574. +# endif
  54575. +#endif
  54576. #include <malloc.h>
  54577. #include <stdarg.h>
  54578. #include <assert.h>
  54579. +#include <string.h>
  54580. +#include <ctype.h>
  54581. +#include <errno.h>
  54582. +#include <fcntl.h>
  54583. +#include <sys/stat.h>
  54584. #if defined(PATH_MAX)
  54585. # define LT_PATHMAX PATH_MAX
  54586. @@ -4619,154 +3185,657 @@
  54587. # define LT_PATHMAX 1024
  54588. #endif
  54589. +#ifndef S_IXOTH
  54590. +# define S_IXOTH 0
  54591. +#endif
  54592. +#ifndef S_IXGRP
  54593. +# define S_IXGRP 0
  54594. +#endif
  54595. +
  54596. +#ifdef _MSC_VER
  54597. +# define S_IXUSR _S_IEXEC
  54598. +# define stat _stat
  54599. +# ifndef _INTPTR_T_DEFINED
  54600. +# define intptr_t int
  54601. +# endif
  54602. +#endif
  54603. +
  54604. #ifndef DIR_SEPARATOR
  54605. -#define DIR_SEPARATOR '/'
  54606. +# define DIR_SEPARATOR '/'
  54607. +# define PATH_SEPARATOR ':'
  54608. #endif
  54609. #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  54610. defined (__OS2__)
  54611. -#define HAVE_DOS_BASED_FILE_SYSTEM
  54612. -#ifndef DIR_SEPARATOR_2
  54613. -#define DIR_SEPARATOR_2 '\\'
  54614. -#endif
  54615. +# define HAVE_DOS_BASED_FILE_SYSTEM
  54616. +# define FOPEN_WB "wb"
  54617. +# ifndef DIR_SEPARATOR_2
  54618. +# define DIR_SEPARATOR_2 '\\'
  54619. +# endif
  54620. +# ifndef PATH_SEPARATOR_2
  54621. +# define PATH_SEPARATOR_2 ';'
  54622. +# endif
  54623. #endif
  54624. #ifndef DIR_SEPARATOR_2
  54625. # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  54626. #else /* DIR_SEPARATOR_2 */
  54627. # define IS_DIR_SEPARATOR(ch) \
  54628. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54629. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  54630. #endif /* DIR_SEPARATOR_2 */
  54631. +#ifndef PATH_SEPARATOR_2
  54632. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  54633. +#else /* PATH_SEPARATOR_2 */
  54634. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  54635. +#endif /* PATH_SEPARATOR_2 */
  54636. +
  54637. +#ifdef __CYGWIN__
  54638. +# define FOPEN_WB "wb"
  54639. +#endif
  54640. +
  54641. +#ifndef FOPEN_WB
  54642. +# define FOPEN_WB "w"
  54643. +#endif
  54644. +#ifndef _O_BINARY
  54645. +# define _O_BINARY 0
  54646. +#endif
  54647. +
  54648. #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  54649. #define XFREE(stale) do { \
  54650. if (stale) { free ((void *) stale); stale = 0; } \
  54651. } while (0)
  54652. +#undef LTWRAPPER_DEBUGPRINTF
  54653. +#if defined DEBUGWRAPPER
  54654. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  54655. +static void
  54656. +ltwrapper_debugprintf (const char *fmt, ...)
  54657. +{
  54658. + va_list args;
  54659. + va_start (args, fmt);
  54660. + (void) vfprintf (stderr, fmt, args);
  54661. + va_end (args);
  54662. +}
  54663. +#else
  54664. +# define LTWRAPPER_DEBUGPRINTF(args)
  54665. +#endif
  54666. +
  54667. const char *program_name = NULL;
  54668. -void * xmalloc (size_t num);
  54669. -char * xstrdup (const char *string);
  54670. -char * basename (const char *name);
  54671. -char * fnqualify(const char *path);
  54672. -char * strendzap(char *str, const char *pat);
  54673. +void *xmalloc (size_t num);
  54674. +char *xstrdup (const char *string);
  54675. +const char *base_name (const char *name);
  54676. +char *find_executable (const char *wrapper);
  54677. +char *chase_symlinks (const char *pathspec);
  54678. +int make_executable (const char *path);
  54679. +int check_executable (const char *path);
  54680. +char *strendzap (char *str, const char *pat);
  54681. void lt_fatal (const char *message, ...);
  54682. +void lt_setenv (const char *name, const char *value);
  54683. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  54684. +void lt_opt_process_env_set (const char *arg);
  54685. +void lt_opt_process_env_prepend (const char *arg);
  54686. +void lt_opt_process_env_append (const char *arg);
  54687. +int lt_split_name_value (const char *arg, char** name, char** value);
  54688. +void lt_update_exe_path (const char *name, const char *value);
  54689. +void lt_update_lib_path (const char *name, const char *value);
  54690. -int
  54691. -main (int argc, char *argv[])
  54692. -{
  54693. - char **newargz;
  54694. - int i;
  54695. +static const char *script_text_part1 =
  54696. +EOF
  54697. +
  54698. + func_emit_wrapper_part1 yes |
  54699. + $SED -e 's/\([\\"]\)/\\\1/g' \
  54700. + -e 's/^/ "/' -e 's/$/\\n"/'
  54701. + echo ";"
  54702. + cat <<EOF
  54703. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  54704. - newargz = XMALLOC(char *, argc+2);
  54705. +static const char *script_text_part2 =
  54706. +EOF
  54707. + func_emit_wrapper_part2 yes |
  54708. + $SED -e 's/\([\\"]\)/\\\1/g' \
  54709. + -e 's/^/ "/' -e 's/$/\\n"/'
  54710. + echo ";"
  54711. +
  54712. + cat <<EOF
  54713. +const char * MAGIC_EXE = "$magic_exe";
  54714. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  54715. EOF
  54716. - cat >> $cwrappersource <<EOF
  54717. - newargz[0] = "$SHELL";
  54718. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  54719. + func_to_host_pathlist "$temp_rpath"
  54720. + cat <<EOF
  54721. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  54722. +EOF
  54723. + else
  54724. + cat <<"EOF"
  54725. +const char * LIB_PATH_VALUE = "";
  54726. EOF
  54727. + fi
  54728. - cat >> $cwrappersource <<"EOF"
  54729. - newargz[1] = fnqualify(argv[0]);
  54730. - /* we know the script has the same name, without the .exe */
  54731. - /* so make sure newargz[1] doesn't end in .exe */
  54732. - strendzap(newargz[1],".exe");
  54733. - for (i = 1; i < argc; i++)
  54734. - newargz[i+1] = xstrdup(argv[i]);
  54735. - newargz[argc+1] = NULL;
  54736. + if test -n "$dllsearchpath"; then
  54737. + func_to_host_pathlist "$dllsearchpath:"
  54738. + cat <<EOF
  54739. +const char * EXE_PATH_VARNAME = "PATH";
  54740. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  54741. +EOF
  54742. + else
  54743. + cat <<"EOF"
  54744. +const char * EXE_PATH_VARNAME = "";
  54745. +const char * EXE_PATH_VALUE = "";
  54746. EOF
  54747. + fi
  54748. - cat >> $cwrappersource <<EOF
  54749. - execv("$SHELL",newargz);
  54750. + if test "$fast_install" = yes; then
  54751. + cat <<EOF
  54752. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  54753. +EOF
  54754. + else
  54755. + cat <<EOF
  54756. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  54757. EOF
  54758. + fi
  54759. - cat >> $cwrappersource <<"EOF"
  54760. -}
  54761. -void *
  54762. -xmalloc (size_t num)
  54763. -{
  54764. - void * p = (void *) malloc (num);
  54765. - if (!p)
  54766. - lt_fatal ("Memory exhausted");
  54767. + cat <<"EOF"
  54768. - return p;
  54769. -}
  54770. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  54771. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  54772. -char *
  54773. -xstrdup (const char *string)
  54774. -{
  54775. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  54776. -;
  54777. -}
  54778. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  54779. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  54780. -char *
  54781. -basename (const char *name)
  54782. -{
  54783. - const char *base;
  54784. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  54785. +
  54786. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  54787. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  54788. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  54789. +
  54790. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  54791. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  54792. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  54793. +
  54794. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  54795. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  54796. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  54797. +
  54798. +int
  54799. +main (int argc, char *argv[])
  54800. +{
  54801. + char **newargz;
  54802. + int newargc;
  54803. + char *tmp_pathspec;
  54804. + char *actual_cwrapper_path;
  54805. + char *actual_cwrapper_name;
  54806. + char *target_name;
  54807. + char *lt_argv_zero;
  54808. + intptr_t rval = 127;
  54809. +
  54810. + int i;
  54811. +
  54812. + program_name = (char *) xstrdup (base_name (argv[0]));
  54813. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  54814. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  54815. +
  54816. + /* very simple arg parsing; don't want to rely on getopt */
  54817. + for (i = 1; i < argc; i++)
  54818. + {
  54819. + if (strcmp (argv[i], dumpscript_opt) == 0)
  54820. + {
  54821. +EOF
  54822. + case "$host" in
  54823. + *mingw* | *cygwin* )
  54824. + # make stdout use "unix" line endings
  54825. + echo " setmode(1,_O_BINARY);"
  54826. + ;;
  54827. + esac
  54828. +
  54829. + cat <<"EOF"
  54830. + printf ("%s", script_text_part1);
  54831. + printf ("%s", script_text_part2);
  54832. + return 0;
  54833. + }
  54834. + }
  54835. +
  54836. + newargz = XMALLOC (char *, argc + 1);
  54837. + tmp_pathspec = find_executable (argv[0]);
  54838. + if (tmp_pathspec == NULL)
  54839. + lt_fatal ("Couldn't find %s", argv[0]);
  54840. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  54841. + tmp_pathspec));
  54842. +
  54843. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  54844. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  54845. + actual_cwrapper_path));
  54846. + XFREE (tmp_pathspec);
  54847. +
  54848. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  54849. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  54850. +
  54851. + /* wrapper name transforms */
  54852. + strendzap (actual_cwrapper_name, ".exe");
  54853. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  54854. + XFREE (actual_cwrapper_name);
  54855. + actual_cwrapper_name = tmp_pathspec;
  54856. + tmp_pathspec = 0;
  54857. +
  54858. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  54859. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  54860. + strendzap (target_name, ".exe");
  54861. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  54862. + XFREE (target_name);
  54863. + target_name = tmp_pathspec;
  54864. + tmp_pathspec = 0;
  54865. +
  54866. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  54867. + target_name));
  54868. +EOF
  54869. +
  54870. + cat <<EOF
  54871. + newargz[0] =
  54872. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  54873. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  54874. + strcpy (newargz[0], actual_cwrapper_path);
  54875. + strcat (newargz[0], "$objdir");
  54876. + strcat (newargz[0], "/");
  54877. +EOF
  54878. +
  54879. + cat <<"EOF"
  54880. + /* stop here, and copy so we don't have to do this twice */
  54881. + tmp_pathspec = xstrdup (newargz[0]);
  54882. +
  54883. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  54884. + strcat (newargz[0], actual_cwrapper_name);
  54885. +
  54886. + /* DO want the lt- prefix here if it exists, so use target_name */
  54887. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  54888. + XFREE (tmp_pathspec);
  54889. + tmp_pathspec = NULL;
  54890. +EOF
  54891. +
  54892. + case $host_os in
  54893. + mingw*)
  54894. + cat <<"EOF"
  54895. + {
  54896. + char* p;
  54897. + while ((p = strchr (newargz[0], '\\')) != NULL)
  54898. + {
  54899. + *p = '/';
  54900. + }
  54901. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  54902. + {
  54903. + *p = '/';
  54904. + }
  54905. + }
  54906. +EOF
  54907. + ;;
  54908. + esac
  54909. +
  54910. + cat <<"EOF"
  54911. + XFREE (target_name);
  54912. + XFREE (actual_cwrapper_path);
  54913. + XFREE (actual_cwrapper_name);
  54914. +
  54915. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  54916. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  54917. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  54918. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  54919. +
  54920. + newargc=0;
  54921. + for (i = 1; i < argc; i++)
  54922. + {
  54923. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  54924. + {
  54925. + if (argv[i][env_set_opt_len] == '=')
  54926. + {
  54927. + const char *p = argv[i] + env_set_opt_len + 1;
  54928. + lt_opt_process_env_set (p);
  54929. + }
  54930. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  54931. + {
  54932. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  54933. + }
  54934. + else
  54935. + lt_fatal ("%s missing required argument", env_set_opt);
  54936. + continue;
  54937. + }
  54938. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  54939. + {
  54940. + if (argv[i][env_prepend_opt_len] == '=')
  54941. + {
  54942. + const char *p = argv[i] + env_prepend_opt_len + 1;
  54943. + lt_opt_process_env_prepend (p);
  54944. + }
  54945. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  54946. + {
  54947. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  54948. + }
  54949. + else
  54950. + lt_fatal ("%s missing required argument", env_prepend_opt);
  54951. + continue;
  54952. + }
  54953. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  54954. + {
  54955. + if (argv[i][env_append_opt_len] == '=')
  54956. + {
  54957. + const char *p = argv[i] + env_append_opt_len + 1;
  54958. + lt_opt_process_env_append (p);
  54959. + }
  54960. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  54961. + {
  54962. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  54963. + }
  54964. + else
  54965. + lt_fatal ("%s missing required argument", env_append_opt);
  54966. + continue;
  54967. + }
  54968. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  54969. + {
  54970. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  54971. + namespace, but it is not one of the ones we know about and
  54972. + have already dealt with, above (inluding dump-script), then
  54973. + report an error. Otherwise, targets might begin to believe
  54974. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  54975. + namespace. The first time any user complains about this, we'll
  54976. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  54977. + or a configure.ac-settable value.
  54978. + */
  54979. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  54980. + ltwrapper_option_prefix, argv[i]);
  54981. + }
  54982. + /* otherwise ... */
  54983. + newargz[++newargc] = xstrdup (argv[i]);
  54984. + }
  54985. + newargz[++newargc] = NULL;
  54986. +
  54987. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  54988. + for (i = 0; i < newargc; i++)
  54989. + {
  54990. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  54991. + }
  54992. +
  54993. +EOF
  54994. +
  54995. + case $host_os in
  54996. + mingw*)
  54997. + cat <<"EOF"
  54998. + /* execv doesn't actually work on mingw as expected on unix */
  54999. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  55000. + if (rval == -1)
  55001. + {
  55002. + /* failed to start process */
  55003. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  55004. + return 127;
  55005. + }
  55006. + return rval;
  55007. +EOF
  55008. + ;;
  55009. + *)
  55010. + cat <<"EOF"
  55011. + execv (lt_argv_zero, newargz);
  55012. + return rval; /* =127, but avoids unused variable warning */
  55013. +EOF
  55014. + ;;
  55015. + esac
  55016. +
  55017. + cat <<"EOF"
  55018. +}
  55019. +
  55020. +void *
  55021. +xmalloc (size_t num)
  55022. +{
  55023. + void *p = (void *) malloc (num);
  55024. + if (!p)
  55025. + lt_fatal ("Memory exhausted");
  55026. +
  55027. + return p;
  55028. +}
  55029. +
  55030. +char *
  55031. +xstrdup (const char *string)
  55032. +{
  55033. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  55034. + string) : NULL;
  55035. +}
  55036. +
  55037. +const char *
  55038. +base_name (const char *name)
  55039. +{
  55040. + const char *base;
  55041. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55042. /* Skip over the disk name in MSDOS pathnames. */
  55043. - if (isalpha (name[0]) && name[1] == ':')
  55044. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  55045. name += 2;
  55046. #endif
  55047. for (base = name; *name; name++)
  55048. if (IS_DIR_SEPARATOR (*name))
  55049. base = name + 1;
  55050. - return (char *) base;
  55051. + return base;
  55052. +}
  55053. +
  55054. +int
  55055. +check_executable (const char *path)
  55056. +{
  55057. + struct stat st;
  55058. +
  55059. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  55060. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55061. + if ((!path) || (!*path))
  55062. + return 0;
  55063. +
  55064. + if ((stat (path, &st) >= 0)
  55065. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  55066. + return 1;
  55067. + else
  55068. + return 0;
  55069. +}
  55070. +
  55071. +int
  55072. +make_executable (const char *path)
  55073. +{
  55074. + int rval = 0;
  55075. + struct stat st;
  55076. +
  55077. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  55078. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55079. + if ((!path) || (!*path))
  55080. + return 0;
  55081. +
  55082. + if (stat (path, &st) >= 0)
  55083. + {
  55084. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  55085. + }
  55086. + return rval;
  55087. }
  55088. +/* Searches for the full path of the wrapper. Returns
  55089. + newly allocated full path name if found, NULL otherwise
  55090. + Does not chase symlinks, even on platforms that support them.
  55091. +*/
  55092. char *
  55093. -fnqualify(const char *path)
  55094. +find_executable (const char *wrapper)
  55095. {
  55096. - size_t size;
  55097. - char *p;
  55098. + int has_slash = 0;
  55099. + const char *p;
  55100. + const char *p_next;
  55101. + /* static buffer for getcwd */
  55102. char tmp[LT_PATHMAX + 1];
  55103. + int tmp_len;
  55104. + char *concat_name;
  55105. +
  55106. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  55107. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  55108. - assert(path != NULL);
  55109. + if ((wrapper == NULL) || (*wrapper == '\0'))
  55110. + return NULL;
  55111. - /* Is it qualified already? */
  55112. + /* Absolute path? */
  55113. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55114. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  55115. + {
  55116. + concat_name = xstrdup (wrapper);
  55117. + if (check_executable (concat_name))
  55118. + return concat_name;
  55119. + XFREE (concat_name);
  55120. + }
  55121. + else
  55122. + {
  55123. +#endif
  55124. + if (IS_DIR_SEPARATOR (wrapper[0]))
  55125. + {
  55126. + concat_name = xstrdup (wrapper);
  55127. + if (check_executable (concat_name))
  55128. + return concat_name;
  55129. + XFREE (concat_name);
  55130. + }
  55131. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55132. - if (isalpha (path[0]) && path[1] == ':')
  55133. - return xstrdup (path);
  55134. + }
  55135. #endif
  55136. - if (IS_DIR_SEPARATOR (path[0]))
  55137. - return xstrdup (path);
  55138. - /* prepend the current directory */
  55139. - /* doesn't handle '~' */
  55140. + for (p = wrapper; *p; p++)
  55141. + if (*p == '/')
  55142. + {
  55143. + has_slash = 1;
  55144. + break;
  55145. + }
  55146. + if (!has_slash)
  55147. + {
  55148. + /* no slashes; search PATH */
  55149. + const char *path = getenv ("PATH");
  55150. + if (path != NULL)
  55151. + {
  55152. + for (p = path; *p; p = p_next)
  55153. + {
  55154. + const char *q;
  55155. + size_t p_len;
  55156. + for (q = p; *q; q++)
  55157. + if (IS_PATH_SEPARATOR (*q))
  55158. + break;
  55159. + p_len = q - p;
  55160. + p_next = (*q == '\0' ? q : q + 1);
  55161. + if (p_len == 0)
  55162. + {
  55163. + /* empty path: current directory */
  55164. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  55165. + lt_fatal ("getcwd failed");
  55166. + tmp_len = strlen (tmp);
  55167. + concat_name =
  55168. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55169. + memcpy (concat_name, tmp, tmp_len);
  55170. + concat_name[tmp_len] = '/';
  55171. + strcpy (concat_name + tmp_len + 1, wrapper);
  55172. + }
  55173. + else
  55174. + {
  55175. + concat_name =
  55176. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  55177. + memcpy (concat_name, p, p_len);
  55178. + concat_name[p_len] = '/';
  55179. + strcpy (concat_name + p_len + 1, wrapper);
  55180. + }
  55181. + if (check_executable (concat_name))
  55182. + return concat_name;
  55183. + XFREE (concat_name);
  55184. + }
  55185. + }
  55186. + /* not found in PATH; assume curdir */
  55187. + }
  55188. + /* Relative path | not found in path: prepend cwd */
  55189. if (getcwd (tmp, LT_PATHMAX) == NULL)
  55190. lt_fatal ("getcwd failed");
  55191. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  55192. - p = XMALLOC(char, size);
  55193. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  55194. - return p;
  55195. + tmp_len = strlen (tmp);
  55196. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55197. + memcpy (concat_name, tmp, tmp_len);
  55198. + concat_name[tmp_len] = '/';
  55199. + strcpy (concat_name + tmp_len + 1, wrapper);
  55200. +
  55201. + if (check_executable (concat_name))
  55202. + return concat_name;
  55203. + XFREE (concat_name);
  55204. + return NULL;
  55205. +}
  55206. +
  55207. +char *
  55208. +chase_symlinks (const char *pathspec)
  55209. +{
  55210. +#ifndef S_ISLNK
  55211. + return xstrdup (pathspec);
  55212. +#else
  55213. + char buf[LT_PATHMAX];
  55214. + struct stat s;
  55215. + char *tmp_pathspec = xstrdup (pathspec);
  55216. + char *p;
  55217. + int has_symlinks = 0;
  55218. + while (strlen (tmp_pathspec) && !has_symlinks)
  55219. + {
  55220. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  55221. + tmp_pathspec));
  55222. + if (lstat (tmp_pathspec, &s) == 0)
  55223. + {
  55224. + if (S_ISLNK (s.st_mode) != 0)
  55225. + {
  55226. + has_symlinks = 1;
  55227. + break;
  55228. + }
  55229. +
  55230. + /* search backwards for last DIR_SEPARATOR */
  55231. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  55232. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55233. + p--;
  55234. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55235. + {
  55236. + /* no more DIR_SEPARATORS left */
  55237. + break;
  55238. + }
  55239. + *p = '\0';
  55240. + }
  55241. + else
  55242. + {
  55243. + char *errstr = strerror (errno);
  55244. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  55245. + }
  55246. + }
  55247. + XFREE (tmp_pathspec);
  55248. +
  55249. + if (!has_symlinks)
  55250. + {
  55251. + return xstrdup (pathspec);
  55252. + }
  55253. +
  55254. + tmp_pathspec = realpath (pathspec, buf);
  55255. + if (tmp_pathspec == 0)
  55256. + {
  55257. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  55258. + }
  55259. + return xstrdup (tmp_pathspec);
  55260. +#endif
  55261. }
  55262. char *
  55263. -strendzap(char *str, const char *pat)
  55264. +strendzap (char *str, const char *pat)
  55265. {
  55266. size_t len, patlen;
  55267. - assert(str != NULL);
  55268. - assert(pat != NULL);
  55269. + assert (str != NULL);
  55270. + assert (pat != NULL);
  55271. - len = strlen(str);
  55272. - patlen = strlen(pat);
  55273. + len = strlen (str);
  55274. + patlen = strlen (pat);
  55275. if (patlen <= len)
  55276. - {
  55277. - str += len - patlen;
  55278. - if (strcmp(str, pat) == 0)
  55279. - *str = '\0';
  55280. - }
  55281. + {
  55282. + str += len - patlen;
  55283. + if (strcmp (str, pat) == 0)
  55284. + *str = '\0';
  55285. + }
  55286. return str;
  55287. }
  55288. static void
  55289. -lt_error_core (int exit_status, const char * mode,
  55290. - const char * message, va_list ap)
  55291. +lt_error_core (int exit_status, const char *mode,
  55292. + const char *message, va_list ap)
  55293. {
  55294. fprintf (stderr, "%s: %s: ", program_name, mode);
  55295. vfprintf (stderr, message, ap);
  55296. @@ -4784,1230 +3853,4351 @@
  55297. lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  55298. va_end (ap);
  55299. }
  55300. +
  55301. +void
  55302. +lt_setenv (const char *name, const char *value)
  55303. +{
  55304. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  55305. + (name ? name : "<NULL>"),
  55306. + (value ? value : "<NULL>")));
  55307. + {
  55308. +#ifdef HAVE_SETENV
  55309. + /* always make a copy, for consistency with !HAVE_SETENV */
  55310. + char *str = xstrdup (value);
  55311. + setenv (name, str, 1);
  55312. +#else
  55313. + int len = strlen (name) + 1 + strlen (value) + 1;
  55314. + char *str = XMALLOC (char, len);
  55315. + sprintf (str, "%s=%s", name, value);
  55316. + if (putenv (str) != EXIT_SUCCESS)
  55317. + {
  55318. + XFREE (str);
  55319. + }
  55320. +#endif
  55321. + }
  55322. +}
  55323. +
  55324. +char *
  55325. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  55326. +{
  55327. + char *new_value;
  55328. + if (orig_value && *orig_value)
  55329. + {
  55330. + int orig_value_len = strlen (orig_value);
  55331. + int add_len = strlen (add);
  55332. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  55333. + if (to_end)
  55334. + {
  55335. + strcpy (new_value, orig_value);
  55336. + strcpy (new_value + orig_value_len, add);
  55337. + }
  55338. + else
  55339. + {
  55340. + strcpy (new_value, add);
  55341. + strcpy (new_value + add_len, orig_value);
  55342. + }
  55343. + }
  55344. + else
  55345. + {
  55346. + new_value = xstrdup (add);
  55347. + }
  55348. + return new_value;
  55349. +}
  55350. +
  55351. +int
  55352. +lt_split_name_value (const char *arg, char** name, char** value)
  55353. +{
  55354. + const char *p;
  55355. + int len;
  55356. + if (!arg || !*arg)
  55357. + return 1;
  55358. +
  55359. + p = strchr (arg, (int)'=');
  55360. +
  55361. + if (!p)
  55362. + return 1;
  55363. +
  55364. + *value = xstrdup (++p);
  55365. +
  55366. + len = strlen (arg) - strlen (*value);
  55367. + *name = XMALLOC (char, len);
  55368. + strncpy (*name, arg, len-1);
  55369. + (*name)[len - 1] = '\0';
  55370. +
  55371. + return 0;
  55372. +}
  55373. +
  55374. +void
  55375. +lt_opt_process_env_set (const char *arg)
  55376. +{
  55377. + char *name = NULL;
  55378. + char *value = NULL;
  55379. +
  55380. + if (lt_split_name_value (arg, &name, &value) != 0)
  55381. + {
  55382. + XFREE (name);
  55383. + XFREE (value);
  55384. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  55385. + }
  55386. +
  55387. + lt_setenv (name, value);
  55388. + XFREE (name);
  55389. + XFREE (value);
  55390. +}
  55391. +
  55392. +void
  55393. +lt_opt_process_env_prepend (const char *arg)
  55394. +{
  55395. + char *name = NULL;
  55396. + char *value = NULL;
  55397. + char *new_value = NULL;
  55398. +
  55399. + if (lt_split_name_value (arg, &name, &value) != 0)
  55400. + {
  55401. + XFREE (name);
  55402. + XFREE (value);
  55403. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  55404. + }
  55405. +
  55406. + new_value = lt_extend_str (getenv (name), value, 0);
  55407. + lt_setenv (name, new_value);
  55408. + XFREE (new_value);
  55409. + XFREE (name);
  55410. + XFREE (value);
  55411. +}
  55412. +
  55413. +void
  55414. +lt_opt_process_env_append (const char *arg)
  55415. +{
  55416. + char *name = NULL;
  55417. + char *value = NULL;
  55418. + char *new_value = NULL;
  55419. +
  55420. + if (lt_split_name_value (arg, &name, &value) != 0)
  55421. + {
  55422. + XFREE (name);
  55423. + XFREE (value);
  55424. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  55425. + }
  55426. +
  55427. + new_value = lt_extend_str (getenv (name), value, 1);
  55428. + lt_setenv (name, new_value);
  55429. + XFREE (new_value);
  55430. + XFREE (name);
  55431. + XFREE (value);
  55432. +}
  55433. +
  55434. +void
  55435. +lt_update_exe_path (const char *name, const char *value)
  55436. +{
  55437. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  55438. + (name ? name : "<NULL>"),
  55439. + (value ? value : "<NULL>")));
  55440. +
  55441. + if (name && *name && value && *value)
  55442. + {
  55443. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55444. + /* some systems can't cope with a ':'-terminated path #' */
  55445. + int len = strlen (new_value);
  55446. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  55447. + {
  55448. + new_value[len-1] = '\0';
  55449. + }
  55450. + lt_setenv (name, new_value);
  55451. + XFREE (new_value);
  55452. + }
  55453. +}
  55454. +
  55455. +void
  55456. +lt_update_lib_path (const char *name, const char *value)
  55457. +{
  55458. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  55459. + (name ? name : "<NULL>"),
  55460. + (value ? value : "<NULL>")));
  55461. +
  55462. + if (name && *name && value && *value)
  55463. + {
  55464. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55465. + lt_setenv (name, new_value);
  55466. + XFREE (new_value);
  55467. + }
  55468. +}
  55469. +
  55470. +
  55471. EOF
  55472. - # we should really use a build-platform specific compiler
  55473. - # here, but OTOH, the wrappers (shell script and this C one)
  55474. - # are only useful if you want to execute the "real" binary.
  55475. - # Since the "real" binary is built for $host, then this
  55476. - # wrapper might as well be built for $host, too.
  55477. - $run $LTCC -s -o $cwrapper $cwrappersource
  55478. +}
  55479. +# end: func_emit_cwrapperexe_src
  55480. +
  55481. +# func_mode_link arg...
  55482. +func_mode_link ()
  55483. +{
  55484. + $opt_debug
  55485. + case $host in
  55486. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55487. + # It is impossible to link a dll without this setting, and
  55488. + # we shouldn't force the makefile maintainer to figure out
  55489. + # which system we are compiling for in order to pass an extra
  55490. + # flag for every libtool invocation.
  55491. + # allow_undefined=no
  55492. +
  55493. + # FIXME: Unfortunately, there are problems with the above when trying
  55494. + # to make a dll which has undefined symbols, in which case not
  55495. + # even a static library is built. For now, we need to specify
  55496. + # -no-undefined on the libtool link line when we can be certain
  55497. + # that all symbols are satisfied, otherwise we get a static library.
  55498. + allow_undefined=yes
  55499. + ;;
  55500. + *)
  55501. + allow_undefined=yes
  55502. + ;;
  55503. + esac
  55504. + libtool_args=$nonopt
  55505. + base_compile="$nonopt $@"
  55506. + compile_command=$nonopt
  55507. + finalize_command=$nonopt
  55508. +
  55509. + compile_rpath=
  55510. + finalize_rpath=
  55511. + compile_shlibpath=
  55512. + finalize_shlibpath=
  55513. + convenience=
  55514. + old_convenience=
  55515. + deplibs=
  55516. + old_deplibs=
  55517. + compiler_flags=
  55518. + linker_flags=
  55519. + dllsearchpath=
  55520. + lib_search_path=`pwd`
  55521. + inst_prefix_dir=
  55522. + new_inherited_linker_flags=
  55523. +
  55524. + avoid_version=no
  55525. + dlfiles=
  55526. + dlprefiles=
  55527. + dlself=no
  55528. + export_dynamic=no
  55529. + export_symbols=
  55530. + export_symbols_regex=
  55531. + generated=
  55532. + libobjs=
  55533. + ltlibs=
  55534. + module=no
  55535. + no_install=no
  55536. + objs=
  55537. + non_pic_objects=
  55538. + precious_files_regex=
  55539. + prefer_static_libs=no
  55540. + preload=no
  55541. + prev=
  55542. + prevarg=
  55543. + release=
  55544. + rpath=
  55545. + xrpath=
  55546. + perm_rpath=
  55547. + temp_rpath=
  55548. + thread_safe=no
  55549. + vinfo=
  55550. + vinfo_number=no
  55551. + weak_libs=
  55552. + single_module="${wl}-single_module"
  55553. + func_infer_tag $base_compile
  55554. +
  55555. + # We need to know -static, to get the right output filenames.
  55556. + for arg
  55557. + do
  55558. + case $arg in
  55559. + -shared)
  55560. + test "$build_libtool_libs" != yes && \
  55561. + func_fatal_configuration "can not build a shared library"
  55562. + build_old_libs=no
  55563. + break
  55564. + ;;
  55565. + -all-static | -static | -static-libtool-libs)
  55566. + case $arg in
  55567. + -all-static)
  55568. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  55569. + func_warning "complete static linking is impossible in this configuration"
  55570. + fi
  55571. + if test -n "$link_static_flag"; then
  55572. + dlopen_self=$dlopen_self_static
  55573. + fi
  55574. + prefer_static_libs=yes
  55575. + ;;
  55576. + -static)
  55577. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55578. + dlopen_self=$dlopen_self_static
  55579. + fi
  55580. + prefer_static_libs=built
  55581. + ;;
  55582. + -static-libtool-libs)
  55583. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55584. + dlopen_self=$dlopen_self_static
  55585. + fi
  55586. + prefer_static_libs=yes
  55587. + ;;
  55588. + esac
  55589. + build_libtool_libs=no
  55590. + build_old_libs=yes
  55591. + break
  55592. + ;;
  55593. + esac
  55594. + done
  55595. +
  55596. + # See if our shared archives depend on static archives.
  55597. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  55598. +
  55599. + # Go through the arguments, transforming them on the way.
  55600. + while test "$#" -gt 0; do
  55601. + arg="$1"
  55602. + shift
  55603. + func_quote_for_eval "$arg"
  55604. + qarg=$func_quote_for_eval_unquoted_result
  55605. + func_append libtool_args " $func_quote_for_eval_result"
  55606. +
  55607. + # If the previous option needs an argument, assign it.
  55608. + if test -n "$prev"; then
  55609. + case $prev in
  55610. + output)
  55611. + func_append compile_command " @OUTPUT@"
  55612. + func_append finalize_command " @OUTPUT@"
  55613. + ;;
  55614. + esac
  55615. +
  55616. + case $prev in
  55617. + dlfiles|dlprefiles)
  55618. + if test "$preload" = no; then
  55619. + # Add the symbol object into the linking commands.
  55620. + func_append compile_command " @SYMFILE@"
  55621. + func_append finalize_command " @SYMFILE@"
  55622. + preload=yes
  55623. + fi
  55624. + case $arg in
  55625. + *.la | *.lo) ;; # We handle these cases below.
  55626. + force)
  55627. + if test "$dlself" = no; then
  55628. + dlself=needless
  55629. + export_dynamic=yes
  55630. + fi
  55631. + prev=
  55632. + continue
  55633. + ;;
  55634. + self)
  55635. + if test "$prev" = dlprefiles; then
  55636. + dlself=yes
  55637. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  55638. + dlself=yes
  55639. + else
  55640. + dlself=needless
  55641. + export_dynamic=yes
  55642. + fi
  55643. + prev=
  55644. + continue
  55645. + ;;
  55646. + *)
  55647. + if test "$prev" = dlfiles; then
  55648. + dlfiles="$dlfiles $arg"
  55649. + else
  55650. + dlprefiles="$dlprefiles $arg"
  55651. + fi
  55652. + prev=
  55653. + continue
  55654. + ;;
  55655. + esac
  55656. + ;;
  55657. + expsyms)
  55658. + export_symbols="$arg"
  55659. + test -f "$arg" \
  55660. + || func_fatal_error "symbol file \`$arg' does not exist"
  55661. + prev=
  55662. + continue
  55663. + ;;
  55664. + expsyms_regex)
  55665. + export_symbols_regex="$arg"
  55666. + prev=
  55667. + continue
  55668. + ;;
  55669. + framework)
  55670. + case $host in
  55671. + *-*-darwin*)
  55672. + case "$deplibs " in
  55673. + *" $qarg.ltframework "*) ;;
  55674. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  55675. + ;;
  55676. + esac
  55677. + ;;
  55678. + esac
  55679. + prev=
  55680. + continue
  55681. + ;;
  55682. + inst_prefix)
  55683. + inst_prefix_dir="$arg"
  55684. + prev=
  55685. + continue
  55686. + ;;
  55687. + objectlist)
  55688. + if test -f "$arg"; then
  55689. + save_arg=$arg
  55690. + moreargs=
  55691. + for fil in `cat "$save_arg"`
  55692. + do
  55693. +# moreargs="$moreargs $fil"
  55694. + arg=$fil
  55695. + # A libtool-controlled object.
  55696. +
  55697. + # Check to see that this really is a libtool object.
  55698. + if func_lalib_unsafe_p "$arg"; then
  55699. + pic_object=
  55700. + non_pic_object=
  55701. +
  55702. + # Read the .lo file
  55703. + func_source "$arg"
  55704. +
  55705. + if test -z "$pic_object" ||
  55706. + test -z "$non_pic_object" ||
  55707. + test "$pic_object" = none &&
  55708. + test "$non_pic_object" = none; then
  55709. + func_fatal_error "cannot find name of object for \`$arg'"
  55710. + fi
  55711. +
  55712. + # Extract subdirectory from the argument.
  55713. + func_dirname "$arg" "/" ""
  55714. + xdir="$func_dirname_result"
  55715. +
  55716. + if test "$pic_object" != none; then
  55717. + # Prepend the subdirectory the object is found in.
  55718. + pic_object="$xdir$pic_object"
  55719. +
  55720. + if test "$prev" = dlfiles; then
  55721. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  55722. + dlfiles="$dlfiles $pic_object"
  55723. + prev=
  55724. + continue
  55725. + else
  55726. + # If libtool objects are unsupported, then we need to preload.
  55727. + prev=dlprefiles
  55728. + fi
  55729. + fi
  55730. +
  55731. + # CHECK ME: I think I busted this. -Ossama
  55732. + if test "$prev" = dlprefiles; then
  55733. + # Preload the old-style object.
  55734. + dlprefiles="$dlprefiles $pic_object"
  55735. + prev=
  55736. + fi
  55737. +
  55738. + # A PIC object.
  55739. + func_append libobjs " $pic_object"
  55740. + arg="$pic_object"
  55741. + fi
  55742. +
  55743. + # Non-PIC object.
  55744. + if test "$non_pic_object" != none; then
  55745. + # Prepend the subdirectory the object is found in.
  55746. + non_pic_object="$xdir$non_pic_object"
  55747. +
  55748. + # A standard non-PIC object
  55749. + func_append non_pic_objects " $non_pic_object"
  55750. + if test -z "$pic_object" || test "$pic_object" = none ; then
  55751. + arg="$non_pic_object"
  55752. + fi
  55753. + else
  55754. + # If the PIC object exists, use it instead.
  55755. + # $xdir was prepended to $pic_object above.
  55756. + non_pic_object="$pic_object"
  55757. + func_append non_pic_objects " $non_pic_object"
  55758. + fi
  55759. + else
  55760. + # Only an error if not doing a dry-run.
  55761. + if $opt_dry_run; then
  55762. + # Extract subdirectory from the argument.
  55763. + func_dirname "$arg" "/" ""
  55764. + xdir="$func_dirname_result"
  55765. +
  55766. + func_lo2o "$arg"
  55767. + pic_object=$xdir$objdir/$func_lo2o_result
  55768. + non_pic_object=$xdir$func_lo2o_result
  55769. + func_append libobjs " $pic_object"
  55770. + func_append non_pic_objects " $non_pic_object"
  55771. + else
  55772. + func_fatal_error "\`$arg' is not a valid libtool object"
  55773. + fi
  55774. + fi
  55775. + done
  55776. + else
  55777. + func_fatal_error "link input file \`$arg' does not exist"
  55778. + fi
  55779. + arg=$save_arg
  55780. + prev=
  55781. + continue
  55782. + ;;
  55783. + precious_regex)
  55784. + precious_files_regex="$arg"
  55785. + prev=
  55786. + continue
  55787. + ;;
  55788. + release)
  55789. + release="-$arg"
  55790. + prev=
  55791. + continue
  55792. + ;;
  55793. + rpath | xrpath)
  55794. + # We need an absolute path.
  55795. + case $arg in
  55796. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55797. + *)
  55798. + func_fatal_error "only absolute run-paths are allowed"
  55799. + ;;
  55800. + esac
  55801. + if test "$prev" = rpath; then
  55802. + case "$rpath " in
  55803. + *" $arg "*) ;;
  55804. + *) rpath="$rpath $arg" ;;
  55805. + esac
  55806. + else
  55807. + case "$xrpath " in
  55808. + *" $arg "*) ;;
  55809. + *) xrpath="$xrpath $arg" ;;
  55810. + esac
  55811. + fi
  55812. + prev=
  55813. + continue
  55814. + ;;
  55815. + shrext)
  55816. + shrext_cmds="$arg"
  55817. + prev=
  55818. + continue
  55819. + ;;
  55820. + weak)
  55821. + weak_libs="$weak_libs $arg"
  55822. + prev=
  55823. + continue
  55824. + ;;
  55825. + xcclinker)
  55826. + linker_flags="$linker_flags $qarg"
  55827. + compiler_flags="$compiler_flags $qarg"
  55828. + prev=
  55829. + func_append compile_command " $qarg"
  55830. + func_append finalize_command " $qarg"
  55831. + continue
  55832. + ;;
  55833. + xcompiler)
  55834. + compiler_flags="$compiler_flags $qarg"
  55835. + prev=
  55836. + func_append compile_command " $qarg"
  55837. + func_append finalize_command " $qarg"
  55838. + continue
  55839. + ;;
  55840. + xlinker)
  55841. + linker_flags="$linker_flags $qarg"
  55842. + compiler_flags="$compiler_flags $wl$qarg"
  55843. + prev=
  55844. + func_append compile_command " $wl$qarg"
  55845. + func_append finalize_command " $wl$qarg"
  55846. + continue
  55847. + ;;
  55848. + *)
  55849. + eval "$prev=\"\$arg\""
  55850. + prev=
  55851. + continue
  55852. + ;;
  55853. + esac
  55854. + fi # test -n "$prev"
  55855. +
  55856. + prevarg="$arg"
  55857. +
  55858. + case $arg in
  55859. + -all-static)
  55860. + if test -n "$link_static_flag"; then
  55861. + # See comment for -static flag below, for more details.
  55862. + func_append compile_command " $link_static_flag"
  55863. + func_append finalize_command " $link_static_flag"
  55864. + fi
  55865. + continue
  55866. + ;;
  55867. +
  55868. + -allow-undefined)
  55869. + # FIXME: remove this flag sometime in the future.
  55870. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  55871. + ;;
  55872. +
  55873. + -avoid-version)
  55874. + avoid_version=yes
  55875. + continue
  55876. + ;;
  55877. +
  55878. + -dlopen)
  55879. + prev=dlfiles
  55880. + continue
  55881. + ;;
  55882. +
  55883. + -dlpreopen)
  55884. + prev=dlprefiles
  55885. + continue
  55886. + ;;
  55887. +
  55888. + -export-dynamic)
  55889. + export_dynamic=yes
  55890. + continue
  55891. + ;;
  55892. +
  55893. + -export-symbols | -export-symbols-regex)
  55894. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  55895. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  55896. + fi
  55897. + if test "X$arg" = "X-export-symbols"; then
  55898. + prev=expsyms
  55899. + else
  55900. + prev=expsyms_regex
  55901. + fi
  55902. + continue
  55903. + ;;
  55904. +
  55905. + -framework)
  55906. + prev=framework
  55907. + continue
  55908. + ;;
  55909. +
  55910. + -inst-prefix-dir)
  55911. + prev=inst_prefix
  55912. + continue
  55913. + ;;
  55914. +
  55915. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  55916. + # so, if we see these flags be careful not to treat them like -L
  55917. + -L[A-Z][A-Z]*:*)
  55918. + case $with_gcc/$host in
  55919. + no/*-*-irix* | /*-*-irix*)
  55920. + func_append compile_command " $arg"
  55921. + func_append finalize_command " $arg"
  55922. + ;;
  55923. + esac
  55924. + continue
  55925. + ;;
  55926. +
  55927. + -L*)
  55928. + func_stripname '-L' '' "$arg"
  55929. + dir=$func_stripname_result
  55930. + if test -z "$dir"; then
  55931. + if test "$#" -gt 0; then
  55932. + func_fatal_error "require no space between \`-L' and \`$1'"
  55933. + else
  55934. + func_fatal_error "need path for \`-L' option"
  55935. + fi
  55936. + fi
  55937. + # We need an absolute path.
  55938. + case $dir in
  55939. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  55940. + *)
  55941. + absdir=`cd "$dir" && pwd`
  55942. + test -z "$absdir" && \
  55943. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  55944. + dir="$absdir"
  55945. + ;;
  55946. + esac
  55947. + case "$deplibs " in
  55948. + *" -L$dir "*) ;;
  55949. + *)
  55950. + deplibs="$deplibs -L$dir"
  55951. + lib_search_path="$lib_search_path $dir"
  55952. + ;;
  55953. + esac
  55954. + case $host in
  55955. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55956. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  55957. + case :$dllsearchpath: in
  55958. + *":$dir:"*) ;;
  55959. + ::) dllsearchpath=$dir;;
  55960. + *) dllsearchpath="$dllsearchpath:$dir";;
  55961. + esac
  55962. + case :$dllsearchpath: in
  55963. + *":$testbindir:"*) ;;
  55964. + ::) dllsearchpath=$testbindir;;
  55965. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  55966. + esac
  55967. + ;;
  55968. + esac
  55969. + continue
  55970. + ;;
  55971. +
  55972. + -l*)
  55973. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  55974. + case $host in
  55975. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  55976. + # These systems don't actually have a C or math library (as such)
  55977. + continue
  55978. + ;;
  55979. + *-*-os2*)
  55980. + # These systems don't actually have a C library (as such)
  55981. + test "X$arg" = "X-lc" && continue
  55982. + ;;
  55983. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  55984. + # Do not include libc due to us having libc/libc_r.
  55985. + test "X$arg" = "X-lc" && continue
  55986. + ;;
  55987. + *-*-rhapsody* | *-*-darwin1.[012])
  55988. + # Rhapsody C and math libraries are in the System framework
  55989. + deplibs="$deplibs System.ltframework"
  55990. + continue
  55991. + ;;
  55992. + *-*-sco3.2v5* | *-*-sco5v6*)
  55993. + # Causes problems with __ctype
  55994. + test "X$arg" = "X-lc" && continue
  55995. + ;;
  55996. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  55997. + # Compiler inserts libc in the correct place for threads to work
  55998. + test "X$arg" = "X-lc" && continue
  55999. + ;;
  56000. + esac
  56001. + elif test "X$arg" = "X-lc_r"; then
  56002. + case $host in
  56003. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56004. + # Do not include libc_r directly, use -pthread flag.
  56005. + continue
  56006. + ;;
  56007. + esac
  56008. + fi
  56009. + deplibs="$deplibs $arg"
  56010. + continue
  56011. + ;;
  56012. +
  56013. + -module)
  56014. + module=yes
  56015. + continue
  56016. + ;;
  56017. +
  56018. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  56019. + # classes, name mangling, and exception handling.
  56020. + # Darwin uses the -arch flag to determine output architecture.
  56021. + -model|-arch|-isysroot)
  56022. + compiler_flags="$compiler_flags $arg"
  56023. + func_append compile_command " $arg"
  56024. + func_append finalize_command " $arg"
  56025. + prev=xcompiler
  56026. + continue
  56027. + ;;
  56028. +
  56029. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56030. + compiler_flags="$compiler_flags $arg"
  56031. + func_append compile_command " $arg"
  56032. + func_append finalize_command " $arg"
  56033. + case "$new_inherited_linker_flags " in
  56034. + *" $arg "*) ;;
  56035. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  56036. + esac
  56037. + continue
  56038. + ;;
  56039. +
  56040. + -multi_module)
  56041. + single_module="${wl}-multi_module"
  56042. + continue
  56043. + ;;
  56044. +
  56045. + -no-fast-install)
  56046. + fast_install=no
  56047. + continue
  56048. + ;;
  56049. +
  56050. + -no-install)
  56051. + case $host in
  56052. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  56053. + # The PATH hackery in wrapper scripts is required on Windows
  56054. + # and Darwin in order for the loader to find any dlls it needs.
  56055. + func_warning "\`-no-install' is ignored for $host"
  56056. + func_warning "assuming \`-no-fast-install' instead"
  56057. + fast_install=no
  56058. + ;;
  56059. + *) no_install=yes ;;
  56060. + esac
  56061. + continue
  56062. + ;;
  56063. +
  56064. + -no-undefined)
  56065. + allow_undefined=no
  56066. + continue
  56067. + ;;
  56068. +
  56069. + -objectlist)
  56070. + prev=objectlist
  56071. + continue
  56072. + ;;
  56073. +
  56074. + -o) prev=output ;;
  56075. +
  56076. + -precious-files-regex)
  56077. + prev=precious_regex
  56078. + continue
  56079. + ;;
  56080. +
  56081. + -release)
  56082. + prev=release
  56083. + continue
  56084. + ;;
  56085. +
  56086. + -rpath)
  56087. + prev=rpath
  56088. + continue
  56089. + ;;
  56090. +
  56091. + -R)
  56092. + prev=xrpath
  56093. + continue
  56094. + ;;
  56095. +
  56096. + -R*)
  56097. + func_stripname '-R' '' "$arg"
  56098. + dir=$func_stripname_result
  56099. + # We need an absolute path.
  56100. + case $dir in
  56101. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56102. + *)
  56103. + func_fatal_error "only absolute run-paths are allowed"
  56104. + ;;
  56105. + esac
  56106. + case "$xrpath " in
  56107. + *" $dir "*) ;;
  56108. + *) xrpath="$xrpath $dir" ;;
  56109. + esac
  56110. + continue
  56111. + ;;
  56112. +
  56113. + -shared)
  56114. + # The effects of -shared are defined in a previous loop.
  56115. + continue
  56116. + ;;
  56117. +
  56118. + -shrext)
  56119. + prev=shrext
  56120. + continue
  56121. + ;;
  56122. +
  56123. + -static | -static-libtool-libs)
  56124. + # The effects of -static are defined in a previous loop.
  56125. + # We used to do the same as -all-static on platforms that
  56126. + # didn't have a PIC flag, but the assumption that the effects
  56127. + # would be equivalent was wrong. It would break on at least
  56128. + # Digital Unix and AIX.
  56129. + continue
  56130. + ;;
  56131. +
  56132. + -thread-safe)
  56133. + thread_safe=yes
  56134. + continue
  56135. + ;;
  56136. +
  56137. + -version-info)
  56138. + prev=vinfo
  56139. + continue
  56140. + ;;
  56141. +
  56142. + -version-number)
  56143. + prev=vinfo
  56144. + vinfo_number=yes
  56145. + continue
  56146. + ;;
  56147. +
  56148. + -weak)
  56149. + prev=weak
  56150. + continue
  56151. + ;;
  56152. +
  56153. + -Wc,*)
  56154. + func_stripname '-Wc,' '' "$arg"
  56155. + args=$func_stripname_result
  56156. + arg=
  56157. + save_ifs="$IFS"; IFS=','
  56158. + for flag in $args; do
  56159. + IFS="$save_ifs"
  56160. + func_quote_for_eval "$flag"
  56161. + arg="$arg $wl$func_quote_for_eval_result"
  56162. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  56163. + done
  56164. + IFS="$save_ifs"
  56165. + func_stripname ' ' '' "$arg"
  56166. + arg=$func_stripname_result
  56167. + ;;
  56168. +
  56169. + -Wl,*)
  56170. + func_stripname '-Wl,' '' "$arg"
  56171. + args=$func_stripname_result
  56172. + arg=
  56173. + save_ifs="$IFS"; IFS=','
  56174. + for flag in $args; do
  56175. + IFS="$save_ifs"
  56176. + func_quote_for_eval "$flag"
  56177. + arg="$arg $wl$func_quote_for_eval_result"
  56178. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  56179. + linker_flags="$linker_flags $func_quote_for_eval_result"
  56180. + done
  56181. + IFS="$save_ifs"
  56182. + func_stripname ' ' '' "$arg"
  56183. + arg=$func_stripname_result
  56184. + ;;
  56185. +
  56186. + -Xcompiler)
  56187. + prev=xcompiler
  56188. + continue
  56189. + ;;
  56190. +
  56191. + -Xlinker)
  56192. + prev=xlinker
  56193. + continue
  56194. + ;;
  56195. +
  56196. + -XCClinker)
  56197. + prev=xcclinker
  56198. + continue
  56199. + ;;
  56200. +
  56201. + # -msg_* for osf cc
  56202. + -msg_*)
  56203. + func_quote_for_eval "$arg"
  56204. + arg="$func_quote_for_eval_result"
  56205. + ;;
  56206. +
  56207. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  56208. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  56209. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  56210. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  56211. + # -q* pass through compiler args for the IBM compiler
  56212. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  56213. + # compiler args for GCC
  56214. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  56215. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  56216. + # @file GCC response files
  56217. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  56218. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  56219. + func_quote_for_eval "$arg"
  56220. + arg="$func_quote_for_eval_result"
  56221. + func_append compile_command " $arg"
  56222. + func_append finalize_command " $arg"
  56223. + compiler_flags="$compiler_flags $arg"
  56224. + continue
  56225. + ;;
  56226. +
  56227. + # Some other compiler flag.
  56228. + -* | +*)
  56229. + func_quote_for_eval "$arg"
  56230. + arg="$func_quote_for_eval_result"
  56231. + ;;
  56232. +
  56233. + *.$objext)
  56234. + # A standard object.
  56235. + objs="$objs $arg"
  56236. + ;;
  56237. +
  56238. + *.lo)
  56239. + # A libtool-controlled object.
  56240. +
  56241. + # Check to see that this really is a libtool object.
  56242. + if func_lalib_unsafe_p "$arg"; then
  56243. + pic_object=
  56244. + non_pic_object=
  56245. +
  56246. + # Read the .lo file
  56247. + func_source "$arg"
  56248. +
  56249. + if test -z "$pic_object" ||
  56250. + test -z "$non_pic_object" ||
  56251. + test "$pic_object" = none &&
  56252. + test "$non_pic_object" = none; then
  56253. + func_fatal_error "cannot find name of object for \`$arg'"
  56254. + fi
  56255. +
  56256. + # Extract subdirectory from the argument.
  56257. + func_dirname "$arg" "/" ""
  56258. + xdir="$func_dirname_result"
  56259. +
  56260. + if test "$pic_object" != none; then
  56261. + # Prepend the subdirectory the object is found in.
  56262. + pic_object="$xdir$pic_object"
  56263. +
  56264. + if test "$prev" = dlfiles; then
  56265. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56266. + dlfiles="$dlfiles $pic_object"
  56267. + prev=
  56268. + continue
  56269. + else
  56270. + # If libtool objects are unsupported, then we need to preload.
  56271. + prev=dlprefiles
  56272. + fi
  56273. + fi
  56274. +
  56275. + # CHECK ME: I think I busted this. -Ossama
  56276. + if test "$prev" = dlprefiles; then
  56277. + # Preload the old-style object.
  56278. + dlprefiles="$dlprefiles $pic_object"
  56279. + prev=
  56280. + fi
  56281. +
  56282. + # A PIC object.
  56283. + func_append libobjs " $pic_object"
  56284. + arg="$pic_object"
  56285. + fi
  56286. +
  56287. + # Non-PIC object.
  56288. + if test "$non_pic_object" != none; then
  56289. + # Prepend the subdirectory the object is found in.
  56290. + non_pic_object="$xdir$non_pic_object"
  56291. +
  56292. + # A standard non-PIC object
  56293. + func_append non_pic_objects " $non_pic_object"
  56294. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56295. + arg="$non_pic_object"
  56296. + fi
  56297. + else
  56298. + # If the PIC object exists, use it instead.
  56299. + # $xdir was prepended to $pic_object above.
  56300. + non_pic_object="$pic_object"
  56301. + func_append non_pic_objects " $non_pic_object"
  56302. + fi
  56303. + else
  56304. + # Only an error if not doing a dry-run.
  56305. + if $opt_dry_run; then
  56306. + # Extract subdirectory from the argument.
  56307. + func_dirname "$arg" "/" ""
  56308. + xdir="$func_dirname_result"
  56309. +
  56310. + func_lo2o "$arg"
  56311. + pic_object=$xdir$objdir/$func_lo2o_result
  56312. + non_pic_object=$xdir$func_lo2o_result
  56313. + func_append libobjs " $pic_object"
  56314. + func_append non_pic_objects " $non_pic_object"
  56315. + else
  56316. + func_fatal_error "\`$arg' is not a valid libtool object"
  56317. + fi
  56318. + fi
  56319. + ;;
  56320. +
  56321. + *.$libext)
  56322. + # An archive.
  56323. + deplibs="$deplibs $arg"
  56324. + old_deplibs="$old_deplibs $arg"
  56325. + continue
  56326. + ;;
  56327. +
  56328. + *.la)
  56329. + # A libtool-controlled library.
  56330. +
  56331. + if test "$prev" = dlfiles; then
  56332. + # This library was specified with -dlopen.
  56333. + dlfiles="$dlfiles $arg"
  56334. + prev=
  56335. + elif test "$prev" = dlprefiles; then
  56336. + # The library was specified with -dlpreopen.
  56337. + dlprefiles="$dlprefiles $arg"
  56338. + prev=
  56339. + else
  56340. + deplibs="$deplibs $arg"
  56341. + fi
  56342. + continue
  56343. + ;;
  56344. +
  56345. + # Some other compiler argument.
  56346. + *)
  56347. + # Unknown arguments in both finalize_command and compile_command need
  56348. + # to be aesthetically quoted because they are evaled later.
  56349. + func_quote_for_eval "$arg"
  56350. + arg="$func_quote_for_eval_result"
  56351. + ;;
  56352. + esac # arg
  56353. +
  56354. + # Now actually substitute the argument into the commands.
  56355. + if test -n "$arg"; then
  56356. + func_append compile_command " $arg"
  56357. + func_append finalize_command " $arg"
  56358. + fi
  56359. + done # argument parsing loop
  56360. +
  56361. + test -n "$prev" && \
  56362. + func_fatal_help "the \`$prevarg' option requires an argument"
  56363. +
  56364. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56365. + eval arg=\"$export_dynamic_flag_spec\"
  56366. + func_append compile_command " $arg"
  56367. + func_append finalize_command " $arg"
  56368. + fi
  56369. +
  56370. + oldlibs=
  56371. + # calculate the name of the file, without its directory
  56372. + func_basename "$output"
  56373. + outputname="$func_basename_result"
  56374. + libobjs_save="$libobjs"
  56375. +
  56376. + if test -n "$shlibpath_var"; then
  56377. + # get the directories listed in $shlibpath_var
  56378. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56379. + else
  56380. + shlib_search_path=
  56381. + fi
  56382. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56383. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56384. +
  56385. + func_dirname "$output" "/" ""
  56386. + output_objdir="$func_dirname_result$objdir"
  56387. + # Create the object directory.
  56388. + func_mkdir_p "$output_objdir"
  56389. +
  56390. + # Determine the type of output
  56391. + case $output in
  56392. + "")
  56393. + func_fatal_help "you must specify an output file"
  56394. + ;;
  56395. + *.$libext) linkmode=oldlib ;;
  56396. + *.lo | *.$objext) linkmode=obj ;;
  56397. + *.la) linkmode=lib ;;
  56398. + *) linkmode=prog ;; # Anything else should be a program.
  56399. + esac
  56400. +
  56401. + specialdeplibs=
  56402. +
  56403. + libs=
  56404. + # Find all interdependent deplibs by searching for libraries
  56405. + # that are linked more than once (e.g. -la -lb -la)
  56406. + for deplib in $deplibs; do
  56407. + if $opt_duplicate_deps ; then
  56408. + case "$libs " in
  56409. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56410. + esac
  56411. + fi
  56412. + libs="$libs $deplib"
  56413. + done
  56414. +
  56415. + if test "$linkmode" = lib; then
  56416. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56417. +
  56418. + # Compute libraries that are listed more than once in $predeps
  56419. + # $postdeps and mark them as special (i.e., whose duplicates are
  56420. + # not to be eliminated).
  56421. + pre_post_deps=
  56422. + if $opt_duplicate_compiler_generated_deps; then
  56423. + for pre_post_dep in $predeps $postdeps; do
  56424. + case "$pre_post_deps " in
  56425. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56426. + esac
  56427. + pre_post_deps="$pre_post_deps $pre_post_dep"
  56428. + done
  56429. + fi
  56430. + pre_post_deps=
  56431. + fi
  56432. +
  56433. + deplibs=
  56434. + newdependency_libs=
  56435. + newlib_search_path=
  56436. + need_relink=no # whether we're linking any uninstalled libtool libraries
  56437. + notinst_deplibs= # not-installed libtool libraries
  56438. + notinst_path= # paths that contain not-installed libtool libraries
  56439. +
  56440. + case $linkmode in
  56441. + lib)
  56442. + passes="conv dlpreopen link"
  56443. + for file in $dlfiles $dlprefiles; do
  56444. + case $file in
  56445. + *.la) ;;
  56446. + *)
  56447. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  56448. + ;;
  56449. + esac
  56450. + done
  56451. + ;;
  56452. + prog)
  56453. + compile_deplibs=
  56454. + finalize_deplibs=
  56455. + alldeplibs=no
  56456. + newdlfiles=
  56457. + newdlprefiles=
  56458. + passes="conv scan dlopen dlpreopen link"
  56459. + ;;
  56460. + *) passes="conv"
  56461. + ;;
  56462. + esac
  56463. +
  56464. + for pass in $passes; do
  56465. + # The preopen pass in lib mode reverses $deplibs; put it back here
  56466. + # so that -L comes before libs that need it for instance...
  56467. + if test "$linkmode,$pass" = "lib,link"; then
  56468. + ## FIXME: Find the place where the list is rebuilt in the wrong
  56469. + ## order, and fix it there properly
  56470. + tmp_deplibs=
  56471. + for deplib in $deplibs; do
  56472. + tmp_deplibs="$deplib $tmp_deplibs"
  56473. + done
  56474. + deplibs="$tmp_deplibs"
  56475. + fi
  56476. +
  56477. + if test "$linkmode,$pass" = "lib,link" ||
  56478. + test "$linkmode,$pass" = "prog,scan"; then
  56479. + libs="$deplibs"
  56480. + deplibs=
  56481. + fi
  56482. + if test "$linkmode" = prog; then
  56483. + case $pass in
  56484. + dlopen) libs="$dlfiles" ;;
  56485. + dlpreopen) libs="$dlprefiles" ;;
  56486. + link)
  56487. + libs="$deplibs %DEPLIBS%"
  56488. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56489. + ;;
  56490. + esac
  56491. + fi
  56492. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  56493. + # Collect and forward deplibs of preopened libtool libs
  56494. + for lib in $dlprefiles; do
  56495. + # Ignore non-libtool-libs
  56496. + dependency_libs=
  56497. + case $lib in
  56498. + *.la) func_source "$lib" ;;
  56499. + esac
  56500. +
  56501. + # Collect preopened libtool deplibs, except any this library
  56502. + # has declared as weak libs
  56503. + for deplib in $dependency_libs; do
  56504. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  56505. + case " $weak_libs " in
  56506. + *" $deplib_base "*) ;;
  56507. + *) deplibs="$deplibs $deplib" ;;
  56508. + esac
  56509. + done
  56510. + done
  56511. + libs="$dlprefiles"
  56512. + fi
  56513. + if test "$pass" = dlopen; then
  56514. + # Collect dlpreopened libraries
  56515. + save_deplibs="$deplibs"
  56516. + deplibs=
  56517. + fi
  56518. +
  56519. + for deplib in $libs; do
  56520. + lib=
  56521. + found=no
  56522. + case $deplib in
  56523. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56524. + if test "$linkmode,$pass" = "prog,link"; then
  56525. + compile_deplibs="$deplib $compile_deplibs"
  56526. + finalize_deplibs="$deplib $finalize_deplibs"
  56527. + else
  56528. + compiler_flags="$compiler_flags $deplib"
  56529. + if test "$linkmode" = lib ; then
  56530. + case "$new_inherited_linker_flags " in
  56531. + *" $deplib "*) ;;
  56532. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56533. + esac
  56534. + fi
  56535. + fi
  56536. + continue
  56537. + ;;
  56538. + -l*)
  56539. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  56540. + func_warning "\`-l' is ignored for archives/objects"
  56541. + continue
  56542. + fi
  56543. + func_stripname '-l' '' "$deplib"
  56544. + name=$func_stripname_result
  56545. + if test "$linkmode" = lib; then
  56546. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  56547. + else
  56548. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  56549. + fi
  56550. + for searchdir in $searchdirs; do
  56551. + for search_ext in .la $std_shrext .so .a; do
  56552. + # Search the libtool library
  56553. + lib="$searchdir/lib${name}${search_ext}"
  56554. + if test -f "$lib"; then
  56555. + if test "$search_ext" = ".la"; then
  56556. + found=yes
  56557. + else
  56558. + found=no
  56559. + fi
  56560. + break 2
  56561. + fi
  56562. + done
  56563. + done
  56564. + if test "$found" != yes; then
  56565. + # deplib doesn't seem to be a libtool library
  56566. + if test "$linkmode,$pass" = "prog,link"; then
  56567. + compile_deplibs="$deplib $compile_deplibs"
  56568. + finalize_deplibs="$deplib $finalize_deplibs"
  56569. + else
  56570. + deplibs="$deplib $deplibs"
  56571. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56572. + fi
  56573. + continue
  56574. + else # deplib is a libtool library
  56575. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56576. + # We need to do some special things here, and not later.
  56577. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56578. + case " $predeps $postdeps " in
  56579. + *" $deplib "*)
  56580. + if func_lalib_p "$lib"; then
  56581. + library_names=
  56582. + old_library=
  56583. + func_source "$lib"
  56584. + for l in $old_library $library_names; do
  56585. + ll="$l"
  56586. + done
  56587. + if test "X$ll" = "X$old_library" ; then # only static version available
  56588. + found=no
  56589. + func_dirname "$lib" "" "."
  56590. + ladir="$func_dirname_result"
  56591. + lib=$ladir/$old_library
  56592. + if test "$linkmode,$pass" = "prog,link"; then
  56593. + compile_deplibs="$deplib $compile_deplibs"
  56594. + finalize_deplibs="$deplib $finalize_deplibs"
  56595. + else
  56596. + deplibs="$deplib $deplibs"
  56597. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56598. + fi
  56599. + continue
  56600. + fi
  56601. + fi
  56602. + ;;
  56603. + *) ;;
  56604. + esac
  56605. + fi
  56606. + fi
  56607. + ;; # -l
  56608. + *.ltframework)
  56609. + if test "$linkmode,$pass" = "prog,link"; then
  56610. + compile_deplibs="$deplib $compile_deplibs"
  56611. + finalize_deplibs="$deplib $finalize_deplibs"
  56612. + else
  56613. + deplibs="$deplib $deplibs"
  56614. + if test "$linkmode" = lib ; then
  56615. + case "$new_inherited_linker_flags " in
  56616. + *" $deplib "*) ;;
  56617. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56618. + esac
  56619. + fi
  56620. + fi
  56621. + continue
  56622. + ;;
  56623. + -L*)
  56624. + case $linkmode in
  56625. + lib)
  56626. + deplibs="$deplib $deplibs"
  56627. + test "$pass" = conv && continue
  56628. + newdependency_libs="$deplib $newdependency_libs"
  56629. + func_stripname '-L' '' "$deplib"
  56630. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56631. + ;;
  56632. + prog)
  56633. + if test "$pass" = conv; then
  56634. + deplibs="$deplib $deplibs"
  56635. + continue
  56636. + fi
  56637. + if test "$pass" = scan; then
  56638. + deplibs="$deplib $deplibs"
  56639. + else
  56640. + compile_deplibs="$deplib $compile_deplibs"
  56641. + finalize_deplibs="$deplib $finalize_deplibs"
  56642. + fi
  56643. + func_stripname '-L' '' "$deplib"
  56644. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56645. + ;;
  56646. + *)
  56647. + func_warning "\`-L' is ignored for archives/objects"
  56648. + ;;
  56649. + esac # linkmode
  56650. + continue
  56651. + ;; # -L
  56652. + -R*)
  56653. + if test "$pass" = link; then
  56654. + func_stripname '-R' '' "$deplib"
  56655. + dir=$func_stripname_result
  56656. + # Make sure the xrpath contains only unique directories.
  56657. + case "$xrpath " in
  56658. + *" $dir "*) ;;
  56659. + *) xrpath="$xrpath $dir" ;;
  56660. + esac
  56661. + fi
  56662. + deplibs="$deplib $deplibs"
  56663. + continue
  56664. + ;;
  56665. + *.la) lib="$deplib" ;;
  56666. + *.$libext)
  56667. + if test "$pass" = conv; then
  56668. + deplibs="$deplib $deplibs"
  56669. + continue
  56670. + fi
  56671. + case $linkmode in
  56672. + lib)
  56673. + # Linking convenience modules into shared libraries is allowed,
  56674. + # but linking other static libraries is non-portable.
  56675. + case " $dlpreconveniencelibs " in
  56676. + *" $deplib "*) ;;
  56677. + *)
  56678. + valid_a_lib=no
  56679. + case $deplibs_check_method in
  56680. + match_pattern*)
  56681. + set dummy $deplibs_check_method; shift
  56682. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  56683. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  56684. + | $EGREP "$match_pattern_regex" > /dev/null; then
  56685. + valid_a_lib=yes
  56686. + fi
  56687. + ;;
  56688. + pass_all)
  56689. + valid_a_lib=yes
  56690. + ;;
  56691. + esac
  56692. + if test "$valid_a_lib" != yes; then
  56693. + $ECHO
  56694. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  56695. + $ECHO "*** I have the capability to make that library automatically link in when"
  56696. + $ECHO "*** you link to this library. But I can only do this if you have a"
  56697. + $ECHO "*** shared version of the library, which you do not appear to have"
  56698. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  56699. + $ECHO "*** that it is just a static archive that I should not use here."
  56700. + else
  56701. + $ECHO
  56702. + $ECHO "*** Warning: Linking the shared library $output against the"
  56703. + $ECHO "*** static library $deplib is not portable!"
  56704. + deplibs="$deplib $deplibs"
  56705. + fi
  56706. + ;;
  56707. + esac
  56708. + continue
  56709. + ;;
  56710. + prog)
  56711. + if test "$pass" != link; then
  56712. + deplibs="$deplib $deplibs"
  56713. + else
  56714. + compile_deplibs="$deplib $compile_deplibs"
  56715. + finalize_deplibs="$deplib $finalize_deplibs"
  56716. + fi
  56717. + continue
  56718. + ;;
  56719. + esac # linkmode
  56720. + ;; # *.$libext
  56721. + *.lo | *.$objext)
  56722. + if test "$pass" = conv; then
  56723. + deplibs="$deplib $deplibs"
  56724. + elif test "$linkmode" = prog; then
  56725. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  56726. + # If there is no dlopen support or we're linking statically,
  56727. + # we need to preload.
  56728. + newdlprefiles="$newdlprefiles $deplib"
  56729. + compile_deplibs="$deplib $compile_deplibs"
  56730. + finalize_deplibs="$deplib $finalize_deplibs"
  56731. + else
  56732. + newdlfiles="$newdlfiles $deplib"
  56733. + fi
  56734. + fi
  56735. + continue
  56736. + ;;
  56737. + %DEPLIBS%)
  56738. + alldeplibs=yes
  56739. + continue
  56740. + ;;
  56741. + esac # case $deplib
  56742. +
  56743. + if test "$found" = yes || test -f "$lib"; then :
  56744. + else
  56745. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  56746. + fi
  56747. +
  56748. + # Check to see that this really is a libtool archive.
  56749. + func_lalib_unsafe_p "$lib" \
  56750. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  56751. +
  56752. + func_dirname "$lib" "" "."
  56753. + ladir="$func_dirname_result"
  56754. +
  56755. + dlname=
  56756. + dlopen=
  56757. + dlpreopen=
  56758. + libdir=
  56759. + library_names=
  56760. + old_library=
  56761. + inherited_linker_flags=
  56762. + # If the library was installed with an old release of libtool,
  56763. + # it will not redefine variables installed, or shouldnotlink
  56764. + installed=yes
  56765. + shouldnotlink=no
  56766. + avoidtemprpath=
  56767. +
  56768. +
  56769. + # Read the .la file
  56770. + func_source "$lib"
  56771. +
  56772. + # Convert "-framework foo" to "foo.ltframework"
  56773. + if test -n "$inherited_linker_flags"; then
  56774. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  56775. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  56776. + case " $new_inherited_linker_flags " in
  56777. + *" $tmp_inherited_linker_flag "*) ;;
  56778. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  56779. + esac
  56780. + done
  56781. + fi
  56782. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  56783. + if test "$linkmode,$pass" = "lib,link" ||
  56784. + test "$linkmode,$pass" = "prog,scan" ||
  56785. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  56786. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  56787. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  56788. + fi
  56789. +
  56790. + if test "$pass" = conv; then
  56791. + # Only check for convenience libraries
  56792. + deplibs="$lib $deplibs"
  56793. + if test -z "$libdir"; then
  56794. + if test -z "$old_library"; then
  56795. + func_fatal_error "cannot find name of link library for \`$lib'"
  56796. + fi
  56797. + # It is a libtool convenience library, so add in its objects.
  56798. + convenience="$convenience $ladir/$objdir/$old_library"
  56799. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  56800. + tmp_libs=
  56801. + for deplib in $dependency_libs; do
  56802. + deplibs="$deplib $deplibs"
  56803. + if $opt_duplicate_deps ; then
  56804. + case "$tmp_libs " in
  56805. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56806. + esac
  56807. + fi
  56808. + tmp_libs="$tmp_libs $deplib"
  56809. + done
  56810. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  56811. + func_fatal_error "\`$lib' is not a convenience library"
  56812. + fi
  56813. + continue
  56814. + fi # $pass = conv
  56815. +
  56816. +
  56817. + # Get the name of the library we link against.
  56818. + linklib=
  56819. + for l in $old_library $library_names; do
  56820. + linklib="$l"
  56821. + done
  56822. + if test -z "$linklib"; then
  56823. + func_fatal_error "cannot find name of link library for \`$lib'"
  56824. + fi
  56825. +
  56826. + # This library was specified with -dlopen.
  56827. + if test "$pass" = dlopen; then
  56828. + if test -z "$libdir"; then
  56829. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  56830. + fi
  56831. + if test -z "$dlname" ||
  56832. + test "$dlopen_support" != yes ||
  56833. + test "$build_libtool_libs" = no; then
  56834. + # If there is no dlname, no dlopen support or we're linking
  56835. + # statically, we need to preload. We also need to preload any
  56836. + # dependent libraries so libltdl's deplib preloader doesn't
  56837. + # bomb out in the load deplibs phase.
  56838. + dlprefiles="$dlprefiles $lib $dependency_libs"
  56839. + else
  56840. + newdlfiles="$newdlfiles $lib"
  56841. + fi
  56842. + continue
  56843. + fi # $pass = dlopen
  56844. +
  56845. + # We need an absolute path.
  56846. + case $ladir in
  56847. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  56848. + *)
  56849. + abs_ladir=`cd "$ladir" && pwd`
  56850. + if test -z "$abs_ladir"; then
  56851. + func_warning "cannot determine absolute directory name of \`$ladir'"
  56852. + func_warning "passing it literally to the linker, although it might fail"
  56853. + abs_ladir="$ladir"
  56854. + fi
  56855. + ;;
  56856. + esac
  56857. + func_basename "$lib"
  56858. + laname="$func_basename_result"
  56859. +
  56860. + # Find the relevant object directory and library name.
  56861. + if test "X$installed" = Xyes; then
  56862. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56863. + func_warning "library \`$lib' was moved."
  56864. + dir="$ladir"
  56865. + absdir="$abs_ladir"
  56866. + libdir="$abs_ladir"
  56867. + else
  56868. + dir="$libdir"
  56869. + absdir="$libdir"
  56870. + fi
  56871. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  56872. + else
  56873. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  56874. + dir="$ladir"
  56875. + absdir="$abs_ladir"
  56876. + # Remove this search path later
  56877. + notinst_path="$notinst_path $abs_ladir"
  56878. + else
  56879. + dir="$ladir/$objdir"
  56880. + absdir="$abs_ladir/$objdir"
  56881. + # Remove this search path later
  56882. + notinst_path="$notinst_path $abs_ladir"
  56883. + fi
  56884. + fi # $installed = yes
  56885. + func_stripname 'lib' '.la' "$laname"
  56886. + name=$func_stripname_result
  56887. +
  56888. + # This library was specified with -dlpreopen.
  56889. + if test "$pass" = dlpreopen; then
  56890. + if test -z "$libdir" && test "$linkmode" = prog; then
  56891. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  56892. + fi
  56893. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  56894. + # are required to link).
  56895. + if test -n "$old_library"; then
  56896. + newdlprefiles="$newdlprefiles $dir/$old_library"
  56897. + # Keep a list of preopened convenience libraries to check
  56898. + # that they are being used correctly in the link pass.
  56899. + test -z "$libdir" && \
  56900. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  56901. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  56902. + elif test -n "$dlname"; then
  56903. + newdlprefiles="$newdlprefiles $dir/$dlname"
  56904. + else
  56905. + newdlprefiles="$newdlprefiles $dir/$linklib"
  56906. + fi
  56907. + fi # $pass = dlpreopen
  56908. +
  56909. + if test -z "$libdir"; then
  56910. + # Link the convenience library
  56911. + if test "$linkmode" = lib; then
  56912. + deplibs="$dir/$old_library $deplibs"
  56913. + elif test "$linkmode,$pass" = "prog,link"; then
  56914. + compile_deplibs="$dir/$old_library $compile_deplibs"
  56915. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  56916. + else
  56917. + deplibs="$lib $deplibs" # used for prog,scan pass
  56918. + fi
  56919. + continue
  56920. + fi
  56921. +
  56922. +
  56923. + if test "$linkmode" = prog && test "$pass" != link; then
  56924. + newlib_search_path="$newlib_search_path $ladir"
  56925. + deplibs="$lib $deplibs"
  56926. +
  56927. + linkalldeplibs=no
  56928. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  56929. + test "$build_libtool_libs" = no; then
  56930. + linkalldeplibs=yes
  56931. + fi
  56932. +
  56933. + tmp_libs=
  56934. + for deplib in $dependency_libs; do
  56935. + case $deplib in
  56936. + -L*) func_stripname '-L' '' "$deplib"
  56937. + newlib_search_path="$newlib_search_path $func_stripname_result"
  56938. + ;;
  56939. + esac
  56940. + # Need to link against all dependency_libs?
  56941. + if test "$linkalldeplibs" = yes; then
  56942. + deplibs="$deplib $deplibs"
  56943. + else
  56944. + # Need to hardcode shared library paths
  56945. + # or/and link against static libraries
  56946. + newdependency_libs="$deplib $newdependency_libs"
  56947. + fi
  56948. + if $opt_duplicate_deps ; then
  56949. + case "$tmp_libs " in
  56950. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56951. + esac
  56952. + fi
  56953. + tmp_libs="$tmp_libs $deplib"
  56954. + done # for deplib
  56955. + continue
  56956. + fi # $linkmode = prog...
  56957. +
  56958. + if test "$linkmode,$pass" = "prog,link"; then
  56959. + if test -n "$library_names" &&
  56960. + { { test "$prefer_static_libs" = no ||
  56961. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  56962. + test -z "$old_library"; }; then
  56963. + # We need to hardcode the library path
  56964. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  56965. + # Make sure the rpath contains only unique directories.
  56966. + case "$temp_rpath:" in
  56967. + *"$absdir:"*) ;;
  56968. + *) temp_rpath="$temp_rpath$absdir:" ;;
  56969. + esac
  56970. + fi
  56971. +
  56972. + # Hardcode the library path.
  56973. + # Skip directories that are in the system default run-time
  56974. + # search path.
  56975. + case " $sys_lib_dlsearch_path " in
  56976. + *" $absdir "*) ;;
  56977. + *)
  56978. + case "$compile_rpath " in
  56979. + *" $absdir "*) ;;
  56980. + *) compile_rpath="$compile_rpath $absdir"
  56981. + esac
  56982. + ;;
  56983. + esac
  56984. + case " $sys_lib_dlsearch_path " in
  56985. + *" $libdir "*) ;;
  56986. + *)
  56987. + case "$finalize_rpath " in
  56988. + *" $libdir "*) ;;
  56989. + *) finalize_rpath="$finalize_rpath $libdir"
  56990. + esac
  56991. + ;;
  56992. + esac
  56993. + fi # $linkmode,$pass = prog,link...
  56994. +
  56995. + if test "$alldeplibs" = yes &&
  56996. + { test "$deplibs_check_method" = pass_all ||
  56997. + { test "$build_libtool_libs" = yes &&
  56998. + test -n "$library_names"; }; }; then
  56999. + # We only need to search for static libraries
  57000. + continue
  57001. + fi
  57002. + fi
  57003. +
  57004. + link_static=no # Whether the deplib will be linked statically
  57005. + use_static_libs=$prefer_static_libs
  57006. + if test "$use_static_libs" = built && test "$installed" = yes; then
  57007. + use_static_libs=no
  57008. + fi
  57009. + if test -n "$library_names" &&
  57010. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57011. + case $host in
  57012. + *cygwin* | *mingw* | *cegcc*)
  57013. + # No point in relinking DLLs because paths are not encoded
  57014. + notinst_deplibs="$notinst_deplibs $lib"
  57015. + need_relink=no
  57016. + ;;
  57017. + *)
  57018. + if test "$installed" = no; then
  57019. + notinst_deplibs="$notinst_deplibs $lib"
  57020. + need_relink=yes
  57021. + fi
  57022. + ;;
  57023. + esac
  57024. + # This is a shared library
  57025. +
  57026. + # Warn about portability, can't link against -module's on some
  57027. + # systems (darwin). Don't bleat about dlopened modules though!
  57028. + dlopenmodule=""
  57029. + for dlpremoduletest in $dlprefiles; do
  57030. + if test "X$dlpremoduletest" = "X$lib"; then
  57031. + dlopenmodule="$dlpremoduletest"
  57032. + break
  57033. + fi
  57034. + done
  57035. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  57036. + $ECHO
  57037. + if test "$linkmode" = prog; then
  57038. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  57039. + else
  57040. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  57041. + fi
  57042. + $ECHO "*** $linklib is not portable!"
  57043. + fi
  57044. + if test "$linkmode" = lib &&
  57045. + test "$hardcode_into_libs" = yes; then
  57046. + # Hardcode the library path.
  57047. + # Skip directories that are in the system default run-time
  57048. + # search path.
  57049. + case " $sys_lib_dlsearch_path " in
  57050. + *" $absdir "*) ;;
  57051. + *)
  57052. + case "$compile_rpath " in
  57053. + *" $absdir "*) ;;
  57054. + *) compile_rpath="$compile_rpath $absdir"
  57055. + esac
  57056. + ;;
  57057. + esac
  57058. + case " $sys_lib_dlsearch_path " in
  57059. + *" $libdir "*) ;;
  57060. + *)
  57061. + case "$finalize_rpath " in
  57062. + *" $libdir "*) ;;
  57063. + *) finalize_rpath="$finalize_rpath $libdir"
  57064. + esac
  57065. + ;;
  57066. + esac
  57067. + fi
  57068. +
  57069. + if test -n "$old_archive_from_expsyms_cmds"; then
  57070. + # figure out the soname
  57071. + set dummy $library_names
  57072. + shift
  57073. + realname="$1"
  57074. + shift
  57075. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57076. + # use dlname if we got it. it's perfectly good, no?
  57077. + if test -n "$dlname"; then
  57078. + soname="$dlname"
  57079. + elif test -n "$soname_spec"; then
  57080. + # bleh windows
  57081. + case $host in
  57082. + *cygwin* | mingw* | *cegcc*)
  57083. + func_arith $current - $age
  57084. + major=$func_arith_result
  57085. + versuffix="-$major"
  57086. + ;;
  57087. + esac
  57088. + eval soname=\"$soname_spec\"
  57089. + else
  57090. + soname="$realname"
  57091. + fi
  57092. +
  57093. + # Make a new name for the extract_expsyms_cmds to use
  57094. + soroot="$soname"
  57095. + func_basename "$soroot"
  57096. + soname="$func_basename_result"
  57097. + func_stripname 'lib' '.dll' "$soname"
  57098. + newlib=libimp-$func_stripname_result.a
  57099. +
  57100. + # If the library has no export list, then create one now
  57101. + if test -f "$output_objdir/$soname-def"; then :
  57102. + else
  57103. + func_verbose "extracting exported symbol list from \`$soname'"
  57104. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  57105. + fi
  57106. +
  57107. + # Create $newlib
  57108. + if test -f "$output_objdir/$newlib"; then :; else
  57109. + func_verbose "generating import library for \`$soname'"
  57110. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  57111. + fi
  57112. + # make sure the library variables are pointing to the new library
  57113. + dir=$output_objdir
  57114. + linklib=$newlib
  57115. + fi # test -n "$old_archive_from_expsyms_cmds"
  57116. +
  57117. + if test "$linkmode" = prog || test "$mode" != relink; then
  57118. + add_shlibpath=
  57119. + add_dir=
  57120. + add=
  57121. + lib_linked=yes
  57122. + case $hardcode_action in
  57123. + immediate | unsupported)
  57124. + if test "$hardcode_direct" = no; then
  57125. + add="$dir/$linklib"
  57126. + case $host in
  57127. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57128. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57129. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57130. + *-*-unixware7*) add_dir="-L$dir" ;;
  57131. + *-*-darwin* )
  57132. + # if the lib is a (non-dlopened) module then we can not
  57133. + # link against it, someone is ignoring the earlier warnings
  57134. + if /usr/bin/file -L $add 2> /dev/null |
  57135. + $GREP ": [^:]* bundle" >/dev/null ; then
  57136. + if test "X$dlopenmodule" != "X$lib"; then
  57137. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  57138. + if test -z "$old_library" ; then
  57139. + $ECHO
  57140. + $ECHO "*** And there doesn't seem to be a static archive available"
  57141. + $ECHO "*** The link will probably fail, sorry"
  57142. + else
  57143. + add="$dir/$old_library"
  57144. + fi
  57145. + elif test -n "$old_library"; then
  57146. + add="$dir/$old_library"
  57147. + fi
  57148. + fi
  57149. + esac
  57150. + elif test "$hardcode_minus_L" = no; then
  57151. + case $host in
  57152. + *-*-sunos*) add_shlibpath="$dir" ;;
  57153. + esac
  57154. + add_dir="-L$dir"
  57155. + add="-l$name"
  57156. + elif test "$hardcode_shlibpath_var" = no; then
  57157. + add_shlibpath="$dir"
  57158. + add="-l$name"
  57159. + else
  57160. + lib_linked=no
  57161. + fi
  57162. + ;;
  57163. + relink)
  57164. + if test "$hardcode_direct" = yes &&
  57165. + test "$hardcode_direct_absolute" = no; then
  57166. + add="$dir/$linklib"
  57167. + elif test "$hardcode_minus_L" = yes; then
  57168. + add_dir="-L$dir"
  57169. + # Try looking first in the location we're being installed to.
  57170. + if test -n "$inst_prefix_dir"; then
  57171. + case $libdir in
  57172. + [\\/]*)
  57173. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57174. + ;;
  57175. + esac
  57176. + fi
  57177. + add="-l$name"
  57178. + elif test "$hardcode_shlibpath_var" = yes; then
  57179. + add_shlibpath="$dir"
  57180. + add="-l$name"
  57181. + else
  57182. + lib_linked=no
  57183. + fi
  57184. + ;;
  57185. + *) lib_linked=no ;;
  57186. + esac
  57187. +
  57188. + if test "$lib_linked" != yes; then
  57189. + func_fatal_configuration "unsupported hardcode properties"
  57190. + fi
  57191. +
  57192. + if test -n "$add_shlibpath"; then
  57193. + case :$compile_shlibpath: in
  57194. + *":$add_shlibpath:"*) ;;
  57195. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  57196. + esac
  57197. + fi
  57198. + if test "$linkmode" = prog; then
  57199. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  57200. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  57201. + else
  57202. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57203. + test -n "$add" && deplibs="$add $deplibs"
  57204. + if test "$hardcode_direct" != yes &&
  57205. + test "$hardcode_minus_L" != yes &&
  57206. + test "$hardcode_shlibpath_var" = yes; then
  57207. + case :$finalize_shlibpath: in
  57208. + *":$libdir:"*) ;;
  57209. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57210. + esac
  57211. + fi
  57212. + fi
  57213. + fi
  57214. +
  57215. + if test "$linkmode" = prog || test "$mode" = relink; then
  57216. + add_shlibpath=
  57217. + add_dir=
  57218. + add=
  57219. + # Finalize command for both is simple: just hardcode it.
  57220. + if test "$hardcode_direct" = yes &&
  57221. + test "$hardcode_direct_absolute" = no; then
  57222. + add="$libdir/$linklib"
  57223. + elif test "$hardcode_minus_L" = yes; then
  57224. + add_dir="-L$libdir"
  57225. + add="-l$name"
  57226. + elif test "$hardcode_shlibpath_var" = yes; then
  57227. + case :$finalize_shlibpath: in
  57228. + *":$libdir:"*) ;;
  57229. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57230. + esac
  57231. + add="-l$name"
  57232. + elif test "$hardcode_automatic" = yes; then
  57233. + if test -n "$inst_prefix_dir" &&
  57234. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57235. + add="$inst_prefix_dir$libdir/$linklib"
  57236. + else
  57237. + add="$libdir/$linklib"
  57238. + fi
  57239. + else
  57240. + # We cannot seem to hardcode it, guess we'll fake it.
  57241. + add_dir="-L$libdir"
  57242. + # Try looking first in the location we're being installed to.
  57243. + if test -n "$inst_prefix_dir"; then
  57244. + case $libdir in
  57245. + [\\/]*)
  57246. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57247. + ;;
  57248. + esac
  57249. + fi
  57250. + add="-l$name"
  57251. + fi
  57252. +
  57253. + if test "$linkmode" = prog; then
  57254. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57255. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57256. + else
  57257. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57258. + test -n "$add" && deplibs="$add $deplibs"
  57259. + fi
  57260. + fi
  57261. + elif test "$linkmode" = prog; then
  57262. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  57263. + # is not unsupported. This is valid on all known static and
  57264. + # shared platforms.
  57265. + if test "$hardcode_direct" != unsupported; then
  57266. + test -n "$old_library" && linklib="$old_library"
  57267. + compile_deplibs="$dir/$linklib $compile_deplibs"
  57268. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57269. + else
  57270. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  57271. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57272. + fi
  57273. + elif test "$build_libtool_libs" = yes; then
  57274. + # Not a shared library
  57275. + if test "$deplibs_check_method" != pass_all; then
  57276. + # We're trying link a shared library against a static one
  57277. + # but the system doesn't support it.
  57278. +
  57279. + # Just print a warning and add the library to dependency_libs so
  57280. + # that the program can be linked against the static library.
  57281. + $ECHO
  57282. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  57283. + $ECHO "*** I have the capability to make that library automatically link in when"
  57284. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57285. + $ECHO "*** shared version of the library, which you do not appear to have."
  57286. + if test "$module" = yes; then
  57287. + $ECHO "*** But as you try to build a module library, libtool will still create "
  57288. + $ECHO "*** a static module, that should work as long as the dlopening application"
  57289. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57290. + if test -z "$global_symbol_pipe"; then
  57291. + $ECHO
  57292. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  57293. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57294. + $ECHO "*** not find such a program. So, this module is probably useless."
  57295. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  57296. + fi
  57297. + if test "$build_old_libs" = no; then
  57298. + build_libtool_libs=module
  57299. + build_old_libs=yes
  57300. + else
  57301. + build_libtool_libs=no
  57302. + fi
  57303. + fi
  57304. + else
  57305. + deplibs="$dir/$old_library $deplibs"
  57306. + link_static=yes
  57307. + fi
  57308. + fi # link shared/static library?
  57309. +
  57310. + if test "$linkmode" = lib; then
  57311. + if test -n "$dependency_libs" &&
  57312. + { test "$hardcode_into_libs" != yes ||
  57313. + test "$build_old_libs" = yes ||
  57314. + test "$link_static" = yes; }; then
  57315. + # Extract -R from dependency_libs
  57316. + temp_deplibs=
  57317. + for libdir in $dependency_libs; do
  57318. + case $libdir in
  57319. + -R*) func_stripname '-R' '' "$libdir"
  57320. + temp_xrpath=$func_stripname_result
  57321. + case " $xrpath " in
  57322. + *" $temp_xrpath "*) ;;
  57323. + *) xrpath="$xrpath $temp_xrpath";;
  57324. + esac;;
  57325. + *) temp_deplibs="$temp_deplibs $libdir";;
  57326. + esac
  57327. + done
  57328. + dependency_libs="$temp_deplibs"
  57329. + fi
  57330. +
  57331. + newlib_search_path="$newlib_search_path $absdir"
  57332. + # Link against this library
  57333. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57334. + # ... and its dependency_libs
  57335. + tmp_libs=
  57336. + for deplib in $dependency_libs; do
  57337. + newdependency_libs="$deplib $newdependency_libs"
  57338. + if $opt_duplicate_deps ; then
  57339. + case "$tmp_libs " in
  57340. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57341. + esac
  57342. + fi
  57343. + tmp_libs="$tmp_libs $deplib"
  57344. + done
  57345. +
  57346. + if test "$link_all_deplibs" != no; then
  57347. + # Add the search paths of all dependency libraries
  57348. + for deplib in $dependency_libs; do
  57349. + path=
  57350. + case $deplib in
  57351. + -L*) path="$deplib" ;;
  57352. + *.la)
  57353. + func_dirname "$deplib" "" "."
  57354. + dir="$func_dirname_result"
  57355. + # We need an absolute path.
  57356. + case $dir in
  57357. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57358. + *)
  57359. + absdir=`cd "$dir" && pwd`
  57360. + if test -z "$absdir"; then
  57361. + func_warning "cannot determine absolute directory name of \`$dir'"
  57362. + absdir="$dir"
  57363. + fi
  57364. + ;;
  57365. + esac
  57366. + if $GREP "^installed=no" $deplib > /dev/null; then
  57367. + case $host in
  57368. + *-*-darwin*)
  57369. + depdepl=
  57370. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57371. + if test -n "$deplibrary_names" ; then
  57372. + for tmp in $deplibrary_names ; do
  57373. + depdepl=$tmp
  57374. + done
  57375. + if test -f "$absdir/$objdir/$depdepl" ; then
  57376. + depdepl="$absdir/$objdir/$depdepl"
  57377. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57378. + if test -z "$darwin_install_name"; then
  57379. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57380. + fi
  57381. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  57382. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  57383. + path=
  57384. + fi
  57385. + fi
  57386. + ;;
  57387. + *)
  57388. + path="-L$absdir/$objdir"
  57389. + ;;
  57390. + esac
  57391. + else
  57392. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57393. + test -z "$libdir" && \
  57394. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57395. + test "$absdir" != "$libdir" && \
  57396. + func_warning "\`$deplib' seems to be moved"
  57397. +
  57398. + path="-L$absdir"
  57399. + fi
  57400. + ;;
  57401. + esac
  57402. + case " $deplibs " in
  57403. + *" $path "*) ;;
  57404. + *) deplibs="$path $deplibs" ;;
  57405. + esac
  57406. + done
  57407. + fi # link_all_deplibs != no
  57408. + fi # linkmode = lib
  57409. + done # for deplib in $libs
  57410. + if test "$pass" = link; then
  57411. + if test "$linkmode" = "prog"; then
  57412. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  57413. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  57414. + else
  57415. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57416. + fi
  57417. + fi
  57418. + dependency_libs="$newdependency_libs"
  57419. + if test "$pass" = dlpreopen; then
  57420. + # Link the dlpreopened libraries before other libraries
  57421. + for deplib in $save_deplibs; do
  57422. + deplibs="$deplib $deplibs"
  57423. + done
  57424. + fi
  57425. + if test "$pass" != dlopen; then
  57426. + if test "$pass" != conv; then
  57427. + # Make sure lib_search_path contains only unique directories.
  57428. + lib_search_path=
  57429. + for dir in $newlib_search_path; do
  57430. + case "$lib_search_path " in
  57431. + *" $dir "*) ;;
  57432. + *) lib_search_path="$lib_search_path $dir" ;;
  57433. + esac
  57434. + done
  57435. + newlib_search_path=
  57436. + fi
  57437. +
  57438. + if test "$linkmode,$pass" != "prog,link"; then
  57439. + vars="deplibs"
  57440. + else
  57441. + vars="compile_deplibs finalize_deplibs"
  57442. + fi
  57443. + for var in $vars dependency_libs; do
  57444. + # Add libraries to $var in reverse order
  57445. + eval tmp_libs=\"\$$var\"
  57446. + new_libs=
  57447. + for deplib in $tmp_libs; do
  57448. + # FIXME: Pedantically, this is the right thing to do, so
  57449. + # that some nasty dependency loop isn't accidentally
  57450. + # broken:
  57451. + #new_libs="$deplib $new_libs"
  57452. + # Pragmatically, this seems to cause very few problems in
  57453. + # practice:
  57454. + case $deplib in
  57455. + -L*) new_libs="$deplib $new_libs" ;;
  57456. + -R*) ;;
  57457. + *)
  57458. + # And here is the reason: when a library appears more
  57459. + # than once as an explicit dependence of a library, or
  57460. + # is implicitly linked in more than once by the
  57461. + # compiler, it is considered special, and multiple
  57462. + # occurrences thereof are not removed. Compare this
  57463. + # with having the same library being listed as a
  57464. + # dependency of multiple other libraries: in this case,
  57465. + # we know (pedantically, we assume) the library does not
  57466. + # need to be listed more than once, so we keep only the
  57467. + # last copy. This is not always right, but it is rare
  57468. + # enough that we require users that really mean to play
  57469. + # such unportable linking tricks to link the library
  57470. + # using -Wl,-lname, so that libtool does not consider it
  57471. + # for duplicate removal.
  57472. + case " $specialdeplibs " in
  57473. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57474. + *)
  57475. + case " $new_libs " in
  57476. + *" $deplib "*) ;;
  57477. + *) new_libs="$deplib $new_libs" ;;
  57478. + esac
  57479. + ;;
  57480. + esac
  57481. + ;;
  57482. + esac
  57483. + done
  57484. + tmp_libs=
  57485. + for deplib in $new_libs; do
  57486. + case $deplib in
  57487. + -L*)
  57488. + case " $tmp_libs " in
  57489. + *" $deplib "*) ;;
  57490. + *) tmp_libs="$tmp_libs $deplib" ;;
  57491. + esac
  57492. + ;;
  57493. + *) tmp_libs="$tmp_libs $deplib" ;;
  57494. + esac
  57495. + done
  57496. + eval $var=\"$tmp_libs\"
  57497. + done # for var
  57498. + fi
  57499. + # Last step: remove runtime libs from dependency_libs
  57500. + # (they stay in deplibs)
  57501. + tmp_libs=
  57502. + for i in $dependency_libs ; do
  57503. + case " $predeps $postdeps $compiler_lib_search_path " in
  57504. + *" $i "*)
  57505. + i=""
  57506. + ;;
  57507. + esac
  57508. + if test -n "$i" ; then
  57509. + tmp_libs="$tmp_libs $i"
  57510. + fi
  57511. + done
  57512. + dependency_libs=$tmp_libs
  57513. + done # for pass
  57514. + if test "$linkmode" = prog; then
  57515. + dlfiles="$newdlfiles"
  57516. + fi
  57517. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  57518. + dlprefiles="$newdlprefiles"
  57519. + fi
  57520. +
  57521. + case $linkmode in
  57522. + oldlib)
  57523. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57524. + func_warning "\`-dlopen' is ignored for archives"
  57525. + fi
  57526. +
  57527. + case " $deplibs" in
  57528. + *\ -l* | *\ -L*)
  57529. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  57530. + esac
  57531. +
  57532. + test -n "$rpath" && \
  57533. + func_warning "\`-rpath' is ignored for archives"
  57534. +
  57535. + test -n "$xrpath" && \
  57536. + func_warning "\`-R' is ignored for archives"
  57537. +
  57538. + test -n "$vinfo" && \
  57539. + func_warning "\`-version-info/-version-number' is ignored for archives"
  57540. +
  57541. + test -n "$release" && \
  57542. + func_warning "\`-release' is ignored for archives"
  57543. +
  57544. + test -n "$export_symbols$export_symbols_regex" && \
  57545. + func_warning "\`-export-symbols' is ignored for archives"
  57546. +
  57547. + # Now set the variables for building old libraries.
  57548. + build_libtool_libs=no
  57549. + oldlibs="$output"
  57550. + objs="$objs$old_deplibs"
  57551. + ;;
  57552. +
  57553. + lib)
  57554. + # Make sure we only generate libraries of the form `libNAME.la'.
  57555. + case $outputname in
  57556. + lib*)
  57557. + func_stripname 'lib' '.la' "$outputname"
  57558. + name=$func_stripname_result
  57559. + eval shared_ext=\"$shrext_cmds\"
  57560. + eval libname=\"$libname_spec\"
  57561. + ;;
  57562. + *)
  57563. + test "$module" = no && \
  57564. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  57565. +
  57566. + if test "$need_lib_prefix" != no; then
  57567. + # Add the "lib" prefix for modules if required
  57568. + func_stripname '' '.la' "$outputname"
  57569. + name=$func_stripname_result
  57570. + eval shared_ext=\"$shrext_cmds\"
  57571. + eval libname=\"$libname_spec\"
  57572. + else
  57573. + func_stripname '' '.la' "$outputname"
  57574. + libname=$func_stripname_result
  57575. + fi
  57576. + ;;
  57577. + esac
  57578. +
  57579. + if test -n "$objs"; then
  57580. + if test "$deplibs_check_method" != pass_all; then
  57581. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  57582. + else
  57583. + $ECHO
  57584. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  57585. + $ECHO "*** objects $objs is not portable!"
  57586. + libobjs="$libobjs $objs"
  57587. + fi
  57588. + fi
  57589. +
  57590. + test "$dlself" != no && \
  57591. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  57592. +
  57593. + set dummy $rpath
  57594. + shift
  57595. + test "$#" -gt 1 && \
  57596. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  57597. +
  57598. + install_libdir="$1"
  57599. +
  57600. + oldlibs=
  57601. + if test -z "$rpath"; then
  57602. + if test "$build_libtool_libs" = yes; then
  57603. + # Building a libtool convenience library.
  57604. + # Some compilers have problems with a `.al' extension so
  57605. + # convenience libraries should have the same extension an
  57606. + # archive normally would.
  57607. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  57608. + build_libtool_libs=convenience
  57609. + build_old_libs=yes
  57610. + fi
  57611. +
  57612. + test -n "$vinfo" && \
  57613. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  57614. +
  57615. + test -n "$release" && \
  57616. + func_warning "\`-release' is ignored for convenience libraries"
  57617. + else
  57618. +
  57619. + # Parse the version information argument.
  57620. + save_ifs="$IFS"; IFS=':'
  57621. + set dummy $vinfo 0 0 0
  57622. + shift
  57623. + IFS="$save_ifs"
  57624. +
  57625. + test -n "$7" && \
  57626. + func_fatal_help "too many parameters to \`-version-info'"
  57627. +
  57628. + # convert absolute version numbers to libtool ages
  57629. + # this retains compatibility with .la files and attempts
  57630. + # to make the code below a bit more comprehensible
  57631. +
  57632. + case $vinfo_number in
  57633. + yes)
  57634. + number_major="$1"
  57635. + number_minor="$2"
  57636. + number_revision="$3"
  57637. + #
  57638. + # There are really only two kinds -- those that
  57639. + # use the current revision as the major version
  57640. + # and those that subtract age and use age as
  57641. + # a minor version. But, then there is irix
  57642. + # which has an extra 1 added just for fun
  57643. + #
  57644. + case $version_type in
  57645. + darwin|linux|osf|windows|none)
  57646. + func_arith $number_major + $number_minor
  57647. + current=$func_arith_result
  57648. + age="$number_minor"
  57649. + revision="$number_revision"
  57650. + ;;
  57651. + freebsd-aout|freebsd-elf|sunos)
  57652. + current="$number_major"
  57653. + revision="$number_minor"
  57654. + age="0"
  57655. + ;;
  57656. + irix|nonstopux)
  57657. + func_arith $number_major + $number_minor
  57658. + current=$func_arith_result
  57659. + age="$number_minor"
  57660. + revision="$number_minor"
  57661. + lt_irix_increment=no
  57662. + ;;
  57663. + *)
  57664. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  57665. + ;;
  57666. + esac
  57667. + ;;
  57668. + no)
  57669. + current="$1"
  57670. + revision="$2"
  57671. + age="$3"
  57672. + ;;
  57673. + esac
  57674. +
  57675. + # Check that each of the things are valid numbers.
  57676. + case $current in
  57677. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57678. + *)
  57679. + func_error "CURRENT \`$current' must be a nonnegative integer"
  57680. + func_fatal_error "\`$vinfo' is not valid version information"
  57681. + ;;
  57682. + esac
  57683. +
  57684. + case $revision in
  57685. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57686. + *)
  57687. + func_error "REVISION \`$revision' must be a nonnegative integer"
  57688. + func_fatal_error "\`$vinfo' is not valid version information"
  57689. + ;;
  57690. + esac
  57691. +
  57692. + case $age in
  57693. + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
  57694. + *)
  57695. + func_error "AGE \`$age' must be a nonnegative integer"
  57696. + func_fatal_error "\`$vinfo' is not valid version information"
  57697. + ;;
  57698. + esac
  57699. +
  57700. + if test "$age" -gt "$current"; then
  57701. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  57702. + func_fatal_error "\`$vinfo' is not valid version information"
  57703. + fi
  57704. +
  57705. + # Calculate the version variables.
  57706. + major=
  57707. + versuffix=
  57708. + verstring=
  57709. + case $version_type in
  57710. + none) ;;
  57711. +
  57712. + darwin)
  57713. + # Like Linux, but with the current version available in
  57714. + # verstring for coding it into the library header
  57715. + func_arith $current - $age
  57716. + major=.$func_arith_result
  57717. + versuffix="$major.$age.$revision"
  57718. + # Darwin ld doesn't like 0 for these options...
  57719. + func_arith $current + 1
  57720. + minor_current=$func_arith_result
  57721. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  57722. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  57723. + ;;
  57724. +
  57725. + freebsd-aout)
  57726. + major=".$current"
  57727. + versuffix=".$current.$revision";
  57728. + ;;
  57729. +
  57730. + freebsd-elf)
  57731. + major=".$current"
  57732. + versuffix=".$current"
  57733. + ;;
  57734. +
  57735. + irix | nonstopux)
  57736. + if test "X$lt_irix_increment" = "Xno"; then
  57737. + func_arith $current - $age
  57738. + else
  57739. + func_arith $current - $age + 1
  57740. + fi
  57741. + major=$func_arith_result
  57742. +
  57743. + case $version_type in
  57744. + nonstopux) verstring_prefix=nonstopux ;;
  57745. + *) verstring_prefix=sgi ;;
  57746. + esac
  57747. + verstring="$verstring_prefix$major.$revision"
  57748. +
  57749. + # Add in all the interfaces that we are compatible with.
  57750. + loop=$revision
  57751. + while test "$loop" -ne 0; do
  57752. + func_arith $revision - $loop
  57753. + iface=$func_arith_result
  57754. + func_arith $loop - 1
  57755. + loop=$func_arith_result
  57756. + verstring="$verstring_prefix$major.$iface:$verstring"
  57757. + done
  57758. +
  57759. + # Before this point, $major must not contain `.'.
  57760. + major=.$major
  57761. + versuffix="$major.$revision"
  57762. + ;;
  57763. +
  57764. + linux)
  57765. + func_arith $current - $age
  57766. + major=.$func_arith_result
  57767. + versuffix="$major.$age.$revision"
  57768. + ;;
  57769. +
  57770. + osf)
  57771. + func_arith $current - $age
  57772. + major=.$func_arith_result
  57773. + versuffix=".$current.$age.$revision"
  57774. + verstring="$current.$age.$revision"
  57775. +
  57776. + # Add in all the interfaces that we are compatible with.
  57777. + loop=$age
  57778. + while test "$loop" -ne 0; do
  57779. + func_arith $current - $loop
  57780. + iface=$func_arith_result
  57781. + func_arith $loop - 1
  57782. + loop=$func_arith_result
  57783. + verstring="$verstring:${iface}.0"
  57784. + done
  57785. +
  57786. + # Make executables depend on our current version.
  57787. + verstring="$verstring:${current}.0"
  57788. + ;;
  57789. +
  57790. + qnx)
  57791. + major=".$current"
  57792. + versuffix=".$current"
  57793. + ;;
  57794. +
  57795. + sunos)
  57796. + major=".$current"
  57797. + versuffix=".$current.$revision"
  57798. + ;;
  57799. +
  57800. + windows)
  57801. + # Use '-' rather than '.', since we only want one
  57802. + # extension on DOS 8.3 filesystems.
  57803. + func_arith $current - $age
  57804. + major=$func_arith_result
  57805. + versuffix="-$major"
  57806. + ;;
  57807. +
  57808. + *)
  57809. + func_fatal_configuration "unknown library version type \`$version_type'"
  57810. + ;;
  57811. + esac
  57812. +
  57813. + # Clear the version info if we defaulted, and they specified a release.
  57814. + if test -z "$vinfo" && test -n "$release"; then
  57815. + major=
  57816. + case $version_type in
  57817. + darwin)
  57818. + # we can't check for "0.0" in archive_cmds due to quoting
  57819. + # problems, so we reset it completely
  57820. + verstring=
  57821. + ;;
  57822. + *)
  57823. + verstring="0.0"
  57824. + ;;
  57825. + esac
  57826. + if test "$need_version" = no; then
  57827. + versuffix=
  57828. + else
  57829. + versuffix=".0.0"
  57830. + fi
  57831. + fi
  57832. +
  57833. + # Remove version info from name if versioning should be avoided
  57834. + if test "$avoid_version" = yes && test "$need_version" = no; then
  57835. + major=
  57836. + versuffix=
  57837. + verstring=""
  57838. + fi
  57839. +
  57840. + # Check to see if the archive will have undefined symbols.
  57841. + if test "$allow_undefined" = yes; then
  57842. + if test "$allow_undefined_flag" = unsupported; then
  57843. + func_warning "undefined symbols not allowed in $host shared libraries"
  57844. + build_libtool_libs=no
  57845. + build_old_libs=yes
  57846. + fi
  57847. + else
  57848. + # Don't allow undefined symbols.
  57849. + allow_undefined_flag="$no_undefined_flag"
  57850. + fi
  57851. +
  57852. + fi
  57853. +
  57854. + func_generate_dlsyms "$libname" "$libname" "yes"
  57855. + libobjs="$libobjs $symfileobj"
  57856. + test "X$libobjs" = "X " && libobjs=
  57857. +
  57858. + if test "$mode" != relink; then
  57859. + # Remove our outputs, but don't remove object files since they
  57860. + # may have been created when compiling PIC objects.
  57861. + removelist=
  57862. + tempremovelist=`$ECHO "$output_objdir/*"`
  57863. + for p in $tempremovelist; do
  57864. + case $p in
  57865. + *.$objext | *.gcno)
  57866. + ;;
  57867. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  57868. + if test "X$precious_files_regex" != "X"; then
  57869. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  57870. + then
  57871. + continue
  57872. + fi
  57873. + fi
  57874. + removelist="$removelist $p"
  57875. + ;;
  57876. + *) ;;
  57877. + esac
  57878. + done
  57879. + test -n "$removelist" && \
  57880. + func_show_eval "${RM}r \$removelist"
  57881. + fi
  57882. +
  57883. + # Now set the variables for building old libraries.
  57884. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  57885. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  57886. +
  57887. + # Transform .lo files to .o files.
  57888. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  57889. + fi
  57890. +
  57891. + # Eliminate all temporary directories.
  57892. + #for path in $notinst_path; do
  57893. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  57894. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  57895. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  57896. + #done
  57897. +
  57898. + if test -n "$xrpath"; then
  57899. + # If the user specified any rpath flags, then add them.
  57900. + temp_xrpath=
  57901. + for libdir in $xrpath; do
  57902. + temp_xrpath="$temp_xrpath -R$libdir"
  57903. + case "$finalize_rpath " in
  57904. + *" $libdir "*) ;;
  57905. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  57906. + esac
  57907. + done
  57908. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  57909. + dependency_libs="$temp_xrpath $dependency_libs"
  57910. + fi
  57911. + fi
  57912. +
  57913. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  57914. + old_dlfiles="$dlfiles"
  57915. + dlfiles=
  57916. + for lib in $old_dlfiles; do
  57917. + case " $dlprefiles $dlfiles " in
  57918. + *" $lib "*) ;;
  57919. + *) dlfiles="$dlfiles $lib" ;;
  57920. + esac
  57921. + done
  57922. +
  57923. + # Make sure dlprefiles contains only unique files
  57924. + old_dlprefiles="$dlprefiles"
  57925. + dlprefiles=
  57926. + for lib in $old_dlprefiles; do
  57927. + case "$dlprefiles " in
  57928. + *" $lib "*) ;;
  57929. + *) dlprefiles="$dlprefiles $lib" ;;
  57930. + esac
  57931. + done
  57932. +
  57933. + if test "$build_libtool_libs" = yes; then
  57934. + if test -n "$rpath"; then
  57935. + case $host in
  57936. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  57937. + # these systems don't actually have a c library (as such)!
  57938. + ;;
  57939. + *-*-rhapsody* | *-*-darwin1.[012])
  57940. + # Rhapsody C library is in the System framework
  57941. + deplibs="$deplibs System.ltframework"
  57942. + ;;
  57943. + *-*-netbsd*)
  57944. + # Don't link with libc until the a.out ld.so is fixed.
  57945. + ;;
  57946. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  57947. + # Do not include libc due to us having libc/libc_r.
  57948. + ;;
  57949. + *-*-sco3.2v5* | *-*-sco5v6*)
  57950. + # Causes problems with __ctype
  57951. + ;;
  57952. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  57953. + # Compiler inserts libc in the correct place for threads to work
  57954. + ;;
  57955. + *)
  57956. + # Add libc to deplibs on all other systems if necessary.
  57957. + if test "$build_libtool_need_lc" = "yes"; then
  57958. + deplibs="$deplibs -lc"
  57959. + fi
  57960. + ;;
  57961. + esac
  57962. + fi
  57963. +
  57964. + # Transform deplibs into only deplibs that can be linked in shared.
  57965. + name_save=$name
  57966. + libname_save=$libname
  57967. + release_save=$release
  57968. + versuffix_save=$versuffix
  57969. + major_save=$major
  57970. + # I'm not sure if I'm treating the release correctly. I think
  57971. + # release should show up in the -l (ie -lgmp5) so we don't want to
  57972. + # add it in twice. Is that correct?
  57973. + release=""
  57974. + versuffix=""
  57975. + major=""
  57976. + newdeplibs=
  57977. + droppeddeps=no
  57978. + case $deplibs_check_method in
  57979. + pass_all)
  57980. + # Don't check for shared/static. Everything works.
  57981. + # This might be a little naive. We might want to check
  57982. + # whether the library exists or not. But this is on
  57983. + # osf3 & osf4 and I'm not really sure... Just
  57984. + # implementing what was already the behavior.
  57985. + newdeplibs=$deplibs
  57986. + ;;
  57987. + test_compile)
  57988. + # This code stresses the "libraries are programs" paradigm to its
  57989. + # limits. Maybe even breaks it. We compile a program, linking it
  57990. + # against the deplibs as a proxy for the library. Then we can check
  57991. + # whether they linked in statically or dynamically with ldd.
  57992. + $opt_dry_run || $RM conftest.c
  57993. + cat > conftest.c <<EOF
  57994. + int main() { return 0; }
  57995. +EOF
  57996. + $opt_dry_run || $RM conftest
  57997. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  57998. + ldd_output=`ldd conftest`
  57999. + for i in $deplibs; do
  58000. + case $i in
  58001. + -l*)
  58002. + func_stripname -l '' "$i"
  58003. + name=$func_stripname_result
  58004. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58005. + case " $predeps $postdeps " in
  58006. + *" $i "*)
  58007. + newdeplibs="$newdeplibs $i"
  58008. + i=""
  58009. + ;;
  58010. + esac
  58011. + fi
  58012. + if test -n "$i" ; then
  58013. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58014. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58015. + set dummy $deplib_matches; shift
  58016. + deplib_match=$1
  58017. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58018. + newdeplibs="$newdeplibs $i"
  58019. + else
  58020. + droppeddeps=yes
  58021. + $ECHO
  58022. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58023. + $ECHO "*** I have the capability to make that library automatically link in when"
  58024. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58025. + $ECHO "*** shared version of the library, which I believe you do not have"
  58026. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  58027. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  58028. + fi
  58029. + fi
  58030. + ;;
  58031. + *)
  58032. + newdeplibs="$newdeplibs $i"
  58033. + ;;
  58034. + esac
  58035. + done
  58036. + else
  58037. + # Error occurred in the first compile. Let's try to salvage
  58038. + # the situation: Compile a separate program for each library.
  58039. + for i in $deplibs; do
  58040. + case $i in
  58041. + -l*)
  58042. + func_stripname -l '' "$i"
  58043. + name=$func_stripname_result
  58044. + $opt_dry_run || $RM conftest
  58045. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  58046. + ldd_output=`ldd conftest`
  58047. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58048. + case " $predeps $postdeps " in
  58049. + *" $i "*)
  58050. + newdeplibs="$newdeplibs $i"
  58051. + i=""
  58052. + ;;
  58053. + esac
  58054. + fi
  58055. + if test -n "$i" ; then
  58056. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58057. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58058. + set dummy $deplib_matches; shift
  58059. + deplib_match=$1
  58060. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58061. + newdeplibs="$newdeplibs $i"
  58062. + else
  58063. + droppeddeps=yes
  58064. + $ECHO
  58065. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58066. + $ECHO "*** I have the capability to make that library automatically link in when"
  58067. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58068. + $ECHO "*** shared version of the library, which you do not appear to have"
  58069. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  58070. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  58071. + fi
  58072. + fi
  58073. + else
  58074. + droppeddeps=yes
  58075. + $ECHO
  58076. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  58077. + $ECHO "*** make it link in! You will probably need to install it or some"
  58078. + $ECHO "*** library that it depends on before this library will be fully"
  58079. + $ECHO "*** functional. Installing it before continuing would be even better."
  58080. + fi
  58081. + ;;
  58082. + *)
  58083. + newdeplibs="$newdeplibs $i"
  58084. + ;;
  58085. + esac
  58086. + done
  58087. + fi
  58088. + ;;
  58089. + file_magic*)
  58090. + set dummy $deplibs_check_method; shift
  58091. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58092. + for a_deplib in $deplibs; do
  58093. + case $a_deplib in
  58094. + -l*)
  58095. + func_stripname -l '' "$a_deplib"
  58096. + name=$func_stripname_result
  58097. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58098. + case " $predeps $postdeps " in
  58099. + *" $a_deplib "*)
  58100. + newdeplibs="$newdeplibs $a_deplib"
  58101. + a_deplib=""
  58102. + ;;
  58103. + esac
  58104. + fi
  58105. + if test -n "$a_deplib" ; then
  58106. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58107. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58108. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58109. + for potent_lib in $potential_libs; do
  58110. + # Follow soft links.
  58111. + if ls -lLd "$potent_lib" 2>/dev/null |
  58112. + $GREP " -> " >/dev/null; then
  58113. + continue
  58114. + fi
  58115. + # The statement above tries to avoid entering an
  58116. + # endless loop below, in case of cyclic links.
  58117. + # We might still enter an endless loop, since a link
  58118. + # loop can be closed while we follow links,
  58119. + # but so what?
  58120. + potlib="$potent_lib"
  58121. + while test -h "$potlib" 2>/dev/null; do
  58122. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58123. + case $potliblink in
  58124. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58125. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58126. + esac
  58127. + done
  58128. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  58129. + $SED -e 10q |
  58130. + $EGREP "$file_magic_regex" > /dev/null; then
  58131. + newdeplibs="$newdeplibs $a_deplib"
  58132. + a_deplib=""
  58133. + break 2
  58134. + fi
  58135. + done
  58136. + done
  58137. + fi
  58138. + if test -n "$a_deplib" ; then
  58139. + droppeddeps=yes
  58140. + $ECHO
  58141. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58142. + $ECHO "*** I have the capability to make that library automatically link in when"
  58143. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58144. + $ECHO "*** shared version of the library, which you do not appear to have"
  58145. + $ECHO "*** because I did check the linker path looking for a file starting"
  58146. + if test -z "$potlib" ; then
  58147. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  58148. + else
  58149. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58150. + $ECHO "*** using a file magic. Last file checked: $potlib"
  58151. + fi
  58152. + fi
  58153. + ;;
  58154. + *)
  58155. + # Add a -L argument.
  58156. + newdeplibs="$newdeplibs $a_deplib"
  58157. + ;;
  58158. + esac
  58159. + done # Gone through all deplibs.
  58160. + ;;
  58161. + match_pattern*)
  58162. + set dummy $deplibs_check_method; shift
  58163. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58164. + for a_deplib in $deplibs; do
  58165. + case $a_deplib in
  58166. + -l*)
  58167. + func_stripname -l '' "$a_deplib"
  58168. + name=$func_stripname_result
  58169. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58170. + case " $predeps $postdeps " in
  58171. + *" $a_deplib "*)
  58172. + newdeplibs="$newdeplibs $a_deplib"
  58173. + a_deplib=""
  58174. + ;;
  58175. + esac
  58176. + fi
  58177. + if test -n "$a_deplib" ; then
  58178. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58179. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58180. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58181. + for potent_lib in $potential_libs; do
  58182. + potlib="$potent_lib" # see symlink-check above in file_magic test
  58183. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  58184. + $EGREP "$match_pattern_regex" > /dev/null; then
  58185. + newdeplibs="$newdeplibs $a_deplib"
  58186. + a_deplib=""
  58187. + break 2
  58188. + fi
  58189. + done
  58190. + done
  58191. + fi
  58192. + if test -n "$a_deplib" ; then
  58193. + droppeddeps=yes
  58194. + $ECHO
  58195. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58196. + $ECHO "*** I have the capability to make that library automatically link in when"
  58197. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58198. + $ECHO "*** shared version of the library, which you do not appear to have"
  58199. + $ECHO "*** because I did check the linker path looking for a file starting"
  58200. + if test -z "$potlib" ; then
  58201. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  58202. + else
  58203. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58204. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  58205. + fi
  58206. + fi
  58207. + ;;
  58208. + *)
  58209. + # Add a -L argument.
  58210. + newdeplibs="$newdeplibs $a_deplib"
  58211. + ;;
  58212. + esac
  58213. + done # Gone through all deplibs.
  58214. + ;;
  58215. + none | unknown | *)
  58216. + newdeplibs=""
  58217. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  58218. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  58219. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58220. + for i in $predeps $postdeps ; do
  58221. + # can't use Xsed below, because $i might contain '/'
  58222. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  58223. + done
  58224. + fi
  58225. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  58226. + $GREP . >/dev/null; then
  58227. + $ECHO
  58228. + if test "X$deplibs_check_method" = "Xnone"; then
  58229. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  58230. + else
  58231. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  58232. + fi
  58233. + $ECHO "*** All declared inter-library dependencies are being dropped."
  58234. + droppeddeps=yes
  58235. + fi
  58236. + ;;
  58237. + esac
  58238. + versuffix=$versuffix_save
  58239. + major=$major_save
  58240. + release=$release_save
  58241. + libname=$libname_save
  58242. + name=$name_save
  58243. +
  58244. + case $host in
  58245. + *-*-rhapsody* | *-*-darwin1.[012])
  58246. + # On Rhapsody replace the C library with the System framework
  58247. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58248. ;;
  58249. esac
  58250. - $rm $output
  58251. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  58252. - $echo > $output "\
  58253. -#! $SHELL
  58254. -
  58255. -# $output - temporary wrapper script for $objdir/$outputname
  58256. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  58257. -#
  58258. -# The $output program cannot be directly executed until all the libtool
  58259. -# libraries that it depends on are installed.
  58260. -#
  58261. -# This wrapper script should never be moved out of the build directory.
  58262. -# If it is, it will not operate correctly.
  58263. -
  58264. -# Sed substitution that helps us do robust quoting. It backslashifies
  58265. -# metacharacters that are still active within double-quoted strings.
  58266. -Xsed='${SED} -e 1s/^X//'
  58267. -sed_quote_subst='$sed_quote_subst'
  58268. -
  58269. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  58270. -# if CDPATH is set.
  58271. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  58272. -
  58273. -relink_command=\"$relink_command\"
  58274. -
  58275. -# This environment variable determines our operation mode.
  58276. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  58277. - # install mode needs the following variable:
  58278. - notinst_deplibs='$notinst_deplibs'
  58279. -else
  58280. - # When we are sourced in execute mode, \$file and \$echo are already set.
  58281. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58282. - echo=\"$qecho\"
  58283. - file=\"\$0\"
  58284. - # Make sure echo works.
  58285. - if test \"X\$1\" = X--no-reexec; then
  58286. - # Discard the --no-reexec flag, and continue.
  58287. - shift
  58288. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  58289. - # Yippee, \$echo works!
  58290. - :
  58291. - else
  58292. - # Restart under the correct shell, and then maybe \$echo will work.
  58293. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  58294. - fi
  58295. - fi\
  58296. -"
  58297. - $echo >> $output "\
  58298. -
  58299. - # Find the directory that this script lives in.
  58300. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  58301. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  58302. -
  58303. - # Follow symbolic links until we get to the real thisdir.
  58304. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  58305. - while test -n \"\$file\"; do
  58306. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  58307. + if test "$droppeddeps" = yes; then
  58308. + if test "$module" = yes; then
  58309. + $ECHO
  58310. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  58311. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  58312. + $ECHO "*** a static module, that should work as long as the dlopening"
  58313. + $ECHO "*** application is linked with the -dlopen flag."
  58314. + if test -z "$global_symbol_pipe"; then
  58315. + $ECHO
  58316. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58317. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58318. + $ECHO "*** not find such a program. So, this module is probably useless."
  58319. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58320. + fi
  58321. + if test "$build_old_libs" = no; then
  58322. + oldlibs="$output_objdir/$libname.$libext"
  58323. + build_libtool_libs=module
  58324. + build_old_libs=yes
  58325. + else
  58326. + build_libtool_libs=no
  58327. + fi
  58328. + else
  58329. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  58330. + $ECHO "*** automatically added whenever a program is linked with this library"
  58331. + $ECHO "*** or is declared to -dlopen it."
  58332. - # If there was a directory component, then change thisdir.
  58333. - if test \"x\$destdir\" != \"x\$file\"; then
  58334. - case \"\$destdir\" in
  58335. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  58336. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  58337. + if test "$allow_undefined" = no; then
  58338. + $ECHO
  58339. + $ECHO "*** Since this library must not contain undefined symbols,"
  58340. + $ECHO "*** because either the platform does not support them or"
  58341. + $ECHO "*** it was explicitly requested with -no-undefined,"
  58342. + $ECHO "*** libtool will only create a static version of it."
  58343. + if test "$build_old_libs" = no; then
  58344. + oldlibs="$output_objdir/$libname.$libext"
  58345. + build_libtool_libs=module
  58346. + build_old_libs=yes
  58347. + else
  58348. + build_libtool_libs=no
  58349. + fi
  58350. + fi
  58351. + fi
  58352. + fi
  58353. + # Done checking deplibs!
  58354. + deplibs=$newdeplibs
  58355. + fi
  58356. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58357. + case $host in
  58358. + *-*-darwin*)
  58359. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58360. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58361. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58362. + ;;
  58363. esac
  58364. - fi
  58365. -
  58366. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  58367. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  58368. - done
  58369. - # Try to get the absolute directory name.
  58370. - absdir=\`cd \"\$thisdir\" && pwd\`
  58371. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  58372. -"
  58373. -
  58374. - if test "$fast_install" = yes; then
  58375. - $echo >> $output "\
  58376. - program=lt-'$outputname'$exeext
  58377. - progdir=\"\$thisdir/$objdir\"
  58378. -
  58379. - if test ! -f \"\$progdir/\$program\" || \\
  58380. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58381. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58382. + # move library search paths that coincide with paths to not yet
  58383. + # installed libraries to the beginning of the library search list
  58384. + new_libs=
  58385. + for path in $notinst_path; do
  58386. + case " $new_libs " in
  58387. + *" -L$path/$objdir "*) ;;
  58388. + *)
  58389. + case " $deplibs " in
  58390. + *" -L$path/$objdir "*)
  58391. + new_libs="$new_libs -L$path/$objdir" ;;
  58392. + esac
  58393. + ;;
  58394. + esac
  58395. + done
  58396. + for deplib in $deplibs; do
  58397. + case $deplib in
  58398. + -L*)
  58399. + case " $new_libs " in
  58400. + *" $deplib "*) ;;
  58401. + *) new_libs="$new_libs $deplib" ;;
  58402. + esac
  58403. + ;;
  58404. + *) new_libs="$new_libs $deplib" ;;
  58405. + esac
  58406. + done
  58407. + deplibs="$new_libs"
  58408. - file=\"\$\$-\$program\"
  58409. + # All the library-specific variables (install_libdir is set above).
  58410. + library_names=
  58411. + old_library=
  58412. + dlname=
  58413. - if test ! -d \"\$progdir\"; then
  58414. - $mkdir \"\$progdir\"
  58415. - else
  58416. - $rm \"\$progdir/\$file\"
  58417. - fi"
  58418. + # Test again, we may have decided not to build it any more
  58419. + if test "$build_libtool_libs" = yes; then
  58420. + if test "$hardcode_into_libs" = yes; then
  58421. + # Hardcode the library paths
  58422. + hardcode_libdirs=
  58423. + dep_rpath=
  58424. + rpath="$finalize_rpath"
  58425. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  58426. + for libdir in $rpath; do
  58427. + if test -n "$hardcode_libdir_flag_spec"; then
  58428. + if test -n "$hardcode_libdir_separator"; then
  58429. + if test -z "$hardcode_libdirs"; then
  58430. + hardcode_libdirs="$libdir"
  58431. + else
  58432. + # Just accumulate the unique libdirs.
  58433. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58434. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58435. + ;;
  58436. + *)
  58437. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58438. + ;;
  58439. + esac
  58440. + fi
  58441. + else
  58442. + eval flag=\"$hardcode_libdir_flag_spec\"
  58443. + dep_rpath="$dep_rpath $flag"
  58444. + fi
  58445. + elif test -n "$runpath_var"; then
  58446. + case "$perm_rpath " in
  58447. + *" $libdir "*) ;;
  58448. + *) perm_rpath="$perm_rpath $libdir" ;;
  58449. + esac
  58450. + fi
  58451. + done
  58452. + # Substitute the hardcoded libdirs into the rpath.
  58453. + if test -n "$hardcode_libdir_separator" &&
  58454. + test -n "$hardcode_libdirs"; then
  58455. + libdir="$hardcode_libdirs"
  58456. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  58457. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  58458. + else
  58459. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  58460. + fi
  58461. + fi
  58462. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  58463. + # We should set the runpath_var.
  58464. + rpath=
  58465. + for dir in $perm_rpath; do
  58466. + rpath="$rpath$dir:"
  58467. + done
  58468. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  58469. + fi
  58470. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  58471. + fi
  58472. - $echo >> $output "\
  58473. + shlibpath="$finalize_shlibpath"
  58474. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  58475. + if test -n "$shlibpath"; then
  58476. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  58477. + fi
  58478. - # relink executable if necessary
  58479. - if test -n \"\$relink_command\"; then
  58480. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58481. - else
  58482. - $echo \"\$relink_command_output\" >&2
  58483. - $rm \"\$progdir/\$file\"
  58484. - exit $EXIT_FAILURE
  58485. - fi
  58486. - fi
  58487. + # Get the real and link names of the library.
  58488. + eval shared_ext=\"$shrext_cmds\"
  58489. + eval library_names=\"$library_names_spec\"
  58490. + set dummy $library_names
  58491. + shift
  58492. + realname="$1"
  58493. + shift
  58494. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58495. - { $rm \"\$progdir/\$program\";
  58496. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58497. - $rm \"\$progdir/\$file\"
  58498. - fi"
  58499. + if test -n "$soname_spec"; then
  58500. + eval soname=\"$soname_spec\"
  58501. else
  58502. - $echo >> $output "\
  58503. - program='$outputname'
  58504. - progdir=\"\$thisdir/$objdir\"
  58505. -"
  58506. + soname="$realname"
  58507. fi
  58508. -
  58509. - $echo >> $output "\
  58510. -
  58511. - if test -f \"\$progdir/\$program\"; then"
  58512. -
  58513. - # Export our shlibpath_var if we have one.
  58514. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58515. - $echo >> $output "\
  58516. - # Add our own library path to $shlibpath_var
  58517. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58518. -
  58519. - # Some systems cannot cope with colon-terminated $shlibpath_var
  58520. - # The second colon is a workaround for a bug in BeOS R4 sed
  58521. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58522. -
  58523. - export $shlibpath_var
  58524. -"
  58525. + if test -z "$dlname"; then
  58526. + dlname=$soname
  58527. fi
  58528. - # fixup the dll searchpath if we need to.
  58529. - if test -n "$dllsearchpath"; then
  58530. - $echo >> $output "\
  58531. - # Add the dll search path components to the executable PATH
  58532. - PATH=$dllsearchpath:\$PATH
  58533. -"
  58534. - fi
  58535. + lib="$output_objdir/$realname"
  58536. + linknames=
  58537. + for link
  58538. + do
  58539. + linknames="$linknames $link"
  58540. + done
  58541. - $echo >> $output "\
  58542. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58543. - # Run the actual program with our arguments.
  58544. -"
  58545. - case $host in
  58546. - # Backslashes separate directories on plain windows
  58547. - *-*-mingw | *-*-os2*)
  58548. - $echo >> $output "\
  58549. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  58550. -"
  58551. - ;;
  58552. + # Use standard objects if they are pic
  58553. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58554. + test "X$libobjs" = "X " && libobjs=
  58555. - *)
  58556. - $echo >> $output "\
  58557. - exec \$progdir/\$program \${1+\"\$@\"}
  58558. -"
  58559. + delfiles=
  58560. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58561. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  58562. + export_symbols="$output_objdir/$libname.uexp"
  58563. + delfiles="$delfiles $export_symbols"
  58564. + fi
  58565. +
  58566. + orig_export_symbols=
  58567. + case $host_os in
  58568. + cygwin* | mingw* | cegcc*)
  58569. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  58570. + # exporting using user supplied symfile
  58571. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  58572. + # and it's NOT already a .def file. Must figure out
  58573. + # which of the given symbols are data symbols and tag
  58574. + # them as such. So, trigger use of export_symbols_cmds.
  58575. + # export_symbols gets reassigned inside the "prepare
  58576. + # the list of exported symbols" if statement, so the
  58577. + # include_expsyms logic still works.
  58578. + orig_export_symbols="$export_symbols"
  58579. + export_symbols=
  58580. + always_export_symbols=yes
  58581. + fi
  58582. + fi
  58583. ;;
  58584. esac
  58585. - $echo >> $output "\
  58586. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  58587. - exit $EXIT_FAILURE
  58588. - fi
  58589. - else
  58590. - # The program doesn't exist.
  58591. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  58592. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  58593. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  58594. - exit $EXIT_FAILURE
  58595. - fi
  58596. -fi\
  58597. -"
  58598. - chmod +x $output
  58599. - fi
  58600. - exit $EXIT_SUCCESS
  58601. - ;;
  58602. - esac
  58603. -
  58604. - # See if we need to build an old-fashioned archive.
  58605. - for oldlib in $oldlibs; do
  58606. - if test "$build_libtool_libs" = convenience; then
  58607. - oldobjs="$libobjs_save"
  58608. - addlibs="$convenience"
  58609. - build_libtool_libs=no
  58610. - else
  58611. - if test "$build_libtool_libs" = module; then
  58612. - oldobjs="$libobjs_save"
  58613. - build_libtool_libs=no
  58614. - else
  58615. - oldobjs="$old_deplibs $non_pic_objects"
  58616. + # Prepare the list of exported symbols
  58617. + if test -z "$export_symbols"; then
  58618. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  58619. + func_verbose "generating symbol list for \`$libname.la'"
  58620. + export_symbols="$output_objdir/$libname.exp"
  58621. + $opt_dry_run || $RM $export_symbols
  58622. + cmds=$export_symbols_cmds
  58623. + save_ifs="$IFS"; IFS='~'
  58624. + for cmd in $cmds; do
  58625. + IFS="$save_ifs"
  58626. + eval cmd=\"$cmd\"
  58627. + func_len " $cmd"
  58628. + len=$func_len_result
  58629. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58630. + func_show_eval "$cmd" 'exit $?'
  58631. + skipped_export=false
  58632. + else
  58633. + # The command line is too long to execute in one step.
  58634. + func_verbose "using reloadable object file for export list..."
  58635. + skipped_export=:
  58636. + # Break out early, otherwise skipped_export may be
  58637. + # set to false by a later but shorter cmd.
  58638. + break
  58639. + fi
  58640. + done
  58641. + IFS="$save_ifs"
  58642. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  58643. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  58644. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  58645. + fi
  58646. + fi
  58647. fi
  58648. - addlibs="$old_convenience"
  58649. - fi
  58650. - if test -n "$addlibs"; then
  58651. - gentop="$output_objdir/${outputname}x"
  58652. - $show "${rm}r $gentop"
  58653. - $run ${rm}r "$gentop"
  58654. - $show "$mkdir $gentop"
  58655. - $run $mkdir "$gentop"
  58656. - status=$?
  58657. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  58658. - exit $status
  58659. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58660. + tmp_export_symbols="$export_symbols"
  58661. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  58662. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  58663. + fi
  58664. +
  58665. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  58666. + # The given exports_symbols file has to be filtered, so filter it.
  58667. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  58668. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  58669. + # 's' commands which not all seds can handle. GNU sed should be fine
  58670. + # though. Also, the filter scales superlinearly with the number of
  58671. + # global variables. join(1) would be nice here, but unfortunately
  58672. + # isn't a blessed tool.
  58673. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  58674. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  58675. + export_symbols=$output_objdir/$libname.def
  58676. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  58677. fi
  58678. - generated="$generated $gentop"
  58679. - # Add in members from convenience archives.
  58680. - for xlib in $addlibs; do
  58681. - # Extract the objects.
  58682. - case $xlib in
  58683. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  58684. - *) xabs=`pwd`"/$xlib" ;;
  58685. + tmp_deplibs=
  58686. + for test_deplib in $deplibs; do
  58687. + case " $convenience " in
  58688. + *" $test_deplib "*) ;;
  58689. + *)
  58690. + tmp_deplibs="$tmp_deplibs $test_deplib"
  58691. + ;;
  58692. esac
  58693. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  58694. - xdir="$gentop/$xlib"
  58695. + done
  58696. + deplibs="$tmp_deplibs"
  58697. - $show "${rm}r $xdir"
  58698. - $run ${rm}r "$xdir"
  58699. - $show "$mkdir $xdir"
  58700. - $run $mkdir "$xdir"
  58701. - status=$?
  58702. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  58703. - exit $status
  58704. - fi
  58705. - # We will extract separately just the conflicting names and we will no
  58706. - # longer touch any unique names. It is faster to leave these extract
  58707. - # automatically by $AR in one run.
  58708. - $show "(cd $xdir && $AR x $xabs)"
  58709. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  58710. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  58711. - :
  58712. + if test -n "$convenience"; then
  58713. + if test -n "$whole_archive_flag_spec" &&
  58714. + test "$compiler_needs_object" = yes &&
  58715. + test -z "$libobjs"; then
  58716. + # extract the archives, so we have objects to list.
  58717. + # TODO: could optimize this to just extract one archive.
  58718. + whole_archive_flag_spec=
  58719. + fi
  58720. + if test -n "$whole_archive_flag_spec"; then
  58721. + save_libobjs=$libobjs
  58722. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  58723. + test "X$libobjs" = "X " && libobjs=
  58724. else
  58725. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  58726. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  58727. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  58728. - do
  58729. - i=1
  58730. - while test "$i" -le "$count"
  58731. - do
  58732. - # Put our $i before any first dot (extension)
  58733. - # Never overwrite any file
  58734. - name_to="$name"
  58735. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  58736. - do
  58737. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  58738. - done
  58739. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  58740. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  58741. - i=`expr $i + 1`
  58742. - done
  58743. - done
  58744. + gentop="$output_objdir/${outputname}x"
  58745. + generated="$generated $gentop"
  58746. +
  58747. + func_extract_archives $gentop $convenience
  58748. + libobjs="$libobjs $func_extract_archives_result"
  58749. + test "X$libobjs" = "X " && libobjs=
  58750. fi
  58751. + fi
  58752. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  58753. - done
  58754. - fi
  58755. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  58756. + eval flag=\"$thread_safe_flag_spec\"
  58757. + linker_flags="$linker_flags $flag"
  58758. + fi
  58759. - # Do each command in the archive commands.
  58760. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  58761. - cmds=$old_archive_from_new_cmds
  58762. - else
  58763. - eval cmds=\"$old_archive_cmds\"
  58764. + # Make a backup of the uninstalled library when relinking
  58765. + if test "$mode" = relink; then
  58766. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  58767. + fi
  58768. - if len=`expr "X$cmds" : ".*"` &&
  58769. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58770. - cmds=$old_archive_cmds
  58771. - else
  58772. - # the command line is too long to link in one step, link in parts
  58773. - $echo "using piecewise archive linking..."
  58774. - save_RANLIB=$RANLIB
  58775. - RANLIB=:
  58776. - objlist=
  58777. - concat_cmds=
  58778. - save_oldobjs=$oldobjs
  58779. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  58780. - # encoded into archives. This makes 'ar r' malfunction in
  58781. - # this piecewise linking case whenever conflicting object
  58782. - # names appear in distinct ar calls; check, warn and compensate.
  58783. - if (for obj in $save_oldobjs
  58784. - do
  58785. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  58786. - done | sort | sort -uc >/dev/null 2>&1); then
  58787. - :
  58788. + # Do each of the archive commands.
  58789. + if test "$module" = yes && test -n "$module_cmds" ; then
  58790. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  58791. + eval test_cmds=\"$module_expsym_cmds\"
  58792. + cmds=$module_expsym_cmds
  58793. else
  58794. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  58795. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  58796. - AR_FLAGS=cq
  58797. + eval test_cmds=\"$module_cmds\"
  58798. + cmds=$module_cmds
  58799. fi
  58800. - # Is there a better way of finding the last object in the list?
  58801. - for obj in $save_oldobjs
  58802. - do
  58803. - last_oldobj=$obj
  58804. - done
  58805. - for obj in $save_oldobjs
  58806. - do
  58807. - oldobjs="$objlist $obj"
  58808. - objlist="$objlist $obj"
  58809. - eval test_cmds=\"$old_archive_cmds\"
  58810. - if len=`expr "X$test_cmds" : ".*"` &&
  58811. - test "$len" -le "$max_cmd_len"; then
  58812. - :
  58813. - else
  58814. - # the above command should be used before it gets too long
  58815. - oldobjs=$objlist
  58816. - if test "$obj" = "$last_oldobj" ; then
  58817. - RANLIB=$save_RANLIB
  58818. - fi
  58819. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  58820. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  58821. - objlist=
  58822. - fi
  58823. - done
  58824. - RANLIB=$save_RANLIB
  58825. - oldobjs=$objlist
  58826. - if test "X$oldobjs" = "X" ; then
  58827. - eval cmds=\"\$concat_cmds\"
  58828. + else
  58829. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  58830. + eval test_cmds=\"$archive_expsym_cmds\"
  58831. + cmds=$archive_expsym_cmds
  58832. else
  58833. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  58834. + eval test_cmds=\"$archive_cmds\"
  58835. + cmds=$archive_cmds
  58836. fi
  58837. fi
  58838. - fi
  58839. - save_ifs="$IFS"; IFS='~'
  58840. - for cmd in $cmds; do
  58841. - eval cmd=\"$cmd\"
  58842. - IFS="$save_ifs"
  58843. - $show "$cmd"
  58844. - $run eval "$cmd" || exit $?
  58845. - done
  58846. - IFS="$save_ifs"
  58847. - done
  58848. -
  58849. - if test -n "$generated"; then
  58850. - $show "${rm}r$generated"
  58851. - $run ${rm}r$generated
  58852. - fi
  58853. -
  58854. - # Now create the libtool archive.
  58855. - case $output in
  58856. - *.la)
  58857. - old_library=
  58858. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  58859. - $show "creating $output"
  58860. - # Preserve any variables that may affect compiler behavior
  58861. - for var in $variables_saved_for_relink; do
  58862. - if eval test -z \"\${$var+set}\"; then
  58863. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  58864. - elif eval var_value=\$$var; test -z "$var_value"; then
  58865. - relink_command="$var=; export $var; $relink_command"
  58866. + if test "X$skipped_export" != "X:" &&
  58867. + func_len " $test_cmds" &&
  58868. + len=$func_len_result &&
  58869. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  58870. + :
  58871. else
  58872. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  58873. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  58874. - fi
  58875. - done
  58876. - # Quote the link command for shipping.
  58877. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  58878. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  58879. - if test "$hardcode_automatic" = yes ; then
  58880. - relink_command=
  58881. - fi
  58882. + # The command line is too long to link in one step, link piecewise
  58883. + # or, if using GNU ld and skipped_export is not :, use a linker
  58884. + # script.
  58885. +
  58886. + # Save the value of $output and $libobjs because we want to
  58887. + # use them later. If we have whole_archive_flag_spec, we
  58888. + # want to use save_libobjs as it was before
  58889. + # whole_archive_flag_spec was expanded, because we can't
  58890. + # assume the linker understands whole_archive_flag_spec.
  58891. + # This may have to be revisited, in case too many
  58892. + # convenience libraries get linked in and end up exceeding
  58893. + # the spec.
  58894. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  58895. + save_libobjs=$libobjs
  58896. + fi
  58897. + save_output=$output
  58898. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  58899. + # Clear the reloadable object creation command queue and
  58900. + # initialize k to one.
  58901. + test_cmds=
  58902. + concat_cmds=
  58903. + objlist=
  58904. + last_robj=
  58905. + k=1
  58906. - # Only create the output if not a dry run.
  58907. - if test -z "$run"; then
  58908. - for installed in no yes; do
  58909. - if test "$installed" = yes; then
  58910. - if test -z "$install_libdir"; then
  58911. - break
  58912. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  58913. + output=${output_objdir}/${output_la}.lnkscript
  58914. + func_verbose "creating GNU ld script: $output"
  58915. + $ECHO 'INPUT (' > $output
  58916. + for obj in $save_libobjs
  58917. + do
  58918. + $ECHO "$obj" >> $output
  58919. + done
  58920. + $ECHO ')' >> $output
  58921. + delfiles="$delfiles $output"
  58922. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  58923. + output=${output_objdir}/${output_la}.lnk
  58924. + func_verbose "creating linker input file list: $output"
  58925. + : > $output
  58926. + set x $save_libobjs
  58927. + shift
  58928. + firstobj=
  58929. + if test "$compiler_needs_object" = yes; then
  58930. + firstobj="$1 "
  58931. + shift
  58932. fi
  58933. - output="$output_objdir/$outputname"i
  58934. - # Replace all uninstalled libtool libraries with the installed ones
  58935. - newdependency_libs=
  58936. - for deplib in $dependency_libs; do
  58937. - case $deplib in
  58938. - *.la)
  58939. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  58940. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  58941. - if test -z "$libdir"; then
  58942. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  58943. - exit $EXIT_FAILURE
  58944. - fi
  58945. - newdependency_libs="$newdependency_libs $libdir/$name"
  58946. - ;;
  58947. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  58948. - esac
  58949. + for obj
  58950. + do
  58951. + $ECHO "$obj" >> $output
  58952. done
  58953. - dependency_libs="$newdependency_libs"
  58954. - newdlfiles=
  58955. - for lib in $dlfiles; do
  58956. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  58957. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  58958. - if test -z "$libdir"; then
  58959. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  58960. - exit $EXIT_FAILURE
  58961. + delfiles="$delfiles $output"
  58962. + output=$firstobj\"$file_list_spec$output\"
  58963. + else
  58964. + if test -n "$save_libobjs"; then
  58965. + func_verbose "creating reloadable object files..."
  58966. + output=$output_objdir/$output_la-${k}.$objext
  58967. + eval test_cmds=\"$reload_cmds\"
  58968. + func_len " $test_cmds"
  58969. + len0=$func_len_result
  58970. + len=$len0
  58971. +
  58972. + # Loop over the list of objects to be linked.
  58973. + for obj in $save_libobjs
  58974. + do
  58975. + func_len " $obj"
  58976. + func_arith $len + $func_len_result
  58977. + len=$func_arith_result
  58978. + if test "X$objlist" = X ||
  58979. + test "$len" -lt "$max_cmd_len"; then
  58980. + func_append objlist " $obj"
  58981. + else
  58982. + # The command $test_cmds is almost too long, add a
  58983. + # command to the queue.
  58984. + if test "$k" -eq 1 ; then
  58985. + # The first file doesn't have a previous command to add.
  58986. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  58987. + else
  58988. + # All subsequent reloadable object files will link in
  58989. + # the last one created.
  58990. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  58991. + fi
  58992. + last_robj=$output_objdir/$output_la-${k}.$objext
  58993. + func_arith $k + 1
  58994. + k=$func_arith_result
  58995. + output=$output_objdir/$output_la-${k}.$objext
  58996. + objlist=$obj
  58997. + func_len " $last_robj"
  58998. + func_arith $len0 + $func_len_result
  58999. + len=$func_arith_result
  59000. + fi
  59001. + done
  59002. + # Handle the remaining objects by creating one last
  59003. + # reloadable object file. All subsequent reloadable object
  59004. + # files will link in the last one created.
  59005. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59006. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  59007. + if test -n "$last_robj"; then
  59008. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  59009. fi
  59010. - newdlfiles="$newdlfiles $libdir/$name"
  59011. - done
  59012. - dlfiles="$newdlfiles"
  59013. - newdlprefiles=
  59014. - for lib in $dlprefiles; do
  59015. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59016. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59017. - if test -z "$libdir"; then
  59018. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59019. - exit $EXIT_FAILURE
  59020. + delfiles="$delfiles $output"
  59021. +
  59022. + else
  59023. + output=
  59024. + fi
  59025. +
  59026. + if ${skipped_export-false}; then
  59027. + func_verbose "generating symbol list for \`$libname.la'"
  59028. + export_symbols="$output_objdir/$libname.exp"
  59029. + $opt_dry_run || $RM $export_symbols
  59030. + libobjs=$output
  59031. + # Append the command to create the export file.
  59032. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59033. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  59034. + if test -n "$last_robj"; then
  59035. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  59036. fi
  59037. - newdlprefiles="$newdlprefiles $libdir/$name"
  59038. + fi
  59039. +
  59040. + test -n "$save_libobjs" &&
  59041. + func_verbose "creating a temporary reloadable object file: $output"
  59042. +
  59043. + # Loop through the commands generated above and execute them.
  59044. + save_ifs="$IFS"; IFS='~'
  59045. + for cmd in $concat_cmds; do
  59046. + IFS="$save_ifs"
  59047. + $opt_silent || {
  59048. + func_quote_for_expand "$cmd"
  59049. + eval "func_echo $func_quote_for_expand_result"
  59050. + }
  59051. + $opt_dry_run || eval "$cmd" || {
  59052. + lt_exit=$?
  59053. +
  59054. + # Restore the uninstalled library and exit
  59055. + if test "$mode" = relink; then
  59056. + ( cd "$output_objdir" && \
  59057. + $RM "${realname}T" && \
  59058. + $MV "${realname}U" "$realname" )
  59059. + fi
  59060. +
  59061. + exit $lt_exit
  59062. + }
  59063. done
  59064. - dlprefiles="$newdlprefiles"
  59065. + IFS="$save_ifs"
  59066. +
  59067. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  59068. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59069. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  59070. + fi
  59071. + fi
  59072. +
  59073. + if ${skipped_export-false}; then
  59074. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59075. + tmp_export_symbols="$export_symbols"
  59076. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59077. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59078. + fi
  59079. +
  59080. + if test -n "$orig_export_symbols"; then
  59081. + # The given exports_symbols file has to be filtered, so filter it.
  59082. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59083. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59084. + # 's' commands which not all seds can handle. GNU sed should be fine
  59085. + # though. Also, the filter scales superlinearly with the number of
  59086. + # global variables. join(1) would be nice here, but unfortunately
  59087. + # isn't a blessed tool.
  59088. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59089. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59090. + export_symbols=$output_objdir/$libname.def
  59091. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59092. + fi
  59093. + fi
  59094. +
  59095. + libobjs=$output
  59096. + # Restore the value of output.
  59097. + output=$save_output
  59098. +
  59099. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  59100. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59101. + test "X$libobjs" = "X " && libobjs=
  59102. + fi
  59103. + # Expand the library linking commands again to reset the
  59104. + # value of $libobjs for piecewise linking.
  59105. +
  59106. + # Do each of the archive commands.
  59107. + if test "$module" = yes && test -n "$module_cmds" ; then
  59108. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59109. + cmds=$module_expsym_cmds
  59110. + else
  59111. + cmds=$module_cmds
  59112. + fi
  59113. else
  59114. - newdlfiles=
  59115. - for lib in $dlfiles; do
  59116. - case $lib in
  59117. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59118. - *) abs=`pwd`"/$lib" ;;
  59119. - esac
  59120. - newdlfiles="$newdlfiles $abs"
  59121. - done
  59122. - dlfiles="$newdlfiles"
  59123. - newdlprefiles=
  59124. - for lib in $dlprefiles; do
  59125. - case $lib in
  59126. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59127. - *) abs=`pwd`"/$lib" ;;
  59128. - esac
  59129. - newdlprefiles="$newdlprefiles $abs"
  59130. - done
  59131. - dlprefiles="$newdlprefiles"
  59132. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59133. + cmds=$archive_expsym_cmds
  59134. + else
  59135. + cmds=$archive_cmds
  59136. + fi
  59137. fi
  59138. - $rm $output
  59139. - # place dlname in correct position for cygwin
  59140. - tdlname=$dlname
  59141. - case $host,$output,$installed,$module,$dlname in
  59142. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59143. - esac
  59144. - $echo > $output "\
  59145. -# $outputname - a libtool library file
  59146. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59147. -#
  59148. -# Please DO NOT delete this file!
  59149. -# It is necessary for linking the library.
  59150. + fi
  59151. -# The name that we can dlopen(3).
  59152. -dlname='$tdlname'
  59153. + if test -n "$delfiles"; then
  59154. + # Append the command to remove temporary files to $cmds.
  59155. + eval cmds=\"\$cmds~\$RM $delfiles\"
  59156. + fi
  59157. -# Names of this library.
  59158. -library_names='$library_names'
  59159. + # Add any objects from preloaded convenience libraries
  59160. + if test -n "$dlprefiles"; then
  59161. + gentop="$output_objdir/${outputname}x"
  59162. + generated="$generated $gentop"
  59163. -# The name of the static archive.
  59164. -old_library='$old_library'
  59165. + func_extract_archives $gentop $dlprefiles
  59166. + libobjs="$libobjs $func_extract_archives_result"
  59167. + test "X$libobjs" = "X " && libobjs=
  59168. + fi
  59169. -# Libraries that this one depends upon.
  59170. -dependency_libs='$dependency_libs'
  59171. + save_ifs="$IFS"; IFS='~'
  59172. + for cmd in $cmds; do
  59173. + IFS="$save_ifs"
  59174. + eval cmd=\"$cmd\"
  59175. + $opt_silent || {
  59176. + func_quote_for_expand "$cmd"
  59177. + eval "func_echo $func_quote_for_expand_result"
  59178. + }
  59179. + $opt_dry_run || eval "$cmd" || {
  59180. + lt_exit=$?
  59181. +
  59182. + # Restore the uninstalled library and exit
  59183. + if test "$mode" = relink; then
  59184. + ( cd "$output_objdir" && \
  59185. + $RM "${realname}T" && \
  59186. + $MV "${realname}U" "$realname" )
  59187. + fi
  59188. -# Version information for $libname.
  59189. -current=$current
  59190. -age=$age
  59191. -revision=$revision
  59192. + exit $lt_exit
  59193. + }
  59194. + done
  59195. + IFS="$save_ifs"
  59196. -# Is this an already installed library?
  59197. -installed=$installed
  59198. + # Restore the uninstalled library and exit
  59199. + if test "$mode" = relink; then
  59200. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  59201. -# Should we warn about portability when linking against -modules?
  59202. -shouldnotlink=$module
  59203. + if test -n "$convenience"; then
  59204. + if test -z "$whole_archive_flag_spec"; then
  59205. + func_show_eval '${RM}r "$gentop"'
  59206. + fi
  59207. + fi
  59208. -# Files to dlopen/dlpreopen
  59209. -dlopen='$dlfiles'
  59210. -dlpreopen='$dlprefiles'
  59211. + exit $EXIT_SUCCESS
  59212. + fi
  59213. -# Directory that this library needs to be installed in:
  59214. -libdir='$install_libdir'"
  59215. - if test "$installed" = no && test "$need_relink" = yes; then
  59216. - $echo >> $output "\
  59217. -relink_command=\"$relink_command\""
  59218. + # Create links to the real library.
  59219. + for linkname in $linknames; do
  59220. + if test "$realname" != "$linkname"; then
  59221. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  59222. fi
  59223. done
  59224. - fi
  59225. - # Do a symbolic link so that the libtool archive can be found in
  59226. - # LD_LIBRARY_PATH before the program is installed.
  59227. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  59228. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  59229. + # If -module or -export-dynamic was specified, set the dlname.
  59230. + if test "$module" = yes || test "$export_dynamic" = yes; then
  59231. + # On all known operating systems, these are identical.
  59232. + dlname="$soname"
  59233. + fi
  59234. + fi
  59235. ;;
  59236. - esac
  59237. - exit $EXIT_SUCCESS
  59238. - ;;
  59239. - # libtool install mode
  59240. - install)
  59241. - modename="$modename: install"
  59242. + obj)
  59243. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  59244. + func_warning "\`-dlopen' is ignored for objects"
  59245. + fi
  59246. - # There may be an optional sh(1) argument at the beginning of
  59247. - # install_prog (especially on Windows NT).
  59248. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  59249. - # Allow the use of GNU shtool's install command.
  59250. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  59251. - # Aesthetically quote it.
  59252. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  59253. - case $arg in
  59254. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59255. - arg="\"$arg\""
  59256. - ;;
  59257. + case " $deplibs" in
  59258. + *\ -l* | *\ -L*)
  59259. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  59260. esac
  59261. - install_prog="$arg "
  59262. - arg="$1"
  59263. - shift
  59264. - else
  59265. - install_prog=
  59266. - arg="$nonopt"
  59267. - fi
  59268. - # The real first argument should be the name of the installation program.
  59269. - # Aesthetically quote it.
  59270. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59271. - case $arg in
  59272. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59273. - arg="\"$arg\""
  59274. - ;;
  59275. - esac
  59276. - install_prog="$install_prog$arg"
  59277. + test -n "$rpath" && \
  59278. + func_warning "\`-rpath' is ignored for objects"
  59279. - # We need to accept at least all the BSD install flags.
  59280. - dest=
  59281. - files=
  59282. - opts=
  59283. - prev=
  59284. - install_type=
  59285. - isdir=no
  59286. - stripme=
  59287. - for arg
  59288. - do
  59289. - if test -n "$dest"; then
  59290. - files="$files $dest"
  59291. - dest="$arg"
  59292. - continue
  59293. - fi
  59294. + test -n "$xrpath" && \
  59295. + func_warning "\`-R' is ignored for objects"
  59296. - case $arg in
  59297. - -d) isdir=yes ;;
  59298. - -f) prev="-f" ;;
  59299. - -g) prev="-g" ;;
  59300. - -m) prev="-m" ;;
  59301. - -o) prev="-o" ;;
  59302. - -s)
  59303. - stripme=" -s"
  59304. - continue
  59305. - ;;
  59306. - -*) ;;
  59307. + test -n "$vinfo" && \
  59308. + func_warning "\`-version-info' is ignored for objects"
  59309. + test -n "$release" && \
  59310. + func_warning "\`-release' is ignored for objects"
  59311. +
  59312. + case $output in
  59313. + *.lo)
  59314. + test -n "$objs$old_deplibs" && \
  59315. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  59316. +
  59317. + libobj=$output
  59318. + func_lo2o "$libobj"
  59319. + obj=$func_lo2o_result
  59320. + ;;
  59321. *)
  59322. - # If the previous option needed an argument, then skip it.
  59323. - if test -n "$prev"; then
  59324. - prev=
  59325. - else
  59326. - dest="$arg"
  59327. - continue
  59328. - fi
  59329. + libobj=
  59330. + obj="$output"
  59331. ;;
  59332. esac
  59333. - # Aesthetically quote the argument.
  59334. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59335. - case $arg in
  59336. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59337. - arg="\"$arg\""
  59338. - ;;
  59339. - esac
  59340. - install_prog="$install_prog $arg"
  59341. - done
  59342. + # Delete the old objects.
  59343. + $opt_dry_run || $RM $obj $libobj
  59344. - if test -z "$install_prog"; then
  59345. - $echo "$modename: you must specify an install program" 1>&2
  59346. - $echo "$help" 1>&2
  59347. - exit $EXIT_FAILURE
  59348. - fi
  59349. + # Objects from convenience libraries. This assumes
  59350. + # single-version convenience libraries. Whenever we create
  59351. + # different ones for PIC/non-PIC, this we'll have to duplicate
  59352. + # the extraction.
  59353. + reload_conv_objs=
  59354. + gentop=
  59355. + # reload_cmds runs $LD directly, so let us get rid of
  59356. + # -Wl from whole_archive_flag_spec and hope we can get by with
  59357. + # turning comma into space..
  59358. + wl=
  59359. - if test -n "$prev"; then
  59360. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  59361. - $echo "$help" 1>&2
  59362. - exit $EXIT_FAILURE
  59363. - fi
  59364. + if test -n "$convenience"; then
  59365. + if test -n "$whole_archive_flag_spec"; then
  59366. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  59367. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  59368. + else
  59369. + gentop="$output_objdir/${obj}x"
  59370. + generated="$generated $gentop"
  59371. - if test -z "$files"; then
  59372. - if test -z "$dest"; then
  59373. - $echo "$modename: no file or destination specified" 1>&2
  59374. - else
  59375. - $echo "$modename: you must specify a destination" 1>&2
  59376. + func_extract_archives $gentop $convenience
  59377. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  59378. + fi
  59379. fi
  59380. - $echo "$help" 1>&2
  59381. - exit $EXIT_FAILURE
  59382. - fi
  59383. - # Strip any trailing slash from the destination.
  59384. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  59385. + # Create the old-style object.
  59386. + reload_objs="$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
  59387. - # Check to see that the destination is a directory.
  59388. - test -d "$dest" && isdir=yes
  59389. - if test "$isdir" = yes; then
  59390. - destdir="$dest"
  59391. - destname=
  59392. - else
  59393. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  59394. - test "X$destdir" = "X$dest" && destdir=.
  59395. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  59396. + output="$obj"
  59397. + func_execute_cmds "$reload_cmds" 'exit $?'
  59398. - # Not a directory, so check to see that there is only one file specified.
  59399. - set dummy $files
  59400. - if test "$#" -gt 2; then
  59401. - $echo "$modename: \`$dest' is not a directory" 1>&2
  59402. - $echo "$help" 1>&2
  59403. - exit $EXIT_FAILURE
  59404. + # Exit if we aren't doing a library object file.
  59405. + if test -z "$libobj"; then
  59406. + if test -n "$gentop"; then
  59407. + func_show_eval '${RM}r "$gentop"'
  59408. + fi
  59409. +
  59410. + exit $EXIT_SUCCESS
  59411. fi
  59412. - fi
  59413. - case $destdir in
  59414. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  59415. - *)
  59416. - for file in $files; do
  59417. - case $file in
  59418. - *.lo) ;;
  59419. - *)
  59420. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  59421. - $echo "$help" 1>&2
  59422. - exit $EXIT_FAILURE
  59423. - ;;
  59424. - esac
  59425. - done
  59426. +
  59427. + if test "$build_libtool_libs" != yes; then
  59428. + if test -n "$gentop"; then
  59429. + func_show_eval '${RM}r "$gentop"'
  59430. + fi
  59431. +
  59432. + # Create an invalid libtool object if no PIC, so that we don't
  59433. + # accidentally link it into a program.
  59434. + # $show "echo timestamp > $libobj"
  59435. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  59436. + exit $EXIT_SUCCESS
  59437. + fi
  59438. +
  59439. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  59440. + # Only do commands if we really have different PIC objects.
  59441. + reload_objs="$libobjs $reload_conv_objs"
  59442. + output="$libobj"
  59443. + func_execute_cmds "$reload_cmds" 'exit $?'
  59444. + fi
  59445. +
  59446. + if test -n "$gentop"; then
  59447. + func_show_eval '${RM}r "$gentop"'
  59448. + fi
  59449. +
  59450. + exit $EXIT_SUCCESS
  59451. ;;
  59452. - esac
  59453. - # This variable tells wrapper scripts just to set variables rather
  59454. - # than running their programs.
  59455. - libtool_install_magic="$magic"
  59456. + prog)
  59457. + case $host in
  59458. + *cygwin*) func_stripname '' '.exe' "$output"
  59459. + output=$func_stripname_result.exe;;
  59460. + esac
  59461. + test -n "$vinfo" && \
  59462. + func_warning "\`-version-info' is ignored for programs"
  59463. - staticlibs=
  59464. - future_libdirs=
  59465. - current_libdirs=
  59466. - for file in $files; do
  59467. + test -n "$release" && \
  59468. + func_warning "\`-release' is ignored for programs"
  59469. - # Do each installation.
  59470. - case $file in
  59471. - *.$libext)
  59472. - # Do the static libraries later.
  59473. - staticlibs="$staticlibs $file"
  59474. + test "$preload" = yes \
  59475. + && test "$dlopen_support" = unknown \
  59476. + && test "$dlopen_self" = unknown \
  59477. + && test "$dlopen_self_static" = unknown && \
  59478. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  59479. +
  59480. + case $host in
  59481. + *-*-rhapsody* | *-*-darwin1.[012])
  59482. + # On Rhapsody replace the C library is the System framework
  59483. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59484. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59485. ;;
  59486. + esac
  59487. - *.la)
  59488. - # Check to see that this really is a libtool archive.
  59489. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  59490. - else
  59491. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  59492. - $echo "$help" 1>&2
  59493. - exit $EXIT_FAILURE
  59494. + case $host in
  59495. + *-*-darwin*)
  59496. + # Don't allow lazy linking, it breaks C++ global constructors
  59497. + # But is supposedly fixed on 10.4 or later (yay!).
  59498. + if test "$tagname" = CXX ; then
  59499. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  59500. + 10.[0123])
  59501. + compile_command="$compile_command ${wl}-bind_at_load"
  59502. + finalize_command="$finalize_command ${wl}-bind_at_load"
  59503. + ;;
  59504. + esac
  59505. fi
  59506. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59507. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59508. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59509. + ;;
  59510. + esac
  59511. - library_names=
  59512. - old_library=
  59513. - relink_command=
  59514. - # If there is no directory component, then add one.
  59515. - case $file in
  59516. - */* | *\\*) . $file ;;
  59517. - *) . ./$file ;;
  59518. +
  59519. + # move library search paths that coincide with paths to not yet
  59520. + # installed libraries to the beginning of the library search list
  59521. + new_libs=
  59522. + for path in $notinst_path; do
  59523. + case " $new_libs " in
  59524. + *" -L$path/$objdir "*) ;;
  59525. + *)
  59526. + case " $compile_deplibs " in
  59527. + *" -L$path/$objdir "*)
  59528. + new_libs="$new_libs -L$path/$objdir" ;;
  59529. + esac
  59530. + ;;
  59531. + esac
  59532. + done
  59533. + for deplib in $compile_deplibs; do
  59534. + case $deplib in
  59535. + -L*)
  59536. + case " $new_libs " in
  59537. + *" $deplib "*) ;;
  59538. + *) new_libs="$new_libs $deplib" ;;
  59539. + esac
  59540. + ;;
  59541. + *) new_libs="$new_libs $deplib" ;;
  59542. esac
  59543. + done
  59544. + compile_deplibs="$new_libs"
  59545. - # Add the libdir to current_libdirs if it is the destination.
  59546. - if test "X$destdir" = "X$libdir"; then
  59547. - case "$current_libdirs " in
  59548. +
  59549. + compile_command="$compile_command $compile_deplibs"
  59550. + finalize_command="$finalize_command $finalize_deplibs"
  59551. +
  59552. + if test -n "$rpath$xrpath"; then
  59553. + # If the user specified any rpath flags, then add them.
  59554. + for libdir in $rpath $xrpath; do
  59555. + # This is the magic to use -rpath.
  59556. + case "$finalize_rpath " in
  59557. *" $libdir "*) ;;
  59558. - *) current_libdirs="$current_libdirs $libdir" ;;
  59559. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  59560. esac
  59561. - else
  59562. - # Note the libdir as a future libdir.
  59563. - case "$future_libdirs " in
  59564. + done
  59565. + fi
  59566. +
  59567. + # Now hardcode the library paths
  59568. + rpath=
  59569. + hardcode_libdirs=
  59570. + for libdir in $compile_rpath $finalize_rpath; do
  59571. + if test -n "$hardcode_libdir_flag_spec"; then
  59572. + if test -n "$hardcode_libdir_separator"; then
  59573. + if test -z "$hardcode_libdirs"; then
  59574. + hardcode_libdirs="$libdir"
  59575. + else
  59576. + # Just accumulate the unique libdirs.
  59577. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59578. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59579. + ;;
  59580. + *)
  59581. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59582. + ;;
  59583. + esac
  59584. + fi
  59585. + else
  59586. + eval flag=\"$hardcode_libdir_flag_spec\"
  59587. + rpath="$rpath $flag"
  59588. + fi
  59589. + elif test -n "$runpath_var"; then
  59590. + case "$perm_rpath " in
  59591. *" $libdir "*) ;;
  59592. - *) future_libdirs="$future_libdirs $libdir" ;;
  59593. + *) perm_rpath="$perm_rpath $libdir" ;;
  59594. esac
  59595. fi
  59596. + case $host in
  59597. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  59598. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  59599. + case :$dllsearchpath: in
  59600. + *":$libdir:"*) ;;
  59601. + ::) dllsearchpath=$libdir;;
  59602. + *) dllsearchpath="$dllsearchpath:$libdir";;
  59603. + esac
  59604. + case :$dllsearchpath: in
  59605. + *":$testbindir:"*) ;;
  59606. + ::) dllsearchpath=$testbindir;;
  59607. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  59608. + esac
  59609. + ;;
  59610. + esac
  59611. + done
  59612. + # Substitute the hardcoded libdirs into the rpath.
  59613. + if test -n "$hardcode_libdir_separator" &&
  59614. + test -n "$hardcode_libdirs"; then
  59615. + libdir="$hardcode_libdirs"
  59616. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59617. + fi
  59618. + compile_rpath="$rpath"
  59619. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  59620. - test "X$dir" = "X$file/" && dir=
  59621. - dir="$dir$objdir"
  59622. -
  59623. - if test -n "$relink_command"; then
  59624. - # Determine the prefix the user has applied to our future dir.
  59625. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  59626. -
  59627. - # Don't allow the user to place us outside of our expected
  59628. - # location b/c this prevents finding dependent libraries that
  59629. - # are installed to the same prefix.
  59630. - # At present, this check doesn't affect windows .dll's that
  59631. - # are installed into $libdir/../bin (currently, that works fine)
  59632. - # but it's something to keep an eye on.
  59633. - if test "$inst_prefix_dir" = "$destdir"; then
  59634. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  59635. - exit $EXIT_FAILURE
  59636. - fi
  59637. -
  59638. - if test -n "$inst_prefix_dir"; then
  59639. - # Stick the inst_prefix_dir data into the link command.
  59640. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  59641. - else
  59642. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  59643. - fi
  59644. -
  59645. - $echo "$modename: warning: relinking \`$file'" 1>&2
  59646. - $show "$relink_command"
  59647. - if $run eval "$relink_command"; then :
  59648. + rpath=
  59649. + hardcode_libdirs=
  59650. + for libdir in $finalize_rpath; do
  59651. + if test -n "$hardcode_libdir_flag_spec"; then
  59652. + if test -n "$hardcode_libdir_separator"; then
  59653. + if test -z "$hardcode_libdirs"; then
  59654. + hardcode_libdirs="$libdir"
  59655. + else
  59656. + # Just accumulate the unique libdirs.
  59657. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59658. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59659. + ;;
  59660. + *)
  59661. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59662. + ;;
  59663. + esac
  59664. + fi
  59665. else
  59666. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59667. - exit $EXIT_FAILURE
  59668. + eval flag=\"$hardcode_libdir_flag_spec\"
  59669. + rpath="$rpath $flag"
  59670. fi
  59671. + elif test -n "$runpath_var"; then
  59672. + case "$finalize_perm_rpath " in
  59673. + *" $libdir "*) ;;
  59674. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  59675. + esac
  59676. fi
  59677. + done
  59678. + # Substitute the hardcoded libdirs into the rpath.
  59679. + if test -n "$hardcode_libdir_separator" &&
  59680. + test -n "$hardcode_libdirs"; then
  59681. + libdir="$hardcode_libdirs"
  59682. + eval rpath=\" $hardcode_libdir_flag_spec\"
  59683. + fi
  59684. + finalize_rpath="$rpath"
  59685. - # See the names of the shared library.
  59686. - set dummy $library_names
  59687. - if test -n "$2"; then
  59688. - realname="$2"
  59689. - shift
  59690. - shift
  59691. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  59692. + # Transform all the library objects into standard objects.
  59693. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59694. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  59695. + fi
  59696. - srcname="$realname"
  59697. - test -n "$relink_command" && srcname="$realname"T
  59698. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  59699. - # Install the shared library and build the symlinks.
  59700. - $show "$install_prog $dir/$srcname $destdir/$realname"
  59701. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  59702. - if test -n "$stripme" && test -n "$striplib"; then
  59703. - $show "$striplib $destdir/$realname"
  59704. - $run eval "$striplib $destdir/$realname" || exit $?
  59705. - fi
  59706. + # template prelinking step
  59707. + if test -n "$prelink_cmds"; then
  59708. + func_execute_cmds "$prelink_cmds" 'exit $?'
  59709. + fi
  59710. - if test "$#" -gt 0; then
  59711. - # Delete the old symlinks, and create new ones.
  59712. - for linkname
  59713. - do
  59714. - if test "$linkname" != "$realname"; then
  59715. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  59716. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  59717. - fi
  59718. - done
  59719. - fi
  59720. + wrappers_required=yes
  59721. + case $host in
  59722. + *cygwin* | *mingw* )
  59723. + if test "$build_libtool_libs" != yes; then
  59724. + wrappers_required=no
  59725. + fi
  59726. + ;;
  59727. + *cegcc)
  59728. + # Disable wrappers for cegcc, we are cross compiling anyway.
  59729. + wrappers_required=no
  59730. + ;;
  59731. + *)
  59732. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  59733. + wrappers_required=no
  59734. + fi
  59735. + ;;
  59736. + esac
  59737. + if test "$wrappers_required" = no; then
  59738. + # Replace the output file specification.
  59739. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59740. + link_command="$compile_command$compile_rpath"
  59741. - # Do each command in the postinstall commands.
  59742. - lib="$destdir/$realname"
  59743. - cmds=$postinstall_cmds
  59744. - save_ifs="$IFS"; IFS='~'
  59745. - for cmd in $cmds; do
  59746. - IFS="$save_ifs"
  59747. - eval cmd=\"$cmd\"
  59748. - $show "$cmd"
  59749. - $run eval "$cmd" || exit $?
  59750. - done
  59751. - IFS="$save_ifs"
  59752. - fi
  59753. + # We have no uninstalled library dependencies, so finalize right now.
  59754. + exit_status=0
  59755. + func_show_eval "$link_command" 'exit_status=$?'
  59756. - # Install the pseudo-library for information purposes.
  59757. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59758. - instname="$dir/$name"i
  59759. - $show "$install_prog $instname $destdir/$name"
  59760. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  59761. + # Delete the generated files.
  59762. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  59763. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  59764. + fi
  59765. - # Maybe install the static library, too.
  59766. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  59767. - ;;
  59768. + exit $exit_status
  59769. + fi
  59770. - *.lo)
  59771. - # Install (i.e. copy) a libtool object.
  59772. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  59773. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  59774. + fi
  59775. + if test -n "$finalize_shlibpath"; then
  59776. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  59777. + fi
  59778. - # Figure out destination file name, if it wasn't already specified.
  59779. - if test -n "$destname"; then
  59780. - destfile="$destdir/$destname"
  59781. - else
  59782. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59783. - destfile="$destdir/$destfile"
  59784. + compile_var=
  59785. + finalize_var=
  59786. + if test -n "$runpath_var"; then
  59787. + if test -n "$perm_rpath"; then
  59788. + # We should set the runpath_var.
  59789. + rpath=
  59790. + for dir in $perm_rpath; do
  59791. + rpath="$rpath$dir:"
  59792. + done
  59793. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59794. fi
  59795. -
  59796. - # Deduce the name of the destination old-style object file.
  59797. - case $destfile in
  59798. - *.lo)
  59799. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  59800. - ;;
  59801. - *.$objext)
  59802. - staticdest="$destfile"
  59803. - destfile=
  59804. - ;;
  59805. - *)
  59806. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  59807. - $echo "$help" 1>&2
  59808. - exit $EXIT_FAILURE
  59809. - ;;
  59810. - esac
  59811. -
  59812. - # Install the libtool object if requested.
  59813. - if test -n "$destfile"; then
  59814. - $show "$install_prog $file $destfile"
  59815. - $run eval "$install_prog $file $destfile" || exit $?
  59816. + if test -n "$finalize_perm_rpath"; then
  59817. + # We should set the runpath_var.
  59818. + rpath=
  59819. + for dir in $finalize_perm_rpath; do
  59820. + rpath="$rpath$dir:"
  59821. + done
  59822. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  59823. fi
  59824. + fi
  59825. - # Install the old object if enabled.
  59826. - if test "$build_old_libs" = yes; then
  59827. - # Deduce the name of the old-style object file.
  59828. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  59829. -
  59830. - $show "$install_prog $staticobj $staticdest"
  59831. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  59832. - fi
  59833. + if test "$no_install" = yes; then
  59834. + # We don't need to create a wrapper script.
  59835. + link_command="$compile_var$compile_command$compile_rpath"
  59836. + # Replace the output file specification.
  59837. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  59838. + # Delete the old output file.
  59839. + $opt_dry_run || $RM $output
  59840. + # Link the executable and exit
  59841. + func_show_eval "$link_command" 'exit $?'
  59842. exit $EXIT_SUCCESS
  59843. - ;;
  59844. + fi
  59845. - *)
  59846. - # Figure out destination file name, if it wasn't already specified.
  59847. - if test -n "$destname"; then
  59848. - destfile="$destdir/$destname"
  59849. + if test "$hardcode_action" = relink; then
  59850. + # Fast installation is not supported
  59851. + link_command="$compile_var$compile_command$compile_rpath"
  59852. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59853. +
  59854. + func_warning "this platform does not like uninstalled shared libraries"
  59855. + func_warning "\`$output' will be relinked during installation"
  59856. + else
  59857. + if test "$fast_install" != no; then
  59858. + link_command="$finalize_var$compile_command$finalize_rpath"
  59859. + if test "$fast_install" = yes; then
  59860. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  59861. + else
  59862. + # fast_install is set to needless
  59863. + relink_command=
  59864. + fi
  59865. else
  59866. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  59867. - destfile="$destdir/$destfile"
  59868. + link_command="$compile_var$compile_command$compile_rpath"
  59869. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  59870. fi
  59871. + fi
  59872. - # If the file is missing, and there is a .exe on the end, strip it
  59873. - # because it is most likely a libtool script we actually want to
  59874. - # install
  59875. - stripped_ext=""
  59876. - case $file in
  59877. - *.exe)
  59878. - if test ! -f "$file"; then
  59879. - file=`$echo $file|${SED} 's,.exe$,,'`
  59880. - stripped_ext=".exe"
  59881. - fi
  59882. - ;;
  59883. - esac
  59884. -
  59885. - # Do a test to see if this is really a libtool program.
  59886. - case $host in
  59887. - *cygwin*|*mingw*)
  59888. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  59889. - ;;
  59890. - *)
  59891. - wrapper=$file
  59892. - ;;
  59893. - esac
  59894. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  59895. - notinst_deplibs=
  59896. - relink_command=
  59897. -
  59898. - # To insure that "foo" is sourced, and not "foo.exe",
  59899. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  59900. - # which disallows the automatic-append-.exe behavior.
  59901. - case $build in
  59902. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  59903. - *) wrapperdot=${wrapper} ;;
  59904. - esac
  59905. - # If there is no directory component, then add one.
  59906. - case $file in
  59907. - */* | *\\*) . ${wrapperdot} ;;
  59908. - *) . ./${wrapperdot} ;;
  59909. - esac
  59910. -
  59911. - # Check the variables that should have been set.
  59912. - if test -z "$notinst_deplibs"; then
  59913. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  59914. - exit $EXIT_FAILURE
  59915. - fi
  59916. + # Replace the output file specification.
  59917. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  59918. - finalize=yes
  59919. - for lib in $notinst_deplibs; do
  59920. - # Check to see that each library is installed.
  59921. - libdir=
  59922. - if test -f "$lib"; then
  59923. - # If there is no directory component, then add one.
  59924. - case $lib in
  59925. - */* | *\\*) . $lib ;;
  59926. - *) . ./$lib ;;
  59927. - esac
  59928. - fi
  59929. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  59930. - if test -n "$libdir" && test ! -f "$libfile"; then
  59931. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  59932. - finalize=no
  59933. - fi
  59934. - done
  59935. + # Delete the old output files.
  59936. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  59937. - relink_command=
  59938. - # To insure that "foo" is sourced, and not "foo.exe",
  59939. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  59940. - # which disallows the automatic-append-.exe behavior.
  59941. - case $build in
  59942. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  59943. - *) wrapperdot=${wrapper} ;;
  59944. - esac
  59945. - # If there is no directory component, then add one.
  59946. - case $file in
  59947. - */* | *\\*) . ${wrapperdot} ;;
  59948. - *) . ./${wrapperdot} ;;
  59949. - esac
  59950. + func_show_eval "$link_command" 'exit $?'
  59951. - outputname=
  59952. - if test "$fast_install" = no && test -n "$relink_command"; then
  59953. - if test "$finalize" = yes && test -z "$run"; then
  59954. - tmpdir="/tmp"
  59955. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  59956. - tmpdir="$tmpdir/libtool-$$"
  59957. - save_umask=`umask`
  59958. - umask 0077
  59959. - if $mkdir "$tmpdir"; then
  59960. - umask $save_umask
  59961. - else
  59962. - umask $save_umask
  59963. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  59964. - continue
  59965. - fi
  59966. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  59967. - outputname="$tmpdir/$file"
  59968. - # Replace the output file specification.
  59969. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  59970. + # Now create the wrapper script.
  59971. + func_verbose "creating $output"
  59972. - $show "$relink_command"
  59973. - if $run eval "$relink_command"; then :
  59974. - else
  59975. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  59976. - ${rm}r "$tmpdir"
  59977. - continue
  59978. - fi
  59979. - file="$outputname"
  59980. - else
  59981. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  59982. - fi
  59983. + # Quote the relink command for shipping.
  59984. + if test -n "$relink_command"; then
  59985. + # Preserve any variables that may affect compiler behavior
  59986. + for var in $variables_saved_for_relink; do
  59987. + if eval test -z \"\${$var+set}\"; then
  59988. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  59989. + elif eval var_value=\$$var; test -z "$var_value"; then
  59990. + relink_command="$var=; export $var; $relink_command"
  59991. else
  59992. - # Install the binary that we compiled earlier.
  59993. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  59994. + func_quote_for_eval "$var_value"
  59995. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  59996. fi
  59997. - fi
  59998. + done
  59999. + relink_command="(cd `pwd`; $relink_command)"
  60000. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60001. + fi
  60002. - # remove .exe since cygwin /usr/bin/install will append another
  60003. - # one anyways
  60004. - case $install_prog,$host in
  60005. - */usr/bin/install*,*cygwin*)
  60006. - case $file:$destfile in
  60007. - *.exe:*.exe)
  60008. - # this is ok
  60009. - ;;
  60010. - *.exe:*)
  60011. - destfile=$destfile.exe
  60012. - ;;
  60013. - *:*.exe)
  60014. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  60015. - ;;
  60016. - esac
  60017. - ;;
  60018. + # Quote $ECHO for shipping.
  60019. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  60020. + case $progpath in
  60021. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  60022. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  60023. esac
  60024. - $show "$install_prog$stripme $file $destfile"
  60025. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  60026. - test -n "$outputname" && ${rm}r "$tmpdir"
  60027. - ;;
  60028. - esac
  60029. - done
  60030. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  60031. + else
  60032. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  60033. + fi
  60034. - for file in $staticlibs; do
  60035. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60036. + # Only actually do things if not in dry run mode.
  60037. + $opt_dry_run || {
  60038. + # win32 will think the script is a binary if it has
  60039. + # a .exe suffix, so we strip it off here.
  60040. + case $output in
  60041. + *.exe) func_stripname '' '.exe' "$output"
  60042. + output=$func_stripname_result ;;
  60043. + esac
  60044. + # test for cygwin because mv fails w/o .exe extensions
  60045. + case $host in
  60046. + *cygwin*)
  60047. + exeext=.exe
  60048. + func_stripname '' '.exe' "$outputname"
  60049. + outputname=$func_stripname_result ;;
  60050. + *) exeext= ;;
  60051. + esac
  60052. + case $host in
  60053. + *cygwin* | *mingw* )
  60054. + func_dirname_and_basename "$output" "" "."
  60055. + output_name=$func_basename_result
  60056. + output_path=$func_dirname_result
  60057. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  60058. + cwrapper="$output_path/$output_name.exe"
  60059. + $RM $cwrappersource $cwrapper
  60060. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  60061. +
  60062. + func_emit_cwrapperexe_src > $cwrappersource
  60063. +
  60064. + # The wrapper executable is built using the $host compiler,
  60065. + # because it contains $host paths and files. If cross-
  60066. + # compiling, it, like the target executable, must be
  60067. + # executed on the $host or under an emulation environment.
  60068. + $opt_dry_run || {
  60069. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  60070. + $STRIP $cwrapper
  60071. + }
  60072. +
  60073. + # Now, create the wrapper script for func_source use:
  60074. + func_ltwrapper_scriptname $cwrapper
  60075. + $RM $func_ltwrapper_scriptname_result
  60076. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  60077. + $opt_dry_run || {
  60078. + # note: this script will not be executed, so do not chmod.
  60079. + if test "x$build" = "x$host" ; then
  60080. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  60081. + else
  60082. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  60083. + fi
  60084. + }
  60085. + ;;
  60086. + * )
  60087. + $RM $output
  60088. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  60089. - # Set up the ranlib parameters.
  60090. - oldlib="$destdir/$name"
  60091. + func_emit_wrapper no > $output
  60092. + chmod +x $output
  60093. + ;;
  60094. + esac
  60095. + }
  60096. + exit $EXIT_SUCCESS
  60097. + ;;
  60098. + esac
  60099. - $show "$install_prog $file $oldlib"
  60100. - $run eval "$install_prog \$file \$oldlib" || exit $?
  60101. + # See if we need to build an old-fashioned archive.
  60102. + for oldlib in $oldlibs; do
  60103. - if test -n "$stripme" && test -n "$old_striplib"; then
  60104. - $show "$old_striplib $oldlib"
  60105. - $run eval "$old_striplib $oldlib" || exit $?
  60106. + if test "$build_libtool_libs" = convenience; then
  60107. + oldobjs="$libobjs_save $symfileobj"
  60108. + addlibs="$convenience"
  60109. + build_libtool_libs=no
  60110. + else
  60111. + if test "$build_libtool_libs" = module; then
  60112. + oldobjs="$libobjs_save"
  60113. + build_libtool_libs=no
  60114. + else
  60115. + oldobjs="$old_deplibs $non_pic_objects"
  60116. + if test "$preload" = yes && test -f "$symfileobj"; then
  60117. + oldobjs="$oldobjs $symfileobj"
  60118. + fi
  60119. + fi
  60120. + addlibs="$old_convenience"
  60121. fi
  60122. - # Do each command in the postinstall commands.
  60123. - cmds=$old_postinstall_cmds
  60124. - save_ifs="$IFS"; IFS='~'
  60125. - for cmd in $cmds; do
  60126. - IFS="$save_ifs"
  60127. - eval cmd=\"$cmd\"
  60128. - $show "$cmd"
  60129. - $run eval "$cmd" || exit $?
  60130. - done
  60131. - IFS="$save_ifs"
  60132. - done
  60133. + if test -n "$addlibs"; then
  60134. + gentop="$output_objdir/${outputname}x"
  60135. + generated="$generated $gentop"
  60136. - if test -n "$future_libdirs"; then
  60137. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  60138. - fi
  60139. + func_extract_archives $gentop $addlibs
  60140. + oldobjs="$oldobjs $func_extract_archives_result"
  60141. + fi
  60142. - if test -n "$current_libdirs"; then
  60143. - # Maybe just do a dry run.
  60144. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  60145. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  60146. - else
  60147. - exit $EXIT_SUCCESS
  60148. - fi
  60149. - ;;
  60150. + # Do each command in the archive commands.
  60151. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  60152. + cmds=$old_archive_from_new_cmds
  60153. + else
  60154. - # libtool finish mode
  60155. - finish)
  60156. - modename="$modename: finish"
  60157. - libdirs="$nonopt"
  60158. - admincmds=
  60159. + # Add any objects from preloaded convenience libraries
  60160. + if test -n "$dlprefiles"; then
  60161. + gentop="$output_objdir/${outputname}x"
  60162. + generated="$generated $gentop"
  60163. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  60164. - for dir
  60165. - do
  60166. - libdirs="$libdirs $dir"
  60167. - done
  60168. + func_extract_archives $gentop $dlprefiles
  60169. + oldobjs="$oldobjs $func_extract_archives_result"
  60170. + fi
  60171. - for libdir in $libdirs; do
  60172. - if test -n "$finish_cmds"; then
  60173. - # Do each command in the finish commands.
  60174. - cmds=$finish_cmds
  60175. - save_ifs="$IFS"; IFS='~'
  60176. - for cmd in $cmds; do
  60177. - IFS="$save_ifs"
  60178. - eval cmd=\"$cmd\"
  60179. - $show "$cmd"
  60180. - $run eval "$cmd" || admincmds="$admincmds
  60181. - $cmd"
  60182. + # POSIX demands no paths to be encoded in archives. We have
  60183. + # to avoid creating archives with duplicate basenames if we
  60184. + # might have to extract them afterwards, e.g., when creating a
  60185. + # static archive out of a convenience library, or when linking
  60186. + # the entirety of a libtool archive into another (currently
  60187. + # not supported by libtool).
  60188. + if (for obj in $oldobjs
  60189. + do
  60190. + func_basename "$obj"
  60191. + $ECHO "$func_basename_result"
  60192. + done | sort | sort -uc >/dev/null 2>&1); then
  60193. + :
  60194. + else
  60195. + $ECHO "copying selected object files to avoid basename conflicts..."
  60196. + gentop="$output_objdir/${outputname}x"
  60197. + generated="$generated $gentop"
  60198. + func_mkdir_p "$gentop"
  60199. + save_oldobjs=$oldobjs
  60200. + oldobjs=
  60201. + counter=1
  60202. + for obj in $save_oldobjs
  60203. + do
  60204. + func_basename "$obj"
  60205. + objbase="$func_basename_result"
  60206. + case " $oldobjs " in
  60207. + " ") oldobjs=$obj ;;
  60208. + *[\ /]"$objbase "*)
  60209. + while :; do
  60210. + # Make sure we don't pick an alternate name that also
  60211. + # overlaps.
  60212. + newobj=lt$counter-$objbase
  60213. + func_arith $counter + 1
  60214. + counter=$func_arith_result
  60215. + case " $oldobjs " in
  60216. + *[\ /]"$newobj "*) ;;
  60217. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  60218. + esac
  60219. + done
  60220. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  60221. + oldobjs="$oldobjs $gentop/$newobj"
  60222. + ;;
  60223. + *) oldobjs="$oldobjs $obj" ;;
  60224. + esac
  60225. done
  60226. - IFS="$save_ifs"
  60227. - fi
  60228. - if test -n "$finish_eval"; then
  60229. - # Do the single finish_eval.
  60230. - eval cmds=\"$finish_eval\"
  60231. - $run eval "$cmds" || admincmds="$admincmds
  60232. - $cmds"
  60233. fi
  60234. - done
  60235. - fi
  60236. -
  60237. - # Exit here if they wanted silent mode.
  60238. - test "$show" = : && exit $EXIT_SUCCESS
  60239. + eval cmds=\"$old_archive_cmds\"
  60240. - $echo "----------------------------------------------------------------------"
  60241. - $echo "Libraries have been installed in:"
  60242. - for libdir in $libdirs; do
  60243. - $echo " $libdir"
  60244. + func_len " $cmds"
  60245. + len=$func_len_result
  60246. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  60247. + cmds=$old_archive_cmds
  60248. + else
  60249. + # the command line is too long to link in one step, link in parts
  60250. + func_verbose "using piecewise archive linking..."
  60251. + save_RANLIB=$RANLIB
  60252. + RANLIB=:
  60253. + objlist=
  60254. + concat_cmds=
  60255. + save_oldobjs=$oldobjs
  60256. + oldobjs=
  60257. + # Is there a better way of finding the last object in the list?
  60258. + for obj in $save_oldobjs
  60259. + do
  60260. + last_oldobj=$obj
  60261. + done
  60262. + eval test_cmds=\"$old_archive_cmds\"
  60263. + func_len " $test_cmds"
  60264. + len0=$func_len_result
  60265. + len=$len0
  60266. + for obj in $save_oldobjs
  60267. + do
  60268. + func_len " $obj"
  60269. + func_arith $len + $func_len_result
  60270. + len=$func_arith_result
  60271. + func_append objlist " $obj"
  60272. + if test "$len" -lt "$max_cmd_len"; then
  60273. + :
  60274. + else
  60275. + # the above command should be used before it gets too long
  60276. + oldobjs=$objlist
  60277. + if test "$obj" = "$last_oldobj" ; then
  60278. + RANLIB=$save_RANLIB
  60279. + fi
  60280. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  60281. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  60282. + objlist=
  60283. + len=$len0
  60284. + fi
  60285. + done
  60286. + RANLIB=$save_RANLIB
  60287. + oldobjs=$objlist
  60288. + if test "X$oldobjs" = "X" ; then
  60289. + eval cmds=\"\$concat_cmds\"
  60290. + else
  60291. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  60292. + fi
  60293. + fi
  60294. + fi
  60295. + func_execute_cmds "$cmds" 'exit $?'
  60296. done
  60297. - $echo
  60298. - $echo "If you ever happen to want to link against installed libraries"
  60299. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  60300. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  60301. - $echo "flag during linking and do at least one of the following:"
  60302. - if test -n "$shlibpath_var"; then
  60303. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  60304. - $echo " during execution"
  60305. - fi
  60306. - if test -n "$runpath_var"; then
  60307. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  60308. - $echo " during linking"
  60309. - fi
  60310. - if test -n "$hardcode_libdir_flag_spec"; then
  60311. - libdir=LIBDIR
  60312. - eval flag=\"$hardcode_libdir_flag_spec\"
  60313. -
  60314. - $echo " - use the \`$flag' linker flag"
  60315. - fi
  60316. - if test -n "$admincmds"; then
  60317. - $echo " - have your system administrator run these commands:$admincmds"
  60318. - fi
  60319. - if test -f /etc/ld.so.conf; then
  60320. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  60321. - fi
  60322. - $echo
  60323. - $echo "See any operating system documentation about shared libraries for"
  60324. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  60325. - $echo "----------------------------------------------------------------------"
  60326. - exit $EXIT_SUCCESS
  60327. - ;;
  60328. - # libtool execute mode
  60329. - execute)
  60330. - modename="$modename: execute"
  60331. -
  60332. - # The first argument is the command name.
  60333. - cmd="$nonopt"
  60334. - if test -z "$cmd"; then
  60335. - $echo "$modename: you must specify a COMMAND" 1>&2
  60336. - $echo "$help"
  60337. - exit $EXIT_FAILURE
  60338. - fi
  60339. + test -n "$generated" && \
  60340. + func_show_eval "${RM}r$generated"
  60341. - # Handle -dlopen flags immediately.
  60342. - for file in $execute_dlfiles; do
  60343. - if test ! -f "$file"; then
  60344. - $echo "$modename: \`$file' is not a file" 1>&2
  60345. - $echo "$help" 1>&2
  60346. - exit $EXIT_FAILURE
  60347. - fi
  60348. + # Now create the libtool archive.
  60349. + case $output in
  60350. + *.la)
  60351. + old_library=
  60352. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  60353. + func_verbose "creating $output"
  60354. - dir=
  60355. - case $file in
  60356. - *.la)
  60357. - # Check to see that this really is a libtool archive.
  60358. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60359. + # Preserve any variables that may affect compiler behavior
  60360. + for var in $variables_saved_for_relink; do
  60361. + if eval test -z \"\${$var+set}\"; then
  60362. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60363. + elif eval var_value=\$$var; test -z "$var_value"; then
  60364. + relink_command="$var=; export $var; $relink_command"
  60365. else
  60366. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  60367. - $echo "$help" 1>&2
  60368. - exit $EXIT_FAILURE
  60369. + func_quote_for_eval "$var_value"
  60370. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60371. fi
  60372. + done
  60373. + # Quote the link command for shipping.
  60374. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  60375. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60376. + if test "$hardcode_automatic" = yes ; then
  60377. + relink_command=
  60378. + fi
  60379. - # Read the libtool library.
  60380. - dlname=
  60381. - library_names=
  60382. + # Only create the output if not a dry run.
  60383. + $opt_dry_run || {
  60384. + for installed in no yes; do
  60385. + if test "$installed" = yes; then
  60386. + if test -z "$install_libdir"; then
  60387. + break
  60388. + fi
  60389. + output="$output_objdir/$outputname"i
  60390. + # Replace all uninstalled libtool libraries with the installed ones
  60391. + newdependency_libs=
  60392. + for deplib in $dependency_libs; do
  60393. + case $deplib in
  60394. + *.la)
  60395. + func_basename "$deplib"
  60396. + name="$func_basename_result"
  60397. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60398. + test -z "$libdir" && \
  60399. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60400. + newdependency_libs="$newdependency_libs $libdir/$name"
  60401. + ;;
  60402. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  60403. + esac
  60404. + done
  60405. + dependency_libs="$newdependency_libs"
  60406. + newdlfiles=
  60407. +
  60408. + for lib in $dlfiles; do
  60409. + case $lib in
  60410. + *.la)
  60411. + func_basename "$lib"
  60412. + name="$func_basename_result"
  60413. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60414. + test -z "$libdir" && \
  60415. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60416. + newdlfiles="$newdlfiles $libdir/$name"
  60417. + ;;
  60418. + *) newdlfiles="$newdlfiles $lib" ;;
  60419. + esac
  60420. + done
  60421. + dlfiles="$newdlfiles"
  60422. + newdlprefiles=
  60423. + for lib in $dlprefiles; do
  60424. + case $lib in
  60425. + *.la)
  60426. + # Only pass preopened files to the pseudo-archive (for
  60427. + # eventual linking with the app. that links it) if we
  60428. + # didn't already link the preopened objects directly into
  60429. + # the library:
  60430. + func_basename "$lib"
  60431. + name="$func_basename_result"
  60432. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60433. + test -z "$libdir" && \
  60434. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60435. + newdlprefiles="$newdlprefiles $libdir/$name"
  60436. + ;;
  60437. + esac
  60438. + done
  60439. + dlprefiles="$newdlprefiles"
  60440. + else
  60441. + newdlfiles=
  60442. + for lib in $dlfiles; do
  60443. + case $lib in
  60444. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60445. + *) abs=`pwd`"/$lib" ;;
  60446. + esac
  60447. + newdlfiles="$newdlfiles $abs"
  60448. + done
  60449. + dlfiles="$newdlfiles"
  60450. + newdlprefiles=
  60451. + for lib in $dlprefiles; do
  60452. + case $lib in
  60453. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60454. + *) abs=`pwd`"/$lib" ;;
  60455. + esac
  60456. + newdlprefiles="$newdlprefiles $abs"
  60457. + done
  60458. + dlprefiles="$newdlprefiles"
  60459. + fi
  60460. + $RM $output
  60461. + # place dlname in correct position for cygwin
  60462. + tdlname=$dlname
  60463. + case $host,$output,$installed,$module,$dlname in
  60464. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  60465. + esac
  60466. + $ECHO > $output "\
  60467. +# $outputname - a libtool library file
  60468. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  60469. +#
  60470. +# Please DO NOT delete this file!
  60471. +# It is necessary for linking the library.
  60472. - # If there is no directory component, then add one.
  60473. - case $file in
  60474. - */* | *\\*) . $file ;;
  60475. - *) . ./$file ;;
  60476. - esac
  60477. +# The name that we can dlopen(3).
  60478. +dlname='$tdlname'
  60479. - # Skip this library if it cannot be dlopened.
  60480. - if test -z "$dlname"; then
  60481. - # Warn if it was a shared library.
  60482. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  60483. - continue
  60484. - fi
  60485. +# Names of this library.
  60486. +library_names='$library_names'
  60487. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60488. - test "X$dir" = "X$file" && dir=.
  60489. +# The name of the static archive.
  60490. +old_library='$old_library'
  60491. - if test -f "$dir/$objdir/$dlname"; then
  60492. - dir="$dir/$objdir"
  60493. - else
  60494. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  60495. - exit $EXIT_FAILURE
  60496. - fi
  60497. - ;;
  60498. +# Linker flags that can not go in dependency_libs.
  60499. +inherited_linker_flags='$new_inherited_linker_flags'
  60500. - *.lo)
  60501. - # Just add the directory containing the .lo file.
  60502. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60503. - test "X$dir" = "X$file" && dir=.
  60504. - ;;
  60505. +# Libraries that this one depends upon.
  60506. +dependency_libs='$dependency_libs'
  60507. - *)
  60508. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  60509. - continue
  60510. - ;;
  60511. - esac
  60512. +# Names of additional weak libraries provided by this library
  60513. +weak_library_names='$weak_libs'
  60514. - # Get the absolute pathname.
  60515. - absdir=`cd "$dir" && pwd`
  60516. - test -n "$absdir" && dir="$absdir"
  60517. +# Version information for $libname.
  60518. +current=$current
  60519. +age=$age
  60520. +revision=$revision
  60521. - # Now add the directory to shlibpath_var.
  60522. - if eval "test -z \"\$$shlibpath_var\""; then
  60523. - eval "$shlibpath_var=\"\$dir\""
  60524. - else
  60525. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  60526. - fi
  60527. - done
  60528. +# Is this an already installed library?
  60529. +installed=$installed
  60530. - # This variable tells wrapper scripts just to set shlibpath_var
  60531. - # rather than running their programs.
  60532. - libtool_execute_magic="$magic"
  60533. +# Should we warn about portability when linking against -modules?
  60534. +shouldnotlink=$module
  60535. - # Check if any of the arguments is a wrapper script.
  60536. - args=
  60537. - for file
  60538. - do
  60539. - case $file in
  60540. - -*) ;;
  60541. - *)
  60542. - # Do a test to see if this is really a libtool program.
  60543. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60544. - # If there is no directory component, then add one.
  60545. - case $file in
  60546. - */* | *\\*) . $file ;;
  60547. - *) . ./$file ;;
  60548. - esac
  60549. +# Files to dlopen/dlpreopen
  60550. +dlopen='$dlfiles'
  60551. +dlpreopen='$dlprefiles'
  60552. - # Transform arg to wrapped name.
  60553. - file="$progdir/$program"
  60554. - fi
  60555. - ;;
  60556. - esac
  60557. - # Quote arguments (to preserve shell metacharacters).
  60558. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  60559. - args="$args \"$file\""
  60560. - done
  60561. +# Directory that this library needs to be installed in:
  60562. +libdir='$install_libdir'"
  60563. + if test "$installed" = no && test "$need_relink" = yes; then
  60564. + $ECHO >> $output "\
  60565. +relink_command=\"$relink_command\""
  60566. + fi
  60567. + done
  60568. + }
  60569. - if test -z "$run"; then
  60570. - if test -n "$shlibpath_var"; then
  60571. - # Export the shlibpath_var.
  60572. - eval "export $shlibpath_var"
  60573. - fi
  60574. + # Do a symbolic link so that the libtool archive can be found in
  60575. + # LD_LIBRARY_PATH before the program is installed.
  60576. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  60577. + ;;
  60578. + esac
  60579. + exit $EXIT_SUCCESS
  60580. +}
  60581. - # Restore saved environment variables
  60582. - if test "${save_LC_ALL+set}" = set; then
  60583. - LC_ALL="$save_LC_ALL"; export LC_ALL
  60584. - fi
  60585. - if test "${save_LANG+set}" = set; then
  60586. - LANG="$save_LANG"; export LANG
  60587. - fi
  60588. +{ test "$mode" = link || test "$mode" = relink; } &&
  60589. + func_mode_link ${1+"$@"}
  60590. - # Now prepare to actually exec the command.
  60591. - exec_cmd="\$cmd$args"
  60592. - else
  60593. - # Display what would be done.
  60594. - if test -n "$shlibpath_var"; then
  60595. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  60596. - $echo "export $shlibpath_var"
  60597. - fi
  60598. - $echo "$cmd$args"
  60599. - exit $EXIT_SUCCESS
  60600. - fi
  60601. - ;;
  60602. - # libtool clean and uninstall mode
  60603. - clean | uninstall)
  60604. - modename="$modename: $mode"
  60605. - rm="$nonopt"
  60606. +# func_mode_uninstall arg...
  60607. +func_mode_uninstall ()
  60608. +{
  60609. + $opt_debug
  60610. + RM="$nonopt"
  60611. files=
  60612. rmforce=
  60613. exit_status=0
  60614. @@ -6019,30 +8209,28 @@
  60615. for arg
  60616. do
  60617. case $arg in
  60618. - -f) rm="$rm $arg"; rmforce=yes ;;
  60619. - -*) rm="$rm $arg" ;;
  60620. + -f) RM="$RM $arg"; rmforce=yes ;;
  60621. + -*) RM="$RM $arg" ;;
  60622. *) files="$files $arg" ;;
  60623. esac
  60624. done
  60625. - if test -z "$rm"; then
  60626. - $echo "$modename: you must specify an RM program" 1>&2
  60627. - $echo "$help" 1>&2
  60628. - exit $EXIT_FAILURE
  60629. - fi
  60630. + test -z "$RM" && \
  60631. + func_fatal_help "you must specify an RM program"
  60632. rmdirs=
  60633. origobjdir="$objdir"
  60634. for file in $files; do
  60635. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60636. - if test "X$dir" = "X$file"; then
  60637. - dir=.
  60638. + func_dirname "$file" "" "."
  60639. + dir="$func_dirname_result"
  60640. + if test "X$dir" = X.; then
  60641. objdir="$origobjdir"
  60642. else
  60643. objdir="$dir/$origobjdir"
  60644. fi
  60645. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60646. + func_basename "$file"
  60647. + name="$func_basename_result"
  60648. test "$mode" = uninstall && objdir="$dir"
  60649. # Remember objdir for removal later, being careful to avoid duplicates
  60650. @@ -6054,9 +8242,9 @@
  60651. fi
  60652. # Don't error if the file doesn't exist and rm -f was used.
  60653. - if (test -L "$file") >/dev/null 2>&1 \
  60654. - || (test -h "$file") >/dev/null 2>&1 \
  60655. - || test -f "$file"; then
  60656. + if { test -L "$file"; } >/dev/null 2>&1 ||
  60657. + { test -h "$file"; } >/dev/null 2>&1 ||
  60658. + test -f "$file"; then
  60659. :
  60660. elif test -d "$file"; then
  60661. exit_status=1
  60662. @@ -6070,69 +8258,56 @@
  60663. case $name in
  60664. *.la)
  60665. # Possibly a libtool archive, so verify it.
  60666. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60667. - . $dir/$name
  60668. + if func_lalib_p "$file"; then
  60669. + func_source $dir/$name
  60670. # Delete the libtool libraries and symlinks.
  60671. for n in $library_names; do
  60672. rmfiles="$rmfiles $objdir/$n"
  60673. done
  60674. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  60675. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60676. - if test "$mode" = uninstall; then
  60677. + case "$mode" in
  60678. + clean)
  60679. + case " $library_names " in
  60680. + # " " in the beginning catches empty $dlname
  60681. + *" $dlname "*) ;;
  60682. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  60683. + esac
  60684. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  60685. + ;;
  60686. + uninstall)
  60687. if test -n "$library_names"; then
  60688. # Do each command in the postuninstall commands.
  60689. - cmds=$postuninstall_cmds
  60690. - save_ifs="$IFS"; IFS='~'
  60691. - for cmd in $cmds; do
  60692. - IFS="$save_ifs"
  60693. - eval cmd=\"$cmd\"
  60694. - $show "$cmd"
  60695. - $run eval "$cmd"
  60696. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60697. - exit_status=1
  60698. - fi
  60699. - done
  60700. - IFS="$save_ifs"
  60701. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60702. fi
  60703. if test -n "$old_library"; then
  60704. # Do each command in the old_postuninstall commands.
  60705. - cmds=$old_postuninstall_cmds
  60706. - save_ifs="$IFS"; IFS='~'
  60707. - for cmd in $cmds; do
  60708. - IFS="$save_ifs"
  60709. - eval cmd=\"$cmd\"
  60710. - $show "$cmd"
  60711. - $run eval "$cmd"
  60712. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  60713. - exit_status=1
  60714. - fi
  60715. - done
  60716. - IFS="$save_ifs"
  60717. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  60718. fi
  60719. # FIXME: should reinstall the best remaining shared library.
  60720. - fi
  60721. + ;;
  60722. + esac
  60723. fi
  60724. ;;
  60725. *.lo)
  60726. # Possibly a libtool object, so verify it.
  60727. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60728. + if func_lalib_p "$file"; then
  60729. # Read the .lo file
  60730. - . $dir/$name
  60731. + func_source $dir/$name
  60732. # Add PIC object to the list of files to remove.
  60733. - if test -n "$pic_object" \
  60734. - && test "$pic_object" != none; then
  60735. + if test -n "$pic_object" &&
  60736. + test "$pic_object" != none; then
  60737. rmfiles="$rmfiles $dir/$pic_object"
  60738. fi
  60739. # Add non-PIC object to the list of files to remove.
  60740. - if test -n "$non_pic_object" \
  60741. - && test "$non_pic_object" != none; then
  60742. + if test -n "$non_pic_object" &&
  60743. + test "$non_pic_object" != none; then
  60744. rmfiles="$rmfiles $dir/$non_pic_object"
  60745. fi
  60746. fi
  60747. @@ -6143,17 +8318,26 @@
  60748. noexename=$name
  60749. case $file in
  60750. *.exe)
  60751. - file=`$echo $file|${SED} 's,.exe$,,'`
  60752. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  60753. + func_stripname '' '.exe' "$file"
  60754. + file=$func_stripname_result
  60755. + func_stripname '' '.exe' "$name"
  60756. + noexename=$func_stripname_result
  60757. # $file with .exe has already been added to rmfiles,
  60758. # add $file without .exe
  60759. rmfiles="$rmfiles $file"
  60760. ;;
  60761. esac
  60762. # Do a test to see if this is a libtool program.
  60763. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60764. - relink_command=
  60765. - . $dir/$noexename
  60766. + if func_ltwrapper_p "$file"; then
  60767. + if func_ltwrapper_executable_p "$file"; then
  60768. + func_ltwrapper_scriptname "$file"
  60769. + relink_command=
  60770. + func_source $func_ltwrapper_scriptname_result
  60771. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  60772. + else
  60773. + relink_command=
  60774. + func_source $dir/$noexename
  60775. + fi
  60776. # note $name still contains .exe if it was in $file originally
  60777. # as does the version of $file that was added into $rmfiles
  60778. @@ -6168,237 +8352,38 @@
  60779. fi
  60780. ;;
  60781. esac
  60782. - $show "$rm $rmfiles"
  60783. - $run $rm $rmfiles || exit_status=1
  60784. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  60785. done
  60786. objdir="$origobjdir"
  60787. # Try to remove the ${objdir}s in the directories where we deleted files
  60788. for dir in $rmdirs; do
  60789. if test -d "$dir"; then
  60790. - $show "rmdir $dir"
  60791. - $run rmdir $dir >/dev/null 2>&1
  60792. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  60793. fi
  60794. done
  60795. exit $exit_status
  60796. - ;;
  60797. +}
  60798. - "")
  60799. - $echo "$modename: you must specify a MODE" 1>&2
  60800. - $echo "$generic_help" 1>&2
  60801. - exit $EXIT_FAILURE
  60802. - ;;
  60803. - esac
  60804. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  60805. + func_mode_uninstall ${1+"$@"}
  60806. - if test -z "$exec_cmd"; then
  60807. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  60808. - $echo "$generic_help" 1>&2
  60809. - exit $EXIT_FAILURE
  60810. - fi
  60811. -fi # test -z "$show_help"
  60812. +test -z "$mode" && {
  60813. + help="$generic_help"
  60814. + func_fatal_help "you must specify a MODE"
  60815. +}
  60816. +
  60817. +test -z "$exec_cmd" && \
  60818. + func_fatal_help "invalid operation mode \`$mode'"
  60819. if test -n "$exec_cmd"; then
  60820. - eval exec $exec_cmd
  60821. + eval exec "$exec_cmd"
  60822. exit $EXIT_FAILURE
  60823. fi
  60824. -# We need to display help for each of the modes.
  60825. -case $mode in
  60826. -"") $echo \
  60827. -"Usage: $modename [OPTION]... [MODE-ARG]...
  60828. -
  60829. -Provide generalized library-building support services.
  60830. -
  60831. - --config show all configuration variables
  60832. - --debug enable verbose shell tracing
  60833. --n, --dry-run display commands without modifying any files
  60834. - --features display basic configuration information and exit
  60835. - --finish same as \`--mode=finish'
  60836. - --help display this help message and exit
  60837. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  60838. - --quiet same as \`--silent'
  60839. - --silent don't print informational messages
  60840. - --tag=TAG use configuration variables from tag TAG
  60841. - --version print version information
  60842. -
  60843. -MODE must be one of the following:
  60844. -
  60845. - clean remove files from the build directory
  60846. - compile compile a source file into a libtool object
  60847. - execute automatically set library path, then run a program
  60848. - finish complete the installation of libtool libraries
  60849. - install install libraries or executables
  60850. - link create a library or an executable
  60851. - uninstall remove libraries from an installed directory
  60852. -
  60853. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  60854. -a more detailed description of MODE.
  60855. -
  60856. -Report bugs to <bug-libtool@gnu.org>."
  60857. - exit $EXIT_SUCCESS
  60858. - ;;
  60859. -
  60860. -clean)
  60861. - $echo \
  60862. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  60863. -
  60864. -Remove files from the build directory.
  60865. -
  60866. -RM is the name of the program to use to delete files associated with each FILE
  60867. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  60868. -to RM.
  60869. -
  60870. -If FILE is a libtool library, object or program, all the files associated
  60871. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  60872. - ;;
  60873. -
  60874. -compile)
  60875. - $echo \
  60876. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  60877. -
  60878. -Compile a source file into a libtool library object.
  60879. -
  60880. -This mode accepts the following additional options:
  60881. -
  60882. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  60883. - -prefer-pic try to building PIC objects only
  60884. - -prefer-non-pic try to building non-PIC objects only
  60885. - -static always build a \`.o' file suitable for static linking
  60886. -
  60887. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  60888. -from the given SOURCEFILE.
  60889. -
  60890. -The output file name is determined by removing the directory component from
  60891. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  60892. -library object suffix, \`.lo'."
  60893. - ;;
  60894. -
  60895. -execute)
  60896. - $echo \
  60897. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  60898. -
  60899. -Automatically set library path, then run a program.
  60900. -
  60901. -This mode accepts the following additional options:
  60902. -
  60903. - -dlopen FILE add the directory containing FILE to the library path
  60904. -
  60905. -This mode sets the library path environment variable according to \`-dlopen'
  60906. -flags.
  60907. -
  60908. -If any of the ARGS are libtool executable wrappers, then they are translated
  60909. -into their corresponding uninstalled binary, and any of their required library
  60910. -directories are added to the library path.
  60911. -
  60912. -Then, COMMAND is executed, with ARGS as arguments."
  60913. - ;;
  60914. -
  60915. -finish)
  60916. - $echo \
  60917. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  60918. -
  60919. -Complete the installation of libtool libraries.
  60920. -
  60921. -Each LIBDIR is a directory that contains libtool libraries.
  60922. -
  60923. -The commands that this mode executes may require superuser privileges. Use
  60924. -the \`--dry-run' option if you just want to see what would be executed."
  60925. - ;;
  60926. -
  60927. -install)
  60928. - $echo \
  60929. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  60930. -
  60931. -Install executables or libraries.
  60932. -
  60933. -INSTALL-COMMAND is the installation command. The first component should be
  60934. -either the \`install' or \`cp' program.
  60935. -
  60936. -The rest of the components are interpreted as arguments to that command (only
  60937. -BSD-compatible install options are recognized)."
  60938. - ;;
  60939. -
  60940. -link)
  60941. - $echo \
  60942. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  60943. -
  60944. -Link object files or libraries together to form another library, or to
  60945. -create an executable program.
  60946. -
  60947. -LINK-COMMAND is a command using the C compiler that you would use to create
  60948. -a program from several object files.
  60949. -
  60950. -The following components of LINK-COMMAND are treated specially:
  60951. -
  60952. - -all-static do not do any dynamic linking at all
  60953. - -avoid-version do not add a version suffix if possible
  60954. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  60955. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  60956. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  60957. - -export-symbols SYMFILE
  60958. - try to export only the symbols listed in SYMFILE
  60959. - -export-symbols-regex REGEX
  60960. - try to export only the symbols matching REGEX
  60961. - -LLIBDIR search LIBDIR for required installed libraries
  60962. - -lNAME OUTPUT-FILE requires the installed library libNAME
  60963. - -module build a library that can dlopened
  60964. - -no-fast-install disable the fast-install mode
  60965. - -no-install link a not-installable executable
  60966. - -no-undefined declare that a library does not refer to external symbols
  60967. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  60968. - -objectlist FILE Use a list of object files found in FILE to specify objects
  60969. - -precious-files-regex REGEX
  60970. - don't remove output files matching REGEX
  60971. - -release RELEASE specify package release information
  60972. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  60973. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  60974. - -static do not do any dynamic linking of libtool libraries
  60975. - -version-info CURRENT[:REVISION[:AGE]]
  60976. - specify library version info [each variable defaults to 0]
  60977. -
  60978. -All other options (arguments beginning with \`-') are ignored.
  60979. -
  60980. -Every other argument is treated as a filename. Files ending in \`.la' are
  60981. -treated as uninstalled libtool libraries, other files are standard or library
  60982. -object files.
  60983. -
  60984. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  60985. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  60986. -required, except when creating a convenience library.
  60987. -
  60988. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  60989. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  60990. -
  60991. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  60992. -is created, otherwise an executable program is created."
  60993. - ;;
  60994. -
  60995. -uninstall)
  60996. - $echo \
  60997. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  60998. -
  60999. -Remove libraries from an installation directory.
  61000. -
  61001. -RM is the name of the program to use to delete files associated with each FILE
  61002. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61003. -to RM.
  61004. +exit $exit_status
  61005. -If FILE is a libtool library, all the files associated with it are deleted.
  61006. -Otherwise, only FILE itself is deleted using RM."
  61007. - ;;
  61008. -
  61009. -*)
  61010. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61011. - $echo "$help" 1>&2
  61012. - exit $EXIT_FAILURE
  61013. - ;;
  61014. -esac
  61015. -
  61016. -$echo
  61017. -$echo "Try \`$modename --help' for more information about other modes."
  61018. -
  61019. -exit $EXIT_SUCCESS
  61020. # The TAGs below are defined such that we never get into a situation
  61021. # in which we disable both kinds of libraries. Given conflicting
  61022. @@ -6417,10 +8402,12 @@
  61023. # ### END LIBTOOL TAG CONFIG: disable-shared
  61024. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  61025. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  61026. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  61027. # ### END LIBTOOL TAG CONFIG: disable-static
  61028. # Local Variables:
  61029. # mode:shell-script
  61030. # sh-indentation:2
  61031. # End:
  61032. +# vi:sw=2
  61033. +
  61034. diff -Nur libogg-1.1.3.orig/Makefile.in libogg-1.1.3/Makefile.in
  61035. --- libogg-1.1.3.orig/Makefile.in 2005-11-28 05:26:31.000000000 +0100
  61036. +++ libogg-1.1.3/Makefile.in 2011-02-17 18:12:13.783797189 +0100
  61037. @@ -1,8 +1,9 @@
  61038. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  61039. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61040. # @configure_input@
  61041. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61042. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  61043. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61044. +# Inc.
  61045. # This Makefile.in is free software; the Free Software Foundation
  61046. # gives unlimited permission to copy and/or distribute it,
  61047. # with or without modifications, as long as this notice is preserved.
  61048. @@ -14,15 +15,12 @@
  61049. @SET_MAKE@
  61050. -srcdir = @srcdir@
  61051. -top_srcdir = @top_srcdir@
  61052. VPATH = @srcdir@
  61053. pkgdatadir = $(datadir)/@PACKAGE@
  61054. -pkglibdir = $(libdir)/@PACKAGE@
  61055. pkgincludedir = $(includedir)/@PACKAGE@
  61056. -top_builddir = .
  61057. +pkglibdir = $(libdir)/@PACKAGE@
  61058. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61059. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61060. -INSTALL = @INSTALL@
  61061. install_sh_DATA = $(install_sh) -c -m 644
  61062. install_sh_PROGRAM = $(install_sh) -c
  61063. install_sh_SCRIPT = $(install_sh) -c
  61064. @@ -36,40 +34,60 @@
  61065. POST_UNINSTALL = :
  61066. build_triplet = @build@
  61067. host_triplet = @host@
  61068. +subdir = .
  61069. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  61070. $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  61071. $(srcdir)/libogg.spec.in $(srcdir)/ogg-uninstalled.pc.in \
  61072. $(srcdir)/ogg.pc.in $(top_srcdir)/configure AUTHORS COPYING \
  61073. compile config.guess config.sub depcomp install-sh ltmain.sh \
  61074. missing
  61075. -subdir = .
  61076. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61077. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  61078. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61079. $(ACLOCAL_M4)
  61080. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  61081. - configure.lineno configure.status.lineno
  61082. + configure.lineno config.status.lineno
  61083. mkinstalldirs = $(install_sh) -d
  61084. CONFIG_HEADER = config.h
  61085. CONFIG_CLEAN_FILES = libogg.spec ogg.pc ogg-uninstalled.pc
  61086. +CONFIG_CLEAN_VPATH_FILES =
  61087. SOURCES =
  61088. DIST_SOURCES =
  61089. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61090. html-recursive info-recursive install-data-recursive \
  61091. - install-exec-recursive install-info-recursive \
  61092. - install-recursive installcheck-recursive installdirs-recursive \
  61093. - pdf-recursive ps-recursive uninstall-info-recursive \
  61094. - uninstall-recursive
  61095. + install-dvi-recursive install-exec-recursive \
  61096. + install-html-recursive install-info-recursive \
  61097. + install-pdf-recursive install-ps-recursive install-recursive \
  61098. + installcheck-recursive installdirs-recursive pdf-recursive \
  61099. + ps-recursive uninstall-recursive
  61100. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  61101. am__vpath_adj = case $$p in \
  61102. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  61103. *) f=$$p;; \
  61104. esac;
  61105. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  61106. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  61107. +am__install_max = 40
  61108. +am__nobase_strip_setup = \
  61109. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  61110. +am__nobase_strip = \
  61111. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  61112. +am__nobase_list = $(am__nobase_strip_setup); \
  61113. + for p in $$list; do echo "$$p $$p"; done | \
  61114. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  61115. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  61116. + if (++n[$$2] == $(am__install_max)) \
  61117. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  61118. + END { for (dir in files) print dir, files[dir] }'
  61119. +am__base_list = \
  61120. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  61121. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  61122. am__installdirs = "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"
  61123. -m4dataDATA_INSTALL = $(INSTALL_DATA)
  61124. -pkgconfigDATA_INSTALL = $(INSTALL_DATA)
  61125. DATA = $(m4data_DATA) $(pkgconfig_DATA)
  61126. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61127. + distclean-recursive maintainer-clean-recursive
  61128. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61129. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61130. + distdir dist dist-all distcheck
  61131. ETAGS = etags
  61132. CTAGS = ctags
  61133. DIST_SUBDIRS = $(SUBDIRS)
  61134. @@ -77,16 +95,39 @@
  61135. distdir = $(PACKAGE)-$(VERSION)
  61136. top_distdir = $(distdir)
  61137. am__remove_distdir = \
  61138. - { test ! -d $(distdir) \
  61139. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  61140. - && rm -fr $(distdir); }; }
  61141. + { test ! -d "$(distdir)" \
  61142. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  61143. + && rm -fr "$(distdir)"; }; }
  61144. +am__relativize = \
  61145. + dir0=`pwd`; \
  61146. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61147. + sed_rest='s,^[^/]*/*,,'; \
  61148. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61149. + sed_butlast='s,/*[^/]*$$,,'; \
  61150. + while test -n "$$dir1"; do \
  61151. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61152. + if test "$$first" != "."; then \
  61153. + if test "$$first" = ".."; then \
  61154. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61155. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61156. + else \
  61157. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61158. + if test "$$first2" = "$$first"; then \
  61159. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61160. + else \
  61161. + dir2="../$$dir2"; \
  61162. + fi; \
  61163. + dir0="$$dir0"/"$$first"; \
  61164. + fi; \
  61165. + fi; \
  61166. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61167. + done; \
  61168. + reldir="$$dir2"
  61169. DIST_ARCHIVES = $(distdir).tar.gz $(distdir).zip
  61170. GZIP_ENV = --best
  61171. distuninstallcheck_listfiles = find . -type f -print
  61172. distcleancheck_listfiles = find . -type f -print
  61173. ACLOCAL = @ACLOCAL@
  61174. -AMDEP_FALSE = @AMDEP_FALSE@
  61175. -AMDEP_TRUE = @AMDEP_TRUE@
  61176. AMTAR = @AMTAR@
  61177. AR = @AR@
  61178. AUTOCONF = @AUTOCONF@
  61179. @@ -98,26 +139,25 @@
  61180. CFLAGS = @CFLAGS@
  61181. CPP = @CPP@
  61182. CPPFLAGS = @CPPFLAGS@
  61183. -CXX = @CXX@
  61184. -CXXCPP = @CXXCPP@
  61185. -CXXDEPMODE = @CXXDEPMODE@
  61186. -CXXFLAGS = @CXXFLAGS@
  61187. CYGPATH_W = @CYGPATH_W@
  61188. DEBUG = @DEBUG@
  61189. DEFS = @DEFS@
  61190. DEPDIR = @DEPDIR@
  61191. -ECHO = @ECHO@
  61192. +DSYMUTIL = @DSYMUTIL@
  61193. +DUMPBIN = @DUMPBIN@
  61194. ECHO_C = @ECHO_C@
  61195. ECHO_N = @ECHO_N@
  61196. ECHO_T = @ECHO_T@
  61197. EGREP = @EGREP@
  61198. EXEEXT = @EXEEXT@
  61199. -F77 = @F77@
  61200. -FFLAGS = @FFLAGS@
  61201. +FGREP = @FGREP@
  61202. +GREP = @GREP@
  61203. +INSTALL = @INSTALL@
  61204. INSTALL_DATA = @INSTALL_DATA@
  61205. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61206. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61207. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61208. +LD = @LD@
  61209. LDFLAGS = @LDFLAGS@
  61210. LIBOBJS = @LIBOBJS@
  61211. LIBS = @LIBS@
  61212. @@ -126,23 +166,30 @@
  61213. LIB_AGE = @LIB_AGE@
  61214. LIB_CURRENT = @LIB_CURRENT@
  61215. LIB_REVISION = @LIB_REVISION@
  61216. +LIPO = @LIPO@
  61217. LN_S = @LN_S@
  61218. LTLIBOBJS = @LTLIBOBJS@
  61219. MAINT = @MAINT@
  61220. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  61221. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  61222. MAKEINFO = @MAKEINFO@
  61223. +MKDIR_P = @MKDIR_P@
  61224. +NM = @NM@
  61225. +NMEDIT = @NMEDIT@
  61226. +OBJDUMP = @OBJDUMP@
  61227. OBJEXT = @OBJEXT@
  61228. OPT = @OPT@
  61229. +OTOOL = @OTOOL@
  61230. +OTOOL64 = @OTOOL64@
  61231. PACKAGE = @PACKAGE@
  61232. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61233. PACKAGE_NAME = @PACKAGE_NAME@
  61234. PACKAGE_STRING = @PACKAGE_STRING@
  61235. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61236. +PACKAGE_URL = @PACKAGE_URL@
  61237. PACKAGE_VERSION = @PACKAGE_VERSION@
  61238. PATH_SEPARATOR = @PATH_SEPARATOR@
  61239. PROFILE = @PROFILE@
  61240. RANLIB = @RANLIB@
  61241. +SED = @SED@
  61242. SET_MAKE = @SET_MAKE@
  61243. SHELL = @SHELL@
  61244. SIZE16 = @SIZE16@
  61245. @@ -152,16 +199,12 @@
  61246. USIZE16 = @USIZE16@
  61247. USIZE32 = @USIZE32@
  61248. VERSION = @VERSION@
  61249. -ac_ct_AR = @ac_ct_AR@
  61250. +abs_builddir = @abs_builddir@
  61251. +abs_srcdir = @abs_srcdir@
  61252. +abs_top_builddir = @abs_top_builddir@
  61253. +abs_top_srcdir = @abs_top_srcdir@
  61254. ac_ct_CC = @ac_ct_CC@
  61255. -ac_ct_CXX = @ac_ct_CXX@
  61256. -ac_ct_F77 = @ac_ct_F77@
  61257. -ac_ct_RANLIB = @ac_ct_RANLIB@
  61258. -ac_ct_STRIP = @ac_ct_STRIP@
  61259. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  61260. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  61261. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  61262. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  61263. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61264. am__include = @am__include@
  61265. am__leading_dot = @am__leading_dot@
  61266. am__quote = @am__quote@
  61267. @@ -173,28 +216,41 @@
  61268. build_cpu = @build_cpu@
  61269. build_os = @build_os@
  61270. build_vendor = @build_vendor@
  61271. +builddir = @builddir@
  61272. datadir = @datadir@
  61273. +datarootdir = @datarootdir@
  61274. +docdir = @docdir@
  61275. +dvidir = @dvidir@
  61276. exec_prefix = @exec_prefix@
  61277. host = @host@
  61278. host_alias = @host_alias@
  61279. host_cpu = @host_cpu@
  61280. host_os = @host_os@
  61281. host_vendor = @host_vendor@
  61282. +htmldir = @htmldir@
  61283. includedir = @includedir@
  61284. infodir = @infodir@
  61285. install_sh = @install_sh@
  61286. libdir = @libdir@
  61287. libexecdir = @libexecdir@
  61288. +localedir = @localedir@
  61289. localstatedir = @localstatedir@
  61290. +lt_ECHO = @lt_ECHO@
  61291. mandir = @mandir@
  61292. mkdir_p = @mkdir_p@
  61293. oldincludedir = @oldincludedir@
  61294. +pdfdir = @pdfdir@
  61295. prefix = @prefix@
  61296. program_transform_name = @program_transform_name@
  61297. +psdir = @psdir@
  61298. sbindir = @sbindir@
  61299. sharedstatedir = @sharedstatedir@
  61300. +srcdir = @srcdir@
  61301. sysconfdir = @sysconfdir@
  61302. target_alias = @target_alias@
  61303. +top_build_prefix = @top_build_prefix@
  61304. +top_builddir = @top_builddir@
  61305. +top_srcdir = @top_srcdir@
  61306. AUTOMAKE_OPTIONS = foreign 1.6 dist-zip
  61307. SUBDIRS = src include doc win32
  61308. m4datadir = $(datadir)/aclocal
  61309. @@ -221,15 +277,15 @@
  61310. @for dep in $?; do \
  61311. case '$(am__configure_deps)' in \
  61312. *$$dep*) \
  61313. - echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  61314. - cd $(srcdir) && $(AUTOMAKE) --foreign \
  61315. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
  61316. + $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
  61317. && exit 0; \
  61318. exit 1;; \
  61319. esac; \
  61320. done; \
  61321. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  61322. - cd $(top_srcdir) && \
  61323. - $(AUTOMAKE) --foreign Makefile
  61324. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  61325. + $(am__cd) $(top_srcdir) && \
  61326. + $(AUTOMAKE) --foreign Makefile
  61327. .PRECIOUS: Makefile
  61328. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61329. @case '$?' in \
  61330. @@ -245,21 +301,22 @@
  61331. $(SHELL) ./config.status --recheck
  61332. $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  61333. - cd $(srcdir) && $(AUTOCONF)
  61334. + $(am__cd) $(srcdir) && $(AUTOCONF)
  61335. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  61336. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61337. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61338. +$(am__aclocal_m4_deps):
  61339. config.h: stamp-h1
  61340. @if test ! -f $@; then \
  61341. rm -f stamp-h1; \
  61342. - $(MAKE) stamp-h1; \
  61343. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  61344. else :; fi
  61345. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  61346. @rm -f stamp-h1
  61347. cd $(top_builddir) && $(SHELL) ./config.status config.h
  61348. $(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
  61349. - cd $(top_srcdir) && $(AUTOHEADER)
  61350. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  61351. rm -f stamp-h1
  61352. touch $@
  61353. @@ -279,42 +336,47 @@
  61354. -rm -rf .libs _libs
  61355. distclean-libtool:
  61356. - -rm -f libtool
  61357. -uninstall-info-am:
  61358. + -rm -f libtool config.lt
  61359. install-m4dataDATA: $(m4data_DATA)
  61360. @$(NORMAL_INSTALL)
  61361. - test -z "$(m4datadir)" || $(mkdir_p) "$(DESTDIR)$(m4datadir)"
  61362. - @list='$(m4data_DATA)'; for p in $$list; do \
  61363. + test -z "$(m4datadir)" || $(MKDIR_P) "$(DESTDIR)$(m4datadir)"
  61364. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  61365. + for p in $$list; do \
  61366. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  61367. - f=$(am__strip_dir) \
  61368. - echo " $(m4dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(m4datadir)/$$f'"; \
  61369. - $(m4dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(m4datadir)/$$f"; \
  61370. + echo "$$d$$p"; \
  61371. + done | $(am__base_list) | \
  61372. + while read files; do \
  61373. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
  61374. + $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
  61375. done
  61376. uninstall-m4dataDATA:
  61377. @$(NORMAL_UNINSTALL)
  61378. - @list='$(m4data_DATA)'; for p in $$list; do \
  61379. - f=$(am__strip_dir) \
  61380. - echo " rm -f '$(DESTDIR)$(m4datadir)/$$f'"; \
  61381. - rm -f "$(DESTDIR)$(m4datadir)/$$f"; \
  61382. - done
  61383. + @list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
  61384. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  61385. + test -n "$$files" || exit 0; \
  61386. + echo " ( cd '$(DESTDIR)$(m4datadir)' && rm -f" $$files ")"; \
  61387. + cd "$(DESTDIR)$(m4datadir)" && rm -f $$files
  61388. install-pkgconfigDATA: $(pkgconfig_DATA)
  61389. @$(NORMAL_INSTALL)
  61390. - test -z "$(pkgconfigdir)" || $(mkdir_p) "$(DESTDIR)$(pkgconfigdir)"
  61391. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  61392. + test -z "$(pkgconfigdir)" || $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)"
  61393. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  61394. + for p in $$list; do \
  61395. if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  61396. - f=$(am__strip_dir) \
  61397. - echo " $(pkgconfigDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  61398. - $(pkgconfigDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  61399. + echo "$$d$$p"; \
  61400. + done | $(am__base_list) | \
  61401. + while read files; do \
  61402. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
  61403. + $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
  61404. done
  61405. uninstall-pkgconfigDATA:
  61406. @$(NORMAL_UNINSTALL)
  61407. - @list='$(pkgconfig_DATA)'; for p in $$list; do \
  61408. - f=$(am__strip_dir) \
  61409. - echo " rm -f '$(DESTDIR)$(pkgconfigdir)/$$f'"; \
  61410. - rm -f "$(DESTDIR)$(pkgconfigdir)/$$f"; \
  61411. - done
  61412. + @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
  61413. + files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
  61414. + test -n "$$files" || exit 0; \
  61415. + echo " ( cd '$(DESTDIR)$(pkgconfigdir)' && rm -f" $$files ")"; \
  61416. + cd "$(DESTDIR)$(pkgconfigdir)" && rm -f $$files
  61417. # This directory's subdirectories are mostly independent; you can cd
  61418. # into them and run `make' without going through this Makefile.
  61419. @@ -323,7 +385,7 @@
  61420. # (which will cause the Makefiles to be regenerated when you run `make');
  61421. # (2) otherwise, pass the desired values on the `make' command line.
  61422. $(RECURSIVE_TARGETS):
  61423. - @failcom='exit 1'; \
  61424. + @fail= failcom='exit 1'; \
  61425. for f in x $$MAKEFLAGS; do \
  61426. case $$f in \
  61427. *=* | --[!k]*);; \
  61428. @@ -340,16 +402,15 @@
  61429. else \
  61430. local_target="$$target"; \
  61431. fi; \
  61432. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61433. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61434. || eval $$failcom; \
  61435. done; \
  61436. if test "$$dot_seen" = "no"; then \
  61437. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  61438. fi; test -z "$$fail"
  61439. -mostlyclean-recursive clean-recursive distclean-recursive \
  61440. -maintainer-clean-recursive:
  61441. - @failcom='exit 1'; \
  61442. +$(RECURSIVE_CLEAN_TARGETS):
  61443. + @fail= failcom='exit 1'; \
  61444. for f in x $$MAKEFLAGS; do \
  61445. case $$f in \
  61446. *=* | --[!k]*);; \
  61447. @@ -375,16 +436,16 @@
  61448. else \
  61449. local_target="$$target"; \
  61450. fi; \
  61451. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61452. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61453. || eval $$failcom; \
  61454. done && test -z "$$fail"
  61455. tags-recursive:
  61456. list='$(SUBDIRS)'; for subdir in $$list; do \
  61457. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61458. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61459. done
  61460. ctags-recursive:
  61461. list='$(SUBDIRS)'; for subdir in $$list; do \
  61462. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61463. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61464. done
  61465. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61466. @@ -392,14 +453,14 @@
  61467. unique=`for i in $$list; do \
  61468. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61469. done | \
  61470. - $(AWK) ' { files[$$0] = 1; } \
  61471. - END { for (i in files) print i; }'`; \
  61472. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61473. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61474. mkid -fID $$unique
  61475. tags: TAGS
  61476. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61477. $(TAGS_FILES) $(LISP)
  61478. - tags=; \
  61479. + set x; \
  61480. here=`pwd`; \
  61481. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61482. include_option=--etags-include; \
  61483. @@ -411,84 +472,103 @@
  61484. list='$(SUBDIRS)'; for subdir in $$list; do \
  61485. if test "$$subdir" = .; then :; else \
  61486. test ! -f $$subdir/TAGS || \
  61487. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61488. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61489. fi; \
  61490. done; \
  61491. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61492. unique=`for i in $$list; do \
  61493. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61494. done | \
  61495. - $(AWK) ' { files[$$0] = 1; } \
  61496. - END { for (i in files) print i; }'`; \
  61497. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61498. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61499. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61500. + shift; \
  61501. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61502. test -n "$$unique" || unique=$$empty_fix; \
  61503. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61504. - $$tags $$unique; \
  61505. + if test $$# -gt 0; then \
  61506. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61507. + "$$@" $$unique; \
  61508. + else \
  61509. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61510. + $$unique; \
  61511. + fi; \
  61512. fi
  61513. ctags: CTAGS
  61514. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61515. $(TAGS_FILES) $(LISP)
  61516. - tags=; \
  61517. - here=`pwd`; \
  61518. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61519. unique=`for i in $$list; do \
  61520. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61521. done | \
  61522. - $(AWK) ' { files[$$0] = 1; } \
  61523. - END { for (i in files) print i; }'`; \
  61524. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61525. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61526. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61527. + test -z "$(CTAGS_ARGS)$$unique" \
  61528. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61529. - $$tags $$unique
  61530. + $$unique
  61531. GTAGS:
  61532. here=`$(am__cd) $(top_builddir) && pwd` \
  61533. - && cd $(top_srcdir) \
  61534. - && gtags -i $(GTAGS_ARGS) $$here
  61535. + && $(am__cd) $(top_srcdir) \
  61536. + && gtags -i $(GTAGS_ARGS) "$$here"
  61537. distclean-tags:
  61538. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61539. distdir: $(DISTFILES)
  61540. $(am__remove_distdir)
  61541. - mkdir $(distdir)
  61542. - $(mkdir_p) $(distdir)/. $(distdir)/include/ogg
  61543. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61544. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61545. - list='$(DISTFILES)'; for file in $$list; do \
  61546. - case $$file in \
  61547. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61548. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61549. - esac; \
  61550. + test -d "$(distdir)" || mkdir "$(distdir)"
  61551. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61552. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61553. + list='$(DISTFILES)'; \
  61554. + dist_files=`for file in $$list; do echo $$file; done | \
  61555. + sed -e "s|^$$srcdirstrip/||;t" \
  61556. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61557. + case $$dist_files in \
  61558. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61559. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61560. + sort -u` ;; \
  61561. + esac; \
  61562. + for file in $$dist_files; do \
  61563. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61564. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61565. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61566. - dir="/$$dir"; \
  61567. - $(mkdir_p) "$(distdir)$$dir"; \
  61568. - else \
  61569. - dir=''; \
  61570. - fi; \
  61571. if test -d $$d/$$file; then \
  61572. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61573. + if test -d "$(distdir)/$$file"; then \
  61574. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61575. + fi; \
  61576. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61577. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61578. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61579. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61580. fi; \
  61581. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61582. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61583. else \
  61584. - test -f $(distdir)/$$file \
  61585. - || cp -p $$d/$$file $(distdir)/$$file \
  61586. + test -f "$(distdir)/$$file" \
  61587. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61588. || exit 1; \
  61589. fi; \
  61590. done
  61591. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61592. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61593. if test "$$subdir" = .; then :; else \
  61594. test -d "$(distdir)/$$subdir" \
  61595. - || $(mkdir_p) "$(distdir)/$$subdir" \
  61596. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  61597. || exit 1; \
  61598. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61599. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61600. - (cd $$subdir && \
  61601. + fi; \
  61602. + done
  61603. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61604. + if test "$$subdir" = .; then :; else \
  61605. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61606. + $(am__relativize); \
  61607. + new_distdir=$$reldir; \
  61608. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61609. + $(am__relativize); \
  61610. + new_top_distdir=$$reldir; \
  61611. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61612. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61613. + ($(am__cd) $$subdir && \
  61614. $(MAKE) $(AM_MAKEFLAGS) \
  61615. - top_distdir="$$top_distdir" \
  61616. - distdir="$$distdir/$$subdir" \
  61617. + top_distdir="$$new_top_distdir" \
  61618. + distdir="$$new_distdir" \
  61619. + am__remove_distdir=: \
  61620. + am__skip_length_check=: \
  61621. + am__skip_mode_fix=: \
  61622. distdir) \
  61623. || exit 1; \
  61624. fi; \
  61625. @@ -496,11 +576,13 @@
  61626. $(MAKE) $(AM_MAKEFLAGS) \
  61627. top_distdir="$(top_distdir)" distdir="$(distdir)" \
  61628. dist-hook
  61629. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61630. + -test -n "$(am__skip_mode_fix)" \
  61631. + || find "$(distdir)" -type d ! -perm -755 \
  61632. + -exec chmod u+rwx,go+rx {} \; -o \
  61633. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61634. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61635. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  61636. - || chmod -R a+r $(distdir)
  61637. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61638. + || chmod -R a+r "$(distdir)"
  61639. dist-gzip: distdir
  61640. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61641. $(am__remove_distdir)
  61642. @@ -509,6 +591,14 @@
  61643. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  61644. $(am__remove_distdir)
  61645. +dist-lzma: distdir
  61646. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61647. + $(am__remove_distdir)
  61648. +
  61649. +dist-xz: distdir
  61650. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61651. + $(am__remove_distdir)
  61652. +
  61653. dist-tarZ: distdir
  61654. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61655. $(am__remove_distdir)
  61656. @@ -533,13 +623,17 @@
  61657. distcheck: dist
  61658. case '$(DIST_ARCHIVES)' in \
  61659. *.tar.gz*) \
  61660. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61661. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61662. *.tar.bz2*) \
  61663. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61664. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61665. + *.tar.lzma*) \
  61666. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61667. + *.tar.xz*) \
  61668. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61669. *.tar.Z*) \
  61670. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61671. *.shar.gz*) \
  61672. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61673. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61674. *.zip*) \
  61675. unzip $(distdir).zip ;;\
  61676. esac
  61677. @@ -547,9 +641,11 @@
  61678. mkdir $(distdir)/_build
  61679. mkdir $(distdir)/_inst
  61680. chmod a-w $(distdir)
  61681. + test -d $(distdir)/_build || exit 0; \
  61682. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61683. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61684. - && cd $(distdir)/_build \
  61685. + && am__cwd=`pwd` \
  61686. + && $(am__cd) $(distdir)/_build \
  61687. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  61688. $(DISTCHECK_CONFIGURE_FLAGS) \
  61689. && $(MAKE) $(AM_MAKEFLAGS) \
  61690. @@ -571,13 +667,15 @@
  61691. && rm -rf "$$dc_destdir" \
  61692. && $(MAKE) $(AM_MAKEFLAGS) dist \
  61693. && rm -rf $(DIST_ARCHIVES) \
  61694. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  61695. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  61696. + && cd "$$am__cwd" \
  61697. + || exit 1
  61698. $(am__remove_distdir)
  61699. @(echo "$(distdir) archives ready for distribution: "; \
  61700. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  61701. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  61702. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  61703. distuninstallcheck:
  61704. - @cd $(distuninstallcheck_dir) \
  61705. + @$(am__cd) '$(distuninstallcheck_dir)' \
  61706. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  61707. || { echo "ERROR: files left after uninstall:" ; \
  61708. if test -n "$(DESTDIR)"; then \
  61709. @@ -600,7 +698,7 @@
  61710. installdirs: installdirs-recursive
  61711. installdirs-am:
  61712. for dir in "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
  61713. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  61714. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  61715. done
  61716. install: install-recursive
  61717. install-exec: install-exec-recursive
  61718. @@ -622,6 +720,7 @@
  61719. distclean-generic:
  61720. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  61721. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  61722. maintainer-clean-generic:
  61723. @echo "This command is intended for maintainers to use"
  61724. @@ -642,18 +741,38 @@
  61725. html: html-recursive
  61726. +html-am:
  61727. +
  61728. info: info-recursive
  61729. info-am:
  61730. install-data-am: install-m4dataDATA install-pkgconfigDATA
  61731. +install-dvi: install-dvi-recursive
  61732. +
  61733. +install-dvi-am:
  61734. +
  61735. install-exec-am:
  61736. +install-html: install-html-recursive
  61737. +
  61738. +install-html-am:
  61739. +
  61740. install-info: install-info-recursive
  61741. +install-info-am:
  61742. +
  61743. install-man:
  61744. +install-pdf: install-pdf-recursive
  61745. +
  61746. +install-pdf-am:
  61747. +
  61748. +install-ps: install-ps-recursive
  61749. +
  61750. +install-ps-am:
  61751. +
  61752. installcheck-am:
  61753. maintainer-clean: maintainer-clean-recursive
  61754. @@ -674,26 +793,27 @@
  61755. ps-am:
  61756. -uninstall-am: uninstall-info-am uninstall-m4dataDATA \
  61757. - uninstall-pkgconfigDATA
  61758. +uninstall-am: uninstall-m4dataDATA uninstall-pkgconfigDATA
  61759. -uninstall-info: uninstall-info-recursive
  61760. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  61761. + ctags-recursive install-am install-strip tags-recursive
  61762. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  61763. - check-am clean clean-generic clean-libtool clean-recursive \
  61764. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  61765. - dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
  61766. - distclean-generic distclean-hdr distclean-libtool \
  61767. - distclean-recursive distclean-tags distcleancheck distdir \
  61768. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  61769. + all all-am am--refresh check check-am clean clean-generic \
  61770. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  61771. + dist-gzip dist-hook dist-lzma dist-shar dist-tarZ dist-xz \
  61772. + dist-zip distcheck distclean distclean-generic distclean-hdr \
  61773. + distclean-libtool distclean-tags distcleancheck distdir \
  61774. distuninstallcheck dvi dvi-am html html-am info info-am \
  61775. - install install-am install-data install-data-am install-exec \
  61776. - install-exec-am install-info install-info-am \
  61777. - install-m4dataDATA install-man install-pkgconfigDATA \
  61778. - install-strip installcheck installcheck-am installdirs \
  61779. - installdirs-am maintainer-clean maintainer-clean-generic \
  61780. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  61781. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  61782. - tags tags-recursive uninstall uninstall-am uninstall-info-am \
  61783. + install install-am install-data install-data-am install-dvi \
  61784. + install-dvi-am install-exec install-exec-am install-html \
  61785. + install-html-am install-info install-info-am \
  61786. + install-m4dataDATA install-man install-pdf install-pdf-am \
  61787. + install-pkgconfigDATA install-ps install-ps-am install-strip \
  61788. + installcheck installcheck-am installdirs installdirs-am \
  61789. + maintainer-clean maintainer-clean-generic mostlyclean \
  61790. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  61791. + tags tags-recursive uninstall uninstall-am \
  61792. uninstall-m4dataDATA uninstall-pkgconfigDATA
  61793. @@ -708,6 +828,7 @@
  61794. profile:
  61795. $(MAKE) all CFLAGS="@PROFILE@"
  61796. +
  61797. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  61798. # Otherwise a system limit (for SysV at least) may be exceeded.
  61799. .NOEXPORT:
  61800. diff -Nur libogg-1.1.3.orig/missing libogg-1.1.3/missing
  61801. --- libogg-1.1.3.orig/missing 2005-04-14 07:08:53.000000000 +0200
  61802. +++ libogg-1.1.3/missing 2011-02-17 18:12:13.513552365 +0100
  61803. @@ -1,10 +1,10 @@
  61804. #! /bin/sh
  61805. # Common stub for a few missing GNU programs while installing.
  61806. -scriptversion=2005-02-08.22
  61807. +scriptversion=2009-04-28.21; # UTC
  61808. -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
  61809. -# Free Software Foundation, Inc.
  61810. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  61811. +# 2008, 2009 Free Software Foundation, Inc.
  61812. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  61813. # This program is free software; you can redistribute it and/or modify
  61814. @@ -18,9 +18,7 @@
  61815. # GNU General Public License for more details.
  61816. # You should have received a copy of the GNU General Public License
  61817. -# along with this program; if not, write to the Free Software
  61818. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  61819. -# 02111-1307, USA.
  61820. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  61821. # As a special exception to the GNU General Public License, if you
  61822. # distribute this file as part of a program that contains a
  61823. @@ -33,6 +31,8 @@
  61824. fi
  61825. run=:
  61826. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  61827. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  61828. # In the cases where this matters, `missing' is being run in the
  61829. # srcdir already.
  61830. @@ -44,7 +44,7 @@
  61831. msg="missing on your system"
  61832. -case "$1" in
  61833. +case $1 in
  61834. --run)
  61835. # Try to run requested program, and just exit if it succeeds.
  61836. run=
  61837. @@ -77,6 +77,7 @@
  61838. aclocal touch file \`aclocal.m4'
  61839. autoconf touch file \`configure'
  61840. autoheader touch file \`config.h.in'
  61841. + autom4te touch the output file, or create a stub one
  61842. automake touch all \`Makefile.in' files
  61843. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  61844. flex create \`lex.yy.c', if possible, from existing .c
  61845. @@ -86,6 +87,9 @@
  61846. tar try tar, gnutar, gtar, then tar without non-portable flags
  61847. yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  61848. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  61849. +\`g' are ignored when checking the name.
  61850. +
  61851. Send bug reports to <bug-automake@gnu.org>."
  61852. exit $?
  61853. ;;
  61854. @@ -103,15 +107,22 @@
  61855. esac
  61856. +# normalize program name to check for.
  61857. +program=`echo "$1" | sed '
  61858. + s/^gnu-//; t
  61859. + s/^gnu//; t
  61860. + s/^g//; t'`
  61861. +
  61862. # Now exit if we have it, but it failed. Also exit now if we
  61863. # don't have it and --version was passed (most likely to detect
  61864. -# the program).
  61865. -case "$1" in
  61866. - lex|yacc)
  61867. +# the program). This is about non-GNU programs, so use $1 not
  61868. +# $program.
  61869. +case $1 in
  61870. + lex*|yacc*)
  61871. # Not GNU programs, they don't have --version.
  61872. ;;
  61873. - tar)
  61874. + tar*)
  61875. if test -n "$run"; then
  61876. echo 1>&2 "ERROR: \`tar' requires --run"
  61877. exit 1
  61878. @@ -135,7 +146,7 @@
  61879. # If it does not exist, or fails to run (possibly an outdated version),
  61880. # try to emulate it.
  61881. -case "$1" in
  61882. +case $program in
  61883. aclocal*)
  61884. echo 1>&2 "\
  61885. WARNING: \`$1' is $msg. You should only need it if
  61886. @@ -145,7 +156,7 @@
  61887. touch aclocal.m4
  61888. ;;
  61889. - autoconf)
  61890. + autoconf*)
  61891. echo 1>&2 "\
  61892. WARNING: \`$1' is $msg. You should only need it if
  61893. you modified \`${configure_ac}'. You might want to install the
  61894. @@ -154,7 +165,7 @@
  61895. touch configure
  61896. ;;
  61897. - autoheader)
  61898. + autoheader*)
  61899. echo 1>&2 "\
  61900. WARNING: \`$1' is $msg. You should only need it if
  61901. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  61902. @@ -164,7 +175,7 @@
  61903. test -z "$files" && files="config.h"
  61904. touch_files=
  61905. for f in $files; do
  61906. - case "$f" in
  61907. + case $f in
  61908. *:*) touch_files="$touch_files "`echo "$f" |
  61909. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  61910. *) touch_files="$touch_files $f.in";;
  61911. @@ -184,7 +195,7 @@
  61912. while read f; do touch "$f"; done
  61913. ;;
  61914. - autom4te)
  61915. + autom4te*)
  61916. echo 1>&2 "\
  61917. WARNING: \`$1' is needed, but is $msg.
  61918. You might have modified some files without having the
  61919. @@ -192,8 +203,8 @@
  61920. You can get \`$1' as part of \`Autoconf' from any GNU
  61921. archive site."
  61922. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  61923. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  61924. + file=`echo "$*" | sed -n "$sed_output"`
  61925. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  61926. if test -f "$file"; then
  61927. touch $file
  61928. else
  61929. @@ -207,80 +218,78 @@
  61930. fi
  61931. ;;
  61932. - bison|yacc)
  61933. + bison*|yacc*)
  61934. echo 1>&2 "\
  61935. WARNING: \`$1' $msg. You should only need it if
  61936. you modified a \`.y' file. You may need the \`Bison' package
  61937. in order for those modifications to take effect. You can get
  61938. \`Bison' from any GNU archive site."
  61939. rm -f y.tab.c y.tab.h
  61940. - if [ $# -ne 1 ]; then
  61941. + if test $# -ne 1; then
  61942. eval LASTARG="\${$#}"
  61943. - case "$LASTARG" in
  61944. + case $LASTARG in
  61945. *.y)
  61946. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  61947. - if [ -f "$SRCFILE" ]; then
  61948. + if test -f "$SRCFILE"; then
  61949. cp "$SRCFILE" y.tab.c
  61950. fi
  61951. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  61952. - if [ -f "$SRCFILE" ]; then
  61953. + if test -f "$SRCFILE"; then
  61954. cp "$SRCFILE" y.tab.h
  61955. fi
  61956. ;;
  61957. esac
  61958. fi
  61959. - if [ ! -f y.tab.h ]; then
  61960. + if test ! -f y.tab.h; then
  61961. echo >y.tab.h
  61962. fi
  61963. - if [ ! -f y.tab.c ]; then
  61964. + if test ! -f y.tab.c; then
  61965. echo 'main() { return 0; }' >y.tab.c
  61966. fi
  61967. ;;
  61968. - lex|flex)
  61969. + lex*|flex*)
  61970. echo 1>&2 "\
  61971. WARNING: \`$1' is $msg. You should only need it if
  61972. you modified a \`.l' file. You may need the \`Flex' package
  61973. in order for those modifications to take effect. You can get
  61974. \`Flex' from any GNU archive site."
  61975. rm -f lex.yy.c
  61976. - if [ $# -ne 1 ]; then
  61977. + if test $# -ne 1; then
  61978. eval LASTARG="\${$#}"
  61979. - case "$LASTARG" in
  61980. + case $LASTARG in
  61981. *.l)
  61982. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  61983. - if [ -f "$SRCFILE" ]; then
  61984. + if test -f "$SRCFILE"; then
  61985. cp "$SRCFILE" lex.yy.c
  61986. fi
  61987. ;;
  61988. esac
  61989. fi
  61990. - if [ ! -f lex.yy.c ]; then
  61991. + if test ! -f lex.yy.c; then
  61992. echo 'main() { return 0; }' >lex.yy.c
  61993. fi
  61994. ;;
  61995. - help2man)
  61996. + help2man*)
  61997. echo 1>&2 "\
  61998. WARNING: \`$1' is $msg. You should only need it if
  61999. you modified a dependency of a manual page. You may need the
  62000. \`Help2man' package in order for those modifications to take
  62001. effect. You can get \`Help2man' from any GNU archive site."
  62002. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  62003. - if test -z "$file"; then
  62004. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  62005. - fi
  62006. - if [ -f "$file" ]; then
  62007. + file=`echo "$*" | sed -n "$sed_output"`
  62008. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  62009. + if test -f "$file"; then
  62010. touch $file
  62011. else
  62012. test -z "$file" || exec >$file
  62013. echo ".ab help2man is required to generate this page"
  62014. - exit 1
  62015. + exit $?
  62016. fi
  62017. ;;
  62018. - makeinfo)
  62019. + makeinfo*)
  62020. echo 1>&2 "\
  62021. WARNING: \`$1' is $msg. You should only need it if
  62022. you modified a \`.texi' or \`.texinfo' file, or any other file
  62023. @@ -289,18 +298,27 @@
  62024. DU, IRIX). You might want to install the \`Texinfo' package or
  62025. the \`GNU make' package. Grab either from any GNU archive site."
  62026. # The file to touch is that specified with -o ...
  62027. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  62028. + file=`echo "$*" | sed -n "$sed_output"`
  62029. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  62030. if test -z "$file"; then
  62031. # ... or it is the one specified with @setfilename ...
  62032. infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  62033. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
  62034. + file=`sed -n '
  62035. + /^@setfilename/{
  62036. + s/.* \([^ ]*\) *$/\1/
  62037. + p
  62038. + q
  62039. + }' $infile`
  62040. # ... or it is derived from the source name (dir/f.texi becomes f.info)
  62041. test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  62042. fi
  62043. + # If the file does not exist, the user really needs makeinfo;
  62044. + # let's fail without touching anything.
  62045. + test -f $file || exit 1
  62046. touch $file
  62047. ;;
  62048. - tar)
  62049. + tar*)
  62050. shift
  62051. # We have already tried tar in the generic part.
  62052. @@ -314,13 +332,13 @@
  62053. fi
  62054. firstarg="$1"
  62055. if shift; then
  62056. - case "$firstarg" in
  62057. + case $firstarg in
  62058. *o*)
  62059. firstarg=`echo "$firstarg" | sed s/o//`
  62060. tar "$firstarg" "$@" && exit 0
  62061. ;;
  62062. esac
  62063. - case "$firstarg" in
  62064. + case $firstarg in
  62065. *h*)
  62066. firstarg=`echo "$firstarg" | sed s/h//`
  62067. tar "$firstarg" "$@" && exit 0
  62068. @@ -353,5 +371,6 @@
  62069. # eval: (add-hook 'write-file-hooks 'time-stamp)
  62070. # time-stamp-start: "scriptversion="
  62071. # time-stamp-format: "%:y-%02m-%02d.%02H"
  62072. -# time-stamp-end: "$"
  62073. +# time-stamp-time-zone: "UTC"
  62074. +# time-stamp-end: "; # UTC"
  62075. # End:
  62076. diff -Nur libogg-1.1.3.orig/src/Makefile.in libogg-1.1.3/src/Makefile.in
  62077. --- libogg-1.1.3.orig/src/Makefile.in 2005-11-28 05:26:30.000000000 +0100
  62078. +++ libogg-1.1.3/src/Makefile.in 2011-02-17 18:12:13.714802356 +0100
  62079. @@ -1,8 +1,9 @@
  62080. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  62081. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62082. # @configure_input@
  62083. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62084. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  62085. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62086. +# Inc.
  62087. # This Makefile.in is free software; the Free Software Foundation
  62088. # gives unlimited permission to copy and/or distribute it,
  62089. # with or without modifications, as long as this notice is preserved.
  62090. @@ -15,17 +16,12 @@
  62091. @SET_MAKE@
  62092. -SOURCES = $(libogg_la_SOURCES) $(test_bitwise_SOURCES) $(test_framing_SOURCES)
  62093. -
  62094. -srcdir = @srcdir@
  62095. -top_srcdir = @top_srcdir@
  62096. VPATH = @srcdir@
  62097. pkgdatadir = $(datadir)/@PACKAGE@
  62098. -pkglibdir = $(libdir)/@PACKAGE@
  62099. pkgincludedir = $(includedir)/@PACKAGE@
  62100. -top_builddir = ..
  62101. +pkglibdir = $(libdir)/@PACKAGE@
  62102. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62103. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62104. -INSTALL = @INSTALL@
  62105. install_sh_DATA = $(install_sh) -c -m 644
  62106. install_sh_PROGRAM = $(install_sh) -c
  62107. install_sh_SCRIPT = $(install_sh) -c
  62108. @@ -49,36 +45,62 @@
  62109. mkinstalldirs = $(install_sh) -d
  62110. CONFIG_HEADER = $(top_builddir)/config.h
  62111. CONFIG_CLEAN_FILES =
  62112. +CONFIG_CLEAN_VPATH_FILES =
  62113. am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  62114. am__vpath_adj = case $$p in \
  62115. $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  62116. *) f=$$p;; \
  62117. esac;
  62118. -am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
  62119. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  62120. +am__install_max = 40
  62121. +am__nobase_strip_setup = \
  62122. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  62123. +am__nobase_strip = \
  62124. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  62125. +am__nobase_list = $(am__nobase_strip_setup); \
  62126. + for p in $$list; do echo "$$p $$p"; done | \
  62127. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  62128. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  62129. + if (++n[$$2] == $(am__install_max)) \
  62130. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  62131. + END { for (dir in files) print dir, files[dir] }'
  62132. +am__base_list = \
  62133. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  62134. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  62135. am__installdirs = "$(DESTDIR)$(libdir)"
  62136. -libLTLIBRARIES_INSTALL = $(INSTALL)
  62137. LTLIBRARIES = $(lib_LTLIBRARIES)
  62138. libogg_la_LIBADD =
  62139. am_libogg_la_OBJECTS = framing.lo bitwise.lo
  62140. libogg_la_OBJECTS = $(am_libogg_la_OBJECTS)
  62141. +libogg_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  62142. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62143. + $(libogg_la_LDFLAGS) $(LDFLAGS) -o $@
  62144. PROGRAMS = $(noinst_PROGRAMS)
  62145. am_test_bitwise_OBJECTS = test_bitwise-bitwise.$(OBJEXT)
  62146. test_bitwise_OBJECTS = $(am_test_bitwise_OBJECTS)
  62147. test_bitwise_LDADD = $(LDADD)
  62148. +test_bitwise_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  62149. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_bitwise_CFLAGS) \
  62150. + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  62151. am_test_framing_OBJECTS = test_framing-framing.$(OBJEXT)
  62152. test_framing_OBJECTS = $(am_test_framing_OBJECTS)
  62153. test_framing_LDADD = $(LDADD)
  62154. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  62155. +test_framing_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
  62156. + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_framing_CFLAGS) \
  62157. + $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
  62158. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62159. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62160. am__depfiles_maybe = depfiles
  62161. +am__mv = mv -f
  62162. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62163. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62164. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  62165. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  62166. - $(AM_CFLAGS) $(CFLAGS)
  62167. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62168. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  62169. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62170. CCLD = $(CC)
  62171. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62172. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  62173. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62174. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  62175. + $(LDFLAGS) -o $@
  62176. SOURCES = $(libogg_la_SOURCES) $(test_bitwise_SOURCES) \
  62177. $(test_framing_SOURCES)
  62178. DIST_SOURCES = $(libogg_la_SOURCES) $(test_bitwise_SOURCES) \
  62179. @@ -87,8 +109,6 @@
  62180. CTAGS = ctags
  62181. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62182. ACLOCAL = @ACLOCAL@
  62183. -AMDEP_FALSE = @AMDEP_FALSE@
  62184. -AMDEP_TRUE = @AMDEP_TRUE@
  62185. AMTAR = @AMTAR@
  62186. AR = @AR@
  62187. AUTOCONF = @AUTOCONF@
  62188. @@ -100,26 +120,25 @@
  62189. CFLAGS = @CFLAGS@
  62190. CPP = @CPP@
  62191. CPPFLAGS = @CPPFLAGS@
  62192. -CXX = @CXX@
  62193. -CXXCPP = @CXXCPP@
  62194. -CXXDEPMODE = @CXXDEPMODE@
  62195. -CXXFLAGS = @CXXFLAGS@
  62196. CYGPATH_W = @CYGPATH_W@
  62197. DEBUG = @DEBUG@
  62198. DEFS = @DEFS@
  62199. DEPDIR = @DEPDIR@
  62200. -ECHO = @ECHO@
  62201. +DSYMUTIL = @DSYMUTIL@
  62202. +DUMPBIN = @DUMPBIN@
  62203. ECHO_C = @ECHO_C@
  62204. ECHO_N = @ECHO_N@
  62205. ECHO_T = @ECHO_T@
  62206. EGREP = @EGREP@
  62207. EXEEXT = @EXEEXT@
  62208. -F77 = @F77@
  62209. -FFLAGS = @FFLAGS@
  62210. +FGREP = @FGREP@
  62211. +GREP = @GREP@
  62212. +INSTALL = @INSTALL@
  62213. INSTALL_DATA = @INSTALL_DATA@
  62214. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62215. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62216. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62217. +LD = @LD@
  62218. LDFLAGS = @LDFLAGS@
  62219. LIBOBJS = @LIBOBJS@
  62220. LIBS = @LIBS@
  62221. @@ -128,23 +147,30 @@
  62222. LIB_AGE = @LIB_AGE@
  62223. LIB_CURRENT = @LIB_CURRENT@
  62224. LIB_REVISION = @LIB_REVISION@
  62225. +LIPO = @LIPO@
  62226. LN_S = @LN_S@
  62227. LTLIBOBJS = @LTLIBOBJS@
  62228. MAINT = @MAINT@
  62229. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  62230. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  62231. MAKEINFO = @MAKEINFO@
  62232. +MKDIR_P = @MKDIR_P@
  62233. +NM = @NM@
  62234. +NMEDIT = @NMEDIT@
  62235. +OBJDUMP = @OBJDUMP@
  62236. OBJEXT = @OBJEXT@
  62237. OPT = @OPT@
  62238. +OTOOL = @OTOOL@
  62239. +OTOOL64 = @OTOOL64@
  62240. PACKAGE = @PACKAGE@
  62241. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62242. PACKAGE_NAME = @PACKAGE_NAME@
  62243. PACKAGE_STRING = @PACKAGE_STRING@
  62244. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62245. +PACKAGE_URL = @PACKAGE_URL@
  62246. PACKAGE_VERSION = @PACKAGE_VERSION@
  62247. PATH_SEPARATOR = @PATH_SEPARATOR@
  62248. PROFILE = @PROFILE@
  62249. RANLIB = @RANLIB@
  62250. +SED = @SED@
  62251. SET_MAKE = @SET_MAKE@
  62252. SHELL = @SHELL@
  62253. SIZE16 = @SIZE16@
  62254. @@ -154,16 +180,12 @@
  62255. USIZE16 = @USIZE16@
  62256. USIZE32 = @USIZE32@
  62257. VERSION = @VERSION@
  62258. -ac_ct_AR = @ac_ct_AR@
  62259. +abs_builddir = @abs_builddir@
  62260. +abs_srcdir = @abs_srcdir@
  62261. +abs_top_builddir = @abs_top_builddir@
  62262. +abs_top_srcdir = @abs_top_srcdir@
  62263. ac_ct_CC = @ac_ct_CC@
  62264. -ac_ct_CXX = @ac_ct_CXX@
  62265. -ac_ct_F77 = @ac_ct_F77@
  62266. -ac_ct_RANLIB = @ac_ct_RANLIB@
  62267. -ac_ct_STRIP = @ac_ct_STRIP@
  62268. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62269. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62270. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62271. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62272. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62273. am__include = @am__include@
  62274. am__leading_dot = @am__leading_dot@
  62275. am__quote = @am__quote@
  62276. @@ -175,28 +197,41 @@
  62277. build_cpu = @build_cpu@
  62278. build_os = @build_os@
  62279. build_vendor = @build_vendor@
  62280. +builddir = @builddir@
  62281. datadir = @datadir@
  62282. +datarootdir = @datarootdir@
  62283. +docdir = @docdir@
  62284. +dvidir = @dvidir@
  62285. exec_prefix = @exec_prefix@
  62286. host = @host@
  62287. host_alias = @host_alias@
  62288. host_cpu = @host_cpu@
  62289. host_os = @host_os@
  62290. host_vendor = @host_vendor@
  62291. +htmldir = @htmldir@
  62292. includedir = @includedir@
  62293. infodir = @infodir@
  62294. install_sh = @install_sh@
  62295. libdir = @libdir@
  62296. libexecdir = @libexecdir@
  62297. +localedir = @localedir@
  62298. localstatedir = @localstatedir@
  62299. +lt_ECHO = @lt_ECHO@
  62300. mandir = @mandir@
  62301. mkdir_p = @mkdir_p@
  62302. oldincludedir = @oldincludedir@
  62303. +pdfdir = @pdfdir@
  62304. prefix = @prefix@
  62305. program_transform_name = @program_transform_name@
  62306. +psdir = @psdir@
  62307. sbindir = @sbindir@
  62308. sharedstatedir = @sharedstatedir@
  62309. +srcdir = @srcdir@
  62310. sysconfdir = @sysconfdir@
  62311. target_alias = @target_alias@
  62312. +top_build_prefix = @top_build_prefix@
  62313. +top_builddir = @top_builddir@
  62314. +top_srcdir = @top_srcdir@
  62315. INCLUDES = -I$(top_srcdir)/include -I$(top_builddir)/include
  62316. lib_LTLIBRARIES = libogg.la
  62317. libogg_la_SOURCES = framing.c bitwise.c
  62318. @@ -213,14 +248,14 @@
  62319. @for dep in $?; do \
  62320. case '$(am__configure_deps)' in \
  62321. *$$dep*) \
  62322. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62323. - && exit 0; \
  62324. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62325. + && { if test -f $@; then exit 0; else break; fi; }; \
  62326. exit 1;; \
  62327. esac; \
  62328. done; \
  62329. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62330. - cd $(top_srcdir) && \
  62331. - $(AUTOMAKE) --gnu src/Makefile
  62332. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62333. + $(am__cd) $(top_srcdir) && \
  62334. + $(AUTOMAKE) --gnu src/Makefile
  62335. .PRECIOUS: Makefile
  62336. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62337. @case '$?' in \
  62338. @@ -238,23 +273,28 @@
  62339. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62340. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62341. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62342. +$(am__aclocal_m4_deps):
  62343. install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  62344. @$(NORMAL_INSTALL)
  62345. - test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  62346. - @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62347. + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"
  62348. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62349. + list2=; for p in $$list; do \
  62350. if test -f $$p; then \
  62351. - f=$(am__strip_dir) \
  62352. - echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  62353. - $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  62354. + list2="$$list2 $$p"; \
  62355. else :; fi; \
  62356. - done
  62357. + done; \
  62358. + test -z "$$list2" || { \
  62359. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
  62360. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
  62361. + }
  62362. uninstall-libLTLIBRARIES:
  62363. @$(NORMAL_UNINSTALL)
  62364. - @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  62365. - p=$(am__strip_dir) \
  62366. - echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  62367. - $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  62368. + @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
  62369. + for p in $$list; do \
  62370. + $(am__strip_dir) \
  62371. + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
  62372. + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
  62373. done
  62374. clean-libLTLIBRARIES:
  62375. @@ -266,20 +306,22 @@
  62376. rm -f "$${dir}/so_locations"; \
  62377. done
  62378. libogg.la: $(libogg_la_OBJECTS) $(libogg_la_DEPENDENCIES)
  62379. - $(LINK) -rpath $(libdir) $(libogg_la_LDFLAGS) $(libogg_la_OBJECTS) $(libogg_la_LIBADD) $(LIBS)
  62380. + $(libogg_la_LINK) -rpath $(libdir) $(libogg_la_OBJECTS) $(libogg_la_LIBADD) $(LIBS)
  62381. clean-noinstPROGRAMS:
  62382. - @list='$(noinst_PROGRAMS)'; for p in $$list; do \
  62383. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62384. - echo " rm -f $$p $$f"; \
  62385. - rm -f $$p $$f ; \
  62386. - done
  62387. + @list='$(noinst_PROGRAMS)'; test -n "$$list" || exit 0; \
  62388. + echo " rm -f" $$list; \
  62389. + rm -f $$list || exit $$?; \
  62390. + test -n "$(EXEEXT)" || exit 0; \
  62391. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62392. + echo " rm -f" $$list; \
  62393. + rm -f $$list
  62394. test_bitwise$(EXEEXT): $(test_bitwise_OBJECTS) $(test_bitwise_DEPENDENCIES)
  62395. @rm -f test_bitwise$(EXEEXT)
  62396. - $(LINK) $(test_bitwise_LDFLAGS) $(test_bitwise_OBJECTS) $(test_bitwise_LDADD) $(LIBS)
  62397. + $(test_bitwise_LINK) $(test_bitwise_OBJECTS) $(test_bitwise_LDADD) $(LIBS)
  62398. test_framing$(EXEEXT): $(test_framing_OBJECTS) $(test_framing_DEPENDENCIES)
  62399. @rm -f test_framing$(EXEEXT)
  62400. - $(LINK) $(test_framing_LDFLAGS) $(test_framing_OBJECTS) $(test_framing_LDADD) $(LIBS)
  62401. + $(test_framing_LINK) $(test_framing_OBJECTS) $(test_framing_LDADD) $(LIBS)
  62402. mostlyclean-compile:
  62403. -rm -f *.$(OBJEXT)
  62404. @@ -293,50 +335,50 @@
  62405. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/test_framing-framing.Po@am__quote@
  62406. .c.o:
  62407. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  62408. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62409. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62410. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62411. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62412. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62413. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  62414. .c.obj:
  62415. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  62416. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62417. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  62418. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  62419. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  62420. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62421. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  62422. .c.lo:
  62423. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  62424. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62425. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62426. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  62427. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  62428. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62429. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  62430. test_bitwise-bitwise.o: bitwise.c
  62431. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -MT test_bitwise-bitwise.o -MD -MP -MF "$(DEPDIR)/test_bitwise-bitwise.Tpo" -c -o test_bitwise-bitwise.o `test -f 'bitwise.c' || echo '$(srcdir)/'`bitwise.c; \
  62432. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_bitwise-bitwise.Tpo" "$(DEPDIR)/test_bitwise-bitwise.Po"; else rm -f "$(DEPDIR)/test_bitwise-bitwise.Tpo"; exit 1; fi
  62433. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -MT test_bitwise-bitwise.o -MD -MP -MF $(DEPDIR)/test_bitwise-bitwise.Tpo -c -o test_bitwise-bitwise.o `test -f 'bitwise.c' || echo '$(srcdir)/'`bitwise.c
  62434. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test_bitwise-bitwise.Tpo $(DEPDIR)/test_bitwise-bitwise.Po
  62435. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bitwise.c' object='test_bitwise-bitwise.o' libtool=no @AMDEPBACKSLASH@
  62436. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62437. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -c -o test_bitwise-bitwise.o `test -f 'bitwise.c' || echo '$(srcdir)/'`bitwise.c
  62438. test_bitwise-bitwise.obj: bitwise.c
  62439. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -MT test_bitwise-bitwise.obj -MD -MP -MF "$(DEPDIR)/test_bitwise-bitwise.Tpo" -c -o test_bitwise-bitwise.obj `if test -f 'bitwise.c'; then $(CYGPATH_W) 'bitwise.c'; else $(CYGPATH_W) '$(srcdir)/bitwise.c'; fi`; \
  62440. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_bitwise-bitwise.Tpo" "$(DEPDIR)/test_bitwise-bitwise.Po"; else rm -f "$(DEPDIR)/test_bitwise-bitwise.Tpo"; exit 1; fi
  62441. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -MT test_bitwise-bitwise.obj -MD -MP -MF $(DEPDIR)/test_bitwise-bitwise.Tpo -c -o test_bitwise-bitwise.obj `if test -f 'bitwise.c'; then $(CYGPATH_W) 'bitwise.c'; else $(CYGPATH_W) '$(srcdir)/bitwise.c'; fi`
  62442. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test_bitwise-bitwise.Tpo $(DEPDIR)/test_bitwise-bitwise.Po
  62443. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='bitwise.c' object='test_bitwise-bitwise.obj' libtool=no @AMDEPBACKSLASH@
  62444. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62445. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_bitwise_CFLAGS) $(CFLAGS) -c -o test_bitwise-bitwise.obj `if test -f 'bitwise.c'; then $(CYGPATH_W) 'bitwise.c'; else $(CYGPATH_W) '$(srcdir)/bitwise.c'; fi`
  62446. test_framing-framing.o: framing.c
  62447. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -MT test_framing-framing.o -MD -MP -MF "$(DEPDIR)/test_framing-framing.Tpo" -c -o test_framing-framing.o `test -f 'framing.c' || echo '$(srcdir)/'`framing.c; \
  62448. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_framing-framing.Tpo" "$(DEPDIR)/test_framing-framing.Po"; else rm -f "$(DEPDIR)/test_framing-framing.Tpo"; exit 1; fi
  62449. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -MT test_framing-framing.o -MD -MP -MF $(DEPDIR)/test_framing-framing.Tpo -c -o test_framing-framing.o `test -f 'framing.c' || echo '$(srcdir)/'`framing.c
  62450. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test_framing-framing.Tpo $(DEPDIR)/test_framing-framing.Po
  62451. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='framing.c' object='test_framing-framing.o' libtool=no @AMDEPBACKSLASH@
  62452. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62453. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -c -o test_framing-framing.o `test -f 'framing.c' || echo '$(srcdir)/'`framing.c
  62454. test_framing-framing.obj: framing.c
  62455. -@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -MT test_framing-framing.obj -MD -MP -MF "$(DEPDIR)/test_framing-framing.Tpo" -c -o test_framing-framing.obj `if test -f 'framing.c'; then $(CYGPATH_W) 'framing.c'; else $(CYGPATH_W) '$(srcdir)/framing.c'; fi`; \
  62456. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/test_framing-framing.Tpo" "$(DEPDIR)/test_framing-framing.Po"; else rm -f "$(DEPDIR)/test_framing-framing.Tpo"; exit 1; fi
  62457. +@am__fastdepCC_TRUE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -MT test_framing-framing.obj -MD -MP -MF $(DEPDIR)/test_framing-framing.Tpo -c -o test_framing-framing.obj `if test -f 'framing.c'; then $(CYGPATH_W) 'framing.c'; else $(CYGPATH_W) '$(srcdir)/framing.c'; fi`
  62458. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/test_framing-framing.Tpo $(DEPDIR)/test_framing-framing.Po
  62459. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='framing.c' object='test_framing-framing.obj' libtool=no @AMDEPBACKSLASH@
  62460. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  62461. @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(test_framing_CFLAGS) $(CFLAGS) -c -o test_framing-framing.obj `if test -f 'framing.c'; then $(CYGPATH_W) 'framing.c'; else $(CYGPATH_W) '$(srcdir)/framing.c'; fi`
  62462. @@ -347,82 +389,85 @@
  62463. clean-libtool:
  62464. -rm -rf .libs _libs
  62465. -distclean-libtool:
  62466. - -rm -f libtool
  62467. -uninstall-info-am:
  62468. -
  62469. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  62470. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62471. unique=`for i in $$list; do \
  62472. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62473. done | \
  62474. - $(AWK) ' { files[$$0] = 1; } \
  62475. - END { for (i in files) print i; }'`; \
  62476. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62477. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62478. mkid -fID $$unique
  62479. tags: TAGS
  62480. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62481. $(TAGS_FILES) $(LISP)
  62482. - tags=; \
  62483. + set x; \
  62484. here=`pwd`; \
  62485. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62486. unique=`for i in $$list; do \
  62487. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62488. done | \
  62489. - $(AWK) ' { files[$$0] = 1; } \
  62490. - END { for (i in files) print i; }'`; \
  62491. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  62492. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62493. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62494. + shift; \
  62495. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  62496. test -n "$$unique" || unique=$$empty_fix; \
  62497. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62498. - $$tags $$unique; \
  62499. + if test $$# -gt 0; then \
  62500. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62501. + "$$@" $$unique; \
  62502. + else \
  62503. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  62504. + $$unique; \
  62505. + fi; \
  62506. fi
  62507. ctags: CTAGS
  62508. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  62509. $(TAGS_FILES) $(LISP)
  62510. - tags=; \
  62511. - here=`pwd`; \
  62512. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  62513. unique=`for i in $$list; do \
  62514. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  62515. done | \
  62516. - $(AWK) ' { files[$$0] = 1; } \
  62517. - END { for (i in files) print i; }'`; \
  62518. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  62519. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  62520. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  62521. + test -z "$(CTAGS_ARGS)$$unique" \
  62522. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  62523. - $$tags $$unique
  62524. + $$unique
  62525. GTAGS:
  62526. here=`$(am__cd) $(top_builddir) && pwd` \
  62527. - && cd $(top_srcdir) \
  62528. - && gtags -i $(GTAGS_ARGS) $$here
  62529. + && $(am__cd) $(top_srcdir) \
  62530. + && gtags -i $(GTAGS_ARGS) "$$here"
  62531. distclean-tags:
  62532. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  62533. distdir: $(DISTFILES)
  62534. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62535. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62536. - list='$(DISTFILES)'; for file in $$list; do \
  62537. - case $$file in \
  62538. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62539. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62540. - esac; \
  62541. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62542. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62543. + list='$(DISTFILES)'; \
  62544. + dist_files=`for file in $$list; do echo $$file; done | \
  62545. + sed -e "s|^$$srcdirstrip/||;t" \
  62546. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62547. + case $$dist_files in \
  62548. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62549. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62550. + sort -u` ;; \
  62551. + esac; \
  62552. + for file in $$dist_files; do \
  62553. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62554. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62555. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62556. - dir="/$$dir"; \
  62557. - $(mkdir_p) "$(distdir)$$dir"; \
  62558. - else \
  62559. - dir=''; \
  62560. - fi; \
  62561. if test -d $$d/$$file; then \
  62562. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62563. + if test -d "$(distdir)/$$file"; then \
  62564. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62565. + fi; \
  62566. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62567. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62568. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62569. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62570. fi; \
  62571. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62572. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62573. else \
  62574. - test -f $(distdir)/$$file \
  62575. - || cp -p $$d/$$file $(distdir)/$$file \
  62576. + test -f "$(distdir)/$$file" \
  62577. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62578. || exit 1; \
  62579. fi; \
  62580. done
  62581. @@ -431,7 +476,7 @@
  62582. all-am: Makefile $(LTLIBRARIES) $(PROGRAMS)
  62583. installdirs:
  62584. for dir in "$(DESTDIR)$(libdir)"; do \
  62585. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  62586. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  62587. done
  62588. install: install-am
  62589. install-exec: install-exec-am
  62590. @@ -453,6 +498,7 @@
  62591. distclean-generic:
  62592. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62593. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62594. maintainer-clean-generic:
  62595. @echo "This command is intended for maintainers to use"
  62596. @@ -466,7 +512,7 @@
  62597. -rm -rf ./$(DEPDIR)
  62598. -rm -f Makefile
  62599. distclean-am: clean-am distclean-compile distclean-generic \
  62600. - distclean-libtool distclean-tags
  62601. + distclean-tags
  62602. dvi: dvi-am
  62603. @@ -474,18 +520,38 @@
  62604. html: html-am
  62605. +html-am:
  62606. +
  62607. info: info-am
  62608. info-am:
  62609. install-data-am:
  62610. +install-dvi: install-dvi-am
  62611. +
  62612. +install-dvi-am:
  62613. +
  62614. install-exec-am: install-libLTLIBRARIES
  62615. +install-html: install-html-am
  62616. +
  62617. +install-html-am:
  62618. +
  62619. install-info: install-info-am
  62620. +install-info-am:
  62621. +
  62622. install-man:
  62623. +install-pdf: install-pdf-am
  62624. +
  62625. +install-pdf-am:
  62626. +
  62627. +install-ps: install-ps-am
  62628. +
  62629. +install-ps-am:
  62630. +
  62631. installcheck-am:
  62632. maintainer-clean: maintainer-clean-am
  62633. @@ -506,20 +572,23 @@
  62634. ps-am:
  62635. -uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  62636. +uninstall-am: uninstall-libLTLIBRARIES
  62637. +
  62638. +.MAKE: install-am install-strip
  62639. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  62640. clean-libLTLIBRARIES clean-libtool clean-noinstPROGRAMS ctags \
  62641. distclean distclean-compile distclean-generic \
  62642. distclean-libtool distclean-tags distdir dvi dvi-am html \
  62643. html-am info info-am install install-am install-data \
  62644. - install-data-am install-exec install-exec-am install-info \
  62645. - install-info-am install-libLTLIBRARIES install-man \
  62646. - install-strip installcheck installcheck-am installdirs \
  62647. - maintainer-clean maintainer-clean-generic mostlyclean \
  62648. - mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
  62649. - pdf pdf-am ps ps-am tags uninstall uninstall-am \
  62650. - uninstall-info-am uninstall-libLTLIBRARIES
  62651. + install-data-am install-dvi install-dvi-am install-exec \
  62652. + install-exec-am install-html install-html-am install-info \
  62653. + install-info-am install-libLTLIBRARIES install-man install-pdf \
  62654. + install-pdf-am install-ps install-ps-am install-strip \
  62655. + installcheck installcheck-am installdirs maintainer-clean \
  62656. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  62657. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  62658. + tags uninstall uninstall-am uninstall-libLTLIBRARIES
  62659. check: test_bitwise test_framing
  62660. @@ -531,6 +600,7 @@
  62661. profile:
  62662. $(MAKE) all CFLAGS="@PROFILE@"
  62663. +
  62664. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62665. # Otherwise a system limit (for SysV at least) may be exceeded.
  62666. .NOEXPORT:
  62667. diff -Nur libogg-1.1.3.orig/win32/Makefile.in libogg-1.1.3/win32/Makefile.in
  62668. --- libogg-1.1.3.orig/win32/Makefile.in 2005-11-28 05:26:31.000000000 +0100
  62669. +++ libogg-1.1.3/win32/Makefile.in 2011-02-17 18:12:13.744802293 +0100
  62670. @@ -1,8 +1,9 @@
  62671. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  62672. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62673. # @configure_input@
  62674. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62675. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  62676. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62677. +# Inc.
  62678. # This Makefile.in is free software; the Free Software Foundation
  62679. # gives unlimited permission to copy and/or distribute it,
  62680. # with or without modifications, as long as this notice is preserved.
  62681. @@ -13,15 +14,12 @@
  62682. # PARTICULAR PURPOSE.
  62683. @SET_MAKE@
  62684. -srcdir = @srcdir@
  62685. -top_srcdir = @top_srcdir@
  62686. VPATH = @srcdir@
  62687. pkgdatadir = $(datadir)/@PACKAGE@
  62688. -pkglibdir = $(libdir)/@PACKAGE@
  62689. pkgincludedir = $(includedir)/@PACKAGE@
  62690. -top_builddir = ..
  62691. +pkglibdir = $(libdir)/@PACKAGE@
  62692. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62693. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62694. -INSTALL = @INSTALL@
  62695. install_sh_DATA = $(install_sh) -c -m 644
  62696. install_sh_PROGRAM = $(install_sh) -c
  62697. install_sh_SCRIPT = $(install_sh) -c
  62698. @@ -44,12 +42,11 @@
  62699. mkinstalldirs = $(install_sh) -d
  62700. CONFIG_HEADER = $(top_builddir)/config.h
  62701. CONFIG_CLEAN_FILES =
  62702. +CONFIG_CLEAN_VPATH_FILES =
  62703. SOURCES =
  62704. DIST_SOURCES =
  62705. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62706. ACLOCAL = @ACLOCAL@
  62707. -AMDEP_FALSE = @AMDEP_FALSE@
  62708. -AMDEP_TRUE = @AMDEP_TRUE@
  62709. AMTAR = @AMTAR@
  62710. AR = @AR@
  62711. AUTOCONF = @AUTOCONF@
  62712. @@ -61,26 +58,25 @@
  62713. CFLAGS = @CFLAGS@
  62714. CPP = @CPP@
  62715. CPPFLAGS = @CPPFLAGS@
  62716. -CXX = @CXX@
  62717. -CXXCPP = @CXXCPP@
  62718. -CXXDEPMODE = @CXXDEPMODE@
  62719. -CXXFLAGS = @CXXFLAGS@
  62720. CYGPATH_W = @CYGPATH_W@
  62721. DEBUG = @DEBUG@
  62722. DEFS = @DEFS@
  62723. DEPDIR = @DEPDIR@
  62724. -ECHO = @ECHO@
  62725. +DSYMUTIL = @DSYMUTIL@
  62726. +DUMPBIN = @DUMPBIN@
  62727. ECHO_C = @ECHO_C@
  62728. ECHO_N = @ECHO_N@
  62729. ECHO_T = @ECHO_T@
  62730. EGREP = @EGREP@
  62731. EXEEXT = @EXEEXT@
  62732. -F77 = @F77@
  62733. -FFLAGS = @FFLAGS@
  62734. +FGREP = @FGREP@
  62735. +GREP = @GREP@
  62736. +INSTALL = @INSTALL@
  62737. INSTALL_DATA = @INSTALL_DATA@
  62738. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62739. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62740. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62741. +LD = @LD@
  62742. LDFLAGS = @LDFLAGS@
  62743. LIBOBJS = @LIBOBJS@
  62744. LIBS = @LIBS@
  62745. @@ -89,23 +85,30 @@
  62746. LIB_AGE = @LIB_AGE@
  62747. LIB_CURRENT = @LIB_CURRENT@
  62748. LIB_REVISION = @LIB_REVISION@
  62749. +LIPO = @LIPO@
  62750. LN_S = @LN_S@
  62751. LTLIBOBJS = @LTLIBOBJS@
  62752. MAINT = @MAINT@
  62753. -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
  62754. -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
  62755. MAKEINFO = @MAKEINFO@
  62756. +MKDIR_P = @MKDIR_P@
  62757. +NM = @NM@
  62758. +NMEDIT = @NMEDIT@
  62759. +OBJDUMP = @OBJDUMP@
  62760. OBJEXT = @OBJEXT@
  62761. OPT = @OPT@
  62762. +OTOOL = @OTOOL@
  62763. +OTOOL64 = @OTOOL64@
  62764. PACKAGE = @PACKAGE@
  62765. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62766. PACKAGE_NAME = @PACKAGE_NAME@
  62767. PACKAGE_STRING = @PACKAGE_STRING@
  62768. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62769. +PACKAGE_URL = @PACKAGE_URL@
  62770. PACKAGE_VERSION = @PACKAGE_VERSION@
  62771. PATH_SEPARATOR = @PATH_SEPARATOR@
  62772. PROFILE = @PROFILE@
  62773. RANLIB = @RANLIB@
  62774. +SED = @SED@
  62775. SET_MAKE = @SET_MAKE@
  62776. SHELL = @SHELL@
  62777. SIZE16 = @SIZE16@
  62778. @@ -115,16 +118,12 @@
  62779. USIZE16 = @USIZE16@
  62780. USIZE32 = @USIZE32@
  62781. VERSION = @VERSION@
  62782. -ac_ct_AR = @ac_ct_AR@
  62783. +abs_builddir = @abs_builddir@
  62784. +abs_srcdir = @abs_srcdir@
  62785. +abs_top_builddir = @abs_top_builddir@
  62786. +abs_top_srcdir = @abs_top_srcdir@
  62787. ac_ct_CC = @ac_ct_CC@
  62788. -ac_ct_CXX = @ac_ct_CXX@
  62789. -ac_ct_F77 = @ac_ct_F77@
  62790. -ac_ct_RANLIB = @ac_ct_RANLIB@
  62791. -ac_ct_STRIP = @ac_ct_STRIP@
  62792. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62793. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62794. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62795. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62796. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62797. am__include = @am__include@
  62798. am__leading_dot = @am__leading_dot@
  62799. am__quote = @am__quote@
  62800. @@ -136,28 +135,41 @@
  62801. build_cpu = @build_cpu@
  62802. build_os = @build_os@
  62803. build_vendor = @build_vendor@
  62804. +builddir = @builddir@
  62805. datadir = @datadir@
  62806. +datarootdir = @datarootdir@
  62807. +docdir = @docdir@
  62808. +dvidir = @dvidir@
  62809. exec_prefix = @exec_prefix@
  62810. host = @host@
  62811. host_alias = @host_alias@
  62812. host_cpu = @host_cpu@
  62813. host_os = @host_os@
  62814. host_vendor = @host_vendor@
  62815. +htmldir = @htmldir@
  62816. includedir = @includedir@
  62817. infodir = @infodir@
  62818. install_sh = @install_sh@
  62819. libdir = @libdir@
  62820. libexecdir = @libexecdir@
  62821. +localedir = @localedir@
  62822. localstatedir = @localstatedir@
  62823. +lt_ECHO = @lt_ECHO@
  62824. mandir = @mandir@
  62825. mkdir_p = @mkdir_p@
  62826. oldincludedir = @oldincludedir@
  62827. +pdfdir = @pdfdir@
  62828. prefix = @prefix@
  62829. program_transform_name = @program_transform_name@
  62830. +psdir = @psdir@
  62831. sbindir = @sbindir@
  62832. sharedstatedir = @sharedstatedir@
  62833. +srcdir = @srcdir@
  62834. sysconfdir = @sysconfdir@
  62835. target_alias = @target_alias@
  62836. +top_build_prefix = @top_build_prefix@
  62837. +top_builddir = @top_builddir@
  62838. +top_srcdir = @top_srcdir@
  62839. EXTRA_DIST = ogg.def ogg_dynamic.dsp ogg_static.dsp\
  62840. build_ogg_dynamic.bat build_ogg_dynamic_debug.bat\
  62841. build_ogg_static.bat build_ogg_static_debug.bat ogg.dsw
  62842. @@ -169,14 +181,14 @@
  62843. @for dep in $?; do \
  62844. case '$(am__configure_deps)' in \
  62845. *$$dep*) \
  62846. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62847. - && exit 0; \
  62848. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62849. + && { if test -f $@; then exit 0; else break; fi; }; \
  62850. exit 1;; \
  62851. esac; \
  62852. done; \
  62853. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  62854. - cd $(top_srcdir) && \
  62855. - $(AUTOMAKE) --gnu win32/Makefile
  62856. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu win32/Makefile'; \
  62857. + $(am__cd) $(top_srcdir) && \
  62858. + $(AUTOMAKE) --gnu win32/Makefile
  62859. .PRECIOUS: Makefile
  62860. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62861. @case '$?' in \
  62862. @@ -194,16 +206,13 @@
  62863. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62864. $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
  62865. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62866. +$(am__aclocal_m4_deps):
  62867. mostlyclean-libtool:
  62868. -rm -f *.lo
  62869. clean-libtool:
  62870. -rm -rf .libs _libs
  62871. -
  62872. -distclean-libtool:
  62873. - -rm -f libtool
  62874. -uninstall-info-am:
  62875. tags: TAGS
  62876. TAGS:
  62877. @@ -212,29 +221,32 @@
  62878. distdir: $(DISTFILES)
  62879. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  62880. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  62881. - list='$(DISTFILES)'; for file in $$list; do \
  62882. - case $$file in \
  62883. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  62884. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  62885. - esac; \
  62886. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62887. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  62888. + list='$(DISTFILES)'; \
  62889. + dist_files=`for file in $$list; do echo $$file; done | \
  62890. + sed -e "s|^$$srcdirstrip/||;t" \
  62891. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  62892. + case $$dist_files in \
  62893. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  62894. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  62895. + sort -u` ;; \
  62896. + esac; \
  62897. + for file in $$dist_files; do \
  62898. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  62899. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  62900. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  62901. - dir="/$$dir"; \
  62902. - $(mkdir_p) "$(distdir)$$dir"; \
  62903. - else \
  62904. - dir=''; \
  62905. - fi; \
  62906. if test -d $$d/$$file; then \
  62907. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  62908. + if test -d "$(distdir)/$$file"; then \
  62909. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62910. + fi; \
  62911. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  62912. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  62913. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  62914. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  62915. fi; \
  62916. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  62917. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  62918. else \
  62919. - test -f $(distdir)/$$file \
  62920. - || cp -p $$d/$$file $(distdir)/$$file \
  62921. + test -f "$(distdir)/$$file" \
  62922. + || cp -p $$d/$$file "$(distdir)/$$file" \
  62923. || exit 1; \
  62924. fi; \
  62925. done
  62926. @@ -262,6 +274,7 @@
  62927. distclean-generic:
  62928. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62929. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62930. maintainer-clean-generic:
  62931. @echo "This command is intended for maintainers to use"
  62932. @@ -272,7 +285,7 @@
  62933. distclean: distclean-am
  62934. -rm -f Makefile
  62935. -distclean-am: clean-am distclean-generic distclean-libtool
  62936. +distclean-am: clean-am distclean-generic
  62937. dvi: dvi-am
  62938. @@ -280,18 +293,38 @@
  62939. html: html-am
  62940. +html-am:
  62941. +
  62942. info: info-am
  62943. info-am:
  62944. install-data-am:
  62945. +install-dvi: install-dvi-am
  62946. +
  62947. +install-dvi-am:
  62948. +
  62949. install-exec-am:
  62950. +install-html: install-html-am
  62951. +
  62952. +install-html-am:
  62953. +
  62954. install-info: install-info-am
  62955. +install-info-am:
  62956. +
  62957. install-man:
  62958. +install-pdf: install-pdf-am
  62959. +
  62960. +install-pdf-am:
  62961. +
  62962. +install-ps: install-ps-am
  62963. +
  62964. +install-ps-am:
  62965. +
  62966. installcheck-am:
  62967. maintainer-clean: maintainer-clean-am
  62968. @@ -310,17 +343,21 @@
  62969. ps-am:
  62970. -uninstall-am: uninstall-info-am
  62971. +uninstall-am:
  62972. +
  62973. +.MAKE: install-am install-strip
  62974. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  62975. distclean distclean-generic distclean-libtool distdir dvi \
  62976. dvi-am html html-am info info-am install install-am \
  62977. - install-data install-data-am install-exec install-exec-am \
  62978. - install-info install-info-am install-man install-strip \
  62979. + install-data install-data-am install-dvi install-dvi-am \
  62980. + install-exec install-exec-am install-html install-html-am \
  62981. + install-info install-info-am install-man install-pdf \
  62982. + install-pdf-am install-ps install-ps-am install-strip \
  62983. installcheck installcheck-am installdirs maintainer-clean \
  62984. maintainer-clean-generic mostlyclean mostlyclean-generic \
  62985. - mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am \
  62986. - uninstall-info-am
  62987. + mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am
  62988. +
  62989. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62990. # Otherwise a system limit (for SysV at least) may be exceeded.