aclocal.m4 338 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630
  1. # generated automatically by aclocal 1.13.4 -*- Autoconf -*-
  2. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  22. # Foundation, Inc.
  23. # Written by Gordon Matzigkeit, 1996
  24. #
  25. # This file is free software; the Free Software Foundation gives
  26. # unlimited permission to copy and/or distribute it, with or without
  27. # modifications, as long as this notice is preserved.
  28. m4_define([_LT_COPYING], [dnl
  29. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  31. # Foundation, Inc.
  32. # Written by Gordon Matzigkeit, 1996
  33. #
  34. # This file is part of GNU Libtool.
  35. #
  36. # GNU Libtool is free software; you can redistribute it and/or
  37. # modify it under the terms of the GNU General Public License as
  38. # published by the Free Software Foundation; either version 2 of
  39. # the License, or (at your option) any later version.
  40. #
  41. # As a special exception to the GNU General Public License,
  42. # if you distribute this file as part of a program or library that
  43. # is built using GNU Libtool, you may include this file under the
  44. # same distribution terms that you use for the rest of that program.
  45. #
  46. # GNU Libtool is distributed in the hope that it will be useful,
  47. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  48. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  49. # GNU General Public License for more details.
  50. #
  51. # You should have received a copy of the GNU General Public License
  52. # along with GNU Libtool; see the file COPYING. If not, a copy
  53. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  54. # obtained by writing to the Free Software Foundation, Inc.,
  55. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  56. ])
  57. # serial 57 LT_INIT
  58. # LT_PREREQ(VERSION)
  59. # ------------------
  60. # Complain and exit if this libtool version is less that VERSION.
  61. m4_defun([LT_PREREQ],
  62. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  63. [m4_default([$3],
  64. [m4_fatal([Libtool version $1 or higher is required],
  65. 63)])],
  66. [$2])])
  67. # _LT_CHECK_BUILDDIR
  68. # ------------------
  69. # Complain if the absolute build directory name contains unusual characters
  70. m4_defun([_LT_CHECK_BUILDDIR],
  71. [case `pwd` in
  72. *\ * | *\ *)
  73. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  74. esac
  75. ])
  76. # LT_INIT([OPTIONS])
  77. # ------------------
  78. AC_DEFUN([LT_INIT],
  79. [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  80. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  81. AC_BEFORE([$0], [LT_LANG])dnl
  82. AC_BEFORE([$0], [LT_OUTPUT])dnl
  83. AC_BEFORE([$0], [LTDL_INIT])dnl
  84. m4_require([_LT_CHECK_BUILDDIR])dnl
  85. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  86. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  87. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  88. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  89. dnl unless we require an AC_DEFUNed macro:
  90. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  91. AC_REQUIRE([LTSUGAR_VERSION])dnl
  92. AC_REQUIRE([LTVERSION_VERSION])dnl
  93. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  94. m4_require([_LT_PROG_LTMAIN])dnl
  95. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  96. dnl Parse OPTIONS
  97. _LT_SET_OPTIONS([$0], [$1])
  98. # This can be used to rebuild libtool when needed
  99. LIBTOOL_DEPS="$ltmain"
  100. # Always use our own libtool.
  101. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  102. AC_SUBST(LIBTOOL)dnl
  103. _LT_SETUP
  104. # Only expand once:
  105. m4_define([LT_INIT])
  106. ])# LT_INIT
  107. # Old names:
  108. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  109. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  110. dnl aclocal-1.4 backwards compatibility:
  111. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  112. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  113. # _LT_CC_BASENAME(CC)
  114. # -------------------
  115. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  116. m4_defun([_LT_CC_BASENAME],
  117. [for cc_temp in $1""; do
  118. case $cc_temp in
  119. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  120. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  121. \-*) ;;
  122. *) break;;
  123. esac
  124. done
  125. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  126. ])
  127. # _LT_FILEUTILS_DEFAULTS
  128. # ----------------------
  129. # It is okay to use these file commands and assume they have been set
  130. # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  131. m4_defun([_LT_FILEUTILS_DEFAULTS],
  132. [: ${CP="cp -f"}
  133. : ${MV="mv -f"}
  134. : ${RM="rm -f"}
  135. ])# _LT_FILEUTILS_DEFAULTS
  136. # _LT_SETUP
  137. # ---------
  138. m4_defun([_LT_SETUP],
  139. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  140. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  141. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  142. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  143. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  144. dnl
  145. _LT_DECL([], [host_alias], [0], [The host system])dnl
  146. _LT_DECL([], [host], [0])dnl
  147. _LT_DECL([], [host_os], [0])dnl
  148. dnl
  149. _LT_DECL([], [build_alias], [0], [The build system])dnl
  150. _LT_DECL([], [build], [0])dnl
  151. _LT_DECL([], [build_os], [0])dnl
  152. dnl
  153. AC_REQUIRE([AC_PROG_CC])dnl
  154. AC_REQUIRE([LT_PATH_LD])dnl
  155. AC_REQUIRE([LT_PATH_NM])dnl
  156. dnl
  157. AC_REQUIRE([AC_PROG_LN_S])dnl
  158. test -z "$LN_S" && LN_S="ln -s"
  159. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  160. dnl
  161. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  162. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  163. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  164. dnl
  165. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  166. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  167. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  168. m4_require([_LT_CMD_RELOAD])dnl
  169. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  170. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  171. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  172. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  173. m4_require([_LT_WITH_SYSROOT])dnl
  174. _LT_CONFIG_LIBTOOL_INIT([
  175. # See if we are running on zsh, and set the options which allow our
  176. # commands through without removal of \ escapes INIT.
  177. if test -n "\${ZSH_VERSION+set}" ; then
  178. setopt NO_GLOB_SUBST
  179. fi
  180. ])
  181. if test -n "${ZSH_VERSION+set}" ; then
  182. setopt NO_GLOB_SUBST
  183. fi
  184. _LT_CHECK_OBJDIR
  185. m4_require([_LT_TAG_COMPILER])dnl
  186. case $host_os in
  187. aix3*)
  188. # AIX sometimes has problems with the GCC collect2 program. For some
  189. # reason, if we set the COLLECT_NAMES environment variable, the problems
  190. # vanish in a puff of smoke.
  191. if test "X${COLLECT_NAMES+set}" != Xset; then
  192. COLLECT_NAMES=
  193. export COLLECT_NAMES
  194. fi
  195. ;;
  196. esac
  197. # Global variables:
  198. ofile=libtool
  199. can_build_shared=yes
  200. # All known linkers require a `.a' archive for static linking (except MSVC,
  201. # which needs '.lib').
  202. libext=a
  203. with_gnu_ld="$lt_cv_prog_gnu_ld"
  204. old_CC="$CC"
  205. old_CFLAGS="$CFLAGS"
  206. # Set sane defaults for various variables
  207. test -z "$CC" && CC=cc
  208. test -z "$LTCC" && LTCC=$CC
  209. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  210. test -z "$LD" && LD=ld
  211. test -z "$ac_objext" && ac_objext=o
  212. _LT_CC_BASENAME([$compiler])
  213. # Only perform the check for file, if the check method requires it
  214. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  215. case $deplibs_check_method in
  216. file_magic*)
  217. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  218. _LT_PATH_MAGIC
  219. fi
  220. ;;
  221. esac
  222. # Use C for the default configuration in the libtool script
  223. LT_SUPPORTED_TAG([CC])
  224. _LT_LANG_C_CONFIG
  225. _LT_LANG_DEFAULT_CONFIG
  226. _LT_CONFIG_COMMANDS
  227. ])# _LT_SETUP
  228. # _LT_PREPARE_SED_QUOTE_VARS
  229. # --------------------------
  230. # Define a few sed substitution that help us do robust quoting.
  231. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  232. [# Backslashify metacharacters that are still active within
  233. # double-quoted strings.
  234. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  235. # Same as above, but do not quote variable references.
  236. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  237. # Sed substitution to delay expansion of an escaped shell variable in a
  238. # double_quote_subst'ed string.
  239. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  240. # Sed substitution to delay expansion of an escaped single quote.
  241. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  242. # Sed substitution to avoid accidental globbing in evaled expressions
  243. no_glob_subst='s/\*/\\\*/g'
  244. ])
  245. # _LT_PROG_LTMAIN
  246. # ---------------
  247. # Note that this code is called both from `configure', and `config.status'
  248. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  249. # `config.status' has no value for ac_aux_dir unless we are using Automake,
  250. # so we pass a copy along to make sure it has a sensible value anyway.
  251. m4_defun([_LT_PROG_LTMAIN],
  252. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  253. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  254. ltmain="$ac_aux_dir/ltmain.sh"
  255. ])# _LT_PROG_LTMAIN
  256. # So that we can recreate a full libtool script including additional
  257. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  258. # in macros and then make a single call at the end using the `libtool'
  259. # label.
  260. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  261. # ----------------------------------------
  262. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  263. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  264. [m4_ifval([$1],
  265. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  266. [$1
  267. ])])])
  268. # Initialize.
  269. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  270. # _LT_CONFIG_LIBTOOL([COMMANDS])
  271. # ------------------------------
  272. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  273. m4_define([_LT_CONFIG_LIBTOOL],
  274. [m4_ifval([$1],
  275. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  276. [$1
  277. ])])])
  278. # Initialize.
  279. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  280. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  281. # -----------------------------------------------------
  282. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  283. [_LT_CONFIG_LIBTOOL([$1])
  284. _LT_CONFIG_LIBTOOL_INIT([$2])
  285. ])
  286. # _LT_FORMAT_COMMENT([COMMENT])
  287. # -----------------------------
  288. # Add leading comment marks to the start of each line, and a trailing
  289. # full-stop to the whole comment if one is not present already.
  290. m4_define([_LT_FORMAT_COMMENT],
  291. [m4_ifval([$1], [
  292. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  293. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  294. )])
  295. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  296. # -------------------------------------------------------------------
  297. # CONFIGNAME is the name given to the value in the libtool script.
  298. # VARNAME is the (base) name used in the configure script.
  299. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  300. # VARNAME. Any other value will be used directly.
  301. m4_define([_LT_DECL],
  302. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  303. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  304. [m4_ifval([$1], [$1], [$2])])
  305. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  306. m4_ifval([$4],
  307. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  308. lt_dict_add_subkey([lt_decl_dict], [$2],
  309. [tagged?], [m4_ifval([$5], [yes], [no])])])
  310. ])
  311. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  312. # --------------------------------------------------------
  313. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  314. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  315. # ------------------------------------------------
  316. m4_define([lt_decl_tag_varnames],
  317. [_lt_decl_filter([tagged?], [yes], $@)])
  318. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  319. # ---------------------------------------------------------
  320. m4_define([_lt_decl_filter],
  321. [m4_case([$#],
  322. [0], [m4_fatal([$0: too few arguments: $#])],
  323. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  324. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  325. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  326. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  327. ])
  328. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  329. # --------------------------------------------------
  330. m4_define([lt_decl_quote_varnames],
  331. [_lt_decl_filter([value], [1], $@)])
  332. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  333. # ---------------------------------------------------
  334. m4_define([lt_decl_dquote_varnames],
  335. [_lt_decl_filter([value], [2], $@)])
  336. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  337. # ---------------------------------------------------
  338. m4_define([lt_decl_varnames_tagged],
  339. [m4_assert([$# <= 2])dnl
  340. _$0(m4_quote(m4_default([$1], [[, ]])),
  341. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  342. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  343. m4_define([_lt_decl_varnames_tagged],
  344. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  345. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  346. # ------------------------------------------------
  347. m4_define([lt_decl_all_varnames],
  348. [_$0(m4_quote(m4_default([$1], [[, ]])),
  349. m4_if([$2], [],
  350. m4_quote(lt_decl_varnames),
  351. m4_quote(m4_shift($@))))[]dnl
  352. ])
  353. m4_define([_lt_decl_all_varnames],
  354. [lt_join($@, lt_decl_varnames_tagged([$1],
  355. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  356. ])
  357. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  358. # ------------------------------------
  359. # Quote a variable value, and forward it to `config.status' so that its
  360. # declaration there will have the same value as in `configure'. VARNAME
  361. # must have a single quote delimited value for this to work.
  362. m4_define([_LT_CONFIG_STATUS_DECLARE],
  363. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  364. # _LT_CONFIG_STATUS_DECLARATIONS
  365. # ------------------------------
  366. # We delimit libtool config variables with single quotes, so when
  367. # we write them to config.status, we have to be sure to quote all
  368. # embedded single quotes properly. In configure, this macro expands
  369. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  370. #
  371. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  372. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  373. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  374. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  375. # _LT_LIBTOOL_TAGS
  376. # ----------------
  377. # Output comment and list of tags supported by the script
  378. m4_defun([_LT_LIBTOOL_TAGS],
  379. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  380. available_tags="_LT_TAGS"dnl
  381. ])
  382. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  383. # -----------------------------------
  384. # Extract the dictionary values for VARNAME (optionally with TAG) and
  385. # expand to a commented shell variable setting:
  386. #
  387. # # Some comment about what VAR is for.
  388. # visible_name=$lt_internal_name
  389. m4_define([_LT_LIBTOOL_DECLARE],
  390. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  391. [description])))[]dnl
  392. m4_pushdef([_libtool_name],
  393. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  394. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  395. [0], [_libtool_name=[$]$1],
  396. [1], [_libtool_name=$lt_[]$1],
  397. [2], [_libtool_name=$lt_[]$1],
  398. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  399. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  400. ])
  401. # _LT_LIBTOOL_CONFIG_VARS
  402. # -----------------------
  403. # Produce commented declarations of non-tagged libtool config variables
  404. # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  405. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  406. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  407. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  408. [m4_foreach([_lt_var],
  409. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  410. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  411. # _LT_LIBTOOL_TAG_VARS(TAG)
  412. # -------------------------
  413. m4_define([_LT_LIBTOOL_TAG_VARS],
  414. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  415. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  416. # _LT_TAGVAR(VARNAME, [TAGNAME])
  417. # ------------------------------
  418. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  419. # _LT_CONFIG_COMMANDS
  420. # -------------------
  421. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  422. # variables for single and double quote escaping we saved from calls
  423. # to _LT_DECL, we can put quote escaped variables declarations
  424. # into `config.status', and then the shell code to quote escape them in
  425. # for loops in `config.status'. Finally, any additional code accumulated
  426. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  427. m4_defun([_LT_CONFIG_COMMANDS],
  428. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  429. dnl If the libtool generation code has been placed in $CONFIG_LT,
  430. dnl instead of duplicating it all over again into config.status,
  431. dnl then we will have config.status run $CONFIG_LT later, so it
  432. dnl needs to know what name is stored there:
  433. [AC_CONFIG_COMMANDS([libtool],
  434. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  435. dnl If the libtool generation code is destined for config.status,
  436. dnl expand the accumulated commands and init code now:
  437. [AC_CONFIG_COMMANDS([libtool],
  438. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  439. ])#_LT_CONFIG_COMMANDS
  440. # Initialize.
  441. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  442. [
  443. # The HP-UX ksh and POSIX shell print the target directory to stdout
  444. # if CDPATH is set.
  445. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  446. sed_quote_subst='$sed_quote_subst'
  447. double_quote_subst='$double_quote_subst'
  448. delay_variable_subst='$delay_variable_subst'
  449. _LT_CONFIG_STATUS_DECLARATIONS
  450. LTCC='$LTCC'
  451. LTCFLAGS='$LTCFLAGS'
  452. compiler='$compiler_DEFAULT'
  453. # A function that is used when there is no print builtin or printf.
  454. func_fallback_echo ()
  455. {
  456. eval 'cat <<_LTECHO_EOF
  457. \$[]1
  458. _LTECHO_EOF'
  459. }
  460. # Quote evaled strings.
  461. for var in lt_decl_all_varnames([[ \
  462. ]], lt_decl_quote_varnames); do
  463. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  464. *[[\\\\\\\`\\"\\\$]]*)
  465. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  466. ;;
  467. *)
  468. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  469. ;;
  470. esac
  471. done
  472. # Double-quote double-evaled strings.
  473. for var in lt_decl_all_varnames([[ \
  474. ]], lt_decl_dquote_varnames); do
  475. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  476. *[[\\\\\\\`\\"\\\$]]*)
  477. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  478. ;;
  479. *)
  480. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  481. ;;
  482. esac
  483. done
  484. _LT_OUTPUT_LIBTOOL_INIT
  485. ])
  486. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  487. # ------------------------------------
  488. # Generate a child script FILE with all initialization necessary to
  489. # reuse the environment learned by the parent script, and make the
  490. # file executable. If COMMENT is supplied, it is inserted after the
  491. # `#!' sequence but before initialization text begins. After this
  492. # macro, additional text can be appended to FILE to form the body of
  493. # the child script. The macro ends with non-zero status if the
  494. # file could not be fully written (such as if the disk is full).
  495. m4_ifdef([AS_INIT_GENERATED],
  496. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  497. [m4_defun([_LT_GENERATED_FILE_INIT],
  498. [m4_require([AS_PREPARE])]dnl
  499. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  500. [lt_write_fail=0
  501. cat >$1 <<_ASEOF || lt_write_fail=1
  502. #! $SHELL
  503. # Generated by $as_me.
  504. $2
  505. SHELL=\${CONFIG_SHELL-$SHELL}
  506. export SHELL
  507. _ASEOF
  508. cat >>$1 <<\_ASEOF || lt_write_fail=1
  509. AS_SHELL_SANITIZE
  510. _AS_PREPARE
  511. exec AS_MESSAGE_FD>&1
  512. _ASEOF
  513. test $lt_write_fail = 0 && chmod +x $1[]dnl
  514. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  515. # LT_OUTPUT
  516. # ---------
  517. # This macro allows early generation of the libtool script (before
  518. # AC_OUTPUT is called), incase it is used in configure for compilation
  519. # tests.
  520. AC_DEFUN([LT_OUTPUT],
  521. [: ${CONFIG_LT=./config.lt}
  522. AC_MSG_NOTICE([creating $CONFIG_LT])
  523. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  524. [# Run this file to recreate a libtool stub with the current configuration.])
  525. cat >>"$CONFIG_LT" <<\_LTEOF
  526. lt_cl_silent=false
  527. exec AS_MESSAGE_LOG_FD>>config.log
  528. {
  529. echo
  530. AS_BOX([Running $as_me.])
  531. } >&AS_MESSAGE_LOG_FD
  532. lt_cl_help="\
  533. \`$as_me' creates a local libtool stub from the current configuration,
  534. for use in further configure time tests before the real libtool is
  535. generated.
  536. Usage: $[0] [[OPTIONS]]
  537. -h, --help print this help, then exit
  538. -V, --version print version number, then exit
  539. -q, --quiet do not print progress messages
  540. -d, --debug don't remove temporary files
  541. Report bugs to <bug-libtool@gnu.org>."
  542. lt_cl_version="\
  543. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  544. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  545. configured by $[0], generated by m4_PACKAGE_STRING.
  546. Copyright (C) 2011 Free Software Foundation, Inc.
  547. This config.lt script is free software; the Free Software Foundation
  548. gives unlimited permision to copy, distribute and modify it."
  549. while test $[#] != 0
  550. do
  551. case $[1] in
  552. --version | --v* | -V )
  553. echo "$lt_cl_version"; exit 0 ;;
  554. --help | --h* | -h )
  555. echo "$lt_cl_help"; exit 0 ;;
  556. --debug | --d* | -d )
  557. debug=: ;;
  558. --quiet | --q* | --silent | --s* | -q )
  559. lt_cl_silent=: ;;
  560. -*) AC_MSG_ERROR([unrecognized option: $[1]
  561. Try \`$[0] --help' for more information.]) ;;
  562. *) AC_MSG_ERROR([unrecognized argument: $[1]
  563. Try \`$[0] --help' for more information.]) ;;
  564. esac
  565. shift
  566. done
  567. if $lt_cl_silent; then
  568. exec AS_MESSAGE_FD>/dev/null
  569. fi
  570. _LTEOF
  571. cat >>"$CONFIG_LT" <<_LTEOF
  572. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  573. _LTEOF
  574. cat >>"$CONFIG_LT" <<\_LTEOF
  575. AC_MSG_NOTICE([creating $ofile])
  576. _LT_OUTPUT_LIBTOOL_COMMANDS
  577. AS_EXIT(0)
  578. _LTEOF
  579. chmod +x "$CONFIG_LT"
  580. # configure is writing to config.log, but config.lt does its own redirection,
  581. # appending to config.log, which fails on DOS, as config.log is still kept
  582. # open by configure. Here we exec the FD to /dev/null, effectively closing
  583. # config.log, so it can be properly (re)opened and appended to by config.lt.
  584. lt_cl_success=:
  585. test "$silent" = yes &&
  586. lt_config_lt_args="$lt_config_lt_args --quiet"
  587. exec AS_MESSAGE_LOG_FD>/dev/null
  588. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  589. exec AS_MESSAGE_LOG_FD>>config.log
  590. $lt_cl_success || AS_EXIT(1)
  591. ])# LT_OUTPUT
  592. # _LT_CONFIG(TAG)
  593. # ---------------
  594. # If TAG is the built-in tag, create an initial libtool script with a
  595. # default configuration from the untagged config vars. Otherwise add code
  596. # to config.status for appending the configuration named by TAG from the
  597. # matching tagged config vars.
  598. m4_defun([_LT_CONFIG],
  599. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  600. _LT_CONFIG_SAVE_COMMANDS([
  601. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  602. m4_if(_LT_TAG, [C], [
  603. # See if we are running on zsh, and set the options which allow our
  604. # commands through without removal of \ escapes.
  605. if test -n "${ZSH_VERSION+set}" ; then
  606. setopt NO_GLOB_SUBST
  607. fi
  608. cfgfile="${ofile}T"
  609. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  610. $RM "$cfgfile"
  611. cat <<_LT_EOF >> "$cfgfile"
  612. #! $SHELL
  613. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  614. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  615. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  616. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  617. #
  618. _LT_COPYING
  619. _LT_LIBTOOL_TAGS
  620. # ### BEGIN LIBTOOL CONFIG
  621. _LT_LIBTOOL_CONFIG_VARS
  622. _LT_LIBTOOL_TAG_VARS
  623. # ### END LIBTOOL CONFIG
  624. _LT_EOF
  625. case $host_os in
  626. aix3*)
  627. cat <<\_LT_EOF >> "$cfgfile"
  628. # AIX sometimes has problems with the GCC collect2 program. For some
  629. # reason, if we set the COLLECT_NAMES environment variable, the problems
  630. # vanish in a puff of smoke.
  631. if test "X${COLLECT_NAMES+set}" != Xset; then
  632. COLLECT_NAMES=
  633. export COLLECT_NAMES
  634. fi
  635. _LT_EOF
  636. ;;
  637. esac
  638. _LT_PROG_LTMAIN
  639. # We use sed instead of cat because bash on DJGPP gets confused if
  640. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  641. # text mode, it properly converts lines to CR/LF. This bash problem
  642. # is reportedly fixed, but why not run on old versions too?
  643. sed '$q' "$ltmain" >> "$cfgfile" \
  644. || (rm -f "$cfgfile"; exit 1)
  645. _LT_PROG_REPLACE_SHELLFNS
  646. mv -f "$cfgfile" "$ofile" ||
  647. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  648. chmod +x "$ofile"
  649. ],
  650. [cat <<_LT_EOF >> "$ofile"
  651. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  652. dnl in a comment (ie after a #).
  653. # ### BEGIN LIBTOOL TAG CONFIG: $1
  654. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  655. # ### END LIBTOOL TAG CONFIG: $1
  656. _LT_EOF
  657. ])dnl /m4_if
  658. ],
  659. [m4_if([$1], [], [
  660. PACKAGE='$PACKAGE'
  661. VERSION='$VERSION'
  662. TIMESTAMP='$TIMESTAMP'
  663. RM='$RM'
  664. ofile='$ofile'], [])
  665. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  666. ])# _LT_CONFIG
  667. # LT_SUPPORTED_TAG(TAG)
  668. # ---------------------
  669. # Trace this macro to discover what tags are supported by the libtool
  670. # --tag option, using:
  671. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  672. AC_DEFUN([LT_SUPPORTED_TAG], [])
  673. # C support is built-in for now
  674. m4_define([_LT_LANG_C_enabled], [])
  675. m4_define([_LT_TAGS], [])
  676. # LT_LANG(LANG)
  677. # -------------
  678. # Enable libtool support for the given language if not already enabled.
  679. AC_DEFUN([LT_LANG],
  680. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  681. m4_case([$1],
  682. [C], [_LT_LANG(C)],
  683. [C++], [_LT_LANG(CXX)],
  684. [Go], [_LT_LANG(GO)],
  685. [Java], [_LT_LANG(GCJ)],
  686. [Fortran 77], [_LT_LANG(F77)],
  687. [Fortran], [_LT_LANG(FC)],
  688. [Windows Resource], [_LT_LANG(RC)],
  689. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  690. [_LT_LANG($1)],
  691. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  692. ])# LT_LANG
  693. # _LT_LANG(LANGNAME)
  694. # ------------------
  695. m4_defun([_LT_LANG],
  696. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  697. [LT_SUPPORTED_TAG([$1])dnl
  698. m4_append([_LT_TAGS], [$1 ])dnl
  699. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  700. _LT_LANG_$1_CONFIG($1)])dnl
  701. ])# _LT_LANG
  702. m4_ifndef([AC_PROG_GO], [
  703. # NOTE: This macro has been submitted for inclusion into #
  704. # GNU Autoconf as AC_PROG_GO. When it is available in #
  705. # a released version of Autoconf we should remove this #
  706. # macro and use it instead. #
  707. m4_defun([AC_PROG_GO],
  708. [AC_LANG_PUSH(Go)dnl
  709. AC_ARG_VAR([GOC], [Go compiler command])dnl
  710. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  711. _AC_ARG_VAR_LDFLAGS()dnl
  712. AC_CHECK_TOOL(GOC, gccgo)
  713. if test -z "$GOC"; then
  714. if test -n "$ac_tool_prefix"; then
  715. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  716. fi
  717. fi
  718. if test -z "$GOC"; then
  719. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  720. fi
  721. ])#m4_defun
  722. ])#m4_ifndef
  723. # _LT_LANG_DEFAULT_CONFIG
  724. # -----------------------
  725. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  726. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  727. [LT_LANG(CXX)],
  728. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  729. AC_PROVIDE_IFELSE([AC_PROG_F77],
  730. [LT_LANG(F77)],
  731. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  732. AC_PROVIDE_IFELSE([AC_PROG_FC],
  733. [LT_LANG(FC)],
  734. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  735. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  736. dnl pulling things in needlessly.
  737. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  738. [LT_LANG(GCJ)],
  739. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  740. [LT_LANG(GCJ)],
  741. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  742. [LT_LANG(GCJ)],
  743. [m4_ifdef([AC_PROG_GCJ],
  744. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  745. m4_ifdef([A][M_PROG_GCJ],
  746. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  747. m4_ifdef([LT_PROG_GCJ],
  748. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  749. AC_PROVIDE_IFELSE([AC_PROG_GO],
  750. [LT_LANG(GO)],
  751. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  752. AC_PROVIDE_IFELSE([LT_PROG_RC],
  753. [LT_LANG(RC)],
  754. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  755. ])# _LT_LANG_DEFAULT_CONFIG
  756. # Obsolete macros:
  757. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  758. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  759. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  760. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  761. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  762. dnl aclocal-1.4 backwards compatibility:
  763. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  764. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  765. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  766. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  767. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  768. # _LT_TAG_COMPILER
  769. # ----------------
  770. m4_defun([_LT_TAG_COMPILER],
  771. [AC_REQUIRE([AC_PROG_CC])dnl
  772. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  773. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  774. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  775. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  776. # If no C compiler was specified, use CC.
  777. LTCC=${LTCC-"$CC"}
  778. # If no C compiler flags were specified, use CFLAGS.
  779. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  780. # Allow CC to be a program name with arguments.
  781. compiler=$CC
  782. ])# _LT_TAG_COMPILER
  783. # _LT_COMPILER_BOILERPLATE
  784. # ------------------------
  785. # Check for compiler boilerplate output or warnings with
  786. # the simple compiler test code.
  787. m4_defun([_LT_COMPILER_BOILERPLATE],
  788. [m4_require([_LT_DECL_SED])dnl
  789. ac_outfile=conftest.$ac_objext
  790. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  791. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  792. _lt_compiler_boilerplate=`cat conftest.err`
  793. $RM conftest*
  794. ])# _LT_COMPILER_BOILERPLATE
  795. # _LT_LINKER_BOILERPLATE
  796. # ----------------------
  797. # Check for linker boilerplate output or warnings with
  798. # the simple link test code.
  799. m4_defun([_LT_LINKER_BOILERPLATE],
  800. [m4_require([_LT_DECL_SED])dnl
  801. ac_outfile=conftest.$ac_objext
  802. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  803. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  804. _lt_linker_boilerplate=`cat conftest.err`
  805. $RM -r conftest*
  806. ])# _LT_LINKER_BOILERPLATE
  807. # _LT_REQUIRED_DARWIN_CHECKS
  808. # -------------------------
  809. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  810. case $host_os in
  811. rhapsody* | darwin*)
  812. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  813. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  814. AC_CHECK_TOOL([LIPO], [lipo], [:])
  815. AC_CHECK_TOOL([OTOOL], [otool], [:])
  816. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  817. _LT_DECL([], [DSYMUTIL], [1],
  818. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  819. _LT_DECL([], [NMEDIT], [1],
  820. [Tool to change global to local symbols on Mac OS X])
  821. _LT_DECL([], [LIPO], [1],
  822. [Tool to manipulate fat objects and archives on Mac OS X])
  823. _LT_DECL([], [OTOOL], [1],
  824. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  825. _LT_DECL([], [OTOOL64], [1],
  826. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  827. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  828. [lt_cv_apple_cc_single_mod=no
  829. if test -z "${LT_MULTI_MODULE}"; then
  830. # By default we will add the -single_module flag. You can override
  831. # by either setting the environment variable LT_MULTI_MODULE
  832. # non-empty at configure time, or by adding -multi_module to the
  833. # link flags.
  834. rm -rf libconftest.dylib*
  835. echo "int foo(void){return 1;}" > conftest.c
  836. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  837. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  838. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  839. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  840. _lt_result=$?
  841. # If there is a non-empty error log, and "single_module"
  842. # appears in it, assume the flag caused a linker warning
  843. if test -s conftest.err && $GREP single_module conftest.err; then
  844. cat conftest.err >&AS_MESSAGE_LOG_FD
  845. # Otherwise, if the output was created with a 0 exit code from
  846. # the compiler, it worked.
  847. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  848. lt_cv_apple_cc_single_mod=yes
  849. else
  850. cat conftest.err >&AS_MESSAGE_LOG_FD
  851. fi
  852. rm -rf libconftest.dylib*
  853. rm -f conftest.*
  854. fi])
  855. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  856. [lt_cv_ld_exported_symbols_list],
  857. [lt_cv_ld_exported_symbols_list=no
  858. save_LDFLAGS=$LDFLAGS
  859. echo "_main" > conftest.sym
  860. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  861. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  862. [lt_cv_ld_exported_symbols_list=yes],
  863. [lt_cv_ld_exported_symbols_list=no])
  864. LDFLAGS="$save_LDFLAGS"
  865. ])
  866. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  867. [lt_cv_ld_force_load=no
  868. cat > conftest.c << _LT_EOF
  869. int forced_loaded() { return 2;}
  870. _LT_EOF
  871. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  872. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  873. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  874. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  875. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  876. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  877. cat > conftest.c << _LT_EOF
  878. int main() { return 0;}
  879. _LT_EOF
  880. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  881. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  882. _lt_result=$?
  883. if test -s conftest.err && $GREP force_load conftest.err; then
  884. cat conftest.err >&AS_MESSAGE_LOG_FD
  885. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  886. lt_cv_ld_force_load=yes
  887. else
  888. cat conftest.err >&AS_MESSAGE_LOG_FD
  889. fi
  890. rm -f conftest.err libconftest.a conftest conftest.c
  891. rm -rf conftest.dSYM
  892. ])
  893. case $host_os in
  894. rhapsody* | darwin1.[[012]])
  895. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  896. darwin1.*)
  897. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  898. darwin*) # darwin 5.x on
  899. # if running on 10.5 or later, the deployment target defaults
  900. # to the OS version, if on x86, and 10.4, the deployment
  901. # target defaults to 10.4. Don't you love it?
  902. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  903. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  904. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  905. 10.[[012]]*)
  906. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  907. 10.*)
  908. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  909. esac
  910. ;;
  911. esac
  912. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  913. _lt_dar_single_mod='$single_module'
  914. fi
  915. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  916. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  917. else
  918. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  919. fi
  920. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  921. _lt_dsymutil='~$DSYMUTIL $lib || :'
  922. else
  923. _lt_dsymutil=
  924. fi
  925. ;;
  926. esac
  927. ])
  928. # _LT_DARWIN_LINKER_FEATURES([TAG])
  929. # ---------------------------------
  930. # Checks for linker and compiler features on darwin
  931. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  932. [
  933. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  934. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  935. _LT_TAGVAR(hardcode_direct, $1)=no
  936. _LT_TAGVAR(hardcode_automatic, $1)=yes
  937. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  938. if test "$lt_cv_ld_force_load" = "yes"; then
  939. _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  940. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  941. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  942. else
  943. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  944. fi
  945. _LT_TAGVAR(link_all_deplibs, $1)=yes
  946. _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  947. case $cc_basename in
  948. ifort*) _lt_dar_can_shared=yes ;;
  949. *) _lt_dar_can_shared=$GCC ;;
  950. esac
  951. if test "$_lt_dar_can_shared" = "yes"; then
  952. output_verbose_link_cmd=func_echo_all
  953. _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}"
  954. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  955. _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}"
  956. _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}"
  957. m4_if([$1], [CXX],
  958. [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  959. _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}"
  960. _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}"
  961. fi
  962. ],[])
  963. else
  964. _LT_TAGVAR(ld_shlibs, $1)=no
  965. fi
  966. ])
  967. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  968. # ----------------------------------
  969. # Links a minimal program and checks the executable
  970. # for the system default hardcoded library path. In most cases,
  971. # this is /usr/lib:/lib, but when the MPI compilers are used
  972. # the location of the communication and MPI libs are included too.
  973. # If we don't find anything, use the default library path according
  974. # to the aix ld manual.
  975. # Store the results from the different compilers for each TAGNAME.
  976. # Allow to override them for all tags through lt_cv_aix_libpath.
  977. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  978. [m4_require([_LT_DECL_SED])dnl
  979. if test "${lt_cv_aix_libpath+set}" = set; then
  980. aix_libpath=$lt_cv_aix_libpath
  981. else
  982. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  983. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  984. lt_aix_libpath_sed='[
  985. /Import File Strings/,/^$/ {
  986. /^0/ {
  987. s/^0 *\([^ ]*\) *$/\1/
  988. p
  989. }
  990. }]'
  991. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  992. # Check for a 64-bit object if we didn't find anything.
  993. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  994. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  995. fi],[])
  996. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  997. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
  998. fi
  999. ])
  1000. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1001. fi
  1002. ])# _LT_SYS_MODULE_PATH_AIX
  1003. # _LT_SHELL_INIT(ARG)
  1004. # -------------------
  1005. m4_define([_LT_SHELL_INIT],
  1006. [m4_divert_text([M4SH-INIT], [$1
  1007. ])])# _LT_SHELL_INIT
  1008. # _LT_PROG_ECHO_BACKSLASH
  1009. # -----------------------
  1010. # Find how we can fake an echo command that does not interpret backslash.
  1011. # In particular, with Autoconf 2.60 or later we add some code to the start
  1012. # of the generated configure script which will find a shell with a builtin
  1013. # printf (which we can use as an echo command).
  1014. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1015. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1016. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1017. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1018. AC_MSG_CHECKING([how to print strings])
  1019. # Test print first, because it will be a builtin if present.
  1020. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1021. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1022. ECHO='print -r --'
  1023. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1024. ECHO='printf %s\n'
  1025. else
  1026. # Use this function as a fallback that always works.
  1027. func_fallback_echo ()
  1028. {
  1029. eval 'cat <<_LTECHO_EOF
  1030. $[]1
  1031. _LTECHO_EOF'
  1032. }
  1033. ECHO='func_fallback_echo'
  1034. fi
  1035. # func_echo_all arg...
  1036. # Invoke $ECHO with all args, space-separated.
  1037. func_echo_all ()
  1038. {
  1039. $ECHO "$*"
  1040. }
  1041. case "$ECHO" in
  1042. printf*) AC_MSG_RESULT([printf]) ;;
  1043. print*) AC_MSG_RESULT([print -r]) ;;
  1044. *) AC_MSG_RESULT([cat]) ;;
  1045. esac
  1046. m4_ifdef([_AS_DETECT_SUGGESTED],
  1047. [_AS_DETECT_SUGGESTED([
  1048. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1049. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1050. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1051. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1052. PATH=/empty FPATH=/empty; export PATH FPATH
  1053. test "X`printf %s $ECHO`" = "X$ECHO" \
  1054. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1055. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1056. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1057. ])# _LT_PROG_ECHO_BACKSLASH
  1058. # _LT_WITH_SYSROOT
  1059. # ----------------
  1060. AC_DEFUN([_LT_WITH_SYSROOT],
  1061. [AC_MSG_CHECKING([for sysroot])
  1062. AC_ARG_WITH([sysroot],
  1063. [ --with-sysroot[=DIR] Search for dependent libraries within DIR
  1064. (or the compiler's sysroot if not specified).],
  1065. [], [with_sysroot=no])
  1066. dnl lt_sysroot will always be passed unquoted. We quote it here
  1067. dnl in case the user passed a directory name.
  1068. lt_sysroot=
  1069. case ${with_sysroot} in #(
  1070. yes)
  1071. if test "$GCC" = yes; then
  1072. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1073. fi
  1074. ;; #(
  1075. /*)
  1076. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1077. ;; #(
  1078. no|'')
  1079. ;; #(
  1080. *)
  1081. AC_MSG_RESULT([${with_sysroot}])
  1082. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1083. ;;
  1084. esac
  1085. AC_MSG_RESULT([${lt_sysroot:-no}])
  1086. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1087. [dependent libraries, and in which our libraries should be installed.])])
  1088. # _LT_ENABLE_LOCK
  1089. # ---------------
  1090. m4_defun([_LT_ENABLE_LOCK],
  1091. [AC_ARG_ENABLE([libtool-lock],
  1092. [AS_HELP_STRING([--disable-libtool-lock],
  1093. [avoid locking (might break parallel builds)])])
  1094. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1095. # Some flags need to be propagated to the compiler or linker for good
  1096. # libtool support.
  1097. case $host in
  1098. ia64-*-hpux*)
  1099. # Find out which ABI we are using.
  1100. echo 'int i;' > conftest.$ac_ext
  1101. if AC_TRY_EVAL(ac_compile); then
  1102. case `/usr/bin/file conftest.$ac_objext` in
  1103. *ELF-32*)
  1104. HPUX_IA64_MODE="32"
  1105. ;;
  1106. *ELF-64*)
  1107. HPUX_IA64_MODE="64"
  1108. ;;
  1109. esac
  1110. fi
  1111. rm -rf conftest*
  1112. ;;
  1113. *-*-irix6*)
  1114. # Find out which ABI we are using.
  1115. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1116. if AC_TRY_EVAL(ac_compile); then
  1117. if test "$lt_cv_prog_gnu_ld" = yes; then
  1118. case `/usr/bin/file conftest.$ac_objext` in
  1119. *32-bit*)
  1120. LD="${LD-ld} -melf32bsmip"
  1121. ;;
  1122. *N32*)
  1123. LD="${LD-ld} -melf32bmipn32"
  1124. ;;
  1125. *64-bit*)
  1126. LD="${LD-ld} -melf64bmip"
  1127. ;;
  1128. esac
  1129. else
  1130. case `/usr/bin/file conftest.$ac_objext` in
  1131. *32-bit*)
  1132. LD="${LD-ld} -32"
  1133. ;;
  1134. *N32*)
  1135. LD="${LD-ld} -n32"
  1136. ;;
  1137. *64-bit*)
  1138. LD="${LD-ld} -64"
  1139. ;;
  1140. esac
  1141. fi
  1142. fi
  1143. rm -rf conftest*
  1144. ;;
  1145. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1146. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1147. # Find out which ABI we are using.
  1148. echo 'int i;' > conftest.$ac_ext
  1149. if AC_TRY_EVAL(ac_compile); then
  1150. case `/usr/bin/file conftest.o` in
  1151. *32-bit*)
  1152. case $host in
  1153. x86_64-*kfreebsd*-gnu)
  1154. LD="${LD-ld} -m elf_i386_fbsd"
  1155. ;;
  1156. x86_64-*linux*)
  1157. LD="${LD-ld} -m elf_i386"
  1158. ;;
  1159. ppc64-*linux*|powerpc64-*linux*)
  1160. LD="${LD-ld} -m elf32ppclinux"
  1161. ;;
  1162. s390x-*linux*)
  1163. LD="${LD-ld} -m elf_s390"
  1164. ;;
  1165. sparc64-*linux*)
  1166. LD="${LD-ld} -m elf32_sparc"
  1167. ;;
  1168. esac
  1169. ;;
  1170. *64-bit*)
  1171. case $host in
  1172. x86_64-*kfreebsd*-gnu)
  1173. LD="${LD-ld} -m elf_x86_64_fbsd"
  1174. ;;
  1175. x86_64-*linux*)
  1176. LD="${LD-ld} -m elf_x86_64"
  1177. ;;
  1178. ppc*-*linux*|powerpc*-*linux*)
  1179. LD="${LD-ld} -m elf64ppc"
  1180. ;;
  1181. s390*-*linux*|s390*-*tpf*)
  1182. LD="${LD-ld} -m elf64_s390"
  1183. ;;
  1184. sparc*-*linux*)
  1185. LD="${LD-ld} -m elf64_sparc"
  1186. ;;
  1187. esac
  1188. ;;
  1189. esac
  1190. fi
  1191. rm -rf conftest*
  1192. ;;
  1193. *-*-sco3.2v5*)
  1194. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1195. SAVE_CFLAGS="$CFLAGS"
  1196. CFLAGS="$CFLAGS -belf"
  1197. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1198. [AC_LANG_PUSH(C)
  1199. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1200. AC_LANG_POP])
  1201. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1202. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1203. CFLAGS="$SAVE_CFLAGS"
  1204. fi
  1205. ;;
  1206. *-*solaris*)
  1207. # Find out which ABI we are using.
  1208. echo 'int i;' > conftest.$ac_ext
  1209. if AC_TRY_EVAL(ac_compile); then
  1210. case `/usr/bin/file conftest.o` in
  1211. *64-bit*)
  1212. case $lt_cv_prog_gnu_ld in
  1213. yes*)
  1214. case $host in
  1215. i?86-*-solaris*)
  1216. LD="${LD-ld} -m elf_x86_64"
  1217. ;;
  1218. sparc*-*-solaris*)
  1219. LD="${LD-ld} -m elf64_sparc"
  1220. ;;
  1221. esac
  1222. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1223. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1224. LD="${LD-ld}_sol2"
  1225. fi
  1226. ;;
  1227. *)
  1228. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1229. LD="${LD-ld} -64"
  1230. fi
  1231. ;;
  1232. esac
  1233. ;;
  1234. esac
  1235. fi
  1236. rm -rf conftest*
  1237. ;;
  1238. esac
  1239. need_locks="$enable_libtool_lock"
  1240. ])# _LT_ENABLE_LOCK
  1241. # _LT_PROG_AR
  1242. # -----------
  1243. m4_defun([_LT_PROG_AR],
  1244. [AC_CHECK_TOOLS(AR, [ar], false)
  1245. : ${AR=ar}
  1246. : ${AR_FLAGS=cru}
  1247. _LT_DECL([], [AR], [1], [The archiver])
  1248. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1249. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1250. [lt_cv_ar_at_file=no
  1251. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1252. [echo conftest.$ac_objext > conftest.lst
  1253. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1254. AC_TRY_EVAL([lt_ar_try])
  1255. if test "$ac_status" -eq 0; then
  1256. # Ensure the archiver fails upon bogus file names.
  1257. rm -f conftest.$ac_objext libconftest.a
  1258. AC_TRY_EVAL([lt_ar_try])
  1259. if test "$ac_status" -ne 0; then
  1260. lt_cv_ar_at_file=@
  1261. fi
  1262. fi
  1263. rm -f conftest.* libconftest.a
  1264. ])
  1265. ])
  1266. if test "x$lt_cv_ar_at_file" = xno; then
  1267. archiver_list_spec=
  1268. else
  1269. archiver_list_spec=$lt_cv_ar_at_file
  1270. fi
  1271. _LT_DECL([], [archiver_list_spec], [1],
  1272. [How to feed a file listing to the archiver])
  1273. ])# _LT_PROG_AR
  1274. # _LT_CMD_OLD_ARCHIVE
  1275. # -------------------
  1276. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1277. [_LT_PROG_AR
  1278. AC_CHECK_TOOL(STRIP, strip, :)
  1279. test -z "$STRIP" && STRIP=:
  1280. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1281. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1282. test -z "$RANLIB" && RANLIB=:
  1283. _LT_DECL([], [RANLIB], [1],
  1284. [Commands used to install an old-style archive])
  1285. # Determine commands to create old-style static archives.
  1286. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1287. old_postinstall_cmds='chmod 644 $oldlib'
  1288. old_postuninstall_cmds=
  1289. if test -n "$RANLIB"; then
  1290. case $host_os in
  1291. openbsd*)
  1292. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1293. ;;
  1294. *)
  1295. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1296. ;;
  1297. esac
  1298. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1299. fi
  1300. case $host_os in
  1301. darwin*)
  1302. lock_old_archive_extraction=yes ;;
  1303. *)
  1304. lock_old_archive_extraction=no ;;
  1305. esac
  1306. _LT_DECL([], [old_postinstall_cmds], [2])
  1307. _LT_DECL([], [old_postuninstall_cmds], [2])
  1308. _LT_TAGDECL([], [old_archive_cmds], [2],
  1309. [Commands used to build an old-style archive])
  1310. _LT_DECL([], [lock_old_archive_extraction], [0],
  1311. [Whether to use a lock for old archive extraction])
  1312. ])# _LT_CMD_OLD_ARCHIVE
  1313. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1314. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1315. # ----------------------------------------------------------------
  1316. # Check whether the given compiler option works
  1317. AC_DEFUN([_LT_COMPILER_OPTION],
  1318. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1319. m4_require([_LT_DECL_SED])dnl
  1320. AC_CACHE_CHECK([$1], [$2],
  1321. [$2=no
  1322. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1323. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1324. lt_compiler_flag="$3"
  1325. # Insert the option either (1) after the last *FLAGS variable, or
  1326. # (2) before a word containing "conftest.", or (3) at the end.
  1327. # Note that $ac_compile itself does not contain backslashes and begins
  1328. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1329. # The option is referenced via a variable to avoid confusing sed.
  1330. lt_compile=`echo "$ac_compile" | $SED \
  1331. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1332. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1333. -e 's:$: $lt_compiler_flag:'`
  1334. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1335. (eval "$lt_compile" 2>conftest.err)
  1336. ac_status=$?
  1337. cat conftest.err >&AS_MESSAGE_LOG_FD
  1338. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1339. if (exit $ac_status) && test -s "$ac_outfile"; then
  1340. # The compiler can only warn and ignore the option if not recognized
  1341. # So say no if there are warnings other than the usual output.
  1342. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1343. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1344. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1345. $2=yes
  1346. fi
  1347. fi
  1348. $RM conftest*
  1349. ])
  1350. if test x"[$]$2" = xyes; then
  1351. m4_if([$5], , :, [$5])
  1352. else
  1353. m4_if([$6], , :, [$6])
  1354. fi
  1355. ])# _LT_COMPILER_OPTION
  1356. # Old name:
  1357. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1358. dnl aclocal-1.4 backwards compatibility:
  1359. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1360. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1361. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1362. # ----------------------------------------------------
  1363. # Check whether the given linker option works
  1364. AC_DEFUN([_LT_LINKER_OPTION],
  1365. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1366. m4_require([_LT_DECL_SED])dnl
  1367. AC_CACHE_CHECK([$1], [$2],
  1368. [$2=no
  1369. save_LDFLAGS="$LDFLAGS"
  1370. LDFLAGS="$LDFLAGS $3"
  1371. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1372. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1373. # The linker can only warn and ignore the option if not recognized
  1374. # So say no if there are warnings
  1375. if test -s conftest.err; then
  1376. # Append any errors to the config.log.
  1377. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1378. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1379. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1380. if diff conftest.exp conftest.er2 >/dev/null; then
  1381. $2=yes
  1382. fi
  1383. else
  1384. $2=yes
  1385. fi
  1386. fi
  1387. $RM -r conftest*
  1388. LDFLAGS="$save_LDFLAGS"
  1389. ])
  1390. if test x"[$]$2" = xyes; then
  1391. m4_if([$4], , :, [$4])
  1392. else
  1393. m4_if([$5], , :, [$5])
  1394. fi
  1395. ])# _LT_LINKER_OPTION
  1396. # Old name:
  1397. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1398. dnl aclocal-1.4 backwards compatibility:
  1399. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1400. # LT_CMD_MAX_LEN
  1401. #---------------
  1402. AC_DEFUN([LT_CMD_MAX_LEN],
  1403. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1404. # find the maximum length of command line arguments
  1405. AC_MSG_CHECKING([the maximum length of command line arguments])
  1406. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1407. i=0
  1408. teststring="ABCD"
  1409. case $build_os in
  1410. msdosdjgpp*)
  1411. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1412. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1413. # during glob expansion). Even if it were fixed, the result of this
  1414. # check would be larger than it should be.
  1415. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1416. ;;
  1417. gnu*)
  1418. # Under GNU Hurd, this test is not required because there is
  1419. # no limit to the length of command line arguments.
  1420. # Libtool will interpret -1 as no limit whatsoever
  1421. lt_cv_sys_max_cmd_len=-1;
  1422. ;;
  1423. cygwin* | mingw* | cegcc*)
  1424. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1425. # about 5 minutes as the teststring grows exponentially.
  1426. # Worse, since 9x/ME are not pre-emptively multitasking,
  1427. # you end up with a "frozen" computer, even though with patience
  1428. # the test eventually succeeds (with a max line length of 256k).
  1429. # Instead, let's just punt: use the minimum linelength reported by
  1430. # all of the supported platforms: 8192 (on NT/2K/XP).
  1431. lt_cv_sys_max_cmd_len=8192;
  1432. ;;
  1433. mint*)
  1434. # On MiNT this can take a long time and run out of memory.
  1435. lt_cv_sys_max_cmd_len=8192;
  1436. ;;
  1437. amigaos*)
  1438. # On AmigaOS with pdksh, this test takes hours, literally.
  1439. # So we just punt and use a minimum line length of 8192.
  1440. lt_cv_sys_max_cmd_len=8192;
  1441. ;;
  1442. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1443. # This has been around since 386BSD, at least. Likely further.
  1444. if test -x /sbin/sysctl; then
  1445. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1446. elif test -x /usr/sbin/sysctl; then
  1447. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1448. else
  1449. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1450. fi
  1451. # And add a safety zone
  1452. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1453. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1454. ;;
  1455. interix*)
  1456. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1457. lt_cv_sys_max_cmd_len=196608
  1458. ;;
  1459. os2*)
  1460. # The test takes a long time on OS/2.
  1461. lt_cv_sys_max_cmd_len=8192
  1462. ;;
  1463. osf*)
  1464. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1465. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1466. # nice to cause kernel panics so lets avoid the loop below.
  1467. # First set a reasonable default.
  1468. lt_cv_sys_max_cmd_len=16384
  1469. #
  1470. if test -x /sbin/sysconfig; then
  1471. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1472. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1473. esac
  1474. fi
  1475. ;;
  1476. sco3.2v5*)
  1477. lt_cv_sys_max_cmd_len=102400
  1478. ;;
  1479. sysv5* | sco5v6* | sysv4.2uw2*)
  1480. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1481. if test -n "$kargmax"; then
  1482. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1483. else
  1484. lt_cv_sys_max_cmd_len=32768
  1485. fi
  1486. ;;
  1487. *)
  1488. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1489. if test -n "$lt_cv_sys_max_cmd_len"; then
  1490. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1491. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1492. else
  1493. # Make teststring a little bigger before we do anything with it.
  1494. # a 1K string should be a reasonable start.
  1495. for i in 1 2 3 4 5 6 7 8 ; do
  1496. teststring=$teststring$teststring
  1497. done
  1498. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1499. # If test is not a shell built-in, we'll probably end up computing a
  1500. # maximum length that is only half of the actual maximum length, but
  1501. # we can't tell.
  1502. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  1503. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1504. test $i != 17 # 1/2 MB should be enough
  1505. do
  1506. i=`expr $i + 1`
  1507. teststring=$teststring$teststring
  1508. done
  1509. # Only check the string length outside the loop.
  1510. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1511. teststring=
  1512. # Add a significant safety factor because C++ compilers can tack on
  1513. # massive amounts of additional arguments before passing them to the
  1514. # linker. It appears as though 1/2 is a usable value.
  1515. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1516. fi
  1517. ;;
  1518. esac
  1519. ])
  1520. if test -n $lt_cv_sys_max_cmd_len ; then
  1521. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1522. else
  1523. AC_MSG_RESULT(none)
  1524. fi
  1525. max_cmd_len=$lt_cv_sys_max_cmd_len
  1526. _LT_DECL([], [max_cmd_len], [0],
  1527. [What is the maximum length of a command?])
  1528. ])# LT_CMD_MAX_LEN
  1529. # Old name:
  1530. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1531. dnl aclocal-1.4 backwards compatibility:
  1532. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1533. # _LT_HEADER_DLFCN
  1534. # ----------------
  1535. m4_defun([_LT_HEADER_DLFCN],
  1536. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1537. ])# _LT_HEADER_DLFCN
  1538. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1539. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1540. # ----------------------------------------------------------------
  1541. m4_defun([_LT_TRY_DLOPEN_SELF],
  1542. [m4_require([_LT_HEADER_DLFCN])dnl
  1543. if test "$cross_compiling" = yes; then :
  1544. [$4]
  1545. else
  1546. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1547. lt_status=$lt_dlunknown
  1548. cat > conftest.$ac_ext <<_LT_EOF
  1549. [#line $LINENO "configure"
  1550. #include "confdefs.h"
  1551. #if HAVE_DLFCN_H
  1552. #include <dlfcn.h>
  1553. #endif
  1554. #include <stdio.h>
  1555. #ifdef RTLD_GLOBAL
  1556. # define LT_DLGLOBAL RTLD_GLOBAL
  1557. #else
  1558. # ifdef DL_GLOBAL
  1559. # define LT_DLGLOBAL DL_GLOBAL
  1560. # else
  1561. # define LT_DLGLOBAL 0
  1562. # endif
  1563. #endif
  1564. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1565. find out it does not work in some platform. */
  1566. #ifndef LT_DLLAZY_OR_NOW
  1567. # ifdef RTLD_LAZY
  1568. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1569. # else
  1570. # ifdef DL_LAZY
  1571. # define LT_DLLAZY_OR_NOW DL_LAZY
  1572. # else
  1573. # ifdef RTLD_NOW
  1574. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1575. # else
  1576. # ifdef DL_NOW
  1577. # define LT_DLLAZY_OR_NOW DL_NOW
  1578. # else
  1579. # define LT_DLLAZY_OR_NOW 0
  1580. # endif
  1581. # endif
  1582. # endif
  1583. # endif
  1584. #endif
  1585. /* When -fvisbility=hidden is used, assume the code has been annotated
  1586. correspondingly for the symbols needed. */
  1587. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1588. int fnord () __attribute__((visibility("default")));
  1589. #endif
  1590. int fnord () { return 42; }
  1591. int main ()
  1592. {
  1593. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1594. int status = $lt_dlunknown;
  1595. if (self)
  1596. {
  1597. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1598. else
  1599. {
  1600. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1601. else puts (dlerror ());
  1602. }
  1603. /* dlclose (self); */
  1604. }
  1605. else
  1606. puts (dlerror ());
  1607. return status;
  1608. }]
  1609. _LT_EOF
  1610. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1611. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1612. lt_status=$?
  1613. case x$lt_status in
  1614. x$lt_dlno_uscore) $1 ;;
  1615. x$lt_dlneed_uscore) $2 ;;
  1616. x$lt_dlunknown|x*) $3 ;;
  1617. esac
  1618. else :
  1619. # compilation failed
  1620. $3
  1621. fi
  1622. fi
  1623. rm -fr conftest*
  1624. ])# _LT_TRY_DLOPEN_SELF
  1625. # LT_SYS_DLOPEN_SELF
  1626. # ------------------
  1627. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1628. [m4_require([_LT_HEADER_DLFCN])dnl
  1629. if test "x$enable_dlopen" != xyes; then
  1630. enable_dlopen=unknown
  1631. enable_dlopen_self=unknown
  1632. enable_dlopen_self_static=unknown
  1633. else
  1634. lt_cv_dlopen=no
  1635. lt_cv_dlopen_libs=
  1636. case $host_os in
  1637. beos*)
  1638. lt_cv_dlopen="load_add_on"
  1639. lt_cv_dlopen_libs=
  1640. lt_cv_dlopen_self=yes
  1641. ;;
  1642. mingw* | pw32* | cegcc*)
  1643. lt_cv_dlopen="LoadLibrary"
  1644. lt_cv_dlopen_libs=
  1645. ;;
  1646. cygwin*)
  1647. lt_cv_dlopen="dlopen"
  1648. lt_cv_dlopen_libs=
  1649. ;;
  1650. darwin*)
  1651. # if libdl is installed we need to link against it
  1652. AC_CHECK_LIB([dl], [dlopen],
  1653. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1654. lt_cv_dlopen="dyld"
  1655. lt_cv_dlopen_libs=
  1656. lt_cv_dlopen_self=yes
  1657. ])
  1658. ;;
  1659. *)
  1660. AC_CHECK_FUNC([shl_load],
  1661. [lt_cv_dlopen="shl_load"],
  1662. [AC_CHECK_LIB([dld], [shl_load],
  1663. [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  1664. [AC_CHECK_FUNC([dlopen],
  1665. [lt_cv_dlopen="dlopen"],
  1666. [AC_CHECK_LIB([dl], [dlopen],
  1667. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1668. [AC_CHECK_LIB([svld], [dlopen],
  1669. [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1670. [AC_CHECK_LIB([dld], [dld_link],
  1671. [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  1672. ])
  1673. ])
  1674. ])
  1675. ])
  1676. ])
  1677. ;;
  1678. esac
  1679. if test "x$lt_cv_dlopen" != xno; then
  1680. enable_dlopen=yes
  1681. else
  1682. enable_dlopen=no
  1683. fi
  1684. case $lt_cv_dlopen in
  1685. dlopen)
  1686. save_CPPFLAGS="$CPPFLAGS"
  1687. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1688. save_LDFLAGS="$LDFLAGS"
  1689. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1690. save_LIBS="$LIBS"
  1691. LIBS="$lt_cv_dlopen_libs $LIBS"
  1692. AC_CACHE_CHECK([whether a program can dlopen itself],
  1693. lt_cv_dlopen_self, [dnl
  1694. _LT_TRY_DLOPEN_SELF(
  1695. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1696. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1697. ])
  1698. if test "x$lt_cv_dlopen_self" = xyes; then
  1699. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1700. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1701. lt_cv_dlopen_self_static, [dnl
  1702. _LT_TRY_DLOPEN_SELF(
  1703. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1704. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1705. ])
  1706. fi
  1707. CPPFLAGS="$save_CPPFLAGS"
  1708. LDFLAGS="$save_LDFLAGS"
  1709. LIBS="$save_LIBS"
  1710. ;;
  1711. esac
  1712. case $lt_cv_dlopen_self in
  1713. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1714. *) enable_dlopen_self=unknown ;;
  1715. esac
  1716. case $lt_cv_dlopen_self_static in
  1717. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1718. *) enable_dlopen_self_static=unknown ;;
  1719. esac
  1720. fi
  1721. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1722. [Whether dlopen is supported])
  1723. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1724. [Whether dlopen of programs is supported])
  1725. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1726. [Whether dlopen of statically linked programs is supported])
  1727. ])# LT_SYS_DLOPEN_SELF
  1728. # Old name:
  1729. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1730. dnl aclocal-1.4 backwards compatibility:
  1731. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1732. # _LT_COMPILER_C_O([TAGNAME])
  1733. # ---------------------------
  1734. # Check to see if options -c and -o are simultaneously supported by compiler.
  1735. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1736. m4_defun([_LT_COMPILER_C_O],
  1737. [m4_require([_LT_DECL_SED])dnl
  1738. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1739. m4_require([_LT_TAG_COMPILER])dnl
  1740. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1741. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1742. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1743. $RM -r conftest 2>/dev/null
  1744. mkdir conftest
  1745. cd conftest
  1746. mkdir out
  1747. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1748. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1749. # Insert the option either (1) after the last *FLAGS variable, or
  1750. # (2) before a word containing "conftest.", or (3) at the end.
  1751. # Note that $ac_compile itself does not contain backslashes and begins
  1752. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1753. lt_compile=`echo "$ac_compile" | $SED \
  1754. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1755. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1756. -e 's:$: $lt_compiler_flag:'`
  1757. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1758. (eval "$lt_compile" 2>out/conftest.err)
  1759. ac_status=$?
  1760. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1761. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1762. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1763. then
  1764. # The compiler can only warn and ignore the option if not recognized
  1765. # So say no if there are warnings
  1766. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1767. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1768. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1769. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1770. fi
  1771. fi
  1772. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1773. $RM conftest*
  1774. # SGI C++ compiler will create directory out/ii_files/ for
  1775. # template instantiation
  1776. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1777. $RM out/* && rmdir out
  1778. cd ..
  1779. $RM -r conftest
  1780. $RM conftest*
  1781. ])
  1782. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1783. [Does compiler simultaneously support -c and -o options?])
  1784. ])# _LT_COMPILER_C_O
  1785. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1786. # ----------------------------------
  1787. # Check to see if we can do hard links to lock some files if needed
  1788. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1789. [m4_require([_LT_ENABLE_LOCK])dnl
  1790. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1791. _LT_COMPILER_C_O([$1])
  1792. hard_links="nottested"
  1793. if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1794. # do not overwrite the value of need_locks provided by the user
  1795. AC_MSG_CHECKING([if we can lock with hard links])
  1796. hard_links=yes
  1797. $RM conftest*
  1798. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1799. touch conftest.a
  1800. ln conftest.a conftest.b 2>&5 || hard_links=no
  1801. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1802. AC_MSG_RESULT([$hard_links])
  1803. if test "$hard_links" = no; then
  1804. AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1805. need_locks=warn
  1806. fi
  1807. else
  1808. need_locks=no
  1809. fi
  1810. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1811. ])# _LT_COMPILER_FILE_LOCKS
  1812. # _LT_CHECK_OBJDIR
  1813. # ----------------
  1814. m4_defun([_LT_CHECK_OBJDIR],
  1815. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1816. [rm -f .libs 2>/dev/null
  1817. mkdir .libs 2>/dev/null
  1818. if test -d .libs; then
  1819. lt_cv_objdir=.libs
  1820. else
  1821. # MS-DOS does not allow filenames that begin with a dot.
  1822. lt_cv_objdir=_libs
  1823. fi
  1824. rmdir .libs 2>/dev/null])
  1825. objdir=$lt_cv_objdir
  1826. _LT_DECL([], [objdir], [0],
  1827. [The name of the directory that contains temporary libtool files])dnl
  1828. m4_pattern_allow([LT_OBJDIR])dnl
  1829. AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  1830. [Define to the sub-directory in which libtool stores uninstalled libraries.])
  1831. ])# _LT_CHECK_OBJDIR
  1832. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1833. # --------------------------------------
  1834. # Check hardcoding attributes.
  1835. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1836. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1837. _LT_TAGVAR(hardcode_action, $1)=
  1838. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1839. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1840. test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1841. # We can hardcode non-existent directories.
  1842. if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  1843. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1844. # have to relink, otherwise we might link with an installed library
  1845. # when we should be linking with a yet-to-be-installed one
  1846. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1847. test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  1848. # Linking always hardcodes the temporary library directory.
  1849. _LT_TAGVAR(hardcode_action, $1)=relink
  1850. else
  1851. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1852. _LT_TAGVAR(hardcode_action, $1)=immediate
  1853. fi
  1854. else
  1855. # We cannot hardcode anything, or else we can only hardcode existing
  1856. # directories.
  1857. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1858. fi
  1859. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1860. if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  1861. test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  1862. # Fast installation is not supported
  1863. enable_fast_install=no
  1864. elif test "$shlibpath_overrides_runpath" = yes ||
  1865. test "$enable_shared" = no; then
  1866. # Fast installation is not necessary
  1867. enable_fast_install=needless
  1868. fi
  1869. _LT_TAGDECL([], [hardcode_action], [0],
  1870. [How to hardcode a shared library path into an executable])
  1871. ])# _LT_LINKER_HARDCODE_LIBPATH
  1872. # _LT_CMD_STRIPLIB
  1873. # ----------------
  1874. m4_defun([_LT_CMD_STRIPLIB],
  1875. [m4_require([_LT_DECL_EGREP])
  1876. striplib=
  1877. old_striplib=
  1878. AC_MSG_CHECKING([whether stripping libraries is possible])
  1879. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1880. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1881. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1882. AC_MSG_RESULT([yes])
  1883. else
  1884. # FIXME - insert some real tests, host_os isn't really good enough
  1885. case $host_os in
  1886. darwin*)
  1887. if test -n "$STRIP" ; then
  1888. striplib="$STRIP -x"
  1889. old_striplib="$STRIP -S"
  1890. AC_MSG_RESULT([yes])
  1891. else
  1892. AC_MSG_RESULT([no])
  1893. fi
  1894. ;;
  1895. *)
  1896. AC_MSG_RESULT([no])
  1897. ;;
  1898. esac
  1899. fi
  1900. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1901. _LT_DECL([], [striplib], [1])
  1902. ])# _LT_CMD_STRIPLIB
  1903. # _LT_SYS_DYNAMIC_LINKER([TAG])
  1904. # -----------------------------
  1905. # PORTME Fill in your ld.so characteristics
  1906. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  1907. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1908. m4_require([_LT_DECL_EGREP])dnl
  1909. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1910. m4_require([_LT_DECL_OBJDUMP])dnl
  1911. m4_require([_LT_DECL_SED])dnl
  1912. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  1913. AC_MSG_CHECKING([dynamic linker characteristics])
  1914. m4_if([$1],
  1915. [], [
  1916. if test "$GCC" = yes; then
  1917. case $host_os in
  1918. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  1919. *) lt_awk_arg="/^libraries:/" ;;
  1920. esac
  1921. case $host_os in
  1922. mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
  1923. *) lt_sed_strip_eq="s,=/,/,g" ;;
  1924. esac
  1925. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  1926. case $lt_search_path_spec in
  1927. *\;*)
  1928. # if the path contains ";" then we assume it to be the separator
  1929. # otherwise default to the standard path separator (i.e. ":") - it is
  1930. # assumed that no part of a normal pathname contains ";" but that should
  1931. # okay in the real world where ";" in dirpaths is itself problematic.
  1932. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  1933. ;;
  1934. *)
  1935. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  1936. ;;
  1937. esac
  1938. # Ok, now we have the path, separated by spaces, we can step through it
  1939. # and add multilib dir if necessary.
  1940. lt_tmp_lt_search_path_spec=
  1941. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  1942. for lt_sys_path in $lt_search_path_spec; do
  1943. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  1944. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  1945. else
  1946. test -d "$lt_sys_path" && \
  1947. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  1948. fi
  1949. done
  1950. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  1951. BEGIN {RS=" "; FS="/|\n";} {
  1952. lt_foo="";
  1953. lt_count=0;
  1954. for (lt_i = NF; lt_i > 0; lt_i--) {
  1955. if ($lt_i != "" && $lt_i != ".") {
  1956. if ($lt_i == "..") {
  1957. lt_count++;
  1958. } else {
  1959. if (lt_count == 0) {
  1960. lt_foo="/" $lt_i lt_foo;
  1961. } else {
  1962. lt_count--;
  1963. }
  1964. }
  1965. }
  1966. }
  1967. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  1968. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  1969. }'`
  1970. # AWK program above erroneously prepends '/' to C:/dos/paths
  1971. # for these hosts.
  1972. case $host_os in
  1973. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  1974. $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
  1975. esac
  1976. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  1977. else
  1978. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  1979. fi])
  1980. library_names_spec=
  1981. libname_spec='lib$name'
  1982. soname_spec=
  1983. shrext_cmds=".so"
  1984. postinstall_cmds=
  1985. postuninstall_cmds=
  1986. finish_cmds=
  1987. finish_eval=
  1988. shlibpath_var=
  1989. shlibpath_overrides_runpath=unknown
  1990. version_type=none
  1991. dynamic_linker="$host_os ld.so"
  1992. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  1993. need_lib_prefix=unknown
  1994. hardcode_into_libs=no
  1995. # when you set need_version to no, make sure it does not cause -set_version
  1996. # flags to be left without arguments
  1997. need_version=unknown
  1998. case $host_os in
  1999. aix3*)
  2000. version_type=linux # correct to gnu/linux during the next big refactor
  2001. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2002. shlibpath_var=LIBPATH
  2003. # AIX 3 has no versioning support, so we append a major version to the name.
  2004. soname_spec='${libname}${release}${shared_ext}$major'
  2005. ;;
  2006. aix[[4-9]]*)
  2007. version_type=linux # correct to gnu/linux during the next big refactor
  2008. need_lib_prefix=no
  2009. need_version=no
  2010. hardcode_into_libs=yes
  2011. if test "$host_cpu" = ia64; then
  2012. # AIX 5 supports IA64
  2013. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2014. shlibpath_var=LD_LIBRARY_PATH
  2015. else
  2016. # With GCC up to 2.95.x, collect2 would create an import file
  2017. # for dependence libraries. The import file would start with
  2018. # the line `#! .'. This would cause the generated library to
  2019. # depend on `.', always an invalid library. This was fixed in
  2020. # development snapshots of GCC prior to 3.0.
  2021. case $host_os in
  2022. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2023. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2024. echo ' yes '
  2025. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2026. :
  2027. else
  2028. can_build_shared=no
  2029. fi
  2030. ;;
  2031. esac
  2032. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2033. # soname into executable. Probably we can add versioning support to
  2034. # collect2, so additional links can be useful in future.
  2035. if test "$aix_use_runtimelinking" = yes; then
  2036. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2037. # instead of lib<name>.a to let people know that these are not
  2038. # typical AIX shared libraries.
  2039. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2040. else
  2041. # We preserve .a as extension for shared libraries through AIX4.2
  2042. # and later when we are not doing run time linking.
  2043. library_names_spec='${libname}${release}.a $libname.a'
  2044. soname_spec='${libname}${release}${shared_ext}$major'
  2045. fi
  2046. shlibpath_var=LIBPATH
  2047. fi
  2048. ;;
  2049. amigaos*)
  2050. case $host_cpu in
  2051. powerpc)
  2052. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2053. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2054. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2055. ;;
  2056. m68k)
  2057. library_names_spec='$libname.ixlibrary $libname.a'
  2058. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2059. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  2060. ;;
  2061. esac
  2062. ;;
  2063. beos*)
  2064. library_names_spec='${libname}${shared_ext}'
  2065. dynamic_linker="$host_os ld.so"
  2066. shlibpath_var=LIBRARY_PATH
  2067. ;;
  2068. bsdi[[45]]*)
  2069. version_type=linux # correct to gnu/linux during the next big refactor
  2070. need_version=no
  2071. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2072. soname_spec='${libname}${release}${shared_ext}$major'
  2073. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2074. shlibpath_var=LD_LIBRARY_PATH
  2075. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2076. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2077. # the default ld.so.conf also contains /usr/contrib/lib and
  2078. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2079. # libtool to hard-code these into programs
  2080. ;;
  2081. cygwin* | mingw* | pw32* | cegcc*)
  2082. version_type=windows
  2083. shrext_cmds=".dll"
  2084. need_version=no
  2085. need_lib_prefix=no
  2086. case $GCC,$cc_basename in
  2087. yes,*)
  2088. # gcc
  2089. library_names_spec='$libname.dll.a'
  2090. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2091. postinstall_cmds='base_file=`basename \${file}`~
  2092. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2093. dldir=$destdir/`dirname \$dlpath`~
  2094. test -d \$dldir || mkdir -p \$dldir~
  2095. $install_prog $dir/$dlname \$dldir/$dlname~
  2096. chmod a+x \$dldir/$dlname~
  2097. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2098. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2099. fi'
  2100. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2101. dlpath=$dir/\$dldll~
  2102. $RM \$dlpath'
  2103. shlibpath_overrides_runpath=yes
  2104. case $host_os in
  2105. cygwin*)
  2106. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2107. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2108. m4_if([$1], [],[
  2109. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2110. ;;
  2111. mingw* | cegcc*)
  2112. # MinGW DLLs use traditional 'lib' prefix
  2113. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2114. ;;
  2115. pw32*)
  2116. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2117. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2118. ;;
  2119. esac
  2120. dynamic_linker='Win32 ld.exe'
  2121. ;;
  2122. *,cl*)
  2123. # Native MSVC
  2124. libname_spec='$name'
  2125. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2126. library_names_spec='${libname}.dll.lib'
  2127. case $build_os in
  2128. mingw*)
  2129. sys_lib_search_path_spec=
  2130. lt_save_ifs=$IFS
  2131. IFS=';'
  2132. for lt_path in $LIB
  2133. do
  2134. IFS=$lt_save_ifs
  2135. # Let DOS variable expansion print the short 8.3 style file name.
  2136. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2137. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2138. done
  2139. IFS=$lt_save_ifs
  2140. # Convert to MSYS style.
  2141. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2142. ;;
  2143. cygwin*)
  2144. # Convert to unix form, then to dos form, then back to unix form
  2145. # but this time dos style (no spaces!) so that the unix form looks
  2146. # like /cygdrive/c/PROGRA~1:/cygdr...
  2147. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2148. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2149. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2150. ;;
  2151. *)
  2152. sys_lib_search_path_spec="$LIB"
  2153. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2154. # It is most probably a Windows format PATH.
  2155. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2156. else
  2157. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2158. fi
  2159. # FIXME: find the short name or the path components, as spaces are
  2160. # common. (e.g. "Program Files" -> "PROGRA~1")
  2161. ;;
  2162. esac
  2163. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2164. postinstall_cmds='base_file=`basename \${file}`~
  2165. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2166. dldir=$destdir/`dirname \$dlpath`~
  2167. test -d \$dldir || mkdir -p \$dldir~
  2168. $install_prog $dir/$dlname \$dldir/$dlname'
  2169. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2170. dlpath=$dir/\$dldll~
  2171. $RM \$dlpath'
  2172. shlibpath_overrides_runpath=yes
  2173. dynamic_linker='Win32 link.exe'
  2174. ;;
  2175. *)
  2176. # Assume MSVC wrapper
  2177. library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2178. dynamic_linker='Win32 ld.exe'
  2179. ;;
  2180. esac
  2181. # FIXME: first we should search . and the directory the executable is in
  2182. shlibpath_var=PATH
  2183. ;;
  2184. darwin* | rhapsody*)
  2185. dynamic_linker="$host_os dyld"
  2186. version_type=darwin
  2187. need_lib_prefix=no
  2188. need_version=no
  2189. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2190. soname_spec='${libname}${release}${major}$shared_ext'
  2191. shlibpath_overrides_runpath=yes
  2192. shlibpath_var=DYLD_LIBRARY_PATH
  2193. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2194. m4_if([$1], [],[
  2195. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2196. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2197. ;;
  2198. dgux*)
  2199. version_type=linux # correct to gnu/linux during the next big refactor
  2200. need_lib_prefix=no
  2201. need_version=no
  2202. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2203. soname_spec='${libname}${release}${shared_ext}$major'
  2204. shlibpath_var=LD_LIBRARY_PATH
  2205. ;;
  2206. freebsd* | dragonfly*)
  2207. # DragonFly does not have aout. When/if they implement a new
  2208. # versioning mechanism, adjust this.
  2209. if test -x /usr/bin/objformat; then
  2210. objformat=`/usr/bin/objformat`
  2211. else
  2212. case $host_os in
  2213. freebsd[[23]].*) objformat=aout ;;
  2214. *) objformat=elf ;;
  2215. esac
  2216. fi
  2217. version_type=freebsd-$objformat
  2218. case $version_type in
  2219. freebsd-elf*)
  2220. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2221. need_version=no
  2222. need_lib_prefix=no
  2223. ;;
  2224. freebsd-*)
  2225. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2226. need_version=yes
  2227. ;;
  2228. esac
  2229. shlibpath_var=LD_LIBRARY_PATH
  2230. case $host_os in
  2231. freebsd2.*)
  2232. shlibpath_overrides_runpath=yes
  2233. ;;
  2234. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2235. shlibpath_overrides_runpath=yes
  2236. hardcode_into_libs=yes
  2237. ;;
  2238. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2239. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2240. shlibpath_overrides_runpath=no
  2241. hardcode_into_libs=yes
  2242. ;;
  2243. *) # from 4.6 on, and DragonFly
  2244. shlibpath_overrides_runpath=yes
  2245. hardcode_into_libs=yes
  2246. ;;
  2247. esac
  2248. ;;
  2249. gnu*)
  2250. version_type=linux # correct to gnu/linux during the next big refactor
  2251. need_lib_prefix=no
  2252. need_version=no
  2253. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2254. soname_spec='${libname}${release}${shared_ext}$major'
  2255. shlibpath_var=LD_LIBRARY_PATH
  2256. shlibpath_overrides_runpath=no
  2257. hardcode_into_libs=yes
  2258. ;;
  2259. haiku*)
  2260. version_type=linux # correct to gnu/linux during the next big refactor
  2261. need_lib_prefix=no
  2262. need_version=no
  2263. dynamic_linker="$host_os runtime_loader"
  2264. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2265. soname_spec='${libname}${release}${shared_ext}$major'
  2266. shlibpath_var=LIBRARY_PATH
  2267. shlibpath_overrides_runpath=yes
  2268. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2269. hardcode_into_libs=yes
  2270. ;;
  2271. hpux9* | hpux10* | hpux11*)
  2272. # Give a soname corresponding to the major version so that dld.sl refuses to
  2273. # link against other versions.
  2274. version_type=sunos
  2275. need_lib_prefix=no
  2276. need_version=no
  2277. case $host_cpu in
  2278. ia64*)
  2279. shrext_cmds='.so'
  2280. hardcode_into_libs=yes
  2281. dynamic_linker="$host_os dld.so"
  2282. shlibpath_var=LD_LIBRARY_PATH
  2283. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2284. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2285. soname_spec='${libname}${release}${shared_ext}$major'
  2286. if test "X$HPUX_IA64_MODE" = X32; then
  2287. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2288. else
  2289. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2290. fi
  2291. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2292. ;;
  2293. hppa*64*)
  2294. shrext_cmds='.sl'
  2295. hardcode_into_libs=yes
  2296. dynamic_linker="$host_os dld.sl"
  2297. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2298. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2299. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2300. soname_spec='${libname}${release}${shared_ext}$major'
  2301. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2302. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2303. ;;
  2304. *)
  2305. shrext_cmds='.sl'
  2306. dynamic_linker="$host_os dld.sl"
  2307. shlibpath_var=SHLIB_PATH
  2308. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2309. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2310. soname_spec='${libname}${release}${shared_ext}$major'
  2311. ;;
  2312. esac
  2313. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2314. postinstall_cmds='chmod 555 $lib'
  2315. # or fails outright, so override atomically:
  2316. install_override_mode=555
  2317. ;;
  2318. interix[[3-9]]*)
  2319. version_type=linux # correct to gnu/linux during the next big refactor
  2320. need_lib_prefix=no
  2321. need_version=no
  2322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2323. soname_spec='${libname}${release}${shared_ext}$major'
  2324. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2325. shlibpath_var=LD_LIBRARY_PATH
  2326. shlibpath_overrides_runpath=no
  2327. hardcode_into_libs=yes
  2328. ;;
  2329. irix5* | irix6* | nonstopux*)
  2330. case $host_os in
  2331. nonstopux*) version_type=nonstopux ;;
  2332. *)
  2333. if test "$lt_cv_prog_gnu_ld" = yes; then
  2334. version_type=linux # correct to gnu/linux during the next big refactor
  2335. else
  2336. version_type=irix
  2337. fi ;;
  2338. esac
  2339. need_lib_prefix=no
  2340. need_version=no
  2341. soname_spec='${libname}${release}${shared_ext}$major'
  2342. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2343. case $host_os in
  2344. irix5* | nonstopux*)
  2345. libsuff= shlibsuff=
  2346. ;;
  2347. *)
  2348. case $LD in # libtool.m4 will add one of these switches to LD
  2349. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2350. libsuff= shlibsuff= libmagic=32-bit;;
  2351. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2352. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2353. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2354. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2355. *) libsuff= shlibsuff= libmagic=never-match;;
  2356. esac
  2357. ;;
  2358. esac
  2359. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2360. shlibpath_overrides_runpath=no
  2361. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2362. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2363. hardcode_into_libs=yes
  2364. ;;
  2365. # No shared lib support for Linux oldld, aout, or coff.
  2366. linux*oldld* | linux*aout* | linux*coff*)
  2367. dynamic_linker=no
  2368. ;;
  2369. # This must be glibc/ELF.
  2370. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2371. version_type=linux # correct to gnu/linux during the next big refactor
  2372. need_lib_prefix=no
  2373. need_version=no
  2374. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2375. soname_spec='${libname}${release}${shared_ext}$major'
  2376. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2377. shlibpath_var=LD_LIBRARY_PATH
  2378. shlibpath_overrides_runpath=no
  2379. # Some binutils ld are patched to set DT_RUNPATH
  2380. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2381. [lt_cv_shlibpath_overrides_runpath=no
  2382. save_LDFLAGS=$LDFLAGS
  2383. save_libdir=$libdir
  2384. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2385. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2386. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2387. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2388. [lt_cv_shlibpath_overrides_runpath=yes])])
  2389. LDFLAGS=$save_LDFLAGS
  2390. libdir=$save_libdir
  2391. ])
  2392. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2393. # This implies no fast_install, which is unacceptable.
  2394. # Some rework will be needed to allow for fast_install
  2395. # before this can be enabled.
  2396. hardcode_into_libs=yes
  2397. # Add ABI-specific directories to the system library path.
  2398. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2399. # Append ld.so.conf contents to the search path
  2400. if test -f /etc/ld.so.conf; then
  2401. 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;s/"//g;/^$/d' | tr '\n' ' '`
  2402. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2403. fi
  2404. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2405. # powerpc, because MkLinux only supported shared libraries with the
  2406. # GNU dynamic linker. Since this was broken with cross compilers,
  2407. # most powerpc-linux boxes support dynamic linking these days and
  2408. # people can always --disable-shared, the test was removed, and we
  2409. # assume the GNU/Linux dynamic linker is in use.
  2410. dynamic_linker='GNU/Linux ld.so'
  2411. ;;
  2412. netbsd*)
  2413. version_type=sunos
  2414. need_lib_prefix=no
  2415. need_version=no
  2416. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2417. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2418. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2419. dynamic_linker='NetBSD (a.out) ld.so'
  2420. else
  2421. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2422. soname_spec='${libname}${release}${shared_ext}$major'
  2423. dynamic_linker='NetBSD ld.elf_so'
  2424. fi
  2425. shlibpath_var=LD_LIBRARY_PATH
  2426. shlibpath_overrides_runpath=yes
  2427. hardcode_into_libs=yes
  2428. ;;
  2429. newsos6)
  2430. version_type=linux # correct to gnu/linux during the next big refactor
  2431. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2432. shlibpath_var=LD_LIBRARY_PATH
  2433. shlibpath_overrides_runpath=yes
  2434. ;;
  2435. *nto* | *qnx*)
  2436. version_type=qnx
  2437. need_lib_prefix=no
  2438. need_version=no
  2439. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2440. soname_spec='${libname}${release}${shared_ext}$major'
  2441. shlibpath_var=LD_LIBRARY_PATH
  2442. shlibpath_overrides_runpath=no
  2443. hardcode_into_libs=yes
  2444. dynamic_linker='ldqnx.so'
  2445. ;;
  2446. openbsd*)
  2447. version_type=sunos
  2448. sys_lib_dlsearch_path_spec="/usr/lib"
  2449. need_lib_prefix=no
  2450. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2451. case $host_os in
  2452. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2453. *) need_version=no ;;
  2454. esac
  2455. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2456. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2457. shlibpath_var=LD_LIBRARY_PATH
  2458. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2459. case $host_os in
  2460. openbsd2.[[89]] | openbsd2.[[89]].*)
  2461. shlibpath_overrides_runpath=no
  2462. ;;
  2463. *)
  2464. shlibpath_overrides_runpath=yes
  2465. ;;
  2466. esac
  2467. else
  2468. shlibpath_overrides_runpath=yes
  2469. fi
  2470. ;;
  2471. os2*)
  2472. libname_spec='$name'
  2473. shrext_cmds=".dll"
  2474. need_lib_prefix=no
  2475. library_names_spec='$libname${shared_ext} $libname.a'
  2476. dynamic_linker='OS/2 ld.exe'
  2477. shlibpath_var=LIBPATH
  2478. ;;
  2479. osf3* | osf4* | osf5*)
  2480. version_type=osf
  2481. need_lib_prefix=no
  2482. need_version=no
  2483. soname_spec='${libname}${release}${shared_ext}$major'
  2484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2485. shlibpath_var=LD_LIBRARY_PATH
  2486. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2487. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2488. ;;
  2489. rdos*)
  2490. dynamic_linker=no
  2491. ;;
  2492. solaris*)
  2493. version_type=linux # correct to gnu/linux during the next big refactor
  2494. need_lib_prefix=no
  2495. need_version=no
  2496. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2497. soname_spec='${libname}${release}${shared_ext}$major'
  2498. shlibpath_var=LD_LIBRARY_PATH
  2499. shlibpath_overrides_runpath=yes
  2500. hardcode_into_libs=yes
  2501. # ldd complains unless libraries are executable
  2502. postinstall_cmds='chmod +x $lib'
  2503. ;;
  2504. sunos4*)
  2505. version_type=sunos
  2506. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2507. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2508. shlibpath_var=LD_LIBRARY_PATH
  2509. shlibpath_overrides_runpath=yes
  2510. if test "$with_gnu_ld" = yes; then
  2511. need_lib_prefix=no
  2512. fi
  2513. need_version=yes
  2514. ;;
  2515. sysv4 | sysv4.3*)
  2516. version_type=linux # correct to gnu/linux during the next big refactor
  2517. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2518. soname_spec='${libname}${release}${shared_ext}$major'
  2519. shlibpath_var=LD_LIBRARY_PATH
  2520. case $host_vendor in
  2521. sni)
  2522. shlibpath_overrides_runpath=no
  2523. need_lib_prefix=no
  2524. runpath_var=LD_RUN_PATH
  2525. ;;
  2526. siemens)
  2527. need_lib_prefix=no
  2528. ;;
  2529. motorola)
  2530. need_lib_prefix=no
  2531. need_version=no
  2532. shlibpath_overrides_runpath=no
  2533. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2534. ;;
  2535. esac
  2536. ;;
  2537. sysv4*MP*)
  2538. if test -d /usr/nec ;then
  2539. version_type=linux # correct to gnu/linux during the next big refactor
  2540. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  2541. soname_spec='$libname${shared_ext}.$major'
  2542. shlibpath_var=LD_LIBRARY_PATH
  2543. fi
  2544. ;;
  2545. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2546. version_type=freebsd-elf
  2547. need_lib_prefix=no
  2548. need_version=no
  2549. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2550. soname_spec='${libname}${release}${shared_ext}$major'
  2551. shlibpath_var=LD_LIBRARY_PATH
  2552. shlibpath_overrides_runpath=yes
  2553. hardcode_into_libs=yes
  2554. if test "$with_gnu_ld" = yes; then
  2555. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2556. else
  2557. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2558. case $host_os in
  2559. sco3.2v5*)
  2560. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2561. ;;
  2562. esac
  2563. fi
  2564. sys_lib_dlsearch_path_spec='/usr/lib'
  2565. ;;
  2566. tpf*)
  2567. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2568. version_type=linux # correct to gnu/linux during the next big refactor
  2569. need_lib_prefix=no
  2570. need_version=no
  2571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2572. shlibpath_var=LD_LIBRARY_PATH
  2573. shlibpath_overrides_runpath=no
  2574. hardcode_into_libs=yes
  2575. ;;
  2576. uts4*)
  2577. version_type=linux # correct to gnu/linux during the next big refactor
  2578. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2579. soname_spec='${libname}${release}${shared_ext}$major'
  2580. shlibpath_var=LD_LIBRARY_PATH
  2581. ;;
  2582. *)
  2583. dynamic_linker=no
  2584. ;;
  2585. esac
  2586. AC_MSG_RESULT([$dynamic_linker])
  2587. test "$dynamic_linker" = no && can_build_shared=no
  2588. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2589. if test "$GCC" = yes; then
  2590. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2591. fi
  2592. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2593. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2594. fi
  2595. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2596. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2597. fi
  2598. _LT_DECL([], [variables_saved_for_relink], [1],
  2599. [Variables whose values should be saved in libtool wrapper scripts and
  2600. restored at link time])
  2601. _LT_DECL([], [need_lib_prefix], [0],
  2602. [Do we need the "lib" prefix for modules?])
  2603. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2604. _LT_DECL([], [version_type], [0], [Library versioning type])
  2605. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2606. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2607. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2608. [Is shlibpath searched before the hard-coded library search path?])
  2609. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2610. _LT_DECL([], [library_names_spec], [1],
  2611. [[List of archive names. First name is the real one, the rest are links.
  2612. The last name is the one that the linker finds with -lNAME]])
  2613. _LT_DECL([], [soname_spec], [1],
  2614. [[The coded name of the library, if different from the real name]])
  2615. _LT_DECL([], [install_override_mode], [1],
  2616. [Permission mode override for installation of shared libraries])
  2617. _LT_DECL([], [postinstall_cmds], [2],
  2618. [Command to use after installation of a shared archive])
  2619. _LT_DECL([], [postuninstall_cmds], [2],
  2620. [Command to use after uninstallation of a shared archive])
  2621. _LT_DECL([], [finish_cmds], [2],
  2622. [Commands used to finish a libtool library installation in a directory])
  2623. _LT_DECL([], [finish_eval], [1],
  2624. [[As "finish_cmds", except a single script fragment to be evaled but
  2625. not shown]])
  2626. _LT_DECL([], [hardcode_into_libs], [0],
  2627. [Whether we should hardcode library paths into libraries])
  2628. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2629. [Compile-time system search path for libraries])
  2630. _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2631. [Run-time system search path for libraries])
  2632. ])# _LT_SYS_DYNAMIC_LINKER
  2633. # _LT_PATH_TOOL_PREFIX(TOOL)
  2634. # --------------------------
  2635. # find a file program which can recognize shared library
  2636. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2637. [m4_require([_LT_DECL_EGREP])dnl
  2638. AC_MSG_CHECKING([for $1])
  2639. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2640. [case $MAGIC_CMD in
  2641. [[\\/*] | ?:[\\/]*])
  2642. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  2643. ;;
  2644. *)
  2645. lt_save_MAGIC_CMD="$MAGIC_CMD"
  2646. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2647. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2648. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2649. dnl not every word. This closes a longstanding sh security hole.
  2650. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2651. for ac_dir in $ac_dummy; do
  2652. IFS="$lt_save_ifs"
  2653. test -z "$ac_dir" && ac_dir=.
  2654. if test -f $ac_dir/$1; then
  2655. lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  2656. if test -n "$file_magic_test_file"; then
  2657. case $deplibs_check_method in
  2658. "file_magic "*)
  2659. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2660. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2661. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2662. $EGREP "$file_magic_regex" > /dev/null; then
  2663. :
  2664. else
  2665. cat <<_LT_EOF 1>&2
  2666. *** Warning: the command libtool uses to detect shared libraries,
  2667. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2668. *** The result is that libtool may fail to recognize shared libraries
  2669. *** as such. This will affect the creation of libtool libraries that
  2670. *** depend on shared libraries, but programs linked with such libtool
  2671. *** libraries will work regardless of this problem. Nevertheless, you
  2672. *** may want to report the problem to your system manager and/or to
  2673. *** bug-libtool@gnu.org
  2674. _LT_EOF
  2675. fi ;;
  2676. esac
  2677. fi
  2678. break
  2679. fi
  2680. done
  2681. IFS="$lt_save_ifs"
  2682. MAGIC_CMD="$lt_save_MAGIC_CMD"
  2683. ;;
  2684. esac])
  2685. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  2686. if test -n "$MAGIC_CMD"; then
  2687. AC_MSG_RESULT($MAGIC_CMD)
  2688. else
  2689. AC_MSG_RESULT(no)
  2690. fi
  2691. _LT_DECL([], [MAGIC_CMD], [0],
  2692. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2693. ])# _LT_PATH_TOOL_PREFIX
  2694. # Old name:
  2695. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2696. dnl aclocal-1.4 backwards compatibility:
  2697. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2698. # _LT_PATH_MAGIC
  2699. # --------------
  2700. # find a file program which can recognize a shared library
  2701. m4_defun([_LT_PATH_MAGIC],
  2702. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2703. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2704. if test -n "$ac_tool_prefix"; then
  2705. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2706. else
  2707. MAGIC_CMD=:
  2708. fi
  2709. fi
  2710. ])# _LT_PATH_MAGIC
  2711. # LT_PATH_LD
  2712. # ----------
  2713. # find the pathname to the GNU or non-GNU linker
  2714. AC_DEFUN([LT_PATH_LD],
  2715. [AC_REQUIRE([AC_PROG_CC])dnl
  2716. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2717. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2718. m4_require([_LT_DECL_SED])dnl
  2719. m4_require([_LT_DECL_EGREP])dnl
  2720. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2721. AC_ARG_WITH([gnu-ld],
  2722. [AS_HELP_STRING([--with-gnu-ld],
  2723. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2724. [test "$withval" = no || with_gnu_ld=yes],
  2725. [with_gnu_ld=no])dnl
  2726. ac_prog=ld
  2727. if test "$GCC" = yes; then
  2728. # Check if gcc -print-prog-name=ld gives a path.
  2729. AC_MSG_CHECKING([for ld used by $CC])
  2730. case $host in
  2731. *-*-mingw*)
  2732. # gcc leaves a trailing carriage return which upsets mingw
  2733. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2734. *)
  2735. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2736. esac
  2737. case $ac_prog in
  2738. # Accept absolute paths.
  2739. [[\\/]]* | ?:[[\\/]]*)
  2740. re_direlt='/[[^/]][[^/]]*/\.\./'
  2741. # Canonicalize the pathname of ld
  2742. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2743. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2744. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2745. done
  2746. test -z "$LD" && LD="$ac_prog"
  2747. ;;
  2748. "")
  2749. # If it fails, then pretend we aren't using GCC.
  2750. ac_prog=ld
  2751. ;;
  2752. *)
  2753. # If it is relative, then search for the first ld in PATH.
  2754. with_gnu_ld=unknown
  2755. ;;
  2756. esac
  2757. elif test "$with_gnu_ld" = yes; then
  2758. AC_MSG_CHECKING([for GNU ld])
  2759. else
  2760. AC_MSG_CHECKING([for non-GNU ld])
  2761. fi
  2762. AC_CACHE_VAL(lt_cv_path_LD,
  2763. [if test -z "$LD"; then
  2764. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  2765. for ac_dir in $PATH; do
  2766. IFS="$lt_save_ifs"
  2767. test -z "$ac_dir" && ac_dir=.
  2768. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2769. lt_cv_path_LD="$ac_dir/$ac_prog"
  2770. # Check to see if the program is GNU ld. I'd rather use --version,
  2771. # but apparently some variants of GNU ld only accept -v.
  2772. # Break only if it was the GNU/non-GNU ld that we prefer.
  2773. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2774. *GNU* | *'with BFD'*)
  2775. test "$with_gnu_ld" != no && break
  2776. ;;
  2777. *)
  2778. test "$with_gnu_ld" != yes && break
  2779. ;;
  2780. esac
  2781. fi
  2782. done
  2783. IFS="$lt_save_ifs"
  2784. else
  2785. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  2786. fi])
  2787. LD="$lt_cv_path_LD"
  2788. if test -n "$LD"; then
  2789. AC_MSG_RESULT($LD)
  2790. else
  2791. AC_MSG_RESULT(no)
  2792. fi
  2793. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2794. _LT_PATH_LD_GNU
  2795. AC_SUBST([LD])
  2796. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2797. ])# LT_PATH_LD
  2798. # Old names:
  2799. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2800. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2801. dnl aclocal-1.4 backwards compatibility:
  2802. dnl AC_DEFUN([AM_PROG_LD], [])
  2803. dnl AC_DEFUN([AC_PROG_LD], [])
  2804. # _LT_PATH_LD_GNU
  2805. #- --------------
  2806. m4_defun([_LT_PATH_LD_GNU],
  2807. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2808. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  2809. case `$LD -v 2>&1 </dev/null` in
  2810. *GNU* | *'with BFD'*)
  2811. lt_cv_prog_gnu_ld=yes
  2812. ;;
  2813. *)
  2814. lt_cv_prog_gnu_ld=no
  2815. ;;
  2816. esac])
  2817. with_gnu_ld=$lt_cv_prog_gnu_ld
  2818. ])# _LT_PATH_LD_GNU
  2819. # _LT_CMD_RELOAD
  2820. # --------------
  2821. # find reload flag for linker
  2822. # -- PORTME Some linkers may need a different reload flag.
  2823. m4_defun([_LT_CMD_RELOAD],
  2824. [AC_CACHE_CHECK([for $LD option to reload object files],
  2825. lt_cv_ld_reload_flag,
  2826. [lt_cv_ld_reload_flag='-r'])
  2827. reload_flag=$lt_cv_ld_reload_flag
  2828. case $reload_flag in
  2829. "" | " "*) ;;
  2830. *) reload_flag=" $reload_flag" ;;
  2831. esac
  2832. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2833. case $host_os in
  2834. cygwin* | mingw* | pw32* | cegcc*)
  2835. if test "$GCC" != yes; then
  2836. reload_cmds=false
  2837. fi
  2838. ;;
  2839. darwin*)
  2840. if test "$GCC" = yes; then
  2841. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  2842. else
  2843. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  2844. fi
  2845. ;;
  2846. esac
  2847. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  2848. _LT_TAGDECL([], [reload_cmds], [2])dnl
  2849. ])# _LT_CMD_RELOAD
  2850. # _LT_CHECK_MAGIC_METHOD
  2851. # ----------------------
  2852. # how to check for library dependencies
  2853. # -- PORTME fill in with the dynamic library characteristics
  2854. m4_defun([_LT_CHECK_MAGIC_METHOD],
  2855. [m4_require([_LT_DECL_EGREP])
  2856. m4_require([_LT_DECL_OBJDUMP])
  2857. AC_CACHE_CHECK([how to recognize dependent libraries],
  2858. lt_cv_deplibs_check_method,
  2859. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  2860. lt_cv_file_magic_test_file=
  2861. lt_cv_deplibs_check_method='unknown'
  2862. # Need to set the preceding variable on all platforms that support
  2863. # interlibrary dependencies.
  2864. # 'none' -- dependencies not supported.
  2865. # `unknown' -- same as none, but documents that we really don't know.
  2866. # 'pass_all' -- all dependencies passed with no checks.
  2867. # 'test_compile' -- check by making test program.
  2868. # 'file_magic [[regex]]' -- check by looking for files in library path
  2869. # which responds to the $file_magic_cmd with a given extended regex.
  2870. # If you have `file' or equivalent on your system and you're not sure
  2871. # whether `pass_all' will *always* work, you probably want this one.
  2872. case $host_os in
  2873. aix[[4-9]]*)
  2874. lt_cv_deplibs_check_method=pass_all
  2875. ;;
  2876. beos*)
  2877. lt_cv_deplibs_check_method=pass_all
  2878. ;;
  2879. bsdi[[45]]*)
  2880. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  2881. lt_cv_file_magic_cmd='/usr/bin/file -L'
  2882. lt_cv_file_magic_test_file=/shlib/libc.so
  2883. ;;
  2884. cygwin*)
  2885. # func_win32_libid is a shell function defined in ltmain.sh
  2886. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2887. lt_cv_file_magic_cmd='func_win32_libid'
  2888. ;;
  2889. mingw* | pw32*)
  2890. # Base MSYS/MinGW do not provide the 'file' command needed by
  2891. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  2892. # unless we find 'file', for example because we are cross-compiling.
  2893. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  2894. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  2895. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  2896. lt_cv_file_magic_cmd='func_win32_libid'
  2897. else
  2898. # Keep this pattern in sync with the one in func_win32_libid.
  2899. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  2900. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2901. fi
  2902. ;;
  2903. cegcc*)
  2904. # use the weaker test based on 'objdump'. See mingw*.
  2905. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  2906. lt_cv_file_magic_cmd='$OBJDUMP -f'
  2907. ;;
  2908. darwin* | rhapsody*)
  2909. lt_cv_deplibs_check_method=pass_all
  2910. ;;
  2911. freebsd* | dragonfly*)
  2912. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2913. case $host_cpu in
  2914. i*86 )
  2915. # Not sure whether the presence of OpenBSD here was a mistake.
  2916. # Let's accept both of them until this is cleared up.
  2917. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  2918. lt_cv_file_magic_cmd=/usr/bin/file
  2919. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  2920. ;;
  2921. esac
  2922. else
  2923. lt_cv_deplibs_check_method=pass_all
  2924. fi
  2925. ;;
  2926. gnu*)
  2927. lt_cv_deplibs_check_method=pass_all
  2928. ;;
  2929. haiku*)
  2930. lt_cv_deplibs_check_method=pass_all
  2931. ;;
  2932. hpux10.20* | hpux11*)
  2933. lt_cv_file_magic_cmd=/usr/bin/file
  2934. case $host_cpu in
  2935. ia64*)
  2936. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  2937. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  2938. ;;
  2939. hppa*64*)
  2940. [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
  2941. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  2942. ;;
  2943. *)
  2944. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  2945. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  2946. ;;
  2947. esac
  2948. ;;
  2949. interix[[3-9]]*)
  2950. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  2951. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  2952. ;;
  2953. irix5* | irix6* | nonstopux*)
  2954. case $LD in
  2955. *-32|*"-32 ") libmagic=32-bit;;
  2956. *-n32|*"-n32 ") libmagic=N32;;
  2957. *-64|*"-64 ") libmagic=64-bit;;
  2958. *) libmagic=never-match;;
  2959. esac
  2960. lt_cv_deplibs_check_method=pass_all
  2961. ;;
  2962. # This must be glibc/ELF.
  2963. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  2964. lt_cv_deplibs_check_method=pass_all
  2965. ;;
  2966. netbsd*)
  2967. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  2968. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2969. else
  2970. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  2971. fi
  2972. ;;
  2973. newos6*)
  2974. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  2975. lt_cv_file_magic_cmd=/usr/bin/file
  2976. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  2977. ;;
  2978. *nto* | *qnx*)
  2979. lt_cv_deplibs_check_method=pass_all
  2980. ;;
  2981. openbsd*)
  2982. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2983. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  2984. else
  2985. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  2986. fi
  2987. ;;
  2988. osf3* | osf4* | osf5*)
  2989. lt_cv_deplibs_check_method=pass_all
  2990. ;;
  2991. rdos*)
  2992. lt_cv_deplibs_check_method=pass_all
  2993. ;;
  2994. solaris*)
  2995. lt_cv_deplibs_check_method=pass_all
  2996. ;;
  2997. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2998. lt_cv_deplibs_check_method=pass_all
  2999. ;;
  3000. sysv4 | sysv4.3*)
  3001. case $host_vendor in
  3002. motorola)
  3003. 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]]'
  3004. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3005. ;;
  3006. ncr)
  3007. lt_cv_deplibs_check_method=pass_all
  3008. ;;
  3009. sequent)
  3010. lt_cv_file_magic_cmd='/bin/file'
  3011. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3012. ;;
  3013. sni)
  3014. lt_cv_file_magic_cmd='/bin/file'
  3015. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3016. lt_cv_file_magic_test_file=/lib/libc.so
  3017. ;;
  3018. siemens)
  3019. lt_cv_deplibs_check_method=pass_all
  3020. ;;
  3021. pc)
  3022. lt_cv_deplibs_check_method=pass_all
  3023. ;;
  3024. esac
  3025. ;;
  3026. tpf*)
  3027. lt_cv_deplibs_check_method=pass_all
  3028. ;;
  3029. esac
  3030. ])
  3031. file_magic_glob=
  3032. want_nocaseglob=no
  3033. if test "$build" = "$host"; then
  3034. case $host_os in
  3035. mingw* | pw32*)
  3036. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3037. want_nocaseglob=yes
  3038. else
  3039. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3040. fi
  3041. ;;
  3042. esac
  3043. fi
  3044. file_magic_cmd=$lt_cv_file_magic_cmd
  3045. deplibs_check_method=$lt_cv_deplibs_check_method
  3046. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3047. _LT_DECL([], [deplibs_check_method], [1],
  3048. [Method to check whether dependent libraries are shared objects])
  3049. _LT_DECL([], [file_magic_cmd], [1],
  3050. [Command to use when deplibs_check_method = "file_magic"])
  3051. _LT_DECL([], [file_magic_glob], [1],
  3052. [How to find potential files when deplibs_check_method = "file_magic"])
  3053. _LT_DECL([], [want_nocaseglob], [1],
  3054. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3055. ])# _LT_CHECK_MAGIC_METHOD
  3056. # LT_PATH_NM
  3057. # ----------
  3058. # find the pathname to a BSD- or MS-compatible name lister
  3059. AC_DEFUN([LT_PATH_NM],
  3060. [AC_REQUIRE([AC_PROG_CC])dnl
  3061. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3062. [if test -n "$NM"; then
  3063. # Let the user override the test.
  3064. lt_cv_path_NM="$NM"
  3065. else
  3066. lt_nm_to_check="${ac_tool_prefix}nm"
  3067. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3068. lt_nm_to_check="$lt_nm_to_check nm"
  3069. fi
  3070. for lt_tmp_nm in $lt_nm_to_check; do
  3071. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3072. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3073. IFS="$lt_save_ifs"
  3074. test -z "$ac_dir" && ac_dir=.
  3075. tmp_nm="$ac_dir/$lt_tmp_nm"
  3076. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3077. # Check to see if the nm accepts a BSD-compat flag.
  3078. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3079. # nm: unknown option "B" ignored
  3080. # Tru64's nm complains that /dev/null is an invalid object file
  3081. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3082. */dev/null* | *'Invalid file or object type'*)
  3083. lt_cv_path_NM="$tmp_nm -B"
  3084. break
  3085. ;;
  3086. *)
  3087. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3088. */dev/null*)
  3089. lt_cv_path_NM="$tmp_nm -p"
  3090. break
  3091. ;;
  3092. *)
  3093. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3094. continue # so that we can try to find one that supports BSD flags
  3095. ;;
  3096. esac
  3097. ;;
  3098. esac
  3099. fi
  3100. done
  3101. IFS="$lt_save_ifs"
  3102. done
  3103. : ${lt_cv_path_NM=no}
  3104. fi])
  3105. if test "$lt_cv_path_NM" != "no"; then
  3106. NM="$lt_cv_path_NM"
  3107. else
  3108. # Didn't find any BSD compatible name lister, look for dumpbin.
  3109. if test -n "$DUMPBIN"; then :
  3110. # Let the user override the test.
  3111. else
  3112. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3113. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  3114. *COFF*)
  3115. DUMPBIN="$DUMPBIN -symbols"
  3116. ;;
  3117. *)
  3118. DUMPBIN=:
  3119. ;;
  3120. esac
  3121. fi
  3122. AC_SUBST([DUMPBIN])
  3123. if test "$DUMPBIN" != ":"; then
  3124. NM="$DUMPBIN"
  3125. fi
  3126. fi
  3127. test -z "$NM" && NM=nm
  3128. AC_SUBST([NM])
  3129. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3130. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3131. [lt_cv_nm_interface="BSD nm"
  3132. echo "int some_variable = 0;" > conftest.$ac_ext
  3133. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3134. (eval "$ac_compile" 2>conftest.err)
  3135. cat conftest.err >&AS_MESSAGE_LOG_FD
  3136. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3137. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3138. cat conftest.err >&AS_MESSAGE_LOG_FD
  3139. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3140. cat conftest.out >&AS_MESSAGE_LOG_FD
  3141. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3142. lt_cv_nm_interface="MS dumpbin"
  3143. fi
  3144. rm -f conftest*])
  3145. ])# LT_PATH_NM
  3146. # Old names:
  3147. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3148. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3149. dnl aclocal-1.4 backwards compatibility:
  3150. dnl AC_DEFUN([AM_PROG_NM], [])
  3151. dnl AC_DEFUN([AC_PROG_NM], [])
  3152. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3153. # --------------------------------
  3154. # how to determine the name of the shared library
  3155. # associated with a specific link library.
  3156. # -- PORTME fill in with the dynamic library characteristics
  3157. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3158. [m4_require([_LT_DECL_EGREP])
  3159. m4_require([_LT_DECL_OBJDUMP])
  3160. m4_require([_LT_DECL_DLLTOOL])
  3161. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3162. lt_cv_sharedlib_from_linklib_cmd,
  3163. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3164. case $host_os in
  3165. cygwin* | mingw* | pw32* | cegcc*)
  3166. # two different shell functions defined in ltmain.sh
  3167. # decide which to use based on capabilities of $DLLTOOL
  3168. case `$DLLTOOL --help 2>&1` in
  3169. *--identify-strict*)
  3170. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3171. ;;
  3172. *)
  3173. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3174. ;;
  3175. esac
  3176. ;;
  3177. *)
  3178. # fallback: assume linklib IS sharedlib
  3179. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  3180. ;;
  3181. esac
  3182. ])
  3183. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3184. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3185. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3186. [Command to associate shared and link libraries])
  3187. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3188. # _LT_PATH_MANIFEST_TOOL
  3189. # ----------------------
  3190. # locate the manifest tool
  3191. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3192. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3193. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3194. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3195. [lt_cv_path_mainfest_tool=no
  3196. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3197. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3198. cat conftest.err >&AS_MESSAGE_LOG_FD
  3199. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3200. lt_cv_path_mainfest_tool=yes
  3201. fi
  3202. rm -f conftest*])
  3203. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  3204. MANIFEST_TOOL=:
  3205. fi
  3206. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3207. ])# _LT_PATH_MANIFEST_TOOL
  3208. # LT_LIB_M
  3209. # --------
  3210. # check for math library
  3211. AC_DEFUN([LT_LIB_M],
  3212. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3213. LIBM=
  3214. case $host in
  3215. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3216. # These system don't have libm, or don't need it
  3217. ;;
  3218. *-ncr-sysv4.3*)
  3219. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3220. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3221. ;;
  3222. *)
  3223. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3224. ;;
  3225. esac
  3226. AC_SUBST([LIBM])
  3227. ])# LT_LIB_M
  3228. # Old name:
  3229. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3230. dnl aclocal-1.4 backwards compatibility:
  3231. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3232. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3233. # -------------------------------
  3234. m4_defun([_LT_COMPILER_NO_RTTI],
  3235. [m4_require([_LT_TAG_COMPILER])dnl
  3236. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3237. if test "$GCC" = yes; then
  3238. case $cc_basename in
  3239. nvcc*)
  3240. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3241. *)
  3242. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3243. esac
  3244. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3245. lt_cv_prog_compiler_rtti_exceptions,
  3246. [-fno-rtti -fno-exceptions], [],
  3247. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3248. fi
  3249. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3250. [Compiler flag to turn off builtin functions])
  3251. ])# _LT_COMPILER_NO_RTTI
  3252. # _LT_CMD_GLOBAL_SYMBOLS
  3253. # ----------------------
  3254. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3255. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3256. AC_REQUIRE([AC_PROG_CC])dnl
  3257. AC_REQUIRE([AC_PROG_AWK])dnl
  3258. AC_REQUIRE([LT_PATH_NM])dnl
  3259. AC_REQUIRE([LT_PATH_LD])dnl
  3260. m4_require([_LT_DECL_SED])dnl
  3261. m4_require([_LT_DECL_EGREP])dnl
  3262. m4_require([_LT_TAG_COMPILER])dnl
  3263. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3264. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3265. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3266. [
  3267. # These are sane defaults that work on at least a few old systems.
  3268. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3269. # Character class describing NM global symbol codes.
  3270. symcode='[[BCDEGRST]]'
  3271. # Regexp to match symbols that can be accessed directly from C.
  3272. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3273. # Define system-specific variables.
  3274. case $host_os in
  3275. aix*)
  3276. symcode='[[BCDT]]'
  3277. ;;
  3278. cygwin* | mingw* | pw32* | cegcc*)
  3279. symcode='[[ABCDGISTW]]'
  3280. ;;
  3281. hpux*)
  3282. if test "$host_cpu" = ia64; then
  3283. symcode='[[ABCDEGRST]]'
  3284. fi
  3285. ;;
  3286. irix* | nonstopux*)
  3287. symcode='[[BCDEGRST]]'
  3288. ;;
  3289. osf*)
  3290. symcode='[[BCDEGQRST]]'
  3291. ;;
  3292. solaris*)
  3293. symcode='[[BDRT]]'
  3294. ;;
  3295. sco3.2v5*)
  3296. symcode='[[DT]]'
  3297. ;;
  3298. sysv4.2uw2*)
  3299. symcode='[[DT]]'
  3300. ;;
  3301. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3302. symcode='[[ABDT]]'
  3303. ;;
  3304. sysv4)
  3305. symcode='[[DFNSTU]]'
  3306. ;;
  3307. esac
  3308. # If we're using GNU nm, then use its standard symbol codes.
  3309. case `$NM -V 2>&1` in
  3310. *GNU* | *'with BFD'*)
  3311. symcode='[[ABCDGIRSTW]]' ;;
  3312. esac
  3313. # Transform an extracted symbol line into a proper C declaration.
  3314. # Some systems (esp. on ia64) link data and code symbols differently,
  3315. # so use this general approach.
  3316. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  3317. # Transform an extracted symbol line into symbol name and symbol address
  3318. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  3319. 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'"
  3320. # Handle CRLF in mingw tool chain
  3321. opt_cr=
  3322. case $build_os in
  3323. mingw*)
  3324. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3325. ;;
  3326. esac
  3327. # Try without a prefix underscore, then with it.
  3328. for ac_symprfx in "" "_"; do
  3329. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3330. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3331. # Write the raw and C identifiers.
  3332. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3333. # Fake it for dumpbin and say T for any non-static function
  3334. # and D for any global variable.
  3335. # Also find C++ and __fastcall symbols from MSVC++,
  3336. # which start with @ or ?.
  3337. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3338. " {last_section=section; section=\$ 3};"\
  3339. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3340. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3341. " \$ 0!~/External *\|/{next};"\
  3342. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3343. " {if(hide[section]) next};"\
  3344. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  3345. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  3346. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  3347. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  3348. " ' prfx=^$ac_symprfx]"
  3349. else
  3350. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3351. fi
  3352. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3353. # Check to see that the pipe works correctly.
  3354. pipe_works=no
  3355. rm -f conftest*
  3356. cat > conftest.$ac_ext <<_LT_EOF
  3357. #ifdef __cplusplus
  3358. extern "C" {
  3359. #endif
  3360. char nm_test_var;
  3361. void nm_test_func(void);
  3362. void nm_test_func(void){}
  3363. #ifdef __cplusplus
  3364. }
  3365. #endif
  3366. int main(){nm_test_var='a';nm_test_func();return(0);}
  3367. _LT_EOF
  3368. if AC_TRY_EVAL(ac_compile); then
  3369. # Now try to grab the symbols.
  3370. nlist=conftest.nm
  3371. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3372. # Try sorting and uniquifying the output.
  3373. if sort "$nlist" | uniq > "$nlist"T; then
  3374. mv -f "$nlist"T "$nlist"
  3375. else
  3376. rm -f "$nlist"T
  3377. fi
  3378. # Make sure that we snagged all the symbols we need.
  3379. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3380. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3381. cat <<_LT_EOF > conftest.$ac_ext
  3382. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3383. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  3384. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  3385. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3386. # define LT@&t@_DLSYM_CONST
  3387. #elif defined(__osf__)
  3388. /* This system does not cope well with relocations in const data. */
  3389. # define LT@&t@_DLSYM_CONST
  3390. #else
  3391. # define LT@&t@_DLSYM_CONST const
  3392. #endif
  3393. #ifdef __cplusplus
  3394. extern "C" {
  3395. #endif
  3396. _LT_EOF
  3397. # Now generate the symbol file.
  3398. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3399. cat <<_LT_EOF >> conftest.$ac_ext
  3400. /* The mapping between symbol names and symbols. */
  3401. LT@&t@_DLSYM_CONST struct {
  3402. const char *name;
  3403. void *address;
  3404. }
  3405. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3406. {
  3407. { "@PROGRAM@", (void *) 0 },
  3408. _LT_EOF
  3409. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3410. cat <<\_LT_EOF >> conftest.$ac_ext
  3411. {0, (void *) 0}
  3412. };
  3413. /* This works around a problem in FreeBSD linker */
  3414. #ifdef FREEBSD_WORKAROUND
  3415. static const void *lt_preloaded_setup() {
  3416. return lt__PROGRAM__LTX_preloaded_symbols;
  3417. }
  3418. #endif
  3419. #ifdef __cplusplus
  3420. }
  3421. #endif
  3422. _LT_EOF
  3423. # Now try linking the two files.
  3424. mv conftest.$ac_objext conftstm.$ac_objext
  3425. lt_globsym_save_LIBS=$LIBS
  3426. lt_globsym_save_CFLAGS=$CFLAGS
  3427. LIBS="conftstm.$ac_objext"
  3428. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3429. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  3430. pipe_works=yes
  3431. fi
  3432. LIBS=$lt_globsym_save_LIBS
  3433. CFLAGS=$lt_globsym_save_CFLAGS
  3434. else
  3435. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3436. fi
  3437. else
  3438. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3439. fi
  3440. else
  3441. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3442. fi
  3443. else
  3444. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3445. cat conftest.$ac_ext >&5
  3446. fi
  3447. rm -rf conftest* conftst*
  3448. # Do not use the global_symbol_pipe unless it works.
  3449. if test "$pipe_works" = yes; then
  3450. break
  3451. else
  3452. lt_cv_sys_global_symbol_pipe=
  3453. fi
  3454. done
  3455. ])
  3456. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3457. lt_cv_sys_global_symbol_to_cdecl=
  3458. fi
  3459. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3460. AC_MSG_RESULT(failed)
  3461. else
  3462. AC_MSG_RESULT(ok)
  3463. fi
  3464. # Response file support.
  3465. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3466. nm_file_list_spec='@'
  3467. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3468. nm_file_list_spec='@'
  3469. fi
  3470. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3471. [Take the output of nm and produce a listing of raw symbols and C names])
  3472. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3473. [Transform the output of nm in a proper C declaration])
  3474. _LT_DECL([global_symbol_to_c_name_address],
  3475. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3476. [Transform the output of nm in a C name address pair])
  3477. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3478. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3479. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3480. _LT_DECL([], [nm_file_list_spec], [1],
  3481. [Specify filename containing input files for $NM])
  3482. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3483. # _LT_COMPILER_PIC([TAGNAME])
  3484. # ---------------------------
  3485. m4_defun([_LT_COMPILER_PIC],
  3486. [m4_require([_LT_TAG_COMPILER])dnl
  3487. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3488. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3489. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3490. m4_if([$1], [CXX], [
  3491. # C++ specific cases for pic, static, wl, etc.
  3492. if test "$GXX" = yes; then
  3493. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3494. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3495. case $host_os in
  3496. aix*)
  3497. # All AIX code is PIC.
  3498. if test "$host_cpu" = ia64; then
  3499. # AIX 5 now supports IA64 processor
  3500. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3501. fi
  3502. ;;
  3503. amigaos*)
  3504. case $host_cpu in
  3505. powerpc)
  3506. # see comment about AmigaOS4 .so support
  3507. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3508. ;;
  3509. m68k)
  3510. # FIXME: we need at least 68020 code to build shared libraries, but
  3511. # adding the `-m68020' flag to GCC prevents building anything better,
  3512. # like `-m68040'.
  3513. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3514. ;;
  3515. esac
  3516. ;;
  3517. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3518. # PIC is the default for these OSes.
  3519. ;;
  3520. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3521. # This hack is so that the source file can tell whether it is being
  3522. # built for inclusion in a dll (and should export symbols for example).
  3523. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3524. # (--disable-auto-import) libraries
  3525. m4_if([$1], [GCJ], [],
  3526. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3527. ;;
  3528. darwin* | rhapsody*)
  3529. # PIC is the default on this platform
  3530. # Common symbols not allowed in MH_DYLIB files
  3531. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3532. ;;
  3533. *djgpp*)
  3534. # DJGPP does not support shared libraries at all
  3535. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3536. ;;
  3537. haiku*)
  3538. # PIC is the default for Haiku.
  3539. # The "-static" flag exists, but is broken.
  3540. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3541. ;;
  3542. interix[[3-9]]*)
  3543. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3544. # Instead, we relocate shared libraries at runtime.
  3545. ;;
  3546. sysv4*MP*)
  3547. if test -d /usr/nec; then
  3548. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3549. fi
  3550. ;;
  3551. hpux*)
  3552. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3553. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3554. # sets the default TLS model and affects inlining.
  3555. case $host_cpu in
  3556. hppa*64*)
  3557. ;;
  3558. *)
  3559. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3560. ;;
  3561. esac
  3562. ;;
  3563. *qnx* | *nto*)
  3564. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3565. # it will coredump.
  3566. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3567. ;;
  3568. *)
  3569. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3570. ;;
  3571. esac
  3572. else
  3573. case $host_os in
  3574. aix[[4-9]]*)
  3575. # All AIX code is PIC.
  3576. if test "$host_cpu" = ia64; then
  3577. # AIX 5 now supports IA64 processor
  3578. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3579. else
  3580. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3581. fi
  3582. ;;
  3583. chorus*)
  3584. case $cc_basename in
  3585. cxch68*)
  3586. # Green Hills C++ Compiler
  3587. # _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"
  3588. ;;
  3589. esac
  3590. ;;
  3591. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3592. # This hack is so that the source file can tell whether it is being
  3593. # built for inclusion in a dll (and should export symbols for example).
  3594. m4_if([$1], [GCJ], [],
  3595. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3596. ;;
  3597. dgux*)
  3598. case $cc_basename in
  3599. ec++*)
  3600. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3601. ;;
  3602. ghcx*)
  3603. # Green Hills C++ Compiler
  3604. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3605. ;;
  3606. *)
  3607. ;;
  3608. esac
  3609. ;;
  3610. freebsd* | dragonfly*)
  3611. # FreeBSD uses GNU C++
  3612. ;;
  3613. hpux9* | hpux10* | hpux11*)
  3614. case $cc_basename in
  3615. CC*)
  3616. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3617. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3618. if test "$host_cpu" != ia64; then
  3619. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3620. fi
  3621. ;;
  3622. aCC*)
  3623. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3624. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3625. case $host_cpu in
  3626. hppa*64*|ia64*)
  3627. # +Z the default
  3628. ;;
  3629. *)
  3630. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3631. ;;
  3632. esac
  3633. ;;
  3634. *)
  3635. ;;
  3636. esac
  3637. ;;
  3638. interix*)
  3639. # This is c89, which is MS Visual C++ (no shared libs)
  3640. # Anyone wants to do a port?
  3641. ;;
  3642. irix5* | irix6* | nonstopux*)
  3643. case $cc_basename in
  3644. CC*)
  3645. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3646. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3647. # CC pic flag -KPIC is the default.
  3648. ;;
  3649. *)
  3650. ;;
  3651. esac
  3652. ;;
  3653. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3654. case $cc_basename in
  3655. KCC*)
  3656. # KAI C++ Compiler
  3657. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3658. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3659. ;;
  3660. ecpc* )
  3661. # old Intel C++ for x86_64 which still supported -KPIC.
  3662. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3663. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3664. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3665. ;;
  3666. icpc* )
  3667. # Intel C++, used to be incompatible with GCC.
  3668. # ICC 10 doesn't accept -KPIC any more.
  3669. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3670. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3671. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3672. ;;
  3673. pgCC* | pgcpp*)
  3674. # Portland Group C++ compiler
  3675. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3676. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3677. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3678. ;;
  3679. cxx*)
  3680. # Compaq C++
  3681. # Make sure the PIC flag is empty. It appears that all Alpha
  3682. # Linux and Compaq Tru64 Unix objects are PIC.
  3683. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3684. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3685. ;;
  3686. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3687. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3688. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3689. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3690. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3691. ;;
  3692. *)
  3693. case `$CC -V 2>&1 | sed 5q` in
  3694. *Sun\ C*)
  3695. # Sun C++ 5.9
  3696. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3697. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3698. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3699. ;;
  3700. esac
  3701. ;;
  3702. esac
  3703. ;;
  3704. lynxos*)
  3705. ;;
  3706. m88k*)
  3707. ;;
  3708. mvs*)
  3709. case $cc_basename in
  3710. cxx*)
  3711. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  3712. ;;
  3713. *)
  3714. ;;
  3715. esac
  3716. ;;
  3717. netbsd*)
  3718. ;;
  3719. *qnx* | *nto*)
  3720. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3721. # it will coredump.
  3722. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3723. ;;
  3724. osf3* | osf4* | osf5*)
  3725. case $cc_basename in
  3726. KCC*)
  3727. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3728. ;;
  3729. RCC*)
  3730. # Rational C++ 2.4.1
  3731. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3732. ;;
  3733. cxx*)
  3734. # Digital/Compaq C++
  3735. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3736. # Make sure the PIC flag is empty. It appears that all Alpha
  3737. # Linux and Compaq Tru64 Unix objects are PIC.
  3738. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3739. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3740. ;;
  3741. *)
  3742. ;;
  3743. esac
  3744. ;;
  3745. psos*)
  3746. ;;
  3747. solaris*)
  3748. case $cc_basename in
  3749. CC* | sunCC*)
  3750. # Sun C++ 4.2, 5.x and Centerline C++
  3751. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3752. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3753. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3754. ;;
  3755. gcx*)
  3756. # Green Hills C++ Compiler
  3757. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3758. ;;
  3759. *)
  3760. ;;
  3761. esac
  3762. ;;
  3763. sunos4*)
  3764. case $cc_basename in
  3765. CC*)
  3766. # Sun C++ 4.x
  3767. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3768. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3769. ;;
  3770. lcc*)
  3771. # Lucid
  3772. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3773. ;;
  3774. *)
  3775. ;;
  3776. esac
  3777. ;;
  3778. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  3779. case $cc_basename in
  3780. CC*)
  3781. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3782. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3783. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3784. ;;
  3785. esac
  3786. ;;
  3787. tandem*)
  3788. case $cc_basename in
  3789. NCC*)
  3790. # NonStop-UX NCC 3.20
  3791. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3792. ;;
  3793. *)
  3794. ;;
  3795. esac
  3796. ;;
  3797. vxworks*)
  3798. ;;
  3799. *)
  3800. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3801. ;;
  3802. esac
  3803. fi
  3804. ],
  3805. [
  3806. if test "$GCC" = yes; then
  3807. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3808. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3809. case $host_os in
  3810. aix*)
  3811. # All AIX code is PIC.
  3812. if test "$host_cpu" = ia64; then
  3813. # AIX 5 now supports IA64 processor
  3814. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3815. fi
  3816. ;;
  3817. amigaos*)
  3818. case $host_cpu in
  3819. powerpc)
  3820. # see comment about AmigaOS4 .so support
  3821. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3822. ;;
  3823. m68k)
  3824. # FIXME: we need at least 68020 code to build shared libraries, but
  3825. # adding the `-m68020' flag to GCC prevents building anything better,
  3826. # like `-m68040'.
  3827. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3828. ;;
  3829. esac
  3830. ;;
  3831. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3832. # PIC is the default for these OSes.
  3833. ;;
  3834. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3835. # This hack is so that the source file can tell whether it is being
  3836. # built for inclusion in a dll (and should export symbols for example).
  3837. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3838. # (--disable-auto-import) libraries
  3839. m4_if([$1], [GCJ], [],
  3840. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3841. ;;
  3842. darwin* | rhapsody*)
  3843. # PIC is the default on this platform
  3844. # Common symbols not allowed in MH_DYLIB files
  3845. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3846. ;;
  3847. haiku*)
  3848. # PIC is the default for Haiku.
  3849. # The "-static" flag exists, but is broken.
  3850. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3851. ;;
  3852. hpux*)
  3853. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3854. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3855. # sets the default TLS model and affects inlining.
  3856. case $host_cpu in
  3857. hppa*64*)
  3858. # +Z the default
  3859. ;;
  3860. *)
  3861. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3862. ;;
  3863. esac
  3864. ;;
  3865. interix[[3-9]]*)
  3866. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3867. # Instead, we relocate shared libraries at runtime.
  3868. ;;
  3869. msdosdjgpp*)
  3870. # Just because we use GCC doesn't mean we suddenly get shared libraries
  3871. # on systems that don't support them.
  3872. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  3873. enable_shared=no
  3874. ;;
  3875. *nto* | *qnx*)
  3876. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3877. # it will coredump.
  3878. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3879. ;;
  3880. sysv4*MP*)
  3881. if test -d /usr/nec; then
  3882. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3883. fi
  3884. ;;
  3885. *)
  3886. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3887. ;;
  3888. esac
  3889. case $cc_basename in
  3890. nvcc*) # Cuda Compiler Driver 2.2
  3891. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  3892. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  3893. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  3894. fi
  3895. ;;
  3896. esac
  3897. else
  3898. # PORTME Check for flag to pass linker flags through the system compiler.
  3899. case $host_os in
  3900. aix*)
  3901. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3902. if test "$host_cpu" = ia64; then
  3903. # AIX 5 now supports IA64 processor
  3904. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3905. else
  3906. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3907. fi
  3908. ;;
  3909. mingw* | cygwin* | pw32* | os2* | cegcc*)
  3910. # This hack is so that the source file can tell whether it is being
  3911. # built for inclusion in a dll (and should export symbols for example).
  3912. m4_if([$1], [GCJ], [],
  3913. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3914. ;;
  3915. hpux9* | hpux10* | hpux11*)
  3916. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3917. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  3918. # not for PA HP-UX.
  3919. case $host_cpu in
  3920. hppa*64*|ia64*)
  3921. # +Z the default
  3922. ;;
  3923. *)
  3924. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3925. ;;
  3926. esac
  3927. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  3928. _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  3929. ;;
  3930. irix5* | irix6* | nonstopux*)
  3931. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3932. # PIC (with -KPIC) is the default.
  3933. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3934. ;;
  3935. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  3936. case $cc_basename in
  3937. # old Intel for x86_64 which still supported -KPIC.
  3938. ecc*)
  3939. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3940. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3941. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3942. ;;
  3943. # icc used to be incompatible with GCC.
  3944. # ICC 10 doesn't accept -KPIC any more.
  3945. icc* | ifort*)
  3946. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3947. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3948. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3949. ;;
  3950. # Lahey Fortran 8.1.
  3951. lf95*)
  3952. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3953. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  3954. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  3955. ;;
  3956. nagfor*)
  3957. # NAG Fortran compiler
  3958. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  3959. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  3960. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3961. ;;
  3962. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  3963. # Portland Group compilers (*not* the Pentium gcc compiler,
  3964. # which looks to be a dead project)
  3965. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3966. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3967. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3968. ;;
  3969. ccc*)
  3970. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3971. # All Alpha code is PIC.
  3972. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3973. ;;
  3974. xl* | bgxl* | bgf* | mpixl*)
  3975. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  3976. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3977. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3978. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3979. ;;
  3980. *)
  3981. case `$CC -V 2>&1 | sed 5q` in
  3982. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  3983. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  3984. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3985. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3986. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  3987. ;;
  3988. *Sun\ F* | *Sun*Fortran*)
  3989. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3990. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3991. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  3992. ;;
  3993. *Sun\ C*)
  3994. # Sun C 5.9
  3995. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3996. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3997. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3998. ;;
  3999. *Intel*\ [[CF]]*Compiler*)
  4000. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4001. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4002. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4003. ;;
  4004. *Portland\ Group*)
  4005. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4006. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4007. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4008. ;;
  4009. esac
  4010. ;;
  4011. esac
  4012. ;;
  4013. newsos6)
  4014. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4015. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4016. ;;
  4017. *nto* | *qnx*)
  4018. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4019. # it will coredump.
  4020. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4021. ;;
  4022. osf3* | osf4* | osf5*)
  4023. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4024. # All OSF/1 code is PIC.
  4025. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4026. ;;
  4027. rdos*)
  4028. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4029. ;;
  4030. solaris*)
  4031. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4032. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4033. case $cc_basename in
  4034. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4035. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4036. *)
  4037. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4038. esac
  4039. ;;
  4040. sunos4*)
  4041. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4042. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4043. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4044. ;;
  4045. sysv4 | sysv4.2uw2* | sysv4.3*)
  4046. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4047. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4048. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4049. ;;
  4050. sysv4*MP*)
  4051. if test -d /usr/nec ;then
  4052. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4053. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4054. fi
  4055. ;;
  4056. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4057. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4058. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4059. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4060. ;;
  4061. unicos*)
  4062. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4063. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4064. ;;
  4065. uts4*)
  4066. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4067. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4068. ;;
  4069. *)
  4070. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4071. ;;
  4072. esac
  4073. fi
  4074. ])
  4075. case $host_os in
  4076. # For platforms which do not support PIC, -DPIC is meaningless:
  4077. *djgpp*)
  4078. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4079. ;;
  4080. *)
  4081. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4082. ;;
  4083. esac
  4084. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4085. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4086. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4087. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4088. #
  4089. # Check to make sure the PIC flag actually works.
  4090. #
  4091. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4092. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4093. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4094. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4095. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4096. "" | " "*) ;;
  4097. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4098. esac],
  4099. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4100. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4101. fi
  4102. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4103. [Additional compiler flags for building library objects])
  4104. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4105. [How to pass a linker flag through the compiler])
  4106. #
  4107. # Check to make sure the static flag actually works.
  4108. #
  4109. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4110. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4111. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4112. $lt_tmp_static_flag,
  4113. [],
  4114. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4115. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4116. [Compiler flag to prevent dynamic linking])
  4117. ])# _LT_COMPILER_PIC
  4118. # _LT_LINKER_SHLIBS([TAGNAME])
  4119. # ----------------------------
  4120. # See if the linker supports building shared libraries.
  4121. m4_defun([_LT_LINKER_SHLIBS],
  4122. [AC_REQUIRE([LT_PATH_LD])dnl
  4123. AC_REQUIRE([LT_PATH_NM])dnl
  4124. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4125. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4126. m4_require([_LT_DECL_EGREP])dnl
  4127. m4_require([_LT_DECL_SED])dnl
  4128. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4129. m4_require([_LT_TAG_COMPILER])dnl
  4130. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4131. m4_if([$1], [CXX], [
  4132. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4133. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4134. case $host_os in
  4135. aix[[4-9]]*)
  4136. # If we're using GNU nm, then we don't want the "-C" option.
  4137. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4138. # Also, AIX nm treats weak defined symbols like other global defined
  4139. # symbols, whereas GNU nm marks them as "W".
  4140. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4141. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4142. else
  4143. _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'
  4144. fi
  4145. ;;
  4146. pw32*)
  4147. _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  4148. ;;
  4149. cygwin* | mingw* | cegcc*)
  4150. case $cc_basename in
  4151. cl*)
  4152. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4153. ;;
  4154. *)
  4155. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4156. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4157. ;;
  4158. esac
  4159. ;;
  4160. *)
  4161. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4162. ;;
  4163. esac
  4164. ], [
  4165. runpath_var=
  4166. _LT_TAGVAR(allow_undefined_flag, $1)=
  4167. _LT_TAGVAR(always_export_symbols, $1)=no
  4168. _LT_TAGVAR(archive_cmds, $1)=
  4169. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4170. _LT_TAGVAR(compiler_needs_object, $1)=no
  4171. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4172. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4173. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4174. _LT_TAGVAR(hardcode_automatic, $1)=no
  4175. _LT_TAGVAR(hardcode_direct, $1)=no
  4176. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4177. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4178. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4179. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4180. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4181. _LT_TAGVAR(inherit_rpath, $1)=no
  4182. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4183. _LT_TAGVAR(module_cmds, $1)=
  4184. _LT_TAGVAR(module_expsym_cmds, $1)=
  4185. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4186. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4187. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4188. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4189. # include_expsyms should be a list of space-separated symbols to be *always*
  4190. # included in the symbol list
  4191. _LT_TAGVAR(include_expsyms, $1)=
  4192. # exclude_expsyms can be an extended regexp of symbols to exclude
  4193. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  4194. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  4195. # as well as any symbol that contains `d'.
  4196. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4197. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4198. # platforms (ab)use it in PIC code, but their linkers get confused if
  4199. # the symbol is explicitly referenced. Since portable code cannot
  4200. # rely on this symbol name, it's probably fine to never include it in
  4201. # preloaded symbol tables.
  4202. # Exclude shared library initialization/finalization symbols.
  4203. dnl Note also adjust exclude_expsyms for C++ above.
  4204. extract_expsyms_cmds=
  4205. case $host_os in
  4206. cygwin* | mingw* | pw32* | cegcc*)
  4207. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4208. # When not using gcc, we currently assume that we are using
  4209. # Microsoft Visual C++.
  4210. if test "$GCC" != yes; then
  4211. with_gnu_ld=no
  4212. fi
  4213. ;;
  4214. interix*)
  4215. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4216. with_gnu_ld=yes
  4217. ;;
  4218. openbsd*)
  4219. with_gnu_ld=no
  4220. ;;
  4221. esac
  4222. _LT_TAGVAR(ld_shlibs, $1)=yes
  4223. # On some targets, GNU ld is compatible enough with the native linker
  4224. # that we're better off using the native interface for both.
  4225. lt_use_gnu_ld_interface=no
  4226. if test "$with_gnu_ld" = yes; then
  4227. case $host_os in
  4228. aix*)
  4229. # The AIX port of GNU ld has always aspired to compatibility
  4230. # with the native linker. However, as the warning in the GNU ld
  4231. # block says, versions before 2.19.5* couldn't really create working
  4232. # shared libraries, regardless of the interface used.
  4233. case `$LD -v 2>&1` in
  4234. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4235. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4236. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4237. *)
  4238. lt_use_gnu_ld_interface=yes
  4239. ;;
  4240. esac
  4241. ;;
  4242. *)
  4243. lt_use_gnu_ld_interface=yes
  4244. ;;
  4245. esac
  4246. fi
  4247. if test "$lt_use_gnu_ld_interface" = yes; then
  4248. # If archive_cmds runs LD, not CC, wlarc should be empty
  4249. wlarc='${wl}'
  4250. # Set some defaults for GNU ld with shared library support. These
  4251. # are reset later if shared libraries are not supported. Putting them
  4252. # here allows them to be overridden if necessary.
  4253. runpath_var=LD_RUN_PATH
  4254. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4255. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4256. # ancient GNU ld didn't support --whole-archive et. al.
  4257. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4258. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4259. else
  4260. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4261. fi
  4262. supports_anon_versioning=no
  4263. case `$LD -v 2>&1` in
  4264. *GNU\ gold*) supports_anon_versioning=yes ;;
  4265. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4266. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4267. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4268. *\ 2.11.*) ;; # other 2.11 versions
  4269. *) supports_anon_versioning=yes ;;
  4270. esac
  4271. # See if GNU ld supports shared libraries.
  4272. case $host_os in
  4273. aix[[3-9]]*)
  4274. # On AIX/PPC, the GNU linker is very broken
  4275. if test "$host_cpu" != ia64; then
  4276. _LT_TAGVAR(ld_shlibs, $1)=no
  4277. cat <<_LT_EOF 1>&2
  4278. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4279. *** to be unable to reliably create shared libraries on AIX.
  4280. *** Therefore, libtool is disabling shared libraries support. If you
  4281. *** really care for shared libraries, you may want to install binutils
  4282. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4283. *** You will then need to restart the configuration process.
  4284. _LT_EOF
  4285. fi
  4286. ;;
  4287. amigaos*)
  4288. case $host_cpu in
  4289. powerpc)
  4290. # see comment about AmigaOS4 .so support
  4291. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4292. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4293. ;;
  4294. m68k)
  4295. _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)'
  4296. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4297. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4298. ;;
  4299. esac
  4300. ;;
  4301. beos*)
  4302. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4303. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4304. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4305. # support --undefined. This deserves some investigation. FIXME
  4306. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4307. else
  4308. _LT_TAGVAR(ld_shlibs, $1)=no
  4309. fi
  4310. ;;
  4311. cygwin* | mingw* | pw32* | cegcc*)
  4312. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4313. # as there is no search path for DLLs.
  4314. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4315. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  4316. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4317. _LT_TAGVAR(always_export_symbols, $1)=no
  4318. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4319. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  4320. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4321. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4322. _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'
  4323. # If the export-symbols file already is a .def file (1st line
  4324. # is EXPORTS), use it as is; otherwise, prepend...
  4325. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4326. cp $export_symbols $output_objdir/$soname.def;
  4327. else
  4328. echo EXPORTS > $output_objdir/$soname.def;
  4329. cat $export_symbols >> $output_objdir/$soname.def;
  4330. fi~
  4331. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4332. else
  4333. _LT_TAGVAR(ld_shlibs, $1)=no
  4334. fi
  4335. ;;
  4336. haiku*)
  4337. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4338. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4339. ;;
  4340. interix[[3-9]]*)
  4341. _LT_TAGVAR(hardcode_direct, $1)=no
  4342. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4343. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4344. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4345. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4346. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4347. # default) and relocated if they conflict, which is a slow very memory
  4348. # consuming and fragmenting process. To avoid this, we pick a random,
  4349. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4350. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4351. _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'
  4352. _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'
  4353. ;;
  4354. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4355. tmp_diet=no
  4356. if test "$host_os" = linux-dietlibc; then
  4357. case $cc_basename in
  4358. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4359. esac
  4360. fi
  4361. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4362. && test "$tmp_diet" = no
  4363. then
  4364. tmp_addflag=' $pic_flag'
  4365. tmp_sharedflag='-shared'
  4366. case $cc_basename,$host_cpu in
  4367. pgcc*) # Portland Group C compiler
  4368. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4369. tmp_addflag=' $pic_flag'
  4370. ;;
  4371. pgf77* | pgf90* | pgf95* | pgfortran*)
  4372. # Portland Group f77 and f90 compilers
  4373. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4374. tmp_addflag=' $pic_flag -Mnomain' ;;
  4375. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4376. tmp_addflag=' -i_dynamic' ;;
  4377. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4378. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4379. ifc* | ifort*) # Intel Fortran compiler
  4380. tmp_addflag=' -nofor_main' ;;
  4381. lf95*) # Lahey Fortran 8.1
  4382. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4383. tmp_sharedflag='--shared' ;;
  4384. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4385. tmp_sharedflag='-qmkshrobj'
  4386. tmp_addflag= ;;
  4387. nvcc*) # Cuda Compiler Driver 2.2
  4388. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4389. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4390. ;;
  4391. esac
  4392. case `$CC -V 2>&1 | sed 5q` in
  4393. *Sun\ C*) # Sun C 5.9
  4394. _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  4395. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4396. tmp_sharedflag='-G' ;;
  4397. *Sun\ F*) # Sun Fortran 8.3
  4398. tmp_sharedflag='-G' ;;
  4399. esac
  4400. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4401. if test "x$supports_anon_versioning" = xyes; then
  4402. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4403. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4404. echo "local: *; };" >> $output_objdir/$libname.ver~
  4405. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  4406. fi
  4407. case $cc_basename in
  4408. xlf* | bgf* | bgxlf* | mpixlf*)
  4409. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4410. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4411. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4412. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4413. if test "x$supports_anon_versioning" = xyes; then
  4414. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4415. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4416. echo "local: *; };" >> $output_objdir/$libname.ver~
  4417. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4418. fi
  4419. ;;
  4420. esac
  4421. else
  4422. _LT_TAGVAR(ld_shlibs, $1)=no
  4423. fi
  4424. ;;
  4425. netbsd*)
  4426. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4427. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4428. wlarc=
  4429. else
  4430. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4431. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4432. fi
  4433. ;;
  4434. solaris*)
  4435. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4436. _LT_TAGVAR(ld_shlibs, $1)=no
  4437. cat <<_LT_EOF 1>&2
  4438. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4439. *** create shared libraries on Solaris systems. Therefore, libtool
  4440. *** is disabling shared libraries support. We urge you to upgrade GNU
  4441. *** binutils to release 2.9.1 or newer. Another option is to modify
  4442. *** your PATH or compiler configuration so that the native linker is
  4443. *** used, and then restart.
  4444. _LT_EOF
  4445. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4446. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4447. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4448. else
  4449. _LT_TAGVAR(ld_shlibs, $1)=no
  4450. fi
  4451. ;;
  4452. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4453. case `$LD -v 2>&1` in
  4454. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4455. _LT_TAGVAR(ld_shlibs, $1)=no
  4456. cat <<_LT_EOF 1>&2
  4457. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  4458. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4459. *** is disabling shared libraries support. We urge you to upgrade GNU
  4460. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4461. *** your PATH or compiler configuration so that the native linker is
  4462. *** used, and then restart.
  4463. _LT_EOF
  4464. ;;
  4465. *)
  4466. # For security reasons, it is highly recommended that you always
  4467. # use absolute paths for naming shared libraries, and exclude the
  4468. # DT_RUNPATH tag from executables and libraries. But doing so
  4469. # requires that you compile everything twice, which is a pain.
  4470. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4471. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4472. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4473. _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'
  4474. else
  4475. _LT_TAGVAR(ld_shlibs, $1)=no
  4476. fi
  4477. ;;
  4478. esac
  4479. ;;
  4480. sunos4*)
  4481. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4482. wlarc=
  4483. _LT_TAGVAR(hardcode_direct, $1)=yes
  4484. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4485. ;;
  4486. *)
  4487. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4488. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4489. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  4490. else
  4491. _LT_TAGVAR(ld_shlibs, $1)=no
  4492. fi
  4493. ;;
  4494. esac
  4495. if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  4496. runpath_var=
  4497. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4498. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4499. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4500. fi
  4501. else
  4502. # PORTME fill in a description of your system's linker (not GNU ld)
  4503. case $host_os in
  4504. aix3*)
  4505. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4506. _LT_TAGVAR(always_export_symbols, $1)=yes
  4507. _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'
  4508. # Note: this linker hardcodes the directories in LIBPATH if there
  4509. # are no directories specified by -L.
  4510. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4511. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  4512. # Neither direct hardcoding nor static linking is supported with a
  4513. # broken collect2.
  4514. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4515. fi
  4516. ;;
  4517. aix[[4-9]]*)
  4518. if test "$host_cpu" = ia64; then
  4519. # On IA64, the linker does run time linking by default, so we don't
  4520. # have to do anything special.
  4521. aix_use_runtimelinking=no
  4522. exp_sym_flag='-Bexport'
  4523. no_entry_flag=""
  4524. else
  4525. # If we're using GNU nm, then we don't want the "-C" option.
  4526. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  4527. # Also, AIX nm treats weak defined symbols like other global
  4528. # defined symbols, whereas GNU nm marks them as "W".
  4529. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4530. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  4531. else
  4532. _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'
  4533. fi
  4534. aix_use_runtimelinking=no
  4535. # Test if we are trying to use run time linking or normal
  4536. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4537. # need to do runtime linking.
  4538. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4539. for ld_flag in $LDFLAGS; do
  4540. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  4541. aix_use_runtimelinking=yes
  4542. break
  4543. fi
  4544. done
  4545. ;;
  4546. esac
  4547. exp_sym_flag='-bexport'
  4548. no_entry_flag='-bnoentry'
  4549. fi
  4550. # When large executables or shared objects are built, AIX ld can
  4551. # have problems creating the table of contents. If linking a library
  4552. # or program results in "error TOC overflow" add -mminimal-toc to
  4553. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4554. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4555. _LT_TAGVAR(archive_cmds, $1)=''
  4556. _LT_TAGVAR(hardcode_direct, $1)=yes
  4557. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4558. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4559. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4560. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  4561. if test "$GCC" = yes; then
  4562. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4563. # We only want to do this on AIX 4.2 and lower, the check
  4564. # below for broken collect2 doesn't work under 4.3+
  4565. collect2name=`${CC} -print-prog-name=collect2`
  4566. if test -f "$collect2name" &&
  4567. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4568. then
  4569. # We have reworked collect2
  4570. :
  4571. else
  4572. # We have old collect2
  4573. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4574. # It fails to find uninstalled libraries when the uninstalled
  4575. # path is not listed in the libpath. Setting hardcode_minus_L
  4576. # to unsupported forces relinking
  4577. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4578. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4579. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4580. fi
  4581. ;;
  4582. esac
  4583. shared_flag='-shared'
  4584. if test "$aix_use_runtimelinking" = yes; then
  4585. shared_flag="$shared_flag "'${wl}-G'
  4586. fi
  4587. else
  4588. # not using gcc
  4589. if test "$host_cpu" = ia64; then
  4590. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4591. # chokes on -Wl,-G. The following line is correct:
  4592. shared_flag='-G'
  4593. else
  4594. if test "$aix_use_runtimelinking" = yes; then
  4595. shared_flag='${wl}-G'
  4596. else
  4597. shared_flag='${wl}-bM:SRE'
  4598. fi
  4599. fi
  4600. fi
  4601. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  4602. # It seems that -bexpall does not export symbols beginning with
  4603. # underscore (_), so it is better to generate a list of symbols to export.
  4604. _LT_TAGVAR(always_export_symbols, $1)=yes
  4605. if test "$aix_use_runtimelinking" = yes; then
  4606. # Warning - without using the other runtime loading flags (-brtl),
  4607. # -berok will link without error, but may produce a broken library.
  4608. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  4609. # Determine the default libpath from the value encoded in an
  4610. # empty executable.
  4611. _LT_SYS_MODULE_PATH_AIX([$1])
  4612. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4613. _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  4614. else
  4615. if test "$host_cpu" = ia64; then
  4616. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4617. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4618. _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"
  4619. else
  4620. # Determine the default libpath from the value encoded in an
  4621. # empty executable.
  4622. _LT_SYS_MODULE_PATH_AIX([$1])
  4623. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4624. # Warning - without using the other run time loading flags,
  4625. # -berok will link without error, but may produce a broken library.
  4626. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4627. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4628. if test "$with_gnu_ld" = yes; then
  4629. # We only use this code for GNU lds that support --whole-archive.
  4630. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4631. else
  4632. # Exported symbols can be pulled into shared objects from archives
  4633. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  4634. fi
  4635. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  4636. # This is similar to how AIX traditionally builds its shared libraries.
  4637. _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'
  4638. fi
  4639. fi
  4640. ;;
  4641. amigaos*)
  4642. case $host_cpu in
  4643. powerpc)
  4644. # see comment about AmigaOS4 .so support
  4645. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4646. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4647. ;;
  4648. m68k)
  4649. _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)'
  4650. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4651. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4652. ;;
  4653. esac
  4654. ;;
  4655. bsdi[[45]]*)
  4656. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  4657. ;;
  4658. cygwin* | mingw* | pw32* | cegcc*)
  4659. # When not using gcc, we currently assume that we are using
  4660. # Microsoft Visual C++.
  4661. # hardcode_libdir_flag_spec is actually meaningless, as there is
  4662. # no search path for DLLs.
  4663. case $cc_basename in
  4664. cl*)
  4665. # Native MSVC
  4666. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4667. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4668. _LT_TAGVAR(always_export_symbols, $1)=yes
  4669. _LT_TAGVAR(file_list_spec, $1)='@'
  4670. # Tell ltmain to make .lib files, not .a files.
  4671. libext=lib
  4672. # Tell ltmain to make .dll files, not .so files.
  4673. shrext_cmds=".dll"
  4674. # FIXME: Setting linknames here is a bad hack.
  4675. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  4676. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4677. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  4678. else
  4679. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  4680. fi~
  4681. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  4682. linknames='
  4683. # The linker will not automatically build a static lib if we build a DLL.
  4684. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4685. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4686. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4687. _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'
  4688. # Don't use ranlib
  4689. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  4690. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  4691. lt_tool_outputfile="@TOOL_OUTPUT@"~
  4692. case $lt_outputfile in
  4693. *.exe|*.EXE) ;;
  4694. *)
  4695. lt_outputfile="$lt_outputfile.exe"
  4696. lt_tool_outputfile="$lt_tool_outputfile.exe"
  4697. ;;
  4698. esac~
  4699. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  4700. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  4701. $RM "$lt_outputfile.manifest";
  4702. fi'
  4703. ;;
  4704. *)
  4705. # Assume MSVC wrapper
  4706. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  4707. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4708. # Tell ltmain to make .lib files, not .a files.
  4709. libext=lib
  4710. # Tell ltmain to make .dll files, not .so files.
  4711. shrext_cmds=".dll"
  4712. # FIXME: Setting linknames here is a bad hack.
  4713. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  4714. # The linker will automatically build a .lib file if we build a DLL.
  4715. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  4716. # FIXME: Should let the user specify the lib program.
  4717. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  4718. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4719. ;;
  4720. esac
  4721. ;;
  4722. darwin* | rhapsody*)
  4723. _LT_DARWIN_LINKER_FEATURES($1)
  4724. ;;
  4725. dgux*)
  4726. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4727. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4728. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4729. ;;
  4730. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4731. # support. Future versions do this automatically, but an explicit c++rt0.o
  4732. # does not break anything, and helps significantly (at the cost of a little
  4733. # extra space).
  4734. freebsd2.2*)
  4735. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4736. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4737. _LT_TAGVAR(hardcode_direct, $1)=yes
  4738. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4739. ;;
  4740. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4741. freebsd2.*)
  4742. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4743. _LT_TAGVAR(hardcode_direct, $1)=yes
  4744. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4745. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4746. ;;
  4747. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4748. freebsd* | dragonfly*)
  4749. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4750. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4751. _LT_TAGVAR(hardcode_direct, $1)=yes
  4752. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4753. ;;
  4754. hpux9*)
  4755. if test "$GCC" = yes; then
  4756. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  4757. else
  4758. _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'
  4759. fi
  4760. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4761. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4762. _LT_TAGVAR(hardcode_direct, $1)=yes
  4763. # hardcode_minus_L: Not really in the search PATH,
  4764. # but as the default location of the library.
  4765. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4766. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4767. ;;
  4768. hpux10*)
  4769. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4770. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4771. else
  4772. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  4773. fi
  4774. if test "$with_gnu_ld" = no; then
  4775. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4776. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4777. _LT_TAGVAR(hardcode_direct, $1)=yes
  4778. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4779. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4780. # hardcode_minus_L: Not really in the search PATH,
  4781. # but as the default location of the library.
  4782. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4783. fi
  4784. ;;
  4785. hpux11*)
  4786. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  4787. case $host_cpu in
  4788. hppa*64*)
  4789. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4790. ;;
  4791. ia64*)
  4792. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4793. ;;
  4794. *)
  4795. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  4796. ;;
  4797. esac
  4798. else
  4799. case $host_cpu in
  4800. hppa*64*)
  4801. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4802. ;;
  4803. ia64*)
  4804. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  4805. ;;
  4806. *)
  4807. m4_if($1, [], [
  4808. # Older versions of the 11.00 compiler do not understand -b yet
  4809. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  4810. _LT_LINKER_OPTION([if $CC understands -b],
  4811. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  4812. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  4813. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  4814. [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  4815. ;;
  4816. esac
  4817. fi
  4818. if test "$with_gnu_ld" = no; then
  4819. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4820. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4821. case $host_cpu in
  4822. hppa*64*|ia64*)
  4823. _LT_TAGVAR(hardcode_direct, $1)=no
  4824. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4825. ;;
  4826. *)
  4827. _LT_TAGVAR(hardcode_direct, $1)=yes
  4828. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4829. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4830. # hardcode_minus_L: Not really in the search PATH,
  4831. # but as the default location of the library.
  4832. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4833. ;;
  4834. esac
  4835. fi
  4836. ;;
  4837. irix5* | irix6* | nonstopux*)
  4838. if test "$GCC" = yes; then
  4839. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4840. # Try to use the -exported_symbol ld option, if it does not
  4841. # work, assume that -exports_file does not work either and
  4842. # implicitly export all symbols.
  4843. # This should be the same for all languages, so no per-tag cache variable.
  4844. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  4845. [lt_cv_irix_exported_symbol],
  4846. [save_LDFLAGS="$LDFLAGS"
  4847. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  4848. AC_LINK_IFELSE(
  4849. [AC_LANG_SOURCE(
  4850. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  4851. [C++], [[int foo (void) { return 0; }]],
  4852. [Fortran 77], [[
  4853. subroutine foo
  4854. end]],
  4855. [Fortran], [[
  4856. subroutine foo
  4857. end]])])],
  4858. [lt_cv_irix_exported_symbol=yes],
  4859. [lt_cv_irix_exported_symbol=no])
  4860. LDFLAGS="$save_LDFLAGS"])
  4861. if test "$lt_cv_irix_exported_symbol" = yes; then
  4862. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  4863. fi
  4864. else
  4865. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4866. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  4867. fi
  4868. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4869. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4870. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4871. _LT_TAGVAR(inherit_rpath, $1)=yes
  4872. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4873. ;;
  4874. netbsd*)
  4875. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4876. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4877. else
  4878. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4879. fi
  4880. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4881. _LT_TAGVAR(hardcode_direct, $1)=yes
  4882. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4883. ;;
  4884. newsos6)
  4885. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4886. _LT_TAGVAR(hardcode_direct, $1)=yes
  4887. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4888. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4889. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4890. ;;
  4891. *nto* | *qnx*)
  4892. ;;
  4893. openbsd*)
  4894. if test -f /usr/libexec/ld.so; then
  4895. _LT_TAGVAR(hardcode_direct, $1)=yes
  4896. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4897. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4898. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4899. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4900. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  4901. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4902. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4903. else
  4904. case $host_os in
  4905. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4906. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4907. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4908. ;;
  4909. *)
  4910. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4911. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4912. ;;
  4913. esac
  4914. fi
  4915. else
  4916. _LT_TAGVAR(ld_shlibs, $1)=no
  4917. fi
  4918. ;;
  4919. os2*)
  4920. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4921. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4922. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4923. _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'
  4924. _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4925. ;;
  4926. osf3*)
  4927. if test "$GCC" = yes; then
  4928. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4929. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4930. else
  4931. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4932. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4933. fi
  4934. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4935. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4936. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4937. ;;
  4938. osf4* | osf5*) # as osf3* with the addition of -msym flag
  4939. if test "$GCC" = yes; then
  4940. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4941. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  4942. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4943. else
  4944. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4945. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  4946. _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~
  4947. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  4948. # Both c and cxx compiler support -rpath directly
  4949. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4950. fi
  4951. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  4952. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  4953. ;;
  4954. solaris*)
  4955. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  4956. if test "$GCC" = yes; then
  4957. wlarc='${wl}'
  4958. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4959. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4960. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4961. else
  4962. case `$CC -V 2>&1` in
  4963. *"Compilers 5.0"*)
  4964. wlarc=''
  4965. _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4966. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4967. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  4968. ;;
  4969. *)
  4970. wlarc='${wl}'
  4971. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4972. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  4973. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  4974. ;;
  4975. esac
  4976. fi
  4977. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4978. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4979. case $host_os in
  4980. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4981. *)
  4982. # The compiler driver will combine and reorder linker options,
  4983. # but understands `-z linker_flag'. GCC discards it without `$wl',
  4984. # but is careful enough not to reorder.
  4985. # Supported since Solaris 2.6 (maybe 2.5.1?)
  4986. if test "$GCC" = yes; then
  4987. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4988. else
  4989. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4990. fi
  4991. ;;
  4992. esac
  4993. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4994. ;;
  4995. sunos4*)
  4996. if test "x$host_vendor" = xsequent; then
  4997. # Use $CC to link under sequent, because it throws in some extra .o
  4998. # files that make .init and .fini sections work.
  4999. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5000. else
  5001. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5002. fi
  5003. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5004. _LT_TAGVAR(hardcode_direct, $1)=yes
  5005. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5006. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5007. ;;
  5008. sysv4)
  5009. case $host_vendor in
  5010. sni)
  5011. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5012. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5013. ;;
  5014. siemens)
  5015. ## LD is ld it makes a PLAMLIB
  5016. ## CC just makes a GrossModule.
  5017. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5018. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5019. _LT_TAGVAR(hardcode_direct, $1)=no
  5020. ;;
  5021. motorola)
  5022. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5023. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5024. ;;
  5025. esac
  5026. runpath_var='LD_RUN_PATH'
  5027. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5028. ;;
  5029. sysv4.3*)
  5030. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5031. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5032. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5033. ;;
  5034. sysv4*MP*)
  5035. if test -d /usr/nec; then
  5036. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5037. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5038. runpath_var=LD_RUN_PATH
  5039. hardcode_runpath_var=yes
  5040. _LT_TAGVAR(ld_shlibs, $1)=yes
  5041. fi
  5042. ;;
  5043. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5044. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5045. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5046. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5047. runpath_var='LD_RUN_PATH'
  5048. if test "$GCC" = yes; then
  5049. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5050. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5051. else
  5052. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5053. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5054. fi
  5055. ;;
  5056. sysv5* | sco3.2v5* | sco5v6*)
  5057. # Note: We can NOT use -z defs as we might desire, because we do not
  5058. # link with -lc, and that would cause any symbols used from libc to
  5059. # always be unresolved, which means just about no library would
  5060. # ever link correctly. If we're not using GNU ld we use -z text
  5061. # though, which does catch some bad symbols but isn't as heavy-handed
  5062. # as -z defs.
  5063. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  5064. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  5065. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5066. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5067. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  5068. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5069. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5070. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  5071. runpath_var='LD_RUN_PATH'
  5072. if test "$GCC" = yes; then
  5073. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5074. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5075. else
  5076. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5077. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5078. fi
  5079. ;;
  5080. uts4*)
  5081. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5082. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5083. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5084. ;;
  5085. *)
  5086. _LT_TAGVAR(ld_shlibs, $1)=no
  5087. ;;
  5088. esac
  5089. if test x$host_vendor = xsni; then
  5090. case $host in
  5091. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5092. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  5093. ;;
  5094. esac
  5095. fi
  5096. fi
  5097. ])
  5098. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5099. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5100. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5101. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5102. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5103. _LT_DECL([], [extract_expsyms_cmds], [2],
  5104. [The commands to extract the exported symbol list from a shared archive])
  5105. #
  5106. # Do we need to explicitly link libc?
  5107. #
  5108. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5109. x|xyes)
  5110. # Assume -lc should be added
  5111. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5112. if test "$enable_shared" = yes && test "$GCC" = yes; then
  5113. case $_LT_TAGVAR(archive_cmds, $1) in
  5114. *'~'*)
  5115. # FIXME: we may have to deal with multi-command sequences.
  5116. ;;
  5117. '$CC '*)
  5118. # Test whether the compiler implicitly links with -lc since on some
  5119. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5120. # to ld, don't add -lc before -lgcc.
  5121. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5122. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5123. [$RM conftest*
  5124. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5125. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5126. soname=conftest
  5127. lib=conftest
  5128. libobjs=conftest.$ac_objext
  5129. deplibs=
  5130. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5131. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5132. compiler_flags=-v
  5133. linker_flags=-v
  5134. verstring=
  5135. output_objdir=.
  5136. libname=conftest
  5137. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5138. _LT_TAGVAR(allow_undefined_flag, $1)=
  5139. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5140. then
  5141. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5142. else
  5143. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5144. fi
  5145. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5146. else
  5147. cat conftest.err 1>&5
  5148. fi
  5149. $RM conftest*
  5150. ])
  5151. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5152. ;;
  5153. esac
  5154. fi
  5155. ;;
  5156. esac
  5157. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5158. [Whether or not to add -lc for building shared libraries])
  5159. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5160. [enable_shared_with_static_runtimes], [0],
  5161. [Whether or not to disallow shared libs when runtime libs are static])
  5162. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5163. [Compiler flag to allow reflexive dlopens])
  5164. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5165. [Compiler flag to generate shared objects directly from archives])
  5166. _LT_TAGDECL([], [compiler_needs_object], [1],
  5167. [Whether the compiler copes with passing no objects directly])
  5168. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5169. [Create an old-style archive from a shared archive])
  5170. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5171. [Create a temporary old-style archive to link instead of a shared archive])
  5172. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5173. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5174. _LT_TAGDECL([], [module_cmds], [2],
  5175. [Commands used to build a loadable module if different from building
  5176. a shared archive.])
  5177. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5178. _LT_TAGDECL([], [with_gnu_ld], [1],
  5179. [Whether we are building with GNU ld or not])
  5180. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5181. [Flag that allows shared libraries with undefined symbols to be built])
  5182. _LT_TAGDECL([], [no_undefined_flag], [1],
  5183. [Flag that enforces no undefined symbols])
  5184. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5185. [Flag to hardcode $libdir into a binary during linking.
  5186. This must work even if $libdir does not exist])
  5187. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5188. [Whether we need a single "-rpath" flag with a separated argument])
  5189. _LT_TAGDECL([], [hardcode_direct], [0],
  5190. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5191. DIR into the resulting binary])
  5192. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5193. [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  5194. DIR into the resulting binary and the resulting library dependency is
  5195. "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  5196. library is relocated])
  5197. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5198. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5199. into the resulting binary])
  5200. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5201. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5202. into the resulting binary])
  5203. _LT_TAGDECL([], [hardcode_automatic], [0],
  5204. [Set to "yes" if building a shared library automatically hardcodes DIR
  5205. into the library and all subsequent libraries and executables linked
  5206. against it])
  5207. _LT_TAGDECL([], [inherit_rpath], [0],
  5208. [Set to yes if linker adds runtime paths of dependent libraries
  5209. to runtime path list])
  5210. _LT_TAGDECL([], [link_all_deplibs], [0],
  5211. [Whether libtool must link a program against all its dependency libraries])
  5212. _LT_TAGDECL([], [always_export_symbols], [0],
  5213. [Set to "yes" if exported symbols are required])
  5214. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5215. [The commands to list exported symbols])
  5216. _LT_TAGDECL([], [exclude_expsyms], [1],
  5217. [Symbols that should not be listed in the preloaded symbols])
  5218. _LT_TAGDECL([], [include_expsyms], [1],
  5219. [Symbols that must always be exported])
  5220. _LT_TAGDECL([], [prelink_cmds], [2],
  5221. [Commands necessary for linking programs (against libraries) with templates])
  5222. _LT_TAGDECL([], [postlink_cmds], [2],
  5223. [Commands necessary for finishing linking programs])
  5224. _LT_TAGDECL([], [file_list_spec], [1],
  5225. [Specify filename containing input files])
  5226. dnl FIXME: Not yet implemented
  5227. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5228. dnl [Compiler flag to generate thread safe objects])
  5229. ])# _LT_LINKER_SHLIBS
  5230. # _LT_LANG_C_CONFIG([TAG])
  5231. # ------------------------
  5232. # Ensure that the configuration variables for a C compiler are suitably
  5233. # defined. These variables are subsequently used by _LT_CONFIG to write
  5234. # the compiler configuration to `libtool'.
  5235. m4_defun([_LT_LANG_C_CONFIG],
  5236. [m4_require([_LT_DECL_EGREP])dnl
  5237. lt_save_CC="$CC"
  5238. AC_LANG_PUSH(C)
  5239. # Source file extension for C test sources.
  5240. ac_ext=c
  5241. # Object file extension for compiled C test sources.
  5242. objext=o
  5243. _LT_TAGVAR(objext, $1)=$objext
  5244. # Code to be used in simple compile tests
  5245. lt_simple_compile_test_code="int some_variable = 0;"
  5246. # Code to be used in simple link tests
  5247. lt_simple_link_test_code='int main(){return(0);}'
  5248. _LT_TAG_COMPILER
  5249. # Save the default compiler, since it gets overwritten when the other
  5250. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5251. compiler_DEFAULT=$CC
  5252. # save warnings/boilerplate of simple test code
  5253. _LT_COMPILER_BOILERPLATE
  5254. _LT_LINKER_BOILERPLATE
  5255. if test -n "$compiler"; then
  5256. _LT_COMPILER_NO_RTTI($1)
  5257. _LT_COMPILER_PIC($1)
  5258. _LT_COMPILER_C_O($1)
  5259. _LT_COMPILER_FILE_LOCKS($1)
  5260. _LT_LINKER_SHLIBS($1)
  5261. _LT_SYS_DYNAMIC_LINKER($1)
  5262. _LT_LINKER_HARDCODE_LIBPATH($1)
  5263. LT_SYS_DLOPEN_SELF
  5264. _LT_CMD_STRIPLIB
  5265. # Report which library types will actually be built
  5266. AC_MSG_CHECKING([if libtool supports shared libraries])
  5267. AC_MSG_RESULT([$can_build_shared])
  5268. AC_MSG_CHECKING([whether to build shared libraries])
  5269. test "$can_build_shared" = "no" && enable_shared=no
  5270. # On AIX, shared libraries and static libraries use the same namespace, and
  5271. # are all built from PIC.
  5272. case $host_os in
  5273. aix3*)
  5274. test "$enable_shared" = yes && enable_static=no
  5275. if test -n "$RANLIB"; then
  5276. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5277. postinstall_cmds='$RANLIB $lib'
  5278. fi
  5279. ;;
  5280. aix[[4-9]]*)
  5281. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  5282. test "$enable_shared" = yes && enable_static=no
  5283. fi
  5284. ;;
  5285. esac
  5286. AC_MSG_RESULT([$enable_shared])
  5287. AC_MSG_CHECKING([whether to build static libraries])
  5288. # Make sure either enable_shared or enable_static is yes.
  5289. test "$enable_shared" = yes || enable_static=yes
  5290. AC_MSG_RESULT([$enable_static])
  5291. _LT_CONFIG($1)
  5292. fi
  5293. AC_LANG_POP
  5294. CC="$lt_save_CC"
  5295. ])# _LT_LANG_C_CONFIG
  5296. # _LT_LANG_CXX_CONFIG([TAG])
  5297. # --------------------------
  5298. # Ensure that the configuration variables for a C++ compiler are suitably
  5299. # defined. These variables are subsequently used by _LT_CONFIG to write
  5300. # the compiler configuration to `libtool'.
  5301. m4_defun([_LT_LANG_CXX_CONFIG],
  5302. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5303. m4_require([_LT_DECL_EGREP])dnl
  5304. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5305. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  5306. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  5307. (test "X$CXX" != "Xg++"))) ; then
  5308. AC_PROG_CXXCPP
  5309. else
  5310. _lt_caught_CXX_error=yes
  5311. fi
  5312. AC_LANG_PUSH(C++)
  5313. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5314. _LT_TAGVAR(allow_undefined_flag, $1)=
  5315. _LT_TAGVAR(always_export_symbols, $1)=no
  5316. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5317. _LT_TAGVAR(compiler_needs_object, $1)=no
  5318. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5319. _LT_TAGVAR(hardcode_direct, $1)=no
  5320. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5321. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5322. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5323. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5324. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5325. _LT_TAGVAR(hardcode_automatic, $1)=no
  5326. _LT_TAGVAR(inherit_rpath, $1)=no
  5327. _LT_TAGVAR(module_cmds, $1)=
  5328. _LT_TAGVAR(module_expsym_cmds, $1)=
  5329. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5330. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5331. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5332. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5333. _LT_TAGVAR(no_undefined_flag, $1)=
  5334. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5335. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5336. # Source file extension for C++ test sources.
  5337. ac_ext=cpp
  5338. # Object file extension for compiled C++ test sources.
  5339. objext=o
  5340. _LT_TAGVAR(objext, $1)=$objext
  5341. # No sense in running all these tests if we already determined that
  5342. # the CXX compiler isn't working. Some variables (like enable_shared)
  5343. # are currently assumed to apply to all compilers on this platform,
  5344. # and will be corrupted by setting them based on a non-working compiler.
  5345. if test "$_lt_caught_CXX_error" != yes; then
  5346. # Code to be used in simple compile tests
  5347. lt_simple_compile_test_code="int some_variable = 0;"
  5348. # Code to be used in simple link tests
  5349. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5350. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5351. _LT_TAG_COMPILER
  5352. # save warnings/boilerplate of simple test code
  5353. _LT_COMPILER_BOILERPLATE
  5354. _LT_LINKER_BOILERPLATE
  5355. # Allow CC to be a program name with arguments.
  5356. lt_save_CC=$CC
  5357. lt_save_CFLAGS=$CFLAGS
  5358. lt_save_LD=$LD
  5359. lt_save_GCC=$GCC
  5360. GCC=$GXX
  5361. lt_save_with_gnu_ld=$with_gnu_ld
  5362. lt_save_path_LD=$lt_cv_path_LD
  5363. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5364. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5365. else
  5366. $as_unset lt_cv_prog_gnu_ld
  5367. fi
  5368. if test -n "${lt_cv_path_LDCXX+set}"; then
  5369. lt_cv_path_LD=$lt_cv_path_LDCXX
  5370. else
  5371. $as_unset lt_cv_path_LD
  5372. fi
  5373. test -z "${LDCXX+set}" || LD=$LDCXX
  5374. CC=${CXX-"c++"}
  5375. CFLAGS=$CXXFLAGS
  5376. compiler=$CC
  5377. _LT_TAGVAR(compiler, $1)=$CC
  5378. _LT_CC_BASENAME([$compiler])
  5379. if test -n "$compiler"; then
  5380. # We don't want -fno-exception when compiling C++ code, so set the
  5381. # no_builtin_flag separately
  5382. if test "$GXX" = yes; then
  5383. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5384. else
  5385. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5386. fi
  5387. if test "$GXX" = yes; then
  5388. # Set up default GNU C++ configuration
  5389. LT_PATH_LD
  5390. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5391. # archiving commands below assume that GNU ld is being used.
  5392. if test "$with_gnu_ld" = yes; then
  5393. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5394. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5395. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5396. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5397. # If archive_cmds runs LD, not CC, wlarc should be empty
  5398. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5399. # investigate it a little bit more. (MM)
  5400. wlarc='${wl}'
  5401. # ancient GNU ld didn't support --whole-archive et. al.
  5402. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5403. $GREP 'no-whole-archive' > /dev/null; then
  5404. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5405. else
  5406. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5407. fi
  5408. else
  5409. with_gnu_ld=no
  5410. wlarc=
  5411. # A generic and very simple default shared library creation
  5412. # command for GNU C++ for the case where it uses the native
  5413. # linker, instead of GNU ld. If possible, this setting should
  5414. # overridden to take advantage of the native linker features on
  5415. # the platform it is being used on.
  5416. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5417. fi
  5418. # Commands to make compiler produce verbose output that lists
  5419. # what "hidden" libraries, object files and flags are used when
  5420. # linking a shared library.
  5421. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5422. else
  5423. GXX=no
  5424. with_gnu_ld=no
  5425. wlarc=
  5426. fi
  5427. # PORTME: fill in a description of your system's C++ link characteristics
  5428. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5429. _LT_TAGVAR(ld_shlibs, $1)=yes
  5430. case $host_os in
  5431. aix3*)
  5432. # FIXME: insert proper C++ library support
  5433. _LT_TAGVAR(ld_shlibs, $1)=no
  5434. ;;
  5435. aix[[4-9]]*)
  5436. if test "$host_cpu" = ia64; then
  5437. # On IA64, the linker does run time linking by default, so we don't
  5438. # have to do anything special.
  5439. aix_use_runtimelinking=no
  5440. exp_sym_flag='-Bexport'
  5441. no_entry_flag=""
  5442. else
  5443. aix_use_runtimelinking=no
  5444. # Test if we are trying to use run time linking or normal
  5445. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5446. # need to do runtime linking.
  5447. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5448. for ld_flag in $LDFLAGS; do
  5449. case $ld_flag in
  5450. *-brtl*)
  5451. aix_use_runtimelinking=yes
  5452. break
  5453. ;;
  5454. esac
  5455. done
  5456. ;;
  5457. esac
  5458. exp_sym_flag='-bexport'
  5459. no_entry_flag='-bnoentry'
  5460. fi
  5461. # When large executables or shared objects are built, AIX ld can
  5462. # have problems creating the table of contents. If linking a library
  5463. # or program results in "error TOC overflow" add -mminimal-toc to
  5464. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5465. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5466. _LT_TAGVAR(archive_cmds, $1)=''
  5467. _LT_TAGVAR(hardcode_direct, $1)=yes
  5468. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5469. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5470. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5471. _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  5472. if test "$GXX" = yes; then
  5473. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5474. # We only want to do this on AIX 4.2 and lower, the check
  5475. # below for broken collect2 doesn't work under 4.3+
  5476. collect2name=`${CC} -print-prog-name=collect2`
  5477. if test -f "$collect2name" &&
  5478. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5479. then
  5480. # We have reworked collect2
  5481. :
  5482. else
  5483. # We have old collect2
  5484. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5485. # It fails to find uninstalled libraries when the uninstalled
  5486. # path is not listed in the libpath. Setting hardcode_minus_L
  5487. # to unsupported forces relinking
  5488. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5489. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5490. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5491. fi
  5492. esac
  5493. shared_flag='-shared'
  5494. if test "$aix_use_runtimelinking" = yes; then
  5495. shared_flag="$shared_flag "'${wl}-G'
  5496. fi
  5497. else
  5498. # not using gcc
  5499. if test "$host_cpu" = ia64; then
  5500. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5501. # chokes on -Wl,-G. The following line is correct:
  5502. shared_flag='-G'
  5503. else
  5504. if test "$aix_use_runtimelinking" = yes; then
  5505. shared_flag='${wl}-G'
  5506. else
  5507. shared_flag='${wl}-bM:SRE'
  5508. fi
  5509. fi
  5510. fi
  5511. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  5512. # It seems that -bexpall does not export symbols beginning with
  5513. # underscore (_), so it is better to generate a list of symbols to
  5514. # export.
  5515. _LT_TAGVAR(always_export_symbols, $1)=yes
  5516. if test "$aix_use_runtimelinking" = yes; then
  5517. # Warning - without using the other runtime loading flags (-brtl),
  5518. # -berok will link without error, but may produce a broken library.
  5519. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5520. # Determine the default libpath from the value encoded in an empty
  5521. # executable.
  5522. _LT_SYS_MODULE_PATH_AIX([$1])
  5523. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5524. _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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  5525. else
  5526. if test "$host_cpu" = ia64; then
  5527. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5528. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5529. _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"
  5530. else
  5531. # Determine the default libpath from the value encoded in an
  5532. # empty executable.
  5533. _LT_SYS_MODULE_PATH_AIX([$1])
  5534. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5535. # Warning - without using the other run time loading flags,
  5536. # -berok will link without error, but may produce a broken library.
  5537. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5538. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5539. if test "$with_gnu_ld" = yes; then
  5540. # We only use this code for GNU lds that support --whole-archive.
  5541. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5542. else
  5543. # Exported symbols can be pulled into shared objects from archives
  5544. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5545. fi
  5546. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5547. # This is similar to how AIX traditionally builds its shared
  5548. # libraries.
  5549. _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'
  5550. fi
  5551. fi
  5552. ;;
  5553. beos*)
  5554. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  5555. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5556. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  5557. # support --undefined. This deserves some investigation. FIXME
  5558. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5559. else
  5560. _LT_TAGVAR(ld_shlibs, $1)=no
  5561. fi
  5562. ;;
  5563. chorus*)
  5564. case $cc_basename in
  5565. *)
  5566. # FIXME: insert proper C++ library support
  5567. _LT_TAGVAR(ld_shlibs, $1)=no
  5568. ;;
  5569. esac
  5570. ;;
  5571. cygwin* | mingw* | pw32* | cegcc*)
  5572. case $GXX,$cc_basename in
  5573. ,cl* | no,cl*)
  5574. # Native MSVC
  5575. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5576. # no search path for DLLs.
  5577. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5578. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5579. _LT_TAGVAR(always_export_symbols, $1)=yes
  5580. _LT_TAGVAR(file_list_spec, $1)='@'
  5581. # Tell ltmain to make .lib files, not .a files.
  5582. libext=lib
  5583. # Tell ltmain to make .dll files, not .so files.
  5584. shrext_cmds=".dll"
  5585. # FIXME: Setting linknames here is a bad hack.
  5586. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  5587. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5588. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  5589. else
  5590. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  5591. fi~
  5592. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5593. linknames='
  5594. # The linker will not automatically build a static lib if we build a DLL.
  5595. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5596. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5597. # Don't use ranlib
  5598. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5599. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5600. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5601. case $lt_outputfile in
  5602. *.exe|*.EXE) ;;
  5603. *)
  5604. lt_outputfile="$lt_outputfile.exe"
  5605. lt_tool_outputfile="$lt_tool_outputfile.exe"
  5606. ;;
  5607. esac~
  5608. func_to_tool_file "$lt_outputfile"~
  5609. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  5610. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5611. $RM "$lt_outputfile.manifest";
  5612. fi'
  5613. ;;
  5614. *)
  5615. # g++
  5616. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5617. # as there is no search path for DLLs.
  5618. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5619. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols'
  5620. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5621. _LT_TAGVAR(always_export_symbols, $1)=no
  5622. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5623. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  5624. _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'
  5625. # If the export-symbols file already is a .def file (1st line
  5626. # is EXPORTS), use it as is; otherwise, prepend...
  5627. _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5628. cp $export_symbols $output_objdir/$soname.def;
  5629. else
  5630. echo EXPORTS > $output_objdir/$soname.def;
  5631. cat $export_symbols >> $output_objdir/$soname.def;
  5632. fi~
  5633. $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'
  5634. else
  5635. _LT_TAGVAR(ld_shlibs, $1)=no
  5636. fi
  5637. ;;
  5638. esac
  5639. ;;
  5640. darwin* | rhapsody*)
  5641. _LT_DARWIN_LINKER_FEATURES($1)
  5642. ;;
  5643. dgux*)
  5644. case $cc_basename in
  5645. ec++*)
  5646. # FIXME: insert proper C++ library support
  5647. _LT_TAGVAR(ld_shlibs, $1)=no
  5648. ;;
  5649. ghcx*)
  5650. # Green Hills C++ Compiler
  5651. # FIXME: insert proper C++ library support
  5652. _LT_TAGVAR(ld_shlibs, $1)=no
  5653. ;;
  5654. *)
  5655. # FIXME: insert proper C++ library support
  5656. _LT_TAGVAR(ld_shlibs, $1)=no
  5657. ;;
  5658. esac
  5659. ;;
  5660. freebsd2.*)
  5661. # C++ shared libraries reported to be fairly broken before
  5662. # switch to ELF
  5663. _LT_TAGVAR(ld_shlibs, $1)=no
  5664. ;;
  5665. freebsd-elf*)
  5666. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5667. ;;
  5668. freebsd* | dragonfly*)
  5669. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5670. # conventions
  5671. _LT_TAGVAR(ld_shlibs, $1)=yes
  5672. ;;
  5673. gnu*)
  5674. ;;
  5675. haiku*)
  5676. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5677. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5678. ;;
  5679. hpux9*)
  5680. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5681. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5682. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5683. _LT_TAGVAR(hardcode_direct, $1)=yes
  5684. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5685. # but as the default
  5686. # location of the library.
  5687. case $cc_basename in
  5688. CC*)
  5689. # FIXME: insert proper C++ library support
  5690. _LT_TAGVAR(ld_shlibs, $1)=no
  5691. ;;
  5692. aCC*)
  5693. _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'
  5694. # Commands to make compiler produce verbose output that lists
  5695. # what "hidden" libraries, object files and flags are used when
  5696. # linking a shared library.
  5697. #
  5698. # There doesn't appear to be a way to prevent this compiler from
  5699. # explicitly linking system object files so we need to strip them
  5700. # from the output so that they don't get included in the library
  5701. # dependencies.
  5702. 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; func_echo_all "$list"'
  5703. ;;
  5704. *)
  5705. if test "$GXX" = yes; then
  5706. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
  5707. else
  5708. # FIXME: insert proper C++ library support
  5709. _LT_TAGVAR(ld_shlibs, $1)=no
  5710. fi
  5711. ;;
  5712. esac
  5713. ;;
  5714. hpux10*|hpux11*)
  5715. if test $with_gnu_ld = no; then
  5716. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5717. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5718. case $host_cpu in
  5719. hppa*64*|ia64*)
  5720. ;;
  5721. *)
  5722. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5723. ;;
  5724. esac
  5725. fi
  5726. case $host_cpu in
  5727. hppa*64*|ia64*)
  5728. _LT_TAGVAR(hardcode_direct, $1)=no
  5729. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5730. ;;
  5731. *)
  5732. _LT_TAGVAR(hardcode_direct, $1)=yes
  5733. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5734. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5735. # but as the default
  5736. # location of the library.
  5737. ;;
  5738. esac
  5739. case $cc_basename in
  5740. CC*)
  5741. # FIXME: insert proper C++ library support
  5742. _LT_TAGVAR(ld_shlibs, $1)=no
  5743. ;;
  5744. aCC*)
  5745. case $host_cpu in
  5746. hppa*64*)
  5747. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5748. ;;
  5749. ia64*)
  5750. _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5751. ;;
  5752. *)
  5753. _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'
  5754. ;;
  5755. esac
  5756. # Commands to make compiler produce verbose output that lists
  5757. # what "hidden" libraries, object files and flags are used when
  5758. # linking a shared library.
  5759. #
  5760. # There doesn't appear to be a way to prevent this compiler from
  5761. # explicitly linking system object files so we need to strip them
  5762. # from the output so that they don't get included in the library
  5763. # dependencies.
  5764. 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; func_echo_all "$list"'
  5765. ;;
  5766. *)
  5767. if test "$GXX" = yes; then
  5768. if test $with_gnu_ld = no; then
  5769. case $host_cpu in
  5770. hppa*64*)
  5771. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5772. ;;
  5773. ia64*)
  5774. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5775. ;;
  5776. *)
  5777. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5778. ;;
  5779. esac
  5780. fi
  5781. else
  5782. # FIXME: insert proper C++ library support
  5783. _LT_TAGVAR(ld_shlibs, $1)=no
  5784. fi
  5785. ;;
  5786. esac
  5787. ;;
  5788. interix[[3-9]]*)
  5789. _LT_TAGVAR(hardcode_direct, $1)=no
  5790. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5791. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5792. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5793. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  5794. # Instead, shared libraries are loaded at an image base (0x10000000 by
  5795. # default) and relocated if they conflict, which is a slow very memory
  5796. # consuming and fragmenting process. To avoid this, we pick a random,
  5797. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  5798. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  5799. _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'
  5800. _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'
  5801. ;;
  5802. irix5* | irix6*)
  5803. case $cc_basename in
  5804. CC*)
  5805. # SGI C++
  5806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  5807. # Archives containing C++ object files must be created using
  5808. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5809. # necessary to make sure instantiated templates are included
  5810. # in the archive.
  5811. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5812. ;;
  5813. *)
  5814. if test "$GXX" = yes; then
  5815. if test "$with_gnu_ld" = no; then
  5816. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  5817. else
  5818. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  5819. fi
  5820. fi
  5821. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5822. ;;
  5823. esac
  5824. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5825. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5826. _LT_TAGVAR(inherit_rpath, $1)=yes
  5827. ;;
  5828. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5829. case $cc_basename in
  5830. KCC*)
  5831. # Kuck and Associates, Inc. (KAI) C++ Compiler
  5832. # KCC will only create a shared library if the output file
  5833. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5834. # to its proper name (with version) after linking.
  5835. _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'
  5836. _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'
  5837. # Commands to make compiler produce verbose output that lists
  5838. # what "hidden" libraries, object files and flags are used when
  5839. # linking a shared library.
  5840. #
  5841. # There doesn't appear to be a way to prevent this compiler from
  5842. # explicitly linking system object files so we need to strip them
  5843. # from the output so that they don't get included in the library
  5844. # dependencies.
  5845. 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; func_echo_all "$list"'
  5846. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5847. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5848. # Archives containing C++ object files must be created using
  5849. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5850. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5851. ;;
  5852. icpc* | ecpc* )
  5853. # Intel C++
  5854. with_gnu_ld=yes
  5855. # version 8.0 and above of icpc choke on multiply defined symbols
  5856. # if we add $predep_objects and $postdep_objects, however 7.1 and
  5857. # earlier do not add the objects themselves.
  5858. case `$CC -V 2>&1` in
  5859. *"Version 7."*)
  5860. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5861. _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'
  5862. ;;
  5863. *) # Version 8.0 or newer
  5864. tmp_idyn=
  5865. case $host_cpu in
  5866. ia64*) tmp_idyn=' -i_dynamic';;
  5867. esac
  5868. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5869. _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'
  5870. ;;
  5871. esac
  5872. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5873. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5874. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5875. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5876. ;;
  5877. pgCC* | pgcpp*)
  5878. # Portland Group C++ compiler
  5879. case `$CC -V` in
  5880. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  5881. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  5882. rm -rf $tpldir~
  5883. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  5884. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  5885. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  5886. rm -rf $tpldir~
  5887. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  5888. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  5889. $RANLIB $oldlib'
  5890. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  5891. rm -rf $tpldir~
  5892. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5893. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5894. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  5895. rm -rf $tpldir~
  5896. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  5897. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  5898. ;;
  5899. *) # Version 6 and above use weak symbols
  5900. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5901. _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'
  5902. ;;
  5903. esac
  5904. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5905. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5906. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5907. ;;
  5908. cxx*)
  5909. # Compaq C++
  5910. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5911. _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'
  5912. runpath_var=LD_RUN_PATH
  5913. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5914. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5915. # Commands to make compiler produce verbose output that lists
  5916. # what "hidden" libraries, object files and flags are used when
  5917. # linking a shared library.
  5918. #
  5919. # There doesn't appear to be a way to prevent this compiler from
  5920. # explicitly linking system object files so we need to strip them
  5921. # from the output so that they don't get included in the library
  5922. # dependencies.
  5923. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
  5924. ;;
  5925. xl* | mpixl* | bgxl*)
  5926. # IBM XL 8.0 on PPC, with GNU ld
  5927. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5928. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5929. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5930. if test "x$supports_anon_versioning" = xyes; then
  5931. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  5932. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  5933. echo "local: *; };" >> $output_objdir/$libname.ver~
  5934. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  5935. fi
  5936. ;;
  5937. *)
  5938. case `$CC -V 2>&1 | sed 5q` in
  5939. *Sun\ C*)
  5940. # Sun C++ 5.9
  5941. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5942. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5943. _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'
  5944. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5945. _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; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  5946. _LT_TAGVAR(compiler_needs_object, $1)=yes
  5947. # Not sure whether something based on
  5948. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  5949. # would be better.
  5950. output_verbose_link_cmd='func_echo_all'
  5951. # Archives containing C++ object files must be created using
  5952. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5953. # necessary to make sure instantiated templates are included
  5954. # in the archive.
  5955. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5956. ;;
  5957. esac
  5958. ;;
  5959. esac
  5960. ;;
  5961. lynxos*)
  5962. # FIXME: insert proper C++ library support
  5963. _LT_TAGVAR(ld_shlibs, $1)=no
  5964. ;;
  5965. m88k*)
  5966. # FIXME: insert proper C++ library support
  5967. _LT_TAGVAR(ld_shlibs, $1)=no
  5968. ;;
  5969. mvs*)
  5970. case $cc_basename in
  5971. cxx*)
  5972. # FIXME: insert proper C++ library support
  5973. _LT_TAGVAR(ld_shlibs, $1)=no
  5974. ;;
  5975. *)
  5976. # FIXME: insert proper C++ library support
  5977. _LT_TAGVAR(ld_shlibs, $1)=no
  5978. ;;
  5979. esac
  5980. ;;
  5981. netbsd*)
  5982. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5983. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5984. wlarc=
  5985. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5986. _LT_TAGVAR(hardcode_direct, $1)=yes
  5987. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5988. fi
  5989. # Workaround some broken pre-1.5 toolchains
  5990. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5991. ;;
  5992. *nto* | *qnx*)
  5993. _LT_TAGVAR(ld_shlibs, $1)=yes
  5994. ;;
  5995. openbsd2*)
  5996. # C++ shared libraries are fairly broken
  5997. _LT_TAGVAR(ld_shlibs, $1)=no
  5998. ;;
  5999. openbsd*)
  6000. if test -f /usr/libexec/ld.so; then
  6001. _LT_TAGVAR(hardcode_direct, $1)=yes
  6002. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6003. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6004. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6005. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6006. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6007. _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'
  6008. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6009. _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6010. fi
  6011. output_verbose_link_cmd=func_echo_all
  6012. else
  6013. _LT_TAGVAR(ld_shlibs, $1)=no
  6014. fi
  6015. ;;
  6016. osf3* | osf4* | osf5*)
  6017. case $cc_basename in
  6018. KCC*)
  6019. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6020. # KCC will only create a shared library if the output file
  6021. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6022. # to its proper name (with version) after linking.
  6023. _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'
  6024. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6025. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6026. # Archives containing C++ object files must be created using
  6027. # the KAI C++ compiler.
  6028. case $host in
  6029. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6030. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6031. esac
  6032. ;;
  6033. RCC*)
  6034. # Rational C++ 2.4.1
  6035. # FIXME: insert proper C++ library support
  6036. _LT_TAGVAR(ld_shlibs, $1)=no
  6037. ;;
  6038. cxx*)
  6039. case $host in
  6040. osf3*)
  6041. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6042. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6043. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6044. ;;
  6045. *)
  6046. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6047. _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  6048. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6049. echo "-hidden">> $lib.exp~
  6050. $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 ${output_objdir}/so_locations -o $lib~
  6051. $RM $lib.exp'
  6052. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6053. ;;
  6054. esac
  6055. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6056. # Commands to make compiler produce verbose output that lists
  6057. # what "hidden" libraries, object files and flags are used when
  6058. # linking a shared library.
  6059. #
  6060. # There doesn't appear to be a way to prevent this compiler from
  6061. # explicitly linking system object files so we need to strip them
  6062. # from the output so that they don't get included in the library
  6063. # dependencies.
  6064. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
  6065. ;;
  6066. *)
  6067. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6068. _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  6069. case $host in
  6070. osf3*)
  6071. _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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6072. ;;
  6073. *)
  6074. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  6075. ;;
  6076. esac
  6077. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6078. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6079. # Commands to make compiler produce verbose output that lists
  6080. # what "hidden" libraries, object files and flags are used when
  6081. # linking a shared library.
  6082. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6083. else
  6084. # FIXME: insert proper C++ library support
  6085. _LT_TAGVAR(ld_shlibs, $1)=no
  6086. fi
  6087. ;;
  6088. esac
  6089. ;;
  6090. psos*)
  6091. # FIXME: insert proper C++ library support
  6092. _LT_TAGVAR(ld_shlibs, $1)=no
  6093. ;;
  6094. sunos4*)
  6095. case $cc_basename in
  6096. CC*)
  6097. # Sun C++ 4.x
  6098. # FIXME: insert proper C++ library support
  6099. _LT_TAGVAR(ld_shlibs, $1)=no
  6100. ;;
  6101. lcc*)
  6102. # Lucid
  6103. # FIXME: insert proper C++ library support
  6104. _LT_TAGVAR(ld_shlibs, $1)=no
  6105. ;;
  6106. *)
  6107. # FIXME: insert proper C++ library support
  6108. _LT_TAGVAR(ld_shlibs, $1)=no
  6109. ;;
  6110. esac
  6111. ;;
  6112. solaris*)
  6113. case $cc_basename in
  6114. CC* | sunCC*)
  6115. # Sun C++ 4.2, 5.x and Centerline C++
  6116. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6117. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6118. _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6119. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6120. $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'
  6121. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6122. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6123. case $host_os in
  6124. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6125. *)
  6126. # The compiler driver will combine and reorder linker options,
  6127. # but understands `-z linker_flag'.
  6128. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6129. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6130. ;;
  6131. esac
  6132. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6133. output_verbose_link_cmd='func_echo_all'
  6134. # Archives containing C++ object files must be created using
  6135. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6136. # necessary to make sure instantiated templates are included
  6137. # in the archive.
  6138. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6139. ;;
  6140. gcx*)
  6141. # Green Hills C++ Compiler
  6142. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6143. # The C++ compiler must be used to create the archive.
  6144. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6145. ;;
  6146. *)
  6147. # GNU C++ compiler with Solaris linker
  6148. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6149. _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6150. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6151. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6152. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6153. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6154. # Commands to make compiler produce verbose output that lists
  6155. # what "hidden" libraries, object files and flags are used when
  6156. # linking a shared library.
  6157. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6158. else
  6159. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6160. # platform.
  6161. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6162. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6163. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6164. # Commands to make compiler produce verbose output that lists
  6165. # what "hidden" libraries, object files and flags are used when
  6166. # linking a shared library.
  6167. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6168. fi
  6169. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6170. case $host_os in
  6171. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6172. *)
  6173. _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  6174. ;;
  6175. esac
  6176. fi
  6177. ;;
  6178. esac
  6179. ;;
  6180. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6181. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6182. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6183. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6184. runpath_var='LD_RUN_PATH'
  6185. case $cc_basename in
  6186. CC*)
  6187. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6188. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6189. ;;
  6190. *)
  6191. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6192. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6193. ;;
  6194. esac
  6195. ;;
  6196. sysv5* | sco3.2v5* | sco5v6*)
  6197. # Note: We can NOT use -z defs as we might desire, because we do not
  6198. # link with -lc, and that would cause any symbols used from libc to
  6199. # always be unresolved, which means just about no library would
  6200. # ever link correctly. If we're not using GNU ld we use -z text
  6201. # though, which does catch some bad symbols but isn't as heavy-handed
  6202. # as -z defs.
  6203. _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  6204. _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  6205. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6206. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6207. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  6208. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6209. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6210. _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  6211. runpath_var='LD_RUN_PATH'
  6212. case $cc_basename in
  6213. CC*)
  6214. _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6215. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6216. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6217. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6218. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6219. '"$_LT_TAGVAR(reload_cmds, $1)"
  6220. ;;
  6221. *)
  6222. _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6223. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6224. ;;
  6225. esac
  6226. ;;
  6227. tandem*)
  6228. case $cc_basename in
  6229. NCC*)
  6230. # NonStop-UX NCC 3.20
  6231. # FIXME: insert proper C++ library support
  6232. _LT_TAGVAR(ld_shlibs, $1)=no
  6233. ;;
  6234. *)
  6235. # FIXME: insert proper C++ library support
  6236. _LT_TAGVAR(ld_shlibs, $1)=no
  6237. ;;
  6238. esac
  6239. ;;
  6240. vxworks*)
  6241. # FIXME: insert proper C++ library support
  6242. _LT_TAGVAR(ld_shlibs, $1)=no
  6243. ;;
  6244. *)
  6245. # FIXME: insert proper C++ library support
  6246. _LT_TAGVAR(ld_shlibs, $1)=no
  6247. ;;
  6248. esac
  6249. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6250. test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6251. _LT_TAGVAR(GCC, $1)="$GXX"
  6252. _LT_TAGVAR(LD, $1)="$LD"
  6253. ## CAVEAT EMPTOR:
  6254. ## There is no encapsulation within the following macros, do not change
  6255. ## the running order or otherwise move them around unless you know exactly
  6256. ## what you are doing...
  6257. _LT_SYS_HIDDEN_LIBDEPS($1)
  6258. _LT_COMPILER_PIC($1)
  6259. _LT_COMPILER_C_O($1)
  6260. _LT_COMPILER_FILE_LOCKS($1)
  6261. _LT_LINKER_SHLIBS($1)
  6262. _LT_SYS_DYNAMIC_LINKER($1)
  6263. _LT_LINKER_HARDCODE_LIBPATH($1)
  6264. _LT_CONFIG($1)
  6265. fi # test -n "$compiler"
  6266. CC=$lt_save_CC
  6267. CFLAGS=$lt_save_CFLAGS
  6268. LDCXX=$LD
  6269. LD=$lt_save_LD
  6270. GCC=$lt_save_GCC
  6271. with_gnu_ld=$lt_save_with_gnu_ld
  6272. lt_cv_path_LDCXX=$lt_cv_path_LD
  6273. lt_cv_path_LD=$lt_save_path_LD
  6274. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6275. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6276. fi # test "$_lt_caught_CXX_error" != yes
  6277. AC_LANG_POP
  6278. ])# _LT_LANG_CXX_CONFIG
  6279. # _LT_FUNC_STRIPNAME_CNF
  6280. # ----------------------
  6281. # func_stripname_cnf prefix suffix name
  6282. # strip PREFIX and SUFFIX off of NAME.
  6283. # PREFIX and SUFFIX must not contain globbing or regex special
  6284. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6285. # dot (in which case that matches only a dot).
  6286. #
  6287. # This function is identical to the (non-XSI) version of func_stripname,
  6288. # except this one can be used by m4 code that may be executed by configure,
  6289. # rather than the libtool script.
  6290. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6291. AC_REQUIRE([_LT_DECL_SED])
  6292. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6293. func_stripname_cnf ()
  6294. {
  6295. case ${2} in
  6296. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  6297. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  6298. esac
  6299. } # func_stripname_cnf
  6300. ])# _LT_FUNC_STRIPNAME_CNF
  6301. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6302. # ---------------------------------
  6303. # Figure out "hidden" library dependencies from verbose
  6304. # compiler output when linking a shared library.
  6305. # Parse the compiler output and extract the necessary
  6306. # objects, libraries and library flags.
  6307. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6308. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6309. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6310. # Dependencies to place before and after the object being linked:
  6311. _LT_TAGVAR(predep_objects, $1)=
  6312. _LT_TAGVAR(postdep_objects, $1)=
  6313. _LT_TAGVAR(predeps, $1)=
  6314. _LT_TAGVAR(postdeps, $1)=
  6315. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6316. dnl we can't use the lt_simple_compile_test_code here,
  6317. dnl because it contains code intended for an executable,
  6318. dnl not a library. It's possible we should let each
  6319. dnl tag define a new lt_????_link_test_code variable,
  6320. dnl but it's only used here...
  6321. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6322. int a;
  6323. void foo (void) { a = 0; }
  6324. _LT_EOF
  6325. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6326. class Foo
  6327. {
  6328. public:
  6329. Foo (void) { a = 0; }
  6330. private:
  6331. int a;
  6332. };
  6333. _LT_EOF
  6334. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6335. subroutine foo
  6336. implicit none
  6337. integer*4 a
  6338. a=0
  6339. return
  6340. end
  6341. _LT_EOF
  6342. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6343. subroutine foo
  6344. implicit none
  6345. integer a
  6346. a=0
  6347. return
  6348. end
  6349. _LT_EOF
  6350. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6351. public class foo {
  6352. private int a;
  6353. public void bar (void) {
  6354. a = 0;
  6355. }
  6356. };
  6357. _LT_EOF
  6358. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6359. package foo
  6360. func foo() {
  6361. }
  6362. _LT_EOF
  6363. ])
  6364. _lt_libdeps_save_CFLAGS=$CFLAGS
  6365. case "$CC $CFLAGS " in #(
  6366. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6367. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6368. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6369. esac
  6370. dnl Parse the compiler output and extract the necessary
  6371. dnl objects, libraries and library flags.
  6372. if AC_TRY_EVAL(ac_compile); then
  6373. # Parse the compiler output and extract the necessary
  6374. # objects, libraries and library flags.
  6375. # Sentinel used to keep track of whether or not we are before
  6376. # the conftest object file.
  6377. pre_test_object_deps_done=no
  6378. for p in `eval "$output_verbose_link_cmd"`; do
  6379. case ${prev}${p} in
  6380. -L* | -R* | -l*)
  6381. # Some compilers place space between "-{L,R}" and the path.
  6382. # Remove the space.
  6383. if test $p = "-L" ||
  6384. test $p = "-R"; then
  6385. prev=$p
  6386. continue
  6387. fi
  6388. # Expand the sysroot to ease extracting the directories later.
  6389. if test -z "$prev"; then
  6390. case $p in
  6391. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6392. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6393. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6394. esac
  6395. fi
  6396. case $p in
  6397. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6398. esac
  6399. if test "$pre_test_object_deps_done" = no; then
  6400. case ${prev} in
  6401. -L | -R)
  6402. # Internal compiler library paths should come after those
  6403. # provided the user. The postdeps already come after the
  6404. # user supplied libs so there is no need to process them.
  6405. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6406. _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6407. else
  6408. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6409. fi
  6410. ;;
  6411. # The "-l" case would never come before the object being
  6412. # linked, so don't bother handling this case.
  6413. esac
  6414. else
  6415. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6416. _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  6417. else
  6418. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  6419. fi
  6420. fi
  6421. prev=
  6422. ;;
  6423. *.lto.$objext) ;; # Ignore GCC LTO objects
  6424. *.$objext)
  6425. # This assumes that the test object file only shows up
  6426. # once in the compiler output.
  6427. if test "$p" = "conftest.$objext"; then
  6428. pre_test_object_deps_done=yes
  6429. continue
  6430. fi
  6431. if test "$pre_test_object_deps_done" = no; then
  6432. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6433. _LT_TAGVAR(predep_objects, $1)="$p"
  6434. else
  6435. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6436. fi
  6437. else
  6438. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6439. _LT_TAGVAR(postdep_objects, $1)="$p"
  6440. else
  6441. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6442. fi
  6443. fi
  6444. ;;
  6445. *) ;; # Ignore the rest.
  6446. esac
  6447. done
  6448. # Clean up.
  6449. rm -f a.out a.exe
  6450. else
  6451. echo "libtool.m4: error: problem compiling $1 test program"
  6452. fi
  6453. $RM -f confest.$objext
  6454. CFLAGS=$_lt_libdeps_save_CFLAGS
  6455. # PORTME: override above test on systems where it is broken
  6456. m4_if([$1], [CXX],
  6457. [case $host_os in
  6458. interix[[3-9]]*)
  6459. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6460. # hack all around it, let's just trust "g++" to DTRT.
  6461. _LT_TAGVAR(predep_objects,$1)=
  6462. _LT_TAGVAR(postdep_objects,$1)=
  6463. _LT_TAGVAR(postdeps,$1)=
  6464. ;;
  6465. linux*)
  6466. case `$CC -V 2>&1 | sed 5q` in
  6467. *Sun\ C*)
  6468. # Sun C++ 5.9
  6469. # The more standards-conforming stlport4 library is
  6470. # incompatible with the Cstd library. Avoid specifying
  6471. # it if it's in CXXFLAGS. Ignore libCrun as
  6472. # -library=stlport4 depends on it.
  6473. case " $CXX $CXXFLAGS " in
  6474. *" -library=stlport4 "*)
  6475. solaris_use_stlport4=yes
  6476. ;;
  6477. esac
  6478. if test "$solaris_use_stlport4" != yes; then
  6479. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6480. fi
  6481. ;;
  6482. esac
  6483. ;;
  6484. solaris*)
  6485. case $cc_basename in
  6486. CC* | sunCC*)
  6487. # The more standards-conforming stlport4 library is
  6488. # incompatible with the Cstd library. Avoid specifying
  6489. # it if it's in CXXFLAGS. Ignore libCrun as
  6490. # -library=stlport4 depends on it.
  6491. case " $CXX $CXXFLAGS " in
  6492. *" -library=stlport4 "*)
  6493. solaris_use_stlport4=yes
  6494. ;;
  6495. esac
  6496. # Adding this requires a known-good setup of shared libraries for
  6497. # Sun compiler versions before 5.6, else PIC objects from an old
  6498. # archive will be linked into the output, leading to subtle bugs.
  6499. if test "$solaris_use_stlport4" != yes; then
  6500. _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  6501. fi
  6502. ;;
  6503. esac
  6504. ;;
  6505. esac
  6506. ])
  6507. case " $_LT_TAGVAR(postdeps, $1) " in
  6508. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6509. esac
  6510. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6511. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6512. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  6513. fi
  6514. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6515. [The directories searched by this compiler when creating a shared library])
  6516. _LT_TAGDECL([], [predep_objects], [1],
  6517. [Dependencies to place before and after the objects being linked to
  6518. create a shared library])
  6519. _LT_TAGDECL([], [postdep_objects], [1])
  6520. _LT_TAGDECL([], [predeps], [1])
  6521. _LT_TAGDECL([], [postdeps], [1])
  6522. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  6523. [The library search path used internally by the compiler when linking
  6524. a shared library])
  6525. ])# _LT_SYS_HIDDEN_LIBDEPS
  6526. # _LT_LANG_F77_CONFIG([TAG])
  6527. # --------------------------
  6528. # Ensure that the configuration variables for a Fortran 77 compiler are
  6529. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6530. # to write the compiler configuration to `libtool'.
  6531. m4_defun([_LT_LANG_F77_CONFIG],
  6532. [AC_LANG_PUSH(Fortran 77)
  6533. if test -z "$F77" || test "X$F77" = "Xno"; then
  6534. _lt_disable_F77=yes
  6535. fi
  6536. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6537. _LT_TAGVAR(allow_undefined_flag, $1)=
  6538. _LT_TAGVAR(always_export_symbols, $1)=no
  6539. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6540. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6541. _LT_TAGVAR(hardcode_direct, $1)=no
  6542. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6543. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6544. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6545. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6546. _LT_TAGVAR(hardcode_automatic, $1)=no
  6547. _LT_TAGVAR(inherit_rpath, $1)=no
  6548. _LT_TAGVAR(module_cmds, $1)=
  6549. _LT_TAGVAR(module_expsym_cmds, $1)=
  6550. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6551. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6552. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6553. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6554. _LT_TAGVAR(no_undefined_flag, $1)=
  6555. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6556. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6557. # Source file extension for f77 test sources.
  6558. ac_ext=f
  6559. # Object file extension for compiled f77 test sources.
  6560. objext=o
  6561. _LT_TAGVAR(objext, $1)=$objext
  6562. # No sense in running all these tests if we already determined that
  6563. # the F77 compiler isn't working. Some variables (like enable_shared)
  6564. # are currently assumed to apply to all compilers on this platform,
  6565. # and will be corrupted by setting them based on a non-working compiler.
  6566. if test "$_lt_disable_F77" != yes; then
  6567. # Code to be used in simple compile tests
  6568. lt_simple_compile_test_code="\
  6569. subroutine t
  6570. return
  6571. end
  6572. "
  6573. # Code to be used in simple link tests
  6574. lt_simple_link_test_code="\
  6575. program t
  6576. end
  6577. "
  6578. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6579. _LT_TAG_COMPILER
  6580. # save warnings/boilerplate of simple test code
  6581. _LT_COMPILER_BOILERPLATE
  6582. _LT_LINKER_BOILERPLATE
  6583. # Allow CC to be a program name with arguments.
  6584. lt_save_CC="$CC"
  6585. lt_save_GCC=$GCC
  6586. lt_save_CFLAGS=$CFLAGS
  6587. CC=${F77-"f77"}
  6588. CFLAGS=$FFLAGS
  6589. compiler=$CC
  6590. _LT_TAGVAR(compiler, $1)=$CC
  6591. _LT_CC_BASENAME([$compiler])
  6592. GCC=$G77
  6593. if test -n "$compiler"; then
  6594. AC_MSG_CHECKING([if libtool supports shared libraries])
  6595. AC_MSG_RESULT([$can_build_shared])
  6596. AC_MSG_CHECKING([whether to build shared libraries])
  6597. test "$can_build_shared" = "no" && enable_shared=no
  6598. # On AIX, shared libraries and static libraries use the same namespace, and
  6599. # are all built from PIC.
  6600. case $host_os in
  6601. aix3*)
  6602. test "$enable_shared" = yes && enable_static=no
  6603. if test -n "$RANLIB"; then
  6604. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6605. postinstall_cmds='$RANLIB $lib'
  6606. fi
  6607. ;;
  6608. aix[[4-9]]*)
  6609. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6610. test "$enable_shared" = yes && enable_static=no
  6611. fi
  6612. ;;
  6613. esac
  6614. AC_MSG_RESULT([$enable_shared])
  6615. AC_MSG_CHECKING([whether to build static libraries])
  6616. # Make sure either enable_shared or enable_static is yes.
  6617. test "$enable_shared" = yes || enable_static=yes
  6618. AC_MSG_RESULT([$enable_static])
  6619. _LT_TAGVAR(GCC, $1)="$G77"
  6620. _LT_TAGVAR(LD, $1)="$LD"
  6621. ## CAVEAT EMPTOR:
  6622. ## There is no encapsulation within the following macros, do not change
  6623. ## the running order or otherwise move them around unless you know exactly
  6624. ## what you are doing...
  6625. _LT_COMPILER_PIC($1)
  6626. _LT_COMPILER_C_O($1)
  6627. _LT_COMPILER_FILE_LOCKS($1)
  6628. _LT_LINKER_SHLIBS($1)
  6629. _LT_SYS_DYNAMIC_LINKER($1)
  6630. _LT_LINKER_HARDCODE_LIBPATH($1)
  6631. _LT_CONFIG($1)
  6632. fi # test -n "$compiler"
  6633. GCC=$lt_save_GCC
  6634. CC="$lt_save_CC"
  6635. CFLAGS="$lt_save_CFLAGS"
  6636. fi # test "$_lt_disable_F77" != yes
  6637. AC_LANG_POP
  6638. ])# _LT_LANG_F77_CONFIG
  6639. # _LT_LANG_FC_CONFIG([TAG])
  6640. # -------------------------
  6641. # Ensure that the configuration variables for a Fortran compiler are
  6642. # suitably defined. These variables are subsequently used by _LT_CONFIG
  6643. # to write the compiler configuration to `libtool'.
  6644. m4_defun([_LT_LANG_FC_CONFIG],
  6645. [AC_LANG_PUSH(Fortran)
  6646. if test -z "$FC" || test "X$FC" = "Xno"; then
  6647. _lt_disable_FC=yes
  6648. fi
  6649. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6650. _LT_TAGVAR(allow_undefined_flag, $1)=
  6651. _LT_TAGVAR(always_export_symbols, $1)=no
  6652. _LT_TAGVAR(archive_expsym_cmds, $1)=
  6653. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6654. _LT_TAGVAR(hardcode_direct, $1)=no
  6655. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6656. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6657. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6658. _LT_TAGVAR(hardcode_minus_L, $1)=no
  6659. _LT_TAGVAR(hardcode_automatic, $1)=no
  6660. _LT_TAGVAR(inherit_rpath, $1)=no
  6661. _LT_TAGVAR(module_cmds, $1)=
  6662. _LT_TAGVAR(module_expsym_cmds, $1)=
  6663. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6664. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6665. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6666. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6667. _LT_TAGVAR(no_undefined_flag, $1)=
  6668. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6669. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6670. # Source file extension for fc test sources.
  6671. ac_ext=${ac_fc_srcext-f}
  6672. # Object file extension for compiled fc test sources.
  6673. objext=o
  6674. _LT_TAGVAR(objext, $1)=$objext
  6675. # No sense in running all these tests if we already determined that
  6676. # the FC compiler isn't working. Some variables (like enable_shared)
  6677. # are currently assumed to apply to all compilers on this platform,
  6678. # and will be corrupted by setting them based on a non-working compiler.
  6679. if test "$_lt_disable_FC" != yes; then
  6680. # Code to be used in simple compile tests
  6681. lt_simple_compile_test_code="\
  6682. subroutine t
  6683. return
  6684. end
  6685. "
  6686. # Code to be used in simple link tests
  6687. lt_simple_link_test_code="\
  6688. program t
  6689. end
  6690. "
  6691. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6692. _LT_TAG_COMPILER
  6693. # save warnings/boilerplate of simple test code
  6694. _LT_COMPILER_BOILERPLATE
  6695. _LT_LINKER_BOILERPLATE
  6696. # Allow CC to be a program name with arguments.
  6697. lt_save_CC="$CC"
  6698. lt_save_GCC=$GCC
  6699. lt_save_CFLAGS=$CFLAGS
  6700. CC=${FC-"f95"}
  6701. CFLAGS=$FCFLAGS
  6702. compiler=$CC
  6703. GCC=$ac_cv_fc_compiler_gnu
  6704. _LT_TAGVAR(compiler, $1)=$CC
  6705. _LT_CC_BASENAME([$compiler])
  6706. if test -n "$compiler"; then
  6707. AC_MSG_CHECKING([if libtool supports shared libraries])
  6708. AC_MSG_RESULT([$can_build_shared])
  6709. AC_MSG_CHECKING([whether to build shared libraries])
  6710. test "$can_build_shared" = "no" && enable_shared=no
  6711. # On AIX, shared libraries and static libraries use the same namespace, and
  6712. # are all built from PIC.
  6713. case $host_os in
  6714. aix3*)
  6715. test "$enable_shared" = yes && enable_static=no
  6716. if test -n "$RANLIB"; then
  6717. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6718. postinstall_cmds='$RANLIB $lib'
  6719. fi
  6720. ;;
  6721. aix[[4-9]]*)
  6722. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6723. test "$enable_shared" = yes && enable_static=no
  6724. fi
  6725. ;;
  6726. esac
  6727. AC_MSG_RESULT([$enable_shared])
  6728. AC_MSG_CHECKING([whether to build static libraries])
  6729. # Make sure either enable_shared or enable_static is yes.
  6730. test "$enable_shared" = yes || enable_static=yes
  6731. AC_MSG_RESULT([$enable_static])
  6732. _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  6733. _LT_TAGVAR(LD, $1)="$LD"
  6734. ## CAVEAT EMPTOR:
  6735. ## There is no encapsulation within the following macros, do not change
  6736. ## the running order or otherwise move them around unless you know exactly
  6737. ## what you are doing...
  6738. _LT_SYS_HIDDEN_LIBDEPS($1)
  6739. _LT_COMPILER_PIC($1)
  6740. _LT_COMPILER_C_O($1)
  6741. _LT_COMPILER_FILE_LOCKS($1)
  6742. _LT_LINKER_SHLIBS($1)
  6743. _LT_SYS_DYNAMIC_LINKER($1)
  6744. _LT_LINKER_HARDCODE_LIBPATH($1)
  6745. _LT_CONFIG($1)
  6746. fi # test -n "$compiler"
  6747. GCC=$lt_save_GCC
  6748. CC=$lt_save_CC
  6749. CFLAGS=$lt_save_CFLAGS
  6750. fi # test "$_lt_disable_FC" != yes
  6751. AC_LANG_POP
  6752. ])# _LT_LANG_FC_CONFIG
  6753. # _LT_LANG_GCJ_CONFIG([TAG])
  6754. # --------------------------
  6755. # Ensure that the configuration variables for the GNU Java Compiler compiler
  6756. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6757. # to write the compiler configuration to `libtool'.
  6758. m4_defun([_LT_LANG_GCJ_CONFIG],
  6759. [AC_REQUIRE([LT_PROG_GCJ])dnl
  6760. AC_LANG_SAVE
  6761. # Source file extension for Java test sources.
  6762. ac_ext=java
  6763. # Object file extension for compiled Java test sources.
  6764. objext=o
  6765. _LT_TAGVAR(objext, $1)=$objext
  6766. # Code to be used in simple compile tests
  6767. lt_simple_compile_test_code="class foo {}"
  6768. # Code to be used in simple link tests
  6769. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  6770. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6771. _LT_TAG_COMPILER
  6772. # save warnings/boilerplate of simple test code
  6773. _LT_COMPILER_BOILERPLATE
  6774. _LT_LINKER_BOILERPLATE
  6775. # Allow CC to be a program name with arguments.
  6776. lt_save_CC=$CC
  6777. lt_save_CFLAGS=$CFLAGS
  6778. lt_save_GCC=$GCC
  6779. GCC=yes
  6780. CC=${GCJ-"gcj"}
  6781. CFLAGS=$GCJFLAGS
  6782. compiler=$CC
  6783. _LT_TAGVAR(compiler, $1)=$CC
  6784. _LT_TAGVAR(LD, $1)="$LD"
  6785. _LT_CC_BASENAME([$compiler])
  6786. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  6787. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6788. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6789. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6790. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6791. if test -n "$compiler"; then
  6792. _LT_COMPILER_NO_RTTI($1)
  6793. _LT_COMPILER_PIC($1)
  6794. _LT_COMPILER_C_O($1)
  6795. _LT_COMPILER_FILE_LOCKS($1)
  6796. _LT_LINKER_SHLIBS($1)
  6797. _LT_LINKER_HARDCODE_LIBPATH($1)
  6798. _LT_CONFIG($1)
  6799. fi
  6800. AC_LANG_RESTORE
  6801. GCC=$lt_save_GCC
  6802. CC=$lt_save_CC
  6803. CFLAGS=$lt_save_CFLAGS
  6804. ])# _LT_LANG_GCJ_CONFIG
  6805. # _LT_LANG_GO_CONFIG([TAG])
  6806. # --------------------------
  6807. # Ensure that the configuration variables for the GNU Go compiler
  6808. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6809. # to write the compiler configuration to `libtool'.
  6810. m4_defun([_LT_LANG_GO_CONFIG],
  6811. [AC_REQUIRE([LT_PROG_GO])dnl
  6812. AC_LANG_SAVE
  6813. # Source file extension for Go test sources.
  6814. ac_ext=go
  6815. # Object file extension for compiled Go test sources.
  6816. objext=o
  6817. _LT_TAGVAR(objext, $1)=$objext
  6818. # Code to be used in simple compile tests
  6819. lt_simple_compile_test_code="package main; func main() { }"
  6820. # Code to be used in simple link tests
  6821. lt_simple_link_test_code='package main; func main() { }'
  6822. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6823. _LT_TAG_COMPILER
  6824. # save warnings/boilerplate of simple test code
  6825. _LT_COMPILER_BOILERPLATE
  6826. _LT_LINKER_BOILERPLATE
  6827. # Allow CC to be a program name with arguments.
  6828. lt_save_CC=$CC
  6829. lt_save_CFLAGS=$CFLAGS
  6830. lt_save_GCC=$GCC
  6831. GCC=yes
  6832. CC=${GOC-"gccgo"}
  6833. CFLAGS=$GOFLAGS
  6834. compiler=$CC
  6835. _LT_TAGVAR(compiler, $1)=$CC
  6836. _LT_TAGVAR(LD, $1)="$LD"
  6837. _LT_CC_BASENAME([$compiler])
  6838. # Go did not exist at the time GCC didn't implicitly link libc in.
  6839. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6840. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6841. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  6842. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  6843. if test -n "$compiler"; then
  6844. _LT_COMPILER_NO_RTTI($1)
  6845. _LT_COMPILER_PIC($1)
  6846. _LT_COMPILER_C_O($1)
  6847. _LT_COMPILER_FILE_LOCKS($1)
  6848. _LT_LINKER_SHLIBS($1)
  6849. _LT_LINKER_HARDCODE_LIBPATH($1)
  6850. _LT_CONFIG($1)
  6851. fi
  6852. AC_LANG_RESTORE
  6853. GCC=$lt_save_GCC
  6854. CC=$lt_save_CC
  6855. CFLAGS=$lt_save_CFLAGS
  6856. ])# _LT_LANG_GO_CONFIG
  6857. # _LT_LANG_RC_CONFIG([TAG])
  6858. # -------------------------
  6859. # Ensure that the configuration variables for the Windows resource compiler
  6860. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  6861. # to write the compiler configuration to `libtool'.
  6862. m4_defun([_LT_LANG_RC_CONFIG],
  6863. [AC_REQUIRE([LT_PROG_RC])dnl
  6864. AC_LANG_SAVE
  6865. # Source file extension for RC test sources.
  6866. ac_ext=rc
  6867. # Object file extension for compiled RC test sources.
  6868. objext=o
  6869. _LT_TAGVAR(objext, $1)=$objext
  6870. # Code to be used in simple compile tests
  6871. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  6872. # Code to be used in simple link tests
  6873. lt_simple_link_test_code="$lt_simple_compile_test_code"
  6874. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6875. _LT_TAG_COMPILER
  6876. # save warnings/boilerplate of simple test code
  6877. _LT_COMPILER_BOILERPLATE
  6878. _LT_LINKER_BOILERPLATE
  6879. # Allow CC to be a program name with arguments.
  6880. lt_save_CC="$CC"
  6881. lt_save_CFLAGS=$CFLAGS
  6882. lt_save_GCC=$GCC
  6883. GCC=
  6884. CC=${RC-"windres"}
  6885. CFLAGS=
  6886. compiler=$CC
  6887. _LT_TAGVAR(compiler, $1)=$CC
  6888. _LT_CC_BASENAME([$compiler])
  6889. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6890. if test -n "$compiler"; then
  6891. :
  6892. _LT_CONFIG($1)
  6893. fi
  6894. GCC=$lt_save_GCC
  6895. AC_LANG_RESTORE
  6896. CC=$lt_save_CC
  6897. CFLAGS=$lt_save_CFLAGS
  6898. ])# _LT_LANG_RC_CONFIG
  6899. # LT_PROG_GCJ
  6900. # -----------
  6901. AC_DEFUN([LT_PROG_GCJ],
  6902. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  6903. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  6904. [AC_CHECK_TOOL(GCJ, gcj,)
  6905. test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  6906. AC_SUBST(GCJFLAGS)])])[]dnl
  6907. ])
  6908. # Old name:
  6909. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  6910. dnl aclocal-1.4 backwards compatibility:
  6911. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  6912. # LT_PROG_GO
  6913. # ----------
  6914. AC_DEFUN([LT_PROG_GO],
  6915. [AC_CHECK_TOOL(GOC, gccgo,)
  6916. ])
  6917. # LT_PROG_RC
  6918. # ----------
  6919. AC_DEFUN([LT_PROG_RC],
  6920. [AC_CHECK_TOOL(RC, windres,)
  6921. ])
  6922. # Old name:
  6923. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  6924. dnl aclocal-1.4 backwards compatibility:
  6925. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  6926. # _LT_DECL_EGREP
  6927. # --------------
  6928. # If we don't have a new enough Autoconf to choose the best grep
  6929. # available, choose the one first in the user's PATH.
  6930. m4_defun([_LT_DECL_EGREP],
  6931. [AC_REQUIRE([AC_PROG_EGREP])dnl
  6932. AC_REQUIRE([AC_PROG_FGREP])dnl
  6933. test -z "$GREP" && GREP=grep
  6934. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  6935. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  6936. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  6937. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  6938. AC_SUBST([GREP])
  6939. ])
  6940. # _LT_DECL_OBJDUMP
  6941. # --------------
  6942. # If we don't have a new enough Autoconf to choose the best objdump
  6943. # available, choose the one first in the user's PATH.
  6944. m4_defun([_LT_DECL_OBJDUMP],
  6945. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  6946. test -z "$OBJDUMP" && OBJDUMP=objdump
  6947. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  6948. AC_SUBST([OBJDUMP])
  6949. ])
  6950. # _LT_DECL_DLLTOOL
  6951. # ----------------
  6952. # Ensure DLLTOOL variable is set.
  6953. m4_defun([_LT_DECL_DLLTOOL],
  6954. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  6955. test -z "$DLLTOOL" && DLLTOOL=dlltool
  6956. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  6957. AC_SUBST([DLLTOOL])
  6958. ])
  6959. # _LT_DECL_SED
  6960. # ------------
  6961. # Check for a fully-functional sed program, that truncates
  6962. # as few characters as possible. Prefer GNU sed if found.
  6963. m4_defun([_LT_DECL_SED],
  6964. [AC_PROG_SED
  6965. test -z "$SED" && SED=sed
  6966. Xsed="$SED -e 1s/^X//"
  6967. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  6968. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  6969. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  6970. ])# _LT_DECL_SED
  6971. m4_ifndef([AC_PROG_SED], [
  6972. # NOTE: This macro has been submitted for inclusion into #
  6973. # GNU Autoconf as AC_PROG_SED. When it is available in #
  6974. # a released version of Autoconf we should remove this #
  6975. # macro and use it instead. #
  6976. m4_defun([AC_PROG_SED],
  6977. [AC_MSG_CHECKING([for a sed that does not truncate output])
  6978. AC_CACHE_VAL(lt_cv_path_SED,
  6979. [# Loop through the user's path and test for sed and gsed.
  6980. # Then use that list of sed's as ones to test for truncation.
  6981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6982. for as_dir in $PATH
  6983. do
  6984. IFS=$as_save_IFS
  6985. test -z "$as_dir" && as_dir=.
  6986. for lt_ac_prog in sed gsed; do
  6987. for ac_exec_ext in '' $ac_executable_extensions; do
  6988. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  6989. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  6990. fi
  6991. done
  6992. done
  6993. done
  6994. IFS=$as_save_IFS
  6995. lt_ac_max=0
  6996. lt_ac_count=0
  6997. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  6998. # along with /bin/sed that truncates output.
  6999. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7000. test ! -f $lt_ac_sed && continue
  7001. cat /dev/null > conftest.in
  7002. lt_ac_count=0
  7003. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7004. # Check for GNU sed and select it if it is found.
  7005. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7006. lt_cv_path_SED=$lt_ac_sed
  7007. break
  7008. fi
  7009. while true; do
  7010. cat conftest.in conftest.in >conftest.tmp
  7011. mv conftest.tmp conftest.in
  7012. cp conftest.in conftest.nl
  7013. echo >>conftest.nl
  7014. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7015. cmp -s conftest.out conftest.nl || break
  7016. # 10000 chars as input seems more than enough
  7017. test $lt_ac_count -gt 10 && break
  7018. lt_ac_count=`expr $lt_ac_count + 1`
  7019. if test $lt_ac_count -gt $lt_ac_max; then
  7020. lt_ac_max=$lt_ac_count
  7021. lt_cv_path_SED=$lt_ac_sed
  7022. fi
  7023. done
  7024. done
  7025. ])
  7026. SED=$lt_cv_path_SED
  7027. AC_SUBST([SED])
  7028. AC_MSG_RESULT([$SED])
  7029. ])#AC_PROG_SED
  7030. ])#m4_ifndef
  7031. # Old name:
  7032. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7033. dnl aclocal-1.4 backwards compatibility:
  7034. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7035. # _LT_CHECK_SHELL_FEATURES
  7036. # ------------------------
  7037. # Find out whether the shell is Bourne or XSI compatible,
  7038. # or has some other useful features.
  7039. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7040. [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  7041. # Try some XSI features
  7042. xsi_shell=no
  7043. ( _lt_dummy="a/b/c"
  7044. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  7045. = c,a/b,b/c, \
  7046. && eval 'test $(( 1 + 1 )) -eq 2 \
  7047. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  7048. && xsi_shell=yes
  7049. AC_MSG_RESULT([$xsi_shell])
  7050. _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  7051. AC_MSG_CHECKING([whether the shell understands "+="])
  7052. lt_shell_append=no
  7053. ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  7054. >/dev/null 2>&1 \
  7055. && lt_shell_append=yes
  7056. AC_MSG_RESULT([$lt_shell_append])
  7057. _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  7058. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7059. lt_unset=unset
  7060. else
  7061. lt_unset=false
  7062. fi
  7063. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7064. # test EBCDIC or ASCII
  7065. case `echo X|tr X '\101'` in
  7066. A) # ASCII based system
  7067. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7068. lt_SP2NL='tr \040 \012'
  7069. lt_NL2SP='tr \015\012 \040\040'
  7070. ;;
  7071. *) # EBCDIC based system
  7072. lt_SP2NL='tr \100 \n'
  7073. lt_NL2SP='tr \r\n \100\100'
  7074. ;;
  7075. esac
  7076. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7077. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7078. ])# _LT_CHECK_SHELL_FEATURES
  7079. # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY)
  7080. # ------------------------------------------------------
  7081. # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and
  7082. # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY.
  7083. m4_defun([_LT_PROG_FUNCTION_REPLACE],
  7084. [dnl {
  7085. sed -e '/^$1 ()$/,/^} # $1 /c\
  7086. $1 ()\
  7087. {\
  7088. m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1])
  7089. } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \
  7090. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7091. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7092. test 0 -eq $? || _lt_function_replace_fail=:
  7093. ])
  7094. # _LT_PROG_REPLACE_SHELLFNS
  7095. # -------------------------
  7096. # Replace existing portable implementations of several shell functions with
  7097. # equivalent extended shell implementations where those features are available..
  7098. m4_defun([_LT_PROG_REPLACE_SHELLFNS],
  7099. [if test x"$xsi_shell" = xyes; then
  7100. _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl
  7101. case ${1} in
  7102. */*) func_dirname_result="${1%/*}${2}" ;;
  7103. * ) func_dirname_result="${3}" ;;
  7104. esac])
  7105. _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl
  7106. func_basename_result="${1##*/}"])
  7107. _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl
  7108. case ${1} in
  7109. */*) func_dirname_result="${1%/*}${2}" ;;
  7110. * ) func_dirname_result="${3}" ;;
  7111. esac
  7112. func_basename_result="${1##*/}"])
  7113. _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl
  7114. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  7115. # positional parameters, so assign one to ordinary parameter first.
  7116. func_stripname_result=${3}
  7117. func_stripname_result=${func_stripname_result#"${1}"}
  7118. func_stripname_result=${func_stripname_result%"${2}"}])
  7119. _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl
  7120. func_split_long_opt_name=${1%%=*}
  7121. func_split_long_opt_arg=${1#*=}])
  7122. _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl
  7123. func_split_short_opt_arg=${1#??}
  7124. func_split_short_opt_name=${1%"$func_split_short_opt_arg"}])
  7125. _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl
  7126. case ${1} in
  7127. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  7128. *) func_lo2o_result=${1} ;;
  7129. esac])
  7130. _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo])
  7131. _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))])
  7132. _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}])
  7133. fi
  7134. if test x"$lt_shell_append" = xyes; then
  7135. _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"])
  7136. _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl
  7137. func_quote_for_eval "${2}"
  7138. dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \
  7139. eval "${1}+=\\\\ \\$func_quote_for_eval_result"])
  7140. # Save a `func_append' function call where possible by direct use of '+='
  7141. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  7142. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7143. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7144. test 0 -eq $? || _lt_function_replace_fail=:
  7145. else
  7146. # Save a `func_append' function call even when '+=' is not available
  7147. sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  7148. && mv -f "$cfgfile.tmp" "$cfgfile" \
  7149. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  7150. test 0 -eq $? || _lt_function_replace_fail=:
  7151. fi
  7152. if test x"$_lt_function_replace_fail" = x":"; then
  7153. AC_MSG_WARN([Unable to substitute extended shell functions in $ofile])
  7154. fi
  7155. ])
  7156. # _LT_PATH_CONVERSION_FUNCTIONS
  7157. # -----------------------------
  7158. # Determine which file name conversion functions should be used by
  7159. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7160. # for certain cross-compile configurations and native mingw.
  7161. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7162. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7163. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7164. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7165. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7166. [case $host in
  7167. *-*-mingw* )
  7168. case $build in
  7169. *-*-mingw* ) # actually msys
  7170. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7171. ;;
  7172. *-*-cygwin* )
  7173. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7174. ;;
  7175. * ) # otherwise, assume *nix
  7176. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7177. ;;
  7178. esac
  7179. ;;
  7180. *-*-cygwin* )
  7181. case $build in
  7182. *-*-mingw* ) # actually msys
  7183. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7184. ;;
  7185. *-*-cygwin* )
  7186. lt_cv_to_host_file_cmd=func_convert_file_noop
  7187. ;;
  7188. * ) # otherwise, assume *nix
  7189. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7190. ;;
  7191. esac
  7192. ;;
  7193. * ) # unhandled hosts (and "normal" native builds)
  7194. lt_cv_to_host_file_cmd=func_convert_file_noop
  7195. ;;
  7196. esac
  7197. ])
  7198. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7199. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7200. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7201. [0], [convert $build file names to $host format])dnl
  7202. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7203. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7204. [#assume ordinary cross tools, or native build.
  7205. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7206. case $host in
  7207. *-*-mingw* )
  7208. case $build in
  7209. *-*-mingw* ) # actually msys
  7210. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7211. ;;
  7212. esac
  7213. ;;
  7214. esac
  7215. ])
  7216. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7217. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7218. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7219. [0], [convert $build files to toolchain format])dnl
  7220. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7221. # Helper functions for option handling. -*- Autoconf -*-
  7222. #
  7223. # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation,
  7224. # Inc.
  7225. # Written by Gary V. Vaughan, 2004
  7226. #
  7227. # This file is free software; the Free Software Foundation gives
  7228. # unlimited permission to copy and/or distribute it, with or without
  7229. # modifications, as long as this notice is preserved.
  7230. # serial 7 ltoptions.m4
  7231. # This is to help aclocal find these macros, as it can't see m4_define.
  7232. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7233. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7234. # ------------------------------------------
  7235. m4_define([_LT_MANGLE_OPTION],
  7236. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7237. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7238. # ---------------------------------------
  7239. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7240. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7241. # saved as a flag.
  7242. m4_define([_LT_SET_OPTION],
  7243. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7244. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7245. _LT_MANGLE_DEFUN([$1], [$2]),
  7246. [m4_warning([Unknown $1 option `$2'])])[]dnl
  7247. ])
  7248. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7249. # ------------------------------------------------------------
  7250. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7251. m4_define([_LT_IF_OPTION],
  7252. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7253. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7254. # -------------------------------------------------------
  7255. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7256. # are set.
  7257. m4_define([_LT_UNLESS_OPTIONS],
  7258. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7259. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7260. [m4_define([$0_found])])])[]dnl
  7261. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7262. ])[]dnl
  7263. ])
  7264. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7265. # ----------------------------------------
  7266. # OPTION-LIST is a space-separated list of Libtool options associated
  7267. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7268. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7269. # the unknown option and exit.
  7270. m4_defun([_LT_SET_OPTIONS],
  7271. [# Set options
  7272. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7273. [_LT_SET_OPTION([$1], _LT_Option)])
  7274. m4_if([$1],[LT_INIT],[
  7275. dnl
  7276. dnl Simply set some default values (i.e off) if boolean options were not
  7277. dnl specified:
  7278. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7279. ])
  7280. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7281. ])
  7282. dnl
  7283. dnl If no reference was made to various pairs of opposing options, then
  7284. dnl we run the default mode handler for the pair. For example, if neither
  7285. dnl `shared' nor `disable-shared' was passed, we enable building of shared
  7286. dnl archives by default:
  7287. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7288. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7289. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7290. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7291. [_LT_ENABLE_FAST_INSTALL])
  7292. ])
  7293. ])# _LT_SET_OPTIONS
  7294. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7295. # -----------------------------------------
  7296. m4_define([_LT_MANGLE_DEFUN],
  7297. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7298. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7299. # -----------------------------------------------
  7300. m4_define([LT_OPTION_DEFINE],
  7301. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7302. ])# LT_OPTION_DEFINE
  7303. # dlopen
  7304. # ------
  7305. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7306. ])
  7307. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7308. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7309. AC_DIAGNOSE([obsolete],
  7310. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7311. put the `dlopen' option into LT_INIT's first parameter.])
  7312. ])
  7313. dnl aclocal-1.4 backwards compatibility:
  7314. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7315. # win32-dll
  7316. # ---------
  7317. # Declare package support for building win32 dll's.
  7318. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7319. [enable_win32_dll=yes
  7320. case $host in
  7321. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7322. AC_CHECK_TOOL(AS, as, false)
  7323. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7324. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7325. ;;
  7326. esac
  7327. test -z "$AS" && AS=as
  7328. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7329. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7330. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7331. test -z "$OBJDUMP" && OBJDUMP=objdump
  7332. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7333. ])# win32-dll
  7334. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7335. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7336. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7337. AC_DIAGNOSE([obsolete],
  7338. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7339. put the `win32-dll' option into LT_INIT's first parameter.])
  7340. ])
  7341. dnl aclocal-1.4 backwards compatibility:
  7342. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7343. # _LT_ENABLE_SHARED([DEFAULT])
  7344. # ----------------------------
  7345. # implement the --enable-shared flag, and supports the `shared' and
  7346. # `disable-shared' LT_INIT options.
  7347. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7348. m4_define([_LT_ENABLE_SHARED],
  7349. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7350. AC_ARG_ENABLE([shared],
  7351. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7352. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7353. [p=${PACKAGE-default}
  7354. case $enableval in
  7355. yes) enable_shared=yes ;;
  7356. no) enable_shared=no ;;
  7357. *)
  7358. enable_shared=no
  7359. # Look at the argument we got. We use all the common list separators.
  7360. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7361. for pkg in $enableval; do
  7362. IFS="$lt_save_ifs"
  7363. if test "X$pkg" = "X$p"; then
  7364. enable_shared=yes
  7365. fi
  7366. done
  7367. IFS="$lt_save_ifs"
  7368. ;;
  7369. esac],
  7370. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7371. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7372. [Whether or not to build shared libraries])
  7373. ])# _LT_ENABLE_SHARED
  7374. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7375. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7376. # Old names:
  7377. AC_DEFUN([AC_ENABLE_SHARED],
  7378. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7379. ])
  7380. AC_DEFUN([AC_DISABLE_SHARED],
  7381. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7382. ])
  7383. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7384. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7385. dnl aclocal-1.4 backwards compatibility:
  7386. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7387. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7388. # _LT_ENABLE_STATIC([DEFAULT])
  7389. # ----------------------------
  7390. # implement the --enable-static flag, and support the `static' and
  7391. # `disable-static' LT_INIT options.
  7392. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7393. m4_define([_LT_ENABLE_STATIC],
  7394. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7395. AC_ARG_ENABLE([static],
  7396. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7397. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7398. [p=${PACKAGE-default}
  7399. case $enableval in
  7400. yes) enable_static=yes ;;
  7401. no) enable_static=no ;;
  7402. *)
  7403. enable_static=no
  7404. # Look at the argument we got. We use all the common list separators.
  7405. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7406. for pkg in $enableval; do
  7407. IFS="$lt_save_ifs"
  7408. if test "X$pkg" = "X$p"; then
  7409. enable_static=yes
  7410. fi
  7411. done
  7412. IFS="$lt_save_ifs"
  7413. ;;
  7414. esac],
  7415. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7416. _LT_DECL([build_old_libs], [enable_static], [0],
  7417. [Whether or not to build static libraries])
  7418. ])# _LT_ENABLE_STATIC
  7419. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7420. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7421. # Old names:
  7422. AC_DEFUN([AC_ENABLE_STATIC],
  7423. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7424. ])
  7425. AC_DEFUN([AC_DISABLE_STATIC],
  7426. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7427. ])
  7428. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7429. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7430. dnl aclocal-1.4 backwards compatibility:
  7431. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7432. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7433. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7434. # ----------------------------------
  7435. # implement the --enable-fast-install flag, and support the `fast-install'
  7436. # and `disable-fast-install' LT_INIT options.
  7437. # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  7438. m4_define([_LT_ENABLE_FAST_INSTALL],
  7439. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7440. AC_ARG_ENABLE([fast-install],
  7441. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7442. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7443. [p=${PACKAGE-default}
  7444. case $enableval in
  7445. yes) enable_fast_install=yes ;;
  7446. no) enable_fast_install=no ;;
  7447. *)
  7448. enable_fast_install=no
  7449. # Look at the argument we got. We use all the common list separators.
  7450. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7451. for pkg in $enableval; do
  7452. IFS="$lt_save_ifs"
  7453. if test "X$pkg" = "X$p"; then
  7454. enable_fast_install=yes
  7455. fi
  7456. done
  7457. IFS="$lt_save_ifs"
  7458. ;;
  7459. esac],
  7460. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7461. _LT_DECL([fast_install], [enable_fast_install], [0],
  7462. [Whether or not to optimize for fast installation])dnl
  7463. ])# _LT_ENABLE_FAST_INSTALL
  7464. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7465. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7466. # Old names:
  7467. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7468. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7469. AC_DIAGNOSE([obsolete],
  7470. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7471. the `fast-install' option into LT_INIT's first parameter.])
  7472. ])
  7473. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7474. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7475. AC_DIAGNOSE([obsolete],
  7476. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7477. the `disable-fast-install' option into LT_INIT's first parameter.])
  7478. ])
  7479. dnl aclocal-1.4 backwards compatibility:
  7480. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7481. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7482. # _LT_WITH_PIC([MODE])
  7483. # --------------------
  7484. # implement the --with-pic flag, and support the `pic-only' and `no-pic'
  7485. # LT_INIT options.
  7486. # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  7487. m4_define([_LT_WITH_PIC],
  7488. [AC_ARG_WITH([pic],
  7489. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7490. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7491. [lt_p=${PACKAGE-default}
  7492. case $withval in
  7493. yes|no) pic_mode=$withval ;;
  7494. *)
  7495. pic_mode=default
  7496. # Look at the argument we got. We use all the common list separators.
  7497. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7498. for lt_pkg in $withval; do
  7499. IFS="$lt_save_ifs"
  7500. if test "X$lt_pkg" = "X$lt_p"; then
  7501. pic_mode=yes
  7502. fi
  7503. done
  7504. IFS="$lt_save_ifs"
  7505. ;;
  7506. esac],
  7507. [pic_mode=default])
  7508. test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  7509. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7510. ])# _LT_WITH_PIC
  7511. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7512. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7513. # Old name:
  7514. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7515. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7516. AC_DIAGNOSE([obsolete],
  7517. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7518. put the `pic-only' option into LT_INIT's first parameter.])
  7519. ])
  7520. dnl aclocal-1.4 backwards compatibility:
  7521. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7522. m4_define([_LTDL_MODE], [])
  7523. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7524. [m4_define([_LTDL_MODE], [nonrecursive])])
  7525. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7526. [m4_define([_LTDL_MODE], [recursive])])
  7527. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7528. [m4_define([_LTDL_MODE], [subproject])])
  7529. m4_define([_LTDL_TYPE], [])
  7530. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7531. [m4_define([_LTDL_TYPE], [installable])])
  7532. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7533. [m4_define([_LTDL_TYPE], [convenience])])
  7534. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7535. #
  7536. # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  7537. # Written by Gary V. Vaughan, 2004
  7538. #
  7539. # This file is free software; the Free Software Foundation gives
  7540. # unlimited permission to copy and/or distribute it, with or without
  7541. # modifications, as long as this notice is preserved.
  7542. # serial 6 ltsugar.m4
  7543. # This is to help aclocal find these macros, as it can't see m4_define.
  7544. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7545. # lt_join(SEP, ARG1, [ARG2...])
  7546. # -----------------------------
  7547. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7548. # associated separator.
  7549. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7550. # versions in m4sugar had bugs.
  7551. m4_define([lt_join],
  7552. [m4_if([$#], [1], [],
  7553. [$#], [2], [[$2]],
  7554. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  7555. m4_define([_lt_join],
  7556. [m4_if([$#$2], [2], [],
  7557. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  7558. # lt_car(LIST)
  7559. # lt_cdr(LIST)
  7560. # ------------
  7561. # Manipulate m4 lists.
  7562. # These macros are necessary as long as will still need to support
  7563. # Autoconf-2.59 which quotes differently.
  7564. m4_define([lt_car], [[$1]])
  7565. m4_define([lt_cdr],
  7566. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  7567. [$#], 1, [],
  7568. [m4_dquote(m4_shift($@))])])
  7569. m4_define([lt_unquote], $1)
  7570. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  7571. # ------------------------------------------
  7572. # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  7573. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  7574. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  7575. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  7576. # than defined and empty).
  7577. #
  7578. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  7579. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  7580. m4_define([lt_append],
  7581. [m4_define([$1],
  7582. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  7583. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  7584. # ----------------------------------------------------------
  7585. # Produce a SEP delimited list of all paired combinations of elements of
  7586. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  7587. # has the form PREFIXmINFIXSUFFIXn.
  7588. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  7589. m4_define([lt_combine],
  7590. [m4_if(m4_eval([$# > 3]), [1],
  7591. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  7592. [[m4_foreach([_Lt_prefix], [$2],
  7593. [m4_foreach([_Lt_suffix],
  7594. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  7595. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  7596. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  7597. # -----------------------------------------------------------------------
  7598. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  7599. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  7600. m4_define([lt_if_append_uniq],
  7601. [m4_ifdef([$1],
  7602. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  7603. [lt_append([$1], [$2], [$3])$4],
  7604. [$5])],
  7605. [lt_append([$1], [$2], [$3])$4])])
  7606. # lt_dict_add(DICT, KEY, VALUE)
  7607. # -----------------------------
  7608. m4_define([lt_dict_add],
  7609. [m4_define([$1($2)], [$3])])
  7610. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  7611. # --------------------------------------------
  7612. m4_define([lt_dict_add_subkey],
  7613. [m4_define([$1($2:$3)], [$4])])
  7614. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  7615. # ----------------------------------
  7616. m4_define([lt_dict_fetch],
  7617. [m4_ifval([$3],
  7618. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  7619. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  7620. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  7621. # -----------------------------------------------------------------
  7622. m4_define([lt_if_dict_fetch],
  7623. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  7624. [$5],
  7625. [$6])])
  7626. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  7627. # --------------------------------------------------------------
  7628. m4_define([lt_dict_filter],
  7629. [m4_if([$5], [], [],
  7630. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  7631. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  7632. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  7633. ])
  7634. # ltversion.m4 -- version numbers -*- Autoconf -*-
  7635. #
  7636. # Copyright (C) 2004 Free Software Foundation, Inc.
  7637. # Written by Scott James Remnant, 2004
  7638. #
  7639. # This file is free software; the Free Software Foundation gives
  7640. # unlimited permission to copy and/or distribute it, with or without
  7641. # modifications, as long as this notice is preserved.
  7642. # @configure_input@
  7643. # serial 3337 ltversion.m4
  7644. # This file is part of GNU Libtool
  7645. m4_define([LT_PACKAGE_VERSION], [2.4.2])
  7646. m4_define([LT_PACKAGE_REVISION], [1.3337])
  7647. AC_DEFUN([LTVERSION_VERSION],
  7648. [macro_version='2.4.2'
  7649. macro_revision='1.3337'
  7650. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  7651. _LT_DECL(, macro_revision, 0)
  7652. ])
  7653. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  7654. #
  7655. # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
  7656. # Written by Scott James Remnant, 2004.
  7657. #
  7658. # This file is free software; the Free Software Foundation gives
  7659. # unlimited permission to copy and/or distribute it, with or without
  7660. # modifications, as long as this notice is preserved.
  7661. # serial 5 lt~obsolete.m4
  7662. # These exist entirely to fool aclocal when bootstrapping libtool.
  7663. #
  7664. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  7665. # which have later been changed to m4_define as they aren't part of the
  7666. # exported API, or moved to Autoconf or Automake where they belong.
  7667. #
  7668. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  7669. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  7670. # using a macro with the same name in our local m4/libtool.m4 it'll
  7671. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  7672. # and doesn't know about Autoconf macros at all.)
  7673. #
  7674. # So we provide this file, which has a silly filename so it's always
  7675. # included after everything else. This provides aclocal with the
  7676. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  7677. # because those macros already exist, or will be overwritten later.
  7678. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  7679. #
  7680. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  7681. # Yes, that means every name once taken will need to remain here until
  7682. # we give up compatibility with versions before 1.7, at which point
  7683. # we need to keep only those names which we still refer to.
  7684. # This is to help aclocal find these macros, as it can't see m4_define.
  7685. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  7686. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  7687. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  7688. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  7689. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  7690. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  7691. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  7692. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  7693. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  7694. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  7695. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  7696. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  7697. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  7698. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  7699. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  7700. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  7701. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  7702. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  7703. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  7704. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  7705. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  7706. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  7707. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  7708. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  7709. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  7710. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  7711. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  7712. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  7713. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  7714. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  7715. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  7716. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  7717. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  7718. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  7719. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  7720. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  7721. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  7722. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  7723. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  7724. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  7725. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  7726. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  7727. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  7728. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  7729. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  7730. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  7731. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  7732. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  7733. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  7734. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  7735. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  7736. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  7737. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  7738. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  7739. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  7740. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  7741. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  7742. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  7743. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  7744. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  7745. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  7746. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  7747. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  7748. #
  7749. # This file is free software; the Free Software Foundation
  7750. # gives unlimited permission to copy and/or distribute it,
  7751. # with or without modifications, as long as this notice is preserved.
  7752. # AM_AUTOMAKE_VERSION(VERSION)
  7753. # ----------------------------
  7754. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  7755. # generated from the m4 files accompanying Automake X.Y.
  7756. # (This private macro should not be called outside this file.)
  7757. AC_DEFUN([AM_AUTOMAKE_VERSION],
  7758. [am__api_version='1.13'
  7759. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  7760. dnl require some minimum version. Point them to the right macro.
  7761. m4_if([$1], [1.13.4], [],
  7762. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  7763. ])
  7764. # _AM_AUTOCONF_VERSION(VERSION)
  7765. # -----------------------------
  7766. # aclocal traces this macro to find the Autoconf version.
  7767. # This is a private macro too. Using m4_define simplifies
  7768. # the logic in aclocal, which can simply ignore this definition.
  7769. m4_define([_AM_AUTOCONF_VERSION], [])
  7770. # AM_SET_CURRENT_AUTOMAKE_VERSION
  7771. # -------------------------------
  7772. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  7773. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  7774. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  7775. [AM_AUTOMAKE_VERSION([1.13.4])dnl
  7776. m4_ifndef([AC_AUTOCONF_VERSION],
  7777. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  7778. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  7779. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  7780. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  7781. #
  7782. # This file is free software; the Free Software Foundation
  7783. # gives unlimited permission to copy and/or distribute it,
  7784. # with or without modifications, as long as this notice is preserved.
  7785. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  7786. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  7787. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  7788. #
  7789. # Of course, Automake must honor this variable whenever it calls a
  7790. # tool from the auxiliary directory. The problem is that $srcdir (and
  7791. # therefore $ac_aux_dir as well) can be either absolute or relative,
  7792. # depending on how configure is run. This is pretty annoying, since
  7793. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  7794. # source directory, any form will work fine, but in subdirectories a
  7795. # relative path needs to be adjusted first.
  7796. #
  7797. # $ac_aux_dir/missing
  7798. # fails when called from a subdirectory if $ac_aux_dir is relative
  7799. # $top_srcdir/$ac_aux_dir/missing
  7800. # fails if $ac_aux_dir is absolute,
  7801. # fails when called from a subdirectory in a VPATH build with
  7802. # a relative $ac_aux_dir
  7803. #
  7804. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  7805. # are both prefixed by $srcdir. In an in-source build this is usually
  7806. # harmless because $srcdir is '.', but things will broke when you
  7807. # start a VPATH build or use an absolute $srcdir.
  7808. #
  7809. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  7810. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  7811. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  7812. # and then we would define $MISSING as
  7813. # MISSING="\${SHELL} $am_aux_dir/missing"
  7814. # This will work as long as MISSING is not called from configure, because
  7815. # unfortunately $(top_srcdir) has no meaning in configure.
  7816. # However there are other variables, like CC, which are often used in
  7817. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  7818. #
  7819. # Another solution, used here, is to always expand $ac_aux_dir to an
  7820. # absolute PATH. The drawback is that using absolute paths prevent a
  7821. # configured tree to be moved without reconfiguration.
  7822. AC_DEFUN([AM_AUX_DIR_EXPAND],
  7823. [dnl Rely on autoconf to set up CDPATH properly.
  7824. AC_PREREQ([2.50])dnl
  7825. # expand $ac_aux_dir to an absolute path
  7826. am_aux_dir=`cd $ac_aux_dir && pwd`
  7827. ])
  7828. # AM_CONDITIONAL -*- Autoconf -*-
  7829. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  7830. #
  7831. # This file is free software; the Free Software Foundation
  7832. # gives unlimited permission to copy and/or distribute it,
  7833. # with or without modifications, as long as this notice is preserved.
  7834. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  7835. # -------------------------------------
  7836. # Define a conditional.
  7837. AC_DEFUN([AM_CONDITIONAL],
  7838. [AC_PREREQ([2.52])dnl
  7839. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  7840. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  7841. AC_SUBST([$1_TRUE])dnl
  7842. AC_SUBST([$1_FALSE])dnl
  7843. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  7844. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  7845. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  7846. if $2; then
  7847. $1_TRUE=
  7848. $1_FALSE='#'
  7849. else
  7850. $1_TRUE='#'
  7851. $1_FALSE=
  7852. fi
  7853. AC_CONFIG_COMMANDS_PRE(
  7854. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  7855. AC_MSG_ERROR([[conditional "$1" was never defined.
  7856. Usually this means the macro was only invoked conditionally.]])
  7857. fi])])
  7858. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  7859. #
  7860. # This file is free software; the Free Software Foundation
  7861. # gives unlimited permission to copy and/or distribute it,
  7862. # with or without modifications, as long as this notice is preserved.
  7863. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  7864. # written in clear, in which case automake, when reading aclocal.m4,
  7865. # will think it sees a *use*, and therefore will trigger all it's
  7866. # C support machinery. Also note that it means that autoscan, seeing
  7867. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  7868. # _AM_DEPENDENCIES(NAME)
  7869. # ----------------------
  7870. # See how the compiler implements dependency checking.
  7871. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  7872. # We try a few techniques and use that to set a single cache variable.
  7873. #
  7874. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  7875. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  7876. # dependency, and given that the user is not expected to run this macro,
  7877. # just rely on AC_PROG_CC.
  7878. AC_DEFUN([_AM_DEPENDENCIES],
  7879. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  7880. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  7881. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  7882. AC_REQUIRE([AM_DEP_TRACK])dnl
  7883. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  7884. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  7885. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  7886. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  7887. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  7888. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  7889. [depcc="$$1" am_compiler_list=])
  7890. AC_CACHE_CHECK([dependency style of $depcc],
  7891. [am_cv_$1_dependencies_compiler_type],
  7892. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  7893. # We make a subdir and do the tests there. Otherwise we can end up
  7894. # making bogus files that we don't know about and never remove. For
  7895. # instance it was reported that on HP-UX the gcc test will end up
  7896. # making a dummy file named 'D' -- because '-MD' means "put the output
  7897. # in D".
  7898. rm -rf conftest.dir
  7899. mkdir conftest.dir
  7900. # Copy depcomp to subdir because otherwise we won't find it if we're
  7901. # using a relative directory.
  7902. cp "$am_depcomp" conftest.dir
  7903. cd conftest.dir
  7904. # We will build objects and dependencies in a subdirectory because
  7905. # it helps to detect inapplicable dependency modes. For instance
  7906. # both Tru64's cc and ICC support -MD to output dependencies as a
  7907. # side effect of compilation, but ICC will put the dependencies in
  7908. # the current directory while Tru64 will put them in the object
  7909. # directory.
  7910. mkdir sub
  7911. am_cv_$1_dependencies_compiler_type=none
  7912. if test "$am_compiler_list" = ""; then
  7913. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  7914. fi
  7915. am__universal=false
  7916. m4_case([$1], [CC],
  7917. [case " $depcc " in #(
  7918. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7919. esac],
  7920. [CXX],
  7921. [case " $depcc " in #(
  7922. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  7923. esac])
  7924. for depmode in $am_compiler_list; do
  7925. # Setup a source with many dependencies, because some compilers
  7926. # like to wrap large dependency lists on column 80 (with \), and
  7927. # we should not choose a depcomp mode which is confused by this.
  7928. #
  7929. # We need to recreate these files for each test, as the compiler may
  7930. # overwrite some of them when testing with obscure command lines.
  7931. # This happens at least with the AIX C compiler.
  7932. : > sub/conftest.c
  7933. for i in 1 2 3 4 5 6; do
  7934. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  7935. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  7936. # Solaris 10 /bin/sh.
  7937. echo '/* dummy */' > sub/conftst$i.h
  7938. done
  7939. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  7940. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  7941. # mode. It turns out that the SunPro C++ compiler does not properly
  7942. # handle '-M -o', and we need to detect this. Also, some Intel
  7943. # versions had trouble with output in subdirs.
  7944. am__obj=sub/conftest.${OBJEXT-o}
  7945. am__minus_obj="-o $am__obj"
  7946. case $depmode in
  7947. gcc)
  7948. # This depmode causes a compiler race in universal mode.
  7949. test "$am__universal" = false || continue
  7950. ;;
  7951. nosideeffect)
  7952. # After this tag, mechanisms are not by side-effect, so they'll
  7953. # only be used when explicitly requested.
  7954. if test "x$enable_dependency_tracking" = xyes; then
  7955. continue
  7956. else
  7957. break
  7958. fi
  7959. ;;
  7960. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  7961. # This compiler won't grok '-c -o', but also, the minuso test has
  7962. # not run yet. These depmodes are late enough in the game, and
  7963. # so weak that their functioning should not be impacted.
  7964. am__obj=conftest.${OBJEXT-o}
  7965. am__minus_obj=
  7966. ;;
  7967. none) break ;;
  7968. esac
  7969. if depmode=$depmode \
  7970. source=sub/conftest.c object=$am__obj \
  7971. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  7972. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  7973. >/dev/null 2>conftest.err &&
  7974. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  7975. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  7976. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  7977. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  7978. # icc doesn't choke on unknown options, it will just issue warnings
  7979. # or remarks (even with -Werror). So we grep stderr for any message
  7980. # that says an option was ignored or not supported.
  7981. # When given -MP, icc 7.0 and 7.1 complain thusly:
  7982. # icc: Command line warning: ignoring option '-M'; no argument required
  7983. # The diagnosis changed in icc 8.0:
  7984. # icc: Command line remark: option '-MP' not supported
  7985. if (grep 'ignoring option' conftest.err ||
  7986. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  7987. am_cv_$1_dependencies_compiler_type=$depmode
  7988. break
  7989. fi
  7990. fi
  7991. done
  7992. cd ..
  7993. rm -rf conftest.dir
  7994. else
  7995. am_cv_$1_dependencies_compiler_type=none
  7996. fi
  7997. ])
  7998. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  7999. AM_CONDITIONAL([am__fastdep$1], [
  8000. test "x$enable_dependency_tracking" != xno \
  8001. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8002. ])
  8003. # AM_SET_DEPDIR
  8004. # -------------
  8005. # Choose a directory name for dependency files.
  8006. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8007. AC_DEFUN([AM_SET_DEPDIR],
  8008. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8009. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8010. ])
  8011. # AM_DEP_TRACK
  8012. # ------------
  8013. AC_DEFUN([AM_DEP_TRACK],
  8014. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8015. AS_HELP_STRING(
  8016. [--enable-dependency-tracking],
  8017. [do not reject slow dependency extractors])
  8018. AS_HELP_STRING(
  8019. [--disable-dependency-tracking],
  8020. [speeds up one-time build])])
  8021. if test "x$enable_dependency_tracking" != xno; then
  8022. am_depcomp="$ac_aux_dir/depcomp"
  8023. AMDEPBACKSLASH='\'
  8024. am__nodep='_no'
  8025. fi
  8026. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8027. AC_SUBST([AMDEPBACKSLASH])dnl
  8028. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8029. AC_SUBST([am__nodep])dnl
  8030. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8031. ])
  8032. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8033. # Copyright (C) 1999-2013 Free Software Foundation, Inc.
  8034. #
  8035. # This file is free software; the Free Software Foundation
  8036. # gives unlimited permission to copy and/or distribute it,
  8037. # with or without modifications, as long as this notice is preserved.
  8038. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8039. # ------------------------------
  8040. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8041. [{
  8042. # Older Autoconf quotes --file arguments for eval, but not when files
  8043. # are listed without --file. Let's play safe and only enable the eval
  8044. # if we detect the quoting.
  8045. case $CONFIG_FILES in
  8046. *\'*) eval set x "$CONFIG_FILES" ;;
  8047. *) set x $CONFIG_FILES ;;
  8048. esac
  8049. shift
  8050. for mf
  8051. do
  8052. # Strip MF so we end up with the name of the file.
  8053. mf=`echo "$mf" | sed -e 's/:.*$//'`
  8054. # Check whether this is an Automake generated Makefile or not.
  8055. # We used to match only the files named 'Makefile.in', but
  8056. # some people rename them; so instead we look at the file content.
  8057. # Grep'ing the first line is not enough: some people post-process
  8058. # each Makefile.in and add a new line on top of each file to say so.
  8059. # Grep'ing the whole file is not good either: AIX grep has a line
  8060. # limit of 2048, but all sed's we know have understand at least 4000.
  8061. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  8062. dirpart=`AS_DIRNAME("$mf")`
  8063. else
  8064. continue
  8065. fi
  8066. # Extract the definition of DEPDIR, am__include, and am__quote
  8067. # from the Makefile without running 'make'.
  8068. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  8069. test -z "$DEPDIR" && continue
  8070. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  8071. test -z "$am__include" && continue
  8072. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  8073. # Find all dependency output files, they are included files with
  8074. # $(DEPDIR) in their names. We invoke sed twice because it is the
  8075. # simplest approach to changing $(DEPDIR) to its actual value in the
  8076. # expansion.
  8077. for file in `sed -n "
  8078. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  8079. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  8080. # Make sure the directory exists.
  8081. test -f "$dirpart/$file" && continue
  8082. fdir=`AS_DIRNAME(["$file"])`
  8083. AS_MKDIR_P([$dirpart/$fdir])
  8084. # echo "creating $dirpart/$file"
  8085. echo '# dummy' > "$dirpart/$file"
  8086. done
  8087. done
  8088. }
  8089. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8090. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8091. # -----------------------------
  8092. # This macro should only be invoked once -- use via AC_REQUIRE.
  8093. #
  8094. # This code is only required when automatic dependency tracking
  8095. # is enabled. FIXME. This creates each '.P' file that we will
  8096. # need in order to bootstrap the dependency handling code.
  8097. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8098. [AC_CONFIG_COMMANDS([depfiles],
  8099. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8100. [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  8101. ])
  8102. # Do all the work for Automake. -*- Autoconf -*-
  8103. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8104. #
  8105. # This file is free software; the Free Software Foundation
  8106. # gives unlimited permission to copy and/or distribute it,
  8107. # with or without modifications, as long as this notice is preserved.
  8108. # This macro actually does too much. Some checks are only needed if
  8109. # your package does certain things. But this isn't really a big deal.
  8110. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8111. # AM_INIT_AUTOMAKE([OPTIONS])
  8112. # -----------------------------------------------
  8113. # The call with PACKAGE and VERSION arguments is the old style
  8114. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8115. # and VERSION should now be passed to AC_INIT and removed from
  8116. # the call to AM_INIT_AUTOMAKE.
  8117. # We support both call styles for the transition. After
  8118. # the next Automake release, Autoconf can make the AC_INIT
  8119. # arguments mandatory, and then we can depend on a new Autoconf
  8120. # release and drop the old call support.
  8121. AC_DEFUN([AM_INIT_AUTOMAKE],
  8122. [AC_PREREQ([2.65])dnl
  8123. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8124. dnl the ones we care about.
  8125. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8126. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8127. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8128. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8129. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8130. # is not polluted with repeated "-I."
  8131. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8132. # test to see if srcdir already configured
  8133. if test -f $srcdir/config.status; then
  8134. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8135. fi
  8136. fi
  8137. # test whether we have cygpath
  8138. if test -z "$CYGPATH_W"; then
  8139. if (cygpath --version) >/dev/null 2>/dev/null; then
  8140. CYGPATH_W='cygpath -w'
  8141. else
  8142. CYGPATH_W=echo
  8143. fi
  8144. fi
  8145. AC_SUBST([CYGPATH_W])
  8146. # Define the identity of the package.
  8147. dnl Distinguish between old-style and new-style calls.
  8148. m4_ifval([$2],
  8149. [AC_DIAGNOSE([obsolete],
  8150. [$0: two- and three-arguments forms are deprecated.])
  8151. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8152. AC_SUBST([PACKAGE], [$1])dnl
  8153. AC_SUBST([VERSION], [$2])],
  8154. [_AM_SET_OPTIONS([$1])dnl
  8155. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8156. m4_if(
  8157. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8158. [ok:ok],,
  8159. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8160. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8161. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8162. _AM_IF_OPTION([no-define],,
  8163. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8164. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8165. # Some tools Automake needs.
  8166. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8167. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8168. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8169. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8170. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8171. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8172. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8173. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8174. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8175. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8176. # For better backward compatibility. To be removed once Automake 1.9.x
  8177. # dies out for good. For more background, see:
  8178. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8179. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8180. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8181. # We need awk for the "check" target. The system "awk" is bad on
  8182. # some platforms.
  8183. AC_REQUIRE([AC_PROG_AWK])dnl
  8184. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8185. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8186. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8187. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8188. [_AM_PROG_TAR([v7])])])
  8189. _AM_IF_OPTION([no-dependencies],,
  8190. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8191. [_AM_DEPENDENCIES([CC])],
  8192. [m4_define([AC_PROG_CC],
  8193. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8194. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8195. [_AM_DEPENDENCIES([CXX])],
  8196. [m4_define([AC_PROG_CXX],
  8197. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8198. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8199. [_AM_DEPENDENCIES([OBJC])],
  8200. [m4_define([AC_PROG_OBJC],
  8201. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8202. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8203. [_AM_DEPENDENCIES([OBJCXX])],
  8204. [m4_define([AC_PROG_OBJCXX],
  8205. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8206. ])
  8207. AC_REQUIRE([AM_SILENT_RULES])dnl
  8208. dnl The testsuite driver may need to know about EXEEXT, so add the
  8209. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8210. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8211. AC_CONFIG_COMMANDS_PRE(dnl
  8212. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8213. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8214. ])
  8215. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8216. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8217. dnl mangled by Autoconf and run in a shell conditional statement.
  8218. m4_define([_AC_COMPILER_EXEEXT],
  8219. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8220. # When config.status generates a header, we must update the stamp-h file.
  8221. # This file resides in the same directory as the config header
  8222. # that is generated. The stamp files are numbered to have different names.
  8223. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8224. # loop where config.status creates the headers, so we can generate
  8225. # our stamp files there.
  8226. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8227. [# Compute $1's index in $config_headers.
  8228. _am_arg=$1
  8229. _am_stamp_count=1
  8230. for _am_header in $config_headers :; do
  8231. case $_am_header in
  8232. $_am_arg | $_am_arg:* )
  8233. break ;;
  8234. * )
  8235. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8236. esac
  8237. done
  8238. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8239. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8240. #
  8241. # This file is free software; the Free Software Foundation
  8242. # gives unlimited permission to copy and/or distribute it,
  8243. # with or without modifications, as long as this notice is preserved.
  8244. # AM_PROG_INSTALL_SH
  8245. # ------------------
  8246. # Define $install_sh.
  8247. AC_DEFUN([AM_PROG_INSTALL_SH],
  8248. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8249. if test x"${install_sh}" != xset; then
  8250. case $am_aux_dir in
  8251. *\ * | *\ *)
  8252. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8253. *)
  8254. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8255. esac
  8256. fi
  8257. AC_SUBST([install_sh])])
  8258. # Copyright (C) 2003-2013 Free Software Foundation, Inc.
  8259. #
  8260. # This file is free software; the Free Software Foundation
  8261. # gives unlimited permission to copy and/or distribute it,
  8262. # with or without modifications, as long as this notice is preserved.
  8263. # Check whether the underlying file-system supports filenames
  8264. # with a leading dot. For instance MS-DOS doesn't.
  8265. AC_DEFUN([AM_SET_LEADING_DOT],
  8266. [rm -rf .tst 2>/dev/null
  8267. mkdir .tst 2>/dev/null
  8268. if test -d .tst; then
  8269. am__leading_dot=.
  8270. else
  8271. am__leading_dot=_
  8272. fi
  8273. rmdir .tst 2>/dev/null
  8274. AC_SUBST([am__leading_dot])])
  8275. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8276. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8277. #
  8278. # This file is free software; the Free Software Foundation
  8279. # gives unlimited permission to copy and/or distribute it,
  8280. # with or without modifications, as long as this notice is preserved.
  8281. # AM_MAKE_INCLUDE()
  8282. # -----------------
  8283. # Check to see how make treats includes.
  8284. AC_DEFUN([AM_MAKE_INCLUDE],
  8285. [am_make=${MAKE-make}
  8286. cat > confinc << 'END'
  8287. am__doit:
  8288. @echo this is the am__doit target
  8289. .PHONY: am__doit
  8290. END
  8291. # If we don't find an include directive, just comment out the code.
  8292. AC_MSG_CHECKING([for style of include used by $am_make])
  8293. am__include="#"
  8294. am__quote=
  8295. _am_result=none
  8296. # First try GNU make style include.
  8297. echo "include confinc" > confmf
  8298. # Ignore all kinds of additional output from 'make'.
  8299. case `$am_make -s -f confmf 2> /dev/null` in #(
  8300. *the\ am__doit\ target*)
  8301. am__include=include
  8302. am__quote=
  8303. _am_result=GNU
  8304. ;;
  8305. esac
  8306. # Now try BSD make style include.
  8307. if test "$am__include" = "#"; then
  8308. echo '.include "confinc"' > confmf
  8309. case `$am_make -s -f confmf 2> /dev/null` in #(
  8310. *the\ am__doit\ target*)
  8311. am__include=.include
  8312. am__quote="\""
  8313. _am_result=BSD
  8314. ;;
  8315. esac
  8316. fi
  8317. AC_SUBST([am__include])
  8318. AC_SUBST([am__quote])
  8319. AC_MSG_RESULT([$_am_result])
  8320. rm -f confinc confmf
  8321. ])
  8322. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8323. # Copyright (C) 1997-2013 Free Software Foundation, Inc.
  8324. #
  8325. # This file is free software; the Free Software Foundation
  8326. # gives unlimited permission to copy and/or distribute it,
  8327. # with or without modifications, as long as this notice is preserved.
  8328. # AM_MISSING_PROG(NAME, PROGRAM)
  8329. # ------------------------------
  8330. AC_DEFUN([AM_MISSING_PROG],
  8331. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8332. $1=${$1-"${am_missing_run}$2"}
  8333. AC_SUBST($1)])
  8334. # AM_MISSING_HAS_RUN
  8335. # ------------------
  8336. # Define MISSING if not defined so far and test if it is modern enough.
  8337. # If it is, set am_missing_run to use it, otherwise, to nothing.
  8338. AC_DEFUN([AM_MISSING_HAS_RUN],
  8339. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8340. AC_REQUIRE_AUX_FILE([missing])dnl
  8341. if test x"${MISSING+set}" != xset; then
  8342. case $am_aux_dir in
  8343. *\ * | *\ *)
  8344. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8345. *)
  8346. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8347. esac
  8348. fi
  8349. # Use eval to expand $SHELL
  8350. if eval "$MISSING --is-lightweight"; then
  8351. am_missing_run="$MISSING "
  8352. else
  8353. am_missing_run=
  8354. AC_MSG_WARN(['missing' script is too old or missing])
  8355. fi
  8356. ])
  8357. # Helper functions for option handling. -*- Autoconf -*-
  8358. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8359. #
  8360. # This file is free software; the Free Software Foundation
  8361. # gives unlimited permission to copy and/or distribute it,
  8362. # with or without modifications, as long as this notice is preserved.
  8363. # _AM_MANGLE_OPTION(NAME)
  8364. # -----------------------
  8365. AC_DEFUN([_AM_MANGLE_OPTION],
  8366. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8367. # _AM_SET_OPTION(NAME)
  8368. # --------------------
  8369. # Set option NAME. Presently that only means defining a flag for this option.
  8370. AC_DEFUN([_AM_SET_OPTION],
  8371. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  8372. # _AM_SET_OPTIONS(OPTIONS)
  8373. # ------------------------
  8374. # OPTIONS is a space-separated list of Automake options.
  8375. AC_DEFUN([_AM_SET_OPTIONS],
  8376. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8377. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8378. # -------------------------------------------
  8379. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8380. AC_DEFUN([_AM_IF_OPTION],
  8381. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8382. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  8383. # Copyright (C) 1996-2013 Free Software Foundation, Inc.
  8384. #
  8385. # This file is free software; the Free Software Foundation
  8386. # gives unlimited permission to copy and/or distribute it,
  8387. # with or without modifications, as long as this notice is preserved.
  8388. # AM_SANITY_CHECK
  8389. # ---------------
  8390. AC_DEFUN([AM_SANITY_CHECK],
  8391. [AC_MSG_CHECKING([whether build environment is sane])
  8392. # Reject unsafe characters in $srcdir or the absolute working directory
  8393. # name. Accept space and tab only in the latter.
  8394. am_lf='
  8395. '
  8396. case `pwd` in
  8397. *[[\\\"\#\$\&\'\`$am_lf]]*)
  8398. AC_MSG_ERROR([unsafe absolute working directory name]);;
  8399. esac
  8400. case $srcdir in
  8401. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  8402. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  8403. esac
  8404. # Do 'set' in a subshell so we don't clobber the current shell's
  8405. # arguments. Must try -L first in case configure is actually a
  8406. # symlink; some systems play weird games with the mod time of symlinks
  8407. # (eg FreeBSD returns the mod time of the symlink's containing
  8408. # directory).
  8409. if (
  8410. am_has_slept=no
  8411. for am_try in 1 2; do
  8412. echo "timestamp, slept: $am_has_slept" > conftest.file
  8413. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  8414. if test "$[*]" = "X"; then
  8415. # -L didn't work.
  8416. set X `ls -t "$srcdir/configure" conftest.file`
  8417. fi
  8418. if test "$[*]" != "X $srcdir/configure conftest.file" \
  8419. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  8420. # If neither matched, then we have a broken ls. This can happen
  8421. # if, for instance, CONFIG_SHELL is bash and it inherits a
  8422. # broken ls alias from the environment. This has actually
  8423. # happened. Such a system could not be considered "sane".
  8424. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  8425. alias in your environment])
  8426. fi
  8427. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  8428. break
  8429. fi
  8430. # Just in case.
  8431. sleep 1
  8432. am_has_slept=yes
  8433. done
  8434. test "$[2]" = conftest.file
  8435. )
  8436. then
  8437. # Ok.
  8438. :
  8439. else
  8440. AC_MSG_ERROR([newly created file is older than distributed files!
  8441. Check your system clock])
  8442. fi
  8443. AC_MSG_RESULT([yes])
  8444. # If we didn't sleep, we still need to ensure time stamps of config.status and
  8445. # generated files are strictly newer.
  8446. am_sleep_pid=
  8447. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  8448. ( sleep 1 ) &
  8449. am_sleep_pid=$!
  8450. fi
  8451. AC_CONFIG_COMMANDS_PRE(
  8452. [AC_MSG_CHECKING([that generated files are newer than configure])
  8453. if test -n "$am_sleep_pid"; then
  8454. # Hide warnings about reused PIDs.
  8455. wait $am_sleep_pid 2>/dev/null
  8456. fi
  8457. AC_MSG_RESULT([done])])
  8458. rm -f conftest.file
  8459. ])
  8460. # Copyright (C) 2009-2013 Free Software Foundation, Inc.
  8461. #
  8462. # This file is free software; the Free Software Foundation
  8463. # gives unlimited permission to copy and/or distribute it,
  8464. # with or without modifications, as long as this notice is preserved.
  8465. # AM_SILENT_RULES([DEFAULT])
  8466. # --------------------------
  8467. # Enable less verbose build rules; with the default set to DEFAULT
  8468. # ("yes" being less verbose, "no" or empty being verbose).
  8469. AC_DEFUN([AM_SILENT_RULES],
  8470. [AC_ARG_ENABLE([silent-rules], [dnl
  8471. AS_HELP_STRING(
  8472. [--enable-silent-rules],
  8473. [less verbose build output (undo: "make V=1")])
  8474. AS_HELP_STRING(
  8475. [--disable-silent-rules],
  8476. [verbose build output (undo: "make V=0")])dnl
  8477. ])
  8478. case $enable_silent_rules in @%:@ (((
  8479. yes) AM_DEFAULT_VERBOSITY=0;;
  8480. no) AM_DEFAULT_VERBOSITY=1;;
  8481. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  8482. esac
  8483. dnl
  8484. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  8485. dnl do not support nested variable expansions.
  8486. dnl See automake bug#9928 and bug#10237.
  8487. am_make=${MAKE-make}
  8488. AC_CACHE_CHECK([whether $am_make supports nested variables],
  8489. [am_cv_make_support_nested_variables],
  8490. [if AS_ECHO([['TRUE=$(BAR$(V))
  8491. BAR0=false
  8492. BAR1=true
  8493. V=1
  8494. am__doit:
  8495. @$(TRUE)
  8496. .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
  8497. am_cv_make_support_nested_variables=yes
  8498. else
  8499. am_cv_make_support_nested_variables=no
  8500. fi])
  8501. if test $am_cv_make_support_nested_variables = yes; then
  8502. dnl Using '$V' instead of '$(V)' breaks IRIX make.
  8503. AM_V='$(V)'
  8504. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  8505. else
  8506. AM_V=$AM_DEFAULT_VERBOSITY
  8507. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  8508. fi
  8509. AC_SUBST([AM_V])dnl
  8510. AM_SUBST_NOTMAKE([AM_V])dnl
  8511. AC_SUBST([AM_DEFAULT_V])dnl
  8512. AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
  8513. AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
  8514. AM_BACKSLASH='\'
  8515. AC_SUBST([AM_BACKSLASH])dnl
  8516. _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
  8517. ])
  8518. # Copyright (C) 2001-2013 Free Software Foundation, Inc.
  8519. #
  8520. # This file is free software; the Free Software Foundation
  8521. # gives unlimited permission to copy and/or distribute it,
  8522. # with or without modifications, as long as this notice is preserved.
  8523. # AM_PROG_INSTALL_STRIP
  8524. # ---------------------
  8525. # One issue with vendor 'install' (even GNU) is that you can't
  8526. # specify the program used to strip binaries. This is especially
  8527. # annoying in cross-compiling environments, where the build's strip
  8528. # is unlikely to handle the host's binaries.
  8529. # Fortunately install-sh will honor a STRIPPROG variable, so we
  8530. # always use install-sh in "make install-strip", and initialize
  8531. # STRIPPROG with the value of the STRIP variable (set by the user).
  8532. AC_DEFUN([AM_PROG_INSTALL_STRIP],
  8533. [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8534. # Installed binaries are usually stripped using 'strip' when the user
  8535. # run "make install-strip". However 'strip' might not be the right
  8536. # tool to use in cross-compilation environments, therefore Automake
  8537. # will honor the 'STRIP' environment variable to overrule this program.
  8538. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
  8539. if test "$cross_compiling" != no; then
  8540. AC_CHECK_TOOL([STRIP], [strip], :)
  8541. fi
  8542. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  8543. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  8544. # Copyright (C) 2006-2013 Free Software Foundation, Inc.
  8545. #
  8546. # This file is free software; the Free Software Foundation
  8547. # gives unlimited permission to copy and/or distribute it,
  8548. # with or without modifications, as long as this notice is preserved.
  8549. # _AM_SUBST_NOTMAKE(VARIABLE)
  8550. # ---------------------------
  8551. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8552. # This macro is traced by Automake.
  8553. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8554. # AM_SUBST_NOTMAKE(VARIABLE)
  8555. # --------------------------
  8556. # Public sister of _AM_SUBST_NOTMAKE.
  8557. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8558. # Check how to create a tarball. -*- Autoconf -*-
  8559. # Copyright (C) 2004-2013 Free Software Foundation, Inc.
  8560. #
  8561. # This file is free software; the Free Software Foundation
  8562. # gives unlimited permission to copy and/or distribute it,
  8563. # with or without modifications, as long as this notice is preserved.
  8564. # _AM_PROG_TAR(FORMAT)
  8565. # --------------------
  8566. # Check how to create a tarball in format FORMAT.
  8567. # FORMAT should be one of 'v7', 'ustar', or 'pax'.
  8568. #
  8569. # Substitute a variable $(am__tar) that is a command
  8570. # writing to stdout a FORMAT-tarball containing the directory
  8571. # $tardir.
  8572. # tardir=directory && $(am__tar) > result.tar
  8573. #
  8574. # Substitute a variable $(am__untar) that extract such
  8575. # a tarball read from stdin.
  8576. # $(am__untar) < result.tar
  8577. #
  8578. AC_DEFUN([_AM_PROG_TAR],
  8579. [# Always define AMTAR for backward compatibility. Yes, it's still used
  8580. # in the wild :-( We should find a proper way to deprecate it ...
  8581. AC_SUBST([AMTAR], ['$${TAR-tar}'])
  8582. # We'll loop over all known methods to create a tar archive until one works.
  8583. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
  8584. m4_if([$1], [v7],
  8585. [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
  8586. [m4_case([$1],
  8587. [ustar],
  8588. [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
  8589. # There is notably a 21 bits limit for the UID and the GID. In fact,
  8590. # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
  8591. # and bug#13588).
  8592. am_max_uid=2097151 # 2^21 - 1
  8593. am_max_gid=$am_max_uid
  8594. # The $UID and $GID variables are not portable, so we need to resort
  8595. # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
  8596. # below are definitely unexpected, so allow the users to see them
  8597. # (that is, avoid stderr redirection).
  8598. am_uid=`id -u || echo unknown`
  8599. am_gid=`id -g || echo unknown`
  8600. AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
  8601. if test $am_uid -le $am_max_uid; then
  8602. AC_MSG_RESULT([yes])
  8603. else
  8604. AC_MSG_RESULT([no])
  8605. _am_tools=none
  8606. fi
  8607. AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
  8608. if test $am_gid -le $am_max_gid; then
  8609. AC_MSG_RESULT([yes])
  8610. else
  8611. AC_MSG_RESULT([no])
  8612. _am_tools=none
  8613. fi],
  8614. [pax],
  8615. [],
  8616. [m4_fatal([Unknown tar format])])
  8617. AC_MSG_CHECKING([how to create a $1 tar archive])
  8618. # Go ahead even if we have the value already cached. We do so because we
  8619. # need to set the values for the 'am__tar' and 'am__untar' variables.
  8620. _am_tools=${am_cv_prog_tar_$1-$_am_tools}
  8621. for _am_tool in $_am_tools; do
  8622. case $_am_tool in
  8623. gnutar)
  8624. for _am_tar in tar gnutar gtar; do
  8625. AM_RUN_LOG([$_am_tar --version]) && break
  8626. done
  8627. am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
  8628. am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
  8629. am__untar="$_am_tar -xf -"
  8630. ;;
  8631. plaintar)
  8632. # Must skip GNU tar: if it does not support --format= it doesn't create
  8633. # ustar tarball either.
  8634. (tar --version) >/dev/null 2>&1 && continue
  8635. am__tar='tar chf - "$$tardir"'
  8636. am__tar_='tar chf - "$tardir"'
  8637. am__untar='tar xf -'
  8638. ;;
  8639. pax)
  8640. am__tar='pax -L -x $1 -w "$$tardir"'
  8641. am__tar_='pax -L -x $1 -w "$tardir"'
  8642. am__untar='pax -r'
  8643. ;;
  8644. cpio)
  8645. am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
  8646. am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
  8647. am__untar='cpio -i -H $1 -d'
  8648. ;;
  8649. none)
  8650. am__tar=false
  8651. am__tar_=false
  8652. am__untar=false
  8653. ;;
  8654. esac
  8655. # If the value was cached, stop now. We just wanted to have am__tar
  8656. # and am__untar set.
  8657. test -n "${am_cv_prog_tar_$1}" && break
  8658. # tar/untar a dummy directory, and stop if the command works.
  8659. rm -rf conftest.dir
  8660. mkdir conftest.dir
  8661. echo GrepMe > conftest.dir/file
  8662. AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
  8663. rm -rf conftest.dir
  8664. if test -s conftest.tar; then
  8665. AM_RUN_LOG([$am__untar <conftest.tar])
  8666. AM_RUN_LOG([cat conftest.dir/file])
  8667. grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
  8668. fi
  8669. done
  8670. rm -rf conftest.dir
  8671. AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
  8672. AC_MSG_RESULT([$am_cv_prog_tar_$1])])
  8673. AC_SUBST([am__tar])
  8674. AC_SUBST([am__untar])
  8675. ]) # _AM_PROG_TAR