aclocal.m4 264 KB

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