aclocal.m4 368 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305
  1. # generated automatically by aclocal 1.16.1 -*- Autoconf -*-
  2. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  3. # This file is free software; the Free Software Foundation
  4. # gives unlimited permission to copy and/or distribute it,
  5. # with or without modifications, as long as this notice is preserved.
  6. # This program is distributed in the hope that it will be useful,
  7. # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  8. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  9. # PARTICULAR PURPOSE.
  10. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
  11. m4_ifndef([AC_AUTOCONF_VERSION],
  12. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  13. m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
  14. [m4_warning([this file was generated for autoconf 2.69.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically 'autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. #
  20. # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
  21. # Written by Gordon Matzigkeit, 1996
  22. #
  23. # This file is free software; the Free Software Foundation gives
  24. # unlimited permission to copy and/or distribute it, with or without
  25. # modifications, as long as this notice is preserved.
  26. m4_define([_LT_COPYING], [dnl
  27. # Copyright (C) 2014 Free Software Foundation, Inc.
  28. # This is free software; see the source for copying conditions. There is NO
  29. # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  30. # GNU Libtool is free software; you can redistribute it and/or modify
  31. # it under the terms of the GNU General Public License as published by
  32. # the Free Software Foundation; either version 2 of of the License, or
  33. # (at your option) any later version.
  34. #
  35. # As a special exception to the GNU General Public License, if you
  36. # distribute this file as part of a program or library that is built
  37. # using GNU Libtool, you may include this file under the same
  38. # distribution terms that you use for the rest of that program.
  39. #
  40. # GNU Libtool is distributed in the hope that it will be useful, but
  41. # WITHOUT ANY WARRANTY; without even the implied warranty of
  42. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43. # GNU General Public License for more details.
  44. #
  45. # You should have received a copy of the GNU General Public License
  46. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  47. ])
  48. # serial 58 LT_INIT
  49. # LT_PREREQ(VERSION)
  50. # ------------------
  51. # Complain and exit if this libtool version is less that VERSION.
  52. m4_defun([LT_PREREQ],
  53. [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  54. [m4_default([$3],
  55. [m4_fatal([Libtool version $1 or higher is required],
  56. 63)])],
  57. [$2])])
  58. # _LT_CHECK_BUILDDIR
  59. # ------------------
  60. # Complain if the absolute build directory name contains unusual characters
  61. m4_defun([_LT_CHECK_BUILDDIR],
  62. [case `pwd` in
  63. *\ * | *\ *)
  64. AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  65. esac
  66. ])
  67. # LT_INIT([OPTIONS])
  68. # ------------------
  69. AC_DEFUN([LT_INIT],
  70. [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
  71. AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  72. AC_BEFORE([$0], [LT_LANG])dnl
  73. AC_BEFORE([$0], [LT_OUTPUT])dnl
  74. AC_BEFORE([$0], [LTDL_INIT])dnl
  75. m4_require([_LT_CHECK_BUILDDIR])dnl
  76. dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  77. m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  78. m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  79. dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  80. dnl unless we require an AC_DEFUNed macro:
  81. AC_REQUIRE([LTOPTIONS_VERSION])dnl
  82. AC_REQUIRE([LTSUGAR_VERSION])dnl
  83. AC_REQUIRE([LTVERSION_VERSION])dnl
  84. AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  85. m4_require([_LT_PROG_LTMAIN])dnl
  86. _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
  87. dnl Parse OPTIONS
  88. _LT_SET_OPTIONS([$0], [$1])
  89. # This can be used to rebuild libtool when needed
  90. LIBTOOL_DEPS=$ltmain
  91. # Always use our own libtool.
  92. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  93. AC_SUBST(LIBTOOL)dnl
  94. _LT_SETUP
  95. # Only expand once:
  96. m4_define([LT_INIT])
  97. ])# LT_INIT
  98. # Old names:
  99. AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  100. AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  101. dnl aclocal-1.4 backwards compatibility:
  102. dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  103. dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  104. # _LT_PREPARE_CC_BASENAME
  105. # -----------------------
  106. m4_defun([_LT_PREPARE_CC_BASENAME], [
  107. # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  108. func_cc_basename ()
  109. {
  110. for cc_temp in @S|@*""; do
  111. case $cc_temp in
  112. compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  113. distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  114. \-*) ;;
  115. *) break;;
  116. esac
  117. done
  118. func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  119. }
  120. ])# _LT_PREPARE_CC_BASENAME
  121. # _LT_CC_BASENAME(CC)
  122. # -------------------
  123. # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
  124. # but that macro is also expanded into generated libtool script, which
  125. # arranges for $SED and $ECHO to be set by different means.
  126. m4_defun([_LT_CC_BASENAME],
  127. [m4_require([_LT_PREPARE_CC_BASENAME])dnl
  128. AC_REQUIRE([_LT_DECL_SED])dnl
  129. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  130. func_cc_basename $1
  131. cc_basename=$func_cc_basename_result
  132. ])
  133. # _LT_FILEUTILS_DEFAULTS
  134. # ----------------------
  135. # It is okay to use these file commands and assume they have been set
  136. # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
  137. m4_defun([_LT_FILEUTILS_DEFAULTS],
  138. [: ${CP="cp -f"}
  139. : ${MV="mv -f"}
  140. : ${RM="rm -f"}
  141. ])# _LT_FILEUTILS_DEFAULTS
  142. # _LT_SETUP
  143. # ---------
  144. m4_defun([_LT_SETUP],
  145. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  146. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  147. AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
  148. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
  149. _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
  150. dnl
  151. _LT_DECL([], [host_alias], [0], [The host system])dnl
  152. _LT_DECL([], [host], [0])dnl
  153. _LT_DECL([], [host_os], [0])dnl
  154. dnl
  155. _LT_DECL([], [build_alias], [0], [The build system])dnl
  156. _LT_DECL([], [build], [0])dnl
  157. _LT_DECL([], [build_os], [0])dnl
  158. dnl
  159. AC_REQUIRE([AC_PROG_CC])dnl
  160. AC_REQUIRE([LT_PATH_LD])dnl
  161. AC_REQUIRE([LT_PATH_NM])dnl
  162. dnl
  163. AC_REQUIRE([AC_PROG_LN_S])dnl
  164. test -z "$LN_S" && LN_S="ln -s"
  165. _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  166. dnl
  167. AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  168. _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  169. _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  170. dnl
  171. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  172. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  173. m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
  174. m4_require([_LT_CMD_RELOAD])dnl
  175. m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  176. m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
  177. m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  178. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  179. m4_require([_LT_WITH_SYSROOT])dnl
  180. m4_require([_LT_CMD_TRUNCATE])dnl
  181. _LT_CONFIG_LIBTOOL_INIT([
  182. # See if we are running on zsh, and set the options that allow our
  183. # commands through without removal of \ escapes INIT.
  184. if test -n "\${ZSH_VERSION+set}"; then
  185. setopt NO_GLOB_SUBST
  186. fi
  187. ])
  188. if test -n "${ZSH_VERSION+set}"; then
  189. setopt NO_GLOB_SUBST
  190. fi
  191. _LT_CHECK_OBJDIR
  192. m4_require([_LT_TAG_COMPILER])dnl
  193. case $host_os in
  194. aix3*)
  195. # AIX sometimes has problems with the GCC collect2 program. For some
  196. # reason, if we set the COLLECT_NAMES environment variable, the problems
  197. # vanish in a puff of smoke.
  198. if test set != "${COLLECT_NAMES+set}"; then
  199. COLLECT_NAMES=
  200. export COLLECT_NAMES
  201. fi
  202. ;;
  203. esac
  204. # Global variables:
  205. ofile=libtool
  206. can_build_shared=yes
  207. # All known linkers require a '.a' archive for static linking (except MSVC,
  208. # which needs '.lib').
  209. libext=a
  210. with_gnu_ld=$lt_cv_prog_gnu_ld
  211. old_CC=$CC
  212. old_CFLAGS=$CFLAGS
  213. # Set sane defaults for various variables
  214. test -z "$CC" && CC=cc
  215. test -z "$LTCC" && LTCC=$CC
  216. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  217. test -z "$LD" && LD=ld
  218. test -z "$ac_objext" && ac_objext=o
  219. _LT_CC_BASENAME([$compiler])
  220. # Only perform the check for file, if the check method requires it
  221. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  222. case $deplibs_check_method in
  223. file_magic*)
  224. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  225. _LT_PATH_MAGIC
  226. fi
  227. ;;
  228. esac
  229. # Use C for the default configuration in the libtool script
  230. LT_SUPPORTED_TAG([CC])
  231. _LT_LANG_C_CONFIG
  232. _LT_LANG_DEFAULT_CONFIG
  233. _LT_CONFIG_COMMANDS
  234. ])# _LT_SETUP
  235. # _LT_PREPARE_SED_QUOTE_VARS
  236. # --------------------------
  237. # Define a few sed substitution that help us do robust quoting.
  238. m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
  239. [# Backslashify metacharacters that are still active within
  240. # double-quoted strings.
  241. sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  242. # Same as above, but do not quote variable references.
  243. double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  244. # Sed substitution to delay expansion of an escaped shell variable in a
  245. # double_quote_subst'ed string.
  246. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  247. # Sed substitution to delay expansion of an escaped single quote.
  248. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  249. # Sed substitution to avoid accidental globbing in evaled expressions
  250. no_glob_subst='s/\*/\\\*/g'
  251. ])
  252. # _LT_PROG_LTMAIN
  253. # ---------------
  254. # Note that this code is called both from 'configure', and 'config.status'
  255. # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  256. # 'config.status' has no value for ac_aux_dir unless we are using Automake,
  257. # so we pass a copy along to make sure it has a sensible value anyway.
  258. m4_defun([_LT_PROG_LTMAIN],
  259. [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  260. _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  261. ltmain=$ac_aux_dir/ltmain.sh
  262. ])# _LT_PROG_LTMAIN
  263. # So that we can recreate a full libtool script including additional
  264. # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  265. # in macros and then make a single call at the end using the 'libtool'
  266. # label.
  267. # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  268. # ----------------------------------------
  269. # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  270. m4_define([_LT_CONFIG_LIBTOOL_INIT],
  271. [m4_ifval([$1],
  272. [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  273. [$1
  274. ])])])
  275. # Initialize.
  276. m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  277. # _LT_CONFIG_LIBTOOL([COMMANDS])
  278. # ------------------------------
  279. # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  280. m4_define([_LT_CONFIG_LIBTOOL],
  281. [m4_ifval([$1],
  282. [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  283. [$1
  284. ])])])
  285. # Initialize.
  286. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  287. # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  288. # -----------------------------------------------------
  289. m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  290. [_LT_CONFIG_LIBTOOL([$1])
  291. _LT_CONFIG_LIBTOOL_INIT([$2])
  292. ])
  293. # _LT_FORMAT_COMMENT([COMMENT])
  294. # -----------------------------
  295. # Add leading comment marks to the start of each line, and a trailing
  296. # full-stop to the whole comment if one is not present already.
  297. m4_define([_LT_FORMAT_COMMENT],
  298. [m4_ifval([$1], [
  299. m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  300. [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  301. )])
  302. # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  303. # -------------------------------------------------------------------
  304. # CONFIGNAME is the name given to the value in the libtool script.
  305. # VARNAME is the (base) name used in the configure script.
  306. # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  307. # VARNAME. Any other value will be used directly.
  308. m4_define([_LT_DECL],
  309. [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  310. [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  311. [m4_ifval([$1], [$1], [$2])])
  312. lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  313. m4_ifval([$4],
  314. [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  315. lt_dict_add_subkey([lt_decl_dict], [$2],
  316. [tagged?], [m4_ifval([$5], [yes], [no])])])
  317. ])
  318. # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  319. # --------------------------------------------------------
  320. m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  321. # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  322. # ------------------------------------------------
  323. m4_define([lt_decl_tag_varnames],
  324. [_lt_decl_filter([tagged?], [yes], $@)])
  325. # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  326. # ---------------------------------------------------------
  327. m4_define([_lt_decl_filter],
  328. [m4_case([$#],
  329. [0], [m4_fatal([$0: too few arguments: $#])],
  330. [1], [m4_fatal([$0: too few arguments: $#: $1])],
  331. [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  332. [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  333. [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  334. ])
  335. # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  336. # --------------------------------------------------
  337. m4_define([lt_decl_quote_varnames],
  338. [_lt_decl_filter([value], [1], $@)])
  339. # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  340. # ---------------------------------------------------
  341. m4_define([lt_decl_dquote_varnames],
  342. [_lt_decl_filter([value], [2], $@)])
  343. # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  344. # ---------------------------------------------------
  345. m4_define([lt_decl_varnames_tagged],
  346. [m4_assert([$# <= 2])dnl
  347. _$0(m4_quote(m4_default([$1], [[, ]])),
  348. m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  349. m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  350. m4_define([_lt_decl_varnames_tagged],
  351. [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  352. # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  353. # ------------------------------------------------
  354. m4_define([lt_decl_all_varnames],
  355. [_$0(m4_quote(m4_default([$1], [[, ]])),
  356. m4_if([$2], [],
  357. m4_quote(lt_decl_varnames),
  358. m4_quote(m4_shift($@))))[]dnl
  359. ])
  360. m4_define([_lt_decl_all_varnames],
  361. [lt_join($@, lt_decl_varnames_tagged([$1],
  362. lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  363. ])
  364. # _LT_CONFIG_STATUS_DECLARE([VARNAME])
  365. # ------------------------------------
  366. # Quote a variable value, and forward it to 'config.status' so that its
  367. # declaration there will have the same value as in 'configure'. VARNAME
  368. # must have a single quote delimited value for this to work.
  369. m4_define([_LT_CONFIG_STATUS_DECLARE],
  370. [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
  371. # _LT_CONFIG_STATUS_DECLARATIONS
  372. # ------------------------------
  373. # We delimit libtool config variables with single quotes, so when
  374. # we write them to config.status, we have to be sure to quote all
  375. # embedded single quotes properly. In configure, this macro expands
  376. # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  377. #
  378. # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
  379. m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  380. [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  381. [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  382. # _LT_LIBTOOL_TAGS
  383. # ----------------
  384. # Output comment and list of tags supported by the script
  385. m4_defun([_LT_LIBTOOL_TAGS],
  386. [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  387. available_tags='_LT_TAGS'dnl
  388. ])
  389. # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  390. # -----------------------------------
  391. # Extract the dictionary values for VARNAME (optionally with TAG) and
  392. # expand to a commented shell variable setting:
  393. #
  394. # # Some comment about what VAR is for.
  395. # visible_name=$lt_internal_name
  396. m4_define([_LT_LIBTOOL_DECLARE],
  397. [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  398. [description])))[]dnl
  399. m4_pushdef([_libtool_name],
  400. m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  401. m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  402. [0], [_libtool_name=[$]$1],
  403. [1], [_libtool_name=$lt_[]$1],
  404. [2], [_libtool_name=$lt_[]$1],
  405. [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  406. m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  407. ])
  408. # _LT_LIBTOOL_CONFIG_VARS
  409. # -----------------------
  410. # Produce commented declarations of non-tagged libtool config variables
  411. # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
  412. # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  413. # section) are produced by _LT_LIBTOOL_TAG_VARS.
  414. m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  415. [m4_foreach([_lt_var],
  416. m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  417. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  418. # _LT_LIBTOOL_TAG_VARS(TAG)
  419. # -------------------------
  420. m4_define([_LT_LIBTOOL_TAG_VARS],
  421. [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  422. [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  423. # _LT_TAGVAR(VARNAME, [TAGNAME])
  424. # ------------------------------
  425. m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  426. # _LT_CONFIG_COMMANDS
  427. # -------------------
  428. # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  429. # variables for single and double quote escaping we saved from calls
  430. # to _LT_DECL, we can put quote escaped variables declarations
  431. # into 'config.status', and then the shell code to quote escape them in
  432. # for loops in 'config.status'. Finally, any additional code accumulated
  433. # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  434. m4_defun([_LT_CONFIG_COMMANDS],
  435. [AC_PROVIDE_IFELSE([LT_OUTPUT],
  436. dnl If the libtool generation code has been placed in $CONFIG_LT,
  437. dnl instead of duplicating it all over again into config.status,
  438. dnl then we will have config.status run $CONFIG_LT later, so it
  439. dnl needs to know what name is stored there:
  440. [AC_CONFIG_COMMANDS([libtool],
  441. [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  442. dnl If the libtool generation code is destined for config.status,
  443. dnl expand the accumulated commands and init code now:
  444. [AC_CONFIG_COMMANDS([libtool],
  445. [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  446. ])#_LT_CONFIG_COMMANDS
  447. # Initialize.
  448. m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  449. [
  450. # The HP-UX ksh and POSIX shell print the target directory to stdout
  451. # if CDPATH is set.
  452. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  453. sed_quote_subst='$sed_quote_subst'
  454. double_quote_subst='$double_quote_subst'
  455. delay_variable_subst='$delay_variable_subst'
  456. _LT_CONFIG_STATUS_DECLARATIONS
  457. LTCC='$LTCC'
  458. LTCFLAGS='$LTCFLAGS'
  459. compiler='$compiler_DEFAULT'
  460. # A function that is used when there is no print builtin or printf.
  461. func_fallback_echo ()
  462. {
  463. eval 'cat <<_LTECHO_EOF
  464. \$[]1
  465. _LTECHO_EOF'
  466. }
  467. # Quote evaled strings.
  468. for var in lt_decl_all_varnames([[ \
  469. ]], lt_decl_quote_varnames); do
  470. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  471. *[[\\\\\\\`\\"\\\$]]*)
  472. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  473. ;;
  474. *)
  475. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  476. ;;
  477. esac
  478. done
  479. # Double-quote double-evaled strings.
  480. for var in lt_decl_all_varnames([[ \
  481. ]], lt_decl_dquote_varnames); do
  482. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  483. *[[\\\\\\\`\\"\\\$]]*)
  484. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
  485. ;;
  486. *)
  487. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  488. ;;
  489. esac
  490. done
  491. _LT_OUTPUT_LIBTOOL_INIT
  492. ])
  493. # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
  494. # ------------------------------------
  495. # Generate a child script FILE with all initialization necessary to
  496. # reuse the environment learned by the parent script, and make the
  497. # file executable. If COMMENT is supplied, it is inserted after the
  498. # '#!' sequence but before initialization text begins. After this
  499. # macro, additional text can be appended to FILE to form the body of
  500. # the child script. The macro ends with non-zero status if the
  501. # file could not be fully written (such as if the disk is full).
  502. m4_ifdef([AS_INIT_GENERATED],
  503. [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
  504. [m4_defun([_LT_GENERATED_FILE_INIT],
  505. [m4_require([AS_PREPARE])]dnl
  506. [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
  507. [lt_write_fail=0
  508. cat >$1 <<_ASEOF || lt_write_fail=1
  509. #! $SHELL
  510. # Generated by $as_me.
  511. $2
  512. SHELL=\${CONFIG_SHELL-$SHELL}
  513. export SHELL
  514. _ASEOF
  515. cat >>$1 <<\_ASEOF || lt_write_fail=1
  516. AS_SHELL_SANITIZE
  517. _AS_PREPARE
  518. exec AS_MESSAGE_FD>&1
  519. _ASEOF
  520. test 0 = "$lt_write_fail" && chmod +x $1[]dnl
  521. m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
  522. # LT_OUTPUT
  523. # ---------
  524. # This macro allows early generation of the libtool script (before
  525. # AC_OUTPUT is called), incase it is used in configure for compilation
  526. # tests.
  527. AC_DEFUN([LT_OUTPUT],
  528. [: ${CONFIG_LT=./config.lt}
  529. AC_MSG_NOTICE([creating $CONFIG_LT])
  530. _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
  531. [# Run this file to recreate a libtool stub with the current configuration.])
  532. cat >>"$CONFIG_LT" <<\_LTEOF
  533. lt_cl_silent=false
  534. exec AS_MESSAGE_LOG_FD>>config.log
  535. {
  536. echo
  537. AS_BOX([Running $as_me.])
  538. } >&AS_MESSAGE_LOG_FD
  539. lt_cl_help="\
  540. '$as_me' creates a local libtool stub from the current configuration,
  541. for use in further configure time tests before the real libtool is
  542. generated.
  543. Usage: $[0] [[OPTIONS]]
  544. -h, --help print this help, then exit
  545. -V, --version print version number, then exit
  546. -q, --quiet do not print progress messages
  547. -d, --debug don't remove temporary files
  548. Report bugs to <bug-libtool@gnu.org>."
  549. lt_cl_version="\
  550. m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  551. m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  552. configured by $[0], generated by m4_PACKAGE_STRING.
  553. Copyright (C) 2011 Free Software Foundation, Inc.
  554. This config.lt script is free software; the Free Software Foundation
  555. gives unlimited permision to copy, distribute and modify it."
  556. while test 0 != $[#]
  557. do
  558. case $[1] in
  559. --version | --v* | -V )
  560. echo "$lt_cl_version"; exit 0 ;;
  561. --help | --h* | -h )
  562. echo "$lt_cl_help"; exit 0 ;;
  563. --debug | --d* | -d )
  564. debug=: ;;
  565. --quiet | --q* | --silent | --s* | -q )
  566. lt_cl_silent=: ;;
  567. -*) AC_MSG_ERROR([unrecognized option: $[1]
  568. Try '$[0] --help' for more information.]) ;;
  569. *) AC_MSG_ERROR([unrecognized argument: $[1]
  570. Try '$[0] --help' for more information.]) ;;
  571. esac
  572. shift
  573. done
  574. if $lt_cl_silent; then
  575. exec AS_MESSAGE_FD>/dev/null
  576. fi
  577. _LTEOF
  578. cat >>"$CONFIG_LT" <<_LTEOF
  579. _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  580. _LTEOF
  581. cat >>"$CONFIG_LT" <<\_LTEOF
  582. AC_MSG_NOTICE([creating $ofile])
  583. _LT_OUTPUT_LIBTOOL_COMMANDS
  584. AS_EXIT(0)
  585. _LTEOF
  586. chmod +x "$CONFIG_LT"
  587. # configure is writing to config.log, but config.lt does its own redirection,
  588. # appending to config.log, which fails on DOS, as config.log is still kept
  589. # open by configure. Here we exec the FD to /dev/null, effectively closing
  590. # config.log, so it can be properly (re)opened and appended to by config.lt.
  591. lt_cl_success=:
  592. test yes = "$silent" &&
  593. lt_config_lt_args="$lt_config_lt_args --quiet"
  594. exec AS_MESSAGE_LOG_FD>/dev/null
  595. $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  596. exec AS_MESSAGE_LOG_FD>>config.log
  597. $lt_cl_success || AS_EXIT(1)
  598. ])# LT_OUTPUT
  599. # _LT_CONFIG(TAG)
  600. # ---------------
  601. # If TAG is the built-in tag, create an initial libtool script with a
  602. # default configuration from the untagged config vars. Otherwise add code
  603. # to config.status for appending the configuration named by TAG from the
  604. # matching tagged config vars.
  605. m4_defun([_LT_CONFIG],
  606. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  607. _LT_CONFIG_SAVE_COMMANDS([
  608. m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  609. m4_if(_LT_TAG, [C], [
  610. # See if we are running on zsh, and set the options that allow our
  611. # commands through without removal of \ escapes.
  612. if test -n "${ZSH_VERSION+set}"; then
  613. setopt NO_GLOB_SUBST
  614. fi
  615. cfgfile=${ofile}T
  616. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  617. $RM "$cfgfile"
  618. cat <<_LT_EOF >> "$cfgfile"
  619. #! $SHELL
  620. # Generated automatically by $as_me ($PACKAGE) $VERSION
  621. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  622. # Provide generalized library-building support services.
  623. # Written by Gordon Matzigkeit, 1996
  624. _LT_COPYING
  625. _LT_LIBTOOL_TAGS
  626. # Configured defaults for sys_lib_dlsearch_path munging.
  627. : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
  628. # ### BEGIN LIBTOOL CONFIG
  629. _LT_LIBTOOL_CONFIG_VARS
  630. _LT_LIBTOOL_TAG_VARS
  631. # ### END LIBTOOL CONFIG
  632. _LT_EOF
  633. cat <<'_LT_EOF' >> "$cfgfile"
  634. # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
  635. _LT_PREPARE_MUNGE_PATH_LIST
  636. _LT_PREPARE_CC_BASENAME
  637. # ### END FUNCTIONS SHARED WITH CONFIGURE
  638. _LT_EOF
  639. case $host_os in
  640. aix3*)
  641. cat <<\_LT_EOF >> "$cfgfile"
  642. # AIX sometimes has problems with the GCC collect2 program. For some
  643. # reason, if we set the COLLECT_NAMES environment variable, the problems
  644. # vanish in a puff of smoke.
  645. if test set != "${COLLECT_NAMES+set}"; then
  646. COLLECT_NAMES=
  647. export COLLECT_NAMES
  648. fi
  649. _LT_EOF
  650. ;;
  651. esac
  652. _LT_PROG_LTMAIN
  653. # We use sed instead of cat because bash on DJGPP gets confused if
  654. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  655. # text mode, it properly converts lines to CR/LF. This bash problem
  656. # is reportedly fixed, but why not run on old versions too?
  657. sed '$q' "$ltmain" >> "$cfgfile" \
  658. || (rm -f "$cfgfile"; exit 1)
  659. mv -f "$cfgfile" "$ofile" ||
  660. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  661. chmod +x "$ofile"
  662. ],
  663. [cat <<_LT_EOF >> "$ofile"
  664. dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  665. dnl in a comment (ie after a #).
  666. # ### BEGIN LIBTOOL TAG CONFIG: $1
  667. _LT_LIBTOOL_TAG_VARS(_LT_TAG)
  668. # ### END LIBTOOL TAG CONFIG: $1
  669. _LT_EOF
  670. ])dnl /m4_if
  671. ],
  672. [m4_if([$1], [], [
  673. PACKAGE='$PACKAGE'
  674. VERSION='$VERSION'
  675. RM='$RM'
  676. ofile='$ofile'], [])
  677. ])dnl /_LT_CONFIG_SAVE_COMMANDS
  678. ])# _LT_CONFIG
  679. # LT_SUPPORTED_TAG(TAG)
  680. # ---------------------
  681. # Trace this macro to discover what tags are supported by the libtool
  682. # --tag option, using:
  683. # autoconf --trace 'LT_SUPPORTED_TAG:$1'
  684. AC_DEFUN([LT_SUPPORTED_TAG], [])
  685. # C support is built-in for now
  686. m4_define([_LT_LANG_C_enabled], [])
  687. m4_define([_LT_TAGS], [])
  688. # LT_LANG(LANG)
  689. # -------------
  690. # Enable libtool support for the given language if not already enabled.
  691. AC_DEFUN([LT_LANG],
  692. [AC_BEFORE([$0], [LT_OUTPUT])dnl
  693. m4_case([$1],
  694. [C], [_LT_LANG(C)],
  695. [C++], [_LT_LANG(CXX)],
  696. [Go], [_LT_LANG(GO)],
  697. [Java], [_LT_LANG(GCJ)],
  698. [Fortran 77], [_LT_LANG(F77)],
  699. [Fortran], [_LT_LANG(FC)],
  700. [Windows Resource], [_LT_LANG(RC)],
  701. [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  702. [_LT_LANG($1)],
  703. [m4_fatal([$0: unsupported language: "$1"])])])dnl
  704. ])# LT_LANG
  705. # _LT_LANG(LANGNAME)
  706. # ------------------
  707. m4_defun([_LT_LANG],
  708. [m4_ifdef([_LT_LANG_]$1[_enabled], [],
  709. [LT_SUPPORTED_TAG([$1])dnl
  710. m4_append([_LT_TAGS], [$1 ])dnl
  711. m4_define([_LT_LANG_]$1[_enabled], [])dnl
  712. _LT_LANG_$1_CONFIG($1)])dnl
  713. ])# _LT_LANG
  714. m4_ifndef([AC_PROG_GO], [
  715. # NOTE: This macro has been submitted for inclusion into #
  716. # GNU Autoconf as AC_PROG_GO. When it is available in #
  717. # a released version of Autoconf we should remove this #
  718. # macro and use it instead. #
  719. m4_defun([AC_PROG_GO],
  720. [AC_LANG_PUSH(Go)dnl
  721. AC_ARG_VAR([GOC], [Go compiler command])dnl
  722. AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
  723. _AC_ARG_VAR_LDFLAGS()dnl
  724. AC_CHECK_TOOL(GOC, gccgo)
  725. if test -z "$GOC"; then
  726. if test -n "$ac_tool_prefix"; then
  727. AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
  728. fi
  729. fi
  730. if test -z "$GOC"; then
  731. AC_CHECK_PROG(GOC, gccgo, gccgo, false)
  732. fi
  733. ])#m4_defun
  734. ])#m4_ifndef
  735. # _LT_LANG_DEFAULT_CONFIG
  736. # -----------------------
  737. m4_defun([_LT_LANG_DEFAULT_CONFIG],
  738. [AC_PROVIDE_IFELSE([AC_PROG_CXX],
  739. [LT_LANG(CXX)],
  740. [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  741. AC_PROVIDE_IFELSE([AC_PROG_F77],
  742. [LT_LANG(F77)],
  743. [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  744. AC_PROVIDE_IFELSE([AC_PROG_FC],
  745. [LT_LANG(FC)],
  746. [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  747. dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  748. dnl pulling things in needlessly.
  749. AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  750. [LT_LANG(GCJ)],
  751. [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  752. [LT_LANG(GCJ)],
  753. [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  754. [LT_LANG(GCJ)],
  755. [m4_ifdef([AC_PROG_GCJ],
  756. [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  757. m4_ifdef([A][M_PROG_GCJ],
  758. [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  759. m4_ifdef([LT_PROG_GCJ],
  760. [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  761. AC_PROVIDE_IFELSE([AC_PROG_GO],
  762. [LT_LANG(GO)],
  763. [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
  764. AC_PROVIDE_IFELSE([LT_PROG_RC],
  765. [LT_LANG(RC)],
  766. [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  767. ])# _LT_LANG_DEFAULT_CONFIG
  768. # Obsolete macros:
  769. AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  770. AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  771. AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  772. AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  773. AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
  774. dnl aclocal-1.4 backwards compatibility:
  775. dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  776. dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  777. dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  778. dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  779. dnl AC_DEFUN([AC_LIBTOOL_RC], [])
  780. # _LT_TAG_COMPILER
  781. # ----------------
  782. m4_defun([_LT_TAG_COMPILER],
  783. [AC_REQUIRE([AC_PROG_CC])dnl
  784. _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  785. _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  786. _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  787. _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  788. # If no C compiler was specified, use CC.
  789. LTCC=${LTCC-"$CC"}
  790. # If no C compiler flags were specified, use CFLAGS.
  791. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  792. # Allow CC to be a program name with arguments.
  793. compiler=$CC
  794. ])# _LT_TAG_COMPILER
  795. # _LT_COMPILER_BOILERPLATE
  796. # ------------------------
  797. # Check for compiler boilerplate output or warnings with
  798. # the simple compiler test code.
  799. m4_defun([_LT_COMPILER_BOILERPLATE],
  800. [m4_require([_LT_DECL_SED])dnl
  801. ac_outfile=conftest.$ac_objext
  802. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  803. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  804. _lt_compiler_boilerplate=`cat conftest.err`
  805. $RM conftest*
  806. ])# _LT_COMPILER_BOILERPLATE
  807. # _LT_LINKER_BOILERPLATE
  808. # ----------------------
  809. # Check for linker boilerplate output or warnings with
  810. # the simple link test code.
  811. m4_defun([_LT_LINKER_BOILERPLATE],
  812. [m4_require([_LT_DECL_SED])dnl
  813. ac_outfile=conftest.$ac_objext
  814. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  815. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  816. _lt_linker_boilerplate=`cat conftest.err`
  817. $RM -r conftest*
  818. ])# _LT_LINKER_BOILERPLATE
  819. # _LT_REQUIRED_DARWIN_CHECKS
  820. # -------------------------
  821. m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  822. case $host_os in
  823. rhapsody* | darwin*)
  824. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  825. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  826. AC_CHECK_TOOL([LIPO], [lipo], [:])
  827. AC_CHECK_TOOL([OTOOL], [otool], [:])
  828. AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  829. _LT_DECL([], [DSYMUTIL], [1],
  830. [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  831. _LT_DECL([], [NMEDIT], [1],
  832. [Tool to change global to local symbols on Mac OS X])
  833. _LT_DECL([], [LIPO], [1],
  834. [Tool to manipulate fat objects and archives on Mac OS X])
  835. _LT_DECL([], [OTOOL], [1],
  836. [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  837. _LT_DECL([], [OTOOL64], [1],
  838. [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  839. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  840. [lt_cv_apple_cc_single_mod=no
  841. if test -z "$LT_MULTI_MODULE"; then
  842. # By default we will add the -single_module flag. You can override
  843. # by either setting the environment variable LT_MULTI_MODULE
  844. # non-empty at configure time, or by adding -multi_module to the
  845. # link flags.
  846. rm -rf libconftest.dylib*
  847. echo "int foo(void){return 1;}" > conftest.c
  848. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  849. -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  850. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  851. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  852. _lt_result=$?
  853. # If there is a non-empty error log, and "single_module"
  854. # appears in it, assume the flag caused a linker warning
  855. if test -s conftest.err && $GREP single_module conftest.err; then
  856. cat conftest.err >&AS_MESSAGE_LOG_FD
  857. # Otherwise, if the output was created with a 0 exit code from
  858. # the compiler, it worked.
  859. elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
  860. lt_cv_apple_cc_single_mod=yes
  861. else
  862. cat conftest.err >&AS_MESSAGE_LOG_FD
  863. fi
  864. rm -rf libconftest.dylib*
  865. rm -f conftest.*
  866. fi])
  867. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  868. [lt_cv_ld_exported_symbols_list],
  869. [lt_cv_ld_exported_symbols_list=no
  870. save_LDFLAGS=$LDFLAGS
  871. echo "_main" > conftest.sym
  872. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  873. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  874. [lt_cv_ld_exported_symbols_list=yes],
  875. [lt_cv_ld_exported_symbols_list=no])
  876. LDFLAGS=$save_LDFLAGS
  877. ])
  878. AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
  879. [lt_cv_ld_force_load=no
  880. cat > conftest.c << _LT_EOF
  881. int forced_loaded() { return 2;}
  882. _LT_EOF
  883. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
  884. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
  885. echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
  886. $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
  887. echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
  888. $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
  889. cat > conftest.c << _LT_EOF
  890. int main() { return 0;}
  891. _LT_EOF
  892. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
  893. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  894. _lt_result=$?
  895. if test -s conftest.err && $GREP force_load conftest.err; then
  896. cat conftest.err >&AS_MESSAGE_LOG_FD
  897. elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
  898. lt_cv_ld_force_load=yes
  899. else
  900. cat conftest.err >&AS_MESSAGE_LOG_FD
  901. fi
  902. rm -f conftest.err libconftest.a conftest conftest.c
  903. rm -rf conftest.dSYM
  904. ])
  905. case $host_os in
  906. rhapsody* | darwin1.[[012]])
  907. _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
  908. darwin1.*)
  909. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  910. darwin*) # darwin 5.x on
  911. # if running on 10.5 or later, the deployment target defaults
  912. # to the OS version, if on x86, and 10.4, the deployment
  913. # target defaults to 10.4. Don't you love it?
  914. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  915. 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  916. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  917. 10.[[012]][[,.]]*)
  918. _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
  919. 10.*)
  920. _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
  921. esac
  922. ;;
  923. esac
  924. if test yes = "$lt_cv_apple_cc_single_mod"; then
  925. _lt_dar_single_mod='$single_module'
  926. fi
  927. if test yes = "$lt_cv_ld_exported_symbols_list"; then
  928. _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
  929. else
  930. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
  931. fi
  932. if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
  933. _lt_dsymutil='~$DSYMUTIL $lib || :'
  934. else
  935. _lt_dsymutil=
  936. fi
  937. ;;
  938. esac
  939. ])
  940. # _LT_DARWIN_LINKER_FEATURES([TAG])
  941. # ---------------------------------
  942. # Checks for linker and compiler features on darwin
  943. m4_defun([_LT_DARWIN_LINKER_FEATURES],
  944. [
  945. m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  946. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  947. _LT_TAGVAR(hardcode_direct, $1)=no
  948. _LT_TAGVAR(hardcode_automatic, $1)=yes
  949. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  950. if test yes = "$lt_cv_ld_force_load"; then
  951. _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\"`'
  952. m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
  953. [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
  954. else
  955. _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  956. fi
  957. _LT_TAGVAR(link_all_deplibs, $1)=yes
  958. _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
  959. case $cc_basename in
  960. ifort*|nagfor*) _lt_dar_can_shared=yes ;;
  961. *) _lt_dar_can_shared=$GCC ;;
  962. esac
  963. if test yes = "$_lt_dar_can_shared"; then
  964. output_verbose_link_cmd=func_echo_all
  965. _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"
  966. _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
  967. _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"
  968. _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"
  969. m4_if([$1], [CXX],
  970. [ if test yes != "$lt_cv_apple_cc_single_mod"; then
  971. _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"
  972. _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"
  973. fi
  974. ],[])
  975. else
  976. _LT_TAGVAR(ld_shlibs, $1)=no
  977. fi
  978. ])
  979. # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
  980. # ----------------------------------
  981. # Links a minimal program and checks the executable
  982. # for the system default hardcoded library path. In most cases,
  983. # this is /usr/lib:/lib, but when the MPI compilers are used
  984. # the location of the communication and MPI libs are included too.
  985. # If we don't find anything, use the default library path according
  986. # to the aix ld manual.
  987. # Store the results from the different compilers for each TAGNAME.
  988. # Allow to override them for all tags through lt_cv_aix_libpath.
  989. m4_defun([_LT_SYS_MODULE_PATH_AIX],
  990. [m4_require([_LT_DECL_SED])dnl
  991. if test set = "${lt_cv_aix_libpath+set}"; then
  992. aix_libpath=$lt_cv_aix_libpath
  993. else
  994. AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
  995. [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
  996. lt_aix_libpath_sed='[
  997. /Import File Strings/,/^$/ {
  998. /^0/ {
  999. s/^0 *\([^ ]*\) *$/\1/
  1000. p
  1001. }
  1002. }]'
  1003. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1004. # Check for a 64-bit object if we didn't find anything.
  1005. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1006. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1007. fi],[])
  1008. if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
  1009. _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
  1010. fi
  1011. ])
  1012. aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
  1013. fi
  1014. ])# _LT_SYS_MODULE_PATH_AIX
  1015. # _LT_SHELL_INIT(ARG)
  1016. # -------------------
  1017. m4_define([_LT_SHELL_INIT],
  1018. [m4_divert_text([M4SH-INIT], [$1
  1019. ])])# _LT_SHELL_INIT
  1020. # _LT_PROG_ECHO_BACKSLASH
  1021. # -----------------------
  1022. # Find how we can fake an echo command that does not interpret backslash.
  1023. # In particular, with Autoconf 2.60 or later we add some code to the start
  1024. # of the generated configure script that will find a shell with a builtin
  1025. # printf (that we can use as an echo command).
  1026. m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1027. [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1028. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1029. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1030. AC_MSG_CHECKING([how to print strings])
  1031. # Test print first, because it will be a builtin if present.
  1032. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  1033. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  1034. ECHO='print -r --'
  1035. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  1036. ECHO='printf %s\n'
  1037. else
  1038. # Use this function as a fallback that always works.
  1039. func_fallback_echo ()
  1040. {
  1041. eval 'cat <<_LTECHO_EOF
  1042. $[]1
  1043. _LTECHO_EOF'
  1044. }
  1045. ECHO='func_fallback_echo'
  1046. fi
  1047. # func_echo_all arg...
  1048. # Invoke $ECHO with all args, space-separated.
  1049. func_echo_all ()
  1050. {
  1051. $ECHO "$*"
  1052. }
  1053. case $ECHO in
  1054. printf*) AC_MSG_RESULT([printf]) ;;
  1055. print*) AC_MSG_RESULT([print -r]) ;;
  1056. *) AC_MSG_RESULT([cat]) ;;
  1057. esac
  1058. m4_ifdef([_AS_DETECT_SUGGESTED],
  1059. [_AS_DETECT_SUGGESTED([
  1060. test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
  1061. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  1062. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  1063. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  1064. PATH=/empty FPATH=/empty; export PATH FPATH
  1065. test "X`printf %s $ECHO`" = "X$ECHO" \
  1066. || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
  1067. _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1068. _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
  1069. ])# _LT_PROG_ECHO_BACKSLASH
  1070. # _LT_WITH_SYSROOT
  1071. # ----------------
  1072. AC_DEFUN([_LT_WITH_SYSROOT],
  1073. [AC_MSG_CHECKING([for sysroot])
  1074. AC_ARG_WITH([sysroot],
  1075. [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
  1076. [Search for dependent libraries within DIR (or the compiler's sysroot
  1077. if not specified).])],
  1078. [], [with_sysroot=no])
  1079. dnl lt_sysroot will always be passed unquoted. We quote it here
  1080. dnl in case the user passed a directory name.
  1081. lt_sysroot=
  1082. case $with_sysroot in #(
  1083. yes)
  1084. if test yes = "$GCC"; then
  1085. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  1086. fi
  1087. ;; #(
  1088. /*)
  1089. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  1090. ;; #(
  1091. no|'')
  1092. ;; #(
  1093. *)
  1094. AC_MSG_RESULT([$with_sysroot])
  1095. AC_MSG_ERROR([The sysroot must be an absolute path.])
  1096. ;;
  1097. esac
  1098. AC_MSG_RESULT([${lt_sysroot:-no}])
  1099. _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
  1100. [dependent libraries, and where our libraries should be installed.])])
  1101. # _LT_ENABLE_LOCK
  1102. # ---------------
  1103. m4_defun([_LT_ENABLE_LOCK],
  1104. [AC_ARG_ENABLE([libtool-lock],
  1105. [AS_HELP_STRING([--disable-libtool-lock],
  1106. [avoid locking (might break parallel builds)])])
  1107. test no = "$enable_libtool_lock" || enable_libtool_lock=yes
  1108. # Some flags need to be propagated to the compiler or linker for good
  1109. # libtool support.
  1110. case $host in
  1111. ia64-*-hpux*)
  1112. # Find out what ABI is being produced by ac_compile, and set mode
  1113. # options accordingly.
  1114. echo 'int i;' > conftest.$ac_ext
  1115. if AC_TRY_EVAL(ac_compile); then
  1116. case `/usr/bin/file conftest.$ac_objext` in
  1117. *ELF-32*)
  1118. HPUX_IA64_MODE=32
  1119. ;;
  1120. *ELF-64*)
  1121. HPUX_IA64_MODE=64
  1122. ;;
  1123. esac
  1124. fi
  1125. rm -rf conftest*
  1126. ;;
  1127. *-*-irix6*)
  1128. # Find out what ABI is being produced by ac_compile, and set linker
  1129. # options accordingly.
  1130. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1131. if AC_TRY_EVAL(ac_compile); then
  1132. if test yes = "$lt_cv_prog_gnu_ld"; then
  1133. case `/usr/bin/file conftest.$ac_objext` in
  1134. *32-bit*)
  1135. LD="${LD-ld} -melf32bsmip"
  1136. ;;
  1137. *N32*)
  1138. LD="${LD-ld} -melf32bmipn32"
  1139. ;;
  1140. *64-bit*)
  1141. LD="${LD-ld} -melf64bmip"
  1142. ;;
  1143. esac
  1144. else
  1145. case `/usr/bin/file conftest.$ac_objext` in
  1146. *32-bit*)
  1147. LD="${LD-ld} -32"
  1148. ;;
  1149. *N32*)
  1150. LD="${LD-ld} -n32"
  1151. ;;
  1152. *64-bit*)
  1153. LD="${LD-ld} -64"
  1154. ;;
  1155. esac
  1156. fi
  1157. fi
  1158. rm -rf conftest*
  1159. ;;
  1160. mips64*-*linux*)
  1161. # Find out what ABI is being produced by ac_compile, and set linker
  1162. # options accordingly.
  1163. echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
  1164. if AC_TRY_EVAL(ac_compile); then
  1165. emul=elf
  1166. case `/usr/bin/file conftest.$ac_objext` in
  1167. *32-bit*)
  1168. emul="${emul}32"
  1169. ;;
  1170. *64-bit*)
  1171. emul="${emul}64"
  1172. ;;
  1173. esac
  1174. case `/usr/bin/file conftest.$ac_objext` in
  1175. *MSB*)
  1176. emul="${emul}btsmip"
  1177. ;;
  1178. *LSB*)
  1179. emul="${emul}ltsmip"
  1180. ;;
  1181. esac
  1182. case `/usr/bin/file conftest.$ac_objext` in
  1183. *N32*)
  1184. emul="${emul}n32"
  1185. ;;
  1186. esac
  1187. LD="${LD-ld} -m $emul"
  1188. fi
  1189. rm -rf conftest*
  1190. ;;
  1191. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  1192. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1193. # Find out what ABI is being produced by ac_compile, and set linker
  1194. # options accordingly. Note that the listed cases only cover the
  1195. # situations where additional linker options are needed (such as when
  1196. # doing 32-bit compilation for a host where ld defaults to 64-bit, or
  1197. # vice versa); the common cases where no linker options are needed do
  1198. # not appear in the list.
  1199. echo 'int i;' > conftest.$ac_ext
  1200. if AC_TRY_EVAL(ac_compile); then
  1201. case `/usr/bin/file conftest.o` in
  1202. *32-bit*)
  1203. case $host in
  1204. x86_64-*kfreebsd*-gnu)
  1205. LD="${LD-ld} -m elf_i386_fbsd"
  1206. ;;
  1207. x86_64-*linux*)
  1208. case `/usr/bin/file conftest.o` in
  1209. *x86-64*)
  1210. LD="${LD-ld} -m elf32_x86_64"
  1211. ;;
  1212. *)
  1213. LD="${LD-ld} -m elf_i386"
  1214. ;;
  1215. esac
  1216. ;;
  1217. powerpc64le-*linux*)
  1218. LD="${LD-ld} -m elf32lppclinux"
  1219. ;;
  1220. powerpc64-*linux*)
  1221. LD="${LD-ld} -m elf32ppclinux"
  1222. ;;
  1223. s390x-*linux*)
  1224. LD="${LD-ld} -m elf_s390"
  1225. ;;
  1226. sparc64-*linux*)
  1227. LD="${LD-ld} -m elf32_sparc"
  1228. ;;
  1229. esac
  1230. ;;
  1231. *64-bit*)
  1232. case $host in
  1233. x86_64-*kfreebsd*-gnu)
  1234. LD="${LD-ld} -m elf_x86_64_fbsd"
  1235. ;;
  1236. x86_64-*linux*)
  1237. LD="${LD-ld} -m elf_x86_64"
  1238. ;;
  1239. powerpcle-*linux*)
  1240. LD="${LD-ld} -m elf64lppc"
  1241. ;;
  1242. powerpc-*linux*)
  1243. LD="${LD-ld} -m elf64ppc"
  1244. ;;
  1245. s390*-*linux*|s390*-*tpf*)
  1246. LD="${LD-ld} -m elf64_s390"
  1247. ;;
  1248. sparc*-*linux*)
  1249. LD="${LD-ld} -m elf64_sparc"
  1250. ;;
  1251. esac
  1252. ;;
  1253. esac
  1254. fi
  1255. rm -rf conftest*
  1256. ;;
  1257. *-*-sco3.2v5*)
  1258. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1259. SAVE_CFLAGS=$CFLAGS
  1260. CFLAGS="$CFLAGS -belf"
  1261. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1262. [AC_LANG_PUSH(C)
  1263. AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1264. AC_LANG_POP])
  1265. if test yes != "$lt_cv_cc_needs_belf"; then
  1266. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1267. CFLAGS=$SAVE_CFLAGS
  1268. fi
  1269. ;;
  1270. *-*solaris*)
  1271. # Find out what ABI is being produced by ac_compile, and set linker
  1272. # options accordingly.
  1273. echo 'int i;' > conftest.$ac_ext
  1274. if AC_TRY_EVAL(ac_compile); then
  1275. case `/usr/bin/file conftest.o` in
  1276. *64-bit*)
  1277. case $lt_cv_prog_gnu_ld in
  1278. yes*)
  1279. case $host in
  1280. i?86-*-solaris*|x86_64-*-solaris*)
  1281. LD="${LD-ld} -m elf_x86_64"
  1282. ;;
  1283. sparc*-*-solaris*)
  1284. LD="${LD-ld} -m elf64_sparc"
  1285. ;;
  1286. esac
  1287. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  1288. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  1289. LD=${LD-ld}_sol2
  1290. fi
  1291. ;;
  1292. *)
  1293. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1294. LD="${LD-ld} -64"
  1295. fi
  1296. ;;
  1297. esac
  1298. ;;
  1299. esac
  1300. fi
  1301. rm -rf conftest*
  1302. ;;
  1303. esac
  1304. need_locks=$enable_libtool_lock
  1305. ])# _LT_ENABLE_LOCK
  1306. # _LT_PROG_AR
  1307. # -----------
  1308. m4_defun([_LT_PROG_AR],
  1309. [AC_CHECK_TOOLS(AR, [ar], false)
  1310. : ${AR=ar}
  1311. : ${AR_FLAGS=cru}
  1312. _LT_DECL([], [AR], [1], [The archiver])
  1313. _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
  1314. AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
  1315. [lt_cv_ar_at_file=no
  1316. AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
  1317. [echo conftest.$ac_objext > conftest.lst
  1318. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
  1319. AC_TRY_EVAL([lt_ar_try])
  1320. if test 0 -eq "$ac_status"; then
  1321. # Ensure the archiver fails upon bogus file names.
  1322. rm -f conftest.$ac_objext libconftest.a
  1323. AC_TRY_EVAL([lt_ar_try])
  1324. if test 0 -ne "$ac_status"; then
  1325. lt_cv_ar_at_file=@
  1326. fi
  1327. fi
  1328. rm -f conftest.* libconftest.a
  1329. ])
  1330. ])
  1331. if test no = "$lt_cv_ar_at_file"; then
  1332. archiver_list_spec=
  1333. else
  1334. archiver_list_spec=$lt_cv_ar_at_file
  1335. fi
  1336. _LT_DECL([], [archiver_list_spec], [1],
  1337. [How to feed a file listing to the archiver])
  1338. ])# _LT_PROG_AR
  1339. # _LT_CMD_OLD_ARCHIVE
  1340. # -------------------
  1341. m4_defun([_LT_CMD_OLD_ARCHIVE],
  1342. [_LT_PROG_AR
  1343. AC_CHECK_TOOL(STRIP, strip, :)
  1344. test -z "$STRIP" && STRIP=:
  1345. _LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1346. AC_CHECK_TOOL(RANLIB, ranlib, :)
  1347. test -z "$RANLIB" && RANLIB=:
  1348. _LT_DECL([], [RANLIB], [1],
  1349. [Commands used to install an old-style archive])
  1350. # Determine commands to create old-style static archives.
  1351. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1352. old_postinstall_cmds='chmod 644 $oldlib'
  1353. old_postuninstall_cmds=
  1354. if test -n "$RANLIB"; then
  1355. case $host_os in
  1356. bitrig* | openbsd*)
  1357. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  1358. ;;
  1359. *)
  1360. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  1361. ;;
  1362. esac
  1363. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  1364. fi
  1365. case $host_os in
  1366. darwin*)
  1367. lock_old_archive_extraction=yes ;;
  1368. *)
  1369. lock_old_archive_extraction=no ;;
  1370. esac
  1371. _LT_DECL([], [old_postinstall_cmds], [2])
  1372. _LT_DECL([], [old_postuninstall_cmds], [2])
  1373. _LT_TAGDECL([], [old_archive_cmds], [2],
  1374. [Commands used to build an old-style archive])
  1375. _LT_DECL([], [lock_old_archive_extraction], [0],
  1376. [Whether to use a lock for old archive extraction])
  1377. ])# _LT_CMD_OLD_ARCHIVE
  1378. # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1379. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1380. # ----------------------------------------------------------------
  1381. # Check whether the given compiler option works
  1382. AC_DEFUN([_LT_COMPILER_OPTION],
  1383. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1384. m4_require([_LT_DECL_SED])dnl
  1385. AC_CACHE_CHECK([$1], [$2],
  1386. [$2=no
  1387. m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1388. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1389. lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
  1390. # Insert the option either (1) after the last *FLAGS variable, or
  1391. # (2) before a word containing "conftest.", or (3) at the end.
  1392. # Note that $ac_compile itself does not contain backslashes and begins
  1393. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1394. # The option is referenced via a variable to avoid confusing sed.
  1395. lt_compile=`echo "$ac_compile" | $SED \
  1396. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1397. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1398. -e 's:$: $lt_compiler_flag:'`
  1399. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1400. (eval "$lt_compile" 2>conftest.err)
  1401. ac_status=$?
  1402. cat conftest.err >&AS_MESSAGE_LOG_FD
  1403. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1404. if (exit $ac_status) && test -s "$ac_outfile"; then
  1405. # The compiler can only warn and ignore the option if not recognized
  1406. # So say no if there are warnings other than the usual output.
  1407. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  1408. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1409. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1410. $2=yes
  1411. fi
  1412. fi
  1413. $RM conftest*
  1414. ])
  1415. if test yes = "[$]$2"; then
  1416. m4_if([$5], , :, [$5])
  1417. else
  1418. m4_if([$6], , :, [$6])
  1419. fi
  1420. ])# _LT_COMPILER_OPTION
  1421. # Old name:
  1422. AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1423. dnl aclocal-1.4 backwards compatibility:
  1424. dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1425. # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1426. # [ACTION-SUCCESS], [ACTION-FAILURE])
  1427. # ----------------------------------------------------
  1428. # Check whether the given linker option works
  1429. AC_DEFUN([_LT_LINKER_OPTION],
  1430. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1431. m4_require([_LT_DECL_SED])dnl
  1432. AC_CACHE_CHECK([$1], [$2],
  1433. [$2=no
  1434. save_LDFLAGS=$LDFLAGS
  1435. LDFLAGS="$LDFLAGS $3"
  1436. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  1437. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1438. # The linker can only warn and ignore the option if not recognized
  1439. # So say no if there are warnings
  1440. if test -s conftest.err; then
  1441. # Append any errors to the config.log.
  1442. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1443. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  1444. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1445. if diff conftest.exp conftest.er2 >/dev/null; then
  1446. $2=yes
  1447. fi
  1448. else
  1449. $2=yes
  1450. fi
  1451. fi
  1452. $RM -r conftest*
  1453. LDFLAGS=$save_LDFLAGS
  1454. ])
  1455. if test yes = "[$]$2"; then
  1456. m4_if([$4], , :, [$4])
  1457. else
  1458. m4_if([$5], , :, [$5])
  1459. fi
  1460. ])# _LT_LINKER_OPTION
  1461. # Old name:
  1462. AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1463. dnl aclocal-1.4 backwards compatibility:
  1464. dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1465. # LT_CMD_MAX_LEN
  1466. #---------------
  1467. AC_DEFUN([LT_CMD_MAX_LEN],
  1468. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1469. # find the maximum length of command line arguments
  1470. AC_MSG_CHECKING([the maximum length of command line arguments])
  1471. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1472. i=0
  1473. teststring=ABCD
  1474. case $build_os in
  1475. msdosdjgpp*)
  1476. # On DJGPP, this test can blow up pretty badly due to problems in libc
  1477. # (any single argument exceeding 2000 bytes causes a buffer overrun
  1478. # during glob expansion). Even if it were fixed, the result of this
  1479. # check would be larger than it should be.
  1480. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1481. ;;
  1482. gnu*)
  1483. # Under GNU Hurd, this test is not required because there is
  1484. # no limit to the length of command line arguments.
  1485. # Libtool will interpret -1 as no limit whatsoever
  1486. lt_cv_sys_max_cmd_len=-1;
  1487. ;;
  1488. cygwin* | mingw* | cegcc*)
  1489. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1490. # about 5 minutes as the teststring grows exponentially.
  1491. # Worse, since 9x/ME are not pre-emptively multitasking,
  1492. # you end up with a "frozen" computer, even though with patience
  1493. # the test eventually succeeds (with a max line length of 256k).
  1494. # Instead, let's just punt: use the minimum linelength reported by
  1495. # all of the supported platforms: 8192 (on NT/2K/XP).
  1496. lt_cv_sys_max_cmd_len=8192;
  1497. ;;
  1498. mint*)
  1499. # On MiNT this can take a long time and run out of memory.
  1500. lt_cv_sys_max_cmd_len=8192;
  1501. ;;
  1502. amigaos*)
  1503. # On AmigaOS with pdksh, this test takes hours, literally.
  1504. # So we just punt and use a minimum line length of 8192.
  1505. lt_cv_sys_max_cmd_len=8192;
  1506. ;;
  1507. bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
  1508. # This has been around since 386BSD, at least. Likely further.
  1509. if test -x /sbin/sysctl; then
  1510. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1511. elif test -x /usr/sbin/sysctl; then
  1512. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1513. else
  1514. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  1515. fi
  1516. # And add a safety zone
  1517. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1518. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1519. ;;
  1520. interix*)
  1521. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  1522. lt_cv_sys_max_cmd_len=196608
  1523. ;;
  1524. os2*)
  1525. # The test takes a long time on OS/2.
  1526. lt_cv_sys_max_cmd_len=8192
  1527. ;;
  1528. osf*)
  1529. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1530. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1531. # nice to cause kernel panics so lets avoid the loop below.
  1532. # First set a reasonable default.
  1533. lt_cv_sys_max_cmd_len=16384
  1534. #
  1535. if test -x /sbin/sysconfig; then
  1536. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1537. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1538. esac
  1539. fi
  1540. ;;
  1541. sco3.2v5*)
  1542. lt_cv_sys_max_cmd_len=102400
  1543. ;;
  1544. sysv5* | sco5v6* | sysv4.2uw2*)
  1545. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1546. if test -n "$kargmax"; then
  1547. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1548. else
  1549. lt_cv_sys_max_cmd_len=32768
  1550. fi
  1551. ;;
  1552. *)
  1553. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  1554. if test -n "$lt_cv_sys_max_cmd_len" && \
  1555. test undefined != "$lt_cv_sys_max_cmd_len"; then
  1556. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1557. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1558. else
  1559. # Make teststring a little bigger before we do anything with it.
  1560. # a 1K string should be a reasonable start.
  1561. for i in 1 2 3 4 5 6 7 8; do
  1562. teststring=$teststring$teststring
  1563. done
  1564. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1565. # If test is not a shell built-in, we'll probably end up computing a
  1566. # maximum length that is only half of the actual maximum length, but
  1567. # we can't tell.
  1568. while { test X`env echo "$teststring$teststring" 2>/dev/null` \
  1569. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  1570. test 17 != "$i" # 1/2 MB should be enough
  1571. do
  1572. i=`expr $i + 1`
  1573. teststring=$teststring$teststring
  1574. done
  1575. # Only check the string length outside the loop.
  1576. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1577. teststring=
  1578. # Add a significant safety factor because C++ compilers can tack on
  1579. # massive amounts of additional arguments before passing them to the
  1580. # linker. It appears as though 1/2 is a usable value.
  1581. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1582. fi
  1583. ;;
  1584. esac
  1585. ])
  1586. if test -n "$lt_cv_sys_max_cmd_len"; then
  1587. AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1588. else
  1589. AC_MSG_RESULT(none)
  1590. fi
  1591. max_cmd_len=$lt_cv_sys_max_cmd_len
  1592. _LT_DECL([], [max_cmd_len], [0],
  1593. [What is the maximum length of a command?])
  1594. ])# LT_CMD_MAX_LEN
  1595. # Old name:
  1596. AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1597. dnl aclocal-1.4 backwards compatibility:
  1598. dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1599. # _LT_HEADER_DLFCN
  1600. # ----------------
  1601. m4_defun([_LT_HEADER_DLFCN],
  1602. [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1603. ])# _LT_HEADER_DLFCN
  1604. # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1605. # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1606. # ----------------------------------------------------------------
  1607. m4_defun([_LT_TRY_DLOPEN_SELF],
  1608. [m4_require([_LT_HEADER_DLFCN])dnl
  1609. if test yes = "$cross_compiling"; then :
  1610. [$4]
  1611. else
  1612. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1613. lt_status=$lt_dlunknown
  1614. cat > conftest.$ac_ext <<_LT_EOF
  1615. [#line $LINENO "configure"
  1616. #include "confdefs.h"
  1617. #if HAVE_DLFCN_H
  1618. #include <dlfcn.h>
  1619. #endif
  1620. #include <stdio.h>
  1621. #ifdef RTLD_GLOBAL
  1622. # define LT_DLGLOBAL RTLD_GLOBAL
  1623. #else
  1624. # ifdef DL_GLOBAL
  1625. # define LT_DLGLOBAL DL_GLOBAL
  1626. # else
  1627. # define LT_DLGLOBAL 0
  1628. # endif
  1629. #endif
  1630. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1631. find out it does not work in some platform. */
  1632. #ifndef LT_DLLAZY_OR_NOW
  1633. # ifdef RTLD_LAZY
  1634. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  1635. # else
  1636. # ifdef DL_LAZY
  1637. # define LT_DLLAZY_OR_NOW DL_LAZY
  1638. # else
  1639. # ifdef RTLD_NOW
  1640. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1641. # else
  1642. # ifdef DL_NOW
  1643. # define LT_DLLAZY_OR_NOW DL_NOW
  1644. # else
  1645. # define LT_DLLAZY_OR_NOW 0
  1646. # endif
  1647. # endif
  1648. # endif
  1649. # endif
  1650. #endif
  1651. /* When -fvisibility=hidden is used, assume the code has been annotated
  1652. correspondingly for the symbols needed. */
  1653. #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  1654. int fnord () __attribute__((visibility("default")));
  1655. #endif
  1656. int fnord () { return 42; }
  1657. int main ()
  1658. {
  1659. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1660. int status = $lt_dlunknown;
  1661. if (self)
  1662. {
  1663. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1664. else
  1665. {
  1666. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1667. else puts (dlerror ());
  1668. }
  1669. /* dlclose (self); */
  1670. }
  1671. else
  1672. puts (dlerror ());
  1673. return status;
  1674. }]
  1675. _LT_EOF
  1676. if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
  1677. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1678. lt_status=$?
  1679. case x$lt_status in
  1680. x$lt_dlno_uscore) $1 ;;
  1681. x$lt_dlneed_uscore) $2 ;;
  1682. x$lt_dlunknown|x*) $3 ;;
  1683. esac
  1684. else :
  1685. # compilation failed
  1686. $3
  1687. fi
  1688. fi
  1689. rm -fr conftest*
  1690. ])# _LT_TRY_DLOPEN_SELF
  1691. # LT_SYS_DLOPEN_SELF
  1692. # ------------------
  1693. AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1694. [m4_require([_LT_HEADER_DLFCN])dnl
  1695. if test yes != "$enable_dlopen"; then
  1696. enable_dlopen=unknown
  1697. enable_dlopen_self=unknown
  1698. enable_dlopen_self_static=unknown
  1699. else
  1700. lt_cv_dlopen=no
  1701. lt_cv_dlopen_libs=
  1702. case $host_os in
  1703. beos*)
  1704. lt_cv_dlopen=load_add_on
  1705. lt_cv_dlopen_libs=
  1706. lt_cv_dlopen_self=yes
  1707. ;;
  1708. mingw* | pw32* | cegcc*)
  1709. lt_cv_dlopen=LoadLibrary
  1710. lt_cv_dlopen_libs=
  1711. ;;
  1712. cygwin*)
  1713. lt_cv_dlopen=dlopen
  1714. lt_cv_dlopen_libs=
  1715. ;;
  1716. darwin*)
  1717. # if libdl is installed we need to link against it
  1718. AC_CHECK_LIB([dl], [dlopen],
  1719. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
  1720. lt_cv_dlopen=dyld
  1721. lt_cv_dlopen_libs=
  1722. lt_cv_dlopen_self=yes
  1723. ])
  1724. ;;
  1725. tpf*)
  1726. # Don't try to run any link tests for TPF. We know it's impossible
  1727. # because TPF is a cross-compiler, and we know how we open DSOs.
  1728. lt_cv_dlopen=dlopen
  1729. lt_cv_dlopen_libs=
  1730. lt_cv_dlopen_self=no
  1731. ;;
  1732. *)
  1733. AC_CHECK_FUNC([shl_load],
  1734. [lt_cv_dlopen=shl_load],
  1735. [AC_CHECK_LIB([dld], [shl_load],
  1736. [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
  1737. [AC_CHECK_FUNC([dlopen],
  1738. [lt_cv_dlopen=dlopen],
  1739. [AC_CHECK_LIB([dl], [dlopen],
  1740. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
  1741. [AC_CHECK_LIB([svld], [dlopen],
  1742. [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
  1743. [AC_CHECK_LIB([dld], [dld_link],
  1744. [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
  1745. ])
  1746. ])
  1747. ])
  1748. ])
  1749. ])
  1750. ;;
  1751. esac
  1752. if test no = "$lt_cv_dlopen"; then
  1753. enable_dlopen=no
  1754. else
  1755. enable_dlopen=yes
  1756. fi
  1757. case $lt_cv_dlopen in
  1758. dlopen)
  1759. save_CPPFLAGS=$CPPFLAGS
  1760. test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1761. save_LDFLAGS=$LDFLAGS
  1762. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1763. save_LIBS=$LIBS
  1764. LIBS="$lt_cv_dlopen_libs $LIBS"
  1765. AC_CACHE_CHECK([whether a program can dlopen itself],
  1766. lt_cv_dlopen_self, [dnl
  1767. _LT_TRY_DLOPEN_SELF(
  1768. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1769. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1770. ])
  1771. if test yes = "$lt_cv_dlopen_self"; then
  1772. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1773. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1774. lt_cv_dlopen_self_static, [dnl
  1775. _LT_TRY_DLOPEN_SELF(
  1776. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1777. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1778. ])
  1779. fi
  1780. CPPFLAGS=$save_CPPFLAGS
  1781. LDFLAGS=$save_LDFLAGS
  1782. LIBS=$save_LIBS
  1783. ;;
  1784. esac
  1785. case $lt_cv_dlopen_self in
  1786. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1787. *) enable_dlopen_self=unknown ;;
  1788. esac
  1789. case $lt_cv_dlopen_self_static in
  1790. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1791. *) enable_dlopen_self_static=unknown ;;
  1792. esac
  1793. fi
  1794. _LT_DECL([dlopen_support], [enable_dlopen], [0],
  1795. [Whether dlopen is supported])
  1796. _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1797. [Whether dlopen of programs is supported])
  1798. _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1799. [Whether dlopen of statically linked programs is supported])
  1800. ])# LT_SYS_DLOPEN_SELF
  1801. # Old name:
  1802. AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1803. dnl aclocal-1.4 backwards compatibility:
  1804. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1805. # _LT_COMPILER_C_O([TAGNAME])
  1806. # ---------------------------
  1807. # Check to see if options -c and -o are simultaneously supported by compiler.
  1808. # This macro does not hard code the compiler like AC_PROG_CC_C_O.
  1809. m4_defun([_LT_COMPILER_C_O],
  1810. [m4_require([_LT_DECL_SED])dnl
  1811. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1812. m4_require([_LT_TAG_COMPILER])dnl
  1813. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1814. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1815. [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1816. $RM -r conftest 2>/dev/null
  1817. mkdir conftest
  1818. cd conftest
  1819. mkdir out
  1820. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1821. lt_compiler_flag="-o out/conftest2.$ac_objext"
  1822. # Insert the option either (1) after the last *FLAGS variable, or
  1823. # (2) before a word containing "conftest.", or (3) at the end.
  1824. # Note that $ac_compile itself does not contain backslashes and begins
  1825. # with a dollar sign (not a hyphen), so the echo should work correctly.
  1826. lt_compile=`echo "$ac_compile" | $SED \
  1827. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  1828. -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1829. -e 's:$: $lt_compiler_flag:'`
  1830. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1831. (eval "$lt_compile" 2>out/conftest.err)
  1832. ac_status=$?
  1833. cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1834. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1835. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1836. then
  1837. # The compiler can only warn and ignore the option if not recognized
  1838. # So say no if there are warnings
  1839. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  1840. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  1841. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1842. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1843. fi
  1844. fi
  1845. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  1846. $RM conftest*
  1847. # SGI C++ compiler will create directory out/ii_files/ for
  1848. # template instantiation
  1849. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  1850. $RM out/* && rmdir out
  1851. cd ..
  1852. $RM -r conftest
  1853. $RM conftest*
  1854. ])
  1855. _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  1856. [Does compiler simultaneously support -c and -o options?])
  1857. ])# _LT_COMPILER_C_O
  1858. # _LT_COMPILER_FILE_LOCKS([TAGNAME])
  1859. # ----------------------------------
  1860. # Check to see if we can do hard links to lock some files if needed
  1861. m4_defun([_LT_COMPILER_FILE_LOCKS],
  1862. [m4_require([_LT_ENABLE_LOCK])dnl
  1863. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1864. _LT_COMPILER_C_O([$1])
  1865. hard_links=nottested
  1866. if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
  1867. # do not overwrite the value of need_locks provided by the user
  1868. AC_MSG_CHECKING([if we can lock with hard links])
  1869. hard_links=yes
  1870. $RM conftest*
  1871. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1872. touch conftest.a
  1873. ln conftest.a conftest.b 2>&5 || hard_links=no
  1874. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1875. AC_MSG_RESULT([$hard_links])
  1876. if test no = "$hard_links"; then
  1877. AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
  1878. need_locks=warn
  1879. fi
  1880. else
  1881. need_locks=no
  1882. fi
  1883. _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  1884. ])# _LT_COMPILER_FILE_LOCKS
  1885. # _LT_CHECK_OBJDIR
  1886. # ----------------
  1887. m4_defun([_LT_CHECK_OBJDIR],
  1888. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1889. [rm -f .libs 2>/dev/null
  1890. mkdir .libs 2>/dev/null
  1891. if test -d .libs; then
  1892. lt_cv_objdir=.libs
  1893. else
  1894. # MS-DOS does not allow filenames that begin with a dot.
  1895. lt_cv_objdir=_libs
  1896. fi
  1897. rmdir .libs 2>/dev/null])
  1898. objdir=$lt_cv_objdir
  1899. _LT_DECL([], [objdir], [0],
  1900. [The name of the directory that contains temporary libtool files])dnl
  1901. m4_pattern_allow([LT_OBJDIR])dnl
  1902. AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
  1903. [Define to the sub-directory where libtool stores uninstalled libraries.])
  1904. ])# _LT_CHECK_OBJDIR
  1905. # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  1906. # --------------------------------------
  1907. # Check hardcoding attributes.
  1908. m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  1909. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  1910. _LT_TAGVAR(hardcode_action, $1)=
  1911. if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  1912. test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  1913. test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
  1914. # We can hardcode non-existent directories.
  1915. if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
  1916. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1917. # have to relink, otherwise we might link with an installed library
  1918. # when we should be linking with a yet-to-be-installed one
  1919. ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
  1920. test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
  1921. # Linking always hardcodes the temporary library directory.
  1922. _LT_TAGVAR(hardcode_action, $1)=relink
  1923. else
  1924. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1925. _LT_TAGVAR(hardcode_action, $1)=immediate
  1926. fi
  1927. else
  1928. # We cannot hardcode anything, or else we can only hardcode existing
  1929. # directories.
  1930. _LT_TAGVAR(hardcode_action, $1)=unsupported
  1931. fi
  1932. AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  1933. if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
  1934. test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
  1935. # Fast installation is not supported
  1936. enable_fast_install=no
  1937. elif test yes = "$shlibpath_overrides_runpath" ||
  1938. test no = "$enable_shared"; then
  1939. # Fast installation is not necessary
  1940. enable_fast_install=needless
  1941. fi
  1942. _LT_TAGDECL([], [hardcode_action], [0],
  1943. [How to hardcode a shared library path into an executable])
  1944. ])# _LT_LINKER_HARDCODE_LIBPATH
  1945. # _LT_CMD_STRIPLIB
  1946. # ----------------
  1947. m4_defun([_LT_CMD_STRIPLIB],
  1948. [m4_require([_LT_DECL_EGREP])
  1949. striplib=
  1950. old_striplib=
  1951. AC_MSG_CHECKING([whether stripping libraries is possible])
  1952. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  1953. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  1954. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  1955. AC_MSG_RESULT([yes])
  1956. else
  1957. # FIXME - insert some real tests, host_os isn't really good enough
  1958. case $host_os in
  1959. darwin*)
  1960. if test -n "$STRIP"; then
  1961. striplib="$STRIP -x"
  1962. old_striplib="$STRIP -S"
  1963. AC_MSG_RESULT([yes])
  1964. else
  1965. AC_MSG_RESULT([no])
  1966. fi
  1967. ;;
  1968. *)
  1969. AC_MSG_RESULT([no])
  1970. ;;
  1971. esac
  1972. fi
  1973. _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  1974. _LT_DECL([], [striplib], [1])
  1975. ])# _LT_CMD_STRIPLIB
  1976. # _LT_PREPARE_MUNGE_PATH_LIST
  1977. # ---------------------------
  1978. # Make sure func_munge_path_list() is defined correctly.
  1979. m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
  1980. [[# func_munge_path_list VARIABLE PATH
  1981. # -----------------------------------
  1982. # VARIABLE is name of variable containing _space_ separated list of
  1983. # directories to be munged by the contents of PATH, which is string
  1984. # having a format:
  1985. # "DIR[:DIR]:"
  1986. # string "DIR[ DIR]" will be prepended to VARIABLE
  1987. # ":DIR[:DIR]"
  1988. # string "DIR[ DIR]" will be appended to VARIABLE
  1989. # "DIRP[:DIRP]::[DIRA:]DIRA"
  1990. # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
  1991. # "DIRA[ DIRA]" will be appended to VARIABLE
  1992. # "DIR[:DIR]"
  1993. # VARIABLE will be replaced by "DIR[ DIR]"
  1994. func_munge_path_list ()
  1995. {
  1996. case x@S|@2 in
  1997. x)
  1998. ;;
  1999. *:)
  2000. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
  2001. ;;
  2002. x:*)
  2003. eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2004. ;;
  2005. *::*)
  2006. eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
  2007. eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
  2008. ;;
  2009. *)
  2010. eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
  2011. ;;
  2012. esac
  2013. }
  2014. ]])# _LT_PREPARE_PATH_LIST
  2015. # _LT_SYS_DYNAMIC_LINKER([TAG])
  2016. # -----------------------------
  2017. # PORTME Fill in your ld.so characteristics
  2018. m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2019. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2020. m4_require([_LT_DECL_EGREP])dnl
  2021. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2022. m4_require([_LT_DECL_OBJDUMP])dnl
  2023. m4_require([_LT_DECL_SED])dnl
  2024. m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  2025. m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
  2026. AC_MSG_CHECKING([dynamic linker characteristics])
  2027. m4_if([$1],
  2028. [], [
  2029. if test yes = "$GCC"; then
  2030. case $host_os in
  2031. darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
  2032. *) lt_awk_arg='/^libraries:/' ;;
  2033. esac
  2034. case $host_os in
  2035. mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
  2036. *) lt_sed_strip_eq='s|=/|/|g' ;;
  2037. esac
  2038. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  2039. case $lt_search_path_spec in
  2040. *\;*)
  2041. # if the path contains ";" then we assume it to be the separator
  2042. # otherwise default to the standard path separator (i.e. ":") - it is
  2043. # assumed that no part of a normal pathname contains ";" but that should
  2044. # okay in the real world where ";" in dirpaths is itself problematic.
  2045. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  2046. ;;
  2047. *)
  2048. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  2049. ;;
  2050. esac
  2051. # Ok, now we have the path, separated by spaces, we can step through it
  2052. # and add multilib dir if necessary...
  2053. lt_tmp_lt_search_path_spec=
  2054. lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  2055. # ...but if some path component already ends with the multilib dir we assume
  2056. # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
  2057. case "$lt_multi_os_dir; $lt_search_path_spec " in
  2058. "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
  2059. lt_multi_os_dir=
  2060. ;;
  2061. esac
  2062. for lt_sys_path in $lt_search_path_spec; do
  2063. if test -d "$lt_sys_path$lt_multi_os_dir"; then
  2064. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
  2065. elif test -n "$lt_multi_os_dir"; then
  2066. test -d "$lt_sys_path" && \
  2067. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2068. fi
  2069. done
  2070. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  2071. BEGIN {RS = " "; FS = "/|\n";} {
  2072. lt_foo = "";
  2073. lt_count = 0;
  2074. for (lt_i = NF; lt_i > 0; lt_i--) {
  2075. if ($lt_i != "" && $lt_i != ".") {
  2076. if ($lt_i == "..") {
  2077. lt_count++;
  2078. } else {
  2079. if (lt_count == 0) {
  2080. lt_foo = "/" $lt_i lt_foo;
  2081. } else {
  2082. lt_count--;
  2083. }
  2084. }
  2085. }
  2086. }
  2087. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2088. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2089. }'`
  2090. # AWK program above erroneously prepends '/' to C:/dos/paths
  2091. # for these hosts.
  2092. case $host_os in
  2093. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  2094. $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
  2095. esac
  2096. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  2097. else
  2098. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2099. fi])
  2100. library_names_spec=
  2101. libname_spec='lib$name'
  2102. soname_spec=
  2103. shrext_cmds=.so
  2104. postinstall_cmds=
  2105. postuninstall_cmds=
  2106. finish_cmds=
  2107. finish_eval=
  2108. shlibpath_var=
  2109. shlibpath_overrides_runpath=unknown
  2110. version_type=none
  2111. dynamic_linker="$host_os ld.so"
  2112. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2113. need_lib_prefix=unknown
  2114. hardcode_into_libs=no
  2115. # when you set need_version to no, make sure it does not cause -set_version
  2116. # flags to be left without arguments
  2117. need_version=unknown
  2118. AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
  2119. [User-defined run-time library search path.])
  2120. case $host_os in
  2121. aix3*)
  2122. version_type=linux # correct to gnu/linux during the next big refactor
  2123. library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
  2124. shlibpath_var=LIBPATH
  2125. # AIX 3 has no versioning support, so we append a major version to the name.
  2126. soname_spec='$libname$release$shared_ext$major'
  2127. ;;
  2128. aix[[4-9]]*)
  2129. version_type=linux # correct to gnu/linux during the next big refactor
  2130. need_lib_prefix=no
  2131. need_version=no
  2132. hardcode_into_libs=yes
  2133. if test ia64 = "$host_cpu"; then
  2134. # AIX 5 supports IA64
  2135. library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
  2136. shlibpath_var=LD_LIBRARY_PATH
  2137. else
  2138. # With GCC up to 2.95.x, collect2 would create an import file
  2139. # for dependence libraries. The import file would start with
  2140. # the line '#! .'. This would cause the generated library to
  2141. # depend on '.', always an invalid library. This was fixed in
  2142. # development snapshots of GCC prior to 3.0.
  2143. case $host_os in
  2144. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2145. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2146. echo ' yes '
  2147. echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
  2148. :
  2149. else
  2150. can_build_shared=no
  2151. fi
  2152. ;;
  2153. esac
  2154. # Using Import Files as archive members, it is possible to support
  2155. # filename-based versioning of shared library archives on AIX. While
  2156. # this would work for both with and without runtime linking, it will
  2157. # prevent static linking of such archives. So we do filename-based
  2158. # shared library versioning with .so extension only, which is used
  2159. # when both runtime linking and shared linking is enabled.
  2160. # Unfortunately, runtime linking may impact performance, so we do
  2161. # not want this to be the default eventually. Also, we use the
  2162. # versioned .so libs for executables only if there is the -brtl
  2163. # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
  2164. # To allow for filename-based versioning support, we need to create
  2165. # libNAME.so.V as an archive file, containing:
  2166. # *) an Import File, referring to the versioned filename of the
  2167. # archive as well as the shared archive member, telling the
  2168. # bitwidth (32 or 64) of that shared object, and providing the
  2169. # list of exported symbols of that shared object, eventually
  2170. # decorated with the 'weak' keyword
  2171. # *) the shared object with the F_LOADONLY flag set, to really avoid
  2172. # it being seen by the linker.
  2173. # At run time we better use the real file rather than another symlink,
  2174. # but for link time we create the symlink libNAME.so -> libNAME.so.V
  2175. case $with_aix_soname,$aix_use_runtimelinking in
  2176. # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
  2177. # soname into executable. Probably we can add versioning support to
  2178. # collect2, so additional links can be useful in future.
  2179. aix,yes) # traditional libtool
  2180. dynamic_linker='AIX unversionable lib.so'
  2181. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2182. # instead of lib<name>.a to let people know that these are not
  2183. # typical AIX shared libraries.
  2184. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2185. ;;
  2186. aix,no) # traditional AIX only
  2187. dynamic_linker='AIX lib.a[(]lib.so.V[)]'
  2188. # We preserve .a as extension for shared libraries through AIX4.2
  2189. # and later when we are not doing run time linking.
  2190. library_names_spec='$libname$release.a $libname.a'
  2191. soname_spec='$libname$release$shared_ext$major'
  2192. ;;
  2193. svr4,*) # full svr4 only
  2194. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
  2195. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2196. # We do not specify a path in Import Files, so LIBPATH fires.
  2197. shlibpath_overrides_runpath=yes
  2198. ;;
  2199. *,yes) # both, prefer svr4
  2200. dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
  2201. library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
  2202. # unpreferred sharedlib libNAME.a needs extra handling
  2203. 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"'
  2204. 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"'
  2205. # We do not specify a path in Import Files, so LIBPATH fires.
  2206. shlibpath_overrides_runpath=yes
  2207. ;;
  2208. *,no) # both, prefer aix
  2209. dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
  2210. library_names_spec='$libname$release.a $libname.a'
  2211. soname_spec='$libname$release$shared_ext$major'
  2212. # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
  2213. 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)'
  2214. 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"'
  2215. ;;
  2216. esac
  2217. shlibpath_var=LIBPATH
  2218. fi
  2219. ;;
  2220. amigaos*)
  2221. case $host_cpu in
  2222. powerpc)
  2223. # Since July 2007 AmigaOS4 officially supports .so libraries.
  2224. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2225. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2226. ;;
  2227. m68k)
  2228. library_names_spec='$libname.ixlibrary $libname.a'
  2229. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2230. 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'
  2231. ;;
  2232. esac
  2233. ;;
  2234. beos*)
  2235. library_names_spec='$libname$shared_ext'
  2236. dynamic_linker="$host_os ld.so"
  2237. shlibpath_var=LIBRARY_PATH
  2238. ;;
  2239. bsdi[[45]]*)
  2240. version_type=linux # correct to gnu/linux during the next big refactor
  2241. need_version=no
  2242. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2243. soname_spec='$libname$release$shared_ext$major'
  2244. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2245. shlibpath_var=LD_LIBRARY_PATH
  2246. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2247. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2248. # the default ld.so.conf also contains /usr/contrib/lib and
  2249. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2250. # libtool to hard-code these into programs
  2251. ;;
  2252. cygwin* | mingw* | pw32* | cegcc*)
  2253. version_type=windows
  2254. shrext_cmds=.dll
  2255. need_version=no
  2256. need_lib_prefix=no
  2257. case $GCC,$cc_basename in
  2258. yes,*)
  2259. # gcc
  2260. library_names_spec='$libname.dll.a'
  2261. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2262. postinstall_cmds='base_file=`basename \$file`~
  2263. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2264. dldir=$destdir/`dirname \$dlpath`~
  2265. test -d \$dldir || mkdir -p \$dldir~
  2266. $install_prog $dir/$dlname \$dldir/$dlname~
  2267. chmod a+x \$dldir/$dlname~
  2268. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2269. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2270. fi'
  2271. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2272. dlpath=$dir/\$dldll~
  2273. $RM \$dlpath'
  2274. shlibpath_overrides_runpath=yes
  2275. case $host_os in
  2276. cygwin*)
  2277. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2278. soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2279. m4_if([$1], [],[
  2280. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
  2281. ;;
  2282. mingw* | cegcc*)
  2283. # MinGW DLLs use traditional 'lib' prefix
  2284. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2285. ;;
  2286. pw32*)
  2287. # pw32 DLLs use 'pw' prefix rather than 'lib'
  2288. library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2289. ;;
  2290. esac
  2291. dynamic_linker='Win32 ld.exe'
  2292. ;;
  2293. *,cl*)
  2294. # Native MSVC
  2295. libname_spec='$name'
  2296. soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
  2297. library_names_spec='$libname.dll.lib'
  2298. case $build_os in
  2299. mingw*)
  2300. sys_lib_search_path_spec=
  2301. lt_save_ifs=$IFS
  2302. IFS=';'
  2303. for lt_path in $LIB
  2304. do
  2305. IFS=$lt_save_ifs
  2306. # Let DOS variable expansion print the short 8.3 style file name.
  2307. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  2308. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  2309. done
  2310. IFS=$lt_save_ifs
  2311. # Convert to MSYS style.
  2312. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
  2313. ;;
  2314. cygwin*)
  2315. # Convert to unix form, then to dos form, then back to unix form
  2316. # but this time dos style (no spaces!) so that the unix form looks
  2317. # like /cygdrive/c/PROGRA~1:/cygdr...
  2318. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  2319. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  2320. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2321. ;;
  2322. *)
  2323. sys_lib_search_path_spec=$LIB
  2324. if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2325. # It is most probably a Windows format PATH.
  2326. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2327. else
  2328. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2329. fi
  2330. # FIXME: find the short name or the path components, as spaces are
  2331. # common. (e.g. "Program Files" -> "PROGRA~1")
  2332. ;;
  2333. esac
  2334. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2335. postinstall_cmds='base_file=`basename \$file`~
  2336. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
  2337. dldir=$destdir/`dirname \$dlpath`~
  2338. test -d \$dldir || mkdir -p \$dldir~
  2339. $install_prog $dir/$dlname \$dldir/$dlname'
  2340. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2341. dlpath=$dir/\$dldll~
  2342. $RM \$dlpath'
  2343. shlibpath_overrides_runpath=yes
  2344. dynamic_linker='Win32 link.exe'
  2345. ;;
  2346. *)
  2347. # Assume MSVC wrapper
  2348. library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
  2349. dynamic_linker='Win32 ld.exe'
  2350. ;;
  2351. esac
  2352. # FIXME: first we should search . and the directory the executable is in
  2353. shlibpath_var=PATH
  2354. ;;
  2355. darwin* | rhapsody*)
  2356. dynamic_linker="$host_os dyld"
  2357. version_type=darwin
  2358. need_lib_prefix=no
  2359. need_version=no
  2360. library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
  2361. soname_spec='$libname$release$major$shared_ext'
  2362. shlibpath_overrides_runpath=yes
  2363. shlibpath_var=DYLD_LIBRARY_PATH
  2364. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2365. m4_if([$1], [],[
  2366. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2367. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2368. ;;
  2369. dgux*)
  2370. version_type=linux # correct to gnu/linux during the next big refactor
  2371. need_lib_prefix=no
  2372. need_version=no
  2373. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2374. soname_spec='$libname$release$shared_ext$major'
  2375. shlibpath_var=LD_LIBRARY_PATH
  2376. ;;
  2377. freebsd* | dragonfly*)
  2378. # DragonFly does not have aout. When/if they implement a new
  2379. # versioning mechanism, adjust this.
  2380. if test -x /usr/bin/objformat; then
  2381. objformat=`/usr/bin/objformat`
  2382. else
  2383. case $host_os in
  2384. freebsd[[23]].*) objformat=aout ;;
  2385. *) objformat=elf ;;
  2386. esac
  2387. fi
  2388. version_type=freebsd-$objformat
  2389. case $version_type in
  2390. freebsd-elf*)
  2391. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2392. soname_spec='$libname$release$shared_ext$major'
  2393. need_version=no
  2394. need_lib_prefix=no
  2395. ;;
  2396. freebsd-*)
  2397. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2398. need_version=yes
  2399. ;;
  2400. esac
  2401. shlibpath_var=LD_LIBRARY_PATH
  2402. case $host_os in
  2403. freebsd2.*)
  2404. shlibpath_overrides_runpath=yes
  2405. ;;
  2406. freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2407. shlibpath_overrides_runpath=yes
  2408. hardcode_into_libs=yes
  2409. ;;
  2410. freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  2411. freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  2412. shlibpath_overrides_runpath=no
  2413. hardcode_into_libs=yes
  2414. ;;
  2415. *) # from 4.6 on, and DragonFly
  2416. shlibpath_overrides_runpath=yes
  2417. hardcode_into_libs=yes
  2418. ;;
  2419. esac
  2420. ;;
  2421. haiku*)
  2422. version_type=linux # correct to gnu/linux during the next big refactor
  2423. need_lib_prefix=no
  2424. need_version=no
  2425. dynamic_linker="$host_os runtime_loader"
  2426. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2427. soname_spec='$libname$release$shared_ext$major'
  2428. shlibpath_var=LIBRARY_PATH
  2429. shlibpath_overrides_runpath=no
  2430. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  2431. hardcode_into_libs=yes
  2432. ;;
  2433. hpux9* | hpux10* | hpux11*)
  2434. # Give a soname corresponding to the major version so that dld.sl refuses to
  2435. # link against other versions.
  2436. version_type=sunos
  2437. need_lib_prefix=no
  2438. need_version=no
  2439. case $host_cpu in
  2440. ia64*)
  2441. shrext_cmds='.so'
  2442. hardcode_into_libs=yes
  2443. dynamic_linker="$host_os dld.so"
  2444. shlibpath_var=LD_LIBRARY_PATH
  2445. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2446. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2447. soname_spec='$libname$release$shared_ext$major'
  2448. if test 32 = "$HPUX_IA64_MODE"; then
  2449. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2450. sys_lib_dlsearch_path_spec=/usr/lib/hpux32
  2451. else
  2452. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2453. sys_lib_dlsearch_path_spec=/usr/lib/hpux64
  2454. fi
  2455. ;;
  2456. hppa*64*)
  2457. shrext_cmds='.sl'
  2458. hardcode_into_libs=yes
  2459. dynamic_linker="$host_os dld.sl"
  2460. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2461. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2462. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2463. soname_spec='$libname$release$shared_ext$major'
  2464. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2465. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2466. ;;
  2467. *)
  2468. shrext_cmds='.sl'
  2469. dynamic_linker="$host_os dld.sl"
  2470. shlibpath_var=SHLIB_PATH
  2471. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2472. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2473. soname_spec='$libname$release$shared_ext$major'
  2474. ;;
  2475. esac
  2476. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  2477. postinstall_cmds='chmod 555 $lib'
  2478. # or fails outright, so override atomically:
  2479. install_override_mode=555
  2480. ;;
  2481. interix[[3-9]]*)
  2482. version_type=linux # correct to gnu/linux during the next big refactor
  2483. need_lib_prefix=no
  2484. need_version=no
  2485. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2486. soname_spec='$libname$release$shared_ext$major'
  2487. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  2488. shlibpath_var=LD_LIBRARY_PATH
  2489. shlibpath_overrides_runpath=no
  2490. hardcode_into_libs=yes
  2491. ;;
  2492. irix5* | irix6* | nonstopux*)
  2493. case $host_os in
  2494. nonstopux*) version_type=nonstopux ;;
  2495. *)
  2496. if test yes = "$lt_cv_prog_gnu_ld"; then
  2497. version_type=linux # correct to gnu/linux during the next big refactor
  2498. else
  2499. version_type=irix
  2500. fi ;;
  2501. esac
  2502. need_lib_prefix=no
  2503. need_version=no
  2504. soname_spec='$libname$release$shared_ext$major'
  2505. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
  2506. case $host_os in
  2507. irix5* | nonstopux*)
  2508. libsuff= shlibsuff=
  2509. ;;
  2510. *)
  2511. case $LD in # libtool.m4 will add one of these switches to LD
  2512. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2513. libsuff= shlibsuff= libmagic=32-bit;;
  2514. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2515. libsuff=32 shlibsuff=N32 libmagic=N32;;
  2516. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2517. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2518. *) libsuff= shlibsuff= libmagic=never-match;;
  2519. esac
  2520. ;;
  2521. esac
  2522. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2523. shlibpath_overrides_runpath=no
  2524. sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
  2525. sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
  2526. hardcode_into_libs=yes
  2527. ;;
  2528. # No shared lib support for Linux oldld, aout, or coff.
  2529. linux*oldld* | linux*aout* | linux*coff*)
  2530. dynamic_linker=no
  2531. ;;
  2532. linux*android*)
  2533. version_type=none # Android doesn't support versioned libraries.
  2534. need_lib_prefix=no
  2535. need_version=no
  2536. library_names_spec='$libname$release$shared_ext'
  2537. soname_spec='$libname$release$shared_ext'
  2538. finish_cmds=
  2539. shlibpath_var=LD_LIBRARY_PATH
  2540. shlibpath_overrides_runpath=yes
  2541. # This implies no fast_install, which is unacceptable.
  2542. # Some rework will be needed to allow for fast_install
  2543. # before this can be enabled.
  2544. hardcode_into_libs=yes
  2545. dynamic_linker='Android linker'
  2546. # Don't embed -rpath directories since the linker doesn't support them.
  2547. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  2548. ;;
  2549. # This must be glibc/ELF.
  2550. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  2551. version_type=linux # correct to gnu/linux during the next big refactor
  2552. need_lib_prefix=no
  2553. need_version=no
  2554. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2555. soname_spec='$libname$release$shared_ext$major'
  2556. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2557. shlibpath_var=LD_LIBRARY_PATH
  2558. shlibpath_overrides_runpath=no
  2559. # Some binutils ld are patched to set DT_RUNPATH
  2560. AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
  2561. [lt_cv_shlibpath_overrides_runpath=no
  2562. save_LDFLAGS=$LDFLAGS
  2563. save_libdir=$libdir
  2564. eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2565. LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2566. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2567. [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2568. [lt_cv_shlibpath_overrides_runpath=yes])])
  2569. LDFLAGS=$save_LDFLAGS
  2570. libdir=$save_libdir
  2571. ])
  2572. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  2573. # This implies no fast_install, which is unacceptable.
  2574. # Some rework will be needed to allow for fast_install
  2575. # before this can be enabled.
  2576. hardcode_into_libs=yes
  2577. # Ideally, we could use ldconfig to report *all* directores which are
  2578. # searched for libraries, however this is still not possible. Aside from not
  2579. # being certain /sbin/ldconfig is available, command
  2580. # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
  2581. # even though it is searched at run-time. Try to do the best guess by
  2582. # appending ld.so.conf contents (and includes) to the search path.
  2583. if test -f /etc/ld.so.conf; then
  2584. 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' ' '`
  2585. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2586. fi
  2587. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2588. # powerpc, because MkLinux only supported shared libraries with the
  2589. # GNU dynamic linker. Since this was broken with cross compilers,
  2590. # most powerpc-linux boxes support dynamic linking these days and
  2591. # people can always --disable-shared, the test was removed, and we
  2592. # assume the GNU/Linux dynamic linker is in use.
  2593. dynamic_linker='GNU/Linux ld.so'
  2594. ;;
  2595. netbsdelf*-gnu)
  2596. version_type=linux
  2597. need_lib_prefix=no
  2598. need_version=no
  2599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2600. soname_spec='${libname}${release}${shared_ext}$major'
  2601. shlibpath_var=LD_LIBRARY_PATH
  2602. shlibpath_overrides_runpath=no
  2603. hardcode_into_libs=yes
  2604. dynamic_linker='NetBSD ld.elf_so'
  2605. ;;
  2606. netbsd*)
  2607. version_type=sunos
  2608. need_lib_prefix=no
  2609. need_version=no
  2610. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2611. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2612. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2613. dynamic_linker='NetBSD (a.out) ld.so'
  2614. else
  2615. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2616. soname_spec='$libname$release$shared_ext$major'
  2617. dynamic_linker='NetBSD ld.elf_so'
  2618. fi
  2619. shlibpath_var=LD_LIBRARY_PATH
  2620. shlibpath_overrides_runpath=yes
  2621. hardcode_into_libs=yes
  2622. ;;
  2623. newsos6)
  2624. version_type=linux # correct to gnu/linux during the next big refactor
  2625. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2626. shlibpath_var=LD_LIBRARY_PATH
  2627. shlibpath_overrides_runpath=yes
  2628. ;;
  2629. *nto* | *qnx*)
  2630. version_type=qnx
  2631. need_lib_prefix=no
  2632. need_version=no
  2633. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2634. soname_spec='$libname$release$shared_ext$major'
  2635. shlibpath_var=LD_LIBRARY_PATH
  2636. shlibpath_overrides_runpath=no
  2637. hardcode_into_libs=yes
  2638. dynamic_linker='ldqnx.so'
  2639. ;;
  2640. openbsd* | bitrig*)
  2641. version_type=sunos
  2642. sys_lib_dlsearch_path_spec=/usr/lib
  2643. need_lib_prefix=no
  2644. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  2645. need_version=no
  2646. else
  2647. need_version=yes
  2648. fi
  2649. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2650. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2651. shlibpath_var=LD_LIBRARY_PATH
  2652. shlibpath_overrides_runpath=yes
  2653. ;;
  2654. os2*)
  2655. libname_spec='$name'
  2656. version_type=windows
  2657. shrext_cmds=.dll
  2658. need_version=no
  2659. need_lib_prefix=no
  2660. # OS/2 can only load a DLL with a base name of 8 characters or less.
  2661. soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
  2662. v=$($ECHO $release$versuffix | tr -d .-);
  2663. n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
  2664. $ECHO $n$v`$shared_ext'
  2665. library_names_spec='${libname}_dll.$libext'
  2666. dynamic_linker='OS/2 ld.exe'
  2667. shlibpath_var=BEGINLIBPATH
  2668. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2669. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2670. postinstall_cmds='base_file=`basename \$file`~
  2671. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
  2672. dldir=$destdir/`dirname \$dlpath`~
  2673. test -d \$dldir || mkdir -p \$dldir~
  2674. $install_prog $dir/$dlname \$dldir/$dlname~
  2675. chmod a+x \$dldir/$dlname~
  2676. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2677. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2678. fi'
  2679. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
  2680. dlpath=$dir/\$dldll~
  2681. $RM \$dlpath'
  2682. ;;
  2683. osf3* | osf4* | osf5*)
  2684. version_type=osf
  2685. need_lib_prefix=no
  2686. need_version=no
  2687. soname_spec='$libname$release$shared_ext$major'
  2688. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2689. shlibpath_var=LD_LIBRARY_PATH
  2690. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2691. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2692. ;;
  2693. rdos*)
  2694. dynamic_linker=no
  2695. ;;
  2696. solaris*)
  2697. version_type=linux # correct to gnu/linux during the next big refactor
  2698. need_lib_prefix=no
  2699. need_version=no
  2700. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2701. soname_spec='$libname$release$shared_ext$major'
  2702. shlibpath_var=LD_LIBRARY_PATH
  2703. shlibpath_overrides_runpath=yes
  2704. hardcode_into_libs=yes
  2705. # ldd complains unless libraries are executable
  2706. postinstall_cmds='chmod +x $lib'
  2707. ;;
  2708. sunos4*)
  2709. version_type=sunos
  2710. library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
  2711. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2712. shlibpath_var=LD_LIBRARY_PATH
  2713. shlibpath_overrides_runpath=yes
  2714. if test yes = "$with_gnu_ld"; then
  2715. need_lib_prefix=no
  2716. fi
  2717. need_version=yes
  2718. ;;
  2719. sysv4 | sysv4.3*)
  2720. version_type=linux # correct to gnu/linux during the next big refactor
  2721. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2722. soname_spec='$libname$release$shared_ext$major'
  2723. shlibpath_var=LD_LIBRARY_PATH
  2724. case $host_vendor in
  2725. sni)
  2726. shlibpath_overrides_runpath=no
  2727. need_lib_prefix=no
  2728. runpath_var=LD_RUN_PATH
  2729. ;;
  2730. siemens)
  2731. need_lib_prefix=no
  2732. ;;
  2733. motorola)
  2734. need_lib_prefix=no
  2735. need_version=no
  2736. shlibpath_overrides_runpath=no
  2737. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  2738. ;;
  2739. esac
  2740. ;;
  2741. sysv4*MP*)
  2742. if test -d /usr/nec; then
  2743. version_type=linux # correct to gnu/linux during the next big refactor
  2744. library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
  2745. soname_spec='$libname$shared_ext.$major'
  2746. shlibpath_var=LD_LIBRARY_PATH
  2747. fi
  2748. ;;
  2749. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  2750. version_type=sco
  2751. need_lib_prefix=no
  2752. need_version=no
  2753. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
  2754. soname_spec='$libname$release$shared_ext$major'
  2755. shlibpath_var=LD_LIBRARY_PATH
  2756. shlibpath_overrides_runpath=yes
  2757. hardcode_into_libs=yes
  2758. if test yes = "$with_gnu_ld"; then
  2759. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2760. else
  2761. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2762. case $host_os in
  2763. sco3.2v5*)
  2764. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2765. ;;
  2766. esac
  2767. fi
  2768. sys_lib_dlsearch_path_spec='/usr/lib'
  2769. ;;
  2770. tpf*)
  2771. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2772. version_type=linux # correct to gnu/linux during the next big refactor
  2773. need_lib_prefix=no
  2774. need_version=no
  2775. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2776. shlibpath_var=LD_LIBRARY_PATH
  2777. shlibpath_overrides_runpath=no
  2778. hardcode_into_libs=yes
  2779. ;;
  2780. uts4*)
  2781. version_type=linux # correct to gnu/linux during the next big refactor
  2782. library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
  2783. soname_spec='$libname$release$shared_ext$major'
  2784. shlibpath_var=LD_LIBRARY_PATH
  2785. ;;
  2786. *)
  2787. dynamic_linker=no
  2788. ;;
  2789. esac
  2790. AC_MSG_RESULT([$dynamic_linker])
  2791. test no = "$dynamic_linker" && can_build_shared=no
  2792. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2793. if test yes = "$GCC"; then
  2794. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2795. fi
  2796. if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
  2797. sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
  2798. fi
  2799. if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
  2800. sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
  2801. fi
  2802. # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
  2803. configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
  2804. # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
  2805. func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
  2806. # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
  2807. configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
  2808. _LT_DECL([], [variables_saved_for_relink], [1],
  2809. [Variables whose values should be saved in libtool wrapper scripts and
  2810. restored at link time])
  2811. _LT_DECL([], [need_lib_prefix], [0],
  2812. [Do we need the "lib" prefix for modules?])
  2813. _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2814. _LT_DECL([], [version_type], [0], [Library versioning type])
  2815. _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2816. _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2817. _LT_DECL([], [shlibpath_overrides_runpath], [0],
  2818. [Is shlibpath searched before the hard-coded library search path?])
  2819. _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2820. _LT_DECL([], [library_names_spec], [1],
  2821. [[List of archive names. First name is the real one, the rest are links.
  2822. The last name is the one that the linker finds with -lNAME]])
  2823. _LT_DECL([], [soname_spec], [1],
  2824. [[The coded name of the library, if different from the real name]])
  2825. _LT_DECL([], [install_override_mode], [1],
  2826. [Permission mode override for installation of shared libraries])
  2827. _LT_DECL([], [postinstall_cmds], [2],
  2828. [Command to use after installation of a shared archive])
  2829. _LT_DECL([], [postuninstall_cmds], [2],
  2830. [Command to use after uninstallation of a shared archive])
  2831. _LT_DECL([], [finish_cmds], [2],
  2832. [Commands used to finish a libtool library installation in a directory])
  2833. _LT_DECL([], [finish_eval], [1],
  2834. [[As "finish_cmds", except a single script fragment to be evaled but
  2835. not shown]])
  2836. _LT_DECL([], [hardcode_into_libs], [0],
  2837. [Whether we should hardcode library paths into libraries])
  2838. _LT_DECL([], [sys_lib_search_path_spec], [2],
  2839. [Compile-time system search path for libraries])
  2840. _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
  2841. [Detected run-time system search path for libraries])
  2842. _LT_DECL([], [configure_time_lt_sys_library_path], [2],
  2843. [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
  2844. ])# _LT_SYS_DYNAMIC_LINKER
  2845. # _LT_PATH_TOOL_PREFIX(TOOL)
  2846. # --------------------------
  2847. # find a file program that can recognize shared library
  2848. AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2849. [m4_require([_LT_DECL_EGREP])dnl
  2850. AC_MSG_CHECKING([for $1])
  2851. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2852. [case $MAGIC_CMD in
  2853. [[\\/*] | ?:[\\/]*])
  2854. lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
  2855. ;;
  2856. *)
  2857. lt_save_MAGIC_CMD=$MAGIC_CMD
  2858. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2859. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2860. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2861. dnl not every word. This closes a longstanding sh security hole.
  2862. ac_dummy="m4_if([$2], , $PATH, [$2])"
  2863. for ac_dir in $ac_dummy; do
  2864. IFS=$lt_save_ifs
  2865. test -z "$ac_dir" && ac_dir=.
  2866. if test -f "$ac_dir/$1"; then
  2867. lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
  2868. if test -n "$file_magic_test_file"; then
  2869. case $deplibs_check_method in
  2870. "file_magic "*)
  2871. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  2872. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2873. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  2874. $EGREP "$file_magic_regex" > /dev/null; then
  2875. :
  2876. else
  2877. cat <<_LT_EOF 1>&2
  2878. *** Warning: the command libtool uses to detect shared libraries,
  2879. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2880. *** The result is that libtool may fail to recognize shared libraries
  2881. *** as such. This will affect the creation of libtool libraries that
  2882. *** depend on shared libraries, but programs linked with such libtool
  2883. *** libraries will work regardless of this problem. Nevertheless, you
  2884. *** may want to report the problem to your system manager and/or to
  2885. *** bug-libtool@gnu.org
  2886. _LT_EOF
  2887. fi ;;
  2888. esac
  2889. fi
  2890. break
  2891. fi
  2892. done
  2893. IFS=$lt_save_ifs
  2894. MAGIC_CMD=$lt_save_MAGIC_CMD
  2895. ;;
  2896. esac])
  2897. MAGIC_CMD=$lt_cv_path_MAGIC_CMD
  2898. if test -n "$MAGIC_CMD"; then
  2899. AC_MSG_RESULT($MAGIC_CMD)
  2900. else
  2901. AC_MSG_RESULT(no)
  2902. fi
  2903. _LT_DECL([], [MAGIC_CMD], [0],
  2904. [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2905. ])# _LT_PATH_TOOL_PREFIX
  2906. # Old name:
  2907. AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2908. dnl aclocal-1.4 backwards compatibility:
  2909. dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2910. # _LT_PATH_MAGIC
  2911. # --------------
  2912. # find a file program that can recognize a shared library
  2913. m4_defun([_LT_PATH_MAGIC],
  2914. [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2915. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2916. if test -n "$ac_tool_prefix"; then
  2917. _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2918. else
  2919. MAGIC_CMD=:
  2920. fi
  2921. fi
  2922. ])# _LT_PATH_MAGIC
  2923. # LT_PATH_LD
  2924. # ----------
  2925. # find the pathname to the GNU or non-GNU linker
  2926. AC_DEFUN([LT_PATH_LD],
  2927. [AC_REQUIRE([AC_PROG_CC])dnl
  2928. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2929. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2930. m4_require([_LT_DECL_SED])dnl
  2931. m4_require([_LT_DECL_EGREP])dnl
  2932. m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
  2933. AC_ARG_WITH([gnu-ld],
  2934. [AS_HELP_STRING([--with-gnu-ld],
  2935. [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2936. [test no = "$withval" || with_gnu_ld=yes],
  2937. [with_gnu_ld=no])dnl
  2938. ac_prog=ld
  2939. if test yes = "$GCC"; then
  2940. # Check if gcc -print-prog-name=ld gives a path.
  2941. AC_MSG_CHECKING([for ld used by $CC])
  2942. case $host in
  2943. *-*-mingw*)
  2944. # gcc leaves a trailing carriage return, which upsets mingw
  2945. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  2946. *)
  2947. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  2948. esac
  2949. case $ac_prog in
  2950. # Accept absolute paths.
  2951. [[\\/]]* | ?:[[\\/]]*)
  2952. re_direlt='/[[^/]][[^/]]*/\.\./'
  2953. # Canonicalize the pathname of ld
  2954. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2955. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2956. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2957. done
  2958. test -z "$LD" && LD=$ac_prog
  2959. ;;
  2960. "")
  2961. # If it fails, then pretend we aren't using GCC.
  2962. ac_prog=ld
  2963. ;;
  2964. *)
  2965. # If it is relative, then search for the first ld in PATH.
  2966. with_gnu_ld=unknown
  2967. ;;
  2968. esac
  2969. elif test yes = "$with_gnu_ld"; then
  2970. AC_MSG_CHECKING([for GNU ld])
  2971. else
  2972. AC_MSG_CHECKING([for non-GNU ld])
  2973. fi
  2974. AC_CACHE_VAL(lt_cv_path_LD,
  2975. [if test -z "$LD"; then
  2976. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  2977. for ac_dir in $PATH; do
  2978. IFS=$lt_save_ifs
  2979. test -z "$ac_dir" && ac_dir=.
  2980. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  2981. lt_cv_path_LD=$ac_dir/$ac_prog
  2982. # Check to see if the program is GNU ld. I'd rather use --version,
  2983. # but apparently some variants of GNU ld only accept -v.
  2984. # Break only if it was the GNU/non-GNU ld that we prefer.
  2985. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  2986. *GNU* | *'with BFD'*)
  2987. test no != "$with_gnu_ld" && break
  2988. ;;
  2989. *)
  2990. test yes != "$with_gnu_ld" && break
  2991. ;;
  2992. esac
  2993. fi
  2994. done
  2995. IFS=$lt_save_ifs
  2996. else
  2997. lt_cv_path_LD=$LD # Let the user override the test with a path.
  2998. fi])
  2999. LD=$lt_cv_path_LD
  3000. if test -n "$LD"; then
  3001. AC_MSG_RESULT($LD)
  3002. else
  3003. AC_MSG_RESULT(no)
  3004. fi
  3005. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3006. _LT_PATH_LD_GNU
  3007. AC_SUBST([LD])
  3008. _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  3009. ])# LT_PATH_LD
  3010. # Old names:
  3011. AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  3012. AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  3013. dnl aclocal-1.4 backwards compatibility:
  3014. dnl AC_DEFUN([AM_PROG_LD], [])
  3015. dnl AC_DEFUN([AC_PROG_LD], [])
  3016. # _LT_PATH_LD_GNU
  3017. #- --------------
  3018. m4_defun([_LT_PATH_LD_GNU],
  3019. [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3020. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3021. case `$LD -v 2>&1 </dev/null` in
  3022. *GNU* | *'with BFD'*)
  3023. lt_cv_prog_gnu_ld=yes
  3024. ;;
  3025. *)
  3026. lt_cv_prog_gnu_ld=no
  3027. ;;
  3028. esac])
  3029. with_gnu_ld=$lt_cv_prog_gnu_ld
  3030. ])# _LT_PATH_LD_GNU
  3031. # _LT_CMD_RELOAD
  3032. # --------------
  3033. # find reload flag for linker
  3034. # -- PORTME Some linkers may need a different reload flag.
  3035. m4_defun([_LT_CMD_RELOAD],
  3036. [AC_CACHE_CHECK([for $LD option to reload object files],
  3037. lt_cv_ld_reload_flag,
  3038. [lt_cv_ld_reload_flag='-r'])
  3039. reload_flag=$lt_cv_ld_reload_flag
  3040. case $reload_flag in
  3041. "" | " "*) ;;
  3042. *) reload_flag=" $reload_flag" ;;
  3043. esac
  3044. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3045. case $host_os in
  3046. cygwin* | mingw* | pw32* | cegcc*)
  3047. if test yes != "$GCC"; then
  3048. reload_cmds=false
  3049. fi
  3050. ;;
  3051. darwin*)
  3052. if test yes = "$GCC"; then
  3053. reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
  3054. else
  3055. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3056. fi
  3057. ;;
  3058. esac
  3059. _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3060. _LT_TAGDECL([], [reload_cmds], [2])dnl
  3061. ])# _LT_CMD_RELOAD
  3062. # _LT_PATH_DD
  3063. # -----------
  3064. # find a working dd
  3065. m4_defun([_LT_PATH_DD],
  3066. [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
  3067. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3068. cat conftest.i conftest.i >conftest2.i
  3069. : ${lt_DD:=$DD}
  3070. AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
  3071. [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3072. cmp -s conftest.i conftest.out \
  3073. && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
  3074. fi])
  3075. rm -f conftest.i conftest2.i conftest.out])
  3076. ])# _LT_PATH_DD
  3077. # _LT_CMD_TRUNCATE
  3078. # ----------------
  3079. # find command to truncate a binary pipe
  3080. m4_defun([_LT_CMD_TRUNCATE],
  3081. [m4_require([_LT_PATH_DD])
  3082. AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
  3083. [printf 0123456789abcdef0123456789abcdef >conftest.i
  3084. cat conftest.i conftest.i >conftest2.i
  3085. lt_cv_truncate_bin=
  3086. if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
  3087. cmp -s conftest.i conftest.out \
  3088. && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
  3089. fi
  3090. rm -f conftest.i conftest2.i conftest.out
  3091. test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
  3092. _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
  3093. [Command to truncate a binary pipe])
  3094. ])# _LT_CMD_TRUNCATE
  3095. # _LT_CHECK_MAGIC_METHOD
  3096. # ----------------------
  3097. # how to check for library dependencies
  3098. # -- PORTME fill in with the dynamic library characteristics
  3099. m4_defun([_LT_CHECK_MAGIC_METHOD],
  3100. [m4_require([_LT_DECL_EGREP])
  3101. m4_require([_LT_DECL_OBJDUMP])
  3102. AC_CACHE_CHECK([how to recognize dependent libraries],
  3103. lt_cv_deplibs_check_method,
  3104. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3105. lt_cv_file_magic_test_file=
  3106. lt_cv_deplibs_check_method='unknown'
  3107. # Need to set the preceding variable on all platforms that support
  3108. # interlibrary dependencies.
  3109. # 'none' -- dependencies not supported.
  3110. # 'unknown' -- same as none, but documents that we really don't know.
  3111. # 'pass_all' -- all dependencies passed with no checks.
  3112. # 'test_compile' -- check by making test program.
  3113. # 'file_magic [[regex]]' -- check by looking for files in library path
  3114. # that responds to the $file_magic_cmd with a given extended regex.
  3115. # If you have 'file' or equivalent on your system and you're not sure
  3116. # whether 'pass_all' will *always* work, you probably want this one.
  3117. case $host_os in
  3118. aix[[4-9]]*)
  3119. lt_cv_deplibs_check_method=pass_all
  3120. ;;
  3121. beos*)
  3122. lt_cv_deplibs_check_method=pass_all
  3123. ;;
  3124. bsdi[[45]]*)
  3125. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3126. lt_cv_file_magic_cmd='/usr/bin/file -L'
  3127. lt_cv_file_magic_test_file=/shlib/libc.so
  3128. ;;
  3129. cygwin*)
  3130. # func_win32_libid is a shell function defined in ltmain.sh
  3131. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3132. lt_cv_file_magic_cmd='func_win32_libid'
  3133. ;;
  3134. mingw* | pw32*)
  3135. # Base MSYS/MinGW do not provide the 'file' command needed by
  3136. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  3137. # unless we find 'file', for example because we are cross-compiling.
  3138. if ( file / ) >/dev/null 2>&1; then
  3139. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3140. lt_cv_file_magic_cmd='func_win32_libid'
  3141. else
  3142. # Keep this pattern in sync with the one in func_win32_libid.
  3143. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  3144. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3145. fi
  3146. ;;
  3147. cegcc*)
  3148. # use the weaker test based on 'objdump'. See mingw*.
  3149. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3150. lt_cv_file_magic_cmd='$OBJDUMP -f'
  3151. ;;
  3152. darwin* | rhapsody*)
  3153. lt_cv_deplibs_check_method=pass_all
  3154. ;;
  3155. freebsd* | dragonfly*)
  3156. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3157. case $host_cpu in
  3158. i*86 )
  3159. # Not sure whether the presence of OpenBSD here was a mistake.
  3160. # Let's accept both of them until this is cleared up.
  3161. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  3162. lt_cv_file_magic_cmd=/usr/bin/file
  3163. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3164. ;;
  3165. esac
  3166. else
  3167. lt_cv_deplibs_check_method=pass_all
  3168. fi
  3169. ;;
  3170. haiku*)
  3171. lt_cv_deplibs_check_method=pass_all
  3172. ;;
  3173. hpux10.20* | hpux11*)
  3174. lt_cv_file_magic_cmd=/usr/bin/file
  3175. case $host_cpu in
  3176. ia64*)
  3177. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3178. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3179. ;;
  3180. hppa*64*)
  3181. [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]']
  3182. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3183. ;;
  3184. *)
  3185. lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
  3186. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3187. ;;
  3188. esac
  3189. ;;
  3190. interix[[3-9]]*)
  3191. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  3192. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  3193. ;;
  3194. irix5* | irix6* | nonstopux*)
  3195. case $LD in
  3196. *-32|*"-32 ") libmagic=32-bit;;
  3197. *-n32|*"-n32 ") libmagic=N32;;
  3198. *-64|*"-64 ") libmagic=64-bit;;
  3199. *) libmagic=never-match;;
  3200. esac
  3201. lt_cv_deplibs_check_method=pass_all
  3202. ;;
  3203. # This must be glibc/ELF.
  3204. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3205. lt_cv_deplibs_check_method=pass_all
  3206. ;;
  3207. netbsd* | netbsdelf*-gnu)
  3208. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3209. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3210. else
  3211. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3212. fi
  3213. ;;
  3214. newos6*)
  3215. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3216. lt_cv_file_magic_cmd=/usr/bin/file
  3217. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3218. ;;
  3219. *nto* | *qnx*)
  3220. lt_cv_deplibs_check_method=pass_all
  3221. ;;
  3222. openbsd* | bitrig*)
  3223. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  3224. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3225. else
  3226. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3227. fi
  3228. ;;
  3229. osf3* | osf4* | osf5*)
  3230. lt_cv_deplibs_check_method=pass_all
  3231. ;;
  3232. rdos*)
  3233. lt_cv_deplibs_check_method=pass_all
  3234. ;;
  3235. solaris*)
  3236. lt_cv_deplibs_check_method=pass_all
  3237. ;;
  3238. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3239. lt_cv_deplibs_check_method=pass_all
  3240. ;;
  3241. sysv4 | sysv4.3*)
  3242. case $host_vendor in
  3243. motorola)
  3244. 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]]'
  3245. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3246. ;;
  3247. ncr)
  3248. lt_cv_deplibs_check_method=pass_all
  3249. ;;
  3250. sequent)
  3251. lt_cv_file_magic_cmd='/bin/file'
  3252. lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3253. ;;
  3254. sni)
  3255. lt_cv_file_magic_cmd='/bin/file'
  3256. lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3257. lt_cv_file_magic_test_file=/lib/libc.so
  3258. ;;
  3259. siemens)
  3260. lt_cv_deplibs_check_method=pass_all
  3261. ;;
  3262. pc)
  3263. lt_cv_deplibs_check_method=pass_all
  3264. ;;
  3265. esac
  3266. ;;
  3267. tpf*)
  3268. lt_cv_deplibs_check_method=pass_all
  3269. ;;
  3270. os2*)
  3271. lt_cv_deplibs_check_method=pass_all
  3272. ;;
  3273. esac
  3274. ])
  3275. file_magic_glob=
  3276. want_nocaseglob=no
  3277. if test "$build" = "$host"; then
  3278. case $host_os in
  3279. mingw* | pw32*)
  3280. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  3281. want_nocaseglob=yes
  3282. else
  3283. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
  3284. fi
  3285. ;;
  3286. esac
  3287. fi
  3288. file_magic_cmd=$lt_cv_file_magic_cmd
  3289. deplibs_check_method=$lt_cv_deplibs_check_method
  3290. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3291. _LT_DECL([], [deplibs_check_method], [1],
  3292. [Method to check whether dependent libraries are shared objects])
  3293. _LT_DECL([], [file_magic_cmd], [1],
  3294. [Command to use when deplibs_check_method = "file_magic"])
  3295. _LT_DECL([], [file_magic_glob], [1],
  3296. [How to find potential files when deplibs_check_method = "file_magic"])
  3297. _LT_DECL([], [want_nocaseglob], [1],
  3298. [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
  3299. ])# _LT_CHECK_MAGIC_METHOD
  3300. # LT_PATH_NM
  3301. # ----------
  3302. # find the pathname to a BSD- or MS-compatible name lister
  3303. AC_DEFUN([LT_PATH_NM],
  3304. [AC_REQUIRE([AC_PROG_CC])dnl
  3305. AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3306. [if test -n "$NM"; then
  3307. # Let the user override the test.
  3308. lt_cv_path_NM=$NM
  3309. else
  3310. lt_nm_to_check=${ac_tool_prefix}nm
  3311. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3312. lt_nm_to_check="$lt_nm_to_check nm"
  3313. fi
  3314. for lt_tmp_nm in $lt_nm_to_check; do
  3315. lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
  3316. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3317. IFS=$lt_save_ifs
  3318. test -z "$ac_dir" && ac_dir=.
  3319. tmp_nm=$ac_dir/$lt_tmp_nm
  3320. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
  3321. # Check to see if the nm accepts a BSD-compat flag.
  3322. # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
  3323. # nm: unknown option "B" ignored
  3324. # Tru64's nm complains that /dev/null is an invalid object file
  3325. # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
  3326. case $build_os in
  3327. mingw*) lt_bad_file=conftest.nm/nofile ;;
  3328. *) lt_bad_file=/dev/null ;;
  3329. esac
  3330. case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
  3331. *$lt_bad_file* | *'Invalid file or object type'*)
  3332. lt_cv_path_NM="$tmp_nm -B"
  3333. break 2
  3334. ;;
  3335. *)
  3336. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3337. */dev/null*)
  3338. lt_cv_path_NM="$tmp_nm -p"
  3339. break 2
  3340. ;;
  3341. *)
  3342. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3343. continue # so that we can try to find one that supports BSD flags
  3344. ;;
  3345. esac
  3346. ;;
  3347. esac
  3348. fi
  3349. done
  3350. IFS=$lt_save_ifs
  3351. done
  3352. : ${lt_cv_path_NM=no}
  3353. fi])
  3354. if test no != "$lt_cv_path_NM"; then
  3355. NM=$lt_cv_path_NM
  3356. else
  3357. # Didn't find any BSD compatible name lister, look for dumpbin.
  3358. if test -n "$DUMPBIN"; then :
  3359. # Let the user override the test.
  3360. else
  3361. AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
  3362. case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
  3363. *COFF*)
  3364. DUMPBIN="$DUMPBIN -symbols -headers"
  3365. ;;
  3366. *)
  3367. DUMPBIN=:
  3368. ;;
  3369. esac
  3370. fi
  3371. AC_SUBST([DUMPBIN])
  3372. if test : != "$DUMPBIN"; then
  3373. NM=$DUMPBIN
  3374. fi
  3375. fi
  3376. test -z "$NM" && NM=nm
  3377. AC_SUBST([NM])
  3378. _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3379. AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3380. [lt_cv_nm_interface="BSD nm"
  3381. echo "int some_variable = 0;" > conftest.$ac_ext
  3382. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3383. (eval "$ac_compile" 2>conftest.err)
  3384. cat conftest.err >&AS_MESSAGE_LOG_FD
  3385. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3386. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3387. cat conftest.err >&AS_MESSAGE_LOG_FD
  3388. (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
  3389. cat conftest.out >&AS_MESSAGE_LOG_FD
  3390. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3391. lt_cv_nm_interface="MS dumpbin"
  3392. fi
  3393. rm -f conftest*])
  3394. ])# LT_PATH_NM
  3395. # Old names:
  3396. AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3397. AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3398. dnl aclocal-1.4 backwards compatibility:
  3399. dnl AC_DEFUN([AM_PROG_NM], [])
  3400. dnl AC_DEFUN([AC_PROG_NM], [])
  3401. # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3402. # --------------------------------
  3403. # how to determine the name of the shared library
  3404. # associated with a specific link library.
  3405. # -- PORTME fill in with the dynamic library characteristics
  3406. m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
  3407. [m4_require([_LT_DECL_EGREP])
  3408. m4_require([_LT_DECL_OBJDUMP])
  3409. m4_require([_LT_DECL_DLLTOOL])
  3410. AC_CACHE_CHECK([how to associate runtime and link libraries],
  3411. lt_cv_sharedlib_from_linklib_cmd,
  3412. [lt_cv_sharedlib_from_linklib_cmd='unknown'
  3413. case $host_os in
  3414. cygwin* | mingw* | pw32* | cegcc*)
  3415. # two different shell functions defined in ltmain.sh;
  3416. # decide which one to use based on capabilities of $DLLTOOL
  3417. case `$DLLTOOL --help 2>&1` in
  3418. *--identify-strict*)
  3419. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  3420. ;;
  3421. *)
  3422. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  3423. ;;
  3424. esac
  3425. ;;
  3426. *)
  3427. # fallback: assume linklib IS sharedlib
  3428. lt_cv_sharedlib_from_linklib_cmd=$ECHO
  3429. ;;
  3430. esac
  3431. ])
  3432. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  3433. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  3434. _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
  3435. [Command to associate shared and link libraries])
  3436. ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
  3437. # _LT_PATH_MANIFEST_TOOL
  3438. # ----------------------
  3439. # locate the manifest tool
  3440. m4_defun([_LT_PATH_MANIFEST_TOOL],
  3441. [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
  3442. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  3443. AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
  3444. [lt_cv_path_mainfest_tool=no
  3445. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
  3446. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  3447. cat conftest.err >&AS_MESSAGE_LOG_FD
  3448. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  3449. lt_cv_path_mainfest_tool=yes
  3450. fi
  3451. rm -f conftest*])
  3452. if test yes != "$lt_cv_path_mainfest_tool"; then
  3453. MANIFEST_TOOL=:
  3454. fi
  3455. _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
  3456. ])# _LT_PATH_MANIFEST_TOOL
  3457. # _LT_DLL_DEF_P([FILE])
  3458. # ---------------------
  3459. # True iff FILE is a Windows DLL '.def' file.
  3460. # Keep in sync with func_dll_def_p in the libtool script
  3461. AC_DEFUN([_LT_DLL_DEF_P],
  3462. [dnl
  3463. test DEF = "`$SED -n dnl
  3464. -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
  3465. -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
  3466. -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
  3467. -e q dnl Only consider the first "real" line
  3468. $1`" dnl
  3469. ])# _LT_DLL_DEF_P
  3470. # LT_LIB_M
  3471. # --------
  3472. # check for math library
  3473. AC_DEFUN([LT_LIB_M],
  3474. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3475. LIBM=
  3476. case $host in
  3477. *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
  3478. # These system don't have libm, or don't need it
  3479. ;;
  3480. *-ncr-sysv4.3*)
  3481. AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
  3482. AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3483. ;;
  3484. *)
  3485. AC_CHECK_LIB(m, cos, LIBM=-lm)
  3486. ;;
  3487. esac
  3488. AC_SUBST([LIBM])
  3489. ])# LT_LIB_M
  3490. # Old name:
  3491. AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  3492. dnl aclocal-1.4 backwards compatibility:
  3493. dnl AC_DEFUN([AC_CHECK_LIBM], [])
  3494. # _LT_COMPILER_NO_RTTI([TAGNAME])
  3495. # -------------------------------
  3496. m4_defun([_LT_COMPILER_NO_RTTI],
  3497. [m4_require([_LT_TAG_COMPILER])dnl
  3498. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3499. if test yes = "$GCC"; then
  3500. case $cc_basename in
  3501. nvcc*)
  3502. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
  3503. *)
  3504. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
  3505. esac
  3506. _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  3507. lt_cv_prog_compiler_rtti_exceptions,
  3508. [-fno-rtti -fno-exceptions], [],
  3509. [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  3510. fi
  3511. _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  3512. [Compiler flag to turn off builtin functions])
  3513. ])# _LT_COMPILER_NO_RTTI
  3514. # _LT_CMD_GLOBAL_SYMBOLS
  3515. # ----------------------
  3516. m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  3517. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3518. AC_REQUIRE([AC_PROG_CC])dnl
  3519. AC_REQUIRE([AC_PROG_AWK])dnl
  3520. AC_REQUIRE([LT_PATH_NM])dnl
  3521. AC_REQUIRE([LT_PATH_LD])dnl
  3522. m4_require([_LT_DECL_SED])dnl
  3523. m4_require([_LT_DECL_EGREP])dnl
  3524. m4_require([_LT_TAG_COMPILER])dnl
  3525. # Check for command to grab the raw symbol name followed by C symbol from nm.
  3526. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  3527. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  3528. [
  3529. # These are sane defaults that work on at least a few old systems.
  3530. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  3531. # Character class describing NM global symbol codes.
  3532. symcode='[[BCDEGRST]]'
  3533. # Regexp to match symbols that can be accessed directly from C.
  3534. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  3535. # Define system-specific variables.
  3536. case $host_os in
  3537. aix*)
  3538. symcode='[[BCDT]]'
  3539. ;;
  3540. cygwin* | mingw* | pw32* | cegcc*)
  3541. symcode='[[ABCDGISTW]]'
  3542. ;;
  3543. hpux*)
  3544. if test ia64 = "$host_cpu"; then
  3545. symcode='[[ABCDEGRST]]'
  3546. fi
  3547. ;;
  3548. irix* | nonstopux*)
  3549. symcode='[[BCDEGRST]]'
  3550. ;;
  3551. osf*)
  3552. symcode='[[BCDEGQRST]]'
  3553. ;;
  3554. solaris*)
  3555. symcode='[[BDRT]]'
  3556. ;;
  3557. sco3.2v5*)
  3558. symcode='[[DT]]'
  3559. ;;
  3560. sysv4.2uw2*)
  3561. symcode='[[DT]]'
  3562. ;;
  3563. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  3564. symcode='[[ABDT]]'
  3565. ;;
  3566. sysv4)
  3567. symcode='[[DFNSTU]]'
  3568. ;;
  3569. esac
  3570. # If we're using GNU nm, then use its standard symbol codes.
  3571. case `$NM -V 2>&1` in
  3572. *GNU* | *'with BFD'*)
  3573. symcode='[[ABCDGIRSTW]]' ;;
  3574. esac
  3575. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3576. # Gets list of data symbols to import.
  3577. lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
  3578. # Adjust the below global symbol transforms to fixup imported variables.
  3579. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
  3580. lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
  3581. lt_c_name_lib_hook="\
  3582. -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
  3583. -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
  3584. else
  3585. # Disable hooks by default.
  3586. lt_cv_sys_global_symbol_to_import=
  3587. lt_cdecl_hook=
  3588. lt_c_name_hook=
  3589. lt_c_name_lib_hook=
  3590. fi
  3591. # Transform an extracted symbol line into a proper C declaration.
  3592. # Some systems (esp. on ia64) link data and code symbols differently,
  3593. # so use this general approach.
  3594. lt_cv_sys_global_symbol_to_cdecl="sed -n"\
  3595. $lt_cdecl_hook\
  3596. " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
  3597. " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
  3598. # Transform an extracted symbol line into symbol name and symbol address
  3599. lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
  3600. $lt_c_name_hook\
  3601. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3602. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
  3603. # Transform an extracted symbol line into symbol name with lib prefix and
  3604. # symbol address.
  3605. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
  3606. $lt_c_name_lib_hook\
  3607. " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
  3608. " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
  3609. " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
  3610. # Handle CRLF in mingw tool chain
  3611. opt_cr=
  3612. case $build_os in
  3613. mingw*)
  3614. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  3615. ;;
  3616. esac
  3617. # Try without a prefix underscore, then with it.
  3618. for ac_symprfx in "" "_"; do
  3619. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  3620. symxfrm="\\1 $ac_symprfx\\2 \\2"
  3621. # Write the raw and C identifiers.
  3622. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3623. # Fake it for dumpbin and say T for any non-static function,
  3624. # D for any global variable and I for any imported variable.
  3625. # Also find C++ and __fastcall symbols from MSVC++,
  3626. # which start with @ or ?.
  3627. lt_cv_sys_global_symbol_pipe="$AWK ['"\
  3628. " {last_section=section; section=\$ 3};"\
  3629. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  3630. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  3631. " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
  3632. " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
  3633. " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
  3634. " \$ 0!~/External *\|/{next};"\
  3635. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  3636. " {if(hide[section]) next};"\
  3637. " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
  3638. " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
  3639. " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
  3640. " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
  3641. " ' prfx=^$ac_symprfx]"
  3642. else
  3643. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  3644. fi
  3645. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  3646. # Check to see that the pipe works correctly.
  3647. pipe_works=no
  3648. rm -f conftest*
  3649. cat > conftest.$ac_ext <<_LT_EOF
  3650. #ifdef __cplusplus
  3651. extern "C" {
  3652. #endif
  3653. char nm_test_var;
  3654. void nm_test_func(void);
  3655. void nm_test_func(void){}
  3656. #ifdef __cplusplus
  3657. }
  3658. #endif
  3659. int main(){nm_test_var='a';nm_test_func();return(0);}
  3660. _LT_EOF
  3661. if AC_TRY_EVAL(ac_compile); then
  3662. # Now try to grab the symbols.
  3663. nlist=conftest.nm
  3664. $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&AS_MESSAGE_LOG_FD
  3665. if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&AS_MESSAGE_LOG_FD && test -s "$nlist"; then
  3666. # Try sorting and uniquifying the output.
  3667. if sort "$nlist" | uniq > "$nlist"T; then
  3668. mv -f "$nlist"T "$nlist"
  3669. else
  3670. rm -f "$nlist"T
  3671. fi
  3672. # Make sure that we snagged all the symbols we need.
  3673. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  3674. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  3675. cat <<_LT_EOF > conftest.$ac_ext
  3676. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  3677. #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
  3678. /* DATA imports from DLLs on WIN32 can't be const, because runtime
  3679. relocations are performed -- see ld's documentation on pseudo-relocs. */
  3680. # define LT@&t@_DLSYM_CONST
  3681. #elif defined __osf__
  3682. /* This system does not cope well with relocations in const data. */
  3683. # define LT@&t@_DLSYM_CONST
  3684. #else
  3685. # define LT@&t@_DLSYM_CONST const
  3686. #endif
  3687. #ifdef __cplusplus
  3688. extern "C" {
  3689. #endif
  3690. _LT_EOF
  3691. # Now generate the symbol file.
  3692. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  3693. cat <<_LT_EOF >> conftest.$ac_ext
  3694. /* The mapping between symbol names and symbols. */
  3695. LT@&t@_DLSYM_CONST struct {
  3696. const char *name;
  3697. void *address;
  3698. }
  3699. lt__PROGRAM__LTX_preloaded_symbols[[]] =
  3700. {
  3701. { "@PROGRAM@", (void *) 0 },
  3702. _LT_EOF
  3703. $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  3704. cat <<\_LT_EOF >> conftest.$ac_ext
  3705. {0, (void *) 0}
  3706. };
  3707. /* This works around a problem in FreeBSD linker */
  3708. #ifdef FREEBSD_WORKAROUND
  3709. static const void *lt_preloaded_setup() {
  3710. return lt__PROGRAM__LTX_preloaded_symbols;
  3711. }
  3712. #endif
  3713. #ifdef __cplusplus
  3714. }
  3715. #endif
  3716. _LT_EOF
  3717. # Now try linking the two files.
  3718. mv conftest.$ac_objext conftstm.$ac_objext
  3719. lt_globsym_save_LIBS=$LIBS
  3720. lt_globsym_save_CFLAGS=$CFLAGS
  3721. LIBS=conftstm.$ac_objext
  3722. CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  3723. if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  3724. pipe_works=yes
  3725. fi
  3726. LIBS=$lt_globsym_save_LIBS
  3727. CFLAGS=$lt_globsym_save_CFLAGS
  3728. else
  3729. echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  3730. fi
  3731. else
  3732. echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  3733. fi
  3734. else
  3735. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  3736. fi
  3737. else
  3738. echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  3739. cat conftest.$ac_ext >&5
  3740. fi
  3741. rm -rf conftest* conftst*
  3742. # Do not use the global_symbol_pipe unless it works.
  3743. if test yes = "$pipe_works"; then
  3744. break
  3745. else
  3746. lt_cv_sys_global_symbol_pipe=
  3747. fi
  3748. done
  3749. ])
  3750. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  3751. lt_cv_sys_global_symbol_to_cdecl=
  3752. fi
  3753. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  3754. AC_MSG_RESULT(failed)
  3755. else
  3756. AC_MSG_RESULT(ok)
  3757. fi
  3758. # Response file support.
  3759. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  3760. nm_file_list_spec='@'
  3761. elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
  3762. nm_file_list_spec='@'
  3763. fi
  3764. _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  3765. [Take the output of nm and produce a listing of raw symbols and C names])
  3766. _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  3767. [Transform the output of nm in a proper C declaration])
  3768. _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
  3769. [Transform the output of nm into a list of symbols to manually relocate])
  3770. _LT_DECL([global_symbol_to_c_name_address],
  3771. [lt_cv_sys_global_symbol_to_c_name_address], [1],
  3772. [Transform the output of nm in a C name address pair])
  3773. _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  3774. [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  3775. [Transform the output of nm in a C name address pair when lib prefix is needed])
  3776. _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
  3777. [The name lister interface])
  3778. _LT_DECL([], [nm_file_list_spec], [1],
  3779. [Specify filename containing input files for $NM])
  3780. ]) # _LT_CMD_GLOBAL_SYMBOLS
  3781. # _LT_COMPILER_PIC([TAGNAME])
  3782. # ---------------------------
  3783. m4_defun([_LT_COMPILER_PIC],
  3784. [m4_require([_LT_TAG_COMPILER])dnl
  3785. _LT_TAGVAR(lt_prog_compiler_wl, $1)=
  3786. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3787. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3788. m4_if([$1], [CXX], [
  3789. # C++ specific cases for pic, static, wl, etc.
  3790. if test yes = "$GXX"; then
  3791. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3792. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3793. case $host_os in
  3794. aix*)
  3795. # All AIX code is PIC.
  3796. if test ia64 = "$host_cpu"; then
  3797. # AIX 5 now supports IA64 processor
  3798. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3799. fi
  3800. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3801. ;;
  3802. amigaos*)
  3803. case $host_cpu in
  3804. powerpc)
  3805. # see comment about AmigaOS4 .so support
  3806. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3807. ;;
  3808. m68k)
  3809. # FIXME: we need at least 68020 code to build shared libraries, but
  3810. # adding the '-m68020' flag to GCC prevents building anything better,
  3811. # like '-m68040'.
  3812. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  3813. ;;
  3814. esac
  3815. ;;
  3816. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  3817. # PIC is the default for these OSes.
  3818. ;;
  3819. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3820. # This hack is so that the source file can tell whether it is being
  3821. # built for inclusion in a dll (and should export symbols for example).
  3822. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  3823. # (--disable-auto-import) libraries
  3824. m4_if([$1], [GCJ], [],
  3825. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3826. case $host_os in
  3827. os2*)
  3828. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  3829. ;;
  3830. esac
  3831. ;;
  3832. darwin* | rhapsody*)
  3833. # PIC is the default on this platform
  3834. # Common symbols not allowed in MH_DYLIB files
  3835. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  3836. ;;
  3837. *djgpp*)
  3838. # DJGPP does not support shared libraries at all
  3839. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3840. ;;
  3841. haiku*)
  3842. # PIC is the default for Haiku.
  3843. # The "-static" flag exists, but is broken.
  3844. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  3845. ;;
  3846. interix[[3-9]]*)
  3847. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  3848. # Instead, we relocate shared libraries at runtime.
  3849. ;;
  3850. sysv4*MP*)
  3851. if test -d /usr/nec; then
  3852. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  3853. fi
  3854. ;;
  3855. hpux*)
  3856. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  3857. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  3858. # sets the default TLS model and affects inlining.
  3859. case $host_cpu in
  3860. hppa*64*)
  3861. ;;
  3862. *)
  3863. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3864. ;;
  3865. esac
  3866. ;;
  3867. *qnx* | *nto*)
  3868. # QNX uses GNU C++, but need to define -shared option too, otherwise
  3869. # it will coredump.
  3870. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  3871. ;;
  3872. *)
  3873. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3874. ;;
  3875. esac
  3876. else
  3877. case $host_os in
  3878. aix[[4-9]]*)
  3879. # All AIX code is PIC.
  3880. if test ia64 = "$host_cpu"; then
  3881. # AIX 5 now supports IA64 processor
  3882. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3883. else
  3884. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  3885. fi
  3886. ;;
  3887. chorus*)
  3888. case $cc_basename in
  3889. cxch68*)
  3890. # Green Hills C++ Compiler
  3891. # _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"
  3892. ;;
  3893. esac
  3894. ;;
  3895. mingw* | cygwin* | os2* | pw32* | cegcc*)
  3896. # This hack is so that the source file can tell whether it is being
  3897. # built for inclusion in a dll (and should export symbols for example).
  3898. m4_if([$1], [GCJ], [],
  3899. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  3900. ;;
  3901. dgux*)
  3902. case $cc_basename in
  3903. ec++*)
  3904. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3905. ;;
  3906. ghcx*)
  3907. # Green Hills C++ Compiler
  3908. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  3909. ;;
  3910. *)
  3911. ;;
  3912. esac
  3913. ;;
  3914. freebsd* | dragonfly*)
  3915. # FreeBSD uses GNU C++
  3916. ;;
  3917. hpux9* | hpux10* | hpux11*)
  3918. case $cc_basename in
  3919. CC*)
  3920. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3921. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3922. if test ia64 != "$host_cpu"; then
  3923. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3924. fi
  3925. ;;
  3926. aCC*)
  3927. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3928. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  3929. case $host_cpu in
  3930. hppa*64*|ia64*)
  3931. # +Z the default
  3932. ;;
  3933. *)
  3934. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  3935. ;;
  3936. esac
  3937. ;;
  3938. *)
  3939. ;;
  3940. esac
  3941. ;;
  3942. interix*)
  3943. # This is c89, which is MS Visual C++ (no shared libs)
  3944. # Anyone wants to do a port?
  3945. ;;
  3946. irix5* | irix6* | nonstopux*)
  3947. case $cc_basename in
  3948. CC*)
  3949. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3950. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3951. # CC pic flag -KPIC is the default.
  3952. ;;
  3953. *)
  3954. ;;
  3955. esac
  3956. ;;
  3957. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  3958. case $cc_basename in
  3959. KCC*)
  3960. # KAI C++ Compiler
  3961. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  3962. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3963. ;;
  3964. ecpc* )
  3965. # old Intel C++ for x86_64, which still supported -KPIC.
  3966. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3967. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  3968. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3969. ;;
  3970. icpc* )
  3971. # Intel C++, used to be incompatible with GCC.
  3972. # ICC 10 doesn't accept -KPIC any more.
  3973. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3974. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  3975. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  3976. ;;
  3977. pgCC* | pgcpp*)
  3978. # Portland Group C++ compiler
  3979. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3980. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  3981. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  3982. ;;
  3983. cxx*)
  3984. # Compaq C++
  3985. # Make sure the PIC flag is empty. It appears that all Alpha
  3986. # Linux and Compaq Tru64 Unix objects are PIC.
  3987. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  3988. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  3989. ;;
  3990. xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
  3991. # IBM XL 8.0, 9.0 on PPC and BlueGene
  3992. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  3993. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  3994. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  3995. ;;
  3996. *)
  3997. case `$CC -V 2>&1 | sed 5q` in
  3998. *Sun\ C*)
  3999. # Sun C++ 5.9
  4000. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4001. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4002. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4003. ;;
  4004. esac
  4005. ;;
  4006. esac
  4007. ;;
  4008. lynxos*)
  4009. ;;
  4010. m88k*)
  4011. ;;
  4012. mvs*)
  4013. case $cc_basename in
  4014. cxx*)
  4015. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  4016. ;;
  4017. *)
  4018. ;;
  4019. esac
  4020. ;;
  4021. netbsd* | netbsdelf*-gnu)
  4022. ;;
  4023. *qnx* | *nto*)
  4024. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4025. # it will coredump.
  4026. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4027. ;;
  4028. osf3* | osf4* | osf5*)
  4029. case $cc_basename in
  4030. KCC*)
  4031. _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  4032. ;;
  4033. RCC*)
  4034. # Rational C++ 2.4.1
  4035. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4036. ;;
  4037. cxx*)
  4038. # Digital/Compaq C++
  4039. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4040. # Make sure the PIC flag is empty. It appears that all Alpha
  4041. # Linux and Compaq Tru64 Unix objects are PIC.
  4042. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4043. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4044. ;;
  4045. *)
  4046. ;;
  4047. esac
  4048. ;;
  4049. psos*)
  4050. ;;
  4051. solaris*)
  4052. case $cc_basename in
  4053. CC* | sunCC*)
  4054. # Sun C++ 4.2, 5.x and Centerline C++
  4055. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4056. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4057. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4058. ;;
  4059. gcx*)
  4060. # Green Hills C++ Compiler
  4061. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4062. ;;
  4063. *)
  4064. ;;
  4065. esac
  4066. ;;
  4067. sunos4*)
  4068. case $cc_basename in
  4069. CC*)
  4070. # Sun C++ 4.x
  4071. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4072. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4073. ;;
  4074. lcc*)
  4075. # Lucid
  4076. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4077. ;;
  4078. *)
  4079. ;;
  4080. esac
  4081. ;;
  4082. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4083. case $cc_basename in
  4084. CC*)
  4085. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4086. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4087. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4088. ;;
  4089. esac
  4090. ;;
  4091. tandem*)
  4092. case $cc_basename in
  4093. NCC*)
  4094. # NonStop-UX NCC 3.20
  4095. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4096. ;;
  4097. *)
  4098. ;;
  4099. esac
  4100. ;;
  4101. vxworks*)
  4102. ;;
  4103. *)
  4104. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4105. ;;
  4106. esac
  4107. fi
  4108. ],
  4109. [
  4110. if test yes = "$GCC"; then
  4111. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4112. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4113. case $host_os in
  4114. aix*)
  4115. # All AIX code is PIC.
  4116. if test ia64 = "$host_cpu"; then
  4117. # AIX 5 now supports IA64 processor
  4118. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4119. fi
  4120. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4121. ;;
  4122. amigaos*)
  4123. case $host_cpu in
  4124. powerpc)
  4125. # see comment about AmigaOS4 .so support
  4126. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4127. ;;
  4128. m68k)
  4129. # FIXME: we need at least 68020 code to build shared libraries, but
  4130. # adding the '-m68020' flag to GCC prevents building anything better,
  4131. # like '-m68040'.
  4132. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  4133. ;;
  4134. esac
  4135. ;;
  4136. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  4137. # PIC is the default for these OSes.
  4138. ;;
  4139. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4140. # This hack is so that the source file can tell whether it is being
  4141. # built for inclusion in a dll (and should export symbols for example).
  4142. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  4143. # (--disable-auto-import) libraries
  4144. m4_if([$1], [GCJ], [],
  4145. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4146. case $host_os in
  4147. os2*)
  4148. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4149. ;;
  4150. esac
  4151. ;;
  4152. darwin* | rhapsody*)
  4153. # PIC is the default on this platform
  4154. # Common symbols not allowed in MH_DYLIB files
  4155. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4156. ;;
  4157. haiku*)
  4158. # PIC is the default for Haiku.
  4159. # The "-static" flag exists, but is broken.
  4160. _LT_TAGVAR(lt_prog_compiler_static, $1)=
  4161. ;;
  4162. hpux*)
  4163. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  4164. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  4165. # sets the default TLS model and affects inlining.
  4166. case $host_cpu in
  4167. hppa*64*)
  4168. # +Z the default
  4169. ;;
  4170. *)
  4171. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4172. ;;
  4173. esac
  4174. ;;
  4175. interix[[3-9]]*)
  4176. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  4177. # Instead, we relocate shared libraries at runtime.
  4178. ;;
  4179. msdosdjgpp*)
  4180. # Just because we use GCC doesn't mean we suddenly get shared libraries
  4181. # on systems that don't support them.
  4182. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4183. enable_shared=no
  4184. ;;
  4185. *nto* | *qnx*)
  4186. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4187. # it will coredump.
  4188. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4189. ;;
  4190. sysv4*MP*)
  4191. if test -d /usr/nec; then
  4192. _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  4193. fi
  4194. ;;
  4195. *)
  4196. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4197. ;;
  4198. esac
  4199. case $cc_basename in
  4200. nvcc*) # Cuda Compiler Driver 2.2
  4201. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
  4202. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4203. _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
  4204. fi
  4205. ;;
  4206. esac
  4207. else
  4208. # PORTME Check for flag to pass linker flags through the system compiler.
  4209. case $host_os in
  4210. aix*)
  4211. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4212. if test ia64 = "$host_cpu"; then
  4213. # AIX 5 now supports IA64 processor
  4214. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4215. else
  4216. _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  4217. fi
  4218. ;;
  4219. darwin* | rhapsody*)
  4220. # PIC is the default on this platform
  4221. # Common symbols not allowed in MH_DYLIB files
  4222. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  4223. case $cc_basename in
  4224. nagfor*)
  4225. # NAG Fortran compiler
  4226. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4227. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4228. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4229. ;;
  4230. esac
  4231. ;;
  4232. mingw* | cygwin* | pw32* | os2* | cegcc*)
  4233. # This hack is so that the source file can tell whether it is being
  4234. # built for inclusion in a dll (and should export symbols for example).
  4235. m4_if([$1], [GCJ], [],
  4236. [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  4237. case $host_os in
  4238. os2*)
  4239. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
  4240. ;;
  4241. esac
  4242. ;;
  4243. hpux9* | hpux10* | hpux11*)
  4244. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4245. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  4246. # not for PA HP-UX.
  4247. case $host_cpu in
  4248. hppa*64*|ia64*)
  4249. # +Z the default
  4250. ;;
  4251. *)
  4252. _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  4253. ;;
  4254. esac
  4255. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  4256. _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
  4257. ;;
  4258. irix5* | irix6* | nonstopux*)
  4259. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4260. # PIC (with -KPIC) is the default.
  4261. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4262. ;;
  4263. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4264. case $cc_basename in
  4265. # old Intel for x86_64, which still supported -KPIC.
  4266. ecc*)
  4267. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4268. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4269. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4270. ;;
  4271. # icc used to be incompatible with GCC.
  4272. # ICC 10 doesn't accept -KPIC any more.
  4273. icc* | ifort*)
  4274. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4275. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4276. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4277. ;;
  4278. # Lahey Fortran 8.1.
  4279. lf95*)
  4280. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4281. _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  4282. _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  4283. ;;
  4284. nagfor*)
  4285. # NAG Fortran compiler
  4286. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
  4287. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4288. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4289. ;;
  4290. tcc*)
  4291. # Fabrice Bellard et al's Tiny C Compiler
  4292. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4293. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4294. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4295. ;;
  4296. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  4297. # Portland Group compilers (*not* the Pentium gcc compiler,
  4298. # which looks to be a dead project)
  4299. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4300. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4301. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4302. ;;
  4303. ccc*)
  4304. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4305. # All Alpha code is PIC.
  4306. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4307. ;;
  4308. xl* | bgxl* | bgf* | mpixl*)
  4309. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  4310. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4311. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  4312. _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  4313. ;;
  4314. *)
  4315. case `$CC -V 2>&1 | sed 5q` in
  4316. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
  4317. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  4318. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4319. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4320. _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  4321. ;;
  4322. *Sun\ F* | *Sun*Fortran*)
  4323. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4324. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4325. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4326. ;;
  4327. *Sun\ C*)
  4328. # Sun C 5.9
  4329. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4330. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4331. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4332. ;;
  4333. *Intel*\ [[CF]]*Compiler*)
  4334. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4335. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  4336. _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  4337. ;;
  4338. *Portland\ Group*)
  4339. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4340. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  4341. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4342. ;;
  4343. esac
  4344. ;;
  4345. esac
  4346. ;;
  4347. newsos6)
  4348. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4349. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4350. ;;
  4351. *nto* | *qnx*)
  4352. # QNX uses GNU C++, but need to define -shared option too, otherwise
  4353. # it will coredump.
  4354. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  4355. ;;
  4356. osf3* | osf4* | osf5*)
  4357. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4358. # All OSF/1 code is PIC.
  4359. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4360. ;;
  4361. rdos*)
  4362. _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  4363. ;;
  4364. solaris*)
  4365. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4366. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4367. case $cc_basename in
  4368. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  4369. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  4370. *)
  4371. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  4372. esac
  4373. ;;
  4374. sunos4*)
  4375. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  4376. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  4377. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4378. ;;
  4379. sysv4 | sysv4.2uw2* | sysv4.3*)
  4380. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4381. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4382. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4383. ;;
  4384. sysv4*MP*)
  4385. if test -d /usr/nec; then
  4386. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  4387. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4388. fi
  4389. ;;
  4390. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  4391. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4392. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  4393. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4394. ;;
  4395. unicos*)
  4396. _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  4397. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4398. ;;
  4399. uts4*)
  4400. _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  4401. _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  4402. ;;
  4403. *)
  4404. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  4405. ;;
  4406. esac
  4407. fi
  4408. ])
  4409. case $host_os in
  4410. # For platforms that do not support PIC, -DPIC is meaningless:
  4411. *djgpp*)
  4412. _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4413. ;;
  4414. *)
  4415. _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  4416. ;;
  4417. esac
  4418. AC_CACHE_CHECK([for $compiler option to produce PIC],
  4419. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
  4420. [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  4421. _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
  4422. #
  4423. # Check to make sure the PIC flag actually works.
  4424. #
  4425. if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  4426. _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  4427. [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  4428. [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  4429. [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  4430. "" | " "*) ;;
  4431. *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  4432. esac],
  4433. [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  4434. _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  4435. fi
  4436. _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  4437. [Additional compiler flags for building library objects])
  4438. _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  4439. [How to pass a linker flag through the compiler])
  4440. #
  4441. # Check to make sure the static flag actually works.
  4442. #
  4443. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  4444. _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  4445. _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  4446. $lt_tmp_static_flag,
  4447. [],
  4448. [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  4449. _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  4450. [Compiler flag to prevent dynamic linking])
  4451. ])# _LT_COMPILER_PIC
  4452. # _LT_LINKER_SHLIBS([TAGNAME])
  4453. # ----------------------------
  4454. # See if the linker supports building shared libraries.
  4455. m4_defun([_LT_LINKER_SHLIBS],
  4456. [AC_REQUIRE([LT_PATH_LD])dnl
  4457. AC_REQUIRE([LT_PATH_NM])dnl
  4458. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  4459. m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  4460. m4_require([_LT_DECL_EGREP])dnl
  4461. m4_require([_LT_DECL_SED])dnl
  4462. m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  4463. m4_require([_LT_TAG_COMPILER])dnl
  4464. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4465. m4_if([$1], [CXX], [
  4466. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4467. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4468. case $host_os in
  4469. aix[[4-9]]*)
  4470. # If we're using GNU nm, then we don't want the "-C" option.
  4471. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4472. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4473. # weak defined symbols like other global defined symbols, whereas
  4474. # GNU nm marks them as "W".
  4475. # While the 'weak' keyword is ignored in the Export File, we need
  4476. # it in the Import File for the 'aix-soname' feature, so we have
  4477. # to replace the "-B" option with "-P" for AIX nm.
  4478. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4479. _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'
  4480. else
  4481. _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 == "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'
  4482. fi
  4483. ;;
  4484. pw32*)
  4485. _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
  4486. ;;
  4487. cygwin* | mingw* | cegcc*)
  4488. case $cc_basename in
  4489. cl*)
  4490. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  4491. ;;
  4492. *)
  4493. _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'
  4494. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4495. ;;
  4496. esac
  4497. ;;
  4498. linux* | k*bsd*-gnu | gnu*)
  4499. _LT_TAGVAR(link_all_deplibs, $1)=no
  4500. ;;
  4501. *)
  4502. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4503. ;;
  4504. esac
  4505. ], [
  4506. runpath_var=
  4507. _LT_TAGVAR(allow_undefined_flag, $1)=
  4508. _LT_TAGVAR(always_export_symbols, $1)=no
  4509. _LT_TAGVAR(archive_cmds, $1)=
  4510. _LT_TAGVAR(archive_expsym_cmds, $1)=
  4511. _LT_TAGVAR(compiler_needs_object, $1)=no
  4512. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4513. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4514. _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  4515. _LT_TAGVAR(hardcode_automatic, $1)=no
  4516. _LT_TAGVAR(hardcode_direct, $1)=no
  4517. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4518. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4519. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4520. _LT_TAGVAR(hardcode_minus_L, $1)=no
  4521. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4522. _LT_TAGVAR(inherit_rpath, $1)=no
  4523. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  4524. _LT_TAGVAR(module_cmds, $1)=
  4525. _LT_TAGVAR(module_expsym_cmds, $1)=
  4526. _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  4527. _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  4528. _LT_TAGVAR(thread_safe_flag_spec, $1)=
  4529. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4530. # include_expsyms should be a list of space-separated symbols to be *always*
  4531. # included in the symbol list
  4532. _LT_TAGVAR(include_expsyms, $1)=
  4533. # exclude_expsyms can be an extended regexp of symbols to exclude
  4534. # it will be wrapped by ' (' and ')$', so one must not match beginning or
  4535. # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
  4536. # as well as any symbol that contains 'd'.
  4537. _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  4538. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  4539. # platforms (ab)use it in PIC code, but their linkers get confused if
  4540. # the symbol is explicitly referenced. Since portable code cannot
  4541. # rely on this symbol name, it's probably fine to never include it in
  4542. # preloaded symbol tables.
  4543. # Exclude shared library initialization/finalization symbols.
  4544. dnl Note also adjust exclude_expsyms for C++ above.
  4545. extract_expsyms_cmds=
  4546. case $host_os in
  4547. cygwin* | mingw* | pw32* | cegcc*)
  4548. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  4549. # When not using gcc, we currently assume that we are using
  4550. # Microsoft Visual C++.
  4551. if test yes != "$GCC"; then
  4552. with_gnu_ld=no
  4553. fi
  4554. ;;
  4555. interix*)
  4556. # we just hope/assume this is gcc and not c89 (= MSVC++)
  4557. with_gnu_ld=yes
  4558. ;;
  4559. openbsd* | bitrig*)
  4560. with_gnu_ld=no
  4561. ;;
  4562. linux* | k*bsd*-gnu | gnu*)
  4563. _LT_TAGVAR(link_all_deplibs, $1)=no
  4564. ;;
  4565. esac
  4566. _LT_TAGVAR(ld_shlibs, $1)=yes
  4567. # On some targets, GNU ld is compatible enough with the native linker
  4568. # that we're better off using the native interface for both.
  4569. lt_use_gnu_ld_interface=no
  4570. if test yes = "$with_gnu_ld"; then
  4571. case $host_os in
  4572. aix*)
  4573. # The AIX port of GNU ld has always aspired to compatibility
  4574. # with the native linker. However, as the warning in the GNU ld
  4575. # block says, versions before 2.19.5* couldn't really create working
  4576. # shared libraries, regardless of the interface used.
  4577. case `$LD -v 2>&1` in
  4578. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  4579. *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
  4580. *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
  4581. *)
  4582. lt_use_gnu_ld_interface=yes
  4583. ;;
  4584. esac
  4585. ;;
  4586. *)
  4587. lt_use_gnu_ld_interface=yes
  4588. ;;
  4589. esac
  4590. fi
  4591. if test yes = "$lt_use_gnu_ld_interface"; then
  4592. # If archive_cmds runs LD, not CC, wlarc should be empty
  4593. wlarc='$wl'
  4594. # Set some defaults for GNU ld with shared library support. These
  4595. # are reset later if shared libraries are not supported. Putting them
  4596. # here allows them to be overridden if necessary.
  4597. runpath_var=LD_RUN_PATH
  4598. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4599. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  4600. # ancient GNU ld didn't support --whole-archive et. al.
  4601. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  4602. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  4603. else
  4604. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4605. fi
  4606. supports_anon_versioning=no
  4607. case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
  4608. *GNU\ gold*) supports_anon_versioning=yes ;;
  4609. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  4610. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  4611. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  4612. *\ 2.11.*) ;; # other 2.11 versions
  4613. *) supports_anon_versioning=yes ;;
  4614. esac
  4615. # See if GNU ld supports shared libraries.
  4616. case $host_os in
  4617. aix[[3-9]]*)
  4618. # On AIX/PPC, the GNU linker is very broken
  4619. if test ia64 != "$host_cpu"; then
  4620. _LT_TAGVAR(ld_shlibs, $1)=no
  4621. cat <<_LT_EOF 1>&2
  4622. *** Warning: the GNU linker, at least up to release 2.19, is reported
  4623. *** to be unable to reliably create shared libraries on AIX.
  4624. *** Therefore, libtool is disabling shared libraries support. If you
  4625. *** really care for shared libraries, you may want to install binutils
  4626. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  4627. *** You will then need to restart the configuration process.
  4628. _LT_EOF
  4629. fi
  4630. ;;
  4631. amigaos*)
  4632. case $host_cpu in
  4633. powerpc)
  4634. # see comment about AmigaOS4 .so support
  4635. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4636. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  4637. ;;
  4638. m68k)
  4639. _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)'
  4640. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4641. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4642. ;;
  4643. esac
  4644. ;;
  4645. beos*)
  4646. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4647. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4648. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  4649. # support --undefined. This deserves some investigation. FIXME
  4650. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4651. else
  4652. _LT_TAGVAR(ld_shlibs, $1)=no
  4653. fi
  4654. ;;
  4655. cygwin* | mingw* | pw32* | cegcc*)
  4656. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4657. # as there is no search path for DLLs.
  4658. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4659. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  4660. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4661. _LT_TAGVAR(always_export_symbols, $1)=no
  4662. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4663. _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'
  4664. _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
  4665. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  4666. _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'
  4667. # If the export-symbols file already is a .def file, use it as
  4668. # is; otherwise, prepend EXPORTS...
  4669. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  4670. cp $export_symbols $output_objdir/$soname.def;
  4671. else
  4672. echo EXPORTS > $output_objdir/$soname.def;
  4673. cat $export_symbols >> $output_objdir/$soname.def;
  4674. fi~
  4675. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  4676. else
  4677. _LT_TAGVAR(ld_shlibs, $1)=no
  4678. fi
  4679. ;;
  4680. haiku*)
  4681. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4682. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4683. ;;
  4684. os2*)
  4685. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4686. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4687. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4688. shrext_cmds=.dll
  4689. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4690. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4691. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4692. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4693. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  4694. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4695. emximp -o $lib $output_objdir/$libname.def'
  4696. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  4697. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  4698. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  4699. $ECHO EXPORTS >> $output_objdir/$libname.def~
  4700. prefix_cmds="$SED"~
  4701. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  4702. prefix_cmds="$prefix_cmds -e 1d";
  4703. fi~
  4704. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  4705. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  4706. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  4707. emximp -o $lib $output_objdir/$libname.def'
  4708. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  4709. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4710. ;;
  4711. interix[[3-9]]*)
  4712. _LT_TAGVAR(hardcode_direct, $1)=no
  4713. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4714. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  4715. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  4716. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  4717. # Instead, shared libraries are loaded at an image base (0x10000000 by
  4718. # default) and relocated if they conflict, which is a slow very memory
  4719. # consuming and fragmenting process. To avoid this, we pick a random,
  4720. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  4721. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  4722. _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'
  4723. _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'
  4724. ;;
  4725. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  4726. tmp_diet=no
  4727. if test linux-dietlibc = "$host_os"; then
  4728. case $cc_basename in
  4729. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  4730. esac
  4731. fi
  4732. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  4733. && test no = "$tmp_diet"
  4734. then
  4735. tmp_addflag=' $pic_flag'
  4736. tmp_sharedflag='-shared'
  4737. case $cc_basename,$host_cpu in
  4738. pgcc*) # Portland Group C compiler
  4739. _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'
  4740. tmp_addflag=' $pic_flag'
  4741. ;;
  4742. pgf77* | pgf90* | pgf95* | pgfortran*)
  4743. # Portland Group f77 and f90 compilers
  4744. _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'
  4745. tmp_addflag=' $pic_flag -Mnomain' ;;
  4746. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  4747. tmp_addflag=' -i_dynamic' ;;
  4748. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  4749. tmp_addflag=' -i_dynamic -nofor_main' ;;
  4750. ifc* | ifort*) # Intel Fortran compiler
  4751. tmp_addflag=' -nofor_main' ;;
  4752. lf95*) # Lahey Fortran 8.1
  4753. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4754. tmp_sharedflag='--shared' ;;
  4755. nagfor*) # NAGFOR 5.3
  4756. tmp_sharedflag='-Wl,-shared' ;;
  4757. xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  4758. tmp_sharedflag='-qmkshrobj'
  4759. tmp_addflag= ;;
  4760. nvcc*) # Cuda Compiler Driver 2.2
  4761. _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'
  4762. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4763. ;;
  4764. esac
  4765. case `$CC -V 2>&1 | sed 5q` in
  4766. *Sun\ C*) # Sun C 5.9
  4767. _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'
  4768. _LT_TAGVAR(compiler_needs_object, $1)=yes
  4769. tmp_sharedflag='-G' ;;
  4770. *Sun\ F*) # Sun Fortran 8.3
  4771. tmp_sharedflag='-G' ;;
  4772. esac
  4773. _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4774. if test yes = "$supports_anon_versioning"; then
  4775. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4776. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4777. echo "local: *; };" >> $output_objdir/$libname.ver~
  4778. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  4779. fi
  4780. case $cc_basename in
  4781. tcc*)
  4782. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
  4783. ;;
  4784. xlf* | bgf* | bgxlf* | mpixlf*)
  4785. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  4786. _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  4787. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4788. _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  4789. if test yes = "$supports_anon_versioning"; then
  4790. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  4791. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  4792. echo "local: *; };" >> $output_objdir/$libname.ver~
  4793. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  4794. fi
  4795. ;;
  4796. esac
  4797. else
  4798. _LT_TAGVAR(ld_shlibs, $1)=no
  4799. fi
  4800. ;;
  4801. netbsd* | netbsdelf*-gnu)
  4802. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4803. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  4804. wlarc=
  4805. else
  4806. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4807. _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'
  4808. fi
  4809. ;;
  4810. solaris*)
  4811. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  4812. _LT_TAGVAR(ld_shlibs, $1)=no
  4813. cat <<_LT_EOF 1>&2
  4814. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  4815. *** create shared libraries on Solaris systems. Therefore, libtool
  4816. *** is disabling shared libraries support. We urge you to upgrade GNU
  4817. *** binutils to release 2.9.1 or newer. Another option is to modify
  4818. *** your PATH or compiler configuration so that the native linker is
  4819. *** used, and then restart.
  4820. _LT_EOF
  4821. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4822. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4823. _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'
  4824. else
  4825. _LT_TAGVAR(ld_shlibs, $1)=no
  4826. fi
  4827. ;;
  4828. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  4829. case `$LD -v 2>&1` in
  4830. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  4831. _LT_TAGVAR(ld_shlibs, $1)=no
  4832. cat <<_LT_EOF 1>&2
  4833. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
  4834. *** reliably create shared libraries on SCO systems. Therefore, libtool
  4835. *** is disabling shared libraries support. We urge you to upgrade GNU
  4836. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  4837. *** your PATH or compiler configuration so that the native linker is
  4838. *** used, and then restart.
  4839. _LT_EOF
  4840. ;;
  4841. *)
  4842. # For security reasons, it is highly recommended that you always
  4843. # use absolute paths for naming shared libraries, and exclude the
  4844. # DT_RUNPATH tag from executables and libraries. But doing so
  4845. # requires that you compile everything twice, which is a pain.
  4846. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4847. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  4848. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4849. _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'
  4850. else
  4851. _LT_TAGVAR(ld_shlibs, $1)=no
  4852. fi
  4853. ;;
  4854. esac
  4855. ;;
  4856. sunos4*)
  4857. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4858. wlarc=
  4859. _LT_TAGVAR(hardcode_direct, $1)=yes
  4860. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  4861. ;;
  4862. *)
  4863. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  4864. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  4865. _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'
  4866. else
  4867. _LT_TAGVAR(ld_shlibs, $1)=no
  4868. fi
  4869. ;;
  4870. esac
  4871. if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
  4872. runpath_var=
  4873. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4874. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  4875. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  4876. fi
  4877. else
  4878. # PORTME fill in a description of your system's linker (not GNU ld)
  4879. case $host_os in
  4880. aix3*)
  4881. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  4882. _LT_TAGVAR(always_export_symbols, $1)=yes
  4883. _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'
  4884. # Note: this linker hardcodes the directories in LIBPATH if there
  4885. # are no directories specified by -L.
  4886. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4887. if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
  4888. # Neither direct hardcoding nor static linking is supported with a
  4889. # broken collect2.
  4890. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4891. fi
  4892. ;;
  4893. aix[[4-9]]*)
  4894. if test ia64 = "$host_cpu"; then
  4895. # On IA64, the linker does run time linking by default, so we don't
  4896. # have to do anything special.
  4897. aix_use_runtimelinking=no
  4898. exp_sym_flag='-Bexport'
  4899. no_entry_flag=
  4900. else
  4901. # If we're using GNU nm, then we don't want the "-C" option.
  4902. # -C means demangle to GNU nm, but means don't demangle to AIX nm.
  4903. # Without the "-l" option, or with the "-B" option, AIX nm treats
  4904. # weak defined symbols like other global defined symbols, whereas
  4905. # GNU nm marks them as "W".
  4906. # While the 'weak' keyword is ignored in the Export File, we need
  4907. # it in the Import File for the 'aix-soname' feature, so we have
  4908. # to replace the "-B" option with "-P" for AIX nm.
  4909. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  4910. _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'
  4911. else
  4912. _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 == "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'
  4913. fi
  4914. aix_use_runtimelinking=no
  4915. # Test if we are trying to use run time linking or normal
  4916. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  4917. # have runtime linking enabled, and use it for executables.
  4918. # For shared libraries, we enable/disable runtime linking
  4919. # depending on the kind of the shared library created -
  4920. # when "with_aix_soname,aix_use_runtimelinking" is:
  4921. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  4922. # "aix,yes" lib.so shared, rtl:yes, for executables
  4923. # lib.a static archive
  4924. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  4925. # lib.a(lib.so.V) shared, rtl:no, for executables
  4926. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  4927. # lib.a(lib.so.V) shared, rtl:no
  4928. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  4929. # lib.a static archive
  4930. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  4931. for ld_flag in $LDFLAGS; do
  4932. if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
  4933. aix_use_runtimelinking=yes
  4934. break
  4935. fi
  4936. done
  4937. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  4938. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  4939. # so we don't have lib.a shared libs to link our executables.
  4940. # We have to force runtime linking in this case.
  4941. aix_use_runtimelinking=yes
  4942. LDFLAGS="$LDFLAGS -Wl,-brtl"
  4943. fi
  4944. ;;
  4945. esac
  4946. exp_sym_flag='-bexport'
  4947. no_entry_flag='-bnoentry'
  4948. fi
  4949. # When large executables or shared objects are built, AIX ld can
  4950. # have problems creating the table of contents. If linking a library
  4951. # or program results in "error TOC overflow" add -mminimal-toc to
  4952. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4953. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4954. _LT_TAGVAR(archive_cmds, $1)=''
  4955. _LT_TAGVAR(hardcode_direct, $1)=yes
  4956. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  4957. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  4958. _LT_TAGVAR(link_all_deplibs, $1)=yes
  4959. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  4960. case $with_aix_soname,$aix_use_runtimelinking in
  4961. aix,*) ;; # traditional, no import file
  4962. svr4,* | *,yes) # use import file
  4963. # The Import File defines what to hardcode.
  4964. _LT_TAGVAR(hardcode_direct, $1)=no
  4965. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  4966. ;;
  4967. esac
  4968. if test yes = "$GCC"; then
  4969. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4970. # We only want to do this on AIX 4.2 and lower, the check
  4971. # below for broken collect2 doesn't work under 4.3+
  4972. collect2name=`$CC -print-prog-name=collect2`
  4973. if test -f "$collect2name" &&
  4974. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  4975. then
  4976. # We have reworked collect2
  4977. :
  4978. else
  4979. # We have old collect2
  4980. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  4981. # It fails to find uninstalled libraries when the uninstalled
  4982. # path is not listed in the libpath. Setting hardcode_minus_L
  4983. # to unsupported forces relinking
  4984. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  4985. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4986. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  4987. fi
  4988. ;;
  4989. esac
  4990. shared_flag='-shared'
  4991. if test yes = "$aix_use_runtimelinking"; then
  4992. shared_flag="$shared_flag "'$wl-G'
  4993. fi
  4994. # Need to ensure runtime linking is disabled for the traditional
  4995. # shared library, or the linker may eventually find shared libraries
  4996. # /with/ Import File - we do not want to mix them.
  4997. shared_flag_aix='-shared'
  4998. shared_flag_svr4='-shared $wl-G'
  4999. else
  5000. # not using gcc
  5001. if test ia64 = "$host_cpu"; then
  5002. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5003. # chokes on -Wl,-G. The following line is correct:
  5004. shared_flag='-G'
  5005. else
  5006. if test yes = "$aix_use_runtimelinking"; then
  5007. shared_flag='$wl-G'
  5008. else
  5009. shared_flag='$wl-bM:SRE'
  5010. fi
  5011. shared_flag_aix='$wl-bM:SRE'
  5012. shared_flag_svr4='$wl-G'
  5013. fi
  5014. fi
  5015. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5016. # It seems that -bexpall does not export symbols beginning with
  5017. # underscore (_), so it is better to generate a list of symbols to export.
  5018. _LT_TAGVAR(always_export_symbols, $1)=yes
  5019. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  5020. # Warning - without using the other runtime loading flags (-brtl),
  5021. # -berok will link without error, but may produce a broken library.
  5022. _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  5023. # Determine the default libpath from the value encoded in an
  5024. # empty executable.
  5025. _LT_SYS_MODULE_PATH_AIX([$1])
  5026. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5027. _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
  5028. else
  5029. if test ia64 = "$host_cpu"; then
  5030. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  5031. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5032. _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"
  5033. else
  5034. # Determine the default libpath from the value encoded in an
  5035. # empty executable.
  5036. _LT_SYS_MODULE_PATH_AIX([$1])
  5037. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  5038. # Warning - without using the other run time loading flags,
  5039. # -berok will link without error, but may produce a broken library.
  5040. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  5041. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  5042. if test yes = "$with_gnu_ld"; then
  5043. # We only use this code for GNU lds that support --whole-archive.
  5044. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  5045. else
  5046. # Exported symbols can be pulled into shared objects from archives
  5047. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  5048. fi
  5049. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5050. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  5051. # -brtl affects multiple linker settings, -berok does not and is overridden later
  5052. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  5053. if test svr4 != "$with_aix_soname"; then
  5054. # This is similar to how AIX traditionally builds its shared libraries.
  5055. _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'
  5056. fi
  5057. if test aix != "$with_aix_soname"; then
  5058. _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'
  5059. else
  5060. # used by -dlpreopen to get the symbols
  5061. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  5062. fi
  5063. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  5064. fi
  5065. fi
  5066. ;;
  5067. amigaos*)
  5068. case $host_cpu in
  5069. powerpc)
  5070. # see comment about AmigaOS4 .so support
  5071. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  5072. _LT_TAGVAR(archive_expsym_cmds, $1)=''
  5073. ;;
  5074. m68k)
  5075. _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)'
  5076. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5077. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5078. ;;
  5079. esac
  5080. ;;
  5081. bsdi[[45]]*)
  5082. _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  5083. ;;
  5084. cygwin* | mingw* | pw32* | cegcc*)
  5085. # When not using gcc, we currently assume that we are using
  5086. # Microsoft Visual C++.
  5087. # hardcode_libdir_flag_spec is actually meaningless, as there is
  5088. # no search path for DLLs.
  5089. case $cc_basename in
  5090. cl*)
  5091. # Native MSVC
  5092. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5093. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5094. _LT_TAGVAR(always_export_symbols, $1)=yes
  5095. _LT_TAGVAR(file_list_spec, $1)='@'
  5096. # Tell ltmain to make .lib files, not .a files.
  5097. libext=lib
  5098. # Tell ltmain to make .dll files, not .so files.
  5099. shrext_cmds=.dll
  5100. # FIXME: Setting linknames here is a bad hack.
  5101. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  5102. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  5103. cp "$export_symbols" "$output_objdir/$soname.def";
  5104. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  5105. else
  5106. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  5107. fi~
  5108. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  5109. linknames='
  5110. # The linker will not automatically build a static lib if we build a DLL.
  5111. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5112. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5113. _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  5114. _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'
  5115. # Don't use ranlib
  5116. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  5117. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  5118. lt_tool_outputfile="@TOOL_OUTPUT@"~
  5119. case $lt_outputfile in
  5120. *.exe|*.EXE) ;;
  5121. *)
  5122. lt_outputfile=$lt_outputfile.exe
  5123. lt_tool_outputfile=$lt_tool_outputfile.exe
  5124. ;;
  5125. esac~
  5126. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  5127. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  5128. $RM "$lt_outputfile.manifest";
  5129. fi'
  5130. ;;
  5131. *)
  5132. # Assume MSVC wrapper
  5133. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  5134. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5135. # Tell ltmain to make .lib files, not .a files.
  5136. libext=lib
  5137. # Tell ltmain to make .dll files, not .so files.
  5138. shrext_cmds=.dll
  5139. # FIXME: Setting linknames here is a bad hack.
  5140. _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  5141. # The linker will automatically build a .lib file if we build a DLL.
  5142. _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  5143. # FIXME: Should let the user specify the lib program.
  5144. _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  5145. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5146. ;;
  5147. esac
  5148. ;;
  5149. darwin* | rhapsody*)
  5150. _LT_DARWIN_LINKER_FEATURES($1)
  5151. ;;
  5152. dgux*)
  5153. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5154. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5155. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5156. ;;
  5157. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  5158. # support. Future versions do this automatically, but an explicit c++rt0.o
  5159. # does not break anything, and helps significantly (at the cost of a little
  5160. # extra space).
  5161. freebsd2.2*)
  5162. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  5163. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5164. _LT_TAGVAR(hardcode_direct, $1)=yes
  5165. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5166. ;;
  5167. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  5168. freebsd2.*)
  5169. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  5170. _LT_TAGVAR(hardcode_direct, $1)=yes
  5171. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5172. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5173. ;;
  5174. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  5175. freebsd* | dragonfly*)
  5176. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5177. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5178. _LT_TAGVAR(hardcode_direct, $1)=yes
  5179. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5180. ;;
  5181. hpux9*)
  5182. if test yes = "$GCC"; then
  5183. _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'
  5184. else
  5185. _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'
  5186. fi
  5187. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5188. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5189. _LT_TAGVAR(hardcode_direct, $1)=yes
  5190. # hardcode_minus_L: Not really in the search PATH,
  5191. # but as the default location of the library.
  5192. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5193. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5194. ;;
  5195. hpux10*)
  5196. if test yes,no = "$GCC,$with_gnu_ld"; then
  5197. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5198. else
  5199. _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  5200. fi
  5201. if test no = "$with_gnu_ld"; then
  5202. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5203. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5204. _LT_TAGVAR(hardcode_direct, $1)=yes
  5205. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5206. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5207. # hardcode_minus_L: Not really in the search PATH,
  5208. # but as the default location of the library.
  5209. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5210. fi
  5211. ;;
  5212. hpux11*)
  5213. if test yes,no = "$GCC,$with_gnu_ld"; then
  5214. case $host_cpu in
  5215. hppa*64*)
  5216. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5217. ;;
  5218. ia64*)
  5219. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5220. ;;
  5221. *)
  5222. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  5223. ;;
  5224. esac
  5225. else
  5226. case $host_cpu in
  5227. hppa*64*)
  5228. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5229. ;;
  5230. ia64*)
  5231. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  5232. ;;
  5233. *)
  5234. m4_if($1, [], [
  5235. # Older versions of the 11.00 compiler do not understand -b yet
  5236. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  5237. _LT_LINKER_OPTION([if $CC understands -b],
  5238. _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
  5239. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
  5240. [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
  5241. [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
  5242. ;;
  5243. esac
  5244. fi
  5245. if test no = "$with_gnu_ld"; then
  5246. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  5247. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5248. case $host_cpu in
  5249. hppa*64*|ia64*)
  5250. _LT_TAGVAR(hardcode_direct, $1)=no
  5251. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5252. ;;
  5253. *)
  5254. _LT_TAGVAR(hardcode_direct, $1)=yes
  5255. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5256. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5257. # hardcode_minus_L: Not really in the search PATH,
  5258. # but as the default location of the library.
  5259. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5260. ;;
  5261. esac
  5262. fi
  5263. ;;
  5264. irix5* | irix6* | nonstopux*)
  5265. if test yes = "$GCC"; then
  5266. _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'
  5267. # Try to use the -exported_symbol ld option, if it does not
  5268. # work, assume that -exports_file does not work either and
  5269. # implicitly export all symbols.
  5270. # This should be the same for all languages, so no per-tag cache variable.
  5271. AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
  5272. [lt_cv_irix_exported_symbol],
  5273. [save_LDFLAGS=$LDFLAGS
  5274. LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
  5275. AC_LINK_IFELSE(
  5276. [AC_LANG_SOURCE(
  5277. [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
  5278. [C++], [[int foo (void) { return 0; }]],
  5279. [Fortran 77], [[
  5280. subroutine foo
  5281. end]],
  5282. [Fortran], [[
  5283. subroutine foo
  5284. end]])])],
  5285. [lt_cv_irix_exported_symbol=yes],
  5286. [lt_cv_irix_exported_symbol=no])
  5287. LDFLAGS=$save_LDFLAGS])
  5288. if test yes = "$lt_cv_irix_exported_symbol"; then
  5289. _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'
  5290. fi
  5291. _LT_TAGVAR(link_all_deplibs, $1)=no
  5292. else
  5293. _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'
  5294. _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'
  5295. fi
  5296. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5297. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5298. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5299. _LT_TAGVAR(inherit_rpath, $1)=yes
  5300. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5301. ;;
  5302. linux*)
  5303. case $cc_basename in
  5304. tcc*)
  5305. # Fabrice Bellard et al's Tiny C Compiler
  5306. _LT_TAGVAR(ld_shlibs, $1)=yes
  5307. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5308. ;;
  5309. esac
  5310. ;;
  5311. netbsd* | netbsdelf*-gnu)
  5312. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  5313. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  5314. else
  5315. _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  5316. fi
  5317. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5318. _LT_TAGVAR(hardcode_direct, $1)=yes
  5319. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5320. ;;
  5321. newsos6)
  5322. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5323. _LT_TAGVAR(hardcode_direct, $1)=yes
  5324. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5325. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5326. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5327. ;;
  5328. *nto* | *qnx*)
  5329. ;;
  5330. openbsd* | bitrig*)
  5331. if test -f /usr/libexec/ld.so; then
  5332. _LT_TAGVAR(hardcode_direct, $1)=yes
  5333. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5334. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5335. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
  5336. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5337. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  5338. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5339. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  5340. else
  5341. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  5342. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  5343. fi
  5344. else
  5345. _LT_TAGVAR(ld_shlibs, $1)=no
  5346. fi
  5347. ;;
  5348. os2*)
  5349. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5350. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5351. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  5352. shrext_cmds=.dll
  5353. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5354. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5355. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5356. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5357. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  5358. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5359. emximp -o $lib $output_objdir/$libname.def'
  5360. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  5361. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  5362. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  5363. $ECHO EXPORTS >> $output_objdir/$libname.def~
  5364. prefix_cmds="$SED"~
  5365. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  5366. prefix_cmds="$prefix_cmds -e 1d";
  5367. fi~
  5368. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  5369. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  5370. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  5371. emximp -o $lib $output_objdir/$libname.def'
  5372. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  5373. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5374. ;;
  5375. osf3*)
  5376. if test yes = "$GCC"; then
  5377. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5378. _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'
  5379. else
  5380. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5381. _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'
  5382. fi
  5383. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5384. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5385. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5386. ;;
  5387. osf4* | osf5*) # as osf3* with the addition of -msym flag
  5388. if test yes = "$GCC"; then
  5389. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  5390. _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'
  5391. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5392. else
  5393. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5394. _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'
  5395. _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~
  5396. $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'
  5397. # Both c and cxx compiler support -rpath directly
  5398. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5399. fi
  5400. _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  5401. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  5402. ;;
  5403. solaris*)
  5404. _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  5405. if test yes = "$GCC"; then
  5406. wlarc='$wl'
  5407. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
  5408. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5409. $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'
  5410. else
  5411. case `$CC -V 2>&1` in
  5412. *"Compilers 5.0"*)
  5413. wlarc=''
  5414. _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5415. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5416. $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  5417. ;;
  5418. *)
  5419. wlarc='$wl'
  5420. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5421. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  5422. $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  5423. ;;
  5424. esac
  5425. fi
  5426. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5427. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5428. case $host_os in
  5429. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  5430. *)
  5431. # The compiler driver will combine and reorder linker options,
  5432. # but understands '-z linker_flag'. GCC discards it without '$wl',
  5433. # but is careful enough not to reorder.
  5434. # Supported since Solaris 2.6 (maybe 2.5.1?)
  5435. if test yes = "$GCC"; then
  5436. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  5437. else
  5438. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  5439. fi
  5440. ;;
  5441. esac
  5442. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5443. ;;
  5444. sunos4*)
  5445. if test sequent = "$host_vendor"; then
  5446. # Use $CC to link under sequent, because it throws in some extra .o
  5447. # files that make .init and .fini sections work.
  5448. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  5449. else
  5450. _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  5451. fi
  5452. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5453. _LT_TAGVAR(hardcode_direct, $1)=yes
  5454. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5455. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5456. ;;
  5457. sysv4)
  5458. case $host_vendor in
  5459. sni)
  5460. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5461. _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  5462. ;;
  5463. siemens)
  5464. ## LD is ld it makes a PLAMLIB
  5465. ## CC just makes a GrossModule.
  5466. _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  5467. _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  5468. _LT_TAGVAR(hardcode_direct, $1)=no
  5469. ;;
  5470. motorola)
  5471. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5472. _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  5473. ;;
  5474. esac
  5475. runpath_var='LD_RUN_PATH'
  5476. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5477. ;;
  5478. sysv4.3*)
  5479. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5480. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5481. _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  5482. ;;
  5483. sysv4*MP*)
  5484. if test -d /usr/nec; then
  5485. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5486. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5487. runpath_var=LD_RUN_PATH
  5488. hardcode_runpath_var=yes
  5489. _LT_TAGVAR(ld_shlibs, $1)=yes
  5490. fi
  5491. ;;
  5492. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  5493. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5494. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5495. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5496. runpath_var='LD_RUN_PATH'
  5497. if test yes = "$GCC"; then
  5498. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5499. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5500. else
  5501. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5502. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5503. fi
  5504. ;;
  5505. sysv5* | sco3.2v5* | sco5v6*)
  5506. # Note: We CANNOT use -z defs as we might desire, because we do not
  5507. # link with -lc, and that would cause any symbols used from libc to
  5508. # always be unresolved, which means just about no library would
  5509. # ever link correctly. If we're not using GNU ld we use -z text
  5510. # though, which does catch some bad symbols but isn't as heavy-handed
  5511. # as -z defs.
  5512. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  5513. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  5514. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5515. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5516. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  5517. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5518. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5519. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  5520. runpath_var='LD_RUN_PATH'
  5521. if test yes = "$GCC"; then
  5522. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5523. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5524. else
  5525. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5526. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  5527. fi
  5528. ;;
  5529. uts4*)
  5530. _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  5531. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5532. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  5533. ;;
  5534. *)
  5535. _LT_TAGVAR(ld_shlibs, $1)=no
  5536. ;;
  5537. esac
  5538. if test sni = "$host_vendor"; then
  5539. case $host in
  5540. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5541. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
  5542. ;;
  5543. esac
  5544. fi
  5545. fi
  5546. ])
  5547. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  5548. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  5549. _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  5550. _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  5551. _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  5552. _LT_DECL([], [extract_expsyms_cmds], [2],
  5553. [The commands to extract the exported symbol list from a shared archive])
  5554. #
  5555. # Do we need to explicitly link libc?
  5556. #
  5557. case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  5558. x|xyes)
  5559. # Assume -lc should be added
  5560. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5561. if test yes,yes = "$GCC,$enable_shared"; then
  5562. case $_LT_TAGVAR(archive_cmds, $1) in
  5563. *'~'*)
  5564. # FIXME: we may have to deal with multi-command sequences.
  5565. ;;
  5566. '$CC '*)
  5567. # Test whether the compiler implicitly links with -lc since on some
  5568. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  5569. # to ld, don't add -lc before -lgcc.
  5570. AC_CACHE_CHECK([whether -lc should be explicitly linked in],
  5571. [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
  5572. [$RM conftest*
  5573. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  5574. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  5575. soname=conftest
  5576. lib=conftest
  5577. libobjs=conftest.$ac_objext
  5578. deplibs=
  5579. wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  5580. pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  5581. compiler_flags=-v
  5582. linker_flags=-v
  5583. verstring=
  5584. output_objdir=.
  5585. libname=conftest
  5586. lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  5587. _LT_TAGVAR(allow_undefined_flag, $1)=
  5588. if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  5589. then
  5590. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5591. else
  5592. lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  5593. fi
  5594. _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  5595. else
  5596. cat conftest.err 1>&5
  5597. fi
  5598. $RM conftest*
  5599. ])
  5600. _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
  5601. ;;
  5602. esac
  5603. fi
  5604. ;;
  5605. esac
  5606. _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  5607. [Whether or not to add -lc for building shared libraries])
  5608. _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  5609. [enable_shared_with_static_runtimes], [0],
  5610. [Whether or not to disallow shared libs when runtime libs are static])
  5611. _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  5612. [Compiler flag to allow reflexive dlopens])
  5613. _LT_TAGDECL([], [whole_archive_flag_spec], [1],
  5614. [Compiler flag to generate shared objects directly from archives])
  5615. _LT_TAGDECL([], [compiler_needs_object], [1],
  5616. [Whether the compiler copes with passing no objects directly])
  5617. _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  5618. [Create an old-style archive from a shared archive])
  5619. _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  5620. [Create a temporary old-style archive to link instead of a shared archive])
  5621. _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  5622. _LT_TAGDECL([], [archive_expsym_cmds], [2])
  5623. _LT_TAGDECL([], [module_cmds], [2],
  5624. [Commands used to build a loadable module if different from building
  5625. a shared archive.])
  5626. _LT_TAGDECL([], [module_expsym_cmds], [2])
  5627. _LT_TAGDECL([], [with_gnu_ld], [1],
  5628. [Whether we are building with GNU ld or not])
  5629. _LT_TAGDECL([], [allow_undefined_flag], [1],
  5630. [Flag that allows shared libraries with undefined symbols to be built])
  5631. _LT_TAGDECL([], [no_undefined_flag], [1],
  5632. [Flag that enforces no undefined symbols])
  5633. _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  5634. [Flag to hardcode $libdir into a binary during linking.
  5635. This must work even if $libdir does not exist])
  5636. _LT_TAGDECL([], [hardcode_libdir_separator], [1],
  5637. [Whether we need a single "-rpath" flag with a separated argument])
  5638. _LT_TAGDECL([], [hardcode_direct], [0],
  5639. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5640. DIR into the resulting binary])
  5641. _LT_TAGDECL([], [hardcode_direct_absolute], [0],
  5642. [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
  5643. DIR into the resulting binary and the resulting library dependency is
  5644. "absolute", i.e impossible to change by setting $shlibpath_var if the
  5645. library is relocated])
  5646. _LT_TAGDECL([], [hardcode_minus_L], [0],
  5647. [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  5648. into the resulting binary])
  5649. _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  5650. [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  5651. into the resulting binary])
  5652. _LT_TAGDECL([], [hardcode_automatic], [0],
  5653. [Set to "yes" if building a shared library automatically hardcodes DIR
  5654. into the library and all subsequent libraries and executables linked
  5655. against it])
  5656. _LT_TAGDECL([], [inherit_rpath], [0],
  5657. [Set to yes if linker adds runtime paths of dependent libraries
  5658. to runtime path list])
  5659. _LT_TAGDECL([], [link_all_deplibs], [0],
  5660. [Whether libtool must link a program against all its dependency libraries])
  5661. _LT_TAGDECL([], [always_export_symbols], [0],
  5662. [Set to "yes" if exported symbols are required])
  5663. _LT_TAGDECL([], [export_symbols_cmds], [2],
  5664. [The commands to list exported symbols])
  5665. _LT_TAGDECL([], [exclude_expsyms], [1],
  5666. [Symbols that should not be listed in the preloaded symbols])
  5667. _LT_TAGDECL([], [include_expsyms], [1],
  5668. [Symbols that must always be exported])
  5669. _LT_TAGDECL([], [prelink_cmds], [2],
  5670. [Commands necessary for linking programs (against libraries) with templates])
  5671. _LT_TAGDECL([], [postlink_cmds], [2],
  5672. [Commands necessary for finishing linking programs])
  5673. _LT_TAGDECL([], [file_list_spec], [1],
  5674. [Specify filename containing input files])
  5675. dnl FIXME: Not yet implemented
  5676. dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  5677. dnl [Compiler flag to generate thread safe objects])
  5678. ])# _LT_LINKER_SHLIBS
  5679. # _LT_LANG_C_CONFIG([TAG])
  5680. # ------------------------
  5681. # Ensure that the configuration variables for a C compiler are suitably
  5682. # defined. These variables are subsequently used by _LT_CONFIG to write
  5683. # the compiler configuration to 'libtool'.
  5684. m4_defun([_LT_LANG_C_CONFIG],
  5685. [m4_require([_LT_DECL_EGREP])dnl
  5686. lt_save_CC=$CC
  5687. AC_LANG_PUSH(C)
  5688. # Source file extension for C test sources.
  5689. ac_ext=c
  5690. # Object file extension for compiled C test sources.
  5691. objext=o
  5692. _LT_TAGVAR(objext, $1)=$objext
  5693. # Code to be used in simple compile tests
  5694. lt_simple_compile_test_code="int some_variable = 0;"
  5695. # Code to be used in simple link tests
  5696. lt_simple_link_test_code='int main(){return(0);}'
  5697. _LT_TAG_COMPILER
  5698. # Save the default compiler, since it gets overwritten when the other
  5699. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  5700. compiler_DEFAULT=$CC
  5701. # save warnings/boilerplate of simple test code
  5702. _LT_COMPILER_BOILERPLATE
  5703. _LT_LINKER_BOILERPLATE
  5704. if test -n "$compiler"; then
  5705. _LT_COMPILER_NO_RTTI($1)
  5706. _LT_COMPILER_PIC($1)
  5707. _LT_COMPILER_C_O($1)
  5708. _LT_COMPILER_FILE_LOCKS($1)
  5709. _LT_LINKER_SHLIBS($1)
  5710. _LT_SYS_DYNAMIC_LINKER($1)
  5711. _LT_LINKER_HARDCODE_LIBPATH($1)
  5712. LT_SYS_DLOPEN_SELF
  5713. _LT_CMD_STRIPLIB
  5714. # Report what library types will actually be built
  5715. AC_MSG_CHECKING([if libtool supports shared libraries])
  5716. AC_MSG_RESULT([$can_build_shared])
  5717. AC_MSG_CHECKING([whether to build shared libraries])
  5718. test no = "$can_build_shared" && enable_shared=no
  5719. # On AIX, shared libraries and static libraries use the same namespace, and
  5720. # are all built from PIC.
  5721. case $host_os in
  5722. aix3*)
  5723. test yes = "$enable_shared" && enable_static=no
  5724. if test -n "$RANLIB"; then
  5725. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  5726. postinstall_cmds='$RANLIB $lib'
  5727. fi
  5728. ;;
  5729. aix[[4-9]]*)
  5730. if test ia64 != "$host_cpu"; then
  5731. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  5732. yes,aix,yes) ;; # shared object as lib.so file only
  5733. yes,svr4,*) ;; # shared object as lib.so archive member only
  5734. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  5735. esac
  5736. fi
  5737. ;;
  5738. esac
  5739. AC_MSG_RESULT([$enable_shared])
  5740. AC_MSG_CHECKING([whether to build static libraries])
  5741. # Make sure either enable_shared or enable_static is yes.
  5742. test yes = "$enable_shared" || enable_static=yes
  5743. AC_MSG_RESULT([$enable_static])
  5744. _LT_CONFIG($1)
  5745. fi
  5746. AC_LANG_POP
  5747. CC=$lt_save_CC
  5748. ])# _LT_LANG_C_CONFIG
  5749. # _LT_LANG_CXX_CONFIG([TAG])
  5750. # --------------------------
  5751. # Ensure that the configuration variables for a C++ compiler are suitably
  5752. # defined. These variables are subsequently used by _LT_CONFIG to write
  5753. # the compiler configuration to 'libtool'.
  5754. m4_defun([_LT_LANG_CXX_CONFIG],
  5755. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  5756. m4_require([_LT_DECL_EGREP])dnl
  5757. m4_require([_LT_PATH_MANIFEST_TOOL])dnl
  5758. if test -n "$CXX" && ( test no != "$CXX" &&
  5759. ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
  5760. (test g++ != "$CXX"))); then
  5761. AC_PROG_CXXCPP
  5762. else
  5763. _lt_caught_CXX_error=yes
  5764. fi
  5765. AC_LANG_PUSH(C++)
  5766. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  5767. _LT_TAGVAR(allow_undefined_flag, $1)=
  5768. _LT_TAGVAR(always_export_symbols, $1)=no
  5769. _LT_TAGVAR(archive_expsym_cmds, $1)=
  5770. _LT_TAGVAR(compiler_needs_object, $1)=no
  5771. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  5772. _LT_TAGVAR(hardcode_direct, $1)=no
  5773. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5774. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5775. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5776. _LT_TAGVAR(hardcode_minus_L, $1)=no
  5777. _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5778. _LT_TAGVAR(hardcode_automatic, $1)=no
  5779. _LT_TAGVAR(inherit_rpath, $1)=no
  5780. _LT_TAGVAR(module_cmds, $1)=
  5781. _LT_TAGVAR(module_expsym_cmds, $1)=
  5782. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  5783. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5784. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  5785. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  5786. _LT_TAGVAR(no_undefined_flag, $1)=
  5787. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5788. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5789. # Source file extension for C++ test sources.
  5790. ac_ext=cpp
  5791. # Object file extension for compiled C++ test sources.
  5792. objext=o
  5793. _LT_TAGVAR(objext, $1)=$objext
  5794. # No sense in running all these tests if we already determined that
  5795. # the CXX compiler isn't working. Some variables (like enable_shared)
  5796. # are currently assumed to apply to all compilers on this platform,
  5797. # and will be corrupted by setting them based on a non-working compiler.
  5798. if test yes != "$_lt_caught_CXX_error"; then
  5799. # Code to be used in simple compile tests
  5800. lt_simple_compile_test_code="int some_variable = 0;"
  5801. # Code to be used in simple link tests
  5802. lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  5803. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5804. _LT_TAG_COMPILER
  5805. # save warnings/boilerplate of simple test code
  5806. _LT_COMPILER_BOILERPLATE
  5807. _LT_LINKER_BOILERPLATE
  5808. # Allow CC to be a program name with arguments.
  5809. lt_save_CC=$CC
  5810. lt_save_CFLAGS=$CFLAGS
  5811. lt_save_LD=$LD
  5812. lt_save_GCC=$GCC
  5813. GCC=$GXX
  5814. lt_save_with_gnu_ld=$with_gnu_ld
  5815. lt_save_path_LD=$lt_cv_path_LD
  5816. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5817. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5818. else
  5819. $as_unset lt_cv_prog_gnu_ld
  5820. fi
  5821. if test -n "${lt_cv_path_LDCXX+set}"; then
  5822. lt_cv_path_LD=$lt_cv_path_LDCXX
  5823. else
  5824. $as_unset lt_cv_path_LD
  5825. fi
  5826. test -z "${LDCXX+set}" || LD=$LDCXX
  5827. CC=${CXX-"c++"}
  5828. CFLAGS=$CXXFLAGS
  5829. compiler=$CC
  5830. _LT_TAGVAR(compiler, $1)=$CC
  5831. _LT_CC_BASENAME([$compiler])
  5832. if test -n "$compiler"; then
  5833. # We don't want -fno-exception when compiling C++ code, so set the
  5834. # no_builtin_flag separately
  5835. if test yes = "$GXX"; then
  5836. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5837. else
  5838. _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5839. fi
  5840. if test yes = "$GXX"; then
  5841. # Set up default GNU C++ configuration
  5842. LT_PATH_LD
  5843. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5844. # archiving commands below assume that GNU ld is being used.
  5845. if test yes = "$with_gnu_ld"; then
  5846. _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  5847. _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'
  5848. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  5849. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  5850. # If archive_cmds runs LD, not CC, wlarc should be empty
  5851. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5852. # investigate it a little bit more. (MM)
  5853. wlarc='$wl'
  5854. # ancient GNU ld didn't support --whole-archive et. al.
  5855. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  5856. $GREP 'no-whole-archive' > /dev/null; then
  5857. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  5858. else
  5859. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  5860. fi
  5861. else
  5862. with_gnu_ld=no
  5863. wlarc=
  5864. # A generic and very simple default shared library creation
  5865. # command for GNU C++ for the case where it uses the native
  5866. # linker, instead of GNU ld. If possible, this setting should
  5867. # overridden to take advantage of the native linker features on
  5868. # the platform it is being used on.
  5869. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5870. fi
  5871. # Commands to make compiler produce verbose output that lists
  5872. # what "hidden" libraries, object files and flags are used when
  5873. # linking a shared library.
  5874. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  5875. else
  5876. GXX=no
  5877. with_gnu_ld=no
  5878. wlarc=
  5879. fi
  5880. # PORTME: fill in a description of your system's C++ link characteristics
  5881. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5882. _LT_TAGVAR(ld_shlibs, $1)=yes
  5883. case $host_os in
  5884. aix3*)
  5885. # FIXME: insert proper C++ library support
  5886. _LT_TAGVAR(ld_shlibs, $1)=no
  5887. ;;
  5888. aix[[4-9]]*)
  5889. if test ia64 = "$host_cpu"; then
  5890. # On IA64, the linker does run time linking by default, so we don't
  5891. # have to do anything special.
  5892. aix_use_runtimelinking=no
  5893. exp_sym_flag='-Bexport'
  5894. no_entry_flag=
  5895. else
  5896. aix_use_runtimelinking=no
  5897. # Test if we are trying to use run time linking or normal
  5898. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5899. # have runtime linking enabled, and use it for executables.
  5900. # For shared libraries, we enable/disable runtime linking
  5901. # depending on the kind of the shared library created -
  5902. # when "with_aix_soname,aix_use_runtimelinking" is:
  5903. # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
  5904. # "aix,yes" lib.so shared, rtl:yes, for executables
  5905. # lib.a static archive
  5906. # "both,no" lib.so.V(shr.o) shared, rtl:yes
  5907. # lib.a(lib.so.V) shared, rtl:no, for executables
  5908. # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
  5909. # lib.a(lib.so.V) shared, rtl:no
  5910. # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
  5911. # lib.a static archive
  5912. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  5913. for ld_flag in $LDFLAGS; do
  5914. case $ld_flag in
  5915. *-brtl*)
  5916. aix_use_runtimelinking=yes
  5917. break
  5918. ;;
  5919. esac
  5920. done
  5921. if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
  5922. # With aix-soname=svr4, we create the lib.so.V shared archives only,
  5923. # so we don't have lib.a shared libs to link our executables.
  5924. # We have to force runtime linking in this case.
  5925. aix_use_runtimelinking=yes
  5926. LDFLAGS="$LDFLAGS -Wl,-brtl"
  5927. fi
  5928. ;;
  5929. esac
  5930. exp_sym_flag='-bexport'
  5931. no_entry_flag='-bnoentry'
  5932. fi
  5933. # When large executables or shared objects are built, AIX ld can
  5934. # have problems creating the table of contents. If linking a library
  5935. # or program results in "error TOC overflow" add -mminimal-toc to
  5936. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5937. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5938. _LT_TAGVAR(archive_cmds, $1)=''
  5939. _LT_TAGVAR(hardcode_direct, $1)=yes
  5940. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  5941. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  5942. _LT_TAGVAR(link_all_deplibs, $1)=yes
  5943. _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
  5944. case $with_aix_soname,$aix_use_runtimelinking in
  5945. aix,*) ;; # no import file
  5946. svr4,* | *,yes) # use import file
  5947. # The Import File defines what to hardcode.
  5948. _LT_TAGVAR(hardcode_direct, $1)=no
  5949. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  5950. ;;
  5951. esac
  5952. if test yes = "$GXX"; then
  5953. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5954. # We only want to do this on AIX 4.2 and lower, the check
  5955. # below for broken collect2 doesn't work under 4.3+
  5956. collect2name=`$CC -print-prog-name=collect2`
  5957. if test -f "$collect2name" &&
  5958. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  5959. then
  5960. # We have reworked collect2
  5961. :
  5962. else
  5963. # We have old collect2
  5964. _LT_TAGVAR(hardcode_direct, $1)=unsupported
  5965. # It fails to find uninstalled libraries when the uninstalled
  5966. # path is not listed in the libpath. Setting hardcode_minus_L
  5967. # to unsupported forces relinking
  5968. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  5969. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5970. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  5971. fi
  5972. esac
  5973. shared_flag='-shared'
  5974. if test yes = "$aix_use_runtimelinking"; then
  5975. shared_flag=$shared_flag' $wl-G'
  5976. fi
  5977. # Need to ensure runtime linking is disabled for the traditional
  5978. # shared library, or the linker may eventually find shared libraries
  5979. # /with/ Import File - we do not want to mix them.
  5980. shared_flag_aix='-shared'
  5981. shared_flag_svr4='-shared $wl-G'
  5982. else
  5983. # not using gcc
  5984. if test ia64 = "$host_cpu"; then
  5985. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5986. # chokes on -Wl,-G. The following line is correct:
  5987. shared_flag='-G'
  5988. else
  5989. if test yes = "$aix_use_runtimelinking"; then
  5990. shared_flag='$wl-G'
  5991. else
  5992. shared_flag='$wl-bM:SRE'
  5993. fi
  5994. shared_flag_aix='$wl-bM:SRE'
  5995. shared_flag_svr4='$wl-G'
  5996. fi
  5997. fi
  5998. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
  5999. # It seems that -bexpall does not export symbols beginning with
  6000. # underscore (_), so it is better to generate a list of symbols to
  6001. # export.
  6002. _LT_TAGVAR(always_export_symbols, $1)=yes
  6003. if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
  6004. # Warning - without using the other runtime loading flags (-brtl),
  6005. # -berok will link without error, but may produce a broken library.
  6006. # The "-G" linker flag allows undefined symbols.
  6007. _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
  6008. # Determine the default libpath from the value encoded in an empty
  6009. # executable.
  6010. _LT_SYS_MODULE_PATH_AIX([$1])
  6011. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6012. _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
  6013. else
  6014. if test ia64 = "$host_cpu"; then
  6015. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
  6016. _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6017. _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"
  6018. else
  6019. # Determine the default libpath from the value encoded in an
  6020. # empty executable.
  6021. _LT_SYS_MODULE_PATH_AIX([$1])
  6022. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
  6023. # Warning - without using the other run time loading flags,
  6024. # -berok will link without error, but may produce a broken library.
  6025. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
  6026. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
  6027. if test yes = "$with_gnu_ld"; then
  6028. # We only use this code for GNU lds that support --whole-archive.
  6029. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6030. else
  6031. # Exported symbols can be pulled into shared objects from archives
  6032. _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6033. fi
  6034. _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6035. _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
  6036. # -brtl affects multiple linker settings, -berok does not and is overridden later
  6037. compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
  6038. if test svr4 != "$with_aix_soname"; then
  6039. # This is similar to how AIX traditionally builds its shared
  6040. # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
  6041. _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'
  6042. fi
  6043. if test aix != "$with_aix_soname"; then
  6044. _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'
  6045. else
  6046. # used by -dlpreopen to get the symbols
  6047. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
  6048. fi
  6049. _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
  6050. fi
  6051. fi
  6052. ;;
  6053. beos*)
  6054. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6055. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6056. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6057. # support --undefined. This deserves some investigation. FIXME
  6058. _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6059. else
  6060. _LT_TAGVAR(ld_shlibs, $1)=no
  6061. fi
  6062. ;;
  6063. chorus*)
  6064. case $cc_basename in
  6065. *)
  6066. # FIXME: insert proper C++ library support
  6067. _LT_TAGVAR(ld_shlibs, $1)=no
  6068. ;;
  6069. esac
  6070. ;;
  6071. cygwin* | mingw* | pw32* | cegcc*)
  6072. case $GXX,$cc_basename in
  6073. ,cl* | no,cl*)
  6074. # Native MSVC
  6075. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6076. # no search path for DLLs.
  6077. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6078. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6079. _LT_TAGVAR(always_export_symbols, $1)=yes
  6080. _LT_TAGVAR(file_list_spec, $1)='@'
  6081. # Tell ltmain to make .lib files, not .a files.
  6082. libext=lib
  6083. # Tell ltmain to make .dll files, not .so files.
  6084. shrext_cmds=.dll
  6085. # FIXME: Setting linknames here is a bad hack.
  6086. _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
  6087. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6088. cp "$export_symbols" "$output_objdir/$soname.def";
  6089. echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
  6090. else
  6091. $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
  6092. fi~
  6093. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  6094. linknames='
  6095. # The linker will not automatically build a static lib if we build a DLL.
  6096. # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6097. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6098. # Don't use ranlib
  6099. _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
  6100. _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
  6101. lt_tool_outputfile="@TOOL_OUTPUT@"~
  6102. case $lt_outputfile in
  6103. *.exe|*.EXE) ;;
  6104. *)
  6105. lt_outputfile=$lt_outputfile.exe
  6106. lt_tool_outputfile=$lt_tool_outputfile.exe
  6107. ;;
  6108. esac~
  6109. func_to_tool_file "$lt_outputfile"~
  6110. if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
  6111. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  6112. $RM "$lt_outputfile.manifest";
  6113. fi'
  6114. ;;
  6115. *)
  6116. # g++
  6117. # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6118. # as there is no search path for DLLs.
  6119. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6120. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
  6121. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6122. _LT_TAGVAR(always_export_symbols, $1)=no
  6123. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6124. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6125. _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'
  6126. # If the export-symbols file already is a .def file, use it as
  6127. # is; otherwise, prepend EXPORTS...
  6128. _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
  6129. cp $export_symbols $output_objdir/$soname.def;
  6130. else
  6131. echo EXPORTS > $output_objdir/$soname.def;
  6132. cat $export_symbols >> $output_objdir/$soname.def;
  6133. fi~
  6134. $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'
  6135. else
  6136. _LT_TAGVAR(ld_shlibs, $1)=no
  6137. fi
  6138. ;;
  6139. esac
  6140. ;;
  6141. darwin* | rhapsody*)
  6142. _LT_DARWIN_LINKER_FEATURES($1)
  6143. ;;
  6144. os2*)
  6145. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6146. _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6147. _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6148. shrext_cmds=.dll
  6149. _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6150. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6151. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6152. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6153. emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
  6154. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6155. emximp -o $lib $output_objdir/$libname.def'
  6156. _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
  6157. $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
  6158. $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
  6159. $ECHO EXPORTS >> $output_objdir/$libname.def~
  6160. prefix_cmds="$SED"~
  6161. if test EXPORTS = "`$SED 1q $export_symbols`"; then
  6162. prefix_cmds="$prefix_cmds -e 1d";
  6163. fi~
  6164. prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
  6165. cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
  6166. $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
  6167. emximp -o $lib $output_objdir/$libname.def'
  6168. _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
  6169. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6170. ;;
  6171. dgux*)
  6172. case $cc_basename in
  6173. ec++*)
  6174. # FIXME: insert proper C++ library support
  6175. _LT_TAGVAR(ld_shlibs, $1)=no
  6176. ;;
  6177. ghcx*)
  6178. # Green Hills C++ Compiler
  6179. # FIXME: insert proper C++ library support
  6180. _LT_TAGVAR(ld_shlibs, $1)=no
  6181. ;;
  6182. *)
  6183. # FIXME: insert proper C++ library support
  6184. _LT_TAGVAR(ld_shlibs, $1)=no
  6185. ;;
  6186. esac
  6187. ;;
  6188. freebsd2.*)
  6189. # C++ shared libraries reported to be fairly broken before
  6190. # switch to ELF
  6191. _LT_TAGVAR(ld_shlibs, $1)=no
  6192. ;;
  6193. freebsd-elf*)
  6194. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6195. ;;
  6196. freebsd* | dragonfly*)
  6197. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  6198. # conventions
  6199. _LT_TAGVAR(ld_shlibs, $1)=yes
  6200. ;;
  6201. haiku*)
  6202. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6203. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6204. ;;
  6205. hpux9*)
  6206. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6207. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6208. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6209. _LT_TAGVAR(hardcode_direct, $1)=yes
  6210. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6211. # but as the default
  6212. # location of the library.
  6213. case $cc_basename in
  6214. CC*)
  6215. # FIXME: insert proper C++ library support
  6216. _LT_TAGVAR(ld_shlibs, $1)=no
  6217. ;;
  6218. aCC*)
  6219. _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'
  6220. # Commands to make compiler produce verbose output that lists
  6221. # what "hidden" libraries, object files and flags are used when
  6222. # linking a shared library.
  6223. #
  6224. # There doesn't appear to be a way to prevent this compiler from
  6225. # explicitly linking system object files so we need to strip them
  6226. # from the output so that they don't get included in the library
  6227. # dependencies.
  6228. 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"'
  6229. ;;
  6230. *)
  6231. if test yes = "$GXX"; then
  6232. _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'
  6233. else
  6234. # FIXME: insert proper C++ library support
  6235. _LT_TAGVAR(ld_shlibs, $1)=no
  6236. fi
  6237. ;;
  6238. esac
  6239. ;;
  6240. hpux10*|hpux11*)
  6241. if test no = "$with_gnu_ld"; then
  6242. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
  6243. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6244. case $host_cpu in
  6245. hppa*64*|ia64*)
  6246. ;;
  6247. *)
  6248. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6249. ;;
  6250. esac
  6251. fi
  6252. case $host_cpu in
  6253. hppa*64*|ia64*)
  6254. _LT_TAGVAR(hardcode_direct, $1)=no
  6255. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6256. ;;
  6257. *)
  6258. _LT_TAGVAR(hardcode_direct, $1)=yes
  6259. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6260. _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  6261. # but as the default
  6262. # location of the library.
  6263. ;;
  6264. esac
  6265. case $cc_basename in
  6266. CC*)
  6267. # FIXME: insert proper C++ library support
  6268. _LT_TAGVAR(ld_shlibs, $1)=no
  6269. ;;
  6270. aCC*)
  6271. case $host_cpu in
  6272. hppa*64*)
  6273. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6274. ;;
  6275. ia64*)
  6276. _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6277. ;;
  6278. *)
  6279. _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'
  6280. ;;
  6281. esac
  6282. # Commands to make compiler produce verbose output that lists
  6283. # what "hidden" libraries, object files and flags are used when
  6284. # linking a shared library.
  6285. #
  6286. # There doesn't appear to be a way to prevent this compiler from
  6287. # explicitly linking system object files so we need to strip them
  6288. # from the output so that they don't get included in the library
  6289. # dependencies.
  6290. 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"'
  6291. ;;
  6292. *)
  6293. if test yes = "$GXX"; then
  6294. if test no = "$with_gnu_ld"; then
  6295. case $host_cpu in
  6296. hppa*64*)
  6297. _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6298. ;;
  6299. ia64*)
  6300. _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'
  6301. ;;
  6302. *)
  6303. _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'
  6304. ;;
  6305. esac
  6306. fi
  6307. else
  6308. # FIXME: insert proper C++ library support
  6309. _LT_TAGVAR(ld_shlibs, $1)=no
  6310. fi
  6311. ;;
  6312. esac
  6313. ;;
  6314. interix[[3-9]]*)
  6315. _LT_TAGVAR(hardcode_direct, $1)=no
  6316. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6317. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6318. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6319. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6320. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6321. # default) and relocated if they conflict, which is a slow very memory
  6322. # consuming and fragmenting process. To avoid this, we pick a random,
  6323. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6324. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6325. _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'
  6326. _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'
  6327. ;;
  6328. irix5* | irix6*)
  6329. case $cc_basename in
  6330. CC*)
  6331. # SGI C++
  6332. _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'
  6333. # Archives containing C++ object files must be created using
  6334. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  6335. # necessary to make sure instantiated templates are included
  6336. # in the archive.
  6337. _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  6338. ;;
  6339. *)
  6340. if test yes = "$GXX"; then
  6341. if test no = "$with_gnu_ld"; then
  6342. _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'
  6343. else
  6344. _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'
  6345. fi
  6346. fi
  6347. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6348. ;;
  6349. esac
  6350. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6351. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6352. _LT_TAGVAR(inherit_rpath, $1)=yes
  6353. ;;
  6354. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6355. case $cc_basename in
  6356. KCC*)
  6357. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6358. # KCC will only create a shared library if the output file
  6359. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6360. # to its proper name (with version) after linking.
  6361. _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'
  6362. _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'
  6363. # Commands to make compiler produce verbose output that lists
  6364. # what "hidden" libraries, object files and flags are used when
  6365. # linking a shared library.
  6366. #
  6367. # There doesn't appear to be a way to prevent this compiler from
  6368. # explicitly linking system object files so we need to strip them
  6369. # from the output so that they don't get included in the library
  6370. # dependencies.
  6371. 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"'
  6372. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6373. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6374. # Archives containing C++ object files must be created using
  6375. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  6376. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  6377. ;;
  6378. icpc* | ecpc* )
  6379. # Intel C++
  6380. with_gnu_ld=yes
  6381. # version 8.0 and above of icpc choke on multiply defined symbols
  6382. # if we add $predep_objects and $postdep_objects, however 7.1 and
  6383. # earlier do not add the objects themselves.
  6384. case `$CC -V 2>&1` in
  6385. *"Version 7."*)
  6386. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6387. _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'
  6388. ;;
  6389. *) # Version 8.0 or newer
  6390. tmp_idyn=
  6391. case $host_cpu in
  6392. ia64*) tmp_idyn=' -i_dynamic';;
  6393. esac
  6394. _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6395. _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'
  6396. ;;
  6397. esac
  6398. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6399. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6400. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6401. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
  6402. ;;
  6403. pgCC* | pgcpp*)
  6404. # Portland Group C++ compiler
  6405. case `$CC -V` in
  6406. *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
  6407. _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  6408. rm -rf $tpldir~
  6409. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  6410. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  6411. _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  6412. rm -rf $tpldir~
  6413. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  6414. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  6415. $RANLIB $oldlib'
  6416. _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  6417. rm -rf $tpldir~
  6418. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6419. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6420. _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  6421. rm -rf $tpldir~
  6422. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  6423. $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'
  6424. ;;
  6425. *) # Version 6 and above use weak symbols
  6426. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6427. _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'
  6428. ;;
  6429. esac
  6430. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
  6431. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6432. _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'
  6433. ;;
  6434. cxx*)
  6435. # Compaq C++
  6436. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
  6437. _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'
  6438. runpath_var=LD_RUN_PATH
  6439. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6440. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6441. # Commands to make compiler produce verbose output that lists
  6442. # what "hidden" libraries, object files and flags are used when
  6443. # linking a shared library.
  6444. #
  6445. # There doesn't appear to be a way to prevent this compiler from
  6446. # explicitly linking system object files so we need to strip them
  6447. # from the output so that they don't get included in the library
  6448. # dependencies.
  6449. 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'
  6450. ;;
  6451. xl* | mpixl* | bgxl*)
  6452. # IBM XL 8.0 on PPC, with GNU ld
  6453. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6454. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
  6455. _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
  6456. if test yes = "$supports_anon_versioning"; then
  6457. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6458. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6459. echo "local: *; };" >> $output_objdir/$libname.ver~
  6460. $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
  6461. fi
  6462. ;;
  6463. *)
  6464. case `$CC -V 2>&1 | sed 5q` in
  6465. *Sun\ C*)
  6466. # Sun C++ 5.9
  6467. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6468. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6469. _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'
  6470. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6471. _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'
  6472. _LT_TAGVAR(compiler_needs_object, $1)=yes
  6473. # Not sure whether something based on
  6474. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  6475. # would be better.
  6476. output_verbose_link_cmd='func_echo_all'
  6477. # Archives containing C++ object files must be created using
  6478. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6479. # necessary to make sure instantiated templates are included
  6480. # in the archive.
  6481. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6482. ;;
  6483. esac
  6484. ;;
  6485. esac
  6486. ;;
  6487. lynxos*)
  6488. # FIXME: insert proper C++ library support
  6489. _LT_TAGVAR(ld_shlibs, $1)=no
  6490. ;;
  6491. m88k*)
  6492. # FIXME: insert proper C++ library support
  6493. _LT_TAGVAR(ld_shlibs, $1)=no
  6494. ;;
  6495. mvs*)
  6496. case $cc_basename in
  6497. cxx*)
  6498. # FIXME: insert proper C++ library support
  6499. _LT_TAGVAR(ld_shlibs, $1)=no
  6500. ;;
  6501. *)
  6502. # FIXME: insert proper C++ library support
  6503. _LT_TAGVAR(ld_shlibs, $1)=no
  6504. ;;
  6505. esac
  6506. ;;
  6507. netbsd*)
  6508. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6509. _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  6510. wlarc=
  6511. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6512. _LT_TAGVAR(hardcode_direct, $1)=yes
  6513. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6514. fi
  6515. # Workaround some broken pre-1.5 toolchains
  6516. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  6517. ;;
  6518. *nto* | *qnx*)
  6519. _LT_TAGVAR(ld_shlibs, $1)=yes
  6520. ;;
  6521. openbsd* | bitrig*)
  6522. if test -f /usr/libexec/ld.so; then
  6523. _LT_TAGVAR(hardcode_direct, $1)=yes
  6524. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6525. _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6526. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  6527. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6528. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
  6529. _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'
  6530. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
  6531. _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
  6532. fi
  6533. output_verbose_link_cmd=func_echo_all
  6534. else
  6535. _LT_TAGVAR(ld_shlibs, $1)=no
  6536. fi
  6537. ;;
  6538. osf3* | osf4* | osf5*)
  6539. case $cc_basename in
  6540. KCC*)
  6541. # Kuck and Associates, Inc. (KAI) C++ Compiler
  6542. # KCC will only create a shared library if the output file
  6543. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  6544. # to its proper name (with version) after linking.
  6545. _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'
  6546. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  6547. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6548. # Archives containing C++ object files must be created using
  6549. # the KAI C++ compiler.
  6550. case $host in
  6551. osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  6552. *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  6553. esac
  6554. ;;
  6555. RCC*)
  6556. # Rational C++ 2.4.1
  6557. # FIXME: insert proper C++ library support
  6558. _LT_TAGVAR(ld_shlibs, $1)=no
  6559. ;;
  6560. cxx*)
  6561. case $host in
  6562. osf3*)
  6563. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6564. _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'
  6565. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6566. ;;
  6567. *)
  6568. _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  6569. _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'
  6570. _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  6571. echo "-hidden">> $lib.exp~
  6572. $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~
  6573. $RM $lib.exp'
  6574. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  6575. ;;
  6576. esac
  6577. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6578. # Commands to make compiler produce verbose output that lists
  6579. # what "hidden" libraries, object files and flags are used when
  6580. # linking a shared library.
  6581. #
  6582. # There doesn't appear to be a way to prevent this compiler from
  6583. # explicitly linking system object files so we need to strip them
  6584. # from the output so that they don't get included in the library
  6585. # dependencies.
  6586. 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"'
  6587. ;;
  6588. *)
  6589. if test yes,no = "$GXX,$with_gnu_ld"; then
  6590. _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
  6591. case $host in
  6592. osf3*)
  6593. _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'
  6594. ;;
  6595. *)
  6596. _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'
  6597. ;;
  6598. esac
  6599. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
  6600. _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  6601. # Commands to make compiler produce verbose output that lists
  6602. # what "hidden" libraries, object files and flags are used when
  6603. # linking a shared library.
  6604. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  6605. else
  6606. # FIXME: insert proper C++ library support
  6607. _LT_TAGVAR(ld_shlibs, $1)=no
  6608. fi
  6609. ;;
  6610. esac
  6611. ;;
  6612. psos*)
  6613. # FIXME: insert proper C++ library support
  6614. _LT_TAGVAR(ld_shlibs, $1)=no
  6615. ;;
  6616. sunos4*)
  6617. case $cc_basename in
  6618. CC*)
  6619. # Sun C++ 4.x
  6620. # FIXME: insert proper C++ library support
  6621. _LT_TAGVAR(ld_shlibs, $1)=no
  6622. ;;
  6623. lcc*)
  6624. # Lucid
  6625. # FIXME: insert proper C++ library support
  6626. _LT_TAGVAR(ld_shlibs, $1)=no
  6627. ;;
  6628. *)
  6629. # FIXME: insert proper C++ library support
  6630. _LT_TAGVAR(ld_shlibs, $1)=no
  6631. ;;
  6632. esac
  6633. ;;
  6634. solaris*)
  6635. case $cc_basename in
  6636. CC* | sunCC*)
  6637. # Sun C++ 4.2, 5.x and Centerline C++
  6638. _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  6639. _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6640. _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6641. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6642. $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'
  6643. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6644. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6645. case $host_os in
  6646. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6647. *)
  6648. # The compiler driver will combine and reorder linker options,
  6649. # but understands '-z linker_flag'.
  6650. # Supported since Solaris 2.6 (maybe 2.5.1?)
  6651. _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  6652. ;;
  6653. esac
  6654. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6655. output_verbose_link_cmd='func_echo_all'
  6656. # Archives containing C++ object files must be created using
  6657. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6658. # necessary to make sure instantiated templates are included
  6659. # in the archive.
  6660. _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6661. ;;
  6662. gcx*)
  6663. # Green Hills C++ Compiler
  6664. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6665. # The C++ compiler must be used to create the archive.
  6666. _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6667. ;;
  6668. *)
  6669. # GNU C++ compiler with Solaris linker
  6670. if test yes,no = "$GXX,$with_gnu_ld"; then
  6671. _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
  6672. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  6673. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6674. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6675. $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'
  6676. # Commands to make compiler produce verbose output that lists
  6677. # what "hidden" libraries, object files and flags are used when
  6678. # linking a shared library.
  6679. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  6680. else
  6681. # g++ 2.7 appears to require '-G' NOT '-shared' on this
  6682. # platform.
  6683. _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
  6684. _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  6685. $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'
  6686. # Commands to make compiler produce verbose output that lists
  6687. # what "hidden" libraries, object files and flags are used when
  6688. # linking a shared library.
  6689. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
  6690. fi
  6691. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
  6692. case $host_os in
  6693. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6694. *)
  6695. _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
  6696. ;;
  6697. esac
  6698. fi
  6699. ;;
  6700. esac
  6701. ;;
  6702. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  6703. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6704. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6705. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6706. runpath_var='LD_RUN_PATH'
  6707. case $cc_basename in
  6708. CC*)
  6709. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6710. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6711. ;;
  6712. *)
  6713. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6714. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6715. ;;
  6716. esac
  6717. ;;
  6718. sysv5* | sco3.2v5* | sco5v6*)
  6719. # Note: We CANNOT use -z defs as we might desire, because we do not
  6720. # link with -lc, and that would cause any symbols used from libc to
  6721. # always be unresolved, which means just about no library would
  6722. # ever link correctly. If we're not using GNU ld we use -z text
  6723. # though, which does catch some bad symbols but isn't as heavy-handed
  6724. # as -z defs.
  6725. _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
  6726. _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
  6727. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  6728. _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6729. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
  6730. _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6731. _LT_TAGVAR(link_all_deplibs, $1)=yes
  6732. _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
  6733. runpath_var='LD_RUN_PATH'
  6734. case $cc_basename in
  6735. CC*)
  6736. _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6737. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6738. _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
  6739. '"$_LT_TAGVAR(old_archive_cmds, $1)"
  6740. _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
  6741. '"$_LT_TAGVAR(reload_cmds, $1)"
  6742. ;;
  6743. *)
  6744. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6745. _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  6746. ;;
  6747. esac
  6748. ;;
  6749. tandem*)
  6750. case $cc_basename in
  6751. NCC*)
  6752. # NonStop-UX NCC 3.20
  6753. # FIXME: insert proper C++ library support
  6754. _LT_TAGVAR(ld_shlibs, $1)=no
  6755. ;;
  6756. *)
  6757. # FIXME: insert proper C++ library support
  6758. _LT_TAGVAR(ld_shlibs, $1)=no
  6759. ;;
  6760. esac
  6761. ;;
  6762. vxworks*)
  6763. # FIXME: insert proper C++ library support
  6764. _LT_TAGVAR(ld_shlibs, $1)=no
  6765. ;;
  6766. *)
  6767. # FIXME: insert proper C++ library support
  6768. _LT_TAGVAR(ld_shlibs, $1)=no
  6769. ;;
  6770. esac
  6771. AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  6772. test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
  6773. _LT_TAGVAR(GCC, $1)=$GXX
  6774. _LT_TAGVAR(LD, $1)=$LD
  6775. ## CAVEAT EMPTOR:
  6776. ## There is no encapsulation within the following macros, do not change
  6777. ## the running order or otherwise move them around unless you know exactly
  6778. ## what you are doing...
  6779. _LT_SYS_HIDDEN_LIBDEPS($1)
  6780. _LT_COMPILER_PIC($1)
  6781. _LT_COMPILER_C_O($1)
  6782. _LT_COMPILER_FILE_LOCKS($1)
  6783. _LT_LINKER_SHLIBS($1)
  6784. _LT_SYS_DYNAMIC_LINKER($1)
  6785. _LT_LINKER_HARDCODE_LIBPATH($1)
  6786. _LT_CONFIG($1)
  6787. fi # test -n "$compiler"
  6788. CC=$lt_save_CC
  6789. CFLAGS=$lt_save_CFLAGS
  6790. LDCXX=$LD
  6791. LD=$lt_save_LD
  6792. GCC=$lt_save_GCC
  6793. with_gnu_ld=$lt_save_with_gnu_ld
  6794. lt_cv_path_LDCXX=$lt_cv_path_LD
  6795. lt_cv_path_LD=$lt_save_path_LD
  6796. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6797. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6798. fi # test yes != "$_lt_caught_CXX_error"
  6799. AC_LANG_POP
  6800. ])# _LT_LANG_CXX_CONFIG
  6801. # _LT_FUNC_STRIPNAME_CNF
  6802. # ----------------------
  6803. # func_stripname_cnf prefix suffix name
  6804. # strip PREFIX and SUFFIX off of NAME.
  6805. # PREFIX and SUFFIX must not contain globbing or regex special
  6806. # characters, hashes, percent signs, but SUFFIX may contain a leading
  6807. # dot (in which case that matches only a dot).
  6808. #
  6809. # This function is identical to the (non-XSI) version of func_stripname,
  6810. # except this one can be used by m4 code that may be executed by configure,
  6811. # rather than the libtool script.
  6812. m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
  6813. AC_REQUIRE([_LT_DECL_SED])
  6814. AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
  6815. func_stripname_cnf ()
  6816. {
  6817. case @S|@2 in
  6818. .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
  6819. *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
  6820. esac
  6821. } # func_stripname_cnf
  6822. ])# _LT_FUNC_STRIPNAME_CNF
  6823. # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  6824. # ---------------------------------
  6825. # Figure out "hidden" library dependencies from verbose
  6826. # compiler output when linking a shared library.
  6827. # Parse the compiler output and extract the necessary
  6828. # objects, libraries and library flags.
  6829. m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  6830. [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6831. AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
  6832. # Dependencies to place before and after the object being linked:
  6833. _LT_TAGVAR(predep_objects, $1)=
  6834. _LT_TAGVAR(postdep_objects, $1)=
  6835. _LT_TAGVAR(predeps, $1)=
  6836. _LT_TAGVAR(postdeps, $1)=
  6837. _LT_TAGVAR(compiler_lib_search_path, $1)=
  6838. dnl we can't use the lt_simple_compile_test_code here,
  6839. dnl because it contains code intended for an executable,
  6840. dnl not a library. It's possible we should let each
  6841. dnl tag define a new lt_????_link_test_code variable,
  6842. dnl but it's only used here...
  6843. m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  6844. int a;
  6845. void foo (void) { a = 0; }
  6846. _LT_EOF
  6847. ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  6848. class Foo
  6849. {
  6850. public:
  6851. Foo (void) { a = 0; }
  6852. private:
  6853. int a;
  6854. };
  6855. _LT_EOF
  6856. ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  6857. subroutine foo
  6858. implicit none
  6859. integer*4 a
  6860. a=0
  6861. return
  6862. end
  6863. _LT_EOF
  6864. ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  6865. subroutine foo
  6866. implicit none
  6867. integer a
  6868. a=0
  6869. return
  6870. end
  6871. _LT_EOF
  6872. ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  6873. public class foo {
  6874. private int a;
  6875. public void bar (void) {
  6876. a = 0;
  6877. }
  6878. };
  6879. _LT_EOF
  6880. ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
  6881. package foo
  6882. func foo() {
  6883. }
  6884. _LT_EOF
  6885. ])
  6886. _lt_libdeps_save_CFLAGS=$CFLAGS
  6887. case "$CC $CFLAGS " in #(
  6888. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  6889. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  6890. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  6891. esac
  6892. dnl Parse the compiler output and extract the necessary
  6893. dnl objects, libraries and library flags.
  6894. if AC_TRY_EVAL(ac_compile); then
  6895. # Parse the compiler output and extract the necessary
  6896. # objects, libraries and library flags.
  6897. # Sentinel used to keep track of whether or not we are before
  6898. # the conftest object file.
  6899. pre_test_object_deps_done=no
  6900. for p in `eval "$output_verbose_link_cmd"`; do
  6901. case $prev$p in
  6902. -L* | -R* | -l*)
  6903. # Some compilers place space between "-{L,R}" and the path.
  6904. # Remove the space.
  6905. if test x-L = "$p" ||
  6906. test x-R = "$p"; then
  6907. prev=$p
  6908. continue
  6909. fi
  6910. # Expand the sysroot to ease extracting the directories later.
  6911. if test -z "$prev"; then
  6912. case $p in
  6913. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  6914. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  6915. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  6916. esac
  6917. fi
  6918. case $p in
  6919. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  6920. esac
  6921. if test no = "$pre_test_object_deps_done"; then
  6922. case $prev in
  6923. -L | -R)
  6924. # Internal compiler library paths should come after those
  6925. # provided the user. The postdeps already come after the
  6926. # user supplied libs so there is no need to process them.
  6927. if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  6928. _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
  6929. else
  6930. _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
  6931. fi
  6932. ;;
  6933. # The "-l" case would never come before the object being
  6934. # linked, so don't bother handling this case.
  6935. esac
  6936. else
  6937. if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  6938. _LT_TAGVAR(postdeps, $1)=$prev$p
  6939. else
  6940. _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
  6941. fi
  6942. fi
  6943. prev=
  6944. ;;
  6945. *.lto.$objext) ;; # Ignore GCC LTO objects
  6946. *.$objext)
  6947. # This assumes that the test object file only shows up
  6948. # once in the compiler output.
  6949. if test "$p" = "conftest.$objext"; then
  6950. pre_test_object_deps_done=yes
  6951. continue
  6952. fi
  6953. if test no = "$pre_test_object_deps_done"; then
  6954. if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  6955. _LT_TAGVAR(predep_objects, $1)=$p
  6956. else
  6957. _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  6958. fi
  6959. else
  6960. if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  6961. _LT_TAGVAR(postdep_objects, $1)=$p
  6962. else
  6963. _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  6964. fi
  6965. fi
  6966. ;;
  6967. *) ;; # Ignore the rest.
  6968. esac
  6969. done
  6970. # Clean up.
  6971. rm -f a.out a.exe
  6972. else
  6973. echo "libtool.m4: error: problem compiling $1 test program"
  6974. fi
  6975. $RM -f confest.$objext
  6976. CFLAGS=$_lt_libdeps_save_CFLAGS
  6977. # PORTME: override above test on systems where it is broken
  6978. m4_if([$1], [CXX],
  6979. [case $host_os in
  6980. interix[[3-9]]*)
  6981. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  6982. # hack all around it, let's just trust "g++" to DTRT.
  6983. _LT_TAGVAR(predep_objects,$1)=
  6984. _LT_TAGVAR(postdep_objects,$1)=
  6985. _LT_TAGVAR(postdeps,$1)=
  6986. ;;
  6987. esac
  6988. ])
  6989. case " $_LT_TAGVAR(postdeps, $1) " in
  6990. *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6991. esac
  6992. _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  6993. if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  6994. _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
  6995. fi
  6996. _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  6997. [The directories searched by this compiler when creating a shared library])
  6998. _LT_TAGDECL([], [predep_objects], [1],
  6999. [Dependencies to place before and after the objects being linked to
  7000. create a shared library])
  7001. _LT_TAGDECL([], [postdep_objects], [1])
  7002. _LT_TAGDECL([], [predeps], [1])
  7003. _LT_TAGDECL([], [postdeps], [1])
  7004. _LT_TAGDECL([], [compiler_lib_search_path], [1],
  7005. [The library search path used internally by the compiler when linking
  7006. a shared library])
  7007. ])# _LT_SYS_HIDDEN_LIBDEPS
  7008. # _LT_LANG_F77_CONFIG([TAG])
  7009. # --------------------------
  7010. # Ensure that the configuration variables for a Fortran 77 compiler are
  7011. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7012. # to write the compiler configuration to 'libtool'.
  7013. m4_defun([_LT_LANG_F77_CONFIG],
  7014. [AC_LANG_PUSH(Fortran 77)
  7015. if test -z "$F77" || test no = "$F77"; then
  7016. _lt_disable_F77=yes
  7017. fi
  7018. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7019. _LT_TAGVAR(allow_undefined_flag, $1)=
  7020. _LT_TAGVAR(always_export_symbols, $1)=no
  7021. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7022. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7023. _LT_TAGVAR(hardcode_direct, $1)=no
  7024. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7025. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7026. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7027. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7028. _LT_TAGVAR(hardcode_automatic, $1)=no
  7029. _LT_TAGVAR(inherit_rpath, $1)=no
  7030. _LT_TAGVAR(module_cmds, $1)=
  7031. _LT_TAGVAR(module_expsym_cmds, $1)=
  7032. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7033. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7034. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7035. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7036. _LT_TAGVAR(no_undefined_flag, $1)=
  7037. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7038. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7039. # Source file extension for f77 test sources.
  7040. ac_ext=f
  7041. # Object file extension for compiled f77 test sources.
  7042. objext=o
  7043. _LT_TAGVAR(objext, $1)=$objext
  7044. # No sense in running all these tests if we already determined that
  7045. # the F77 compiler isn't working. Some variables (like enable_shared)
  7046. # are currently assumed to apply to all compilers on this platform,
  7047. # and will be corrupted by setting them based on a non-working compiler.
  7048. if test yes != "$_lt_disable_F77"; then
  7049. # Code to be used in simple compile tests
  7050. lt_simple_compile_test_code="\
  7051. subroutine t
  7052. return
  7053. end
  7054. "
  7055. # Code to be used in simple link tests
  7056. lt_simple_link_test_code="\
  7057. program t
  7058. end
  7059. "
  7060. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7061. _LT_TAG_COMPILER
  7062. # save warnings/boilerplate of simple test code
  7063. _LT_COMPILER_BOILERPLATE
  7064. _LT_LINKER_BOILERPLATE
  7065. # Allow CC to be a program name with arguments.
  7066. lt_save_CC=$CC
  7067. lt_save_GCC=$GCC
  7068. lt_save_CFLAGS=$CFLAGS
  7069. CC=${F77-"f77"}
  7070. CFLAGS=$FFLAGS
  7071. compiler=$CC
  7072. _LT_TAGVAR(compiler, $1)=$CC
  7073. _LT_CC_BASENAME([$compiler])
  7074. GCC=$G77
  7075. if test -n "$compiler"; then
  7076. AC_MSG_CHECKING([if libtool supports shared libraries])
  7077. AC_MSG_RESULT([$can_build_shared])
  7078. AC_MSG_CHECKING([whether to build shared libraries])
  7079. test no = "$can_build_shared" && enable_shared=no
  7080. # On AIX, shared libraries and static libraries use the same namespace, and
  7081. # are all built from PIC.
  7082. case $host_os in
  7083. aix3*)
  7084. test yes = "$enable_shared" && enable_static=no
  7085. if test -n "$RANLIB"; then
  7086. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7087. postinstall_cmds='$RANLIB $lib'
  7088. fi
  7089. ;;
  7090. aix[[4-9]]*)
  7091. if test ia64 != "$host_cpu"; then
  7092. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7093. yes,aix,yes) ;; # shared object as lib.so file only
  7094. yes,svr4,*) ;; # shared object as lib.so archive member only
  7095. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7096. esac
  7097. fi
  7098. ;;
  7099. esac
  7100. AC_MSG_RESULT([$enable_shared])
  7101. AC_MSG_CHECKING([whether to build static libraries])
  7102. # Make sure either enable_shared or enable_static is yes.
  7103. test yes = "$enable_shared" || enable_static=yes
  7104. AC_MSG_RESULT([$enable_static])
  7105. _LT_TAGVAR(GCC, $1)=$G77
  7106. _LT_TAGVAR(LD, $1)=$LD
  7107. ## CAVEAT EMPTOR:
  7108. ## There is no encapsulation within the following macros, do not change
  7109. ## the running order or otherwise move them around unless you know exactly
  7110. ## what you are doing...
  7111. _LT_COMPILER_PIC($1)
  7112. _LT_COMPILER_C_O($1)
  7113. _LT_COMPILER_FILE_LOCKS($1)
  7114. _LT_LINKER_SHLIBS($1)
  7115. _LT_SYS_DYNAMIC_LINKER($1)
  7116. _LT_LINKER_HARDCODE_LIBPATH($1)
  7117. _LT_CONFIG($1)
  7118. fi # test -n "$compiler"
  7119. GCC=$lt_save_GCC
  7120. CC=$lt_save_CC
  7121. CFLAGS=$lt_save_CFLAGS
  7122. fi # test yes != "$_lt_disable_F77"
  7123. AC_LANG_POP
  7124. ])# _LT_LANG_F77_CONFIG
  7125. # _LT_LANG_FC_CONFIG([TAG])
  7126. # -------------------------
  7127. # Ensure that the configuration variables for a Fortran compiler are
  7128. # suitably defined. These variables are subsequently used by _LT_CONFIG
  7129. # to write the compiler configuration to 'libtool'.
  7130. m4_defun([_LT_LANG_FC_CONFIG],
  7131. [AC_LANG_PUSH(Fortran)
  7132. if test -z "$FC" || test no = "$FC"; then
  7133. _lt_disable_FC=yes
  7134. fi
  7135. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7136. _LT_TAGVAR(allow_undefined_flag, $1)=
  7137. _LT_TAGVAR(always_export_symbols, $1)=no
  7138. _LT_TAGVAR(archive_expsym_cmds, $1)=
  7139. _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7140. _LT_TAGVAR(hardcode_direct, $1)=no
  7141. _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7142. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7143. _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7144. _LT_TAGVAR(hardcode_minus_L, $1)=no
  7145. _LT_TAGVAR(hardcode_automatic, $1)=no
  7146. _LT_TAGVAR(inherit_rpath, $1)=no
  7147. _LT_TAGVAR(module_cmds, $1)=
  7148. _LT_TAGVAR(module_expsym_cmds, $1)=
  7149. _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7150. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7151. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7152. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7153. _LT_TAGVAR(no_undefined_flag, $1)=
  7154. _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7155. _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7156. # Source file extension for fc test sources.
  7157. ac_ext=${ac_fc_srcext-f}
  7158. # Object file extension for compiled fc test sources.
  7159. objext=o
  7160. _LT_TAGVAR(objext, $1)=$objext
  7161. # No sense in running all these tests if we already determined that
  7162. # the FC compiler isn't working. Some variables (like enable_shared)
  7163. # are currently assumed to apply to all compilers on this platform,
  7164. # and will be corrupted by setting them based on a non-working compiler.
  7165. if test yes != "$_lt_disable_FC"; then
  7166. # Code to be used in simple compile tests
  7167. lt_simple_compile_test_code="\
  7168. subroutine t
  7169. return
  7170. end
  7171. "
  7172. # Code to be used in simple link tests
  7173. lt_simple_link_test_code="\
  7174. program t
  7175. end
  7176. "
  7177. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7178. _LT_TAG_COMPILER
  7179. # save warnings/boilerplate of simple test code
  7180. _LT_COMPILER_BOILERPLATE
  7181. _LT_LINKER_BOILERPLATE
  7182. # Allow CC to be a program name with arguments.
  7183. lt_save_CC=$CC
  7184. lt_save_GCC=$GCC
  7185. lt_save_CFLAGS=$CFLAGS
  7186. CC=${FC-"f95"}
  7187. CFLAGS=$FCFLAGS
  7188. compiler=$CC
  7189. GCC=$ac_cv_fc_compiler_gnu
  7190. _LT_TAGVAR(compiler, $1)=$CC
  7191. _LT_CC_BASENAME([$compiler])
  7192. if test -n "$compiler"; then
  7193. AC_MSG_CHECKING([if libtool supports shared libraries])
  7194. AC_MSG_RESULT([$can_build_shared])
  7195. AC_MSG_CHECKING([whether to build shared libraries])
  7196. test no = "$can_build_shared" && enable_shared=no
  7197. # On AIX, shared libraries and static libraries use the same namespace, and
  7198. # are all built from PIC.
  7199. case $host_os in
  7200. aix3*)
  7201. test yes = "$enable_shared" && enable_static=no
  7202. if test -n "$RANLIB"; then
  7203. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7204. postinstall_cmds='$RANLIB $lib'
  7205. fi
  7206. ;;
  7207. aix[[4-9]]*)
  7208. if test ia64 != "$host_cpu"; then
  7209. case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
  7210. yes,aix,yes) ;; # shared object as lib.so file only
  7211. yes,svr4,*) ;; # shared object as lib.so archive member only
  7212. yes,*) enable_static=no ;; # shared object in lib.a archive as well
  7213. esac
  7214. fi
  7215. ;;
  7216. esac
  7217. AC_MSG_RESULT([$enable_shared])
  7218. AC_MSG_CHECKING([whether to build static libraries])
  7219. # Make sure either enable_shared or enable_static is yes.
  7220. test yes = "$enable_shared" || enable_static=yes
  7221. AC_MSG_RESULT([$enable_static])
  7222. _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
  7223. _LT_TAGVAR(LD, $1)=$LD
  7224. ## CAVEAT EMPTOR:
  7225. ## There is no encapsulation within the following macros, do not change
  7226. ## the running order or otherwise move them around unless you know exactly
  7227. ## what you are doing...
  7228. _LT_SYS_HIDDEN_LIBDEPS($1)
  7229. _LT_COMPILER_PIC($1)
  7230. _LT_COMPILER_C_O($1)
  7231. _LT_COMPILER_FILE_LOCKS($1)
  7232. _LT_LINKER_SHLIBS($1)
  7233. _LT_SYS_DYNAMIC_LINKER($1)
  7234. _LT_LINKER_HARDCODE_LIBPATH($1)
  7235. _LT_CONFIG($1)
  7236. fi # test -n "$compiler"
  7237. GCC=$lt_save_GCC
  7238. CC=$lt_save_CC
  7239. CFLAGS=$lt_save_CFLAGS
  7240. fi # test yes != "$_lt_disable_FC"
  7241. AC_LANG_POP
  7242. ])# _LT_LANG_FC_CONFIG
  7243. # _LT_LANG_GCJ_CONFIG([TAG])
  7244. # --------------------------
  7245. # Ensure that the configuration variables for the GNU Java Compiler compiler
  7246. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7247. # to write the compiler configuration to 'libtool'.
  7248. m4_defun([_LT_LANG_GCJ_CONFIG],
  7249. [AC_REQUIRE([LT_PROG_GCJ])dnl
  7250. AC_LANG_SAVE
  7251. # Source file extension for Java test sources.
  7252. ac_ext=java
  7253. # Object file extension for compiled Java test sources.
  7254. objext=o
  7255. _LT_TAGVAR(objext, $1)=$objext
  7256. # Code to be used in simple compile tests
  7257. lt_simple_compile_test_code="class foo {}"
  7258. # Code to be used in simple link tests
  7259. lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  7260. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7261. _LT_TAG_COMPILER
  7262. # save warnings/boilerplate of simple test code
  7263. _LT_COMPILER_BOILERPLATE
  7264. _LT_LINKER_BOILERPLATE
  7265. # Allow CC to be a program name with arguments.
  7266. lt_save_CC=$CC
  7267. lt_save_CFLAGS=$CFLAGS
  7268. lt_save_GCC=$GCC
  7269. GCC=yes
  7270. CC=${GCJ-"gcj"}
  7271. CFLAGS=$GCJFLAGS
  7272. compiler=$CC
  7273. _LT_TAGVAR(compiler, $1)=$CC
  7274. _LT_TAGVAR(LD, $1)=$LD
  7275. _LT_CC_BASENAME([$compiler])
  7276. # GCJ did not exist at the time GCC didn't implicitly link libc in.
  7277. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7278. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7279. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7280. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7281. if test -n "$compiler"; then
  7282. _LT_COMPILER_NO_RTTI($1)
  7283. _LT_COMPILER_PIC($1)
  7284. _LT_COMPILER_C_O($1)
  7285. _LT_COMPILER_FILE_LOCKS($1)
  7286. _LT_LINKER_SHLIBS($1)
  7287. _LT_LINKER_HARDCODE_LIBPATH($1)
  7288. _LT_CONFIG($1)
  7289. fi
  7290. AC_LANG_RESTORE
  7291. GCC=$lt_save_GCC
  7292. CC=$lt_save_CC
  7293. CFLAGS=$lt_save_CFLAGS
  7294. ])# _LT_LANG_GCJ_CONFIG
  7295. # _LT_LANG_GO_CONFIG([TAG])
  7296. # --------------------------
  7297. # Ensure that the configuration variables for the GNU Go compiler
  7298. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7299. # to write the compiler configuration to 'libtool'.
  7300. m4_defun([_LT_LANG_GO_CONFIG],
  7301. [AC_REQUIRE([LT_PROG_GO])dnl
  7302. AC_LANG_SAVE
  7303. # Source file extension for Go test sources.
  7304. ac_ext=go
  7305. # Object file extension for compiled Go test sources.
  7306. objext=o
  7307. _LT_TAGVAR(objext, $1)=$objext
  7308. # Code to be used in simple compile tests
  7309. lt_simple_compile_test_code="package main; func main() { }"
  7310. # Code to be used in simple link tests
  7311. lt_simple_link_test_code='package main; func main() { }'
  7312. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7313. _LT_TAG_COMPILER
  7314. # save warnings/boilerplate of simple test code
  7315. _LT_COMPILER_BOILERPLATE
  7316. _LT_LINKER_BOILERPLATE
  7317. # Allow CC to be a program name with arguments.
  7318. lt_save_CC=$CC
  7319. lt_save_CFLAGS=$CFLAGS
  7320. lt_save_GCC=$GCC
  7321. GCC=yes
  7322. CC=${GOC-"gccgo"}
  7323. CFLAGS=$GOFLAGS
  7324. compiler=$CC
  7325. _LT_TAGVAR(compiler, $1)=$CC
  7326. _LT_TAGVAR(LD, $1)=$LD
  7327. _LT_CC_BASENAME([$compiler])
  7328. # Go did not exist at the time GCC didn't implicitly link libc in.
  7329. _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7330. _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7331. _LT_TAGVAR(reload_flag, $1)=$reload_flag
  7332. _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
  7333. if test -n "$compiler"; then
  7334. _LT_COMPILER_NO_RTTI($1)
  7335. _LT_COMPILER_PIC($1)
  7336. _LT_COMPILER_C_O($1)
  7337. _LT_COMPILER_FILE_LOCKS($1)
  7338. _LT_LINKER_SHLIBS($1)
  7339. _LT_LINKER_HARDCODE_LIBPATH($1)
  7340. _LT_CONFIG($1)
  7341. fi
  7342. AC_LANG_RESTORE
  7343. GCC=$lt_save_GCC
  7344. CC=$lt_save_CC
  7345. CFLAGS=$lt_save_CFLAGS
  7346. ])# _LT_LANG_GO_CONFIG
  7347. # _LT_LANG_RC_CONFIG([TAG])
  7348. # -------------------------
  7349. # Ensure that the configuration variables for the Windows resource compiler
  7350. # are suitably defined. These variables are subsequently used by _LT_CONFIG
  7351. # to write the compiler configuration to 'libtool'.
  7352. m4_defun([_LT_LANG_RC_CONFIG],
  7353. [AC_REQUIRE([LT_PROG_RC])dnl
  7354. AC_LANG_SAVE
  7355. # Source file extension for RC test sources.
  7356. ac_ext=rc
  7357. # Object file extension for compiled RC test sources.
  7358. objext=o
  7359. _LT_TAGVAR(objext, $1)=$objext
  7360. # Code to be used in simple compile tests
  7361. lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  7362. # Code to be used in simple link tests
  7363. lt_simple_link_test_code=$lt_simple_compile_test_code
  7364. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7365. _LT_TAG_COMPILER
  7366. # save warnings/boilerplate of simple test code
  7367. _LT_COMPILER_BOILERPLATE
  7368. _LT_LINKER_BOILERPLATE
  7369. # Allow CC to be a program name with arguments.
  7370. lt_save_CC=$CC
  7371. lt_save_CFLAGS=$CFLAGS
  7372. lt_save_GCC=$GCC
  7373. GCC=
  7374. CC=${RC-"windres"}
  7375. CFLAGS=
  7376. compiler=$CC
  7377. _LT_TAGVAR(compiler, $1)=$CC
  7378. _LT_CC_BASENAME([$compiler])
  7379. _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  7380. if test -n "$compiler"; then
  7381. :
  7382. _LT_CONFIG($1)
  7383. fi
  7384. GCC=$lt_save_GCC
  7385. AC_LANG_RESTORE
  7386. CC=$lt_save_CC
  7387. CFLAGS=$lt_save_CFLAGS
  7388. ])# _LT_LANG_RC_CONFIG
  7389. # LT_PROG_GCJ
  7390. # -----------
  7391. AC_DEFUN([LT_PROG_GCJ],
  7392. [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  7393. [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  7394. [AC_CHECK_TOOL(GCJ, gcj,)
  7395. test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
  7396. AC_SUBST(GCJFLAGS)])])[]dnl
  7397. ])
  7398. # Old name:
  7399. AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  7400. dnl aclocal-1.4 backwards compatibility:
  7401. dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  7402. # LT_PROG_GO
  7403. # ----------
  7404. AC_DEFUN([LT_PROG_GO],
  7405. [AC_CHECK_TOOL(GOC, gccgo,)
  7406. ])
  7407. # LT_PROG_RC
  7408. # ----------
  7409. AC_DEFUN([LT_PROG_RC],
  7410. [AC_CHECK_TOOL(RC, windres,)
  7411. ])
  7412. # Old name:
  7413. AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  7414. dnl aclocal-1.4 backwards compatibility:
  7415. dnl AC_DEFUN([LT_AC_PROG_RC], [])
  7416. # _LT_DECL_EGREP
  7417. # --------------
  7418. # If we don't have a new enough Autoconf to choose the best grep
  7419. # available, choose the one first in the user's PATH.
  7420. m4_defun([_LT_DECL_EGREP],
  7421. [AC_REQUIRE([AC_PROG_EGREP])dnl
  7422. AC_REQUIRE([AC_PROG_FGREP])dnl
  7423. test -z "$GREP" && GREP=grep
  7424. _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  7425. _LT_DECL([], [EGREP], [1], [An ERE matcher])
  7426. _LT_DECL([], [FGREP], [1], [A literal string matcher])
  7427. dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  7428. AC_SUBST([GREP])
  7429. ])
  7430. # _LT_DECL_OBJDUMP
  7431. # --------------
  7432. # If we don't have a new enough Autoconf to choose the best objdump
  7433. # available, choose the one first in the user's PATH.
  7434. m4_defun([_LT_DECL_OBJDUMP],
  7435. [AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7436. test -z "$OBJDUMP" && OBJDUMP=objdump
  7437. _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  7438. AC_SUBST([OBJDUMP])
  7439. ])
  7440. # _LT_DECL_DLLTOOL
  7441. # ----------------
  7442. # Ensure DLLTOOL variable is set.
  7443. m4_defun([_LT_DECL_DLLTOOL],
  7444. [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7445. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7446. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
  7447. AC_SUBST([DLLTOOL])
  7448. ])
  7449. # _LT_DECL_SED
  7450. # ------------
  7451. # Check for a fully-functional sed program, that truncates
  7452. # as few characters as possible. Prefer GNU sed if found.
  7453. m4_defun([_LT_DECL_SED],
  7454. [AC_PROG_SED
  7455. test -z "$SED" && SED=sed
  7456. Xsed="$SED -e 1s/^X//"
  7457. _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  7458. _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  7459. [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  7460. ])# _LT_DECL_SED
  7461. m4_ifndef([AC_PROG_SED], [
  7462. # NOTE: This macro has been submitted for inclusion into #
  7463. # GNU Autoconf as AC_PROG_SED. When it is available in #
  7464. # a released version of Autoconf we should remove this #
  7465. # macro and use it instead. #
  7466. m4_defun([AC_PROG_SED],
  7467. [AC_MSG_CHECKING([for a sed that does not truncate output])
  7468. AC_CACHE_VAL(lt_cv_path_SED,
  7469. [# Loop through the user's path and test for sed and gsed.
  7470. # Then use that list of sed's as ones to test for truncation.
  7471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7472. for as_dir in $PATH
  7473. do
  7474. IFS=$as_save_IFS
  7475. test -z "$as_dir" && as_dir=.
  7476. for lt_ac_prog in sed gsed; do
  7477. for ac_exec_ext in '' $ac_executable_extensions; do
  7478. if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  7479. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  7480. fi
  7481. done
  7482. done
  7483. done
  7484. IFS=$as_save_IFS
  7485. lt_ac_max=0
  7486. lt_ac_count=0
  7487. # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  7488. # along with /bin/sed that truncates output.
  7489. for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  7490. test ! -f "$lt_ac_sed" && continue
  7491. cat /dev/null > conftest.in
  7492. lt_ac_count=0
  7493. echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  7494. # Check for GNU sed and select it if it is found.
  7495. if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  7496. lt_cv_path_SED=$lt_ac_sed
  7497. break
  7498. fi
  7499. while true; do
  7500. cat conftest.in conftest.in >conftest.tmp
  7501. mv conftest.tmp conftest.in
  7502. cp conftest.in conftest.nl
  7503. echo >>conftest.nl
  7504. $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  7505. cmp -s conftest.out conftest.nl || break
  7506. # 10000 chars as input seems more than enough
  7507. test 10 -lt "$lt_ac_count" && break
  7508. lt_ac_count=`expr $lt_ac_count + 1`
  7509. if test "$lt_ac_count" -gt "$lt_ac_max"; then
  7510. lt_ac_max=$lt_ac_count
  7511. lt_cv_path_SED=$lt_ac_sed
  7512. fi
  7513. done
  7514. done
  7515. ])
  7516. SED=$lt_cv_path_SED
  7517. AC_SUBST([SED])
  7518. AC_MSG_RESULT([$SED])
  7519. ])#AC_PROG_SED
  7520. ])#m4_ifndef
  7521. # Old name:
  7522. AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  7523. dnl aclocal-1.4 backwards compatibility:
  7524. dnl AC_DEFUN([LT_AC_PROG_SED], [])
  7525. # _LT_CHECK_SHELL_FEATURES
  7526. # ------------------------
  7527. # Find out whether the shell is Bourne or XSI compatible,
  7528. # or has some other useful features.
  7529. m4_defun([_LT_CHECK_SHELL_FEATURES],
  7530. [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7531. lt_unset=unset
  7532. else
  7533. lt_unset=false
  7534. fi
  7535. _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  7536. # test EBCDIC or ASCII
  7537. case `echo X|tr X '\101'` in
  7538. A) # ASCII based system
  7539. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  7540. lt_SP2NL='tr \040 \012'
  7541. lt_NL2SP='tr \015\012 \040\040'
  7542. ;;
  7543. *) # EBCDIC based system
  7544. lt_SP2NL='tr \100 \n'
  7545. lt_NL2SP='tr \r\n \100\100'
  7546. ;;
  7547. esac
  7548. _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  7549. _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  7550. ])# _LT_CHECK_SHELL_FEATURES
  7551. # _LT_PATH_CONVERSION_FUNCTIONS
  7552. # -----------------------------
  7553. # Determine what file name conversion functions should be used by
  7554. # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
  7555. # for certain cross-compile configurations and native mingw.
  7556. m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
  7557. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7558. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  7559. AC_MSG_CHECKING([how to convert $build file names to $host format])
  7560. AC_CACHE_VAL(lt_cv_to_host_file_cmd,
  7561. [case $host in
  7562. *-*-mingw* )
  7563. case $build in
  7564. *-*-mingw* ) # actually msys
  7565. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  7566. ;;
  7567. *-*-cygwin* )
  7568. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  7569. ;;
  7570. * ) # otherwise, assume *nix
  7571. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  7572. ;;
  7573. esac
  7574. ;;
  7575. *-*-cygwin* )
  7576. case $build in
  7577. *-*-mingw* ) # actually msys
  7578. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  7579. ;;
  7580. *-*-cygwin* )
  7581. lt_cv_to_host_file_cmd=func_convert_file_noop
  7582. ;;
  7583. * ) # otherwise, assume *nix
  7584. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  7585. ;;
  7586. esac
  7587. ;;
  7588. * ) # unhandled hosts (and "normal" native builds)
  7589. lt_cv_to_host_file_cmd=func_convert_file_noop
  7590. ;;
  7591. esac
  7592. ])
  7593. to_host_file_cmd=$lt_cv_to_host_file_cmd
  7594. AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
  7595. _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
  7596. [0], [convert $build file names to $host format])dnl
  7597. AC_MSG_CHECKING([how to convert $build file names to toolchain format])
  7598. AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
  7599. [#assume ordinary cross tools, or native build.
  7600. lt_cv_to_tool_file_cmd=func_convert_file_noop
  7601. case $host in
  7602. *-*-mingw* )
  7603. case $build in
  7604. *-*-mingw* ) # actually msys
  7605. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  7606. ;;
  7607. esac
  7608. ;;
  7609. esac
  7610. ])
  7611. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  7612. AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
  7613. _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
  7614. [0], [convert $build files to toolchain format])dnl
  7615. ])# _LT_PATH_CONVERSION_FUNCTIONS
  7616. # Helper functions for option handling. -*- Autoconf -*-
  7617. #
  7618. # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
  7619. # Foundation, Inc.
  7620. # Written by Gary V. Vaughan, 2004
  7621. #
  7622. # This file is free software; the Free Software Foundation gives
  7623. # unlimited permission to copy and/or distribute it, with or without
  7624. # modifications, as long as this notice is preserved.
  7625. # serial 8 ltoptions.m4
  7626. # This is to help aclocal find these macros, as it can't see m4_define.
  7627. AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  7628. # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  7629. # ------------------------------------------
  7630. m4_define([_LT_MANGLE_OPTION],
  7631. [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  7632. # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  7633. # ---------------------------------------
  7634. # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  7635. # matching handler defined, dispatch to it. Other OPTION-NAMEs are
  7636. # saved as a flag.
  7637. m4_define([_LT_SET_OPTION],
  7638. [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  7639. m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  7640. _LT_MANGLE_DEFUN([$1], [$2]),
  7641. [m4_warning([Unknown $1 option '$2'])])[]dnl
  7642. ])
  7643. # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  7644. # ------------------------------------------------------------
  7645. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  7646. m4_define([_LT_IF_OPTION],
  7647. [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  7648. # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  7649. # -------------------------------------------------------
  7650. # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  7651. # are set.
  7652. m4_define([_LT_UNLESS_OPTIONS],
  7653. [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7654. [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  7655. [m4_define([$0_found])])])[]dnl
  7656. m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  7657. ])[]dnl
  7658. ])
  7659. # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  7660. # ----------------------------------------
  7661. # OPTION-LIST is a space-separated list of Libtool options associated
  7662. # with MACRO-NAME. If any OPTION has a matching handler declared with
  7663. # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  7664. # the unknown option and exit.
  7665. m4_defun([_LT_SET_OPTIONS],
  7666. [# Set options
  7667. m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  7668. [_LT_SET_OPTION([$1], _LT_Option)])
  7669. m4_if([$1],[LT_INIT],[
  7670. dnl
  7671. dnl Simply set some default values (i.e off) if boolean options were not
  7672. dnl specified:
  7673. _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  7674. ])
  7675. _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  7676. ])
  7677. dnl
  7678. dnl If no reference was made to various pairs of opposing options, then
  7679. dnl we run the default mode handler for the pair. For example, if neither
  7680. dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
  7681. dnl archives by default:
  7682. _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  7683. _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  7684. _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  7685. _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  7686. [_LT_ENABLE_FAST_INSTALL])
  7687. _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
  7688. [_LT_WITH_AIX_SONAME([aix])])
  7689. ])
  7690. ])# _LT_SET_OPTIONS
  7691. # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  7692. # -----------------------------------------
  7693. m4_define([_LT_MANGLE_DEFUN],
  7694. [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  7695. # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  7696. # -----------------------------------------------
  7697. m4_define([LT_OPTION_DEFINE],
  7698. [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  7699. ])# LT_OPTION_DEFINE
  7700. # dlopen
  7701. # ------
  7702. LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  7703. ])
  7704. AU_DEFUN([AC_LIBTOOL_DLOPEN],
  7705. [_LT_SET_OPTION([LT_INIT], [dlopen])
  7706. AC_DIAGNOSE([obsolete],
  7707. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7708. put the 'dlopen' option into LT_INIT's first parameter.])
  7709. ])
  7710. dnl aclocal-1.4 backwards compatibility:
  7711. dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  7712. # win32-dll
  7713. # ---------
  7714. # Declare package support for building win32 dll's.
  7715. LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  7716. [enable_win32_dll=yes
  7717. case $host in
  7718. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  7719. AC_CHECK_TOOL(AS, as, false)
  7720. AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  7721. AC_CHECK_TOOL(OBJDUMP, objdump, false)
  7722. ;;
  7723. esac
  7724. test -z "$AS" && AS=as
  7725. _LT_DECL([], [AS], [1], [Assembler program])dnl
  7726. test -z "$DLLTOOL" && DLLTOOL=dlltool
  7727. _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
  7728. test -z "$OBJDUMP" && OBJDUMP=objdump
  7729. _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
  7730. ])# win32-dll
  7731. AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  7732. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  7733. _LT_SET_OPTION([LT_INIT], [win32-dll])
  7734. AC_DIAGNOSE([obsolete],
  7735. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7736. put the 'win32-dll' option into LT_INIT's first parameter.])
  7737. ])
  7738. dnl aclocal-1.4 backwards compatibility:
  7739. dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  7740. # _LT_ENABLE_SHARED([DEFAULT])
  7741. # ----------------------------
  7742. # implement the --enable-shared flag, and supports the 'shared' and
  7743. # 'disable-shared' LT_INIT options.
  7744. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7745. m4_define([_LT_ENABLE_SHARED],
  7746. [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7747. AC_ARG_ENABLE([shared],
  7748. [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  7749. [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  7750. [p=${PACKAGE-default}
  7751. case $enableval in
  7752. yes) enable_shared=yes ;;
  7753. no) enable_shared=no ;;
  7754. *)
  7755. enable_shared=no
  7756. # Look at the argument we got. We use all the common list separators.
  7757. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7758. for pkg in $enableval; do
  7759. IFS=$lt_save_ifs
  7760. if test "X$pkg" = "X$p"; then
  7761. enable_shared=yes
  7762. fi
  7763. done
  7764. IFS=$lt_save_ifs
  7765. ;;
  7766. esac],
  7767. [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  7768. _LT_DECL([build_libtool_libs], [enable_shared], [0],
  7769. [Whether or not to build shared libraries])
  7770. ])# _LT_ENABLE_SHARED
  7771. LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  7772. LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  7773. # Old names:
  7774. AC_DEFUN([AC_ENABLE_SHARED],
  7775. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  7776. ])
  7777. AC_DEFUN([AC_DISABLE_SHARED],
  7778. [_LT_SET_OPTION([LT_INIT], [disable-shared])
  7779. ])
  7780. AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7781. AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7782. dnl aclocal-1.4 backwards compatibility:
  7783. dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  7784. dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  7785. # _LT_ENABLE_STATIC([DEFAULT])
  7786. # ----------------------------
  7787. # implement the --enable-static flag, and support the 'static' and
  7788. # 'disable-static' LT_INIT options.
  7789. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7790. m4_define([_LT_ENABLE_STATIC],
  7791. [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7792. AC_ARG_ENABLE([static],
  7793. [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  7794. [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  7795. [p=${PACKAGE-default}
  7796. case $enableval in
  7797. yes) enable_static=yes ;;
  7798. no) enable_static=no ;;
  7799. *)
  7800. enable_static=no
  7801. # Look at the argument we got. We use all the common list separators.
  7802. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7803. for pkg in $enableval; do
  7804. IFS=$lt_save_ifs
  7805. if test "X$pkg" = "X$p"; then
  7806. enable_static=yes
  7807. fi
  7808. done
  7809. IFS=$lt_save_ifs
  7810. ;;
  7811. esac],
  7812. [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  7813. _LT_DECL([build_old_libs], [enable_static], [0],
  7814. [Whether or not to build static libraries])
  7815. ])# _LT_ENABLE_STATIC
  7816. LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  7817. LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  7818. # Old names:
  7819. AC_DEFUN([AC_ENABLE_STATIC],
  7820. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  7821. ])
  7822. AC_DEFUN([AC_DISABLE_STATIC],
  7823. [_LT_SET_OPTION([LT_INIT], [disable-static])
  7824. ])
  7825. AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7826. AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7827. dnl aclocal-1.4 backwards compatibility:
  7828. dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  7829. dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  7830. # _LT_ENABLE_FAST_INSTALL([DEFAULT])
  7831. # ----------------------------------
  7832. # implement the --enable-fast-install flag, and support the 'fast-install'
  7833. # and 'disable-fast-install' LT_INIT options.
  7834. # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
  7835. m4_define([_LT_ENABLE_FAST_INSTALL],
  7836. [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  7837. AC_ARG_ENABLE([fast-install],
  7838. [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  7839. [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  7840. [p=${PACKAGE-default}
  7841. case $enableval in
  7842. yes) enable_fast_install=yes ;;
  7843. no) enable_fast_install=no ;;
  7844. *)
  7845. enable_fast_install=no
  7846. # Look at the argument we got. We use all the common list separators.
  7847. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7848. for pkg in $enableval; do
  7849. IFS=$lt_save_ifs
  7850. if test "X$pkg" = "X$p"; then
  7851. enable_fast_install=yes
  7852. fi
  7853. done
  7854. IFS=$lt_save_ifs
  7855. ;;
  7856. esac],
  7857. [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  7858. _LT_DECL([fast_install], [enable_fast_install], [0],
  7859. [Whether or not to optimize for fast installation])dnl
  7860. ])# _LT_ENABLE_FAST_INSTALL
  7861. LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  7862. LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  7863. # Old names:
  7864. AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  7865. [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  7866. AC_DIAGNOSE([obsolete],
  7867. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7868. the 'fast-install' option into LT_INIT's first parameter.])
  7869. ])
  7870. AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  7871. [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  7872. AC_DIAGNOSE([obsolete],
  7873. [$0: Remove this warning and the call to _LT_SET_OPTION when you put
  7874. the 'disable-fast-install' option into LT_INIT's first parameter.])
  7875. ])
  7876. dnl aclocal-1.4 backwards compatibility:
  7877. dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  7878. dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  7879. # _LT_WITH_AIX_SONAME([DEFAULT])
  7880. # ----------------------------------
  7881. # implement the --with-aix-soname flag, and support the `aix-soname=aix'
  7882. # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
  7883. # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
  7884. m4_define([_LT_WITH_AIX_SONAME],
  7885. [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
  7886. shared_archive_member_spec=
  7887. case $host,$enable_shared in
  7888. power*-*-aix[[5-9]]*,yes)
  7889. AC_MSG_CHECKING([which variant of shared library versioning to provide])
  7890. AC_ARG_WITH([aix-soname],
  7891. [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
  7892. [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
  7893. [case $withval in
  7894. aix|svr4|both)
  7895. ;;
  7896. *)
  7897. AC_MSG_ERROR([Unknown argument to --with-aix-soname])
  7898. ;;
  7899. esac
  7900. lt_cv_with_aix_soname=$with_aix_soname],
  7901. [AC_CACHE_VAL([lt_cv_with_aix_soname],
  7902. [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
  7903. with_aix_soname=$lt_cv_with_aix_soname])
  7904. AC_MSG_RESULT([$with_aix_soname])
  7905. if test aix != "$with_aix_soname"; then
  7906. # For the AIX way of multilib, we name the shared archive member
  7907. # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
  7908. # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
  7909. # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
  7910. # the AIX toolchain works better with OBJECT_MODE set (default 32).
  7911. if test 64 = "${OBJECT_MODE-32}"; then
  7912. shared_archive_member_spec=shr_64
  7913. else
  7914. shared_archive_member_spec=shr
  7915. fi
  7916. fi
  7917. ;;
  7918. *)
  7919. with_aix_soname=aix
  7920. ;;
  7921. esac
  7922. _LT_DECL([], [shared_archive_member_spec], [0],
  7923. [Shared archive member basename, for filename based shared library versioning on AIX])dnl
  7924. ])# _LT_WITH_AIX_SONAME
  7925. LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
  7926. LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
  7927. LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
  7928. # _LT_WITH_PIC([MODE])
  7929. # --------------------
  7930. # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
  7931. # LT_INIT options.
  7932. # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
  7933. m4_define([_LT_WITH_PIC],
  7934. [AC_ARG_WITH([pic],
  7935. [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
  7936. [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  7937. [lt_p=${PACKAGE-default}
  7938. case $withval in
  7939. yes|no) pic_mode=$withval ;;
  7940. *)
  7941. pic_mode=default
  7942. # Look at the argument we got. We use all the common list separators.
  7943. lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
  7944. for lt_pkg in $withval; do
  7945. IFS=$lt_save_ifs
  7946. if test "X$lt_pkg" = "X$lt_p"; then
  7947. pic_mode=yes
  7948. fi
  7949. done
  7950. IFS=$lt_save_ifs
  7951. ;;
  7952. esac],
  7953. [pic_mode=m4_default([$1], [default])])
  7954. _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  7955. ])# _LT_WITH_PIC
  7956. LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  7957. LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  7958. # Old name:
  7959. AU_DEFUN([AC_LIBTOOL_PICMODE],
  7960. [_LT_SET_OPTION([LT_INIT], [pic-only])
  7961. AC_DIAGNOSE([obsolete],
  7962. [$0: Remove this warning and the call to _LT_SET_OPTION when you
  7963. put the 'pic-only' option into LT_INIT's first parameter.])
  7964. ])
  7965. dnl aclocal-1.4 backwards compatibility:
  7966. dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  7967. m4_define([_LTDL_MODE], [])
  7968. LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  7969. [m4_define([_LTDL_MODE], [nonrecursive])])
  7970. LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  7971. [m4_define([_LTDL_MODE], [recursive])])
  7972. LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  7973. [m4_define([_LTDL_MODE], [subproject])])
  7974. m4_define([_LTDL_TYPE], [])
  7975. LT_OPTION_DEFINE([LTDL_INIT], [installable],
  7976. [m4_define([_LTDL_TYPE], [installable])])
  7977. LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  7978. [m4_define([_LTDL_TYPE], [convenience])])
  7979. # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  7980. #
  7981. # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
  7982. # Foundation, Inc.
  7983. # Written by Gary V. Vaughan, 2004
  7984. #
  7985. # This file is free software; the Free Software Foundation gives
  7986. # unlimited permission to copy and/or distribute it, with or without
  7987. # modifications, as long as this notice is preserved.
  7988. # serial 6 ltsugar.m4
  7989. # This is to help aclocal find these macros, as it can't see m4_define.
  7990. AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  7991. # lt_join(SEP, ARG1, [ARG2...])
  7992. # -----------------------------
  7993. # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  7994. # associated separator.
  7995. # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  7996. # versions in m4sugar had bugs.
  7997. m4_define([lt_join],
  7998. [m4_if([$#], [1], [],
  7999. [$#], [2], [[$2]],
  8000. [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  8001. m4_define([_lt_join],
  8002. [m4_if([$#$2], [2], [],
  8003. [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  8004. # lt_car(LIST)
  8005. # lt_cdr(LIST)
  8006. # ------------
  8007. # Manipulate m4 lists.
  8008. # These macros are necessary as long as will still need to support
  8009. # Autoconf-2.59, which quotes differently.
  8010. m4_define([lt_car], [[$1]])
  8011. m4_define([lt_cdr],
  8012. [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  8013. [$#], 1, [],
  8014. [m4_dquote(m4_shift($@))])])
  8015. m4_define([lt_unquote], $1)
  8016. # lt_append(MACRO-NAME, STRING, [SEPARATOR])
  8017. # ------------------------------------------
  8018. # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
  8019. # Note that neither SEPARATOR nor STRING are expanded; they are appended
  8020. # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  8021. # No SEPARATOR is output if MACRO-NAME was previously undefined (different
  8022. # than defined and empty).
  8023. #
  8024. # This macro is needed until we can rely on Autoconf 2.62, since earlier
  8025. # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  8026. m4_define([lt_append],
  8027. [m4_define([$1],
  8028. m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  8029. # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  8030. # ----------------------------------------------------------
  8031. # Produce a SEP delimited list of all paired combinations of elements of
  8032. # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  8033. # has the form PREFIXmINFIXSUFFIXn.
  8034. # Needed until we can rely on m4_combine added in Autoconf 2.62.
  8035. m4_define([lt_combine],
  8036. [m4_if(m4_eval([$# > 3]), [1],
  8037. [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  8038. [[m4_foreach([_Lt_prefix], [$2],
  8039. [m4_foreach([_Lt_suffix],
  8040. ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  8041. [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  8042. # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  8043. # -----------------------------------------------------------------------
  8044. # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  8045. # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  8046. m4_define([lt_if_append_uniq],
  8047. [m4_ifdef([$1],
  8048. [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  8049. [lt_append([$1], [$2], [$3])$4],
  8050. [$5])],
  8051. [lt_append([$1], [$2], [$3])$4])])
  8052. # lt_dict_add(DICT, KEY, VALUE)
  8053. # -----------------------------
  8054. m4_define([lt_dict_add],
  8055. [m4_define([$1($2)], [$3])])
  8056. # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  8057. # --------------------------------------------
  8058. m4_define([lt_dict_add_subkey],
  8059. [m4_define([$1($2:$3)], [$4])])
  8060. # lt_dict_fetch(DICT, KEY, [SUBKEY])
  8061. # ----------------------------------
  8062. m4_define([lt_dict_fetch],
  8063. [m4_ifval([$3],
  8064. m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  8065. m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  8066. # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  8067. # -----------------------------------------------------------------
  8068. m4_define([lt_if_dict_fetch],
  8069. [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  8070. [$5],
  8071. [$6])])
  8072. # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  8073. # --------------------------------------------------------------
  8074. m4_define([lt_dict_filter],
  8075. [m4_if([$5], [], [],
  8076. [lt_join(m4_quote(m4_default([$4], [[, ]])),
  8077. lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  8078. [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  8079. ])
  8080. # ltversion.m4 -- version numbers -*- Autoconf -*-
  8081. #
  8082. # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
  8083. # Written by Scott James Remnant, 2004
  8084. #
  8085. # This file is free software; the Free Software Foundation gives
  8086. # unlimited permission to copy and/or distribute it, with or without
  8087. # modifications, as long as this notice is preserved.
  8088. # @configure_input@
  8089. # serial 4179 ltversion.m4
  8090. # This file is part of GNU Libtool
  8091. m4_define([LT_PACKAGE_VERSION], [2.4.6])
  8092. m4_define([LT_PACKAGE_REVISION], [2.4.6])
  8093. AC_DEFUN([LTVERSION_VERSION],
  8094. [macro_version='2.4.6'
  8095. macro_revision='2.4.6'
  8096. _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  8097. _LT_DECL(, macro_revision, 0)
  8098. ])
  8099. # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  8100. #
  8101. # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
  8102. # Foundation, Inc.
  8103. # Written by Scott James Remnant, 2004.
  8104. #
  8105. # This file is free software; the Free Software Foundation gives
  8106. # unlimited permission to copy and/or distribute it, with or without
  8107. # modifications, as long as this notice is preserved.
  8108. # serial 5 lt~obsolete.m4
  8109. # These exist entirely to fool aclocal when bootstrapping libtool.
  8110. #
  8111. # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
  8112. # which have later been changed to m4_define as they aren't part of the
  8113. # exported API, or moved to Autoconf or Automake where they belong.
  8114. #
  8115. # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  8116. # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  8117. # using a macro with the same name in our local m4/libtool.m4 it'll
  8118. # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  8119. # and doesn't know about Autoconf macros at all.)
  8120. #
  8121. # So we provide this file, which has a silly filename so it's always
  8122. # included after everything else. This provides aclocal with the
  8123. # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  8124. # because those macros already exist, or will be overwritten later.
  8125. # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  8126. #
  8127. # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  8128. # Yes, that means every name once taken will need to remain here until
  8129. # we give up compatibility with versions before 1.7, at which point
  8130. # we need to keep only those names which we still refer to.
  8131. # This is to help aclocal find these macros, as it can't see m4_define.
  8132. AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  8133. m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  8134. m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  8135. m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  8136. m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  8137. m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  8138. m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  8139. m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  8140. m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  8141. m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  8142. m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  8143. m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  8144. m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  8145. m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  8146. m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  8147. m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  8148. m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  8149. m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  8150. m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  8151. m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  8152. m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  8153. m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  8154. m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  8155. m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  8156. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  8157. m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  8158. m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  8159. m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  8160. m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  8161. m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  8162. m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  8163. m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  8164. m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  8165. m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  8166. m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  8167. m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  8168. m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  8169. m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  8170. m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  8171. m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  8172. m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  8173. m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  8174. m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  8175. m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  8176. m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  8177. m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  8178. m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  8179. m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  8180. m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  8181. m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  8182. m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  8183. m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  8184. m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  8185. m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  8186. m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  8187. m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
  8188. m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
  8189. m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
  8190. m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
  8191. m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
  8192. m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
  8193. m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
  8194. # Copyright (C) 2002-2018 Free Software Foundation, Inc.
  8195. #
  8196. # This file is free software; the Free Software Foundation
  8197. # gives unlimited permission to copy and/or distribute it,
  8198. # with or without modifications, as long as this notice is preserved.
  8199. # AM_AUTOMAKE_VERSION(VERSION)
  8200. # ----------------------------
  8201. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  8202. # generated from the m4 files accompanying Automake X.Y.
  8203. # (This private macro should not be called outside this file.)
  8204. AC_DEFUN([AM_AUTOMAKE_VERSION],
  8205. [am__api_version='1.16'
  8206. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  8207. dnl require some minimum version. Point them to the right macro.
  8208. m4_if([$1], [1.16.1], [],
  8209. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  8210. ])
  8211. # _AM_AUTOCONF_VERSION(VERSION)
  8212. # -----------------------------
  8213. # aclocal traces this macro to find the Autoconf version.
  8214. # This is a private macro too. Using m4_define simplifies
  8215. # the logic in aclocal, which can simply ignore this definition.
  8216. m4_define([_AM_AUTOCONF_VERSION], [])
  8217. # AM_SET_CURRENT_AUTOMAKE_VERSION
  8218. # -------------------------------
  8219. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  8220. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  8221. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  8222. [AM_AUTOMAKE_VERSION([1.16.1])dnl
  8223. m4_ifndef([AC_AUTOCONF_VERSION],
  8224. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  8225. _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  8226. # Copyright (C) 2011-2018 Free Software Foundation, Inc.
  8227. #
  8228. # This file is free software; the Free Software Foundation
  8229. # gives unlimited permission to copy and/or distribute it,
  8230. # with or without modifications, as long as this notice is preserved.
  8231. # AM_PROG_AR([ACT-IF-FAIL])
  8232. # -------------------------
  8233. # Try to determine the archiver interface, and trigger the ar-lib wrapper
  8234. # if it is needed. If the detection of archiver interface fails, run
  8235. # ACT-IF-FAIL (default is to abort configure with a proper error message).
  8236. AC_DEFUN([AM_PROG_AR],
  8237. [AC_BEFORE([$0], [LT_INIT])dnl
  8238. AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
  8239. AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8240. AC_REQUIRE_AUX_FILE([ar-lib])dnl
  8241. AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
  8242. : ${AR=ar}
  8243. AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
  8244. [AC_LANG_PUSH([C])
  8245. am_cv_ar_interface=ar
  8246. AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
  8247. [am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  8248. AC_TRY_EVAL([am_ar_try])
  8249. if test "$ac_status" -eq 0; then
  8250. am_cv_ar_interface=ar
  8251. else
  8252. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
  8253. AC_TRY_EVAL([am_ar_try])
  8254. if test "$ac_status" -eq 0; then
  8255. am_cv_ar_interface=lib
  8256. else
  8257. am_cv_ar_interface=unknown
  8258. fi
  8259. fi
  8260. rm -f conftest.lib libconftest.a
  8261. ])
  8262. AC_LANG_POP([C])])
  8263. case $am_cv_ar_interface in
  8264. ar)
  8265. ;;
  8266. lib)
  8267. # Microsoft lib, so override with the ar-lib wrapper script.
  8268. # FIXME: It is wrong to rewrite AR.
  8269. # But if we don't then we get into trouble of one sort or another.
  8270. # A longer-term fix would be to have automake use am__AR in this case,
  8271. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  8272. # similar.
  8273. AR="$am_aux_dir/ar-lib $AR"
  8274. ;;
  8275. unknown)
  8276. m4_default([$1],
  8277. [AC_MSG_ERROR([could not determine $AR interface])])
  8278. ;;
  8279. esac
  8280. AC_SUBST([AR])dnl
  8281. ])
  8282. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  8283. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  8284. #
  8285. # This file is free software; the Free Software Foundation
  8286. # gives unlimited permission to copy and/or distribute it,
  8287. # with or without modifications, as long as this notice is preserved.
  8288. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  8289. # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
  8290. # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
  8291. #
  8292. # Of course, Automake must honor this variable whenever it calls a
  8293. # tool from the auxiliary directory. The problem is that $srcdir (and
  8294. # therefore $ac_aux_dir as well) can be either absolute or relative,
  8295. # depending on how configure is run. This is pretty annoying, since
  8296. # it makes $ac_aux_dir quite unusable in subdirectories: in the top
  8297. # source directory, any form will work fine, but in subdirectories a
  8298. # relative path needs to be adjusted first.
  8299. #
  8300. # $ac_aux_dir/missing
  8301. # fails when called from a subdirectory if $ac_aux_dir is relative
  8302. # $top_srcdir/$ac_aux_dir/missing
  8303. # fails if $ac_aux_dir is absolute,
  8304. # fails when called from a subdirectory in a VPATH build with
  8305. # a relative $ac_aux_dir
  8306. #
  8307. # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  8308. # are both prefixed by $srcdir. In an in-source build this is usually
  8309. # harmless because $srcdir is '.', but things will broke when you
  8310. # start a VPATH build or use an absolute $srcdir.
  8311. #
  8312. # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  8313. # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  8314. # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  8315. # and then we would define $MISSING as
  8316. # MISSING="\${SHELL} $am_aux_dir/missing"
  8317. # This will work as long as MISSING is not called from configure, because
  8318. # unfortunately $(top_srcdir) has no meaning in configure.
  8319. # However there are other variables, like CC, which are often used in
  8320. # configure, and could therefore not use this "fixed" $ac_aux_dir.
  8321. #
  8322. # Another solution, used here, is to always expand $ac_aux_dir to an
  8323. # absolute PATH. The drawback is that using absolute paths prevent a
  8324. # configured tree to be moved without reconfiguration.
  8325. AC_DEFUN([AM_AUX_DIR_EXPAND],
  8326. [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
  8327. # Expand $ac_aux_dir to an absolute path.
  8328. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  8329. ])
  8330. # AM_CONDITIONAL -*- Autoconf -*-
  8331. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  8332. #
  8333. # This file is free software; the Free Software Foundation
  8334. # gives unlimited permission to copy and/or distribute it,
  8335. # with or without modifications, as long as this notice is preserved.
  8336. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  8337. # -------------------------------------
  8338. # Define a conditional.
  8339. AC_DEFUN([AM_CONDITIONAL],
  8340. [AC_PREREQ([2.52])dnl
  8341. m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  8342. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  8343. AC_SUBST([$1_TRUE])dnl
  8344. AC_SUBST([$1_FALSE])dnl
  8345. _AM_SUBST_NOTMAKE([$1_TRUE])dnl
  8346. _AM_SUBST_NOTMAKE([$1_FALSE])dnl
  8347. m4_define([_AM_COND_VALUE_$1], [$2])dnl
  8348. if $2; then
  8349. $1_TRUE=
  8350. $1_FALSE='#'
  8351. else
  8352. $1_TRUE='#'
  8353. $1_FALSE=
  8354. fi
  8355. AC_CONFIG_COMMANDS_PRE(
  8356. [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  8357. AC_MSG_ERROR([[conditional "$1" was never defined.
  8358. Usually this means the macro was only invoked conditionally.]])
  8359. fi])])
  8360. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  8361. #
  8362. # This file is free software; the Free Software Foundation
  8363. # gives unlimited permission to copy and/or distribute it,
  8364. # with or without modifications, as long as this notice is preserved.
  8365. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
  8366. # written in clear, in which case automake, when reading aclocal.m4,
  8367. # will think it sees a *use*, and therefore will trigger all it's
  8368. # C support machinery. Also note that it means that autoscan, seeing
  8369. # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  8370. # _AM_DEPENDENCIES(NAME)
  8371. # ----------------------
  8372. # See how the compiler implements dependency checking.
  8373. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
  8374. # We try a few techniques and use that to set a single cache variable.
  8375. #
  8376. # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  8377. # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  8378. # dependency, and given that the user is not expected to run this macro,
  8379. # just rely on AC_PROG_CC.
  8380. AC_DEFUN([_AM_DEPENDENCIES],
  8381. [AC_REQUIRE([AM_SET_DEPDIR])dnl
  8382. AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  8383. AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  8384. AC_REQUIRE([AM_DEP_TRACK])dnl
  8385. m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
  8386. [$1], [CXX], [depcc="$CXX" am_compiler_list=],
  8387. [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  8388. [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
  8389. [$1], [UPC], [depcc="$UPC" am_compiler_list=],
  8390. [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  8391. [depcc="$$1" am_compiler_list=])
  8392. AC_CACHE_CHECK([dependency style of $depcc],
  8393. [am_cv_$1_dependencies_compiler_type],
  8394. [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  8395. # We make a subdir and do the tests there. Otherwise we can end up
  8396. # making bogus files that we don't know about and never remove. For
  8397. # instance it was reported that on HP-UX the gcc test will end up
  8398. # making a dummy file named 'D' -- because '-MD' means "put the output
  8399. # in D".
  8400. rm -rf conftest.dir
  8401. mkdir conftest.dir
  8402. # Copy depcomp to subdir because otherwise we won't find it if we're
  8403. # using a relative directory.
  8404. cp "$am_depcomp" conftest.dir
  8405. cd conftest.dir
  8406. # We will build objects and dependencies in a subdirectory because
  8407. # it helps to detect inapplicable dependency modes. For instance
  8408. # both Tru64's cc and ICC support -MD to output dependencies as a
  8409. # side effect of compilation, but ICC will put the dependencies in
  8410. # the current directory while Tru64 will put them in the object
  8411. # directory.
  8412. mkdir sub
  8413. am_cv_$1_dependencies_compiler_type=none
  8414. if test "$am_compiler_list" = ""; then
  8415. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  8416. fi
  8417. am__universal=false
  8418. m4_case([$1], [CC],
  8419. [case " $depcc " in #(
  8420. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8421. esac],
  8422. [CXX],
  8423. [case " $depcc " in #(
  8424. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  8425. esac])
  8426. for depmode in $am_compiler_list; do
  8427. # Setup a source with many dependencies, because some compilers
  8428. # like to wrap large dependency lists on column 80 (with \), and
  8429. # we should not choose a depcomp mode which is confused by this.
  8430. #
  8431. # We need to recreate these files for each test, as the compiler may
  8432. # overwrite some of them when testing with obscure command lines.
  8433. # This happens at least with the AIX C compiler.
  8434. : > sub/conftest.c
  8435. for i in 1 2 3 4 5 6; do
  8436. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  8437. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  8438. # Solaris 10 /bin/sh.
  8439. echo '/* dummy */' > sub/conftst$i.h
  8440. done
  8441. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  8442. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  8443. # mode. It turns out that the SunPro C++ compiler does not properly
  8444. # handle '-M -o', and we need to detect this. Also, some Intel
  8445. # versions had trouble with output in subdirs.
  8446. am__obj=sub/conftest.${OBJEXT-o}
  8447. am__minus_obj="-o $am__obj"
  8448. case $depmode in
  8449. gcc)
  8450. # This depmode causes a compiler race in universal mode.
  8451. test "$am__universal" = false || continue
  8452. ;;
  8453. nosideeffect)
  8454. # After this tag, mechanisms are not by side-effect, so they'll
  8455. # only be used when explicitly requested.
  8456. if test "x$enable_dependency_tracking" = xyes; then
  8457. continue
  8458. else
  8459. break
  8460. fi
  8461. ;;
  8462. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  8463. # This compiler won't grok '-c -o', but also, the minuso test has
  8464. # not run yet. These depmodes are late enough in the game, and
  8465. # so weak that their functioning should not be impacted.
  8466. am__obj=conftest.${OBJEXT-o}
  8467. am__minus_obj=
  8468. ;;
  8469. none) break ;;
  8470. esac
  8471. if depmode=$depmode \
  8472. source=sub/conftest.c object=$am__obj \
  8473. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  8474. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  8475. >/dev/null 2>conftest.err &&
  8476. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  8477. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  8478. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  8479. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  8480. # icc doesn't choke on unknown options, it will just issue warnings
  8481. # or remarks (even with -Werror). So we grep stderr for any message
  8482. # that says an option was ignored or not supported.
  8483. # When given -MP, icc 7.0 and 7.1 complain thusly:
  8484. # icc: Command line warning: ignoring option '-M'; no argument required
  8485. # The diagnosis changed in icc 8.0:
  8486. # icc: Command line remark: option '-MP' not supported
  8487. if (grep 'ignoring option' conftest.err ||
  8488. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  8489. am_cv_$1_dependencies_compiler_type=$depmode
  8490. break
  8491. fi
  8492. fi
  8493. done
  8494. cd ..
  8495. rm -rf conftest.dir
  8496. else
  8497. am_cv_$1_dependencies_compiler_type=none
  8498. fi
  8499. ])
  8500. AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  8501. AM_CONDITIONAL([am__fastdep$1], [
  8502. test "x$enable_dependency_tracking" != xno \
  8503. && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  8504. ])
  8505. # AM_SET_DEPDIR
  8506. # -------------
  8507. # Choose a directory name for dependency files.
  8508. # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
  8509. AC_DEFUN([AM_SET_DEPDIR],
  8510. [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8511. AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  8512. ])
  8513. # AM_DEP_TRACK
  8514. # ------------
  8515. AC_DEFUN([AM_DEP_TRACK],
  8516. [AC_ARG_ENABLE([dependency-tracking], [dnl
  8517. AS_HELP_STRING(
  8518. [--enable-dependency-tracking],
  8519. [do not reject slow dependency extractors])
  8520. AS_HELP_STRING(
  8521. [--disable-dependency-tracking],
  8522. [speeds up one-time build])])
  8523. if test "x$enable_dependency_tracking" != xno; then
  8524. am_depcomp="$ac_aux_dir/depcomp"
  8525. AMDEPBACKSLASH='\'
  8526. am__nodep='_no'
  8527. fi
  8528. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  8529. AC_SUBST([AMDEPBACKSLASH])dnl
  8530. _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  8531. AC_SUBST([am__nodep])dnl
  8532. _AM_SUBST_NOTMAKE([am__nodep])dnl
  8533. ])
  8534. # Generate code to set up dependency tracking. -*- Autoconf -*-
  8535. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  8536. #
  8537. # This file is free software; the Free Software Foundation
  8538. # gives unlimited permission to copy and/or distribute it,
  8539. # with or without modifications, as long as this notice is preserved.
  8540. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  8541. # ------------------------------
  8542. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  8543. [{
  8544. # Older Autoconf quotes --file arguments for eval, but not when files
  8545. # are listed without --file. Let's play safe and only enable the eval
  8546. # if we detect the quoting.
  8547. # TODO: see whether this extra hack can be removed once we start
  8548. # requiring Autoconf 2.70 or later.
  8549. AS_CASE([$CONFIG_FILES],
  8550. [*\'*], [eval set x "$CONFIG_FILES"],
  8551. [*], [set x $CONFIG_FILES])
  8552. shift
  8553. # Used to flag and report bootstrapping failures.
  8554. am_rc=0
  8555. for am_mf
  8556. do
  8557. # Strip MF so we end up with the name of the file.
  8558. am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
  8559. # Check whether this is an Automake generated Makefile which includes
  8560. # dependency-tracking related rules and includes.
  8561. # Grep'ing the whole file directly is not great: AIX grep has a line
  8562. # limit of 2048, but all sed's we know have understand at least 4000.
  8563. sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
  8564. || continue
  8565. am_dirpart=`AS_DIRNAME(["$am_mf"])`
  8566. am_filepart=`AS_BASENAME(["$am_mf"])`
  8567. AM_RUN_LOG([cd "$am_dirpart" \
  8568. && sed -e '/# am--include-marker/d' "$am_filepart" \
  8569. | $MAKE -f - am--depfiles]) || am_rc=$?
  8570. done
  8571. if test $am_rc -ne 0; then
  8572. AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
  8573. for automatic dependency tracking. Try re-running configure with the
  8574. '--disable-dependency-tracking' option to at least be able to build
  8575. the package (albeit without support for automatic dependency tracking).])
  8576. fi
  8577. AS_UNSET([am_dirpart])
  8578. AS_UNSET([am_filepart])
  8579. AS_UNSET([am_mf])
  8580. AS_UNSET([am_rc])
  8581. rm -f conftest-deps.mk
  8582. }
  8583. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  8584. # AM_OUTPUT_DEPENDENCY_COMMANDS
  8585. # -----------------------------
  8586. # This macro should only be invoked once -- use via AC_REQUIRE.
  8587. #
  8588. # This code is only required when automatic dependency tracking is enabled.
  8589. # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
  8590. # order to bootstrap the dependency handling code.
  8591. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  8592. [AC_CONFIG_COMMANDS([depfiles],
  8593. [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  8594. [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
  8595. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  8596. #
  8597. # This file is free software; the Free Software Foundation
  8598. # gives unlimited permission to copy and/or distribute it,
  8599. # with or without modifications, as long as this notice is preserved.
  8600. AC_DEFUN([AM_WITH_DMALLOC],
  8601. [AC_MSG_CHECKING([if malloc debugging is wanted])
  8602. AC_ARG_WITH([dmalloc],
  8603. [AS_HELP_STRING([--with-dmalloc],
  8604. [use dmalloc, as in http://www.dmalloc.com])],
  8605. [if test "$withval" = yes; then
  8606. AC_MSG_RESULT([yes])
  8607. AC_DEFINE([WITH_DMALLOC], [1],
  8608. [Define if using the dmalloc debugging malloc package])
  8609. LIBS="$LIBS -ldmalloc"
  8610. LDFLAGS="$LDFLAGS -g"
  8611. else
  8612. AC_MSG_RESULT([no])
  8613. fi], [AC_MSG_RESULT([no])])
  8614. ])
  8615. # Do all the work for Automake. -*- Autoconf -*-
  8616. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  8617. #
  8618. # This file is free software; the Free Software Foundation
  8619. # gives unlimited permission to copy and/or distribute it,
  8620. # with or without modifications, as long as this notice is preserved.
  8621. # This macro actually does too much. Some checks are only needed if
  8622. # your package does certain things. But this isn't really a big deal.
  8623. dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
  8624. m4_define([AC_PROG_CC],
  8625. m4_defn([AC_PROG_CC])
  8626. [_AM_PROG_CC_C_O
  8627. ])
  8628. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  8629. # AM_INIT_AUTOMAKE([OPTIONS])
  8630. # -----------------------------------------------
  8631. # The call with PACKAGE and VERSION arguments is the old style
  8632. # call (pre autoconf-2.50), which is being phased out. PACKAGE
  8633. # and VERSION should now be passed to AC_INIT and removed from
  8634. # the call to AM_INIT_AUTOMAKE.
  8635. # We support both call styles for the transition. After
  8636. # the next Automake release, Autoconf can make the AC_INIT
  8637. # arguments mandatory, and then we can depend on a new Autoconf
  8638. # release and drop the old call support.
  8639. AC_DEFUN([AM_INIT_AUTOMAKE],
  8640. [AC_PREREQ([2.65])dnl
  8641. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  8642. dnl the ones we care about.
  8643. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  8644. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  8645. AC_REQUIRE([AC_PROG_INSTALL])dnl
  8646. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  8647. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  8648. # is not polluted with repeated "-I."
  8649. AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  8650. # test to see if srcdir already configured
  8651. if test -f $srcdir/config.status; then
  8652. AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  8653. fi
  8654. fi
  8655. # test whether we have cygpath
  8656. if test -z "$CYGPATH_W"; then
  8657. if (cygpath --version) >/dev/null 2>/dev/null; then
  8658. CYGPATH_W='cygpath -w'
  8659. else
  8660. CYGPATH_W=echo
  8661. fi
  8662. fi
  8663. AC_SUBST([CYGPATH_W])
  8664. # Define the identity of the package.
  8665. dnl Distinguish between old-style and new-style calls.
  8666. m4_ifval([$2],
  8667. [AC_DIAGNOSE([obsolete],
  8668. [$0: two- and three-arguments forms are deprecated.])
  8669. m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  8670. AC_SUBST([PACKAGE], [$1])dnl
  8671. AC_SUBST([VERSION], [$2])],
  8672. [_AM_SET_OPTIONS([$1])dnl
  8673. dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  8674. m4_if(
  8675. m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
  8676. [ok:ok],,
  8677. [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  8678. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  8679. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  8680. _AM_IF_OPTION([no-define],,
  8681. [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
  8682. AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
  8683. # Some tools Automake needs.
  8684. AC_REQUIRE([AM_SANITY_CHECK])dnl
  8685. AC_REQUIRE([AC_ARG_PROGRAM])dnl
  8686. AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
  8687. AM_MISSING_PROG([AUTOCONF], [autoconf])
  8688. AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
  8689. AM_MISSING_PROG([AUTOHEADER], [autoheader])
  8690. AM_MISSING_PROG([MAKEINFO], [makeinfo])
  8691. AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  8692. AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  8693. AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  8694. # For better backward compatibility. To be removed once Automake 1.9.x
  8695. # dies out for good. For more background, see:
  8696. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  8697. # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  8698. AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
  8699. # We need awk for the "check" target (and possibly the TAP driver). The
  8700. # system "awk" is bad on some platforms.
  8701. AC_REQUIRE([AC_PROG_AWK])dnl
  8702. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  8703. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  8704. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  8705. [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  8706. [_AM_PROG_TAR([v7])])])
  8707. _AM_IF_OPTION([no-dependencies],,
  8708. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  8709. [_AM_DEPENDENCIES([CC])],
  8710. [m4_define([AC_PROG_CC],
  8711. m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
  8712. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  8713. [_AM_DEPENDENCIES([CXX])],
  8714. [m4_define([AC_PROG_CXX],
  8715. m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
  8716. AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  8717. [_AM_DEPENDENCIES([OBJC])],
  8718. [m4_define([AC_PROG_OBJC],
  8719. m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
  8720. AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
  8721. [_AM_DEPENDENCIES([OBJCXX])],
  8722. [m4_define([AC_PROG_OBJCXX],
  8723. m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
  8724. ])
  8725. AC_REQUIRE([AM_SILENT_RULES])dnl
  8726. dnl The testsuite driver may need to know about EXEEXT, so add the
  8727. dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
  8728. dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
  8729. AC_CONFIG_COMMANDS_PRE(dnl
  8730. [m4_provide_if([_AM_COMPILER_EXEEXT],
  8731. [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  8732. # POSIX will say in a future version that running "rm -f" with no argument
  8733. # is OK; and we want to be able to make that assumption in our Makefile
  8734. # recipes. So use an aggressive probe to check that the usage we want is
  8735. # actually supported "in the wild" to an acceptable degree.
  8736. # See automake bug#10828.
  8737. # To make any issue more visible, cause the running configure to be aborted
  8738. # by default if the 'rm' program in use doesn't match our expectations; the
  8739. # user can still override this though.
  8740. if rm -f && rm -fr && rm -rf; then : OK; else
  8741. cat >&2 <<'END'
  8742. Oops!
  8743. Your 'rm' program seems unable to run without file operands specified
  8744. on the command line, even when the '-f' option is present. This is contrary
  8745. to the behaviour of most rm programs out there, and not conforming with
  8746. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  8747. Please tell bug-automake@gnu.org about your system, including the value
  8748. of your $PATH and any error possibly output before this message. This
  8749. can help us improve future automake versions.
  8750. END
  8751. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  8752. echo 'Configuration will proceed anyway, since you have set the' >&2
  8753. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  8754. echo >&2
  8755. else
  8756. cat >&2 <<'END'
  8757. Aborting the configuration process, to ensure you take notice of the issue.
  8758. You can download and install GNU coreutils to get an 'rm' implementation
  8759. that behaves properly: <https://www.gnu.org/software/coreutils/>.
  8760. If you want to complete the configuration process using your problematic
  8761. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  8762. to "yes", and re-run configure.
  8763. END
  8764. AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
  8765. fi
  8766. fi
  8767. dnl The trailing newline in this macro's definition is deliberate, for
  8768. dnl backward compatibility and to allow trailing 'dnl'-style comments
  8769. dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
  8770. ])
  8771. dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  8772. dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  8773. dnl mangled by Autoconf and run in a shell conditional statement.
  8774. m4_define([_AC_COMPILER_EXEEXT],
  8775. m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  8776. # When config.status generates a header, we must update the stamp-h file.
  8777. # This file resides in the same directory as the config header
  8778. # that is generated. The stamp files are numbered to have different names.
  8779. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  8780. # loop where config.status creates the headers, so we can generate
  8781. # our stamp files there.
  8782. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  8783. [# Compute $1's index in $config_headers.
  8784. _am_arg=$1
  8785. _am_stamp_count=1
  8786. for _am_header in $config_headers :; do
  8787. case $_am_header in
  8788. $_am_arg | $_am_arg:* )
  8789. break ;;
  8790. * )
  8791. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  8792. esac
  8793. done
  8794. echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  8795. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  8796. #
  8797. # This file is free software; the Free Software Foundation
  8798. # gives unlimited permission to copy and/or distribute it,
  8799. # with or without modifications, as long as this notice is preserved.
  8800. # AM_PROG_INSTALL_SH
  8801. # ------------------
  8802. # Define $install_sh.
  8803. AC_DEFUN([AM_PROG_INSTALL_SH],
  8804. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8805. if test x"${install_sh+set}" != xset; then
  8806. case $am_aux_dir in
  8807. *\ * | *\ *)
  8808. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  8809. *)
  8810. install_sh="\${SHELL} $am_aux_dir/install-sh"
  8811. esac
  8812. fi
  8813. AC_SUBST([install_sh])])
  8814. # Copyright (C) 2003-2018 Free Software Foundation, Inc.
  8815. #
  8816. # This file is free software; the Free Software Foundation
  8817. # gives unlimited permission to copy and/or distribute it,
  8818. # with or without modifications, as long as this notice is preserved.
  8819. # Check whether the underlying file-system supports filenames
  8820. # with a leading dot. For instance MS-DOS doesn't.
  8821. AC_DEFUN([AM_SET_LEADING_DOT],
  8822. [rm -rf .tst 2>/dev/null
  8823. mkdir .tst 2>/dev/null
  8824. if test -d .tst; then
  8825. am__leading_dot=.
  8826. else
  8827. am__leading_dot=_
  8828. fi
  8829. rmdir .tst 2>/dev/null
  8830. AC_SUBST([am__leading_dot])])
  8831. # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
  8832. # From Jim Meyering
  8833. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  8834. #
  8835. # This file is free software; the Free Software Foundation
  8836. # gives unlimited permission to copy and/or distribute it,
  8837. # with or without modifications, as long as this notice is preserved.
  8838. # AM_MAINTAINER_MODE([DEFAULT-MODE])
  8839. # ----------------------------------
  8840. # Control maintainer-specific portions of Makefiles.
  8841. # Default is to disable them, unless 'enable' is passed literally.
  8842. # For symmetry, 'disable' may be passed as well. Anyway, the user
  8843. # can override the default with the --enable/--disable switch.
  8844. AC_DEFUN([AM_MAINTAINER_MODE],
  8845. [m4_case(m4_default([$1], [disable]),
  8846. [enable], [m4_define([am_maintainer_other], [disable])],
  8847. [disable], [m4_define([am_maintainer_other], [enable])],
  8848. [m4_define([am_maintainer_other], [enable])
  8849. m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
  8850. AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  8851. dnl maintainer-mode's default is 'disable' unless 'enable' is passed
  8852. AC_ARG_ENABLE([maintainer-mode],
  8853. [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
  8854. am_maintainer_other[ make rules and dependencies not useful
  8855. (and sometimes confusing) to the casual installer])],
  8856. [USE_MAINTAINER_MODE=$enableval],
  8857. [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
  8858. AC_MSG_RESULT([$USE_MAINTAINER_MODE])
  8859. AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
  8860. MAINT=$MAINTAINER_MODE_TRUE
  8861. AC_SUBST([MAINT])dnl
  8862. ]
  8863. )
  8864. # Check to see how 'make' treats includes. -*- Autoconf -*-
  8865. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  8866. #
  8867. # This file is free software; the Free Software Foundation
  8868. # gives unlimited permission to copy and/or distribute it,
  8869. # with or without modifications, as long as this notice is preserved.
  8870. # AM_MAKE_INCLUDE()
  8871. # -----------------
  8872. # Check whether make has an 'include' directive that can support all
  8873. # the idioms we need for our automatic dependency tracking code.
  8874. AC_DEFUN([AM_MAKE_INCLUDE],
  8875. [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
  8876. cat > confinc.mk << 'END'
  8877. am__doit:
  8878. @echo this is the am__doit target >confinc.out
  8879. .PHONY: am__doit
  8880. END
  8881. am__include="#"
  8882. am__quote=
  8883. # BSD make does it like this.
  8884. echo '.include "confinc.mk" # ignored' > confmf.BSD
  8885. # Other make implementations (GNU, Solaris 10, AIX) do it like this.
  8886. echo 'include confinc.mk # ignored' > confmf.GNU
  8887. _am_result=no
  8888. for s in GNU BSD; do
  8889. AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
  8890. AS_CASE([$?:`cat confinc.out 2>/dev/null`],
  8891. ['0:this is the am__doit target'],
  8892. [AS_CASE([$s],
  8893. [BSD], [am__include='.include' am__quote='"'],
  8894. [am__include='include' am__quote=''])])
  8895. if test "$am__include" != "#"; then
  8896. _am_result="yes ($s style)"
  8897. break
  8898. fi
  8899. done
  8900. rm -f confinc.* confmf.*
  8901. AC_MSG_RESULT([${_am_result}])
  8902. AC_SUBST([am__include])])
  8903. AC_SUBST([am__quote])])
  8904. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  8905. # Copyright (C) 1997-2018 Free Software Foundation, Inc.
  8906. #
  8907. # This file is free software; the Free Software Foundation
  8908. # gives unlimited permission to copy and/or distribute it,
  8909. # with or without modifications, as long as this notice is preserved.
  8910. # AM_MISSING_PROG(NAME, PROGRAM)
  8911. # ------------------------------
  8912. AC_DEFUN([AM_MISSING_PROG],
  8913. [AC_REQUIRE([AM_MISSING_HAS_RUN])
  8914. $1=${$1-"${am_missing_run}$2"}
  8915. AC_SUBST($1)])
  8916. # AM_MISSING_HAS_RUN
  8917. # ------------------
  8918. # Define MISSING if not defined so far and test if it is modern enough.
  8919. # If it is, set am_missing_run to use it, otherwise, to nothing.
  8920. AC_DEFUN([AM_MISSING_HAS_RUN],
  8921. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8922. AC_REQUIRE_AUX_FILE([missing])dnl
  8923. if test x"${MISSING+set}" != xset; then
  8924. case $am_aux_dir in
  8925. *\ * | *\ *)
  8926. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  8927. *)
  8928. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  8929. esac
  8930. fi
  8931. # Use eval to expand $SHELL
  8932. if eval "$MISSING --is-lightweight"; then
  8933. am_missing_run="$MISSING "
  8934. else
  8935. am_missing_run=
  8936. AC_MSG_WARN(['missing' script is too old or missing])
  8937. fi
  8938. ])
  8939. # Helper functions for option handling. -*- Autoconf -*-
  8940. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  8941. #
  8942. # This file is free software; the Free Software Foundation
  8943. # gives unlimited permission to copy and/or distribute it,
  8944. # with or without modifications, as long as this notice is preserved.
  8945. # _AM_MANGLE_OPTION(NAME)
  8946. # -----------------------
  8947. AC_DEFUN([_AM_MANGLE_OPTION],
  8948. [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  8949. # _AM_SET_OPTION(NAME)
  8950. # --------------------
  8951. # Set option NAME. Presently that only means defining a flag for this option.
  8952. AC_DEFUN([_AM_SET_OPTION],
  8953. [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
  8954. # _AM_SET_OPTIONS(OPTIONS)
  8955. # ------------------------
  8956. # OPTIONS is a space-separated list of Automake options.
  8957. AC_DEFUN([_AM_SET_OPTIONS],
  8958. [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  8959. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  8960. # -------------------------------------------
  8961. # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  8962. AC_DEFUN([_AM_IF_OPTION],
  8963. [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  8964. # Copyright (C) 1999-2018 Free Software Foundation, Inc.
  8965. #
  8966. # This file is free software; the Free Software Foundation
  8967. # gives unlimited permission to copy and/or distribute it,
  8968. # with or without modifications, as long as this notice is preserved.
  8969. # _AM_PROG_CC_C_O
  8970. # ---------------
  8971. # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
  8972. # to automatically call this.
  8973. AC_DEFUN([_AM_PROG_CC_C_O],
  8974. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  8975. AC_REQUIRE_AUX_FILE([compile])dnl
  8976. AC_LANG_PUSH([C])dnl
  8977. AC_CACHE_CHECK(
  8978. [whether $CC understands -c and -o together],
  8979. [am_cv_prog_cc_c_o],
  8980. [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
  8981. # Make sure it works both with $CC and with simple cc.
  8982. # Following AC_PROG_CC_C_O, we do the test twice because some
  8983. # compilers refuse to overwrite an existing .o file with -o,
  8984. # though they will create one.
  8985. am_cv_prog_cc_c_o=yes
  8986. for am_i in 1 2; do
  8987. if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
  8988. && test -f conftest2.$ac_objext; then
  8989. : OK
  8990. else
  8991. am_cv_prog_cc_c_o=no
  8992. break
  8993. fi
  8994. done
  8995. rm -f core conftest*
  8996. unset am_i])
  8997. if test "$am_cv_prog_cc_c_o" != yes; then
  8998. # Losing compiler, so override with the script.
  8999. # FIXME: It is wrong to rewrite CC.
  9000. # But if we don't then we get into trouble of one sort or another.
  9001. # A longer-term fix would be to have automake use am__CC in this case,
  9002. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  9003. CC="$am_aux_dir/compile $CC"
  9004. fi
  9005. AC_LANG_POP([C])])
  9006. # For backward compatibility.
  9007. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
  9008. # Copyright (C) 2001-2018 Free Software Foundation, Inc.
  9009. #
  9010. # This file is free software; the Free Software Foundation
  9011. # gives unlimited permission to copy and/or distribute it,
  9012. # with or without modifications, as long as this notice is preserved.
  9013. # AM_RUN_LOG(COMMAND)
  9014. # -------------------
  9015. # Run COMMAND, save the exit status in ac_status, and log it.
  9016. # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
  9017. AC_DEFUN([AM_RUN_LOG],
  9018. [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
  9019. ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
  9020. ac_status=$?
  9021. echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  9022. (exit $ac_status); }])
  9023. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  9024. # Copyright (C) 1996-2018 Free Software Foundation, Inc.
  9025. #
  9026. # This file is free software; the Free Software Foundation
  9027. # gives unlimited permission to copy and/or distribute it,
  9028. # with or without modifications, as long as this notice is preserved.
  9029. # AM_SANITY_CHECK
  9030. # ---------------
  9031. AC_DEFUN([AM_SANITY_CHECK],
  9032. [AC_MSG_CHECKING([whether build environment is sane])
  9033. # Reject unsafe characters in $srcdir or the absolute working directory
  9034. # name. Accept space and tab only in the latter.
  9035. am_lf='
  9036. '
  9037. case `pwd` in
  9038. *[[\\\"\#\$\&\'\`$am_lf]]*)
  9039. AC_MSG_ERROR([unsafe absolute working directory name]);;
  9040. esac
  9041. case $srcdir in
  9042. *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  9043. AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
  9044. esac
  9045. # Do 'set' in a subshell so we don't clobber the current shell's
  9046. # arguments. Must try -L first in case configure is actually a
  9047. # symlink; some systems play weird games with the mod time of symlinks
  9048. # (eg FreeBSD returns the mod time of the symlink's containing
  9049. # directory).
  9050. if (
  9051. am_has_slept=no
  9052. for am_try in 1 2; do
  9053. echo "timestamp, slept: $am_has_slept" > conftest.file
  9054. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  9055. if test "$[*]" = "X"; then
  9056. # -L didn't work.
  9057. set X `ls -t "$srcdir/configure" conftest.file`
  9058. fi
  9059. if test "$[*]" != "X $srcdir/configure conftest.file" \
  9060. && test "$[*]" != "X conftest.file $srcdir/configure"; then
  9061. # If neither matched, then we have a broken ls. This can happen
  9062. # if, for instance, CONFIG_SHELL is bash and it inherits a
  9063. # broken ls alias from the environment. This has actually
  9064. # happened. Such a system could not be considered "sane".
  9065. AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  9066. alias in your environment])
  9067. fi
  9068. if test "$[2]" = conftest.file || test $am_try -eq 2; then
  9069. break
  9070. fi
  9071. # Just in case.
  9072. sleep 1
  9073. am_has_slept=yes
  9074. done
  9075. test "$[2]" = conftest.file
  9076. )
  9077. then
  9078. # Ok.
  9079. :
  9080. else
  9081. AC_MSG_ERROR([newly created file is older than distributed files!
  9082. Check your system clock])
  9083. fi
  9084. AC_MSG_RESULT([yes])
  9085. # If we didn't sleep, we still need to ensure time stamps of config.status and
  9086. # generated files are strictly newer.
  9087. am_sleep_pid=
  9088. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  9089. ( sleep 1 ) &
  9090. am_sleep_pid=$!
  9091. fi
  9092. AC_CONFIG_COMMANDS_PRE(
  9093. [AC_MSG_CHECKING([that generated files are newer than configure])
  9094. if test -n "$am_sleep_pid"; then
  9095. # Hide warnings about reused PIDs.
  9096. wait $am_sleep_pid 2>/dev/null
  9097. fi
  9098. AC_MSG_RESULT([done])])
  9099. rm -f conftest.file
  9100. ])
  9101. # Copyright (C) 2009-2018 Free Software Foundation, Inc.
  9102. #
  9103. # This file is free software; the Free Software Foundation
  9104. # gives unlimited permission to copy and/or distribute it,
  9105. # with or without modifications, as long as this notice is preserved.
  9106. # AM_SILENT_RULES([DEFAULT])
  9107. # --------------------------
  9108. # Enable less verbose build rules; with the default set to DEFAULT
  9109. # ("yes" being less verbose, "no" or empty being verbose).
  9110. AC_DEFUN([AM_SILENT_RULES],
  9111. [AC_ARG_ENABLE([silent-rules], [dnl
  9112. AS_HELP_STRING(
  9113. [--enable-silent-rules],
  9114. [less verbose build output (undo: "make V=1")])
  9115. AS_HELP_STRING(
  9116. [--disable-silent-rules],
  9117. [verbose build output (undo: "make V=0")])dnl
  9118. ])
  9119. case $enable_silent_rules in @%:@ (((
  9120. yes) AM_DEFAULT_VERBOSITY=0;;
  9121. no) AM_DEFAULT_VERBOSITY=1;;
  9122. *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
  9123. esac
  9124. dnl
  9125. dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
  9126. dnl do not support nested variable expansions.
  9127. dnl See automake bug#9928 and bug#10237.
  9128. am_make=${MAKE-make}
  9129. AC_CACHE_CHECK([whether $am_make supports nested variables],
  9130. [am_cv_make_support_nested_variables],
  9131. [if AS_ECHO([['TRUE=$(BAR$(V))