aclocal.m4 311 KB

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