You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

aclocal.m4 267KB

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