aclocal.m4 326 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132
  1. # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
  2. # Copyright (C) 1996-2021 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. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  12. #
  13. # Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
  14. # Foundation, Inc.
  15. # Written by Gordon Matzigkeit, 1996
  16. #
  17. # This file is free software; the Free Software Foundation gives
  18. # unlimited permission to copy and/or distribute it, with or without
  19. # modifications, as long as this notice is preserved.
  20. m4_define([_LT_COPYING], [dnl
  21. # Copyright (C) 2014 Free Software Foundation, Inc.
  22. # This is free software; see the source for copying conditions. There is NO
  23. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  24. # GNU Libtool is free software; you can redistribute it and/or modify
  25. # it under the terms of the GNU General Public License as published by
  26. # the Free Software Foundation; either version 2 of of the License, or
  27. # (at your option) any later version.
  28. #
  29. # As a special exception to the GNU General Public License, if you
  30. # distribute this file as part of a program or library that is built
  31. # using GNU Libtool, you may include this file under the same
  32. # distribution terms that you use for the rest of that program.
  33. #
  34. # GNU Libtool is distributed in the hope that it will be useful, but
  35. # WITHOUT ANY WARRANTY; without even the implied warranty of
  36. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. # GNU General Public License for more details.
  38. #
  39. # You should have received a copy of the GNU General Public License
  40. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  41. ])
  42. # serial 59 LT_INIT
  43. # LT_PREREQ(VERSION)
  44. # ------------------
  45. # Complain and exit if this libtool version is less that VERSION.
  46. m4_defun([LT_PREREQ],
  47. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  48. [m4_default([$3],
  49. [m4_fatal([Libtool version $1 or higher is required],
  50. 63)])],
  51. [$2])])
  52. # _LT_CHECK_BUILDDIR
  53. # ------------------
  54. # Complain if the absolute build directory name contains unusual characters
  55. m4_defun([_LT_CHECK_BUILDDIR],
  56. [case `pwd` in
  57. *\ * | *\ *)
  58. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  59. esac
  60. ])
  61. # LT_INIT([OPTIONS])
  62. # ------------------
  63. AC_DEFUN([LT_INIT],
  64. [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
  65. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  66. AC_BEFORE([$0], [LT_LANG])dnl
  67. AC_BEFORE([$0], [LT_OUTPUT])dnl
  68. AC_BEFORE([$0], [LTDL_INIT])dnl
  69. m4_require([_LT_CHECK_BUILDDIR])dnl
  70. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  71. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  72. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  73. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  74. dnl unless we require an AC_DEFUNed macro:
  75. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  76. AC_REQUIRE([LTSUGAR_VERSION])dnl
  77. AC_REQUIRE([LTVERSION_VERSION])dnl
  78. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  79. m4_require([_LT_PROG_LTMAIN])dnl
  80. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  81. dnl Parse OPTIONS
  82. _LT_SET_OPTIONS([$0], [$1])
  83. # This can be used to rebuild libtool when needed
  84. LIBTOOL_DEPS=$ltmain
  85. # Always use our own libtool.
  86. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  87. AC_SUBST(LIBTOOL)dnl
  88. _LT_SETUP
  89. # Only expand once:
  90. m4_define([LT_INIT])
  91. ])# LT_INIT
  92. # Old names:
  93. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  94. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  95. dnl aclocal-1.4 backwards compatibility:
  96. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  97. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  98. # _LT_PREPARE_CC_BASENAME
  99. # -----------------------
  100. m4_defun([_LT_PREPARE_CC_BASENAME], [
  101. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  102. func_cc_basename ()
  103. {
  104. for cc_temp in @S|@*""; do
  105. case $cc_temp in
  106. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  107. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  108. \-*) ;;
  109. *) break;;
  110. esac
  111. done
  112. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  113. }
  114. ])# _LT_PREPARE_CC_BASENAME
  115. # _LT_CC_BASENAME(CC)
  116. # -------------------
  117. # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  118. # but that macro is also expanded into generated libtool script, which
  119. # arranges for $SED and $ECHO to be set by different means.
  120. m4_defun([_LT_CC_BASENAME],
  121. [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  122. AC_REQUIRE([_LT_DECL_SED])dnl
  123. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  124. func_cc_basename $1
  125. cc_basename=$func_cc_basename_result
  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_DECL_FILECMD])dnl
  170. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  171. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  172. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  173. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  174. m4_require([_LT_WITH_SYSROOT])dnl
  175. m4_require([_LT_CMD_TRUNCATE])dnl
  176. _LT_CONFIG_LIBTOOL_INIT([
  177. # See if we are running on zsh, and set the options that allow our
  178. # commands through without removal of \ escapes INIT.
  179. if test -n "\${ZSH_VERSION+set}"; then
  180. setopt NO_GLOB_SUBST
  181. fi
  182. ])
  183. if test -n "${ZSH_VERSION+set}"; then
  184. setopt NO_GLOB_SUBST
  185. fi
  186. _LT_CHECK_OBJDIR
  187. m4_require([_LT_TAG_COMPILER])dnl
  188. case $host_os in
  189. aix3*)
  190. # AIX sometimes has problems with the GCC collect2 program. For some
  191. # reason, if we set the COLLECT_NAMES environment variable, the problems
  192. # vanish in a puff of smoke.
  193. if test set != "${COLLECT_NAMES+set}"; then
  194. COLLECT_NAMES=
  195. export COLLECT_NAMES
  196. fi
  197. ;;
  198. esac
  199. # Global variables:
  200. ofile=libtool
  201. can_build_shared=yes
  202. # All known linkers require a '.a' archive for static linking (except MSVC and
  203. # ICC, which need '.lib').
  204. libext=a
  205. with_gnu_ld=$lt_cv_prog_gnu_ld
  206. old_CC=$CC
  207. old_CFLAGS=$CFLAGS
  208. # Set sane defaults for various variables
  209. test -z "$CC" && CC=cc
  210. test -z "$LTCC" && LTCC=$CC
  211. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  212. test -z "$LD" && LD=ld
  213. test -z "$ac_objext" && ac_objext=o
  214. _LT_CC_BASENAME([$compiler])
  215. # Only perform the check for file, if the check method requires it
  216. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  217. case $deplibs_check_method in
  218. file_magic*)
  219. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  220. _LT_PATH_MAGIC
  221. fi
  222. ;;
  223. esac
  224. # Use C for the default configuration in the libtool script
  225. LT_SUPPORTED_TAG([CC])
  226. _LT_LANG_C_CONFIG
  227. _LT_LANG_DEFAULT_CONFIG
  228. _LT_CONFIG_COMMANDS
  229. ])# _LT_SETUP
  230. # _LT_PREPARE_SED_QUOTE_VARS
  231. # --------------------------
  232. # Define a few sed substitution that help us do robust quoting.
  233. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  234. [# Backslashify metacharacters that are still active within
  235. # double-quoted strings.
  236. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  237. # Same as above, but do not quote variable references.
  238. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  239. # Sed substitution to delay expansion of an escaped shell variable in a
  240. # double_quote_subst'ed string.
  241. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  242. # Sed substitution to delay expansion of an escaped single quote.
  243. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  244. # Sed substitution to avoid accidental globbing in evaled expressions
  245. no_glob_subst='s/\*/\\\*/g'
  246. ])
  247. # _LT_PROG_LTMAIN
  248. # ---------------
  249. # Note that this code is called both from 'configure', and 'config.status'
  250. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  251. # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  252. # so we pass a copy along to make sure it has a sensible value anyway.
  253. m4_defun([_LT_PROG_LTMAIN],
  254. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  255. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  256. ltmain=$ac_aux_dir/ltmain.sh
  257. ])# _LT_PROG_LTMAIN
  258. # So that we can recreate a full libtool script including additional
  259. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  260. # in macros and then make a single call at the end using the 'libtool'
  261. # label.
  262. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  263. # ----------------------------------------
  264. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  265. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  266. [m4_ifval([$1],
  267. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  268. [$1
  269. ])])])
  270. # Initialize.
  271. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  272. # _LT_CONFIG_LIBTOOL([COMMANDS])
  273. # ------------------------------
  274. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  275. m4_define([_LT_CONFIG_LIBTOOL],
  276. [m4_ifval([$1],
  277. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  278. [$1
  279. ])])])
  280. # Initialize.
  281. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  282. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  283. # -----------------------------------------------------
  284. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  285. [_LT_CONFIG_LIBTOOL([$1])
  286. _LT_CONFIG_LIBTOOL_INIT([$2])
  287. ])
  288. # _LT_FORMAT_COMMENT([COMMENT])
  289. # -----------------------------
  290. # Add leading comment marks to the start of each line, and a trailing
  291. # full-stop to the whole comment if one is not present already.
  292. m4_define([_LT_FORMAT_COMMENT],
  293. [m4_ifval([$1], [
  294. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  295. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  296. )])
  297. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  298. # -------------------------------------------------------------------
  299. # CONFIGNAME is the name given to the value in the libtool script.
  300. # VARNAME is the (base) name used in the configure script.
  301. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  302. # VARNAME. Any other value will be used directly.
  303. m4_define([_LT_DECL],
  304. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  305. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  306. [m4_ifval([$1], [$1], [$2])])
  307. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  308. m4_ifval([$4],
  309. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  310. lt_dict_add_subkey([lt_decl_dict], [$2],
  311. [tagged?], [m4_ifval([$5], [yes], [no])])])
  312. ])
  313. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  314. # --------------------------------------------------------
  315. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  316. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  317. # ------------------------------------------------
  318. m4_define([lt_decl_tag_varnames],
  319. [_lt_decl_filter([tagged?], [yes], $@)])
  320. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  321. # ---------------------------------------------------------
  322. m4_define([_lt_decl_filter],
  323. [m4_case([$#],
  324. [0], [m4_fatal([$0: too few arguments: $#])],
  325. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  326. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  327. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  328. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  329. ])
  330. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  331. # --------------------------------------------------
  332. m4_define([lt_decl_quote_varnames],
  333. [_lt_decl_filter([value], [1], $@)])
  334. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  335. # ---------------------------------------------------
  336. m4_define([lt_decl_dquote_varnames],
  337. [_lt_decl_filter([value], [2], $@)])
  338. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  339. # ---------------------------------------------------
  340. m4_define([lt_decl_varnames_tagged],
  341. [m4_assert([$# <= 2])dnl
  342. _$0(m4_quote(m4_default([$1], [[, ]])),
  343. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  344. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  345. m4_define([_lt_decl_varnames_tagged],
  346. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  347. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  348. # ------------------------------------------------
  349. m4_define([lt_decl_all_varnames],
  350. [_$0(m4_quote(m4_default([$1], [[, ]])),
  351. m4_if([$2], [],
  352. m4_quote(lt_decl_varnames),
  353. m4_quote(m4_shift($@))))[]dnl
  354. ])
  355. m4_define([_lt_decl_all_varnames],
  356. [lt_join($@, lt_decl_varnames_tagged([$1],
  357. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  358. ])
  359. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  360. # ------------------------------------
  361. # Quote a variable value, and forward it to 'config.status' so that its
  362. # declaration there will have the same value as in 'configure'. VARNAME
  363. # must have a single quote delimited value for this to work.
  364. m4_define([_LT_CONFIG_STATUS_DECLARE],
  365. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  366. # _LT_CONFIG_STATUS_DECLARATIONS
  367. # ------------------------------
  368. # We delimit libtool config variables with single quotes, so when
  369. # we write them to config.status, we have to be sure to quote all
  370. # embedded single quotes properly. In configure, this macro expands
  371. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  372. #
  373. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  374. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  375. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  376. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  377. # _LT_LIBTOOL_TAGS
  378. # ----------------
  379. # Output comment and list of tags supported by the script
  380. m4_defun([_LT_LIBTOOL_TAGS],
  381. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  382. available_tags='_LT_TAGS'dnl
  383. ])
  384. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  385. # -----------------------------------
  386. # Extract the dictionary values for VARNAME (optionally with TAG) and
  387. # expand to a commented shell variable setting:
  388. #
  389. # # Some comment about what VAR is for.
  390. # visible_name=$lt_internal_name
  391. m4_define([_LT_LIBTOOL_DECLARE],
  392. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  393. [description])))[]dnl
  394. m4_pushdef([_libtool_name],
  395. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  396. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  397. [0], [_libtool_name=[$]$1],
  398. [1], [_libtool_name=$lt_[]$1],
  399. [2], [_libtool_name=$lt_[]$1],
  400. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  401. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  402. ])
  403. # _LT_LIBTOOL_CONFIG_VARS
  404. # -----------------------
  405. # Produce commented declarations of non-tagged libtool config variables
  406. # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  407. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  408. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  409. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  410. [m4_foreach([_lt_var],
  411. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  412. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  413. # _LT_LIBTOOL_TAG_VARS(TAG)
  414. # -------------------------
  415. m4_define([_LT_LIBTOOL_TAG_VARS],
  416. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  417. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  418. # _LT_TAGVAR(VARNAME, [TAGNAME])
  419. # ------------------------------
  420. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  421. # _LT_CONFIG_COMMANDS
  422. # -------------------
  423. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  424. # variables for single and double quote escaping we saved from calls
  425. # to _LT_DECL, we can put quote escaped variables declarations
  426. # into 'config.status', and then the shell code to quote escape them in
  427. # for loops in 'config.status'. Finally, any additional code accumulated
  428. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  429. m4_defun([_LT_CONFIG_COMMANDS],
  430. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  431. dnl If the libtool generation code has been placed in $CONFIG_LT,
  432. dnl instead of duplicating it all over again into config.status,
  433. dnl then we will have config.status run $CONFIG_LT later, so it
  434. dnl needs to know what name is stored there:
  435. [AC_CONFIG_COMMANDS([libtool],
  436. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  437. dnl If the libtool generation code is destined for config.status,
  438. dnl expand the accumulated commands and init code now:
  439. [AC_CONFIG_COMMANDS([libtool],
  440. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  441. ])#_LT_CONFIG_COMMANDS
  442. # Initialize.
  443. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  444. [
  445. # The HP-UX ksh and POSIX shell print the target directory to stdout
  446. # if CDPATH is set.
  447. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  448. sed_quote_subst='$sed_quote_subst'
  449. double_quote_subst='$double_quote_subst'
  450. delay_variable_subst='$delay_variable_subst'
  451. _LT_CONFIG_STATUS_DECLARATIONS
  452. LTCC='$LTCC'
  453. LTCFLAGS='$LTCFLAGS'
  454. compiler='$compiler_DEFAULT'
  455. # A function that is used when there is no print builtin or printf.
  456. func_fallback_echo ()
  457. {
  458. eval 'cat <<_LTECHO_EOF
  459. \$[]1
  460. _LTECHO_EOF'
  461. }
  462. # Quote evaled strings.
  463. for var in lt_decl_all_varnames([[ \
  464. ]], lt_decl_quote_varnames); do
  465. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  466. *[[\\\\\\\`\\"\\\$]]*)
  467. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  468. ;;
  469. *)
  470. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  471. ;;
  472. esac
  473. done
  474. # Double-quote double-evaled strings.
  475. for var in lt_decl_all_varnames([[ \
  476. ]], lt_decl_dquote_varnames); do
  477. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  478. *[[\\\\\\\`\\"\\\$]]*)
  479. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  480. ;;
  481. *)
  482. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  483. ;;
  484. esac
  485. done
  486. _LT_OUTPUT_LIBTOOL_INIT
  487. ])
  488. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  489. # ------------------------------------
  490. # Generate a child script FILE with all initialization necessary to
  491. # reuse the environment learned by the parent script, and make the
  492. # file executable. If COMMENT is supplied, it is inserted after the
  493. # '#!' sequence but before initialization text begins. After this
  494. # macro, additional text can be appended to FILE to form the body of
  495. # the child script. The macro ends with non-zero status if the
  496. # file could not be fully written (such as if the disk is full).
  497. m4_ifdef([AS_INIT_GENERATED],
  498. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  499. [m4_defun([_LT_GENERATED_FILE_INIT],
  500. [m4_require([AS_PREPARE])]dnl
  501. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  502. [lt_write_fail=0
  503. cat >$1 <<_ASEOF || lt_write_fail=1
  504. #! $SHELL
  505. # Generated by $as_me.
  506. $2
  507. SHELL=\${CONFIG_SHELL-$SHELL}
  508. export SHELL
  509. _ASEOF
  510. cat >>$1 <<\_ASEOF || lt_write_fail=1
  511. AS_SHELL_SANITIZE
  512. _AS_PREPARE
  513. exec AS_MESSAGE_FD>&1
  514. _ASEOF
  515. test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  516. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  517. # LT_OUTPUT
  518. # ---------
  519. # This macro allows early generation of the libtool script (before
  520. # AC_OUTPUT is called), incase it is used in configure for compilation
  521. # tests.
  522. AC_DEFUN([LT_OUTPUT],
  523. [: ${CONFIG_LT=./config.lt}
  524. AC_MSG_NOTICE([creating $CONFIG_LT])
  525. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  526. [# Run this file to recreate a libtool stub with the current configuration.])
  527. cat >>"$CONFIG_LT" <<\_LTEOF
  528. lt_cl_silent=false
  529. exec AS_MESSAGE_LOG_FD>>config.log
  530. {
  531. echo
  532. AS_BOX([Running $as_me.])
  533. } >&AS_MESSAGE_LOG_FD
  534. lt_cl_help="\
  535. '$as_me' creates a local libtool stub from the current configuration,
  536. for use in further configure time tests before the real libtool is
  537. generated.
  538. Usage: $[0] [[OPTIONS]]
  539. -h, --help print this help, then exit
  540. -V, --version print version number, then exit
  541. -q, --quiet do not print progress messages
  542. -d, --debug don't remove temporary files
  543. Report bugs to <[email protected]>."
  544. lt_cl_version="\
  545. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  546. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  547. configured by $[0], generated by m4_PACKAGE_STRING.
  548. Copyright (C) 2011 Free Software Foundation, Inc.
  549. This config.lt script is free software; the Free Software Foundation
  550. gives unlimited permision to copy, distribute and modify it."
  551. while test 0 != $[#]
  552. do
  553. case $[1] in
  554. --version | --v* | -V )
  555. echo "$lt_cl_version"; exit 0 ;;
  556. --help | --h* | -h )
  557. echo "$lt_cl_help"; exit 0 ;;
  558. --debug | --d* | -d )
  559. debug=: ;;
  560. --quiet | --q* | --silent | --s* | -q )
  561. lt_cl_silent=: ;;
  562. -*) AC_MSG_ERROR([unrecognized option: $[1]
  563. Try '$[0] --help' for more information.]) ;;
  564. *) AC_MSG_ERROR([unrecognized argument: $[1]
  565. Try '$[0] --help' for more information.]) ;;
  566. esac
  567. shift
  568. done
  569. if $lt_cl_silent; then
  570. exec AS_MESSAGE_FD>/dev/null
  571. fi
  572. _LTEOF
  573. cat >>"$CONFIG_LT" <<_LTEOF
  574. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  575. _LTEOF
  576. cat >>"$CONFIG_LT" <<\_LTEOF
  577. AC_MSG_NOTICE([creating $ofile])
  578. _LT_OUTPUT_LIBTOOL_COMMANDS
  579. AS_EXIT(0)
  580. _LTEOF
  581. chmod +x "$CONFIG_LT"
  582. # configure is writing to config.log, but config.lt does its own redirection,
  583. # appending to config.log, which fails on DOS, as config.log is still kept
  584. # open by configure. Here we exec the FD to /dev/null, effectively closing
  585. # config.log, so it can be properly (re)opened and appended to by config.lt.
  586. lt_cl_success=:
  587. test yes = "$silent" &&
  588. lt_config_lt_args="$lt_config_lt_args --quiet"
  589. exec AS_MESSAGE_LOG_FD>/dev/null
  590. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  591. exec AS_MESSAGE_LOG_FD>>config.log
  592. $lt_cl_success || AS_EXIT(1)
  593. ])# LT_OUTPUT
  594. # _LT_CONFIG(TAG)
  595. # ---------------
  596. # If TAG is the built-in tag, create an initial libtool script with a
  597. # default configuration from the untagged config vars. Otherwise add code
  598. # to config.status for appending the configuration named by TAG from the
  599. # matching tagged config vars.
  600. m4_defun([_LT_CONFIG],
  601. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  602. _LT_CONFIG_SAVE_COMMANDS([
  603. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  604. m4_if(_LT_TAG, [C], [
  605. # See if we are running on zsh, and set the options that allow our
  606. # commands through without removal of \ escapes.
  607. if test -n "${ZSH_VERSION+set}"; then
  608. setopt NO_GLOB_SUBST
  609. fi
  610. cfgfile=${ofile}T
  611. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  612. $RM "$cfgfile"
  613. cat <<_LT_EOF >> "$cfgfile"
  614. #! $SHELL
  615. # Generated automatically by $as_me ($PACKAGE) $VERSION
  616. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  617. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  618. # Provide generalized library-building support services.
  619. # Written by Gordon Matzigkeit, 1996
  620. _LT_COPYING
  621. _LT_LIBTOOL_TAGS
  622. # Configured defaults for sys_lib_dlsearch_path munging.
  623. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  624. # ### BEGIN LIBTOOL CONFIG
  625. _LT_LIBTOOL_CONFIG_VARS
  626. _LT_LIBTOOL_TAG_VARS
  627. # ### END LIBTOOL CONFIG
  628. _LT_EOF
  629. cat <<'_LT_EOF' >> "$cfgfile"
  630. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  631. _LT_PREPARE_MUNGE_PATH_LIST
  632. _LT_PREPARE_CC_BASENAME
  633. # ### END FUNCTIONS SHARED WITH CONFIGURE
  634. _LT_EOF
  635. case $host_os in
  636. aix3*)
  637. cat <<\_LT_EOF >> "$cfgfile"
  638. # AIX sometimes has problems with the GCC collect2 program. For some
  639. # reason, if we set the COLLECT_NAMES environment variable, the problems
  640. # vanish in a puff of smoke.
  641. if test set != "${COLLECT_NAMES+set}"; then
  642. COLLECT_NAMES=
  643. export COLLECT_NAMES
  644. fi
  645. _LT_EOF
  646. ;;
  647. esac
  648. _LT_PROG_LTMAIN
  649. # We use sed instead of cat because bash on DJGPP gets confused if
  650. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  651. # text mode, it properly converts lines to CR/LF. This bash problem
  652. # is reportedly fixed, but why not run on old versions too?
  653. $SED '$q' "$ltmain" >> "$cfgfile" \
  654. || (rm -f "$cfgfile"; exit 1)
  655. mv -f "$cfgfile" "$ofile" ||
  656. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  657. chmod +x "$ofile"
  658. ],
  659. [cat <<_LT_EOF >> "$ofile"
  660. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  661. dnl in a comment (ie after a #).
  662. # ### BEGIN LIBTOOL TAG CONFIG: $1
  663. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  664. # ### END LIBTOOL TAG CONFIG: $1
  665. _LT_EOF
  666. ])dnl /m4_if
  667. ],
  668. [m4_if([$1], [], [
  669. PACKAGE='$PACKAGE'
  670. VERSION='$VERSION'
  671. RM='$RM'
  672. ofile='$ofile'], [])
  673. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  674. ])# _LT_CONFIG
  675. # LT_SUPPORTED_TAG(TAG)
  676. # ---------------------
  677. # Trace this macro to discover what tags are supported by the libtool
  678. # --tag option, using:
  679. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  680. AC_DEFUN([LT_SUPPORTED_TAG], [])
  681. # C support is built-in for now
  682. m4_define([_LT_LANG_C_enabled], [])
  683. m4_define([_LT_TAGS], [])
  684. # LT_LANG(LANG)
  685. # -------------
  686. # Enable libtool support for the given language if not already enabled.
  687. AC_DEFUN([LT_LANG],
  688. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  689. m4_case([$1],
  690. [C], [_LT_LANG(C)],
  691. [C++], [_LT_LANG(CXX)],
  692. [Go], [_LT_LANG(GO)],
  693. [Java], [_LT_LANG(GCJ)],
  694. [Fortran 77], [_LT_LANG(F77)],
  695. [Fortran], [_LT_LANG(FC)],
  696. [Windows Resource], [_LT_LANG(RC)],
  697. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  698. [_LT_LANG($1)],
  699. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  700. ])# LT_LANG
  701. # _LT_LANG(LANGNAME)
  702. # ------------------
  703. m4_defun([_LT_LANG],
  704. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  705. [LT_SUPPORTED_TAG([$1])dnl
  706. m4_append([_LT_TAGS], [$1 ])dnl
  707. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  708. _LT_LANG_$1_CONFIG($1)])dnl
  709. ])# _LT_LANG
  710. m4_ifndef([AC_PROG_GO], [
  711. # NOTE: This macro has been submitted for inclusion into #
  712. # GNU Autoconf as AC_PROG_GO. When it is available in #
  713. # a released version of Autoconf we should remove this #
  714. # macro and use it instead. #
  715. m4_defun([AC_PROG_GO],
  716. [AC_LANG_PUSH(Go)dnl
  717. AC_ARG_VAR([GOC], [Go compiler command])dnl
  718. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  719. _AC_ARG_VAR_LDFLAGS()dnl
  720. AC_CHECK_TOOL(GOC, gccgo)
  721. if test -z "$GOC"; then
  722. if test -n "$ac_tool_prefix"; then
  723. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  724. fi
  725. fi
  726. if test -z "$GOC"; then
  727. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  728. fi
  729. ])#m4_defun
  730. ])#m4_ifndef
  731. # _LT_LANG_DEFAULT_CONFIG
  732. # -----------------------
  733. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  734. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  735. [LT_LANG(CXX)],
  736. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  737. AC_PROVIDE_IFELSE([AC_PROG_F77],
  738. [LT_LANG(F77)],
  739. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  740. AC_PROVIDE_IFELSE([AC_PROG_FC],
  741. [LT_LANG(FC)],
  742. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  743. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  744. dnl pulling things in needlessly.
  745. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  746. [LT_LANG(GCJ)],
  747. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  748. [LT_LANG(GCJ)],
  749. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  750. [LT_LANG(GCJ)],
  751. [m4_ifdef([AC_PROG_GCJ],
  752. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  753. m4_ifdef([A][M_PROG_GCJ],
  754. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  755. m4_ifdef([LT_PROG_GCJ],
  756. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  757. AC_PROVIDE_IFELSE([AC_PROG_GO],
  758. [LT_LANG(GO)],
  759. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  760. AC_PROVIDE_IFELSE([LT_PROG_RC],
  761. [LT_LANG(RC)],
  762. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  763. ])# _LT_LANG_DEFAULT_CONFIG
  764. # Obsolete macros:
  765. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  766. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  767. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  768. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  769. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  770. dnl aclocal-1.4 backwards compatibility:
  771. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  772. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  773. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  774. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  775. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  776. # _LT_TAG_COMPILER
  777. # ----------------
  778. m4_defun([_LT_TAG_COMPILER],
  779. [AC_REQUIRE([AC_PROG_CC])dnl
  780. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  781. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  782. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  783. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  784. # If no C compiler was specified, use CC.
  785. LTCC=${LTCC-"$CC"}
  786. # If no C compiler flags were specified, use CFLAGS.
  787. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  788. # Allow CC to be a program name with arguments.
  789. compiler=$CC
  790. ])# _LT_TAG_COMPILER
  791. # _LT_COMPILER_BOILERPLATE
  792. # ------------------------
  793. # Check for compiler boilerplate output or warnings with
  794. # the simple compiler test code.
  795. m4_defun([_LT_COMPILER_BOILERPLATE],
  796. [m4_require([_LT_DECL_SED])dnl
  797. ac_outfile=conftest.$ac_objext
  798. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  799. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  800. _lt_compiler_boilerplate=`cat conftest.err`
  801. $RM conftest*
  802. ])# _LT_COMPILER_BOILERPLATE
  803. # _LT_LINKER_BOILERPLATE
  804. # ----------------------
  805. # Check for linker boilerplate output or warnings with
  806. # the simple link test code.
  807. m4_defun([_LT_LINKER_BOILERPLATE],
  808. [m4_require([_LT_DECL_SED])dnl
  809. ac_outfile=conftest.$ac_objext
  810. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  811. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  812. _lt_linker_boilerplate=`cat conftest.err`
  813. $RM -r conftest*
  814. ])# _LT_LINKER_BOILERPLATE
  815. # _LT_REQUIRED_DARWIN_CHECKS
  816. # -------------------------
  817. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  818. case $host_os in
  819. rhapsody* | darwin*)
  820. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  821. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  822. AC_CHECK_TOOL([LIPO], [lipo], [:])
  823. AC_CHECK_TOOL([OTOOL], [otool], [:])
  824. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  825. _LT_DECL([], [DSYMUTIL], [1],
  826. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  827. _LT_DECL([], [NMEDIT], [1],
  828. [Tool to change global to local symbols on Mac OS X])
  829. _LT_DECL([], [LIPO], [1],
  830. [Tool to manipulate fat objects and archives on Mac OS X])
  831. _LT_DECL([], [OTOOL], [1],
  832. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  833. _LT_DECL([], [OTOOL64], [1],
  834. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  835. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  836. [lt_cv_apple_cc_single_mod=no
  837. if test -z "$LT_MULTI_MODULE"; then
  838. # By default we will add the -single_module flag. You can override
  839. # by either setting the environment variable LT_MULTI_MODULE
  840. # non-empty at configure time, or by adding -multi_module to the
  841. # link flags.
  842. rm -rf libconftest.dylib*
  843. echo "int foo(void){return 1;}" > conftest.c
  844. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  845. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  846. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  847. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  848. _lt_result=$?
  849. # If there is a non-empty error log, and "single_module"
  850. # appears in it, assume the flag caused a linker warning
  851. if test -s conftest.err && $GREP single_module conftest.err; then
  852. cat conftest.err >&AS_MESSAGE_LOG_FD
  853. # Otherwise, if the output was created with a 0 exit code from
  854. # the compiler, it worked.
  855. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  856. lt_cv_apple_cc_single_mod=yes
  857. else
  858. cat conftest.err >&AS_MESSAGE_LOG_FD
  859. fi
  860. rm -rf libconftest.dylib*
  861. rm -f conftest.*
  862. fi])
  863. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  864. [lt_cv_ld_exported_symbols_list],
  865. [lt_cv_ld_exported_symbols_list=no
  866. save_LDFLAGS=$LDFLAGS
  867. echo "_main" > conftest.sym
  868. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  869. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  870. [lt_cv_ld_exported_symbols_list=yes],
  871. [lt_cv_ld_exported_symbols_list=no])
  872. LDFLAGS=$save_LDFLAGS
  873. ])
  874. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  875. [lt_cv_ld_force_load=no
  876. cat > conftest.c << _LT_EOF
  877. int forced_loaded() { return 2;}
  878. _LT_EOF
  879. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  880. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  881. echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  882. $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  883. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  884. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  885. cat > conftest.c << _LT_EOF
  886. int main() { return 0;}
  887. _LT_EOF
  888. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  889. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  890. _lt_result=$?
  891. if test -s conftest.err && $GREP force_load conftest.err; then
  892. cat conftest.err >&AS_MESSAGE_LOG_FD
  893. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  894. lt_cv_ld_force_load=yes
  895. else
  896. cat conftest.err >&AS_MESSAGE_LOG_FD
  897. fi
  898. rm -f conftest.err libconftest.a conftest conftest.c
  899. rm -rf conftest.dSYM
  900. ])
  901. case $host_os in
  902. rhapsody* | darwin1.[[012]])
  903. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  904. darwin1.*)
  905. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  906. darwin*)
  907. case $MACOSX_DEPLOYMENT_TARGET,$host in
  908. 10.[[012]],*|,*powerpc*-darwin[[5-8]]*)
  909. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  910. *)
  911. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  912. esac
  913. ;;
  914. esac
  915. if test yes = "$lt_cv_apple_cc_single_mod"; then
  916. _lt_dar_single_mod='$single_module'
  917. fi
  918. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  919. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  920. else
  921. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  922. fi
  923. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  924. _lt_dsymutil='~$DSYMUTIL $lib || :'
  925. else
  926. _lt_dsymutil=
  927. fi
  928. ;;
  929. esac
  930. ])
  931. # _LT_DARWIN_LINKER_FEATURES([TAG])
  932. # ---------------------------------
  933. # Checks for linker and compiler features on darwin
  934. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  935. [
  936. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  937. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  938. _LT_TAGVAR(hardcode_direct, $1)=no
  939. _LT_TAGVAR(hardcode_automatic, $1)=yes
  940. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  941. if test yes = "$lt_cv_ld_force_load"; then
  942. _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\"`'
  943. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  944. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  945. else
  946. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  947. fi
  948. _LT_TAGVAR(link_all_deplibs, $1)=yes
  949. _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  950. case $cc_basename in
  951. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  952. *) _lt_dar_can_shared=$GCC ;;
  953. esac
  954. if test yes = "$_lt_dar_can_shared"; then
  955. output_verbose_link_cmd=func_echo_all
  956. _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"
  957. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  958. _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"
  959. _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"
  960. m4_if([$1], [CXX],
  961. [ if test yes != "$lt_cv_apple_cc_single_mod"; then
  962. _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"
  963. _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"
  964. fi
  965. ],[])
  966. else
  967. _LT_TAGVAR(ld_shlibs, $1)=no
  968. fi
  969. ])
  970. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  971. # ----------------------------------
  972. # Links a minimal program and checks the executable
  973. # for the system default hardcoded library path. In most cases,
  974. # this is /usr/lib:/lib, but when the MPI compilers are used
  975. # the location of the communication and MPI libs are included too.
  976. # If we don't find anything, use the default library path according
  977. # to the aix ld manual.
  978. # Store the results from the different compilers for each TAGNAME.
  979. # Allow to override them for all tags through lt_cv_aix_libpath.
  980. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  981. [m4_require([_LT_DECL_SED])dnl
  982. if test set = "${lt_cv_aix_libpath+set}"; then
  983. aix_libpath=$lt_cv_aix_libpath
  984. else
  985. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  986. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  987. lt_aix_libpath_sed='[
  988. /Import File Strings/,/^$/ {
  989. /^0/ {
  990. s/^0 *\([^ ]*\) *$/\1/
  991. p
  992. }
  993. }]'
  994. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  995. # Check for a 64-bit object if we didn't find anything.
  996. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  997. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  998. fi],[])
  999. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1000. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  1001. fi
  1002. ])
  1003. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1004. fi
  1005. ])# _LT_SYS_MODULE_PATH_AIX
  1006. # _LT_SHELL_INIT(ARG)
  1007. # -------------------
  1008. m4_define([_LT_SHELL_INIT],
  1009. [m4_divert_text([M4SH-INIT], [$1
  1010. ])])# _LT_SHELL_INIT
  1011. # _LT_PROG_ECHO_BACKSLASH
  1012. # -----------------------
  1013. # Find how we can fake an echo command that does not interpret backslash.
  1014. # In particular, with Autoconf 2.60 or later we add some code to the start
  1015. # of the generated configure script that will find a shell with a builtin
  1016. # printf (that we can use as an echo command).
  1017. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1018. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1019. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1020. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1021. AC_MSG_CHECKING([how to print strings])
  1022. # Test print first, because it will be a builtin if present.
  1023. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1024. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1025. ECHO='print -r --'
  1026. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1027. ECHO='printf %s\n'
  1028. else
  1029. # Use this function as a fallback that always works.
  1030. func_fallback_echo ()
  1031. {
  1032. eval 'cat <<_LTECHO_EOF
  1033. $[]1
  1034. _LTECHO_EOF'
  1035. }
  1036. ECHO='func_fallback_echo'
  1037. fi
  1038. # func_echo_all arg...
  1039. # Invoke $ECHO with all args, space-separated.
  1040. func_echo_all ()
  1041. {
  1042. $ECHO "$*"
  1043. }
  1044. case $ECHO in
  1045. printf*) AC_MSG_RESULT([printf]) ;;
  1046. print*) AC_MSG_RESULT([print -r]) ;;
  1047. *) AC_MSG_RESULT([cat]) ;;
  1048. esac
  1049. m4_ifdef([_AS_DETECT_SUGGESTED],
  1050. [_AS_DETECT_SUGGESTED([
  1051. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1052. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1053. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1054. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1055. PATH=/empty FPATH=/empty; export PATH FPATH
  1056. test "X`printf %s $ECHO`" = "X$ECHO" \
  1057. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1058. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1059. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1060. ])# _LT_PROG_ECHO_BACKSLASH
  1061. # _LT_WITH_SYSROOT
  1062. # ----------------
  1063. AC_DEFUN([_LT_WITH_SYSROOT],
  1064. [m4_require([_LT_DECL_SED])dnl
  1065. AC_MSG_CHECKING([for sysroot])
  1066. AC_ARG_WITH([sysroot],
  1067. [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1068. [Search for dependent libraries within DIR (or the compiler's sysroot
  1069. if not specified).])],
  1070. [], [with_sysroot=no])
  1071. dnl lt_sysroot will always be passed unquoted. We quote it here
  1072. dnl in case the user passed a directory name.
  1073. lt_sysroot=
  1074. case $with_sysroot in #(
  1075. yes)
  1076. if test yes = "$GCC"; then
  1077. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1078. fi
  1079. ;; #(
  1080. /*)
  1081. lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
  1082. ;; #(
  1083. no|'')
  1084. ;; #(
  1085. *)
  1086. AC_MSG_RESULT([$with_sysroot])
  1087. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1088. ;;
  1089. esac
  1090. AC_MSG_RESULT([${lt_sysroot:-no}])
  1091. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1092. [dependent libraries, and where our libraries should be installed.])])
  1093. # _LT_ENABLE_LOCK
  1094. # ---------------
  1095. m4_defun([_LT_ENABLE_LOCK],
  1096. [AC_ARG_ENABLE([libtool-lock],
  1097. [AS_HELP_STRING([--disable-libtool-lock],
  1098. [avoid locking (might break parallel builds)])])
  1099. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1100. # Some flags need to be propagated to the compiler or linker for good
  1101. # libtool support.
  1102. case $host in
  1103. ia64-*-hpux*)
  1104. # Find out what ABI is being produced by ac_compile, and set mode
  1105. # options accordingly.
  1106. echo 'int i;' > conftest.$ac_ext
  1107. if AC_TRY_EVAL(ac_compile); then
  1108. case `$FILECMD conftest.$ac_objext` in
  1109. *ELF-32*)
  1110. HPUX_IA64_MODE=32
  1111. ;;
  1112. *ELF-64*)
  1113. HPUX_IA64_MODE=64
  1114. ;;
  1115. esac
  1116. fi
  1117. rm -rf conftest*
  1118. ;;
  1119. *-*-irix6*)
  1120. # Find out what ABI is being produced by ac_compile, and set linker
  1121. # options accordingly.
  1122. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1123. if AC_TRY_EVAL(ac_compile); then
  1124. if test yes = "$lt_cv_prog_gnu_ld"; then
  1125. case `$FILECMD conftest.$ac_objext` in
  1126. *32-bit*)
  1127. LD="${LD-ld} -melf32bsmip"
  1128. ;;
  1129. *N32*)
  1130. LD="${LD-ld} -melf32bmipn32"
  1131. ;;
  1132. *64-bit*)
  1133. LD="${LD-ld} -melf64bmip"
  1134. ;;
  1135. esac
  1136. else
  1137. case `$FILECMD conftest.$ac_objext` in
  1138. *32-bit*)
  1139. LD="${LD-ld} -32"
  1140. ;;
  1141. *N32*)
  1142. LD="${LD-ld} -n32"
  1143. ;;
  1144. *64-bit*)
  1145. LD="${LD-ld} -64"
  1146. ;;
  1147. esac
  1148. fi
  1149. fi
  1150. rm -rf conftest*
  1151. ;;
  1152. mips64*-*linux*)
  1153. # Find out what ABI is being produced by ac_compile, and set linker
  1154. # options accordingly.
  1155. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1156. if AC_TRY_EVAL(ac_compile); then
  1157. emul=elf
  1158. case `$FILECMD conftest.$ac_objext` in
  1159. *32-bit*)
  1160. emul="${emul}32"
  1161. ;;
  1162. *64-bit*)
  1163. emul="${emul}64"
  1164. ;;
  1165. esac
  1166. case `$FILECMD conftest.$ac_objext` in
  1167. *MSB*)
  1168. emul="${emul}btsmip"
  1169. ;;
  1170. *LSB*)
  1171. emul="${emul}ltsmip"
  1172. ;;
  1173. esac
  1174. case `$FILECMD conftest.$ac_objext` in
  1175. *N32*)
  1176. emul="${emul}n32"
  1177. ;;
  1178. esac
  1179. LD="${LD-ld} -m $emul"
  1180. fi
  1181. rm -rf conftest*
  1182. ;;
  1183. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1184. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1185. # Find out what ABI is being produced by ac_compile, and set linker
  1186. # options accordingly. Note that the listed cases only cover the
  1187. # situations where additional linker options are needed (such as when
  1188. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  1189. # vice versa); the common cases where no linker options are needed do
  1190. # not appear in the list.
  1191. echo 'int i;' > conftest.$ac_ext
  1192. if AC_TRY_EVAL(ac_compile); then
  1193. case `$FILECMD conftest.o` in
  1194. *32-bit*)
  1195. case $host in
  1196. x86_64-*kfreebsd*-gnu)
  1197. LD="${LD-ld} -m elf_i386_fbsd"
  1198. ;;
  1199. x86_64-*linux*)
  1200. case `$FILECMD conftest.o` in
  1201. *x86-64*)
  1202. LD="${LD-ld} -m elf32_x86_64"
  1203. ;;
  1204. *)
  1205. LD="${LD-ld} -m elf_i386"
  1206. ;;
  1207. esac
  1208. ;;
  1209. powerpc64le-*linux*)
  1210. LD="${LD-ld} -m elf32lppclinux"
  1211. ;;
  1212. powerpc64-*linux*)
  1213. LD="${LD-ld} -m elf32ppclinux"
  1214. ;;
  1215. s390x-*linux*)
  1216. LD="${LD-ld} -m elf_s390"
  1217. ;;
  1218. sparc64-*linux*)
  1219. LD="${LD-ld} -m elf32_sparc"
  1220. ;;
  1221. esac
  1222. ;;
  1223. *64-bit*)
  1224. case $host in
  1225. x86_64-*kfreebsd*-gnu)
  1226. LD="${LD-ld} -m elf_x86_64_fbsd"
  1227. ;;
  1228. x86_64-*linux*)
  1229. LD="${LD-ld} -m elf_x86_64"
  1230. ;;
  1231. powerpcle-*linux*)
  1232. LD="${LD-ld} -m elf64lppc"
  1233. ;;
  1234. powerpc-*linux*)
  1235. LD="${LD-ld} -m elf64ppc"
  1236. ;;
  1237. s390*-*linux*|s390*-*tpf*)
  1238. LD="${LD-ld} -m elf64_s390"
  1239. ;;
  1240. sparc*-*linux*)
  1241. LD="${LD-ld} -m elf64_sparc"
  1242. ;;
  1243. esac
  1244. ;;
  1245. esac
  1246. fi
  1247. rm -rf conftest*
  1248. ;;
  1249. *-*-sco3.2v5*)
  1250. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1251. SAVE_CFLAGS=$CFLAGS
  1252. CFLAGS="$CFLAGS -belf"
  1253. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1254. [AC_LANG_PUSH(C)
  1255. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1256. AC_LANG_POP])
  1257. if test yes != "$lt_cv_cc_needs_belf"; then
  1258. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1259. CFLAGS=$SAVE_CFLAGS
  1260. fi
  1261. ;;
  1262. *-*solaris*)
  1263. # Find out what ABI is being produced by ac_compile, and set linker
  1264. # options accordingly.
  1265. echo 'int i;' > conftest.$ac_ext
  1266. if AC_TRY_EVAL(ac_compile); then
  1267. case `$FILECMD conftest.o` in
  1268. *64-bit*)
  1269. case $lt_cv_prog_gnu_ld in
  1270. yes*)
  1271. case $host in
  1272. i?86-*-solaris*|x86_64-*-solaris*)
  1273. LD="${LD-ld} -m elf_x86_64"
  1274. ;;
  1275. sparc*-*-solaris*)
  1276. LD="${LD-ld} -m elf64_sparc"
  1277. ;;
  1278. esac
  1279. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1280. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1281. LD=${LD-ld}_sol2
  1282. fi
  1283. ;;
  1284. *)
  1285. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1286. LD="${LD-ld} -64"
  1287. fi
  1288. ;;
  1289. esac
  1290. ;;
  1291. esac
  1292. fi
  1293. rm -rf conftest*
  1294. ;;
  1295. esac
  1296. need_locks=$enable_libtool_lock
  1297. ])# _LT_ENABLE_LOCK
  1298. # _LT_PROG_AR
  1299. # -----------
  1300. m4_defun([_LT_PROG_AR],
  1301. [AC_CHECK_TOOLS(AR, [ar], false)
  1302. : ${AR=ar}
  1303. _LT_DECL([], [AR], [1], [The archiver])
  1304. # Use ARFLAGS variable as AR's operation code to sync the variable naming with
  1305. # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
  1306. # higher priority because thats what people were doing historically (setting
  1307. # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
  1308. # variable obsoleted/removed.
  1309. test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
  1310. lt_ar_flags=$AR_FLAGS
  1311. _LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)])
  1312. # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
  1313. # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
  1314. _LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}],
  1315. [Flags to create an archive])
  1316. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1317. [lt_cv_ar_at_file=no
  1318. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1319. [echo conftest.$ac_objext > conftest.lst
  1320. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1321. AC_TRY_EVAL([lt_ar_try])
  1322. if test 0 -eq "$ac_status"; then
  1323. # Ensure the archiver fails upon bogus file names.
  1324. rm -f conftest.$ac_objext libconftest.a
  1325. AC_TRY_EVAL([lt_ar_try])
  1326. if test 0 -ne "$ac_status"; then
  1327. lt_cv_ar_at_file=@
  1328. fi
  1329. fi
  1330. rm -f conftest.* libconftest.a
  1331. ])
  1332. ])
  1333. if test no = "$lt_cv_ar_at_file"; then
  1334. archiver_list_spec=
  1335. else
  1336. archiver_list_spec=$lt_cv_ar_at_file
  1337. fi
  1338. _LT_DECL([], [archiver_list_spec], [1],
  1339. [How to feed a file listing to the archiver])
  1340. ])# _LT_PROG_AR
  1341. # _LT_CMD_OLD_ARCHIVE
  1342. # -------------------
  1343. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1344. [_LT_PROG_AR
  1345. AC_CHECK_TOOL(STRIP, strip, :)
  1346. test -z "$STRIP" && STRIP=:
  1347. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1348. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1349. test -z "$RANLIB" && RANLIB=:
  1350. _LT_DECL([], [RANLIB], [1],
  1351. [Commands used to install an old-style archive])
  1352. # Determine commands to create old-style static archives.
  1353. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1354. old_postinstall_cmds='chmod 644 $oldlib'
  1355. old_postuninstall_cmds=
  1356. if test -n "$RANLIB"; then
  1357. case $host_os in
  1358. bitrig* | openbsd*)
  1359. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1360. ;;
  1361. *)
  1362. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1363. ;;
  1364. esac
  1365. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1366. fi
  1367. case $host_os in
  1368. darwin*)
  1369. lock_old_archive_extraction=yes ;;
  1370. *)
  1371. lock_old_archive_extraction=no ;;
  1372. esac
  1373. _LT_DECL([], [old_postinstall_cmds], [2])
  1374. _LT_DECL([], [old_postuninstall_cmds], [2])
  1375. _LT_TAGDECL([], [old_archive_cmds], [2],
  1376. [Commands used to build an old-style archive])
  1377. _LT_DECL([], [lock_old_archive_extraction], [0],
  1378. [Whether to use a lock for old archive extraction])
  1379. ])# _LT_CMD_OLD_ARCHIVE
  1380. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1381. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1382. # ----------------------------------------------------------------
  1383. # Check whether the given compiler option works
  1384. AC_DEFUN([_LT_COMPILER_OPTION],
  1385. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1386. m4_require([_LT_DECL_SED])dnl
  1387. AC_CACHE_CHECK([$1], [$2],
  1388. [$2=no
  1389. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1390. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1391. lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
  1392. # Insert the option either (1) after the last *FLAGS variable, or
  1393. # (2) before a word containing "conftest.", or (3) at the end.
  1394. # Note that $ac_compile itself does not contain backslashes and begins
  1395. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1396. # The option is referenced via a variable to avoid confusing sed.
  1397. lt_compile=`echo "$ac_compile" | $SED \
  1398. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1399. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1400. -e 's:$: $lt_compiler_flag:'`
  1401. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1402. (eval "$lt_compile" 2>conftest.err)
  1403. ac_status=$?
  1404. cat conftest.err >&AS_MESSAGE_LOG_FD
  1405. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1406. if (exit $ac_status) && test -s "$ac_outfile"; then
  1407. # The compiler can only warn and ignore the option if not recognized
  1408. # So say no if there are warnings other than the usual output.
  1409. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1410. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1411. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1412. $2=yes
  1413. fi
  1414. fi
  1415. $RM conftest*
  1416. ])
  1417. if test yes = "[$]$2"; then
  1418. m4_if([$5], , :, [$5])
  1419. else
  1420. m4_if([$6], , :, [$6])
  1421. fi
  1422. ])# _LT_COMPILER_OPTION
  1423. # Old name:
  1424. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1425. dnl aclocal-1.4 backwards compatibility:
  1426. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1427. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1428. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1429. # ----------------------------------------------------
  1430. # Check whether the given linker option works
  1431. AC_DEFUN([_LT_LINKER_OPTION],
  1432. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1433. m4_require([_LT_DECL_SED])dnl
  1434. AC_CACHE_CHECK([$1], [$2],
  1435. [$2=no
  1436. save_LDFLAGS=$LDFLAGS
  1437. LDFLAGS="$LDFLAGS $3"
  1438. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1439. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1440. # The linker can only warn and ignore the option if not recognized
  1441. # So say no if there are warnings
  1442. if test -s conftest.err; then
  1443. # Append any errors to the config.log.
  1444. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1445. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1446. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1447. if diff conftest.exp conftest.er2 >/dev/null; then
  1448. $2=yes
  1449. fi
  1450. else
  1451. $2=yes
  1452. fi
  1453. fi
  1454. $RM -r conftest*
  1455. LDFLAGS=$save_LDFLAGS
  1456. ])
  1457. if test yes = "[$]$2"; then
  1458. m4_if([$4], , :, [$4])
  1459. else
  1460. m4_if([$5], , :, [$5])
  1461. fi
  1462. ])# _LT_LINKER_OPTION
  1463. # Old name:
  1464. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1465. dnl aclocal-1.4 backwards compatibility:
  1466. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1467. # LT_CMD_MAX_LEN
  1468. #---------------
  1469. AC_DEFUN([LT_CMD_MAX_LEN],
  1470. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1471. # find the maximum length of command line arguments
  1472. AC_MSG_CHECKING([the maximum length of command line arguments])
  1473. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1474. i=0
  1475. teststring=ABCD
  1476. case $build_os in
  1477. msdosdjgpp*)
  1478. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1479. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1480. # during glob expansion). Even if it were fixed, the result of this
  1481. # check would be larger than it should be.
  1482. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1483. ;;
  1484. gnu*)
  1485. # Under GNU Hurd, this test is not required because there is
  1486. # no limit to the length of command line arguments.
  1487. # Libtool will interpret -1 as no limit whatsoever
  1488. lt_cv_sys_max_cmd_len=-1;
  1489. ;;
  1490. cygwin* | mingw* | cegcc*)
  1491. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1492. # about 5 minutes as the teststring grows exponentially.
  1493. # Worse, since 9x/ME are not pre-emptively multitasking,
  1494. # you end up with a "frozen" computer, even though with patience
  1495. # the test eventually succeeds (with a max line length of 256k).
  1496. # Instead, let's just punt: use the minimum linelength reported by
  1497. # all of the supported platforms: 8192 (on NT/2K/XP).
  1498. lt_cv_sys_max_cmd_len=8192;
  1499. ;;
  1500. mint*)
  1501. # On MiNT this can take a long time and run out of memory.
  1502. lt_cv_sys_max_cmd_len=8192;
  1503. ;;
  1504. amigaos*)
  1505. # On AmigaOS with pdksh, this test takes hours, literally.
  1506. # So we just punt and use a minimum line length of 8192.
  1507. lt_cv_sys_max_cmd_len=8192;
  1508. ;;
  1509. bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
  1510. # This has been around since 386BSD, at least. Likely further.
  1511. if test -x /sbin/sysctl; then
  1512. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1513. elif test -x /usr/sbin/sysctl; then
  1514. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1515. else
  1516. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1517. fi
  1518. # And add a safety zone
  1519. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1520. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1521. ;;
  1522. interix*)
  1523. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1524. lt_cv_sys_max_cmd_len=196608
  1525. ;;
  1526. os2*)
  1527. # The test takes a long time on OS/2.
  1528. lt_cv_sys_max_cmd_len=8192
  1529. ;;
  1530. osf*)
  1531. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1532. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1533. # nice to cause kernel panics so lets avoid the loop below.
  1534. # First set a reasonable default.
  1535. lt_cv_sys_max_cmd_len=16384
  1536. #
  1537. if test -x /sbin/sysconfig; then
  1538. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1539. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1540. esac
  1541. fi
  1542. ;;
  1543. sco3.2v5*)
  1544. lt_cv_sys_max_cmd_len=102400
  1545. ;;
  1546. sysv5* | sco5v6* | sysv4.2uw2*)
  1547. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1548. if test -n "$kargmax"; then
  1549. lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'`
  1550. else
  1551. lt_cv_sys_max_cmd_len=32768
  1552. fi
  1553. ;;
  1554. *)
  1555. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1556. if test -n "$lt_cv_sys_max_cmd_len" && \
  1557. test undefined != "$lt_cv_sys_max_cmd_len"; then
  1558. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1559. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1560. else
  1561. # Make teststring a little bigger before we do anything with it.
  1562. # a 1K string should be a reasonable start.
  1563. for i in 1 2 3 4 5 6 7 8; do
  1564. teststring=$teststring$teststring
  1565. done
  1566. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1567. # If test is not a shell built-in, we'll probably end up computing a
  1568. # maximum length that is only half of the actual maximum length, but
  1569. # we can't tell.
  1570. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  1571. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1572. test 17 != "$i" # 1/2 MB should be enough
  1573. do
  1574. i=`expr $i + 1`
  1575. teststring=$teststring$teststring
  1576. done
  1577. # Only check the string length outside the loop.
  1578. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1579. teststring=
  1580. # Add a significant safety factor because C++ compilers can tack on
  1581. # massive amounts of additional arguments before passing them to the
  1582. # linker. It appears as though 1/2 is a usable value.
  1583. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1584. fi
  1585. ;;
  1586. esac
  1587. ])
  1588. if test -n "$lt_cv_sys_max_cmd_len"; then
  1589. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1590. else
  1591. AC_MSG_RESULT(none)
  1592. fi
  1593. max_cmd_len=$lt_cv_sys_max_cmd_len
  1594. _LT_DECL([], [max_cmd_len], [0],
  1595. [What is the maximum length of a command?])
  1596. ])# LT_CMD_MAX_LEN
  1597. # Old name:
  1598. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1599. dnl aclocal-1.4 backwards compatibility:
  1600. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1601. # _LT_HEADER_DLFCN
  1602. # ----------------
  1603. m4_defun([_LT_HEADER_DLFCN],
  1604. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1605. ])# _LT_HEADER_DLFCN
  1606. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1607. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1608. # ----------------------------------------------------------------
  1609. m4_defun([_LT_TRY_DLOPEN_SELF],
  1610. [m4_require([_LT_HEADER_DLFCN])dnl
  1611. if test yes = "$cross_compiling"; then :
  1612. [$4]
  1613. else
  1614. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1615. lt_status=$lt_dlunknown
  1616. cat > conftest.$ac_ext <<_LT_EOF
  1617. [#line $LINENO "configure"
  1618. #include "confdefs.h"
  1619. #if HAVE_DLFCN_H
  1620. #include <dlfcn.h>
  1621. #endif
  1622. #include <stdio.h>
  1623. #ifdef RTLD_GLOBAL
  1624. # define LT_DLGLOBAL RTLD_GLOBAL
  1625. #else
  1626. # ifdef DL_GLOBAL
  1627. # define LT_DLGLOBAL DL_GLOBAL
  1628. # else
  1629. # define LT_DLGLOBAL 0
  1630. # endif
  1631. #endif
  1632. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1633. find out it does not work in some platform. */
  1634. #ifndef LT_DLLAZY_OR_NOW
  1635. # ifdef RTLD_LAZY
  1636. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1637. # else
  1638. # ifdef DL_LAZY
  1639. # define LT_DLLAZY_OR_NOW DL_LAZY
  1640. # else
  1641. # ifdef RTLD_NOW
  1642. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1643. # else
  1644. # ifdef DL_NOW
  1645. # define LT_DLLAZY_OR_NOW DL_NOW
  1646. # else
  1647. # define LT_DLLAZY_OR_NOW 0
  1648. # endif
  1649. # endif
  1650. # endif
  1651. # endif
  1652. #endif
  1653. /* When -fvisibility=hidden is used, assume the code has been annotated
  1654. correspondingly for the symbols needed. */
  1655. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1656. int fnord () __attribute__((visibility("default")));
  1657. #endif
  1658. int fnord () { return 42; }
  1659. int main ()
  1660. {
  1661. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1662. int status = $lt_dlunknown;
  1663. if (self)
  1664. {
  1665. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1666. else
  1667. {
  1668. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1669. else puts (dlerror ());
  1670. }
  1671. /* dlclose (self); */
  1672. }
  1673. else
  1674. puts (dlerror ());
  1675. return status;
  1676. }]
  1677. _LT_EOF
  1678. if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  1679. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1680. lt_status=$?
  1681. case x$lt_status in
  1682. x$lt_dlno_uscore) $1 ;;
  1683. x$lt_dlneed_uscore) $2 ;;
  1684. x$lt_dlunknown|x*) $3 ;;
  1685. esac
  1686. else :
  1687. # compilation failed
  1688. $3
  1689. fi
  1690. fi
  1691. rm -fr conftest*
  1692. ])# _LT_TRY_DLOPEN_SELF
  1693. # LT_SYS_DLOPEN_SELF
  1694. # ------------------
  1695. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1696. [m4_require([_LT_HEADER_DLFCN])dnl
  1697. if test yes != "$enable_dlopen"; then
  1698. enable_dlopen=unknown
  1699. enable_dlopen_self=unknown
  1700. enable_dlopen_self_static=unknown
  1701. else
  1702. lt_cv_dlopen=no
  1703. lt_cv_dlopen_libs=
  1704. case $host_os in
  1705. beos*)
  1706. lt_cv_dlopen=load_add_on
  1707. lt_cv_dlopen_libs=
  1708. lt_cv_dlopen_self=yes
  1709. ;;
  1710. mingw* | pw32* | cegcc*)
  1711. lt_cv_dlopen=LoadLibrary
  1712. lt_cv_dlopen_libs=
  1713. ;;
  1714. cygwin*)
  1715. lt_cv_dlopen=dlopen
  1716. lt_cv_dlopen_libs=
  1717. ;;
  1718. darwin*)
  1719. # if libdl is installed we need to link against it
  1720. AC_CHECK_LIB([dl], [dlopen],
  1721. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  1722. lt_cv_dlopen=dyld
  1723. lt_cv_dlopen_libs=
  1724. lt_cv_dlopen_self=yes
  1725. ])
  1726. ;;
  1727. tpf*)
  1728. # Don't try to run any link tests for TPF. We know it's impossible
  1729. # because TPF is a cross-compiler, and we know how we open DSOs.
  1730. lt_cv_dlopen=dlopen
  1731. lt_cv_dlopen_libs=
  1732. lt_cv_dlopen_self=no
  1733. ;;
  1734. *)
  1735. AC_CHECK_FUNC([shl_load],
  1736. [lt_cv_dlopen=shl_load],
  1737. [AC_CHECK_LIB([dld], [shl_load],
  1738. [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  1739. [AC_CHECK_FUNC([dlopen],
  1740. [lt_cv_dlopen=dlopen],
  1741. [AC_CHECK_LIB([dl], [dlopen],
  1742. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  1743. [AC_CHECK_LIB([svld], [dlopen],
  1744. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  1745. [AC_CHECK_LIB([dld], [dld_link],
  1746. [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  1747. ])
  1748. ])
  1749. ])
  1750. ])
  1751. ])
  1752. ;;
  1753. esac
  1754. if test no = "$lt_cv_dlopen"; then
  1755. enable_dlopen=no
  1756. else
  1757. enable_dlopen=yes
  1758. fi
  1759. case $lt_cv_dlopen in
  1760. dlopen)
  1761. save_CPPFLAGS=$CPPFLAGS
  1762. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1763. save_LDFLAGS=$LDFLAGS
  1764. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1765. save_LIBS=$LIBS
  1766. LIBS="$lt_cv_dlopen_libs $LIBS"
  1767. AC_CACHE_CHECK([whether a program can dlopen itself],
  1768. lt_cv_dlopen_self, [dnl
  1769. _LT_TRY_DLOPEN_SELF(
  1770. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1771. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1772. ])
  1773. if test yes = "$lt_cv_dlopen_self"; then
  1774. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1775. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1776. lt_cv_dlopen_self_static, [dnl
  1777. _LT_TRY_DLOPEN_SELF(
  1778. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1779. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1780. ])
  1781. fi
  1782. CPPFLAGS=$save_CPPFLAGS
  1783. LDFLAGS=$save_LDFLAGS
  1784. LIBS=$save_LIBS
  1785. ;;
  1786. esac
  1787. case $lt_cv_dlopen_self in
  1788. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1789. *) enable_dlopen_self=unknown ;;
  1790. esac
  1791. case $lt_cv_dlopen_self_static in
  1792. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1793. *) enable_dlopen_self_static=unknown ;;
  1794. esac
  1795. fi
  1796. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1797. [Whether dlopen is supported])
  1798. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1799. [Whether dlopen of programs is supported])
  1800. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1801. [Whether dlopen of statically linked programs is supported])
  1802. ])# LT_SYS_DLOPEN_SELF
  1803. # Old name:
  1804. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1805. dnl aclocal-1.4 backwards compatibility:
  1806. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1807. # _LT_COMPILER_C_O([TAGNAME])
  1808. # ---------------------------
  1809. # Check to see if options -c and -o are simultaneously supported by compiler.
  1810. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1811. m4_defun([_LT_COMPILER_C_O],
  1812. [m4_require([_LT_DECL_SED])dnl
  1813. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1814. m4_require([_LT_TAG_COMPILER])dnl
  1815. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1816. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1817. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1818. $RM -r conftest 2>/dev/null
  1819. mkdir conftest
  1820. cd conftest
  1821. mkdir out
  1822. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1823. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1824. # Insert the option either (1) after the last *FLAGS variable, or
  1825. # (2) before a word containing "conftest.", or (3) at the end.
  1826. # Note that $ac_compile itself does not contain backslashes and begins
  1827. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1828. lt_compile=`echo "$ac_compile" | $SED \
  1829. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1830. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1831. -e 's:$: $lt_compiler_flag:'`
  1832. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1833. (eval "$lt_compile" 2>out/conftest.err)
  1834. ac_status=$?
  1835. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1836. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1837. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1838. then
  1839. # The compiler can only warn and ignore the option if not recognized
  1840. # So say no if there are warnings
  1841. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1842. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1843. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1844. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1845. fi
  1846. fi
  1847. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1848. $RM conftest*
  1849. # SGI C++ compiler will create directory out/ii_files/ for
  1850. # template instantiation
  1851. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1852. $RM out/* && rmdir out
  1853. cd ..
  1854. $RM -r conftest
  1855. $RM conftest*
  1856. ])
  1857. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1858. [Does compiler simultaneously support -c and -o options?])
  1859. ])# _LT_COMPILER_C_O
  1860. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1861. # ----------------------------------
  1862. # Check to see if we can do hard links to lock some files if needed
  1863. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1864. [m4_require([_LT_ENABLE_LOCK])dnl
  1865. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1866. _LT_COMPILER_C_O([$1])
  1867. hard_links=nottested
  1868. if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  1869. # do not overwrite the value of need_locks provided by the user
  1870. AC_MSG_CHECKING([if we can lock with hard links])
  1871. hard_links=yes
  1872. $RM conftest*
  1873. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1874. touch conftest.a
  1875. ln conftest.a conftest.b 2>&5 || hard_links=no
  1876. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1877. AC_MSG_RESULT([$hard_links])
  1878. if test no = "$hard_links"; then
  1879. AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  1880. need_locks=warn
  1881. fi
  1882. else
  1883. need_locks=no
  1884. fi
  1885. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1886. ])# _LT_COMPILER_FILE_LOCKS
  1887. # _LT_CHECK_OBJDIR
  1888. # ----------------
  1889. m4_defun([_LT_CHECK_OBJDIR],
  1890. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1891. [rm -f .libs 2>/dev/null
  1892. mkdir .libs 2>/dev/null
  1893. if test -d .libs; then
  1894. lt_cv_objdir=.libs
  1895. else
  1896. # MS-DOS does not allow filenames that begin with a dot.
  1897. lt_cv_objdir=_libs
  1898. fi
  1899. rmdir .libs 2>/dev/null])
  1900. objdir=$lt_cv_objdir
  1901. _LT_DECL([], [objdir], [0],
  1902. [The name of the directory that contains temporary libtool files])dnl
  1903. m4_pattern_allow([LT_OBJDIR])dnl
  1904. AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  1905. [Define to the sub-directory where libtool stores uninstalled libraries.])
  1906. ])# _LT_CHECK_OBJDIR
  1907. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1908. # --------------------------------------
  1909. # Check hardcoding attributes.
  1910. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1911. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1912. _LT_TAGVAR(hardcode_action, $1)=
  1913. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1914. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1915. test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  1916. # We can hardcode non-existent directories.
  1917. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  1918. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1919. # have to relink, otherwise we might link with an installed library
  1920. # when we should be linking with a yet-to-be-installed one
  1921. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  1922. test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  1923. # Linking always hardcodes the temporary library directory.
  1924. _LT_TAGVAR(hardcode_action, $1)=relink
  1925. else
  1926. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1927. _LT_TAGVAR(hardcode_action, $1)=immediate
  1928. fi
  1929. else
  1930. # We cannot hardcode anything, or else we can only hardcode existing
  1931. # directories.
  1932. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1933. fi
  1934. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1935. if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  1936. test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  1937. # Fast installation is not supported
  1938. enable_fast_install=no
  1939. elif test yes = "$shlibpath_overrides_runpath" ||
  1940. test no = "$enable_shared"; then
  1941. # Fast installation is not necessary
  1942. enable_fast_install=needless
  1943. fi
  1944. _LT_TAGDECL([], [hardcode_action], [0],
  1945. [How to hardcode a shared library path into an executable])
  1946. ])# _LT_LINKER_HARDCODE_LIBPATH
  1947. # _LT_CMD_STRIPLIB
  1948. # ----------------
  1949. m4_defun([_LT_CMD_STRIPLIB],
  1950. [m4_require([_LT_DECL_EGREP])
  1951. striplib=
  1952. old_striplib=
  1953. AC_MSG_CHECKING([whether stripping libraries is possible])
  1954. if test -z "$STRIP"; then
  1955. AC_MSG_RESULT([no])
  1956. else
  1957. if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1958. old_striplib="$STRIP --strip-debug"
  1959. striplib="$STRIP --strip-unneeded"
  1960. AC_MSG_RESULT([yes])
  1961. else
  1962. case $host_os in
  1963. darwin*)
  1964. # FIXME - insert some real tests, host_os isn't really good enough
  1965. striplib="$STRIP -x"
  1966. old_striplib="$STRIP -S"
  1967. AC_MSG_RESULT([yes])
  1968. ;;
  1969. freebsd*)
  1970. if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
  1971. old_striplib="$STRIP --strip-debug"
  1972. striplib="$STRIP --strip-unneeded"
  1973. AC_MSG_RESULT([yes])
  1974. else
  1975. AC_MSG_RESULT([no])
  1976. fi
  1977. ;;
  1978. *)
  1979. AC_MSG_RESULT([no])
  1980. ;;
  1981. esac
  1982. fi
  1983. fi
  1984. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1985. _LT_DECL([], [striplib], [1])
  1986. ])# _LT_CMD_STRIPLIB
  1987. # _LT_PREPARE_MUNGE_PATH_LIST
  1988. # ---------------------------
  1989. # Make sure func_munge_path_list() is defined correctly.
  1990. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
  1991. [[# func_munge_path_list VARIABLE PATH
  1992. # -----------------------------------
  1993. # VARIABLE is name of variable containing _space_ separated list of
  1994. # directories to be munged by the contents of PATH, which is string
  1995. # having a format:
  1996. # "DIR[:DIR]:"
  1997. # string "DIR[ DIR]" will be prepended to VARIABLE
  1998. # ":DIR[:DIR]"
  1999. # string "DIR[ DIR]" will be appended to VARIABLE
  2000. # "DIRP[:DIRP]::[DIRA:]DIRA"
  2001. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  2002. # "DIRA[ DIRA]" will be appended to VARIABLE
  2003. # "DIR[:DIR]"
  2004. # VARIABLE will be replaced by "DIR[ DIR]"
  2005. func_munge_path_list ()
  2006. {
  2007. case x@S|@2 in
  2008. x)
  2009. ;;
  2010. *:)
  2011. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  2012. ;;
  2013. x:*)
  2014. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2015. ;;
  2016. *::*)
  2017. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  2018. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  2019. ;;
  2020. *)
  2021. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2022. ;;
  2023. esac
  2024. }
  2025. ]])# _LT_PREPARE_PATH_LIST
  2026. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2027. # -----------------------------
  2028. # PORTME Fill in your ld.so characteristics
  2029. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2030. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2031. m4_require([_LT_DECL_EGREP])dnl
  2032. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2033. m4_require([_LT_DECL_OBJDUMP])dnl
  2034. m4_require([_LT_DECL_SED])dnl
  2035. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2036. m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
  2037. AC_MSG_CHECKING([dynamic linker characteristics])
  2038. m4_if([$1],
  2039. [], [
  2040. if test yes = "$GCC"; then
  2041. case $host_os in
  2042. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  2043. *) lt_awk_arg='/^libraries:/' ;;
  2044. esac
  2045. case $host_os in
  2046. mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  2047. *) lt_sed_strip_eq='s|=/|/|g' ;;
  2048. esac
  2049. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2050. case $lt_search_path_spec in
  2051. *\;*)
  2052. # if the path contains ";" then we assume it to be the separator
  2053. # otherwise default to the standard path separator (i.e. ":") - it is
  2054. # assumed that no part of a normal pathname contains ";" but that should
  2055. # okay in the real world where ";" in dirpaths is itself problematic.
  2056. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2057. ;;
  2058. *)
  2059. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2060. ;;
  2061. esac
  2062. # Ok, now we have the path, separated by spaces, we can step through it
  2063. # and add multilib dir if necessary...
  2064. lt_tmp_lt_search_path_spec=
  2065. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2066. # ...but if some path component already ends with the multilib dir we assume
  2067. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  2068. case "$lt_multi_os_dir; $lt_search_path_spec " in
  2069. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  2070. lt_multi_os_dir=
  2071. ;;
  2072. esac
  2073. for lt_sys_path in $lt_search_path_spec; do
  2074. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2075. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2076. elif test -n "$lt_multi_os_dir"; then
  2077. test -d "$lt_sys_path" && \
  2078. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2079. fi
  2080. done
  2081. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2082. BEGIN {RS = " "; FS = "/|\n";} {
  2083. lt_foo = "";
  2084. lt_count = 0;
  2085. for (lt_i = NF; lt_i > 0; lt_i--) {
  2086. if ($lt_i != "" && $lt_i != ".") {
  2087. if ($lt_i == "..") {
  2088. lt_count++;
  2089. } else {
  2090. if (lt_count == 0) {
  2091. lt_foo = "/" $lt_i lt_foo;
  2092. } else {
  2093. lt_count--;
  2094. }
  2095. }
  2096. }
  2097. }
  2098. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2099. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2100. }'`
  2101. # AWK program above erroneously prepends '/' to C:/dos/paths
  2102. # for these hosts.
  2103. case $host_os in
  2104. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2105. $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2106. esac
  2107. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2108. else
  2109. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2110. fi])
  2111. library_names_spec=
  2112. libname_spec='lib$name'
  2113. soname_spec=
  2114. shrext_cmds=.so
  2115. postinstall_cmds=
  2116. postuninstall_cmds=
  2117. finish_cmds=
  2118. finish_eval=
  2119. shlibpath_var=
  2120. shlibpath_overrides_runpath=unknown
  2121. version_type=none
  2122. dynamic_linker="$host_os ld.so"
  2123. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2124. need_lib_prefix=unknown
  2125. hardcode_into_libs=no
  2126. # when you set need_version to no, make sure it does not cause -set_version
  2127. # flags to be left without arguments
  2128. need_version=unknown
  2129. AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
  2130. [User-defined run-time library search path.])
  2131. case $host_os in
  2132. aix3*)
  2133. version_type=linux # correct to gnu/linux during the next big refactor
  2134. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2135. shlibpath_var=LIBPATH
  2136. # AIX 3 has no versioning support, so we append a major version to the name.
  2137. soname_spec='$libname$release$shared_ext$major'
  2138. ;;
  2139. aix[[4-9]]*)
  2140. version_type=linux # correct to gnu/linux during the next big refactor
  2141. need_lib_prefix=no
  2142. need_version=no
  2143. hardcode_into_libs=yes
  2144. if test ia64 = "$host_cpu"; then
  2145. # AIX 5 supports IA64
  2146. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2147. shlibpath_var=LD_LIBRARY_PATH
  2148. else
  2149. # With GCC up to 2.95.x, collect2 would create an import file
  2150. # for dependence libraries. The import file would start with
  2151. # the line '#! .'. This would cause the generated library to
  2152. # depend on '.', always an invalid library. This was fixed in
  2153. # development snapshots of GCC prior to 3.0.
  2154. case $host_os in
  2155. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2156. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2157. echo ' yes '
  2158. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2159. :
  2160. else
  2161. can_build_shared=no
  2162. fi
  2163. ;;
  2164. esac
  2165. # Using Import Files as archive members, it is possible to support
  2166. # filename-based versioning of shared library archives on AIX. While
  2167. # this would work for both with and without runtime linking, it will
  2168. # prevent static linking of such archives. So we do filename-based
  2169. # shared library versioning with .so extension only, which is used
  2170. # when both runtime linking and shared linking is enabled.
  2171. # Unfortunately, runtime linking may impact performance, so we do
  2172. # not want this to be the default eventually. Also, we use the
  2173. # versioned .so libs for executables only if there is the -brtl
  2174. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  2175. # To allow for filename-based versioning support, we need to create
  2176. # libNAME.so.V as an archive file, containing:
  2177. # *) an Import File, referring to the versioned filename of the
  2178. # archive as well as the shared archive member, telling the
  2179. # bitwidth (32 or 64) of that shared object, and providing the
  2180. # list of exported symbols of that shared object, eventually
  2181. # decorated with the 'weak' keyword
  2182. # *) the shared object with the F_LOADONLY flag set, to really avoid
  2183. # it being seen by the linker.
  2184. # At run time we better use the real file rather than another symlink,
  2185. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  2186. case $with_aix_soname,$aix_use_runtimelinking in
  2187. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2188. # soname into executable. Probably we can add versioning support to
  2189. # collect2, so additional links can be useful in future.
  2190. aix,yes) # traditional libtool
  2191. dynamic_linker='AIX unversionable lib.so'
  2192. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2193. # instead of lib<name>.a to let people know that these are not
  2194. # typical AIX shared libraries.
  2195. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2196. ;;
  2197. aix,no) # traditional AIX only
  2198. dynamic_linker='AIX lib.a[(]lib.so.V[)]'
  2199. # We preserve .a as extension for shared libraries through AIX4.2
  2200. # and later when we are not doing run time linking.
  2201. library_names_spec='$libname$release.a $libname.a'
  2202. soname_spec='$libname$release$shared_ext$major'
  2203. ;;
  2204. svr4,*) # full svr4 only
  2205. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
  2206. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2207. # We do not specify a path in Import Files, so LIBPATH fires.
  2208. shlibpath_overrides_runpath=yes
  2209. ;;
  2210. *,yes) # both, prefer svr4
  2211. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
  2212. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2213. # unpreferred sharedlib libNAME.a needs extra handling
  2214. postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
  2215. postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
  2216. # We do not specify a path in Import Files, so LIBPATH fires.
  2217. shlibpath_overrides_runpath=yes
  2218. ;;
  2219. *,no) # both, prefer aix
  2220. dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
  2221. library_names_spec='$libname$release.a $libname.a'
  2222. soname_spec='$libname$release$shared_ext$major'
  2223. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  2224. postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
  2225. postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
  2226. ;;
  2227. esac
  2228. shlibpath_var=LIBPATH
  2229. fi
  2230. ;;
  2231. amigaos*)
  2232. case $host_cpu in
  2233. powerpc)
  2234. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2235. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2236. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2237. ;;
  2238. m68k)
  2239. library_names_spec='$libname.ixlibrary $libname.a'
  2240. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2241. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
  2242. ;;
  2243. esac
  2244. ;;
  2245. beos*)
  2246. library_names_spec='$libname$shared_ext'
  2247. dynamic_linker="$host_os ld.so"
  2248. shlibpath_var=LIBRARY_PATH
  2249. ;;
  2250. bsdi[[45]]*)
  2251. version_type=linux # correct to gnu/linux during the next big refactor
  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. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2256. shlibpath_var=LD_LIBRARY_PATH
  2257. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2258. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2259. # the default ld.so.conf also contains /usr/contrib/lib and
  2260. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2261. # libtool to hard-code these into programs
  2262. ;;
  2263. cygwin* | mingw* | pw32* | cegcc*)
  2264. version_type=windows
  2265. shrext_cmds=.dll
  2266. need_version=no
  2267. need_lib_prefix=no
  2268. case $GCC,$cc_basename in
  2269. yes,*)
  2270. # gcc
  2271. library_names_spec='$libname.dll.a'
  2272. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2273. postinstall_cmds='base_file=`basename \$file`~
  2274. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2275. dldir=$destdir/`dirname \$dlpath`~
  2276. test -d \$dldir || mkdir -p \$dldir~
  2277. $install_prog $dir/$dlname \$dldir/$dlname~
  2278. chmod a+x \$dldir/$dlname~
  2279. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2280. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2281. fi'
  2282. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2283. dlpath=$dir/\$dldll~
  2284. $RM \$dlpath'
  2285. shlibpath_overrides_runpath=yes
  2286. case $host_os in
  2287. cygwin*)
  2288. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2289. soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2290. m4_if([$1], [],[
  2291. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2292. ;;
  2293. mingw* | cegcc*)
  2294. # MinGW DLLs use traditional 'lib' prefix
  2295. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2296. ;;
  2297. pw32*)
  2298. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2299. library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2300. ;;
  2301. esac
  2302. dynamic_linker='Win32 ld.exe'
  2303. ;;
  2304. *,cl* | *,icl*)
  2305. # Native MSVC or ICC
  2306. libname_spec='$name'
  2307. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2308. library_names_spec='$libname.dll.lib'
  2309. case $build_os in
  2310. mingw*)
  2311. sys_lib_search_path_spec=
  2312. lt_save_ifs=$IFS
  2313. IFS=';'
  2314. for lt_path in $LIB
  2315. do
  2316. IFS=$lt_save_ifs
  2317. # Let DOS variable expansion print the short 8.3 style file name.
  2318. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2319. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2320. done
  2321. IFS=$lt_save_ifs
  2322. # Convert to MSYS style.
  2323. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2324. ;;
  2325. cygwin*)
  2326. # Convert to unix form, then to dos form, then back to unix form
  2327. # but this time dos style (no spaces!) so that the unix form looks
  2328. # like /cygdrive/c/PROGRA~1:/cygdr...
  2329. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2330. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2331. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2332. ;;
  2333. *)
  2334. sys_lib_search_path_spec=$LIB
  2335. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2336. # It is most probably a Windows format PATH.
  2337. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2338. else
  2339. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2340. fi
  2341. # FIXME: find the short name or the path components, as spaces are
  2342. # common. (e.g. "Program Files" -> "PROGRA~1")
  2343. ;;
  2344. esac
  2345. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2346. postinstall_cmds='base_file=`basename \$file`~
  2347. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2348. dldir=$destdir/`dirname \$dlpath`~
  2349. test -d \$dldir || mkdir -p \$dldir~
  2350. $install_prog $dir/$dlname \$dldir/$dlname'
  2351. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2352. dlpath=$dir/\$dldll~
  2353. $RM \$dlpath'
  2354. shlibpath_overrides_runpath=yes
  2355. dynamic_linker='Win32 link.exe'
  2356. ;;
  2357. *)
  2358. # Assume MSVC and ICC wrapper
  2359. library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2360. dynamic_linker='Win32 ld.exe'
  2361. ;;
  2362. esac
  2363. # FIXME: first we should search . and the directory the executable is in
  2364. shlibpath_var=PATH
  2365. ;;
  2366. darwin* | rhapsody*)
  2367. dynamic_linker="$host_os dyld"
  2368. version_type=darwin
  2369. need_lib_prefix=no
  2370. need_version=no
  2371. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  2372. soname_spec='$libname$release$major$shared_ext'
  2373. shlibpath_overrides_runpath=yes
  2374. shlibpath_var=DYLD_LIBRARY_PATH
  2375. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2376. m4_if([$1], [],[
  2377. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2378. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2379. ;;
  2380. dgux*)
  2381. version_type=linux # correct to gnu/linux during the next big refactor
  2382. need_lib_prefix=no
  2383. need_version=no
  2384. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2385. soname_spec='$libname$release$shared_ext$major'
  2386. shlibpath_var=LD_LIBRARY_PATH
  2387. ;;
  2388. freebsd* | dragonfly* | midnightbsd*)
  2389. # DragonFly does not have aout. When/if they implement a new
  2390. # versioning mechanism, adjust this.
  2391. if test -x /usr/bin/objformat; then
  2392. objformat=`/usr/bin/objformat`
  2393. else
  2394. case $host_os in
  2395. freebsd[[23]].*) objformat=aout ;;
  2396. *) objformat=elf ;;
  2397. esac
  2398. fi
  2399. version_type=freebsd-$objformat
  2400. case $version_type in
  2401. freebsd-elf*)
  2402. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2403. soname_spec='$libname$release$shared_ext$major'
  2404. need_version=no
  2405. need_lib_prefix=no
  2406. ;;
  2407. freebsd-*)
  2408. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2409. need_version=yes
  2410. ;;
  2411. esac
  2412. shlibpath_var=LD_LIBRARY_PATH
  2413. case $host_os in
  2414. freebsd2.*)
  2415. shlibpath_overrides_runpath=yes
  2416. ;;
  2417. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2418. shlibpath_overrides_runpath=yes
  2419. hardcode_into_libs=yes
  2420. ;;
  2421. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2422. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2423. shlibpath_overrides_runpath=no
  2424. hardcode_into_libs=yes
  2425. ;;
  2426. *) # from 4.6 on, and DragonFly
  2427. shlibpath_overrides_runpath=yes
  2428. hardcode_into_libs=yes
  2429. ;;
  2430. esac
  2431. ;;
  2432. haiku*)
  2433. version_type=linux # correct to gnu/linux during the next big refactor
  2434. need_lib_prefix=no
  2435. need_version=no
  2436. dynamic_linker="$host_os runtime_loader"
  2437. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2438. soname_spec='$libname$release$shared_ext$major'
  2439. shlibpath_var=LIBRARY_PATH
  2440. shlibpath_overrides_runpath=no
  2441. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2442. hardcode_into_libs=yes
  2443. ;;
  2444. hpux9* | hpux10* | hpux11*)
  2445. # Give a soname corresponding to the major version so that dld.sl refuses to
  2446. # link against other versions.
  2447. version_type=sunos
  2448. need_lib_prefix=no
  2449. need_version=no
  2450. case $host_cpu in
  2451. ia64*)
  2452. shrext_cmds='.so'
  2453. hardcode_into_libs=yes
  2454. dynamic_linker="$host_os dld.so"
  2455. shlibpath_var=LD_LIBRARY_PATH
  2456. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2457. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2458. soname_spec='$libname$release$shared_ext$major'
  2459. if test 32 = "$HPUX_IA64_MODE"; then
  2460. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2461. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  2462. else
  2463. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2464. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  2465. fi
  2466. ;;
  2467. hppa*64*)
  2468. shrext_cmds='.sl'
  2469. hardcode_into_libs=yes
  2470. dynamic_linker="$host_os dld.sl"
  2471. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2472. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2473. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2474. soname_spec='$libname$release$shared_ext$major'
  2475. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2476. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2477. ;;
  2478. *)
  2479. shrext_cmds='.sl'
  2480. dynamic_linker="$host_os dld.sl"
  2481. shlibpath_var=SHLIB_PATH
  2482. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2483. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2484. soname_spec='$libname$release$shared_ext$major'
  2485. ;;
  2486. esac
  2487. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2488. postinstall_cmds='chmod 555 $lib'
  2489. # or fails outright, so override atomically:
  2490. install_override_mode=555
  2491. ;;
  2492. interix[[3-9]]*)
  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. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2499. shlibpath_var=LD_LIBRARY_PATH
  2500. shlibpath_overrides_runpath=no
  2501. hardcode_into_libs=yes
  2502. ;;
  2503. irix5* | irix6* | nonstopux*)
  2504. case $host_os in
  2505. nonstopux*) version_type=nonstopux ;;
  2506. *)
  2507. if test yes = "$lt_cv_prog_gnu_ld"; then
  2508. version_type=linux # correct to gnu/linux during the next big refactor
  2509. else
  2510. version_type=irix
  2511. fi ;;
  2512. esac
  2513. need_lib_prefix=no
  2514. need_version=no
  2515. soname_spec='$libname$release$shared_ext$major'
  2516. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  2517. case $host_os in
  2518. irix5* | nonstopux*)
  2519. libsuff= shlibsuff=
  2520. ;;
  2521. *)
  2522. case $LD in # libtool.m4 will add one of these switches to LD
  2523. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2524. libsuff= shlibsuff= libmagic=32-bit;;
  2525. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2526. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2527. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2528. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2529. *) libsuff= shlibsuff= libmagic=never-match;;
  2530. esac
  2531. ;;
  2532. esac
  2533. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2534. shlibpath_overrides_runpath=no
  2535. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  2536. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  2537. hardcode_into_libs=yes
  2538. ;;
  2539. # No shared lib support for Linux oldld, aout, or coff.
  2540. linux*oldld* | linux*aout* | linux*coff*)
  2541. dynamic_linker=no
  2542. ;;
  2543. linux*android*)
  2544. version_type=none # Android doesn't support versioned libraries.
  2545. need_lib_prefix=no
  2546. need_version=no
  2547. library_names_spec='$libname$release$shared_ext'
  2548. soname_spec='$libname$release$shared_ext'
  2549. finish_cmds=
  2550. shlibpath_var=LD_LIBRARY_PATH
  2551. shlibpath_overrides_runpath=yes
  2552. # This implies no fast_install, which is unacceptable.
  2553. # Some rework will be needed to allow for fast_install
  2554. # before this can be enabled.
  2555. hardcode_into_libs=yes
  2556. dynamic_linker='Android linker'
  2557. # Don't embed -rpath directories since the linker doesn't support them.
  2558. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2559. ;;
  2560. # This must be glibc/ELF.
  2561. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2562. version_type=linux # correct to gnu/linux during the next big refactor
  2563. need_lib_prefix=no
  2564. need_version=no
  2565. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2566. soname_spec='$libname$release$shared_ext$major'
  2567. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2568. shlibpath_var=LD_LIBRARY_PATH
  2569. shlibpath_overrides_runpath=no
  2570. # Some binutils ld are patched to set DT_RUNPATH
  2571. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2572. [lt_cv_shlibpath_overrides_runpath=no
  2573. save_LDFLAGS=$LDFLAGS
  2574. save_libdir=$libdir
  2575. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2576. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2577. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2578. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2579. [lt_cv_shlibpath_overrides_runpath=yes])])
  2580. LDFLAGS=$save_LDFLAGS
  2581. libdir=$save_libdir
  2582. ])
  2583. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2584. # This implies no fast_install, which is unacceptable.
  2585. # Some rework will be needed to allow for fast_install
  2586. # before this can be enabled.
  2587. hardcode_into_libs=yes
  2588. # Add ABI-specific directories to the system library path.
  2589. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  2590. # Ideally, we could use ldconfig to report *all* directores which are
  2591. # searched for libraries, however this is still not possible. Aside from not
  2592. # being certain /sbin/ldconfig is available, command
  2593. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  2594. # even though it is searched at run-time. Try to do the best guess by
  2595. # appending ld.so.conf contents (and includes) to the search path.
  2596. if test -f /etc/ld.so.conf; then
  2597. 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' ' '`
  2598. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2599. fi
  2600. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2601. # powerpc, because MkLinux only supported shared libraries with the
  2602. # GNU dynamic linker. Since this was broken with cross compilers,
  2603. # most powerpc-linux boxes support dynamic linking these days and
  2604. # people can always --disable-shared, the test was removed, and we
  2605. # assume the GNU/Linux dynamic linker is in use.
  2606. dynamic_linker='GNU/Linux ld.so'
  2607. ;;
  2608. netbsd*)
  2609. version_type=sunos
  2610. need_lib_prefix=no
  2611. need_version=no
  2612. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2613. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2614. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2615. dynamic_linker='NetBSD (a.out) ld.so'
  2616. else
  2617. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2618. soname_spec='$libname$release$shared_ext$major'
  2619. dynamic_linker='NetBSD ld.elf_so'
  2620. fi
  2621. shlibpath_var=LD_LIBRARY_PATH
  2622. shlibpath_overrides_runpath=yes
  2623. hardcode_into_libs=yes
  2624. ;;
  2625. newsos6)
  2626. version_type=linux # correct to gnu/linux during the next big refactor
  2627. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2628. shlibpath_var=LD_LIBRARY_PATH
  2629. shlibpath_overrides_runpath=yes
  2630. ;;
  2631. *nto* | *qnx*)
  2632. version_type=qnx
  2633. need_lib_prefix=no
  2634. need_version=no
  2635. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2636. soname_spec='$libname$release$shared_ext$major'
  2637. shlibpath_var=LD_LIBRARY_PATH
  2638. shlibpath_overrides_runpath=no
  2639. hardcode_into_libs=yes
  2640. dynamic_linker='ldqnx.so'
  2641. ;;
  2642. openbsd* | bitrig*)
  2643. version_type=sunos
  2644. sys_lib_dlsearch_path_spec=/usr/lib
  2645. need_lib_prefix=no
  2646. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  2647. need_version=no
  2648. else
  2649. need_version=yes
  2650. fi
  2651. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2652. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2653. shlibpath_var=LD_LIBRARY_PATH
  2654. shlibpath_overrides_runpath=yes
  2655. ;;
  2656. os2*)
  2657. libname_spec='$name'
  2658. version_type=windows
  2659. shrext_cmds=.dll
  2660. need_version=no
  2661. need_lib_prefix=no
  2662. # OS/2 can only load a DLL with a base name of 8 characters or less.
  2663. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  2664. v=$($ECHO $release$versuffix | tr -d .-);
  2665. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  2666. $ECHO $n$v`$shared_ext'
  2667. library_names_spec='${libname}_dll.$libext'
  2668. dynamic_linker='OS/2 ld.exe'
  2669. shlibpath_var=BEGINLIBPATH
  2670. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2671. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2672. postinstall_cmds='base_file=`basename \$file`~
  2673. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  2674. dldir=$destdir/`dirname \$dlpath`~
  2675. test -d \$dldir || mkdir -p \$dldir~
  2676. $install_prog $dir/$dlname \$dldir/$dlname~
  2677. chmod a+x \$dldir/$dlname~
  2678. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2679. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2680. fi'
  2681. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  2682. dlpath=$dir/\$dldll~
  2683. $RM \$dlpath'
  2684. ;;
  2685. osf3* | osf4* | osf5*)
  2686. version_type=osf
  2687. need_lib_prefix=no
  2688. need_version=no
  2689. soname_spec='$libname$release$shared_ext$major'
  2690. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2691. shlibpath_var=LD_LIBRARY_PATH
  2692. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2693. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2694. ;;
  2695. rdos*)
  2696. dynamic_linker=no
  2697. ;;
  2698. solaris*)
  2699. version_type=linux # correct to gnu/linux during the next big refactor
  2700. need_lib_prefix=no
  2701. need_version=no
  2702. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2703. soname_spec='$libname$release$shared_ext$major'
  2704. shlibpath_var=LD_LIBRARY_PATH
  2705. shlibpath_overrides_runpath=yes
  2706. hardcode_into_libs=yes
  2707. # ldd complains unless libraries are executable
  2708. postinstall_cmds='chmod +x $lib'
  2709. ;;
  2710. sunos4*)
  2711. version_type=sunos
  2712. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2713. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2714. shlibpath_var=LD_LIBRARY_PATH
  2715. shlibpath_overrides_runpath=yes
  2716. if test yes = "$with_gnu_ld"; then
  2717. need_lib_prefix=no
  2718. fi
  2719. need_version=yes
  2720. ;;
  2721. sysv4 | sysv4.3*)
  2722. version_type=linux # correct to gnu/linux during the next big refactor
  2723. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2724. soname_spec='$libname$release$shared_ext$major'
  2725. shlibpath_var=LD_LIBRARY_PATH
  2726. case $host_vendor in
  2727. sni)
  2728. shlibpath_overrides_runpath=no
  2729. need_lib_prefix=no
  2730. runpath_var=LD_RUN_PATH
  2731. ;;
  2732. siemens)
  2733. need_lib_prefix=no
  2734. ;;
  2735. motorola)
  2736. need_lib_prefix=no
  2737. need_version=no
  2738. shlibpath_overrides_runpath=no
  2739. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2740. ;;
  2741. esac
  2742. ;;
  2743. sysv4*MP*)
  2744. if test -d /usr/nec; then
  2745. version_type=linux # correct to gnu/linux during the next big refactor
  2746. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  2747. soname_spec='$libname$shared_ext.$major'
  2748. shlibpath_var=LD_LIBRARY_PATH
  2749. fi
  2750. ;;
  2751. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2752. version_type=sco
  2753. need_lib_prefix=no
  2754. need_version=no
  2755. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2756. soname_spec='$libname$release$shared_ext$major'
  2757. shlibpath_var=LD_LIBRARY_PATH
  2758. shlibpath_overrides_runpath=yes
  2759. hardcode_into_libs=yes
  2760. if test yes = "$with_gnu_ld"; then
  2761. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2762. else
  2763. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2764. case $host_os in
  2765. sco3.2v5*)
  2766. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2767. ;;
  2768. esac
  2769. fi
  2770. sys_lib_dlsearch_path_spec='/usr/lib'
  2771. ;;
  2772. tpf*)
  2773. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2774. version_type=linux # correct to gnu/linux during the next big refactor
  2775. need_lib_prefix=no
  2776. need_version=no
  2777. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2778. shlibpath_var=LD_LIBRARY_PATH
  2779. shlibpath_overrides_runpath=no
  2780. hardcode_into_libs=yes
  2781. ;;
  2782. uts4*)
  2783. version_type=linux # correct to gnu/linux during the next big refactor
  2784. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2785. soname_spec='$libname$release$shared_ext$major'
  2786. shlibpath_var=LD_LIBRARY_PATH
  2787. ;;
  2788. *)
  2789. dynamic_linker=no
  2790. ;;
  2791. esac
  2792. AC_MSG_RESULT([$dynamic_linker])
  2793. test no = "$dynamic_linker" && can_build_shared=no
  2794. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2795. if test yes = "$GCC"; then
  2796. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2797. fi
  2798. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  2799. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  2800. fi
  2801. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  2802. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  2803. fi
  2804. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  2805. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  2806. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  2807. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  2808. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  2809. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  2810. _LT_DECL([], [variables_saved_for_relink], [1],
  2811. [Variables whose values should be saved in libtool wrapper scripts and
  2812. restored at link time])
  2813. _LT_DECL([], [need_lib_prefix], [0],
  2814. [Do we need the "lib" prefix for modules?])
  2815. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2816. _LT_DECL([], [version_type], [0], [Library versioning type])
  2817. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2818. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2819. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2820. [Is shlibpath searched before the hard-coded library search path?])
  2821. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2822. _LT_DECL([], [library_names_spec], [1],
  2823. [[List of archive names. First name is the real one, the rest are links.
  2824. The last name is the one that the linker finds with -lNAME]])
  2825. _LT_DECL([], [soname_spec], [1],
  2826. [[The coded name of the library, if different from the real name]])
  2827. _LT_DECL([], [install_override_mode], [1],
  2828. [Permission mode override for installation of shared libraries])
  2829. _LT_DECL([], [postinstall_cmds], [2],
  2830. [Command to use after installation of a shared archive])
  2831. _LT_DECL([], [postuninstall_cmds], [2],
  2832. [Command to use after uninstallation of a shared archive])
  2833. _LT_DECL([], [finish_cmds], [2],
  2834. [Commands used to finish a libtool library installation in a directory])
  2835. _LT_DECL([], [finish_eval], [1],
  2836. [[As "finish_cmds", except a single script fragment to be evaled but
  2837. not shown]])
  2838. _LT_DECL([], [hardcode_into_libs], [0],
  2839. [Whether we should hardcode library paths into libraries])
  2840. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2841. [Compile-time system search path for libraries])
  2842. _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
  2843. [Detected run-time system search path for libraries])
  2844. _LT_DECL([], [configure_time_lt_sys_library_path], [2],
  2845. [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
  2846. ])# _LT_SYS_DYNAMIC_LINKER
  2847. # _LT_PATH_TOOL_PREFIX(TOOL)
  2848. # --------------------------
  2849. # find a file program that can recognize shared library
  2850. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2851. [m4_require([_LT_DECL_EGREP])dnl
  2852. AC_MSG_CHECKING([for $1])
  2853. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2854. [case $MAGIC_CMD in
  2855. [[\\/*] | ?:[\\/]*])
  2856. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  2857. ;;
  2858. *)
  2859. lt_save_MAGIC_CMD=$MAGIC_CMD
  2860. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2861. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2862. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2863. dnl not every word. This closes a longstanding sh security hole.
  2864. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2865. for ac_dir in $ac_dummy; do
  2866. IFS=$lt_save_ifs
  2867. test -z "$ac_dir" && ac_dir=.
  2868. if test -f "$ac_dir/$1"; then
  2869. lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  2870. if test -n "$file_magic_test_file"; then
  2871. case $deplibs_check_method in
  2872. "file_magic "*)
  2873. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2874. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2875. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2876. $EGREP "$file_magic_regex" > /dev/null; then
  2877. :
  2878. else
  2879. cat <<_LT_EOF 1>&2
  2880. *** Warning: the command libtool uses to detect shared libraries,
  2881. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2882. *** The result is that libtool may fail to recognize shared libraries
  2883. *** as such. This will affect the creation of libtool libraries that
  2884. *** depend on shared libraries, but programs linked with such libtool
  2885. *** libraries will work regardless of this problem. Nevertheless, you
  2886. *** may want to report the problem to your system manager and/or to
  2887. *** [email protected]
  2888. _LT_EOF
  2889. fi ;;
  2890. esac
  2891. fi
  2892. break
  2893. fi
  2894. done
  2895. IFS=$lt_save_ifs
  2896. MAGIC_CMD=$lt_save_MAGIC_CMD
  2897. ;;
  2898. esac])
  2899. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2900. if test -n "$MAGIC_CMD"; then
  2901. AC_MSG_RESULT($MAGIC_CMD)
  2902. else
  2903. AC_MSG_RESULT(no)
  2904. fi
  2905. _LT_DECL([], [MAGIC_CMD], [0],
  2906. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2907. ])# _LT_PATH_TOOL_PREFIX
  2908. # Old name:
  2909. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2910. dnl aclocal-1.4 backwards compatibility:
  2911. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2912. # _LT_PATH_MAGIC
  2913. # --------------
  2914. # find a file program that can recognize a shared library
  2915. m4_defun([_LT_PATH_MAGIC],
  2916. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2917. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2918. if test -n "$ac_tool_prefix"; then
  2919. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2920. else
  2921. MAGIC_CMD=:
  2922. fi
  2923. fi
  2924. ])# _LT_PATH_MAGIC
  2925. # LT_PATH_LD
  2926. # ----------
  2927. # find the pathname to the GNU or non-GNU linker
  2928. AC_DEFUN([LT_PATH_LD],
  2929. [AC_REQUIRE([AC_PROG_CC])dnl
  2930. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2931. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2932. m4_require([_LT_DECL_SED])dnl
  2933. m4_require([_LT_DECL_EGREP])dnl
  2934. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2935. AC_ARG_WITH([gnu-ld],
  2936. [AS_HELP_STRING([--with-gnu-ld],
  2937. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2938. [test no = "$withval" || with_gnu_ld=yes],
  2939. [with_gnu_ld=no])dnl
  2940. ac_prog=ld
  2941. if test yes = "$GCC"; then
  2942. # Check if gcc -print-prog-name=ld gives a path.
  2943. AC_MSG_CHECKING([for ld used by $CC])
  2944. case $host in
  2945. *-*-mingw*)
  2946. # gcc leaves a trailing carriage return, which upsets mingw
  2947. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2948. *)
  2949. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2950. esac
  2951. case $ac_prog in
  2952. # Accept absolute paths.
  2953. [[\\/]]* | ?:[[\\/]]*)
  2954. re_direlt='/[[^/]][[^/]]*/\.\./'
  2955. # Canonicalize the pathname of ld
  2956. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2957. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2958. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2959. done
  2960. test -z "$LD" && LD=$ac_prog
  2961. ;;
  2962. "")
  2963. # If it fails, then pretend we aren't using GCC.
  2964. ac_prog=ld
  2965. ;;
  2966. *)
  2967. # If it is relative, then search for the first ld in PATH.
  2968. with_gnu_ld=unknown
  2969. ;;
  2970. esac
  2971. elif test yes = "$with_gnu_ld"; then
  2972. AC_MSG_CHECKING([for GNU ld])
  2973. else
  2974. AC_MSG_CHECKING([for non-GNU ld])
  2975. fi
  2976. AC_CACHE_VAL(lt_cv_path_LD,
  2977. [if test -z "$LD"; then
  2978. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2979. for ac_dir in $PATH; do
  2980. IFS=$lt_save_ifs
  2981. test -z "$ac_dir" && ac_dir=.
  2982. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2983. lt_cv_path_LD=$ac_dir/$ac_prog
  2984. # Check to see if the program is GNU ld. I'd rather use --version,
  2985. # but apparently some variants of GNU ld only accept -v.
  2986. # Break only if it was the GNU/non-GNU ld that we prefer.
  2987. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2988. *GNU* | *'with BFD'*)
  2989. test no != "$with_gnu_ld" && break
  2990. ;;
  2991. *)
  2992. test yes != "$with_gnu_ld" && break
  2993. ;;
  2994. esac
  2995. fi
  2996. done
  2997. IFS=$lt_save_ifs
  2998. else
  2999. lt_cv_path_LD=$LD # Let the user override the test with a path.
  3000. fi])
  3001. LD=$lt_cv_path_LD
  3002. if test -n "$LD"; then
  3003. AC_MSG_RESULT($LD)
  3004. else
  3005. AC_MSG_RESULT(no)
  3006. fi
  3007. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3008. _LT_PATH_LD_GNU
  3009. AC_SUBST([LD])
  3010. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3011. ])# LT_PATH_LD
  3012. # Old names:
  3013. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3014. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3015. dnl aclocal-1.4 backwards compatibility:
  3016. dnl AC_DEFUN([AM_PROG_LD], [])
  3017. dnl AC_DEFUN([AC_PROG_LD], [])
  3018. # _LT_PATH_LD_GNU
  3019. #- --------------
  3020. m4_defun([_LT_PATH_LD_GNU],
  3021. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3022. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3023. case `$LD -v 2>&1 </dev/null` in
  3024. *GNU* | *'with BFD'*)
  3025. lt_cv_prog_gnu_ld=yes
  3026. ;;
  3027. *)
  3028. lt_cv_prog_gnu_ld=no
  3029. ;;
  3030. esac])
  3031. with_gnu_ld=$lt_cv_prog_gnu_ld
  3032. ])# _LT_PATH_LD_GNU
  3033. # _LT_CMD_RELOAD
  3034. # --------------
  3035. # find reload flag for linker
  3036. # -- PORTME Some linkers may need a different reload flag.
  3037. m4_defun([_LT_CMD_RELOAD],
  3038. [AC_CACHE_CHECK([for $LD option to reload object files],
  3039. lt_cv_ld_reload_flag,
  3040. [lt_cv_ld_reload_flag='-r'])
  3041. reload_flag=$lt_cv_ld_reload_flag
  3042. case $reload_flag in
  3043. "" | " "*) ;;
  3044. *) reload_flag=" $reload_flag" ;;
  3045. esac
  3046. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3047. case $host_os in
  3048. cygwin* | mingw* | pw32* | cegcc*)
  3049. if test yes != "$GCC"; then
  3050. reload_cmds=false
  3051. fi
  3052. ;;
  3053. darwin*)
  3054. if test yes = "$GCC"; then
  3055. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3056. else
  3057. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3058. fi
  3059. ;;
  3060. esac
  3061. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3062. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3063. ])# _LT_CMD_RELOAD
  3064. # _LT_PATH_DD
  3065. # -----------
  3066. # find a working dd
  3067. m4_defun([_LT_PATH_DD],
  3068. [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
  3069. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3070. cat conftest.i conftest.i >conftest2.i
  3071. : ${lt_DD:=$DD}
  3072. AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
  3073. [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3074. cmp -s conftest.i conftest.out \
  3075. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  3076. fi])
  3077. rm -f conftest.i conftest2.i conftest.out])
  3078. ])# _LT_PATH_DD
  3079. # _LT_CMD_TRUNCATE
  3080. # ----------------
  3081. # find command to truncate a binary pipe
  3082. m4_defun([_LT_CMD_TRUNCATE],
  3083. [m4_require([_LT_PATH_DD])
  3084. AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
  3085. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3086. cat conftest.i conftest.i >conftest2.i
  3087. lt_cv_truncate_bin=
  3088. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3089. cmp -s conftest.i conftest.out \
  3090. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  3091. fi
  3092. rm -f conftest.i conftest2.i conftest.out
  3093. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
  3094. _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
  3095. [Command to truncate a binary pipe])
  3096. ])# _LT_CMD_TRUNCATE
  3097. # _LT_CHECK_MAGIC_METHOD
  3098. # ----------------------
  3099. # how to check for library dependencies
  3100. # -- PORTME fill in with the dynamic library characteristics
  3101. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3102. [m4_require([_LT_DECL_EGREP])
  3103. m4_require([_LT_DECL_OBJDUMP])
  3104. AC_CACHE_CHECK([how to recognize dependent libraries],
  3105. lt_cv_deplibs_check_method,
  3106. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3107. lt_cv_file_magic_test_file=
  3108. lt_cv_deplibs_check_method='unknown'
  3109. # Need to set the preceding variable on all platforms that support
  3110. # interlibrary dependencies.
  3111. # 'none' -- dependencies not supported.
  3112. # 'unknown' -- same as none, but documents that we really don't know.
  3113. # 'pass_all' -- all dependencies passed with no checks.
  3114. # 'test_compile' -- check by making test program.
  3115. # 'file_magic [[regex]]' -- check by looking for files in library path
  3116. # that responds to the $file_magic_cmd with a given extended regex.
  3117. # If you have 'file' or equivalent on your system and you're not sure
  3118. # whether 'pass_all' will *always* work, you probably want this one.
  3119. case $host_os in
  3120. aix[[4-9]]*)
  3121. lt_cv_deplibs_check_method=pass_all
  3122. ;;
  3123. beos*)
  3124. lt_cv_deplibs_check_method=pass_all
  3125. ;;
  3126. bsdi[[45]]*)
  3127. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3128. lt_cv_file_magic_cmd='$FILECMD -L'
  3129. lt_cv_file_magic_test_file=/shlib/libc.so
  3130. ;;
  3131. cygwin*)
  3132. # func_win32_libid is a shell function defined in ltmain.sh
  3133. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3134. lt_cv_file_magic_cmd='func_win32_libid'
  3135. ;;
  3136. mingw* | pw32*)
  3137. # Base MSYS/MinGW do not provide the 'file' command needed by
  3138. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3139. # unless we find 'file', for example because we are cross-compiling.
  3140. if ( file / ) >/dev/null 2>&1; then
  3141. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3142. lt_cv_file_magic_cmd='func_win32_libid'
  3143. else
  3144. # Keep this pattern in sync with the one in func_win32_libid.
  3145. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3146. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3147. fi
  3148. ;;
  3149. cegcc*)
  3150. # use the weaker test based on 'objdump'. See mingw*.
  3151. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3152. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3153. ;;
  3154. darwin* | rhapsody*)
  3155. lt_cv_deplibs_check_method=pass_all
  3156. ;;
  3157. freebsd* | dragonfly* | midnightbsd*)
  3158. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3159. case $host_cpu in
  3160. i*86 )
  3161. # Not sure whether the presence of OpenBSD here was a mistake.
  3162. # Let's accept both of them until this is cleared up.
  3163. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3164. lt_cv_file_magic_cmd=$FILECMD
  3165. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3166. ;;
  3167. esac
  3168. else
  3169. lt_cv_deplibs_check_method=pass_all
  3170. fi
  3171. ;;
  3172. haiku*)
  3173. lt_cv_deplibs_check_method=pass_all
  3174. ;;
  3175. hpux10.20* | hpux11*)
  3176. lt_cv_file_magic_cmd=$FILECMD
  3177. case $host_cpu in
  3178. ia64*)
  3179. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3180. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3181. ;;
  3182. hppa*64*)
  3183. [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]']
  3184. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3185. ;;
  3186. *)
  3187. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3188. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3189. ;;
  3190. esac
  3191. ;;
  3192. interix[[3-9]]*)
  3193. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3194. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3195. ;;
  3196. irix5* | irix6* | nonstopux*)
  3197. case $LD in
  3198. *-32|*"-32 ") libmagic=32-bit;;
  3199. *-n32|*"-n32 ") libmagic=N32;;
  3200. *-64|*"-64 ") libmagic=64-bit;;
  3201. *) libmagic=never-match;;
  3202. esac
  3203. lt_cv_deplibs_check_method=pass_all
  3204. ;;
  3205. # This must be glibc/ELF.
  3206. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3207. lt_cv_deplibs_check_method=pass_all
  3208. ;;
  3209. netbsd*)
  3210. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3211. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3212. else
  3213. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3214. fi
  3215. ;;
  3216. newos6*)
  3217. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3218. lt_cv_file_magic_cmd=$FILECMD
  3219. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3220. ;;
  3221. *nto* | *qnx*)
  3222. lt_cv_deplibs_check_method=pass_all
  3223. ;;
  3224. openbsd* | bitrig*)
  3225. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3226. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3227. else
  3228. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3229. fi
  3230. ;;
  3231. osf3* | osf4* | osf5*)
  3232. lt_cv_deplibs_check_method=pass_all
  3233. ;;
  3234. rdos*)
  3235. lt_cv_deplibs_check_method=pass_all
  3236. ;;
  3237. solaris*)
  3238. lt_cv_deplibs_check_method=pass_all
  3239. ;;
  3240. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3241. lt_cv_deplibs_check_method=pass_all
  3242. ;;
  3243. sysv4 | sysv4.3*)
  3244. case $host_vendor in
  3245. motorola)
  3246. 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]]'
  3247. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3248. ;;
  3249. ncr)
  3250. lt_cv_deplibs_check_method=pass_all
  3251. ;;
  3252. sequent)
  3253. lt_cv_file_magic_cmd='/bin/file'
  3254. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3255. ;;
  3256. sni)
  3257. lt_cv_file_magic_cmd='/bin/file'
  3258. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3259. lt_cv_file_magic_test_file=/lib/libc.so
  3260. ;;
  3261. siemens)
  3262. lt_cv_deplibs_check_method=pass_all
  3263. ;;
  3264. pc)
  3265. lt_cv_deplibs_check_method=pass_all
  3266. ;;
  3267. esac
  3268. ;;
  3269. tpf*)
  3270. lt_cv_deplibs_check_method=pass_all
  3271. ;;
  3272. os2*)
  3273. lt_cv_deplibs_check_method=pass_all
  3274. ;;
  3275. esac
  3276. ])
  3277. file_magic_glob=
  3278. want_nocaseglob=no
  3279. if test "$build" = "$host"; then
  3280. case $host_os in
  3281. mingw* | pw32*)
  3282. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3283. want_nocaseglob=yes
  3284. else
  3285. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3286. fi
  3287. ;;
  3288. esac
  3289. fi
  3290. file_magic_cmd=$lt_cv_file_magic_cmd
  3291. deplibs_check_method=$lt_cv_deplibs_check_method
  3292. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3293. _LT_DECL([], [deplibs_check_method], [1],
  3294. [Method to check whether dependent libraries are shared objects])
  3295. _LT_DECL([], [file_magic_cmd], [1],
  3296. [Command to use when deplibs_check_method = "file_magic"])
  3297. _LT_DECL([], [file_magic_glob], [1],
  3298. [How to find potential files when deplibs_check_method = "file_magic"])
  3299. _LT_DECL([], [want_nocaseglob], [1],
  3300. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3301. ])# _LT_CHECK_MAGIC_METHOD
  3302. # LT_PATH_NM
  3303. # ----------
  3304. # find the pathname to a BSD- or MS-compatible name lister
  3305. AC_DEFUN([LT_PATH_NM],
  3306. [AC_REQUIRE([AC_PROG_CC])dnl
  3307. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3308. [if test -n "$NM"; then
  3309. # Let the user override the test.
  3310. lt_cv_path_NM=$NM
  3311. else
  3312. lt_nm_to_check=${ac_tool_prefix}nm
  3313. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3314. lt_nm_to_check="$lt_nm_to_check nm"
  3315. fi
  3316. for lt_tmp_nm in $lt_nm_to_check; do
  3317. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3318. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3319. IFS=$lt_save_ifs
  3320. test -z "$ac_dir" && ac_dir=.
  3321. tmp_nm=$ac_dir/$lt_tmp_nm
  3322. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3323. # Check to see if the nm accepts a BSD-compat flag.
  3324. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3325. # nm: unknown option "B" ignored
  3326. # Tru64's nm complains that /dev/null is an invalid object file
  3327. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3328. case $build_os in
  3329. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3330. *) lt_bad_file=/dev/null ;;
  3331. esac
  3332. case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
  3333. *$lt_bad_file* | *'Invalid file or object type'*)
  3334. lt_cv_path_NM="$tmp_nm -B"
  3335. break 2
  3336. ;;
  3337. *)
  3338. case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
  3339. */dev/null*)
  3340. lt_cv_path_NM="$tmp_nm -p"
  3341. break 2
  3342. ;;
  3343. *)
  3344. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3345. continue # so that we can try to find one that supports BSD flags
  3346. ;;
  3347. esac
  3348. ;;
  3349. esac
  3350. fi
  3351. done
  3352. IFS=$lt_save_ifs
  3353. done
  3354. : ${lt_cv_path_NM=no}
  3355. fi])
  3356. if test no != "$lt_cv_path_NM"; then
  3357. NM=$lt_cv_path_NM
  3358. else
  3359. # Didn't find any BSD compatible name lister, look for dumpbin.
  3360. if test -n "$DUMPBIN"; then :
  3361. # Let the user override the test.
  3362. else
  3363. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3364. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
  3365. *COFF*)
  3366. DUMPBIN="$DUMPBIN -symbols -headers"
  3367. ;;
  3368. *)
  3369. DUMPBIN=:
  3370. ;;
  3371. esac
  3372. fi
  3373. AC_SUBST([DUMPBIN])
  3374. if test : != "$DUMPBIN"; then
  3375. NM=$DUMPBIN
  3376. fi
  3377. fi
  3378. test -z "$NM" && NM=nm
  3379. AC_SUBST([NM])
  3380. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3381. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3382. [lt_cv_nm_interface="BSD nm"
  3383. echo "int some_variable = 0;" > conftest.$ac_ext
  3384. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3385. (eval "$ac_compile" 2>conftest.err)
  3386. cat conftest.err >&AS_MESSAGE_LOG_FD
  3387. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3388. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3389. cat conftest.err >&AS_MESSAGE_LOG_FD
  3390. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3391. cat conftest.out >&AS_MESSAGE_LOG_FD
  3392. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3393. lt_cv_nm_interface="MS dumpbin"
  3394. fi
  3395. rm -f conftest*])
  3396. ])# LT_PATH_NM
  3397. # Old names:
  3398. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3399. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3400. dnl aclocal-1.4 backwards compatibility:
  3401. dnl AC_DEFUN([AM_PROG_NM], [])
  3402. dnl AC_DEFUN([AC_PROG_NM], [])
  3403. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3404. # --------------------------------
  3405. # how to determine the name of the shared library
  3406. # associated with a specific link library.
  3407. # -- PORTME fill in with the dynamic library characteristics
  3408. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3409. [m4_require([_LT_DECL_EGREP])
  3410. m4_require([_LT_DECL_OBJDUMP])
  3411. m4_require([_LT_DECL_DLLTOOL])
  3412. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3413. lt_cv_sharedlib_from_linklib_cmd,
  3414. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3415. case $host_os in
  3416. cygwin* | mingw* | pw32* | cegcc*)
  3417. # two different shell functions defined in ltmain.sh;
  3418. # decide which one to use based on capabilities of $DLLTOOL
  3419. case `$DLLTOOL --help 2>&1` in
  3420. *--identify-strict*)
  3421. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3422. ;;
  3423. *)
  3424. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3425. ;;
  3426. esac
  3427. ;;
  3428. *)
  3429. # fallback: assume linklib IS sharedlib
  3430. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  3431. ;;
  3432. esac
  3433. ])
  3434. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3435. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3436. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3437. [Command to associate shared and link libraries])
  3438. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3439. # _LT_PATH_MANIFEST_TOOL
  3440. # ----------------------
  3441. # locate the manifest tool
  3442. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3443. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3444. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3445. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3446. [lt_cv_path_mainfest_tool=no
  3447. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3448. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3449. cat conftest.err >&AS_MESSAGE_LOG_FD
  3450. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3451. lt_cv_path_mainfest_tool=yes
  3452. fi
  3453. rm -f conftest*])
  3454. if test yes != "$lt_cv_path_mainfest_tool"; then
  3455. MANIFEST_TOOL=:
  3456. fi
  3457. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3458. ])# _LT_PATH_MANIFEST_TOOL
  3459. # _LT_DLL_DEF_P([FILE])
  3460. # ---------------------
  3461. # True iff FILE is a Windows DLL '.def' file.
  3462. # Keep in sync with func_dll_def_p in the libtool script
  3463. AC_DEFUN([_LT_DLL_DEF_P],
  3464. [dnl
  3465. test DEF = "`$SED -n dnl
  3466. -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
  3467. -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
  3468. -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
  3469. -e q dnl Only consider the first "real" line
  3470. $1`" dnl
  3471. ])# _LT_DLL_DEF_P
  3472. # LT_LIB_M
  3473. # --------
  3474. # check for math library
  3475. AC_DEFUN([LT_LIB_M],
  3476. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3477. LIBM=
  3478. case $host in
  3479. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3480. # These system don't have libm, or don't need it
  3481. ;;
  3482. *-ncr-sysv4.3*)
  3483. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  3484. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3485. ;;
  3486. *)
  3487. AC_CHECK_LIB(m, cos, LIBM=-lm)
  3488. ;;
  3489. esac
  3490. AC_SUBST([LIBM])
  3491. ])# LT_LIB_M
  3492. # Old name:
  3493. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3494. dnl aclocal-1.4 backwards compatibility:
  3495. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3496. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3497. # -------------------------------
  3498. m4_defun([_LT_COMPILER_NO_RTTI],
  3499. [m4_require([_LT_TAG_COMPILER])dnl
  3500. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3501. if test yes = "$GCC"; then
  3502. case $cc_basename in
  3503. nvcc*)
  3504. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3505. *)
  3506. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3507. esac
  3508. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3509. lt_cv_prog_compiler_rtti_exceptions,
  3510. [-fno-rtti -fno-exceptions], [],
  3511. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3512. fi
  3513. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3514. [Compiler flag to turn off builtin functions])
  3515. ])# _LT_COMPILER_NO_RTTI
  3516. # _LT_CMD_GLOBAL_SYMBOLS
  3517. # ----------------------
  3518. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3519. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3520. AC_REQUIRE([AC_PROG_CC])dnl
  3521. AC_REQUIRE([AC_PROG_AWK])dnl
  3522. AC_REQUIRE([LT_PATH_NM])dnl
  3523. AC_REQUIRE([LT_PATH_LD])dnl
  3524. m4_require([_LT_DECL_SED])dnl
  3525. m4_require([_LT_DECL_EGREP])dnl
  3526. m4_require([_LT_TAG_COMPILER])dnl
  3527. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3528. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3529. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3530. [
  3531. # These are sane defaults that work on at least a few old systems.
  3532. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3533. # Character class describing NM global symbol codes.
  3534. symcode='[[BCDEGRST]]'
  3535. # Regexp to match symbols that can be accessed directly from C.
  3536. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3537. # Define system-specific variables.
  3538. case $host_os in
  3539. aix*)
  3540. symcode='[[BCDT]]'
  3541. ;;
  3542. cygwin* | mingw* | pw32* | cegcc*)
  3543. symcode='[[ABCDGISTW]]'
  3544. ;;
  3545. hpux*)
  3546. if test ia64 = "$host_cpu"; then
  3547. symcode='[[ABCDEGRST]]'
  3548. fi
  3549. ;;
  3550. irix* | nonstopux*)
  3551. symcode='[[BCDEGRST]]'
  3552. ;;
  3553. osf*)
  3554. symcode='[[BCDEGQRST]]'
  3555. ;;
  3556. solaris*)
  3557. symcode='[[BDRT]]'
  3558. ;;
  3559. sco3.2v5*)
  3560. symcode='[[DT]]'
  3561. ;;
  3562. sysv4.2uw2*)
  3563. symcode='[[DT]]'
  3564. ;;
  3565. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3566. symcode='[[ABDT]]'
  3567. ;;
  3568. sysv4)
  3569. symcode='[[DFNSTU]]'
  3570. ;;
  3571. esac
  3572. # If we're using GNU nm, then use its standard symbol codes.
  3573. case `$NM -V 2>&1` in
  3574. *GNU* | *'with BFD'*)
  3575. symcode='[[ABCDGIRSTW]]' ;;
  3576. esac
  3577. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3578. # Gets list of data symbols to import.
  3579. lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
  3580. # Adjust the below global symbol transforms to fixup imported variables.
  3581. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  3582. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  3583. lt_c_name_lib_hook="\
  3584. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  3585. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  3586. else
  3587. # Disable hooks by default.
  3588. lt_cv_sys_global_symbol_to_import=
  3589. lt_cdecl_hook=
  3590. lt_c_name_hook=
  3591. lt_c_name_lib_hook=
  3592. fi
  3593. # Transform an extracted symbol line into a proper C declaration.
  3594. # Some systems (esp. on ia64) link data and code symbols differently,
  3595. # so use this general approach.
  3596. lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
  3597. $lt_cdecl_hook\
  3598. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  3599. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  3600. # Transform an extracted symbol line into symbol name and symbol address
  3601. lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
  3602. $lt_c_name_hook\
  3603. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3604. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  3605. # Transform an extracted symbol line into symbol name with lib prefix and
  3606. # symbol address.
  3607. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
  3608. $lt_c_name_lib_hook\
  3609. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3610. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  3611. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  3612. # Handle CRLF in mingw tool chain
  3613. opt_cr=
  3614. case $build_os in
  3615. mingw*)
  3616. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3617. ;;
  3618. esac
  3619. # Try without a prefix underscore, then with it.
  3620. for ac_symprfx in "" "_"; do
  3621. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3622. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3623. # Write the raw and C identifiers.
  3624. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3625. # Fake it for dumpbin and say T for any non-static function,
  3626. # D for any global variable and I for any imported variable.
  3627. # Also find C++ and __fastcall symbols from MSVC++ or ICC,
  3628. # which start with @ or ?.
  3629. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3630. " {last_section=section; section=\$ 3};"\
  3631. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3632. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3633. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  3634. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  3635. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  3636. " \$ 0!~/External *\|/{next};"\
  3637. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3638. " {if(hide[section]) next};"\
  3639. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  3640. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  3641. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  3642. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  3643. " ' prfx=^$ac_symprfx]"
  3644. else
  3645. lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3646. fi
  3647. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
  3648. # Check to see that the pipe works correctly.
  3649. pipe_works=no
  3650. rm -f conftest*
  3651. cat > conftest.$ac_ext <<_LT_EOF
  3652. #ifdef __cplusplus
  3653. extern "C" {
  3654. #endif
  3655. char nm_test_var;
  3656. void nm_test_func(void);
  3657. void nm_test_func(void){}
  3658. #ifdef __cplusplus
  3659. }
  3660. #endif
  3661. int main(){nm_test_var='a';nm_test_func();return(0);}
  3662. _LT_EOF
  3663. if AC_TRY_EVAL(ac_compile); then
  3664. # Now try to grab the symbols.
  3665. nlist=conftest.nm
  3666. if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
  3667. # Try sorting and uniquifying the output.
  3668. if sort "$nlist" | uniq > "$nlist"T; then
  3669. mv -f "$nlist"T "$nlist"
  3670. else
  3671. rm -f "$nlist"T
  3672. fi
  3673. # Make sure that we snagged all the symbols we need.
  3674. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3675. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3676. cat <<_LT_EOF > conftest.$ac_ext
  3677. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3678. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  3679. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3680. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3681. # define LT@&t@_DLSYM_CONST
  3682. #elif defined __osf__
  3683. /* This system does not cope well with relocations in const data. */
  3684. # define LT@&t@_DLSYM_CONST
  3685. #else
  3686. # define LT@&t@_DLSYM_CONST const
  3687. #endif
  3688. #ifdef __cplusplus
  3689. extern "C" {
  3690. #endif
  3691. _LT_EOF
  3692. # Now generate the symbol file.
  3693. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3694. cat <<_LT_EOF >> conftest.$ac_ext
  3695. /* The mapping between symbol names and symbols. */
  3696. LT@&t@_DLSYM_CONST struct {
  3697. const char *name;
  3698. void *address;
  3699. }
  3700. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3701. {
  3702. { "@PROGRAM@", (void *) 0 },
  3703. _LT_EOF
  3704. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3705. cat <<\_LT_EOF >> conftest.$ac_ext
  3706. {0, (void *) 0}
  3707. };
  3708. /* This works around a problem in FreeBSD linker */
  3709. #ifdef FREEBSD_WORKAROUND
  3710. static const void *lt_preloaded_setup() {
  3711. return lt__PROGRAM__LTX_preloaded_symbols;
  3712. }
  3713. #endif
  3714. #ifdef __cplusplus
  3715. }
  3716. #endif
  3717. _LT_EOF
  3718. # Now try linking the two files.
  3719. mv conftest.$ac_objext conftstm.$ac_objext
  3720. lt_globsym_save_LIBS=$LIBS
  3721. lt_globsym_save_CFLAGS=$CFLAGS
  3722. LIBS=conftstm.$ac_objext
  3723. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3724. if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  3725. pipe_works=yes
  3726. fi
  3727. LIBS=$lt_globsym_save_LIBS
  3728. CFLAGS=$lt_globsym_save_CFLAGS
  3729. else
  3730. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3731. fi
  3732. else
  3733. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3734. fi
  3735. else
  3736. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3737. fi
  3738. else
  3739. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3740. cat conftest.$ac_ext >&5
  3741. fi
  3742. rm -rf conftest* conftst*
  3743. # Do not use the global_symbol_pipe unless it works.
  3744. if test yes = "$pipe_works"; then
  3745. break
  3746. else
  3747. lt_cv_sys_global_symbol_pipe=
  3748. fi
  3749. done
  3750. ])
  3751. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3752. lt_cv_sys_global_symbol_to_cdecl=
  3753. fi
  3754. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3755. AC_MSG_RESULT(failed)
  3756. else
  3757. AC_MSG_RESULT(ok)
  3758. fi
  3759. # Response file support.
  3760. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3761. nm_file_list_spec='@'
  3762. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3763. nm_file_list_spec='@'
  3764. fi
  3765. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3766. [Take the output of nm and produce a listing of raw symbols and C names])
  3767. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3768. [Transform the output of nm in a proper C declaration])
  3769. _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
  3770. [Transform the output of nm into a list of symbols to manually relocate])
  3771. _LT_DECL([global_symbol_to_c_name_address],
  3772. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3773. [Transform the output of nm in a C name address pair])
  3774. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3775. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3776. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3777. _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
  3778. [The name lister interface])
  3779. _LT_DECL([], [nm_file_list_spec], [1],
  3780. [Specify filename containing input files for $NM])
  3781. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3782. # _LT_COMPILER_PIC([TAGNAME])
  3783. # ---------------------------
  3784. m4_defun([_LT_COMPILER_PIC],
  3785. [m4_require([_LT_TAG_COMPILER])dnl
  3786. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3787. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3788. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3789. m4_if([$1], [CXX], [
  3790. # C++ specific cases for pic, static, wl, etc.
  3791. if test yes = "$GXX"; then
  3792. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3793. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3794. case $host_os in
  3795. aix*)
  3796. # All AIX code is PIC.
  3797. if test ia64 = "$host_cpu"; then
  3798. # AIX 5 now supports IA64 processor
  3799. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3800. fi
  3801. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3802. ;;
  3803. amigaos*)
  3804. case $host_cpu in
  3805. powerpc)
  3806. # see comment about AmigaOS4 .so support
  3807. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3808. ;;
  3809. m68k)
  3810. # FIXME: we need at least 68020 code to build shared libraries, but
  3811. # adding the '-m68020' flag to GCC prevents building anything better,
  3812. # like '-m68040'.
  3813. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3814. ;;
  3815. esac
  3816. ;;
  3817. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3818. # PIC is the default for these OSes.
  3819. ;;
  3820. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3821. # This hack is so that the source file can tell whether it is being
  3822. # built for inclusion in a dll (and should export symbols for example).
  3823. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3824. # (--disable-auto-import) libraries
  3825. m4_if([$1], [GCJ], [],
  3826. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3827. case $host_os in
  3828. os2*)
  3829. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  3830. ;;
  3831. esac
  3832. ;;
  3833. darwin* | rhapsody*)
  3834. # PIC is the default on this platform
  3835. # Common symbols not allowed in MH_DYLIB files
  3836. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3837. ;;
  3838. *djgpp*)
  3839. # DJGPP does not support shared libraries at all
  3840. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3841. ;;
  3842. haiku*)
  3843. # PIC is the default for Haiku.
  3844. # The "-static" flag exists, but is broken.
  3845. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3846. ;;
  3847. interix[[3-9]]*)
  3848. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3849. # Instead, we relocate shared libraries at runtime.
  3850. ;;
  3851. sysv4*MP*)
  3852. if test -d /usr/nec; then
  3853. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3854. fi
  3855. ;;
  3856. hpux*)
  3857. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3858. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3859. # sets the default TLS model and affects inlining.
  3860. case $host_cpu in
  3861. hppa*64*)
  3862. ;;
  3863. *)
  3864. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3865. ;;
  3866. esac
  3867. ;;
  3868. *qnx* | *nto*)
  3869. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3870. # it will coredump.
  3871. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3872. ;;
  3873. *)
  3874. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3875. ;;
  3876. esac
  3877. else
  3878. case $host_os in
  3879. aix[[4-9]]*)
  3880. # All AIX code is PIC.
  3881. if test ia64 = "$host_cpu"; then
  3882. # AIX 5 now supports IA64 processor
  3883. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3884. else
  3885. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3886. fi
  3887. ;;
  3888. chorus*)
  3889. case $cc_basename in
  3890. cxch68*)
  3891. # Green Hills C++ Compiler
  3892. # _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"
  3893. ;;
  3894. esac
  3895. ;;
  3896. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3897. # This hack is so that the source file can tell whether it is being
  3898. # built for inclusion in a dll (and should export symbols for example).
  3899. m4_if([$1], [GCJ], [],
  3900. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3901. ;;
  3902. dgux*)
  3903. case $cc_basename in
  3904. ec++*)
  3905. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3906. ;;
  3907. ghcx*)
  3908. # Green Hills C++ Compiler
  3909. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3910. ;;
  3911. *)
  3912. ;;
  3913. esac
  3914. ;;
  3915. freebsd* | dragonfly* | midnightbsd*)
  3916. # FreeBSD uses GNU C++
  3917. ;;
  3918. hpux9* | hpux10* | hpux11*)
  3919. case $cc_basename in
  3920. CC*)
  3921. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3922. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3923. if test ia64 != "$host_cpu"; then
  3924. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3925. fi
  3926. ;;
  3927. aCC*)
  3928. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3929. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3930. case $host_cpu in
  3931. hppa*64*|ia64*)
  3932. # +Z the default
  3933. ;;
  3934. *)
  3935. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3936. ;;
  3937. esac
  3938. ;;
  3939. *)
  3940. ;;
  3941. esac
  3942. ;;
  3943. interix*)
  3944. # This is c89, which is MS Visual C++ (no shared libs)
  3945. # Anyone wants to do a port?
  3946. ;;
  3947. irix5* | irix6* | nonstopux*)
  3948. case $cc_basename in
  3949. CC*)
  3950. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3951. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3952. # CC pic flag -KPIC is the default.
  3953. ;;
  3954. *)
  3955. ;;
  3956. esac
  3957. ;;
  3958. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3959. case $cc_basename in
  3960. KCC*)
  3961. # KAI C++ Compiler
  3962. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3963. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3964. ;;
  3965. ecpc* )
  3966. # old Intel C++ for x86_64, which still supported -KPIC.
  3967. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3968. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3969. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3970. ;;
  3971. icpc* )
  3972. # Intel C++, used to be incompatible with GCC.
  3973. # ICC 10 doesn't accept -KPIC any more.
  3974. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3975. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3976. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3977. ;;
  3978. pgCC* | pgcpp*)
  3979. # Portland Group C++ compiler
  3980. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3981. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3982. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3983. ;;
  3984. cxx*)
  3985. # Compaq C++
  3986. # Make sure the PIC flag is empty. It appears that all Alpha
  3987. # Linux and Compaq Tru64 Unix objects are PIC.
  3988. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3989. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3990. ;;
  3991. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3992. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3993. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3994. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3995. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3996. ;;
  3997. *)
  3998. case `$CC -V 2>&1 | $SED 5q` in
  3999. *Sun\ C*)
  4000. # Sun C++ 5.9
  4001. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4002. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4003. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4004. ;;
  4005. esac
  4006. ;;
  4007. esac
  4008. ;;
  4009. lynxos*)
  4010. ;;
  4011. m88k*)
  4012. ;;
  4013. mvs*)
  4014. case $cc_basename in
  4015. cxx*)
  4016. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4017. ;;
  4018. *)
  4019. ;;
  4020. esac
  4021. ;;
  4022. netbsd*)
  4023. ;;
  4024. *qnx* | *nto*)
  4025. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4026. # it will coredump.
  4027. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4028. ;;
  4029. osf3* | osf4* | osf5*)
  4030. case $cc_basename in
  4031. KCC*)
  4032. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4033. ;;
  4034. RCC*)
  4035. # Rational C++ 2.4.1
  4036. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4037. ;;
  4038. cxx*)
  4039. # Digital/Compaq C++
  4040. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4041. # Make sure the PIC flag is empty. It appears that all Alpha
  4042. # Linux and Compaq Tru64 Unix objects are PIC.
  4043. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4044. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4045. ;;
  4046. *)
  4047. ;;
  4048. esac
  4049. ;;
  4050. psos*)
  4051. ;;
  4052. solaris*)
  4053. case $cc_basename in
  4054. CC* | sunCC*)
  4055. # Sun C++ 4.2, 5.x and Centerline C++
  4056. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4057. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4058. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4059. ;;
  4060. gcx*)
  4061. # Green Hills C++ Compiler
  4062. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4063. ;;
  4064. *)
  4065. ;;
  4066. esac
  4067. ;;
  4068. sunos4*)
  4069. case $cc_basename in
  4070. CC*)
  4071. # Sun C++ 4.x
  4072. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4073. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4074. ;;
  4075. lcc*)
  4076. # Lucid
  4077. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4078. ;;
  4079. *)
  4080. ;;
  4081. esac
  4082. ;;
  4083. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4084. case $cc_basename in
  4085. CC*)
  4086. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4087. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4088. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4089. ;;
  4090. esac
  4091. ;;
  4092. tandem*)
  4093. case $cc_basename in
  4094. NCC*)
  4095. # NonStop-UX NCC 3.20
  4096. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4097. ;;
  4098. *)
  4099. ;;
  4100. esac
  4101. ;;
  4102. vxworks*)
  4103. ;;
  4104. *)
  4105. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4106. ;;
  4107. esac
  4108. fi
  4109. ],
  4110. [
  4111. if test yes = "$GCC"; then
  4112. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4113. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4114. case $host_os in
  4115. aix*)
  4116. # All AIX code is PIC.
  4117. if test ia64 = "$host_cpu"; then
  4118. # AIX 5 now supports IA64 processor
  4119. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4120. fi
  4121. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4122. ;;
  4123. amigaos*)
  4124. case $host_cpu in
  4125. powerpc)
  4126. # see comment about AmigaOS4 .so support
  4127. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4128. ;;
  4129. m68k)
  4130. # FIXME: we need at least 68020 code to build shared libraries, but
  4131. # adding the '-m68020' flag to GCC prevents building anything better,
  4132. # like '-m68040'.
  4133. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4134. ;;
  4135. esac
  4136. ;;
  4137. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4138. # PIC is the default for these OSes.
  4139. ;;
  4140. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4141. # This hack is so that the source file can tell whether it is being
  4142. # built for inclusion in a dll (and should export symbols for example).
  4143. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4144. # (--disable-auto-import) libraries
  4145. m4_if([$1], [GCJ], [],
  4146. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4147. case $host_os in
  4148. os2*)
  4149. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4150. ;;
  4151. esac
  4152. ;;
  4153. darwin* | rhapsody*)
  4154. # PIC is the default on this platform
  4155. # Common symbols not allowed in MH_DYLIB files
  4156. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4157. ;;
  4158. haiku*)
  4159. # PIC is the default for Haiku.
  4160. # The "-static" flag exists, but is broken.
  4161. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4162. ;;
  4163. hpux*)
  4164. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4165. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4166. # sets the default TLS model and affects inlining.
  4167. case $host_cpu in
  4168. hppa*64*)
  4169. # +Z the default
  4170. ;;
  4171. *)
  4172. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4173. ;;
  4174. esac
  4175. ;;
  4176. interix[[3-9]]*)
  4177. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4178. # Instead, we relocate shared libraries at runtime.
  4179. ;;
  4180. msdosdjgpp*)
  4181. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4182. # on systems that don't support them.
  4183. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4184. enable_shared=no
  4185. ;;
  4186. *nto* | *qnx*)
  4187. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4188. # it will coredump.
  4189. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4190. ;;
  4191. sysv4*MP*)
  4192. if test -d /usr/nec; then
  4193. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4194. fi
  4195. ;;
  4196. *)
  4197. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4198. ;;
  4199. esac
  4200. case $cc_basename in
  4201. nvcc*) # Cuda Compiler Driver 2.2
  4202. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4203. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4204. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4205. fi
  4206. ;;
  4207. esac
  4208. else
  4209. # PORTME Check for flag to pass linker flags through the system compiler.
  4210. case $host_os in
  4211. aix*)
  4212. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4213. if test ia64 = "$host_cpu"; then
  4214. # AIX 5 now supports IA64 processor
  4215. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4216. else
  4217. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4218. fi
  4219. ;;
  4220. darwin* | rhapsody*)
  4221. # PIC is the default on this platform
  4222. # Common symbols not allowed in MH_DYLIB files
  4223. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4224. case $cc_basename in
  4225. nagfor*)
  4226. # NAG Fortran compiler
  4227. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4228. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4229. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4230. ;;
  4231. esac
  4232. ;;
  4233. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4234. # This hack is so that the source file can tell whether it is being
  4235. # built for inclusion in a dll (and should export symbols for example).
  4236. m4_if([$1], [GCJ], [],
  4237. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4238. case $host_os in
  4239. os2*)
  4240. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4241. ;;
  4242. esac
  4243. ;;
  4244. hpux9* | hpux10* | hpux11*)
  4245. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4246. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4247. # not for PA HP-UX.
  4248. case $host_cpu in
  4249. hppa*64*|ia64*)
  4250. # +Z the default
  4251. ;;
  4252. *)
  4253. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4254. ;;
  4255. esac
  4256. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4257. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4258. ;;
  4259. irix5* | irix6* | nonstopux*)
  4260. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4261. # PIC (with -KPIC) is the default.
  4262. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4263. ;;
  4264. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4265. case $cc_basename in
  4266. # old Intel for x86_64, which still supported -KPIC.
  4267. ecc*)
  4268. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4269. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4270. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4271. ;;
  4272. # icc used to be incompatible with GCC.
  4273. # ICC 10 doesn't accept -KPIC any more.
  4274. icc* | ifort*)
  4275. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4276. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4277. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4278. ;;
  4279. # Lahey Fortran 8.1.
  4280. lf95*)
  4281. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4282. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4283. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4284. ;;
  4285. nagfor*)
  4286. # NAG Fortran compiler
  4287. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4288. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4289. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4290. ;;
  4291. tcc*)
  4292. # Fabrice Bellard et al's Tiny C Compiler
  4293. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4294. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4295. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4296. ;;
  4297. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4298. # Portland Group compilers (*not* the Pentium gcc compiler,
  4299. # which looks to be a dead project)
  4300. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4301. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4302. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4303. ;;
  4304. ccc*)
  4305. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4306. # All Alpha code is PIC.
  4307. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4308. ;;
  4309. xl* | bgxl* | bgf* | mpixl*)
  4310. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4311. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4312. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4313. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4314. ;;
  4315. *)
  4316. case `$CC -V 2>&1 | $SED 5q` in
  4317. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4318. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4319. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4320. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4321. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4322. ;;
  4323. *Sun\ F* | *Sun*Fortran*)
  4324. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4325. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4326. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4327. ;;
  4328. *Sun\ C*)
  4329. # Sun C 5.9
  4330. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4331. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4332. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4333. ;;
  4334. *Intel*\ [[CF]]*Compiler*)
  4335. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4336. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4337. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4338. ;;
  4339. *Portland\ Group*)
  4340. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4341. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4342. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4343. ;;
  4344. esac
  4345. ;;
  4346. esac
  4347. ;;
  4348. newsos6)
  4349. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4350. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4351. ;;
  4352. *nto* | *qnx*)
  4353. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4354. # it will coredump.
  4355. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4356. ;;
  4357. osf3* | osf4* | osf5*)
  4358. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4359. # All OSF/1 code is PIC.
  4360. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4361. ;;
  4362. rdos*)
  4363. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4364. ;;
  4365. solaris*)
  4366. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4367. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4368. case $cc_basename in
  4369. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4370. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4371. *)
  4372. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4373. esac
  4374. ;;
  4375. sunos4*)
  4376. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4377. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4378. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4379. ;;
  4380. sysv4 | sysv4.2uw2* | sysv4.3*)
  4381. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4382. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4383. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4384. ;;
  4385. sysv4*MP*)
  4386. if test -d /usr/nec; then
  4387. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4388. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4389. fi
  4390. ;;
  4391. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4392. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4393. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4394. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4395. ;;
  4396. unicos*)
  4397. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4398. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4399. ;;
  4400. uts4*)
  4401. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4402. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4403. ;;
  4404. *)
  4405. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4406. ;;
  4407. esac
  4408. fi
  4409. ])
  4410. case $host_os in
  4411. # For platforms that do not support PIC, -DPIC is meaningless:
  4412. *djgpp*)
  4413. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4414. ;;
  4415. *)
  4416. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4417. ;;
  4418. esac
  4419. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4420. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4421. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4422. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4423. #
  4424. # Check to make sure the PIC flag actually works.
  4425. #
  4426. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4427. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4428. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4429. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4430. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4431. "" | " "*) ;;
  4432. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4433. esac],
  4434. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4435. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4436. fi
  4437. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4438. [Additional compiler flags for building library objects])
  4439. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4440. [How to pass a linker flag through the compiler])
  4441. #
  4442. # Check to make sure the static flag actually works.
  4443. #
  4444. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4445. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4446. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4447. $lt_tmp_static_flag,
  4448. [],
  4449. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4450. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4451. [Compiler flag to prevent dynamic linking])
  4452. ])# _LT_COMPILER_PIC
  4453. # _LT_LINKER_SHLIBS([TAGNAME])
  4454. # ----------------------------
  4455. # See if the linker supports building shared libraries.
  4456. m4_defun([_LT_LINKER_SHLIBS],
  4457. [AC_REQUIRE([LT_PATH_LD])dnl
  4458. AC_REQUIRE([LT_PATH_NM])dnl
  4459. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4460. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4461. m4_require([_LT_DECL_EGREP])dnl
  4462. m4_require([_LT_DECL_SED])dnl
  4463. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4464. m4_require([_LT_TAG_COMPILER])dnl
  4465. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4466. m4_if([$1], [CXX], [
  4467. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4468. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4469. case $host_os in
  4470. aix[[4-9]]*)
  4471. # If we're using GNU nm, then we don't want the "-C" option.
  4472. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4473. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4474. # weak defined symbols like other global defined symbols, whereas
  4475. # GNU nm marks them as "W".
  4476. # While the 'weak' keyword is ignored in the Export File, we need
  4477. # it in the Import File for the 'aix-soname' feature, so we have
  4478. # to replace the "-B" option with "-P" for AIX nm.
  4479. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4480. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  4481. else
  4482. _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  4483. fi
  4484. ;;
  4485. pw32*)
  4486. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  4487. ;;
  4488. cygwin* | mingw* | cegcc*)
  4489. case $cc_basename in
  4490. cl* | icl*)
  4491. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4492. ;;
  4493. *)
  4494. _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'
  4495. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4496. ;;
  4497. esac
  4498. ;;
  4499. *)
  4500. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4501. ;;
  4502. esac
  4503. ], [
  4504. runpath_var=
  4505. _LT_TAGVAR(allow_undefined_flag, $1)=
  4506. _LT_TAGVAR(always_export_symbols, $1)=no
  4507. _LT_TAGVAR(archive_cmds, $1)=
  4508. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4509. _LT_TAGVAR(compiler_needs_object, $1)=no
  4510. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4511. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4512. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4513. _LT_TAGVAR(hardcode_automatic, $1)=no
  4514. _LT_TAGVAR(hardcode_direct, $1)=no
  4515. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4516. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4517. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4518. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4519. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4520. _LT_TAGVAR(inherit_rpath, $1)=no
  4521. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4522. _LT_TAGVAR(module_cmds, $1)=
  4523. _LT_TAGVAR(module_expsym_cmds, $1)=
  4524. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4525. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4526. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4527. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4528. # include_expsyms should be a list of space-separated symbols to be *always*
  4529. # included in the symbol list
  4530. _LT_TAGVAR(include_expsyms, $1)=
  4531. # exclude_expsyms can be an extended regexp of symbols to exclude
  4532. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  4533. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  4534. # as well as any symbol that contains 'd'.
  4535. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4536. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4537. # platforms (ab)use it in PIC code, but their linkers get confused if
  4538. # the symbol is explicitly referenced. Since portable code cannot
  4539. # rely on this symbol name, it's probably fine to never include it in
  4540. # preloaded symbol tables.
  4541. # Exclude shared library initialization/finalization symbols.
  4542. dnl Note also adjust exclude_expsyms for C++ above.
  4543. extract_expsyms_cmds=
  4544. case $host_os in
  4545. cygwin* | mingw* | pw32* | cegcc*)
  4546. # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
  4547. # When not using gcc, we currently assume that we are using
  4548. # Microsoft Visual C++ or Intel C++ Compiler.
  4549. if test yes != "$GCC"; then
  4550. with_gnu_ld=no
  4551. fi
  4552. ;;
  4553. interix*)
  4554. # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
  4555. with_gnu_ld=yes
  4556. ;;
  4557. openbsd* | bitrig*)
  4558. with_gnu_ld=no
  4559. ;;
  4560. esac
  4561. _LT_TAGVAR(ld_shlibs, $1)=yes
  4562. # On some targets, GNU ld is compatible enough with the native linker
  4563. # that we're better off using the native interface for both.
  4564. lt_use_gnu_ld_interface=no
  4565. if test yes = "$with_gnu_ld"; then
  4566. case $host_os in
  4567. aix*)
  4568. # The AIX port of GNU ld has always aspired to compatibility
  4569. # with the native linker. However, as the warning in the GNU ld
  4570. # block says, versions before 2.19.5* couldn't really create working
  4571. # shared libraries, regardless of the interface used.
  4572. case `$LD -v 2>&1` in
  4573. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4574. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4575. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4576. *)
  4577. lt_use_gnu_ld_interface=yes
  4578. ;;
  4579. esac
  4580. ;;
  4581. *)
  4582. lt_use_gnu_ld_interface=yes
  4583. ;;
  4584. esac
  4585. fi
  4586. if test yes = "$lt_use_gnu_ld_interface"; then
  4587. # If archive_cmds runs LD, not CC, wlarc should be empty
  4588. wlarc='$wl'
  4589. # Set some defaults for GNU ld with shared library support. These
  4590. # are reset later if shared libraries are not supported. Putting them
  4591. # here allows them to be overridden if necessary.
  4592. runpath_var=LD_RUN_PATH
  4593. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4594. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  4595. # ancient GNU ld didn't support --whole-archive et. al.
  4596. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4597. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  4598. else
  4599. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4600. fi
  4601. supports_anon_versioning=no
  4602. case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in
  4603. *GNU\ gold*) supports_anon_versioning=yes ;;
  4604. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4605. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4606. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4607. *\ 2.11.*) ;; # other 2.11 versions
  4608. *) supports_anon_versioning=yes ;;
  4609. esac
  4610. # See if GNU ld supports shared libraries.
  4611. case $host_os in
  4612. aix[[3-9]]*)
  4613. # On AIX/PPC, the GNU linker is very broken
  4614. if test ia64 != "$host_cpu"; then
  4615. _LT_TAGVAR(ld_shlibs, $1)=no
  4616. cat <<_LT_EOF 1>&2
  4617. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4618. *** to be unable to reliably create shared libraries on AIX.
  4619. *** Therefore, libtool is disabling shared libraries support. If you
  4620. *** really care for shared libraries, you may want to install binutils
  4621. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4622. *** You will then need to restart the configuration process.
  4623. _LT_EOF
  4624. fi
  4625. ;;
  4626. amigaos*)
  4627. case $host_cpu in
  4628. powerpc)
  4629. # see comment about AmigaOS4 .so support
  4630. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4631. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4632. ;;
  4633. m68k)
  4634. _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)'
  4635. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4636. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4637. ;;
  4638. esac
  4639. ;;
  4640. beos*)
  4641. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4642. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4643. # Joseph Beckenbach <[email protected]> says some releases of gcc
  4644. # support --undefined. This deserves some investigation. FIXME
  4645. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4646. else
  4647. _LT_TAGVAR(ld_shlibs, $1)=no
  4648. fi
  4649. ;;
  4650. cygwin* | mingw* | pw32* | cegcc*)
  4651. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4652. # as there is no search path for DLLs.
  4653. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4654. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  4655. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4656. _LT_TAGVAR(always_export_symbols, $1)=no
  4657. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4658. _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'
  4659. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4660. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4661. _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'
  4662. # If the export-symbols file already is a .def file, use it as
  4663. # is; otherwise, prepend EXPORTS...
  4664. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4665. cp $export_symbols $output_objdir/$soname.def;
  4666. else
  4667. echo EXPORTS > $output_objdir/$soname.def;
  4668. cat $export_symbols >> $output_objdir/$soname.def;
  4669. fi~
  4670. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4671. else
  4672. _LT_TAGVAR(ld_shlibs, $1)=no
  4673. fi
  4674. ;;
  4675. haiku*)
  4676. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4677. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4678. ;;
  4679. os2*)
  4680. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4681. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4682. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4683. shrext_cmds=.dll
  4684. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4685. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4686. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4687. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4688. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  4689. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4690. emximp -o $lib $output_objdir/$libname.def'
  4691. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4692. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4693. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4694. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4695. prefix_cmds="$SED"~
  4696. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  4697. prefix_cmds="$prefix_cmds -e 1d";
  4698. fi~
  4699. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  4700. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  4701. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4702. emximp -o $lib $output_objdir/$libname.def'
  4703. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  4704. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4705. _LT_TAGVAR(file_list_spec, $1)='@'
  4706. ;;
  4707. interix[[3-9]]*)
  4708. _LT_TAGVAR(hardcode_direct, $1)=no
  4709. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4710. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  4711. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4712. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4713. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4714. # default) and relocated if they conflict, which is a slow very memory
  4715. # consuming and fragmenting process. To avoid this, we pick a random,
  4716. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4717. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4718. _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'
  4719. _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'
  4720. ;;
  4721. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4722. tmp_diet=no
  4723. if test linux-dietlibc = "$host_os"; then
  4724. case $cc_basename in
  4725. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4726. esac
  4727. fi
  4728. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4729. && test no = "$tmp_diet"
  4730. then
  4731. tmp_addflag=' $pic_flag'
  4732. tmp_sharedflag='-shared'
  4733. case $cc_basename,$host_cpu in
  4734. pgcc*) # Portland Group C compiler
  4735. _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'
  4736. tmp_addflag=' $pic_flag'
  4737. ;;
  4738. pgf77* | pgf90* | pgf95* | pgfortran*)
  4739. # Portland Group f77 and f90 compilers
  4740. _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'
  4741. tmp_addflag=' $pic_flag -Mnomain' ;;
  4742. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4743. tmp_addflag=' -i_dynamic' ;;
  4744. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4745. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4746. ifc* | ifort*) # Intel Fortran compiler
  4747. tmp_addflag=' -nofor_main' ;;
  4748. lf95*) # Lahey Fortran 8.1
  4749. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4750. tmp_sharedflag='--shared' ;;
  4751. nagfor*) # NAGFOR 5.3
  4752. tmp_sharedflag='-Wl,-shared' ;;
  4753. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4754. tmp_sharedflag='-qmkshrobj'
  4755. tmp_addflag= ;;
  4756. nvcc*) # Cuda Compiler Driver 2.2
  4757. _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'
  4758. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4759. ;;
  4760. esac
  4761. case `$CC -V 2>&1 | $SED 5q` in
  4762. *Sun\ C*) # Sun C 5.9
  4763. _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'
  4764. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4765. tmp_sharedflag='-G' ;;
  4766. *Sun\ F*) # Sun Fortran 8.3
  4767. tmp_sharedflag='-G' ;;
  4768. esac
  4769. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4770. if test yes = "$supports_anon_versioning"; then
  4771. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4772. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4773. echo "local: *; };" >> $output_objdir/$libname.ver~
  4774. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  4775. fi
  4776. case $cc_basename in
  4777. tcc*)
  4778. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
  4779. ;;
  4780. xlf* | bgf* | bgxlf* | mpixlf*)
  4781. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4782. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4783. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4784. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4785. if test yes = "$supports_anon_versioning"; then
  4786. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4787. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4788. echo "local: *; };" >> $output_objdir/$libname.ver~
  4789. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4790. fi
  4791. ;;
  4792. esac
  4793. else
  4794. _LT_TAGVAR(ld_shlibs, $1)=no
  4795. fi
  4796. ;;
  4797. netbsd*)
  4798. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4799. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4800. wlarc=
  4801. else
  4802. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4803. _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'
  4804. fi
  4805. ;;
  4806. solaris*)
  4807. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4808. _LT_TAGVAR(ld_shlibs, $1)=no
  4809. cat <<_LT_EOF 1>&2
  4810. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4811. *** create shared libraries on Solaris systems. Therefore, libtool
  4812. *** is disabling shared libraries support. We urge you to upgrade GNU
  4813. *** binutils to release 2.9.1 or newer. Another option is to modify
  4814. *** your PATH or compiler configuration so that the native linker is
  4815. *** used, and then restart.
  4816. _LT_EOF
  4817. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4818. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4819. _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'
  4820. else
  4821. _LT_TAGVAR(ld_shlibs, $1)=no
  4822. fi
  4823. ;;
  4824. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4825. case `$LD -v 2>&1` in
  4826. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4827. _LT_TAGVAR(ld_shlibs, $1)=no
  4828. cat <<_LT_EOF 1>&2
  4829. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  4830. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4831. *** is disabling shared libraries support. We urge you to upgrade GNU
  4832. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4833. *** your PATH or compiler configuration so that the native linker is
  4834. *** used, and then restart.
  4835. _LT_EOF
  4836. ;;
  4837. *)
  4838. # For security reasons, it is highly recommended that you always
  4839. # use absolute paths for naming shared libraries, and exclude the
  4840. # DT_RUNPATH tag from executables and libraries. But doing so
  4841. # requires that you compile everything twice, which is a pain.
  4842. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4843. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4844. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4845. _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'
  4846. else
  4847. _LT_TAGVAR(ld_shlibs, $1)=no
  4848. fi
  4849. ;;
  4850. esac
  4851. ;;
  4852. sunos4*)
  4853. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4854. wlarc=
  4855. _LT_TAGVAR(hardcode_direct, $1)=yes
  4856. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4857. ;;
  4858. *)
  4859. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4860. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4861. _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'
  4862. else
  4863. _LT_TAGVAR(ld_shlibs, $1)=no
  4864. fi
  4865. ;;
  4866. esac
  4867. if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  4868. runpath_var=
  4869. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4870. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4871. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4872. fi
  4873. else
  4874. # PORTME fill in a description of your system's linker (not GNU ld)
  4875. case $host_os in
  4876. aix3*)
  4877. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4878. _LT_TAGVAR(always_export_symbols, $1)=yes
  4879. _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'
  4880. # Note: this linker hardcodes the directories in LIBPATH if there
  4881. # are no directories specified by -L.
  4882. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4883. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  4884. # Neither direct hardcoding nor static linking is supported with a
  4885. # broken collect2.
  4886. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4887. fi
  4888. ;;
  4889. aix[[4-9]]*)
  4890. if test ia64 = "$host_cpu"; then
  4891. # On IA64, the linker does run time linking by default, so we don't
  4892. # have to do anything special.
  4893. aix_use_runtimelinking=no
  4894. exp_sym_flag='-Bexport'
  4895. no_entry_flag=
  4896. else
  4897. # If we're using GNU nm, then we don't want the "-C" option.
  4898. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4899. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4900. # weak defined symbols like other global defined symbols, whereas
  4901. # GNU nm marks them as "W".
  4902. # While the 'weak' keyword is ignored in the Export File, we need
  4903. # it in the Import File for the 'aix-soname' feature, so we have
  4904. # to replace the "-B" option with "-P" for AIX nm.
  4905. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4906. _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
  4907. else
  4908. _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
  4909. fi
  4910. aix_use_runtimelinking=no
  4911. # Test if we are trying to use run time linking or normal
  4912. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4913. # have runtime linking enabled, and use it for executables.
  4914. # For shared libraries, we enable/disable runtime linking
  4915. # depending on the kind of the shared library created -
  4916. # when "with_aix_soname,aix_use_runtimelinking" is:
  4917. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  4918. # "aix,yes" lib.so shared, rtl:yes, for executables
  4919. # lib.a static archive
  4920. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  4921. # lib.a(lib.so.V) shared, rtl:no, for executables
  4922. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  4923. # lib.a(lib.so.V) shared, rtl:no
  4924. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  4925. # lib.a static archive
  4926. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4927. for ld_flag in $LDFLAGS; do
  4928. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  4929. aix_use_runtimelinking=yes
  4930. break
  4931. fi
  4932. done
  4933. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  4934. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  4935. # so we don't have lib.a shared libs to link our executables.
  4936. # We have to force runtime linking in this case.
  4937. aix_use_runtimelinking=yes
  4938. LDFLAGS="$LDFLAGS -Wl,-brtl"
  4939. fi
  4940. ;;
  4941. esac
  4942. exp_sym_flag='-bexport'
  4943. no_entry_flag='-bnoentry'
  4944. fi
  4945. # When large executables or shared objects are built, AIX ld can
  4946. # have problems creating the table of contents. If linking a library
  4947. # or program results in "error TOC overflow" add -mminimal-toc to
  4948. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4949. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4950. _LT_TAGVAR(archive_cmds, $1)=''
  4951. _LT_TAGVAR(hardcode_direct, $1)=yes
  4952. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4953. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4954. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4955. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  4956. case $with_aix_soname,$aix_use_runtimelinking in
  4957. aix,*) ;; # traditional, no import file
  4958. svr4,* | *,yes) # use import file
  4959. # The Import File defines what to hardcode.
  4960. _LT_TAGVAR(hardcode_direct, $1)=no
  4961. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4962. ;;
  4963. esac
  4964. if test yes = "$GCC"; then
  4965. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4966. # We only want to do this on AIX 4.2 and lower, the check
  4967. # below for broken collect2 doesn't work under 4.3+
  4968. collect2name=`$CC -print-prog-name=collect2`
  4969. if test -f "$collect2name" &&
  4970. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4971. then
  4972. # We have reworked collect2
  4973. :
  4974. else
  4975. # We have old collect2
  4976. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4977. # It fails to find uninstalled libraries when the uninstalled
  4978. # path is not listed in the libpath. Setting hardcode_minus_L
  4979. # to unsupported forces relinking
  4980. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4981. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4982. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4983. fi
  4984. ;;
  4985. esac
  4986. shared_flag='-shared'
  4987. if test yes = "$aix_use_runtimelinking"; then
  4988. shared_flag="$shared_flag "'$wl-G'
  4989. fi
  4990. # Need to ensure runtime linking is disabled for the traditional
  4991. # shared library, or the linker may eventually find shared libraries
  4992. # /with/ Import File - we do not want to mix them.
  4993. shared_flag_aix='-shared'
  4994. shared_flag_svr4='-shared $wl-G'
  4995. else
  4996. # not using gcc
  4997. if test ia64 = "$host_cpu"; then
  4998. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4999. # chokes on -Wl,-G. The following line is correct:
  5000. shared_flag='-G'
  5001. else
  5002. if test yes = "$aix_use_runtimelinking"; then
  5003. shared_flag='$wl-G'
  5004. else
  5005. shared_flag='$wl-bM:SRE'
  5006. fi
  5007. shared_flag_aix='$wl-bM:SRE'
  5008. shared_flag_svr4='$wl-G'
  5009. fi
  5010. fi
  5011. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5012. # It seems that -bexpall does not export symbols beginning with
  5013. # underscore (_), so it is better to generate a list of symbols to export.
  5014. _LT_TAGVAR(always_export_symbols, $1)=yes
  5015. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  5016. # Warning - without using the other runtime loading flags (-brtl),
  5017. # -berok will link without error, but may produce a broken library.
  5018. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5019. # Determine the default libpath from the value encoded in an
  5020. # empty executable.
  5021. _LT_SYS_MODULE_PATH_AIX([$1])
  5022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5023. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  5024. else
  5025. if test ia64 = "$host_cpu"; then
  5026. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5027. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5028. _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"
  5029. else
  5030. # Determine the default libpath from the value encoded in an
  5031. # empty executable.
  5032. _LT_SYS_MODULE_PATH_AIX([$1])
  5033. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5034. # Warning - without using the other run time loading flags,
  5035. # -berok will link without error, but may produce a broken library.
  5036. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5037. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5038. if test yes = "$with_gnu_ld"; then
  5039. # We only use this code for GNU lds that support --whole-archive.
  5040. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5041. else
  5042. # Exported symbols can be pulled into shared objects from archives
  5043. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5044. fi
  5045. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5046. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  5047. # -brtl affects multiple linker settings, -berok does not and is overridden later
  5048. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  5049. if test svr4 != "$with_aix_soname"; then
  5050. # This is similar to how AIX traditionally builds its shared libraries.
  5051. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  5052. fi
  5053. if test aix != "$with_aix_soname"; then
  5054. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  5055. else
  5056. # used by -dlpreopen to get the symbols
  5057. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  5058. fi
  5059. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  5060. fi
  5061. fi
  5062. ;;
  5063. amigaos*)
  5064. case $host_cpu in
  5065. powerpc)
  5066. # see comment about AmigaOS4 .so support
  5067. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5068. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5069. ;;
  5070. m68k)
  5071. _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)'
  5072. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5073. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5074. ;;
  5075. esac
  5076. ;;
  5077. bsdi[[45]]*)
  5078. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5079. ;;
  5080. cygwin* | mingw* | pw32* | cegcc*)
  5081. # When not using gcc, we currently assume that we are using
  5082. # Microsoft Visual C++ or Intel C++ Compiler.
  5083. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5084. # no search path for DLLs.
  5085. case $cc_basename in
  5086. cl* | icl*)
  5087. # Native MSVC or ICC
  5088. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5089. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5090. _LT_TAGVAR(always_export_symbols, $1)=yes
  5091. _LT_TAGVAR(file_list_spec, $1)='@'
  5092. # Tell ltmain to make .lib files, not .a files.
  5093. libext=lib
  5094. # Tell ltmain to make .dll files, not .so files.
  5095. shrext_cmds=.dll
  5096. # FIXME: Setting linknames here is a bad hack.
  5097. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5098. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5099. cp "$export_symbols" "$output_objdir/$soname.def";
  5100. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5101. else
  5102. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5103. fi~
  5104. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5105. linknames='
  5106. # The linker will not automatically build a static lib if we build a DLL.
  5107. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5108. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5109. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5110. _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'
  5111. # Don't use ranlib
  5112. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5113. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5114. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5115. case $lt_outputfile in
  5116. *.exe|*.EXE) ;;
  5117. *)
  5118. lt_outputfile=$lt_outputfile.exe
  5119. lt_tool_outputfile=$lt_tool_outputfile.exe
  5120. ;;
  5121. esac~
  5122. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5123. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5124. $RM "$lt_outputfile.manifest";
  5125. fi'
  5126. ;;
  5127. *)
  5128. # Assume MSVC and ICC wrapper
  5129. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5130. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5131. # Tell ltmain to make .lib files, not .a files.
  5132. libext=lib
  5133. # Tell ltmain to make .dll files, not .so files.
  5134. shrext_cmds=.dll
  5135. # FIXME: Setting linknames here is a bad hack.
  5136. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5137. # The linker will automatically build a .lib file if we build a DLL.
  5138. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5139. # FIXME: Should let the user specify the lib program.
  5140. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5141. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5142. ;;
  5143. esac
  5144. ;;
  5145. darwin* | rhapsody*)
  5146. _LT_DARWIN_LINKER_FEATURES($1)
  5147. ;;
  5148. dgux*)
  5149. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5150. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5151. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5152. ;;
  5153. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5154. # support. Future versions do this automatically, but an explicit c++rt0.o
  5155. # does not break anything, and helps significantly (at the cost of a little
  5156. # extra space).
  5157. freebsd2.2*)
  5158. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5159. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5160. _LT_TAGVAR(hardcode_direct, $1)=yes
  5161. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5162. ;;
  5163. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5164. freebsd2.*)
  5165. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5166. _LT_TAGVAR(hardcode_direct, $1)=yes
  5167. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5168. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5169. ;;
  5170. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5171. freebsd* | dragonfly* | midnightbsd*)
  5172. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5173. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5174. _LT_TAGVAR(hardcode_direct, $1)=yes
  5175. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5176. ;;
  5177. hpux9*)
  5178. if test yes = "$GCC"; then
  5179. _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5180. else
  5181. _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  5182. fi
  5183. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5184. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5185. _LT_TAGVAR(hardcode_direct, $1)=yes
  5186. # hardcode_minus_L: Not really in the search PATH,
  5187. # but as the default location of the library.
  5188. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5189. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5190. ;;
  5191. hpux10*)
  5192. if test yes,no = "$GCC,$with_gnu_ld"; then
  5193. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5194. else
  5195. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5196. fi
  5197. if test no = "$with_gnu_ld"; then
  5198. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5199. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5200. _LT_TAGVAR(hardcode_direct, $1)=yes
  5201. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5202. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5203. # hardcode_minus_L: Not really in the search PATH,
  5204. # but as the default location of the library.
  5205. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5206. fi
  5207. ;;
  5208. hpux11*)
  5209. if test yes,no = "$GCC,$with_gnu_ld"; then
  5210. case $host_cpu in
  5211. hppa*64*)
  5212. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5213. ;;
  5214. ia64*)
  5215. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5216. ;;
  5217. *)
  5218. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5219. ;;
  5220. esac
  5221. else
  5222. case $host_cpu in
  5223. hppa*64*)
  5224. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5225. ;;
  5226. ia64*)
  5227. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5228. ;;
  5229. *)
  5230. m4_if($1, [], [
  5231. # Older versions of the 11.00 compiler do not understand -b yet
  5232. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5233. _LT_LINKER_OPTION([if $CC understands -b],
  5234. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5235. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5236. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5237. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5238. ;;
  5239. esac
  5240. fi
  5241. if test no = "$with_gnu_ld"; then
  5242. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5243. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5244. case $host_cpu in
  5245. hppa*64*|ia64*)
  5246. _LT_TAGVAR(hardcode_direct, $1)=no
  5247. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5248. ;;
  5249. *)
  5250. _LT_TAGVAR(hardcode_direct, $1)=yes
  5251. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5252. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5253. # hardcode_minus_L: Not really in the search PATH,
  5254. # but as the default location of the library.
  5255. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5256. ;;
  5257. esac
  5258. fi
  5259. ;;
  5260. irix5* | irix6* | nonstopux*)
  5261. if test yes = "$GCC"; then
  5262. _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'
  5263. # Try to use the -exported_symbol ld option, if it does not
  5264. # work, assume that -exports_file does not work either and
  5265. # implicitly export all symbols.
  5266. # This should be the same for all languages, so no per-tag cache variable.
  5267. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5268. [lt_cv_irix_exported_symbol],
  5269. [save_LDFLAGS=$LDFLAGS
  5270. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  5271. AC_LINK_IFELSE(
  5272. [AC_LANG_SOURCE(
  5273. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5274. [C++], [[int foo (void) { return 0; }]],
  5275. [Fortran 77], [[
  5276. subroutine foo
  5277. end]],
  5278. [Fortran], [[
  5279. subroutine foo
  5280. end]])])],
  5281. [lt_cv_irix_exported_symbol=yes],
  5282. [lt_cv_irix_exported_symbol=no])
  5283. LDFLAGS=$save_LDFLAGS])
  5284. if test yes = "$lt_cv_irix_exported_symbol"; then
  5285. _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'
  5286. fi
  5287. else
  5288. _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'
  5289. _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'
  5290. fi
  5291. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5292. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5293. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5294. _LT_TAGVAR(inherit_rpath, $1)=yes
  5295. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5296. ;;
  5297. linux*)
  5298. case $cc_basename in
  5299. tcc*)
  5300. # Fabrice Bellard et al's Tiny C Compiler
  5301. _LT_TAGVAR(ld_shlibs, $1)=yes
  5302. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5303. ;;
  5304. esac
  5305. ;;
  5306. netbsd*)
  5307. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5308. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5309. else
  5310. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5311. fi
  5312. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5313. _LT_TAGVAR(hardcode_direct, $1)=yes
  5314. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5315. ;;
  5316. newsos6)
  5317. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5318. _LT_TAGVAR(hardcode_direct, $1)=yes
  5319. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5320. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5321. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5322. ;;
  5323. *nto* | *qnx*)
  5324. ;;
  5325. openbsd* | bitrig*)
  5326. if test -f /usr/libexec/ld.so; then
  5327. _LT_TAGVAR(hardcode_direct, $1)=yes
  5328. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5329. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5330. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5331. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5332. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5333. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5334. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5335. else
  5336. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5337. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5338. fi
  5339. else
  5340. _LT_TAGVAR(ld_shlibs, $1)=no
  5341. fi
  5342. ;;
  5343. os2*)
  5344. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5345. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5346. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5347. shrext_cmds=.dll
  5348. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5349. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5350. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5351. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5352. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  5353. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5354. emximp -o $lib $output_objdir/$libname.def'
  5355. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5356. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5357. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5358. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5359. prefix_cmds="$SED"~
  5360. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  5361. prefix_cmds="$prefix_cmds -e 1d";
  5362. fi~
  5363. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  5364. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  5365. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5366. emximp -o $lib $output_objdir/$libname.def'
  5367. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  5368. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5369. _LT_TAGVAR(file_list_spec, $1)='@'
  5370. ;;
  5371. osf3*)
  5372. if test yes = "$GCC"; then
  5373. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5374. _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'
  5375. else
  5376. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5377. _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'
  5378. fi
  5379. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5380. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5381. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5382. ;;
  5383. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5384. if test yes = "$GCC"; then
  5385. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5386. _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'
  5387. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5388. else
  5389. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5390. _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'
  5391. _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~
  5392. $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'
  5393. # Both c and cxx compiler support -rpath directly
  5394. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5395. fi
  5396. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5397. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5398. ;;
  5399. solaris*)
  5400. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5401. if test yes = "$GCC"; then
  5402. wlarc='$wl'
  5403. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5404. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5405. $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'
  5406. else
  5407. case `$CC -V 2>&1` in
  5408. *"Compilers 5.0"*)
  5409. wlarc=''
  5410. _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5411. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5412. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5413. ;;
  5414. *)
  5415. wlarc='$wl'
  5416. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5417. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5418. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5419. ;;
  5420. esac
  5421. fi
  5422. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5423. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5424. case $host_os in
  5425. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5426. *)
  5427. # The compiler driver will combine and reorder linker options,
  5428. # but understands '-z linker_flag'. GCC discards it without '$wl',
  5429. # but is careful enough not to reorder.
  5430. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5431. if test yes = "$GCC"; then
  5432. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  5433. else
  5434. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5435. fi
  5436. ;;
  5437. esac
  5438. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5439. ;;
  5440. sunos4*)
  5441. if test sequent = "$host_vendor"; then
  5442. # Use $CC to link under sequent, because it throws in some extra .o
  5443. # files that make .init and .fini sections work.
  5444. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5445. else
  5446. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5447. fi
  5448. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5449. _LT_TAGVAR(hardcode_direct, $1)=yes
  5450. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5451. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5452. ;;
  5453. sysv4)
  5454. case $host_vendor in
  5455. sni)
  5456. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5457. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5458. ;;
  5459. siemens)
  5460. ## LD is ld it makes a PLAMLIB
  5461. ## CC just makes a GrossModule.
  5462. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5463. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5464. _LT_TAGVAR(hardcode_direct, $1)=no
  5465. ;;
  5466. motorola)
  5467. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5468. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5469. ;;
  5470. esac
  5471. runpath_var='LD_RUN_PATH'
  5472. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5473. ;;
  5474. sysv4.3*)
  5475. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5476. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5477. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5478. ;;
  5479. sysv4*MP*)
  5480. if test -d /usr/nec; then
  5481. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5482. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5483. runpath_var=LD_RUN_PATH
  5484. hardcode_runpath_var=yes
  5485. _LT_TAGVAR(ld_shlibs, $1)=yes
  5486. fi
  5487. ;;
  5488. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5489. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5490. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5491. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5492. runpath_var='LD_RUN_PATH'
  5493. if test yes = "$GCC"; then
  5494. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5495. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5496. else
  5497. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5498. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5499. fi
  5500. ;;
  5501. sysv5* | sco3.2v5* | sco5v6*)
  5502. # Note: We CANNOT use -z defs as we might desire, because we do not
  5503. # link with -lc, and that would cause any symbols used from libc to
  5504. # always be unresolved, which means just about no library would
  5505. # ever link correctly. If we're not using GNU ld we use -z text
  5506. # though, which does catch some bad symbols but isn't as heavy-handed
  5507. # as -z defs.
  5508. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5509. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  5510. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5511. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5512. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  5513. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5514. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5515. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  5516. runpath_var='LD_RUN_PATH'
  5517. if test yes = "$GCC"; then
  5518. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5519. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5520. else
  5521. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5522. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5523. fi
  5524. ;;
  5525. uts4*)
  5526. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5527. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5528. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5529. ;;
  5530. *)
  5531. _LT_TAGVAR(ld_shlibs, $1)=no
  5532. ;;
  5533. esac
  5534. if test sni = "$host_vendor"; then
  5535. case $host in
  5536. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5537. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  5538. ;;
  5539. esac
  5540. fi
  5541. fi
  5542. ])
  5543. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5544. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  5545. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5546. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5547. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5548. _LT_DECL([], [extract_expsyms_cmds], [2],
  5549. [The commands to extract the exported symbol list from a shared archive])
  5550. #
  5551. # Do we need to explicitly link libc?
  5552. #
  5553. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5554. x|xyes)
  5555. # Assume -lc should be added
  5556. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5557. if test yes,yes = "$GCC,$enable_shared"; then
  5558. case $_LT_TAGVAR(archive_cmds, $1) in
  5559. *'~'*)
  5560. # FIXME: we may have to deal with multi-command sequences.
  5561. ;;
  5562. '$CC '*)
  5563. # Test whether the compiler implicitly links with -lc since on some
  5564. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5565. # to ld, don't add -lc before -lgcc.
  5566. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5567. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5568. [$RM conftest*
  5569. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5570. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5571. soname=conftest
  5572. lib=conftest
  5573. libobjs=conftest.$ac_objext
  5574. deplibs=
  5575. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5576. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5577. compiler_flags=-v
  5578. linker_flags=-v
  5579. verstring=
  5580. output_objdir=.
  5581. libname=conftest
  5582. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5583. _LT_TAGVAR(allow_undefined_flag, $1)=
  5584. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5585. then
  5586. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5587. else
  5588. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5589. fi
  5590. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5591. else
  5592. cat conftest.err 1>&5
  5593. fi
  5594. $RM conftest*
  5595. ])
  5596. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5597. ;;
  5598. esac
  5599. fi
  5600. ;;
  5601. esac
  5602. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5603. [Whether or not to add -lc for building shared libraries])
  5604. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5605. [enable_shared_with_static_runtimes], [0],
  5606. [Whether or not to disallow shared libs when runtime libs are static])
  5607. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5608. [Compiler flag to allow reflexive dlopens])
  5609. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5610. [Compiler flag to generate shared objects directly from archives])
  5611. _LT_TAGDECL([], [compiler_needs_object], [1],
  5612. [Whether the compiler copes with passing no objects directly])
  5613. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5614. [Create an old-style archive from a shared archive])
  5615. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5616. [Create a temporary old-style archive to link instead of a shared archive])
  5617. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5618. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5619. _LT_TAGDECL([], [module_cmds], [2],
  5620. [Commands used to build a loadable module if different from building
  5621. a shared archive.])
  5622. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5623. _LT_TAGDECL([], [with_gnu_ld], [1],
  5624. [Whether we are building with GNU ld or not])
  5625. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5626. [Flag that allows shared libraries with undefined symbols to be built])
  5627. _LT_TAGDECL([], [no_undefined_flag], [1],
  5628. [Flag that enforces no undefined symbols])
  5629. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5630. [Flag to hardcode $libdir into a binary during linking.
  5631. This must work even if $libdir does not exist])
  5632. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5633. [Whether we need a single "-rpath" flag with a separated argument])
  5634. _LT_TAGDECL([], [hardcode_direct], [0],
  5635. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5636. DIR into the resulting binary])
  5637. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5638. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5639. DIR into the resulting binary and the resulting library dependency is
  5640. "absolute", i.e impossible to change by setting $shlibpath_var if the
  5641. library is relocated])
  5642. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5643. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5644. into the resulting binary])
  5645. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5646. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5647. into the resulting binary])
  5648. _LT_TAGDECL([], [hardcode_automatic], [0],
  5649. [Set to "yes" if building a shared library automatically hardcodes DIR
  5650. into the library and all subsequent libraries and executables linked
  5651. against it])
  5652. _LT_TAGDECL([], [inherit_rpath], [0],
  5653. [Set to yes if linker adds runtime paths of dependent libraries
  5654. to runtime path list])
  5655. _LT_TAGDECL([], [link_all_deplibs], [0],
  5656. [Whether libtool must link a program against all its dependency libraries])
  5657. _LT_TAGDECL([], [always_export_symbols], [0],
  5658. [Set to "yes" if exported symbols are required])
  5659. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5660. [The commands to list exported symbols])
  5661. _LT_TAGDECL([], [exclude_expsyms], [1],
  5662. [Symbols that should not be listed in the preloaded symbols])
  5663. _LT_TAGDECL([], [include_expsyms], [1],
  5664. [Symbols that must always be exported])
  5665. _LT_TAGDECL([], [prelink_cmds], [2],
  5666. [Commands necessary for linking programs (against libraries) with templates])
  5667. _LT_TAGDECL([], [postlink_cmds], [2],
  5668. [Commands necessary for finishing linking programs])
  5669. _LT_TAGDECL([], [file_list_spec], [1],
  5670. [Specify filename containing input files])
  5671. dnl FIXME: Not yet implemented
  5672. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5673. dnl [Compiler flag to generate thread safe objects])
  5674. ])# _LT_LINKER_SHLIBS
  5675. # _LT_LANG_C_CONFIG([TAG])
  5676. # ------------------------
  5677. # Ensure that the configuration variables for a C compiler are suitably
  5678. # defined. These variables are subsequently used by _LT_CONFIG to write
  5679. # the compiler configuration to 'libtool'.
  5680. m4_defun([_LT_LANG_C_CONFIG],
  5681. [m4_require([_LT_DECL_EGREP])dnl
  5682. lt_save_CC=$CC
  5683. AC_LANG_PUSH(C)
  5684. # Source file extension for C test sources.
  5685. ac_ext=c
  5686. # Object file extension for compiled C test sources.
  5687. objext=o
  5688. _LT_TAGVAR(objext, $1)=$objext
  5689. # Code to be used in simple compile tests
  5690. lt_simple_compile_test_code="int some_variable = 0;"
  5691. # Code to be used in simple link tests
  5692. lt_simple_link_test_code='int main(){return(0);}'
  5693. _LT_TAG_COMPILER
  5694. # Save the default compiler, since it gets overwritten when the other
  5695. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5696. compiler_DEFAULT=$CC
  5697. # save warnings/boilerplate of simple test code
  5698. _LT_COMPILER_BOILERPLATE
  5699. _LT_LINKER_BOILERPLATE
  5700. if test -n "$compiler"; then
  5701. _LT_COMPILER_NO_RTTI($1)
  5702. _LT_COMPILER_PIC($1)
  5703. _LT_COMPILER_C_O($1)
  5704. _LT_COMPILER_FILE_LOCKS($1)
  5705. _LT_LINKER_SHLIBS($1)
  5706. _LT_SYS_DYNAMIC_LINKER($1)
  5707. _LT_LINKER_HARDCODE_LIBPATH($1)
  5708. LT_SYS_DLOPEN_SELF
  5709. _LT_CMD_STRIPLIB
  5710. # Report what library types will actually be built
  5711. AC_MSG_CHECKING([if libtool supports shared libraries])
  5712. AC_MSG_RESULT([$can_build_shared])
  5713. AC_MSG_CHECKING([whether to build shared libraries])
  5714. test no = "$can_build_shared" && enable_shared=no
  5715. # On AIX, shared libraries and static libraries use the same namespace, and
  5716. # are all built from PIC.
  5717. case $host_os in
  5718. aix3*)
  5719. test yes = "$enable_shared" && enable_static=no
  5720. if test -n "$RANLIB"; then
  5721. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5722. postinstall_cmds='$RANLIB $lib'
  5723. fi
  5724. ;;
  5725. aix[[4-9]]*)
  5726. if test ia64 != "$host_cpu"; then
  5727. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  5728. yes,aix,yes) ;; # shared object as lib.so file only
  5729. yes,svr4,*) ;; # shared object as lib.so archive member only
  5730. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  5731. esac
  5732. fi
  5733. ;;
  5734. esac
  5735. AC_MSG_RESULT([$enable_shared])
  5736. AC_MSG_CHECKING([whether to build static libraries])
  5737. # Make sure either enable_shared or enable_static is yes.
  5738. test yes = "$enable_shared" || enable_static=yes
  5739. AC_MSG_RESULT([$enable_static])
  5740. _LT_CONFIG($1)
  5741. fi
  5742. AC_LANG_POP
  5743. CC=$lt_save_CC
  5744. ])# _LT_LANG_C_CONFIG
  5745. # _LT_LANG_CXX_CONFIG([TAG])
  5746. # --------------------------
  5747. # Ensure that the configuration variables for a C++ compiler are suitably
  5748. # defined. These variables are subsequently used by _LT_CONFIG to write
  5749. # the compiler configuration to 'libtool'.
  5750. m4_defun([_LT_LANG_CXX_CONFIG],
  5751. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5752. m4_require([_LT_DECL_EGREP])dnl
  5753. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5754. if test -n "$CXX" && ( test no != "$CXX" &&
  5755. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  5756. (test g++ != "$CXX"))); then
  5757. AC_PROG_CXXCPP
  5758. else
  5759. _lt_caught_CXX_error=yes
  5760. fi
  5761. AC_LANG_PUSH(C++)
  5762. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5763. _LT_TAGVAR(allow_undefined_flag, $1)=
  5764. _LT_TAGVAR(always_export_symbols, $1)=no
  5765. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5766. _LT_TAGVAR(compiler_needs_object, $1)=no
  5767. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5768. _LT_TAGVAR(hardcode_direct, $1)=no
  5769. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5770. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5771. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5772. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5773. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5774. _LT_TAGVAR(hardcode_automatic, $1)=no
  5775. _LT_TAGVAR(inherit_rpath, $1)=no
  5776. _LT_TAGVAR(module_cmds, $1)=
  5777. _LT_TAGVAR(module_expsym_cmds, $1)=
  5778. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5779. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5780. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5781. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5782. _LT_TAGVAR(no_undefined_flag, $1)=
  5783. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5784. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5785. # Source file extension for C++ test sources.
  5786. ac_ext=cpp
  5787. # Object file extension for compiled C++ test sources.
  5788. objext=o
  5789. _LT_TAGVAR(objext, $1)=$objext
  5790. # No sense in running all these tests if we already determined that
  5791. # the CXX compiler isn't working. Some variables (like enable_shared)
  5792. # are currently assumed to apply to all compilers on this platform,
  5793. # and will be corrupted by setting them based on a non-working compiler.
  5794. if test yes != "$_lt_caught_CXX_error"; then
  5795. # Code to be used in simple compile tests
  5796. lt_simple_compile_test_code="int some_variable = 0;"
  5797. # Code to be used in simple link tests
  5798. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5799. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5800. _LT_TAG_COMPILER
  5801. # save warnings/boilerplate of simple test code
  5802. _LT_COMPILER_BOILERPLATE
  5803. _LT_LINKER_BOILERPLATE
  5804. # Allow CC to be a program name with arguments.
  5805. lt_save_CC=$CC
  5806. lt_save_CFLAGS=$CFLAGS
  5807. lt_save_LD=$LD
  5808. lt_save_GCC=$GCC
  5809. GCC=$GXX
  5810. lt_save_with_gnu_ld=$with_gnu_ld
  5811. lt_save_path_LD=$lt_cv_path_LD
  5812. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5813. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5814. else
  5815. $as_unset lt_cv_prog_gnu_ld
  5816. fi
  5817. if test -n "${lt_cv_path_LDCXX+set}"; then
  5818. lt_cv_path_LD=$lt_cv_path_LDCXX
  5819. else
  5820. $as_unset lt_cv_path_LD
  5821. fi
  5822. test -z "${LDCXX+set}" || LD=$LDCXX
  5823. CC=${CXX-"c++"}
  5824. CFLAGS=$CXXFLAGS
  5825. compiler=$CC
  5826. _LT_TAGVAR(compiler, $1)=$CC
  5827. _LT_CC_BASENAME([$compiler])
  5828. if test -n "$compiler"; then
  5829. # We don't want -fno-exception when compiling C++ code, so set the
  5830. # no_builtin_flag separately
  5831. if test yes = "$GXX"; then
  5832. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5833. else
  5834. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5835. fi
  5836. if test yes = "$GXX"; then
  5837. # Set up default GNU C++ configuration
  5838. LT_PATH_LD
  5839. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5840. # archiving commands below assume that GNU ld is being used.
  5841. if test yes = "$with_gnu_ld"; then
  5842. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5843. _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'
  5844. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5845. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5846. # If archive_cmds runs LD, not CC, wlarc should be empty
  5847. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5848. # investigate it a little bit more. (MM)
  5849. wlarc='$wl'
  5850. # ancient GNU ld didn't support --whole-archive et. al.
  5851. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5852. $GREP 'no-whole-archive' > /dev/null; then
  5853. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5854. else
  5855. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5856. fi
  5857. else
  5858. with_gnu_ld=no
  5859. wlarc=
  5860. # A generic and very simple default shared library creation
  5861. # command for GNU C++ for the case where it uses the native
  5862. # linker, instead of GNU ld. If possible, this setting should
  5863. # overridden to take advantage of the native linker features on
  5864. # the platform it is being used on.
  5865. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5866. fi
  5867. # Commands to make compiler produce verbose output that lists
  5868. # what "hidden" libraries, object files and flags are used when
  5869. # linking a shared library.
  5870. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  5871. else
  5872. GXX=no
  5873. with_gnu_ld=no
  5874. wlarc=
  5875. fi
  5876. # PORTME: fill in a description of your system's C++ link characteristics
  5877. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5878. _LT_TAGVAR(ld_shlibs, $1)=yes
  5879. case $host_os in
  5880. aix3*)
  5881. # FIXME: insert proper C++ library support
  5882. _LT_TAGVAR(ld_shlibs, $1)=no
  5883. ;;
  5884. aix[[4-9]]*)
  5885. if test ia64 = "$host_cpu"; then
  5886. # On IA64, the linker does run time linking by default, so we don't
  5887. # have to do anything special.
  5888. aix_use_runtimelinking=no
  5889. exp_sym_flag='-Bexport'
  5890. no_entry_flag=
  5891. else
  5892. aix_use_runtimelinking=no
  5893. # Test if we are trying to use run time linking or normal
  5894. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5895. # have runtime linking enabled, and use it for executables.
  5896. # For shared libraries, we enable/disable runtime linking
  5897. # depending on the kind of the shared library created -
  5898. # when "with_aix_soname,aix_use_runtimelinking" is:
  5899. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  5900. # "aix,yes" lib.so shared, rtl:yes, for executables
  5901. # lib.a static archive
  5902. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  5903. # lib.a(lib.so.V) shared, rtl:no, for executables
  5904. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  5905. # lib.a(lib.so.V) shared, rtl:no
  5906. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  5907. # lib.a static archive
  5908. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5909. for ld_flag in $LDFLAGS; do
  5910. case $ld_flag in
  5911. *-brtl*)
  5912. aix_use_runtimelinking=yes
  5913. break
  5914. ;;
  5915. esac
  5916. done
  5917. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  5918. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  5919. # so we don't have lib.a shared libs to link our executables.
  5920. # We have to force runtime linking in this case.
  5921. aix_use_runtimelinking=yes
  5922. LDFLAGS="$LDFLAGS -Wl,-brtl"
  5923. fi
  5924. ;;
  5925. esac
  5926. exp_sym_flag='-bexport'
  5927. no_entry_flag='-bnoentry'
  5928. fi
  5929. # When large executables or shared objects are built, AIX ld can
  5930. # have problems creating the table of contents. If linking a library
  5931. # or program results in "error TOC overflow" add -mminimal-toc to
  5932. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5933. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5934. _LT_TAGVAR(archive_cmds, $1)=''
  5935. _LT_TAGVAR(hardcode_direct, $1)=yes
  5936. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5937. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5938. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5939. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5940. case $with_aix_soname,$aix_use_runtimelinking in
  5941. aix,*) ;; # no import file
  5942. svr4,* | *,yes) # use import file
  5943. # The Import File defines what to hardcode.
  5944. _LT_TAGVAR(hardcode_direct, $1)=no
  5945. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5946. ;;
  5947. esac
  5948. if test yes = "$GXX"; then
  5949. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5950. # We only want to do this on AIX 4.2 and lower, the check
  5951. # below for broken collect2 doesn't work under 4.3+
  5952. collect2name=`$CC -print-prog-name=collect2`
  5953. if test -f "$collect2name" &&
  5954. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5955. then
  5956. # We have reworked collect2
  5957. :
  5958. else
  5959. # We have old collect2
  5960. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5961. # It fails to find uninstalled libraries when the uninstalled
  5962. # path is not listed in the libpath. Setting hardcode_minus_L
  5963. # to unsupported forces relinking
  5964. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5965. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5966. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5967. fi
  5968. esac
  5969. shared_flag='-shared'
  5970. if test yes = "$aix_use_runtimelinking"; then
  5971. shared_flag=$shared_flag' $wl-G'
  5972. fi
  5973. # Need to ensure runtime linking is disabled for the traditional
  5974. # shared library, or the linker may eventually find shared libraries
  5975. # /with/ Import File - we do not want to mix them.
  5976. shared_flag_aix='-shared'
  5977. shared_flag_svr4='-shared $wl-G'
  5978. else
  5979. # not using gcc
  5980. if test ia64 = "$host_cpu"; then
  5981. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5982. # chokes on -Wl,-G. The following line is correct:
  5983. shared_flag='-G'
  5984. else
  5985. if test yes = "$aix_use_runtimelinking"; then
  5986. shared_flag='$wl-G'
  5987. else
  5988. shared_flag='$wl-bM:SRE'
  5989. fi
  5990. shared_flag_aix='$wl-bM:SRE'
  5991. shared_flag_svr4='$wl-G'
  5992. fi
  5993. fi
  5994. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5995. # It seems that -bexpall does not export symbols beginning with
  5996. # underscore (_), so it is better to generate a list of symbols to
  5997. # export.
  5998. _LT_TAGVAR(always_export_symbols, $1)=yes
  5999. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  6000. # Warning - without using the other runtime loading flags (-brtl),
  6001. # -berok will link without error, but may produce a broken library.
  6002. # The "-G" linker flag allows undefined symbols.
  6003. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
  6004. # Determine the default libpath from the value encoded in an empty
  6005. # executable.
  6006. _LT_SYS_MODULE_PATH_AIX([$1])
  6007. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6008. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
  6009. else
  6010. if test ia64 = "$host_cpu"; then
  6011. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  6012. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6013. _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"
  6014. else
  6015. # Determine the default libpath from the value encoded in an
  6016. # empty executable.
  6017. _LT_SYS_MODULE_PATH_AIX([$1])
  6018. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6019. # Warning - without using the other run time loading flags,
  6020. # -berok will link without error, but may produce a broken library.
  6021. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  6022. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  6023. if test yes = "$with_gnu_ld"; then
  6024. # We only use this code for GNU lds that support --whole-archive.
  6025. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6026. else
  6027. # Exported symbols can be pulled into shared objects from archives
  6028. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6029. fi
  6030. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6031. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  6032. # -brtl affects multiple linker settings, -berok does not and is overridden later
  6033. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  6034. if test svr4 != "$with_aix_soname"; then
  6035. # This is similar to how AIX traditionally builds its shared
  6036. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  6037. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
  6038. fi
  6039. if test aix != "$with_aix_soname"; then
  6040. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
  6041. else
  6042. # used by -dlpreopen to get the symbols
  6043. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  6044. fi
  6045. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  6046. fi
  6047. fi
  6048. ;;
  6049. beos*)
  6050. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6051. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6052. # Joseph Beckenbach <[email protected]> says some releases of gcc
  6053. # support --undefined. This deserves some investigation. FIXME
  6054. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6055. else
  6056. _LT_TAGVAR(ld_shlibs, $1)=no
  6057. fi
  6058. ;;
  6059. chorus*)
  6060. case $cc_basename in
  6061. *)
  6062. # FIXME: insert proper C++ library support
  6063. _LT_TAGVAR(ld_shlibs, $1)=no
  6064. ;;
  6065. esac
  6066. ;;
  6067. cygwin* | mingw* | pw32* | cegcc*)
  6068. case $GXX,$cc_basename in
  6069. ,cl* | no,cl* | ,icl* | no,icl*)
  6070. # Native MSVC or ICC
  6071. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6072. # no search path for DLLs.
  6073. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6074. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6075. _LT_TAGVAR(always_export_symbols, $1)=yes
  6076. _LT_TAGVAR(file_list_spec, $1)='@'
  6077. # Tell ltmain to make .lib files, not .a files.
  6078. libext=lib
  6079. # Tell ltmain to make .dll files, not .so files.
  6080. shrext_cmds=.dll
  6081. # FIXME: Setting linknames here is a bad hack.
  6082. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  6083. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6084. cp "$export_symbols" "$output_objdir/$soname.def";
  6085. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  6086. else
  6087. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  6088. fi~
  6089. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6090. linknames='
  6091. # The linker will not automatically build a static lib if we build a DLL.
  6092. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6093. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6094. # Don't use ranlib
  6095. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6096. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6097. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6098. case $lt_outputfile in
  6099. *.exe|*.EXE) ;;
  6100. *)
  6101. lt_outputfile=$lt_outputfile.exe
  6102. lt_tool_outputfile=$lt_tool_outputfile.exe
  6103. ;;
  6104. esac~
  6105. func_to_tool_file "$lt_outputfile"~
  6106. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  6107. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6108. $RM "$lt_outputfile.manifest";
  6109. fi'
  6110. ;;
  6111. *)
  6112. # g++
  6113. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6114. # as there is no search path for DLLs.
  6115. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6116. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  6117. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6118. _LT_TAGVAR(always_export_symbols, $1)=no
  6119. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6120. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6121. _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'
  6122. # If the export-symbols file already is a .def file, use it as
  6123. # is; otherwise, prepend EXPORTS...
  6124. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6125. cp $export_symbols $output_objdir/$soname.def;
  6126. else
  6127. echo EXPORTS > $output_objdir/$soname.def;
  6128. cat $export_symbols >> $output_objdir/$soname.def;
  6129. fi~
  6130. $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'
  6131. else
  6132. _LT_TAGVAR(ld_shlibs, $1)=no
  6133. fi
  6134. ;;
  6135. esac
  6136. ;;
  6137. darwin* | rhapsody*)
  6138. _LT_DARWIN_LINKER_FEATURES($1)
  6139. ;;
  6140. os2*)
  6141. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6142. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6143. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6144. shrext_cmds=.dll
  6145. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6146. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6147. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6148. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6149. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  6150. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6151. emximp -o $lib $output_objdir/$libname.def'
  6152. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6153. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6154. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6155. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6156. prefix_cmds="$SED"~
  6157. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  6158. prefix_cmds="$prefix_cmds -e 1d";
  6159. fi~
  6160. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  6161. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  6162. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6163. emximp -o $lib $output_objdir/$libname.def'
  6164. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  6165. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6166. _LT_TAGVAR(file_list_spec, $1)='@'
  6167. ;;
  6168. dgux*)
  6169. case $cc_basename in
  6170. ec++*)
  6171. # FIXME: insert proper C++ library support
  6172. _LT_TAGVAR(ld_shlibs, $1)=no
  6173. ;;
  6174. ghcx*)
  6175. # Green Hills C++ Compiler
  6176. # FIXME: insert proper C++ library support
  6177. _LT_TAGVAR(ld_shlibs, $1)=no
  6178. ;;
  6179. *)
  6180. # FIXME: insert proper C++ library support
  6181. _LT_TAGVAR(ld_shlibs, $1)=no
  6182. ;;
  6183. esac
  6184. ;;
  6185. freebsd2.*)
  6186. # C++ shared libraries reported to be fairly broken before
  6187. # switch to ELF
  6188. _LT_TAGVAR(ld_shlibs, $1)=no
  6189. ;;
  6190. freebsd-elf*)
  6191. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6192. ;;
  6193. freebsd* | dragonfly* | midnightbsd*)
  6194. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6195. # conventions
  6196. _LT_TAGVAR(ld_shlibs, $1)=yes
  6197. ;;
  6198. haiku*)
  6199. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6200. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6201. ;;
  6202. hpux9*)
  6203. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6204. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6205. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6206. _LT_TAGVAR(hardcode_direct, $1)=yes
  6207. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6208. # but as the default
  6209. # location of the library.
  6210. case $cc_basename in
  6211. CC*)
  6212. # FIXME: insert proper C++ library support
  6213. _LT_TAGVAR(ld_shlibs, $1)=no
  6214. ;;
  6215. aCC*)
  6216. _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6217. # Commands to make compiler produce verbose output that lists
  6218. # what "hidden" libraries, object files and flags are used when
  6219. # linking a shared library.
  6220. #
  6221. # There doesn't appear to be a way to prevent this compiler from
  6222. # explicitly linking system object files so we need to strip them
  6223. # from the output so that they don't get included in the library
  6224. # dependencies.
  6225. 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"'
  6226. ;;
  6227. *)
  6228. if test yes = "$GXX"; then
  6229. _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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
  6230. else
  6231. # FIXME: insert proper C++ library support
  6232. _LT_TAGVAR(ld_shlibs, $1)=no
  6233. fi
  6234. ;;
  6235. esac
  6236. ;;
  6237. hpux10*|hpux11*)
  6238. if test no = "$with_gnu_ld"; then
  6239. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6240. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6241. case $host_cpu in
  6242. hppa*64*|ia64*)
  6243. ;;
  6244. *)
  6245. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6246. ;;
  6247. esac
  6248. fi
  6249. case $host_cpu in
  6250. hppa*64*|ia64*)
  6251. _LT_TAGVAR(hardcode_direct, $1)=no
  6252. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6253. ;;
  6254. *)
  6255. _LT_TAGVAR(hardcode_direct, $1)=yes
  6256. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6257. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6258. # but as the default
  6259. # location of the library.
  6260. ;;
  6261. esac
  6262. case $cc_basename in
  6263. CC*)
  6264. # FIXME: insert proper C++ library support
  6265. _LT_TAGVAR(ld_shlibs, $1)=no
  6266. ;;
  6267. aCC*)
  6268. case $host_cpu in
  6269. hppa*64*)
  6270. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6271. ;;
  6272. ia64*)
  6273. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6274. ;;
  6275. *)
  6276. _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'
  6277. ;;
  6278. esac
  6279. # Commands to make compiler produce verbose output that lists
  6280. # what "hidden" libraries, object files and flags are used when
  6281. # linking a shared library.
  6282. #
  6283. # There doesn't appear to be a way to prevent this compiler from
  6284. # explicitly linking system object files so we need to strip them
  6285. # from the output so that they don't get included in the library
  6286. # dependencies.
  6287. 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"'
  6288. ;;
  6289. *)
  6290. if test yes = "$GXX"; then
  6291. if test no = "$with_gnu_ld"; then
  6292. case $host_cpu in
  6293. hppa*64*)
  6294. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6295. ;;
  6296. ia64*)
  6297. _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'
  6298. ;;
  6299. *)
  6300. _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'
  6301. ;;
  6302. esac
  6303. fi
  6304. else
  6305. # FIXME: insert proper C++ library support
  6306. _LT_TAGVAR(ld_shlibs, $1)=no
  6307. fi
  6308. ;;
  6309. esac
  6310. ;;
  6311. interix[[3-9]]*)
  6312. _LT_TAGVAR(hardcode_direct, $1)=no
  6313. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6314. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6315. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6316. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6317. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6318. # default) and relocated if they conflict, which is a slow very memory
  6319. # consuming and fragmenting process. To avoid this, we pick a random,
  6320. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6321. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6322. _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'
  6323. _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'
  6324. ;;
  6325. irix5* | irix6*)
  6326. case $cc_basename in
  6327. CC*)
  6328. # SGI C++
  6329. _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'
  6330. # Archives containing C++ object files must be created using
  6331. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6332. # necessary to make sure instantiated templates are included
  6333. # in the archive.
  6334. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6335. ;;
  6336. *)
  6337. if test yes = "$GXX"; then
  6338. if test no = "$with_gnu_ld"; then
  6339. _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'
  6340. else
  6341. _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'
  6342. fi
  6343. fi
  6344. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6345. ;;
  6346. esac
  6347. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6348. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6349. _LT_TAGVAR(inherit_rpath, $1)=yes
  6350. ;;
  6351. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6352. case $cc_basename in
  6353. KCC*)
  6354. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6355. # KCC will only create a shared library if the output file
  6356. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6357. # to its proper name (with version) after linking.
  6358. _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'
  6359. _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'
  6360. # Commands to make compiler produce verbose output that lists
  6361. # what "hidden" libraries, object files and flags are used when
  6362. # linking a shared library.
  6363. #
  6364. # There doesn't appear to be a way to prevent this compiler from
  6365. # explicitly linking system object files so we need to strip them
  6366. # from the output so that they don't get included in the library
  6367. # dependencies.
  6368. 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"'
  6369. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6370. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6371. # Archives containing C++ object files must be created using
  6372. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6373. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6374. ;;
  6375. icpc* | ecpc* )
  6376. # Intel C++
  6377. with_gnu_ld=yes
  6378. # version 8.0 and above of icpc choke on multiply defined symbols
  6379. # if we add $predep_objects and $postdep_objects, however 7.1 and
  6380. # earlier do not add the objects themselves.
  6381. case `$CC -V 2>&1` in
  6382. *"Version 7."*)
  6383. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6384. _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'
  6385. ;;
  6386. *) # Version 8.0 or newer
  6387. tmp_idyn=
  6388. case $host_cpu in
  6389. ia64*) tmp_idyn=' -i_dynamic';;
  6390. esac
  6391. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6392. _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'
  6393. ;;
  6394. esac
  6395. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6396. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6397. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6398. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6399. ;;
  6400. pgCC* | pgcpp*)
  6401. # Portland Group C++ compiler
  6402. case `$CC -V` in
  6403. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6404. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6405. rm -rf $tpldir~
  6406. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6407. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6408. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6409. rm -rf $tpldir~
  6410. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6411. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6412. $RANLIB $oldlib'
  6413. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6414. rm -rf $tpldir~
  6415. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6416. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6417. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6418. rm -rf $tpldir~
  6419. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6420. $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'
  6421. ;;
  6422. *) # Version 6 and above use weak symbols
  6423. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6424. _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'
  6425. ;;
  6426. esac
  6427. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  6428. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6429. _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'
  6430. ;;
  6431. cxx*)
  6432. # Compaq C++
  6433. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6434. _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'
  6435. runpath_var=LD_RUN_PATH
  6436. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6437. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6438. # Commands to make compiler produce verbose output that lists
  6439. # what "hidden" libraries, object files and flags are used when
  6440. # linking a shared library.
  6441. #
  6442. # There doesn't appear to be a way to prevent this compiler from
  6443. # explicitly linking system object files so we need to strip them
  6444. # from the output so that they don't get included in the library
  6445. # dependencies.
  6446. 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'
  6447. ;;
  6448. xl* | mpixl* | bgxl*)
  6449. # IBM XL 8.0 on PPC, with GNU ld
  6450. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6451. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6452. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6453. if test yes = "$supports_anon_versioning"; then
  6454. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6455. cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6456. echo "local: *; };" >> $output_objdir/$libname.ver~
  6457. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  6458. fi
  6459. ;;
  6460. *)
  6461. case `$CC -V 2>&1 | $SED 5q` in
  6462. *Sun\ C*)
  6463. # Sun C++ 5.9
  6464. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6465. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6466. _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'
  6467. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6468. _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'
  6469. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6470. # Not sure whether something based on
  6471. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6472. # would be better.
  6473. output_verbose_link_cmd='func_echo_all'
  6474. # Archives containing C++ object files must be created using
  6475. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6476. # necessary to make sure instantiated templates are included
  6477. # in the archive.
  6478. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6479. ;;
  6480. esac
  6481. ;;
  6482. esac
  6483. ;;
  6484. lynxos*)
  6485. # FIXME: insert proper C++ library support
  6486. _LT_TAGVAR(ld_shlibs, $1)=no
  6487. ;;
  6488. m88k*)
  6489. # FIXME: insert proper C++ library support
  6490. _LT_TAGVAR(ld_shlibs, $1)=no
  6491. ;;
  6492. mvs*)
  6493. case $cc_basename in
  6494. cxx*)
  6495. # FIXME: insert proper C++ library support
  6496. _LT_TAGVAR(ld_shlibs, $1)=no
  6497. ;;
  6498. *)
  6499. # FIXME: insert proper C++ library support
  6500. _LT_TAGVAR(ld_shlibs, $1)=no
  6501. ;;
  6502. esac
  6503. ;;
  6504. netbsd*)
  6505. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6506. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6507. wlarc=
  6508. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6509. _LT_TAGVAR(hardcode_direct, $1)=yes
  6510. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6511. fi
  6512. # Workaround some broken pre-1.5 toolchains
  6513. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6514. ;;
  6515. *nto* | *qnx*)
  6516. _LT_TAGVAR(ld_shlibs, $1)=yes
  6517. ;;
  6518. openbsd* | bitrig*)
  6519. if test -f /usr/libexec/ld.so; then
  6520. _LT_TAGVAR(hardcode_direct, $1)=yes
  6521. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6522. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6523. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6524. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6525. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  6526. _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'
  6527. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6528. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6529. fi
  6530. output_verbose_link_cmd=func_echo_all
  6531. else
  6532. _LT_TAGVAR(ld_shlibs, $1)=no
  6533. fi
  6534. ;;
  6535. osf3* | osf4* | osf5*)
  6536. case $cc_basename in
  6537. KCC*)
  6538. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6539. # KCC will only create a shared library if the output file
  6540. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6541. # to its proper name (with version) after linking.
  6542. _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'
  6543. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6544. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6545. # Archives containing C++ object files must be created using
  6546. # the KAI C++ compiler.
  6547. case $host in
  6548. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6549. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6550. esac
  6551. ;;
  6552. RCC*)
  6553. # Rational C++ 2.4.1
  6554. # FIXME: insert proper C++ library support
  6555. _LT_TAGVAR(ld_shlibs, $1)=no
  6556. ;;
  6557. cxx*)
  6558. case $host in
  6559. osf3*)
  6560. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6561. _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'
  6562. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6563. ;;
  6564. *)
  6565. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6566. _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'
  6567. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6568. echo "-hidden">> $lib.exp~
  6569. $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~
  6570. $RM $lib.exp'
  6571. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6572. ;;
  6573. esac
  6574. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6575. # Commands to make compiler produce verbose output that lists
  6576. # what "hidden" libraries, object files and flags are used when
  6577. # linking a shared library.
  6578. #
  6579. # There doesn't appear to be a way to prevent this compiler from
  6580. # explicitly linking system object files so we need to strip them
  6581. # from the output so that they don't get included in the library
  6582. # dependencies.
  6583. 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"'
  6584. ;;
  6585. *)
  6586. if test yes,no = "$GXX,$with_gnu_ld"; then
  6587. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6588. case $host in
  6589. osf3*)
  6590. _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'
  6591. ;;
  6592. *)
  6593. _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'
  6594. ;;
  6595. esac
  6596. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6597. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6598. # Commands to make compiler produce verbose output that lists
  6599. # what "hidden" libraries, object files and flags are used when
  6600. # linking a shared library.
  6601. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6602. else
  6603. # FIXME: insert proper C++ library support
  6604. _LT_TAGVAR(ld_shlibs, $1)=no
  6605. fi
  6606. ;;
  6607. esac
  6608. ;;
  6609. psos*)
  6610. # FIXME: insert proper C++ library support
  6611. _LT_TAGVAR(ld_shlibs, $1)=no
  6612. ;;
  6613. sunos4*)
  6614. case $cc_basename in
  6615. CC*)
  6616. # Sun C++ 4.x
  6617. # FIXME: insert proper C++ library support
  6618. _LT_TAGVAR(ld_shlibs, $1)=no
  6619. ;;
  6620. lcc*)
  6621. # Lucid
  6622. # FIXME: insert proper C++ library support
  6623. _LT_TAGVAR(ld_shlibs, $1)=no
  6624. ;;
  6625. *)
  6626. # FIXME: insert proper C++ library support
  6627. _LT_TAGVAR(ld_shlibs, $1)=no
  6628. ;;
  6629. esac
  6630. ;;
  6631. solaris*)
  6632. case $cc_basename in
  6633. CC* | sunCC*)
  6634. # Sun C++ 4.2, 5.x and Centerline C++
  6635. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6636. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6637. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6638. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6639. $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'
  6640. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6641. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6642. case $host_os in
  6643. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6644. *)
  6645. # The compiler driver will combine and reorder linker options,
  6646. # but understands '-z linker_flag'.
  6647. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6648. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6649. ;;
  6650. esac
  6651. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6652. output_verbose_link_cmd='func_echo_all'
  6653. # Archives containing C++ object files must be created using
  6654. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6655. # necessary to make sure instantiated templates are included
  6656. # in the archive.
  6657. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6658. ;;
  6659. gcx*)
  6660. # Green Hills C++ Compiler
  6661. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6662. # The C++ compiler must be used to create the archive.
  6663. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6664. ;;
  6665. *)
  6666. # GNU C++ compiler with Solaris linker
  6667. if test yes,no = "$GXX,$with_gnu_ld"; then
  6668. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  6669. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6670. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6671. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6672. $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6673. # Commands to make compiler produce verbose output that lists
  6674. # what "hidden" libraries, object files and flags are used when
  6675. # linking a shared library.
  6676. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6677. else
  6678. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  6679. # platform.
  6680. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6681. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6682. $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  6683. # Commands to make compiler produce verbose output that lists
  6684. # what "hidden" libraries, object files and flags are used when
  6685. # linking a shared library.
  6686. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  6687. fi
  6688. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  6689. case $host_os in
  6690. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6691. *)
  6692. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6693. ;;
  6694. esac
  6695. fi
  6696. ;;
  6697. esac
  6698. ;;
  6699. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6700. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6701. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6702. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6703. runpath_var='LD_RUN_PATH'
  6704. case $cc_basename in
  6705. CC*)
  6706. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6707. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6708. ;;
  6709. *)
  6710. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6711. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6712. ;;
  6713. esac
  6714. ;;
  6715. sysv5* | sco3.2v5* | sco5v6*)
  6716. # Note: We CANNOT use -z defs as we might desire, because we do not
  6717. # link with -lc, and that would cause any symbols used from libc to
  6718. # always be unresolved, which means just about no library would
  6719. # ever link correctly. If we're not using GNU ld we use -z text
  6720. # though, which does catch some bad symbols but isn't as heavy-handed
  6721. # as -z defs.
  6722. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6723. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6724. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6725. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6726. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6727. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6728. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6729. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6730. runpath_var='LD_RUN_PATH'
  6731. case $cc_basename in
  6732. CC*)
  6733. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6734. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6735. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6736. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6737. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6738. '"$_LT_TAGVAR(reload_cmds, $1)"
  6739. ;;
  6740. *)
  6741. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6742. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6743. ;;
  6744. esac
  6745. ;;
  6746. tandem*)
  6747. case $cc_basename in
  6748. NCC*)
  6749. # NonStop-UX NCC 3.20
  6750. # FIXME: insert proper C++ library support
  6751. _LT_TAGVAR(ld_shlibs, $1)=no
  6752. ;;
  6753. *)
  6754. # FIXME: insert proper C++ library support
  6755. _LT_TAGVAR(ld_shlibs, $1)=no
  6756. ;;
  6757. esac
  6758. ;;
  6759. vxworks*)
  6760. # FIXME: insert proper C++ library support
  6761. _LT_TAGVAR(ld_shlibs, $1)=no
  6762. ;;
  6763. *)
  6764. # FIXME: insert proper C++ library support
  6765. _LT_TAGVAR(ld_shlibs, $1)=no
  6766. ;;
  6767. esac
  6768. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6769. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6770. _LT_TAGVAR(GCC, $1)=$GXX
  6771. _LT_TAGVAR(LD, $1)=$LD
  6772. ## CAVEAT EMPTOR:
  6773. ## There is no encapsulation within the following macros, do not change
  6774. ## the running order or otherwise move them around unless you know exactly
  6775. ## what you are doing...
  6776. _LT_SYS_HIDDEN_LIBDEPS($1)
  6777. _LT_COMPILER_PIC($1)
  6778. _LT_COMPILER_C_O($1)
  6779. _LT_COMPILER_FILE_LOCKS($1)
  6780. _LT_LINKER_SHLIBS($1)
  6781. _LT_SYS_DYNAMIC_LINKER($1)
  6782. _LT_LINKER_HARDCODE_LIBPATH($1)
  6783. _LT_CONFIG($1)
  6784. fi # test -n "$compiler"
  6785. CC=$lt_save_CC
  6786. CFLAGS=$lt_save_CFLAGS
  6787. LDCXX=$LD
  6788. LD=$lt_save_LD
  6789. GCC=$lt_save_GCC
  6790. with_gnu_ld=$lt_save_with_gnu_ld
  6791. lt_cv_path_LDCXX=$lt_cv_path_LD
  6792. lt_cv_path_LD=$lt_save_path_LD
  6793. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6794. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6795. fi # test yes != "$_lt_caught_CXX_error"
  6796. AC_LANG_POP
  6797. ])# _LT_LANG_CXX_CONFIG
  6798. # _LT_FUNC_STRIPNAME_CNF
  6799. # ----------------------
  6800. # func_stripname_cnf prefix suffix name
  6801. # strip PREFIX and SUFFIX off of NAME.
  6802. # PREFIX and SUFFIX must not contain globbing or regex special
  6803. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6804. # dot (in which case that matches only a dot).
  6805. #
  6806. # This function is identical to the (non-XSI) version of func_stripname,
  6807. # except this one can be used by m4 code that may be executed by configure,
  6808. # rather than the libtool script.
  6809. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6810. AC_REQUIRE([_LT_DECL_SED])
  6811. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6812. func_stripname_cnf ()
  6813. {
  6814. case @S|@2 in
  6815. .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  6816. *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  6817. esac
  6818. } # func_stripname_cnf
  6819. ])# _LT_FUNC_STRIPNAME_CNF
  6820. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6821. # ---------------------------------
  6822. # Figure out "hidden" library dependencies from verbose
  6823. # compiler output when linking a shared library.
  6824. # Parse the compiler output and extract the necessary
  6825. # objects, libraries and library flags.
  6826. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6827. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6828. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6829. # Dependencies to place before and after the object being linked:
  6830. _LT_TAGVAR(predep_objects, $1)=
  6831. _LT_TAGVAR(postdep_objects, $1)=
  6832. _LT_TAGVAR(predeps, $1)=
  6833. _LT_TAGVAR(postdeps, $1)=
  6834. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6835. dnl we can't use the lt_simple_compile_test_code here,
  6836. dnl because it contains code intended for an executable,
  6837. dnl not a library. It's possible we should let each
  6838. dnl tag define a new lt_????_link_test_code variable,
  6839. dnl but it's only used here...
  6840. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6841. int a;
  6842. void foo (void) { a = 0; }
  6843. _LT_EOF
  6844. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6845. class Foo
  6846. {
  6847. public:
  6848. Foo (void) { a = 0; }
  6849. private:
  6850. int a;
  6851. };
  6852. _LT_EOF
  6853. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6854. subroutine foo
  6855. implicit none
  6856. integer*4 a
  6857. a=0
  6858. return
  6859. end
  6860. _LT_EOF
  6861. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6862. subroutine foo
  6863. implicit none
  6864. integer a
  6865. a=0
  6866. return
  6867. end
  6868. _LT_EOF
  6869. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6870. public class foo {
  6871. private int a;
  6872. public void bar (void) {
  6873. a = 0;
  6874. }
  6875. };
  6876. _LT_EOF
  6877. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6878. package foo
  6879. func foo() {
  6880. }
  6881. _LT_EOF
  6882. ])
  6883. _lt_libdeps_save_CFLAGS=$CFLAGS
  6884. case "$CC $CFLAGS " in #(
  6885. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6886. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6887. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6888. esac
  6889. dnl Parse the compiler output and extract the necessary
  6890. dnl objects, libraries and library flags.
  6891. if AC_TRY_EVAL(ac_compile); then
  6892. # Parse the compiler output and extract the necessary
  6893. # objects, libraries and library flags.
  6894. # Sentinel used to keep track of whether or not we are before
  6895. # the conftest object file.
  6896. pre_test_object_deps_done=no
  6897. for p in `eval "$output_verbose_link_cmd"`; do
  6898. case $prev$p in
  6899. -L* | -R* | -l*)
  6900. # Some compilers place space between "-{L,R}" and the path.
  6901. # Remove the space.
  6902. if test x-L = "$p" ||
  6903. test x-R = "$p"; then
  6904. prev=$p
  6905. continue
  6906. fi
  6907. # Expand the sysroot to ease extracting the directories later.
  6908. if test -z "$prev"; then
  6909. case $p in
  6910. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6911. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6912. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6913. esac
  6914. fi
  6915. case $p in
  6916. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6917. esac
  6918. if test no = "$pre_test_object_deps_done"; then
  6919. case $prev in
  6920. -L | -R)
  6921. # Internal compiler library paths should come after those
  6922. # provided the user. The postdeps already come after the
  6923. # user supplied libs so there is no need to process them.
  6924. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6925. _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  6926. else
  6927. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  6928. fi
  6929. ;;
  6930. # The "-l" case would never come before the object being
  6931. # linked, so don't bother handling this case.
  6932. esac
  6933. else
  6934. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6935. _LT_TAGVAR(postdeps, $1)=$prev$p
  6936. else
  6937. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  6938. fi
  6939. fi
  6940. prev=
  6941. ;;
  6942. *.lto.$objext) ;; # Ignore GCC LTO objects
  6943. *.$objext)
  6944. # This assumes that the test object file only shows up
  6945. # once in the compiler output.
  6946. if test "$p" = "conftest.$objext"; then
  6947. pre_test_object_deps_done=yes
  6948. continue
  6949. fi
  6950. if test no = "$pre_test_object_deps_done"; then
  6951. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6952. _LT_TAGVAR(predep_objects, $1)=$p
  6953. else
  6954. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6955. fi
  6956. else
  6957. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6958. _LT_TAGVAR(postdep_objects, $1)=$p
  6959. else
  6960. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6961. fi
  6962. fi
  6963. ;;
  6964. *) ;; # Ignore the rest.
  6965. esac
  6966. done
  6967. # Clean up.
  6968. rm -f a.out a.exe
  6969. else
  6970. echo "libtool.m4: error: problem compiling $1 test program"
  6971. fi
  6972. $RM -f confest.$objext
  6973. CFLAGS=$_lt_libdeps_save_CFLAGS
  6974. # PORTME: override above test on systems where it is broken
  6975. m4_if([$1], [CXX],
  6976. [case $host_os in
  6977. interix[[3-9]]*)
  6978. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6979. # hack all around it, let's just trust "g++" to DTRT.
  6980. _LT_TAGVAR(predep_objects,$1)=
  6981. _LT_TAGVAR(postdep_objects,$1)=
  6982. _LT_TAGVAR(postdeps,$1)=
  6983. ;;
  6984. esac
  6985. ])
  6986. case " $_LT_TAGVAR(postdeps, $1) " in
  6987. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6988. esac
  6989. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6990. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6991. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  6992. fi
  6993. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6994. [The directories searched by this compiler when creating a shared library])
  6995. _LT_TAGDECL([], [predep_objects], [1],
  6996. [Dependencies to place before and after the objects being linked to
  6997. create a shared library])
  6998. _LT_TAGDECL([], [postdep_objects], [1])
  6999. _LT_TAGDECL([], [predeps], [1])
  7000. _LT_TAGDECL([], [postdeps], [1])
  7001. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  7002. [The library search path used internally by the compiler when linking
  7003. a shared library])
  7004. ])# _LT_SYS_HIDDEN_LIBDEPS
  7005. # _LT_LANG_F77_CONFIG([TAG])
  7006. # --------------------------
  7007. # Ensure that the configuration variables for a Fortran 77 compiler are
  7008. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7009. # to write the compiler configuration to 'libtool'.
  7010. m4_defun([_LT_LANG_F77_CONFIG],
  7011. [AC_LANG_PUSH(Fortran 77)
  7012. if test -z "$F77" || test no = "$F77"; then
  7013. _lt_disable_F77=yes
  7014. fi
  7015. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7016. _LT_TAGVAR(allow_undefined_flag, $1)=
  7017. _LT_TAGVAR(always_export_symbols, $1)=no
  7018. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7019. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7020. _LT_TAGVAR(hardcode_direct, $1)=no
  7021. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7023. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7024. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7025. _LT_TAGVAR(hardcode_automatic, $1)=no
  7026. _LT_TAGVAR(inherit_rpath, $1)=no
  7027. _LT_TAGVAR(module_cmds, $1)=
  7028. _LT_TAGVAR(module_expsym_cmds, $1)=
  7029. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7030. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7031. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7032. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7033. _LT_TAGVAR(no_undefined_flag, $1)=
  7034. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7035. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7036. # Source file extension for f77 test sources.
  7037. ac_ext=f
  7038. # Object file extension for compiled f77 test sources.
  7039. objext=o
  7040. _LT_TAGVAR(objext, $1)=$objext
  7041. # No sense in running all these tests if we already determined that
  7042. # the F77 compiler isn't working. Some variables (like enable_shared)
  7043. # are currently assumed to apply to all compilers on this platform,
  7044. # and will be corrupted by setting them based on a non-working compiler.
  7045. if test yes != "$_lt_disable_F77"; then
  7046. # Code to be used in simple compile tests
  7047. lt_simple_compile_test_code="\
  7048. subroutine t
  7049. return
  7050. end
  7051. "
  7052. # Code to be used in simple link tests
  7053. lt_simple_link_test_code="\
  7054. program t
  7055. end
  7056. "
  7057. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7058. _LT_TAG_COMPILER
  7059. # save warnings/boilerplate of simple test code
  7060. _LT_COMPILER_BOILERPLATE
  7061. _LT_LINKER_BOILERPLATE
  7062. # Allow CC to be a program name with arguments.
  7063. lt_save_CC=$CC
  7064. lt_save_GCC=$GCC
  7065. lt_save_CFLAGS=$CFLAGS
  7066. CC=${F77-"f77"}
  7067. CFLAGS=$FFLAGS
  7068. compiler=$CC
  7069. _LT_TAGVAR(compiler, $1)=$CC
  7070. _LT_CC_BASENAME([$compiler])
  7071. GCC=$G77
  7072. if test -n "$compiler"; then
  7073. AC_MSG_CHECKING([if libtool supports shared libraries])
  7074. AC_MSG_RESULT([$can_build_shared])
  7075. AC_MSG_CHECKING([whether to build shared libraries])
  7076. test no = "$can_build_shared" && enable_shared=no
  7077. # On AIX, shared libraries and static libraries use the same namespace, and
  7078. # are all built from PIC.
  7079. case $host_os in
  7080. aix3*)
  7081. test yes = "$enable_shared" && enable_static=no
  7082. if test -n "$RANLIB"; then
  7083. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7084. postinstall_cmds='$RANLIB $lib'
  7085. fi
  7086. ;;
  7087. aix[[4-9]]*)
  7088. if test ia64 != "$host_cpu"; then
  7089. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7090. yes,aix,yes) ;; # shared object as lib.so file only
  7091. yes,svr4,*) ;; # shared object as lib.so archive member only
  7092. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7093. esac
  7094. fi
  7095. ;;
  7096. esac
  7097. AC_MSG_RESULT([$enable_shared])
  7098. AC_MSG_CHECKING([whether to build static libraries])
  7099. # Make sure either enable_shared or enable_static is yes.
  7100. test yes = "$enable_shared" || enable_static=yes
  7101. AC_MSG_RESULT([$enable_static])
  7102. _LT_TAGVAR(GCC, $1)=$G77
  7103. _LT_TAGVAR(LD, $1)=$LD
  7104. ## CAVEAT EMPTOR:
  7105. ## There is no encapsulation within the following macros, do not change
  7106. ## the running order or otherwise move them around unless you know exactly
  7107. ## what you are doing...
  7108. _LT_COMPILER_PIC($1)
  7109. _LT_COMPILER_C_O($1)
  7110. _LT_COMPILER_FILE_LOCKS($1)
  7111. _LT_LINKER_SHLIBS($1)
  7112. _LT_SYS_DYNAMIC_LINKER($1)
  7113. _LT_LINKER_HARDCODE_LIBPATH($1)
  7114. _LT_CONFIG($1)
  7115. fi # test -n "$compiler"
  7116. GCC=$lt_save_GCC
  7117. CC=$lt_save_CC
  7118. CFLAGS=$lt_save_CFLAGS
  7119. fi # test yes != "$_lt_disable_F77"
  7120. AC_LANG_POP
  7121. ])# _LT_LANG_F77_CONFIG
  7122. # _LT_LANG_FC_CONFIG([TAG])
  7123. # -------------------------
  7124. # Ensure that the configuration variables for a Fortran compiler are
  7125. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7126. # to write the compiler configuration to 'libtool'.
  7127. m4_defun([_LT_LANG_FC_CONFIG],
  7128. [AC_LANG_PUSH(Fortran)
  7129. if test -z "$FC" || test no = "$FC"; then
  7130. _lt_disable_FC=yes
  7131. fi
  7132. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7133. _LT_TAGVAR(allow_undefined_flag, $1)=
  7134. _LT_TAGVAR(always_export_symbols, $1)=no
  7135. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7136. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7137. _LT_TAGVAR(hardcode_direct, $1)=no
  7138. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7139. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7140. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7141. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7142. _LT_TAGVAR(hardcode_automatic, $1)=no
  7143. _LT_TAGVAR(inherit_rpath, $1)=no
  7144. _LT_TAGVAR(module_cmds, $1)=
  7145. _LT_TAGVAR(module_expsym_cmds, $1)=
  7146. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7147. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7148. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7149. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7150. _LT_TAGVAR(no_undefined_flag, $1)=
  7151. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7152. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7153. # Source file extension for fc test sources.
  7154. ac_ext=${ac_fc_srcext-f}
  7155. # Object file extension for compiled fc test sources.
  7156. objext=o
  7157. _LT_TAGVAR(objext, $1)=$objext
  7158. # No sense in running all these tests if we already determined that
  7159. # the FC compiler isn't working. Some variables (like enable_shared)
  7160. # are currently assumed to apply to all compilers on this platform,
  7161. # and will be corrupted by setting them based on a non-working compiler.
  7162. if test yes != "$_lt_disable_FC"; then
  7163. # Code to be used in simple compile tests
  7164. lt_simple_compile_test_code="\
  7165. subroutine t
  7166. return
  7167. end
  7168. "
  7169. # Code to be used in simple link tests
  7170. lt_simple_link_test_code="\
  7171. program t
  7172. end
  7173. "
  7174. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7175. _LT_TAG_COMPILER
  7176. # save warnings/boilerplate of simple test code
  7177. _LT_COMPILER_BOILERPLATE
  7178. _LT_LINKER_BOILERPLATE
  7179. # Allow CC to be a program name with arguments.
  7180. lt_save_CC=$CC
  7181. lt_save_GCC=$GCC
  7182. lt_save_CFLAGS=$CFLAGS
  7183. CC=${FC-"f95"}
  7184. CFLAGS=$FCFLAGS
  7185. compiler=$CC
  7186. GCC=$ac_cv_fc_compiler_gnu
  7187. _LT_TAGVAR(compiler, $1)=$CC
  7188. _LT_CC_BASENAME([$compiler])
  7189. if test -n "$compiler"; then
  7190. AC_MSG_CHECKING([if libtool supports shared libraries])
  7191. AC_MSG_RESULT([$can_build_shared])
  7192. AC_MSG_CHECKING([whether to build shared libraries])
  7193. test no = "$can_build_shared" && enable_shared=no
  7194. # On AIX, shared libraries and static libraries use the same namespace, and
  7195. # are all built from PIC.
  7196. case $host_os in
  7197. aix3*)
  7198. test yes = "$enable_shared" && enable_static=no
  7199. if test -n "$RANLIB"; then
  7200. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7201. postinstall_cmds='$RANLIB $lib'
  7202. fi
  7203. ;;
  7204. aix[[4-9]]*)
  7205. if test ia64 != "$host_cpu"; then
  7206. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7207. yes,aix,yes) ;; # shared object as lib.so file only
  7208. yes,svr4,*) ;; # shared object as lib.so archive member only
  7209. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7210. esac
  7211. fi
  7212. ;;
  7213. esac
  7214. AC_MSG_RESULT([$enable_shared])
  7215. AC_MSG_CHECKING([whether to build static libraries])
  7216. # Make sure either enable_shared or enable_static is yes.
  7217. test yes = "$enable_shared" || enable_static=yes
  7218. AC_MSG_RESULT([$enable_static])
  7219. _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  7220. _LT_TAGVAR(LD, $1)=$LD
  7221. ## CAVEAT EMPTOR:
  7222. ## There is no encapsulation within the following macros, do not change
  7223. ## the running order or otherwise move them around unless you know exactly
  7224. ## what you are doing...
  7225. _LT_SYS_HIDDEN_LIBDEPS($1)
  7226. _LT_COMPILER_PIC($1)
  7227. _LT_COMPILER_C_O($1)
  7228. _LT_COMPILER_FILE_LOCKS($1)
  7229. _LT_LINKER_SHLIBS($1)
  7230. _LT_SYS_DYNAMIC_LINKER($1)
  7231. _LT_LINKER_HARDCODE_LIBPATH($1)
  7232. _LT_CONFIG($1)
  7233. fi # test -n "$compiler"
  7234. GCC=$lt_save_GCC
  7235. CC=$lt_save_CC
  7236. CFLAGS=$lt_save_CFLAGS
  7237. fi # test yes != "$_lt_disable_FC"
  7238. AC_LANG_POP
  7239. ])# _LT_LANG_FC_CONFIG
  7240. # _LT_LANG_GCJ_CONFIG([TAG])
  7241. # --------------------------
  7242. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7243. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7244. # to write the compiler configuration to 'libtool'.
  7245. m4_defun([_LT_LANG_GCJ_CONFIG],
  7246. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7247. AC_LANG_SAVE
  7248. # Source file extension for Java test sources.
  7249. ac_ext=java
  7250. # Object file extension for compiled Java test sources.
  7251. objext=o
  7252. _LT_TAGVAR(objext, $1)=$objext
  7253. # Code to be used in simple compile tests
  7254. lt_simple_compile_test_code="class foo {}"
  7255. # Code to be used in simple link tests
  7256. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7257. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7258. _LT_TAG_COMPILER
  7259. # save warnings/boilerplate of simple test code
  7260. _LT_COMPILER_BOILERPLATE
  7261. _LT_LINKER_BOILERPLATE
  7262. # Allow CC to be a program name with arguments.
  7263. lt_save_CC=$CC
  7264. lt_save_CFLAGS=$CFLAGS
  7265. lt_save_GCC=$GCC
  7266. GCC=yes
  7267. CC=${GCJ-"gcj"}
  7268. CFLAGS=$GCJFLAGS
  7269. compiler=$CC
  7270. _LT_TAGVAR(compiler, $1)=$CC
  7271. _LT_TAGVAR(LD, $1)=$LD
  7272. _LT_CC_BASENAME([$compiler])
  7273. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7274. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7275. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7276. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7277. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7278. if test -n "$compiler"; then
  7279. _LT_COMPILER_NO_RTTI($1)
  7280. _LT_COMPILER_PIC($1)
  7281. _LT_COMPILER_C_O($1)
  7282. _LT_COMPILER_FILE_LOCKS($1)
  7283. _LT_LINKER_SHLIBS($1)
  7284. _LT_LINKER_HARDCODE_LIBPATH($1)
  7285. _LT_CONFIG($1)
  7286. fi
  7287. AC_LANG_RESTORE
  7288. GCC=$lt_save_GCC
  7289. CC=$lt_save_CC
  7290. CFLAGS=$lt_save_CFLAGS
  7291. ])# _LT_LANG_GCJ_CONFIG
  7292. # _LT_LANG_GO_CONFIG([TAG])
  7293. # --------------------------
  7294. # Ensure that the configuration variables for the GNU Go compiler
  7295. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7296. # to write the compiler configuration to 'libtool'.
  7297. m4_defun([_LT_LANG_GO_CONFIG],
  7298. [AC_REQUIRE([LT_PROG_GO])dnl
  7299. AC_LANG_SAVE
  7300. # Source file extension for Go test sources.
  7301. ac_ext=go
  7302. # Object file extension for compiled Go test sources.
  7303. objext=o
  7304. _LT_TAGVAR(objext, $1)=$objext
  7305. # Code to be used in simple compile tests
  7306. lt_simple_compile_test_code="package main; func main() { }"
  7307. # Code to be used in simple link tests
  7308. lt_simple_link_test_code='package main; func main() { }'
  7309. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7310. _LT_TAG_COMPILER
  7311. # save warnings/boilerplate of simple test code
  7312. _LT_COMPILER_BOILERPLATE
  7313. _LT_LINKER_BOILERPLATE
  7314. # Allow CC to be a program name with arguments.
  7315. lt_save_CC=$CC
  7316. lt_save_CFLAGS=$CFLAGS
  7317. lt_save_GCC=$GCC
  7318. GCC=yes
  7319. CC=${GOC-"gccgo"}
  7320. CFLAGS=$GOFLAGS
  7321. compiler=$CC
  7322. _LT_TAGVAR(compiler, $1)=$CC
  7323. _LT_TAGVAR(LD, $1)=$LD
  7324. _LT_CC_BASENAME([$compiler])
  7325. # Go did not exist at the time GCC didn't implicitly link libc in.
  7326. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7327. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7328. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7329. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7330. if test -n "$compiler"; then
  7331. _LT_COMPILER_NO_RTTI($1)
  7332. _LT_COMPILER_PIC($1)
  7333. _LT_COMPILER_C_O($1)
  7334. _LT_COMPILER_FILE_LOCKS($1)
  7335. _LT_LINKER_SHLIBS($1)
  7336. _LT_LINKER_HARDCODE_LIBPATH($1)
  7337. _LT_CONFIG($1)
  7338. fi
  7339. AC_LANG_RESTORE
  7340. GCC=$lt_save_GCC
  7341. CC=$lt_save_CC
  7342. CFLAGS=$lt_save_CFLAGS
  7343. ])# _LT_LANG_GO_CONFIG
  7344. # _LT_LANG_RC_CONFIG([TAG])
  7345. # -------------------------
  7346. # Ensure that the configuration variables for the Windows resource compiler
  7347. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7348. # to write the compiler configuration to 'libtool'.
  7349. m4_defun([_LT_LANG_RC_CONFIG],
  7350. [AC_REQUIRE([LT_PROG_RC])dnl
  7351. AC_LANG_SAVE
  7352. # Source file extension for RC test sources.
  7353. ac_ext=rc
  7354. # Object file extension for compiled RC test sources.
  7355. objext=o
  7356. _LT_TAGVAR(objext, $1)=$objext
  7357. # Code to be used in simple compile tests
  7358. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7359. # Code to be used in simple link tests
  7360. lt_simple_link_test_code=$lt_simple_compile_test_code
  7361. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7362. _LT_TAG_COMPILER
  7363. # save warnings/boilerplate of simple test code
  7364. _LT_COMPILER_BOILERPLATE
  7365. _LT_LINKER_BOILERPLATE
  7366. # Allow CC to be a program name with arguments.
  7367. lt_save_CC=$CC
  7368. lt_save_CFLAGS=$CFLAGS
  7369. lt_save_GCC=$GCC
  7370. GCC=
  7371. CC=${RC-"windres"}
  7372. CFLAGS=
  7373. compiler=$CC
  7374. _LT_TAGVAR(compiler, $1)=$CC
  7375. _LT_CC_BASENAME([$compiler])
  7376. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7377. if test -n "$compiler"; then
  7378. :
  7379. _LT_CONFIG($1)
  7380. fi
  7381. GCC=$lt_save_GCC
  7382. AC_LANG_RESTORE
  7383. CC=$lt_save_CC
  7384. CFLAGS=$lt_save_CFLAGS
  7385. ])# _LT_LANG_RC_CONFIG
  7386. # LT_PROG_GCJ
  7387. # -----------
  7388. AC_DEFUN([LT_PROG_GCJ],
  7389. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7390. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7391. [AC_CHECK_TOOL(GCJ, gcj,)
  7392. test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  7393. AC_SUBST(GCJFLAGS)])])[]dnl
  7394. ])
  7395. # Old name:
  7396. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7397. dnl aclocal-1.4 backwards compatibility:
  7398. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7399. # LT_PROG_GO
  7400. # ----------
  7401. AC_DEFUN([LT_PROG_GO],
  7402. [AC_CHECK_TOOL(GOC, gccgo,)
  7403. ])
  7404. # LT_PROG_RC
  7405. # ----------
  7406. AC_DEFUN([LT_PROG_RC],
  7407. [AC_CHECK_TOOL(RC, windres,)
  7408. ])
  7409. # Old name:
  7410. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7411. dnl aclocal-1.4 backwards compatibility:
  7412. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7413. # _LT_DECL_EGREP
  7414. # --------------
  7415. # If we don't have a new enough Autoconf to choose the best grep
  7416. # available, choose the one first in the user's PATH.
  7417. m4_defun([_LT_DECL_EGREP],
  7418. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7419. AC_REQUIRE([AC_PROG_FGREP])dnl
  7420. test -z "$GREP" && GREP=grep
  7421. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7422. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7423. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7424. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7425. AC_SUBST([GREP])
  7426. ])
  7427. # _LT_DECL_OBJDUMP
  7428. # --------------
  7429. # If we don't have a new enough Autoconf to choose the best objdump
  7430. # available, choose the one first in the user's PATH.
  7431. m4_defun([_LT_DECL_OBJDUMP],
  7432. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7433. test -z "$OBJDUMP" && OBJDUMP=objdump
  7434. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7435. AC_SUBST([OBJDUMP])
  7436. ])
  7437. # _LT_DECL_DLLTOOL
  7438. # ----------------
  7439. # Ensure DLLTOOL variable is set.
  7440. m4_defun([_LT_DECL_DLLTOOL],
  7441. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7442. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7443. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7444. AC_SUBST([DLLTOOL])
  7445. ])
  7446. # _LT_DECL_FILECMD
  7447. # ----------------
  7448. # Check for a file(cmd) program that can be used to detect file type and magic
  7449. m4_defun([_LT_DECL_FILECMD],
  7450. [AC_CHECK_TOOL([FILECMD], [file], [:])
  7451. _LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types])
  7452. ])# _LD_DECL_FILECMD
  7453. # _LT_DECL_SED
  7454. # ------------
  7455. # Check for a fully-functional sed program, that truncates
  7456. # as few characters as possible. Prefer GNU sed if found.
  7457. m4_defun([_LT_DECL_SED],
  7458. [AC_PROG_SED
  7459. test -z "$SED" && SED=sed
  7460. Xsed="$SED -e 1s/^X//"
  7461. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7462. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7463. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7464. ])# _LT_DECL_SED
  7465. m4_ifndef([AC_PROG_SED], [
  7466. # NOTE: This macro has been submitted for inclusion into #
  7467. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7468. # a released version of Autoconf we should remove this #
  7469. # macro and use it instead. #
  7470. m4_defun([AC_PROG_SED],
  7471. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7472. AC_CACHE_VAL(lt_cv_path_SED,
  7473. [# Loop through the user's path and test for sed and gsed.
  7474. # Then use that list of sed's as ones to test for truncation.
  7475. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7476. for as_dir in $PATH
  7477. do
  7478. IFS=$as_save_IFS
  7479. test -z "$as_dir" && as_dir=.
  7480. for lt_ac_prog in sed gsed; do
  7481. for ac_exec_ext in '' $ac_executable_extensions; do
  7482. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7483. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7484. fi
  7485. done
  7486. done
  7487. done
  7488. IFS=$as_save_IFS
  7489. lt_ac_max=0
  7490. lt_ac_count=0
  7491. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7492. # along with /bin/sed that truncates output.
  7493. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7494. test ! -f "$lt_ac_sed" && continue
  7495. cat /dev/null > conftest.in
  7496. lt_ac_count=0
  7497. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7498. # Check for GNU sed and select it if it is found.
  7499. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7500. lt_cv_path_SED=$lt_ac_sed
  7501. break
  7502. fi
  7503. while true; do
  7504. cat conftest.in conftest.in >conftest.tmp
  7505. mv conftest.tmp conftest.in
  7506. cp conftest.in conftest.nl
  7507. echo >>conftest.nl
  7508. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7509. cmp -s conftest.out conftest.nl || break
  7510. # 10000 chars as input seems more than enough
  7511. test 10 -lt "$lt_ac_count" && break
  7512. lt_ac_count=`expr $lt_ac_count + 1`
  7513. if test "$lt_ac_count" -gt "$lt_ac_max"; then
  7514. lt_ac_max=$lt_ac_count
  7515. lt_cv_path_SED=$lt_ac_sed
  7516. fi
  7517. done
  7518. done
  7519. ])
  7520. SED=$lt_cv_path_SED
  7521. AC_SUBST([SED])
  7522. AC_MSG_RESULT([$SED])
  7523. ])#AC_PROG_SED
  7524. ])#m4_ifndef
  7525. # Old name:
  7526. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7527. dnl aclocal-1.4 backwards compatibility:
  7528. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7529. # _LT_CHECK_SHELL_FEATURES
  7530. # ------------------------
  7531. # Find out whether the shell is Bourne or XSI compatible,
  7532. # or has some other useful features.
  7533. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7534. [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7535. lt_unset=unset
  7536. else
  7537. lt_unset=false
  7538. fi
  7539. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7540. # test EBCDIC or ASCII
  7541. case `echo X|tr X '\101'` in
  7542. A) # ASCII based system
  7543. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7544. lt_SP2NL='tr \040 \012'
  7545. lt_NL2SP='tr \015\012 \040\040'
  7546. ;;
  7547. *) # EBCDIC based system
  7548. lt_SP2NL='tr \100 \n'
  7549. lt_NL2SP='tr \r\n \100\100'
  7550. ;;
  7551. esac
  7552. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7553. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7554. ])# _LT_CHECK_SHELL_FEATURES
  7555. # _LT_PATH_CONVERSION_FUNCTIONS
  7556. # -----------------------------
  7557. # Determine what file name conversion functions should be used by
  7558. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7559. # for certain cross-compile configurations and native mingw.
  7560. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7561. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7562. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7563. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7564. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7565. [case $host in
  7566. *-*-mingw* )
  7567. case $build in
  7568. *-*-mingw* ) # actually msys
  7569. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7570. ;;
  7571. *-*-cygwin* )
  7572. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7573. ;;
  7574. * ) # otherwise, assume *nix
  7575. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7576. ;;
  7577. esac
  7578. ;;
  7579. *-*-cygwin* )
  7580. case $build in
  7581. *-*-mingw* ) # actually msys
  7582. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7583. ;;
  7584. *-*-cygwin* )
  7585. lt_cv_to_host_file_cmd=func_convert_file_noop
  7586. ;;
  7587. * ) # otherwise, assume *nix
  7588. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7589. ;;
  7590. esac
  7591. ;;
  7592. * ) # unhandled hosts (and "normal" native builds)
  7593. lt_cv_to_host_file_cmd=func_convert_file_noop
  7594. ;;
  7595. esac
  7596. ])
  7597. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7598. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7599. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7600. [0], [convert $build file names to $host format])dnl
  7601. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7602. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7603. [#assume ordinary cross tools, or native build.
  7604. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7605. case $host in
  7606. *-*-mingw* )
  7607. case $build in
  7608. *-*-mingw* ) # actually msys
  7609. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7610. ;;
  7611. esac
  7612. ;;
  7613. esac
  7614. ])
  7615. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7616. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7617. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7618. [0], [convert $build files to toolchain format])dnl
  7619. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7620. # Helper functions for option handling. -*- Autoconf -*-
  7621. #
  7622. # Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free
  7623. # Software Foundation, Inc.
  7624. # Written by Gary V. Vaughan, 2004
  7625. #
  7626. # This file is free software; the Free Software Foundation gives
  7627. # unlimited permission to copy and/or distribute it, with or without
  7628. # modifications, as long as this notice is preserved.
  7629. # serial 8 ltoptions.m4
  7630. # This is to help aclocal find these macros, as it can't see m4_define.
  7631. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7632. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7633. # ------------------------------------------
  7634. m4_define([_LT_MANGLE_OPTION],
  7635. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7636. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7637. # ---------------------------------------
  7638. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7639. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7640. # saved as a flag.
  7641. m4_define([_LT_SET_OPTION],
  7642. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7643. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7644. _LT_MANGLE_DEFUN([$1], [$2]),
  7645. [m4_warning([Unknown $1 option '$2'])])[]dnl
  7646. ])
  7647. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7648. # ------------------------------------------------------------
  7649. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7650. m4_define([_LT_IF_OPTION],
  7651. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7652. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7653. # -------------------------------------------------------
  7654. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7655. # are set.
  7656. m4_define([_LT_UNLESS_OPTIONS],
  7657. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7658. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7659. [m4_define([$0_found])])])[]dnl
  7660. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7661. ])[]dnl
  7662. ])
  7663. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7664. # ----------------------------------------
  7665. # OPTION-LIST is a space-separated list of Libtool options associated
  7666. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7667. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7668. # the unknown option and exit.
  7669. m4_defun([_LT_SET_OPTIONS],
  7670. [# Set options
  7671. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7672. [_LT_SET_OPTION([$1], _LT_Option)])
  7673. m4_if([$1],[LT_INIT],[
  7674. dnl
  7675. dnl Simply set some default values (i.e off) if boolean options were not
  7676. dnl specified:
  7677. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7678. ])
  7679. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7680. ])
  7681. dnl
  7682. dnl If no reference was made to various pairs of opposing options, then
  7683. dnl we run the default mode handler for the pair. For example, if neither
  7684. dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
  7685. dnl archives by default:
  7686. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7687. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7688. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7689. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7690. [_LT_ENABLE_FAST_INSTALL])
  7691. _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
  7692. [_LT_WITH_AIX_SONAME([aix])])
  7693. ])
  7694. ])# _LT_SET_OPTIONS
  7695. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7696. # -----------------------------------------
  7697. m4_define([_LT_MANGLE_DEFUN],
  7698. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7699. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7700. # -----------------------------------------------
  7701. m4_define([LT_OPTION_DEFINE],
  7702. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7703. ])# LT_OPTION_DEFINE
  7704. # dlopen
  7705. # ------
  7706. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7707. ])
  7708. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7709. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7710. AC_DIAGNOSE([obsolete],
  7711. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7712. put the 'dlopen' option into LT_INIT's first parameter.])
  7713. ])
  7714. dnl aclocal-1.4 backwards compatibility:
  7715. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7716. # win32-dll
  7717. # ---------
  7718. # Declare package support for building win32 dll's.
  7719. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7720. [enable_win32_dll=yes
  7721. case $host in
  7722. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7723. AC_CHECK_TOOL(AS, as, false)
  7724. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7725. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7726. ;;
  7727. esac
  7728. test -z "$AS" && AS=as
  7729. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7730. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7731. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7732. test -z "$OBJDUMP" && OBJDUMP=objdump
  7733. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7734. ])# win32-dll
  7735. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7736. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7737. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7738. AC_DIAGNOSE([obsolete],
  7739. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7740. put the 'win32-dll' option into LT_INIT's first parameter.])
  7741. ])
  7742. dnl aclocal-1.4 backwards compatibility:
  7743. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7744. # _LT_ENABLE_SHARED([DEFAULT])
  7745. # ----------------------------
  7746. # implement the --enable-shared flag, and supports the 'shared' and
  7747. # 'disable-shared' LT_INIT options.
  7748. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7749. m4_define([_LT_ENABLE_SHARED],
  7750. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7751. AC_ARG_ENABLE([shared],
  7752. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7753. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7754. [p=${PACKAGE-default}
  7755. case $enableval in
  7756. yes) enable_shared=yes ;;
  7757. no) enable_shared=no ;;
  7758. *)
  7759. enable_shared=no
  7760. # Look at the argument we got. We use all the common list separators.
  7761. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7762. for pkg in $enableval; do
  7763. IFS=$lt_save_ifs
  7764. if test "X$pkg" = "X$p"; then
  7765. enable_shared=yes
  7766. fi
  7767. done
  7768. IFS=$lt_save_ifs
  7769. ;;
  7770. esac],
  7771. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7772. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7773. [Whether or not to build shared libraries])
  7774. ])# _LT_ENABLE_SHARED
  7775. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7776. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7777. # Old names:
  7778. AC_DEFUN([AC_ENABLE_SHARED],
  7779. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7780. ])
  7781. AC_DEFUN([AC_DISABLE_SHARED],
  7782. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7783. ])
  7784. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7785. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7786. dnl aclocal-1.4 backwards compatibility:
  7787. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7788. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7789. # _LT_ENABLE_STATIC([DEFAULT])
  7790. # ----------------------------
  7791. # implement the --enable-static flag, and support the 'static' and
  7792. # 'disable-static' LT_INIT options.
  7793. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7794. m4_define([_LT_ENABLE_STATIC],
  7795. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7796. AC_ARG_ENABLE([static],
  7797. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7798. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7799. [p=${PACKAGE-default}
  7800. case $enableval in
  7801. yes) enable_static=yes ;;
  7802. no) enable_static=no ;;
  7803. *)
  7804. enable_static=no
  7805. # Look at the argument we got. We use all the common list separators.
  7806. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7807. for pkg in $enableval; do
  7808. IFS=$lt_save_ifs
  7809. if test "X$pkg" = "X$p"; then
  7810. enable_static=yes
  7811. fi
  7812. done
  7813. IFS=$lt_save_ifs
  7814. ;;
  7815. esac],
  7816. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7817. _LT_DECL([build_old_libs], [enable_static], [0],
  7818. [Whether or not to build static libraries])
  7819. ])# _LT_ENABLE_STATIC
  7820. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7821. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7822. # Old names:
  7823. AC_DEFUN([AC_ENABLE_STATIC],
  7824. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7825. ])
  7826. AC_DEFUN([AC_DISABLE_STATIC],
  7827. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7828. ])
  7829. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7830. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7831. dnl aclocal-1.4 backwards compatibility:
  7832. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7833. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7834. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7835. # ----------------------------------
  7836. # implement the --enable-fast-install flag, and support the 'fast-install'
  7837. # and 'disable-fast-install' LT_INIT options.
  7838. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7839. m4_define([_LT_ENABLE_FAST_INSTALL],
  7840. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7841. AC_ARG_ENABLE([fast-install],
  7842. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7843. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7844. [p=${PACKAGE-default}
  7845. case $enableval in
  7846. yes) enable_fast_install=yes ;;
  7847. no) enable_fast_install=no ;;
  7848. *)
  7849. enable_fast_install=no
  7850. # Look at the argument we got. We use all the common list separators.
  7851. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7852. for pkg in $enableval; do
  7853. IFS=$lt_save_ifs
  7854. if test "X$pkg" = "X$p"; then
  7855. enable_fast_install=yes
  7856. fi
  7857. done
  7858. IFS=$lt_save_ifs
  7859. ;;
  7860. esac],
  7861. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7862. _LT_DECL([fast_install], [enable_fast_install], [0],
  7863. [Whether or not to optimize for fast installation])dnl
  7864. ])# _LT_ENABLE_FAST_INSTALL
  7865. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7866. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7867. # Old names:
  7868. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7869. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7870. AC_DIAGNOSE([obsolete],
  7871. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7872. the 'fast-install' option into LT_INIT's first parameter.])
  7873. ])
  7874. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7875. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7876. AC_DIAGNOSE([obsolete],
  7877. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7878. the 'disable-fast-install' option into LT_INIT's first parameter.])
  7879. ])
  7880. dnl aclocal-1.4 backwards compatibility:
  7881. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7882. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7883. # _LT_WITH_AIX_SONAME([DEFAULT])
  7884. # ----------------------------------
  7885. # implement the --with-aix-soname flag, and support the `aix-soname=aix'
  7886. # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
  7887. # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
  7888. m4_define([_LT_WITH_AIX_SONAME],
  7889. [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
  7890. shared_archive_member_spec=
  7891. case $host,$enable_shared in
  7892. power*-*-aix[[5-9]]*,yes)
  7893. AC_MSG_CHECKING([which variant of shared library versioning to provide])
  7894. AC_ARG_WITH([aix-soname],
  7895. [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
  7896. [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
  7897. [case $withval in
  7898. aix|svr4|both)
  7899. ;;
  7900. *)
  7901. AC_MSG_ERROR([Unknown argument to --with-aix-soname])
  7902. ;;
  7903. esac
  7904. lt_cv_with_aix_soname=$with_aix_soname],
  7905. [AC_CACHE_VAL([lt_cv_with_aix_soname],
  7906. [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
  7907. with_aix_soname=$lt_cv_with_aix_soname])
  7908. AC_MSG_RESULT([$with_aix_soname])
  7909. if test aix != "$with_aix_soname"; then
  7910. # For the AIX way of multilib, we name the shared archive member
  7911. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7912. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7913. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7914. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7915. if test 64 = "${OBJECT_MODE-32}"; then
  7916. shared_archive_member_spec=shr_64
  7917. else
  7918. shared_archive_member_spec=shr
  7919. fi
  7920. fi
  7921. ;;
  7922. *)
  7923. with_aix_soname=aix
  7924. ;;
  7925. esac
  7926. _LT_DECL([], [shared_archive_member_spec], [0],
  7927. [Shared archive member basename, for filename based shared library versioning on AIX])dnl
  7928. ])# _LT_WITH_AIX_SONAME
  7929. LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
  7930. LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
  7931. LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
  7932. # _LT_WITH_PIC([MODE])
  7933. # --------------------
  7934. # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
  7935. # LT_INIT options.
  7936. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
  7937. m4_define([_LT_WITH_PIC],
  7938. [AC_ARG_WITH([pic],
  7939. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7940. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7941. [lt_p=${PACKAGE-default}
  7942. case $withval in
  7943. yes|no) pic_mode=$withval ;;
  7944. *)
  7945. pic_mode=default
  7946. # Look at the argument we got. We use all the common list separators.
  7947. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7948. for lt_pkg in $withval; do
  7949. IFS=$lt_save_ifs
  7950. if test "X$lt_pkg" = "X$lt_p"; then
  7951. pic_mode=yes
  7952. fi
  7953. done
  7954. IFS=$lt_save_ifs
  7955. ;;
  7956. esac],
  7957. [pic_mode=m4_default([$1], [default])])
  7958. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7959. ])# _LT_WITH_PIC
  7960. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7961. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7962. # Old name:
  7963. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7964. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7965. AC_DIAGNOSE([obsolete],
  7966. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7967. put the 'pic-only' option into LT_INIT's first parameter.])
  7968. ])
  7969. dnl aclocal-1.4 backwards compatibility:
  7970. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7971. m4_define([_LTDL_MODE], [])
  7972. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7973. [m4_define([_LTDL_MODE], [nonrecursive])])
  7974. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7975. [m4_define([_LTDL_MODE], [recursive])])
  7976. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7977. [m4_define([_LTDL_MODE], [subproject])])
  7978. m4_define([_LTDL_TYPE], [])
  7979. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7980. [m4_define([_LTDL_TYPE], [installable])])
  7981. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7982. [m4_define([_LTDL_TYPE], [convenience])])
  7983. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7984. #
  7985. # Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software
  7986. # Foundation, Inc.
  7987. # Written by Gary V. Vaughan, 2004
  7988. #
  7989. # This file is free software; the Free Software Foundation gives
  7990. # unlimited permission to copy and/or distribute it, with or without
  7991. # modifications, as long as this notice is preserved.
  7992. # serial 6 ltsugar.m4
  7993. # This is to help aclocal find these macros, as it can't see m4_define.
  7994. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7995. # lt_join(SEP, ARG1, [ARG2...])
  7996. # -----------------------------
  7997. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7998. # associated separator.
  7999. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  8000. # versions in m4sugar had bugs.
  8001. m4_define([lt_join],
  8002. [m4_if([$#], [1], [],
  8003. [$#], [2], [[$2]],
  8004. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  8005. m4_define([_lt_join],
  8006. [m4_if([$#$2], [2], [],
  8007. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  8008. # lt_car(LIST)
  8009. # lt_cdr(LIST)
  8010. # ------------
  8011. # Manipulate m4 lists.
  8012. # These macros are necessary as long as will still need to support
  8013. # Autoconf-2.59, which quotes differently.
  8014. m4_define([lt_car], [[$1]])
  8015. m4_define([lt_cdr],
  8016. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  8017. [$#], 1, [],
  8018. [m4_dquote(m4_shift($@))])])
  8019. m4_define([lt_unquote], $1)
  8020. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  8021. # ------------------------------------------
  8022. # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
  8023. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  8024. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  8025. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  8026. # than defined and empty).
  8027. #
  8028. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  8029. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8030. m4_define([lt_append],
  8031. [m4_define([$1],
  8032. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8033. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8034. # ----------------------------------------------------------
  8035. # Produce a SEP delimited list of all paired combinations of elements of
  8036. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8037. # has the form PREFIXmINFIXSUFFIXn.
  8038. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  8039. m4_define([lt_combine],
  8040. [m4_if(m4_eval([$# > 3]), [1],
  8041. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8042. [[m4_foreach([_Lt_prefix], [$2],
  8043. [m4_foreach([_Lt_suffix],
  8044. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8045. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8046. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8047. # -----------------------------------------------------------------------
  8048. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8049. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8050. m4_define([lt_if_append_uniq],
  8051. [m4_ifdef([$1],
  8052. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8053. [lt_append([$1], [$2], [$3])$4],
  8054. [$5])],
  8055. [lt_append([$1], [$2], [$3])$4])])
  8056. # lt_dict_add(DICT, KEY, VALUE)
  8057. # -----------------------------
  8058. m4_define([lt_dict_add],
  8059. [m4_define([$1($2)], [$3])])
  8060. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8061. # --------------------------------------------
  8062. m4_define([lt_dict_add_subkey],
  8063. [m4_define([$1($2:$3)], [$4])])
  8064. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  8065. # ----------------------------------
  8066. m4_define([lt_dict_fetch],
  8067. [m4_ifval([$3],
  8068. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8069. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8070. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8071. # -----------------------------------------------------------------
  8072. m4_define([lt_if_dict_fetch],
  8073. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8074. [$5],
  8075. [$6])])
  8076. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8077. # --------------------------------------------------------------
  8078. m4_define([lt_dict_filter],
  8079. [m4_if([$5], [], [],
  8080. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8081. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8082. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8083. ])
  8084. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8085. #
  8086. # Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation,
  8087. # Inc.
  8088. # Written by Scott James Remnant, 2004
  8089. #
  8090. # This file is free software; the Free Software Foundation gives
  8091. # unlimited permission to copy and/or distribute it, with or without
  8092. # modifications, as long as this notice is preserved.
  8093. # @configure_input@
  8094. # serial 4245 ltversion.m4
  8095. # This file is part of GNU Libtool
  8096. m4_define([LT_PACKAGE_VERSION], [2.4.7])
  8097. m4_define([LT_PACKAGE_REVISION], [2.4.7])
  8098. AC_DEFUN([LTVERSION_VERSION],
  8099. [macro_version='2.4.7'
  8100. macro_revision='2.4.7'
  8101. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8102. _LT_DECL(, macro_revision, 0)
  8103. ])
  8104. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8105. #
  8106. # Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free
  8107. # Software Foundation, Inc.
  8108. # Written by Scott James Remnant, 2004.
  8109. #
  8110. # This file is free software; the Free Software Foundation gives
  8111. # unlimited permission to copy and/or distribute it, with or without
  8112. # modifications, as long as this notice is preserved.
  8113. # serial 5 lt~obsolete.m4
  8114. # These exist entirely to fool aclocal when bootstrapping libtool.
  8115. #
  8116. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
  8117. # which have later been changed to m4_define as they aren't part of the
  8118. # exported API, or moved to Autoconf or Automake where they belong.
  8119. #
  8120. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8121. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8122. # using a macro with the same name in our local m4/libtool.m4 it'll
  8123. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8124. # and doesn't know about Autoconf macros at all.)
  8125. #
  8126. # So we provide this file, which has a silly filename so it's always
  8127. # included after everything else. This provides aclocal with the
  8128. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8129. # because those macros already exist, or will be overwritten later.
  8130. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8131. #
  8132. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8133. # Yes, that means every name once taken will need to remain here until
  8134. # we give up compatibility with versions before 1.7, at which point
  8135. # we need to keep only those names which we still refer to.
  8136. # This is to help aclocal find these macros, as it can't see m4_define.
  8137. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8138. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8139. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8140. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8141. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8142. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8143. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8144. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8145. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8146. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8147. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8148. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8149. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8150. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8151. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8152. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8153. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8154. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8155. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8156. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8157. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8158. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8159. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8160. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8161. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8162. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8163. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8164. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8165. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8166. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8167. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8168. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8169. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8170. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8171. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8172. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8173. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8174. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8175. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8176. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8177. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8178. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8179. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8180. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8181. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8182. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8183. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8184. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8185. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8186. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8187. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8188. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8189. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8190. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8191. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8192. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8193. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8194. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8195. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8196. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8197. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8198. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8199. # AM_CONDITIONAL -*- Autoconf -*-
  8200. # Copyright (C) 1997-2021 Free Software Foundation, Inc.
  8201. #
  8202. # This file is free software; the Free Software Foundation
  8203. # gives unlimited permission to copy and/or distribute it,
  8204. # with or without modifications, as long as this notice is preserved.
  8205. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8206. # -------------------------------------
  8207. # Define a conditional.
  8208. AC_DEFUN([AM_CONDITIONAL],
  8209. [AC_PREREQ([2.52])dnl
  8210. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8211. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8212. AC_SUBST([$1_TRUE])dnl
  8213. AC_SUBST([$1_FALSE])dnl
  8214. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8215. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8216. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8217. if $2; then
  8218. $1_TRUE=
  8219. $1_FALSE='#'
  8220. else
  8221. $1_TRUE='#'
  8222. $1_FALSE=
  8223. fi
  8224. AC_CONFIG_COMMANDS_PRE(
  8225. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8226. AC_MSG_ERROR([[conditional "$1" was never defined.
  8227. Usually this means the macro was only invoked conditionally.]])
  8228. fi])])
  8229. # Copyright (C) 2006-2021 Free Software Foundation, Inc.
  8230. #
  8231. # This file is free software; the Free Software Foundation
  8232. # gives unlimited permission to copy and/or distribute it,
  8233. # with or without modifications, as long as this notice is preserved.
  8234. # _AM_SUBST_NOTMAKE(VARIABLE)
  8235. # ---------------------------
  8236. # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  8237. # This macro is traced by Automake.
  8238. AC_DEFUN([_AM_SUBST_NOTMAKE])
  8239. # AM_SUBST_NOTMAKE(VARIABLE)
  8240. # --------------------------
  8241. # Public sister of _AM_SUBST_NOTMAKE.
  8242. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  8243. m4_include([macros/ld-version-script.m4])
  8244. m4_include([macros/neon-test.m4])
  8245. m4_include([macros/neon-xml-parser.m4])
  8246. m4_include([macros/neon.m4])