aclocal.m4 311 KB

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