aclocal.m4 265 KB

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