patch-aclocal_m4 417 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- libtirpc-0.2.0.orig/aclocal.m4 2009-05-29 00:13:37.000000000 +0200
  3. +++ libtirpc-0.2.0/aclocal.m4 2009-05-29 20:18:53.426131776 +0200
  4. @@ -1,4 +1,4 @@
  5. -# generated automatically by aclocal 1.10.1 -*- Autoconf -*-
  6. +# generated automatically by aclocal 1.10.2 -*- Autoconf -*-
  7. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  8. # 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  9. @@ -13,108 +13,194 @@
  10. m4_ifndef([AC_AUTOCONF_VERSION],
  11. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  12. -m4_if(AC_AUTOCONF_VERSION, [2.63],,
  13. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
  14. [m4_warning([this file was generated for autoconf 2.63.
  15. You have another version of autoconf. It may work, but is not guaranteed to.
  16. If you have problems, you may need to regenerate the build system entirely.
  17. To do so, use the procedure documented by the package, typically `autoreconf'.])])
  18. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  19. +#
  20. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  21. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  22. +# Written by Gordon Matzigkeit, 1996
  23. +#
  24. +# This file is free software; the Free Software Foundation gives
  25. +# unlimited permission to copy and/or distribute it, with or without
  26. +# modifications, as long as this notice is preserved.
  27. -# serial 52 AC_PROG_LIBTOOL
  28. +m4_define([_LT_COPYING], [dnl
  29. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  30. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  31. +# Written by Gordon Matzigkeit, 1996
  32. +#
  33. +# This file is part of GNU Libtool.
  34. +#
  35. +# GNU Libtool is free software; you can redistribute it and/or
  36. +# modify it under the terms of the GNU General Public License as
  37. +# published by the Free Software Foundation; either version 2 of
  38. +# the License, or (at your option) any later version.
  39. +#
  40. +# As a special exception to the GNU General Public License,
  41. +# if you distribute this file as part of a program or library that
  42. +# is built using GNU Libtool, you may include this file under the
  43. +# same distribution terms that you use for the rest of that program.
  44. +#
  45. +# GNU Libtool is distributed in the hope that it will be useful,
  46. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  47. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  48. +# GNU General Public License for more details.
  49. +#
  50. +# You should have received a copy of the GNU General Public License
  51. +# along with GNU Libtool; see the file COPYING. If not, a copy
  52. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  53. +# obtained by writing to the Free Software Foundation, Inc.,
  54. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  55. +])
  56. +# serial 56 LT_INIT
  57. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  58. -# -----------------------------------------------------------
  59. -# If this macro is not defined by Autoconf, define it here.
  60. -m4_ifdef([AC_PROVIDE_IFELSE],
  61. - [],
  62. - [m4_define([AC_PROVIDE_IFELSE],
  63. - [m4_ifdef([AC_PROVIDE_$1],
  64. - [$2], [$3])])])
  65. +# LT_PREREQ(VERSION)
  66. +# ------------------
  67. +# Complain and exit if this libtool version is less that VERSION.
  68. +m4_defun([LT_PREREQ],
  69. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  70. + [m4_default([$3],
  71. + [m4_fatal([Libtool version $1 or higher is required],
  72. + 63)])],
  73. + [$2])])
  74. -# AC_PROG_LIBTOOL
  75. -# ---------------
  76. -AC_DEFUN([AC_PROG_LIBTOOL],
  77. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  78. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  79. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  80. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  81. - [AC_LIBTOOL_CXX],
  82. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  83. - ])])
  84. -dnl And a similar setup for Fortran 77 support
  85. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  86. - [AC_LIBTOOL_F77],
  87. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  88. -])])
  89. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  90. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  91. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  92. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  93. - [AC_LIBTOOL_GCJ],
  94. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  95. - [AC_LIBTOOL_GCJ],
  96. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  97. - [AC_LIBTOOL_GCJ],
  98. - [ifdef([AC_PROG_GCJ],
  99. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  100. - ifdef([A][M_PROG_GCJ],
  101. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  102. - ifdef([LT_AC_PROG_GCJ],
  103. - [define([LT_AC_PROG_GCJ],
  104. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  105. -])])# AC_PROG_LIBTOOL
  106. +# _LT_CHECK_BUILDDIR
  107. +# ------------------
  108. +# Complain if the absolute build directory name contains unusual characters
  109. +m4_defun([_LT_CHECK_BUILDDIR],
  110. +[case `pwd` in
  111. + *\ * | *\ *)
  112. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  113. +esac
  114. +])
  115. -# _AC_PROG_LIBTOOL
  116. -# ----------------
  117. -AC_DEFUN([_AC_PROG_LIBTOOL],
  118. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  119. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  120. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  121. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  122. +# LT_INIT([OPTIONS])
  123. +# ------------------
  124. +AC_DEFUN([LT_INIT],
  125. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  126. +AC_BEFORE([$0], [LT_LANG])dnl
  127. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  128. +AC_BEFORE([$0], [LTDL_INIT])dnl
  129. +m4_require([_LT_CHECK_BUILDDIR])dnl
  130. +
  131. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  132. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  133. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  134. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  135. +dnl unless we require an AC_DEFUNed macro:
  136. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  137. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  138. +AC_REQUIRE([LTVERSION_VERSION])dnl
  139. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  140. +m4_require([_LT_PROG_LTMAIN])dnl
  141. +
  142. +dnl Parse OPTIONS
  143. +_LT_SET_OPTIONS([$0], [$1])
  144. # This can be used to rebuild libtool when needed
  145. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  146. +LIBTOOL_DEPS="$ltmain"
  147. # Always use our own libtool.
  148. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  149. AC_SUBST(LIBTOOL)dnl
  150. -# Prevent multiple expansion
  151. -define([AC_PROG_LIBTOOL], [])
  152. -])# _AC_PROG_LIBTOOL
  153. +_LT_SETUP
  154. +# Only expand once:
  155. +m4_define([LT_INIT])
  156. +])# LT_INIT
  157. -# AC_LIBTOOL_SETUP
  158. -# ----------------
  159. -AC_DEFUN([AC_LIBTOOL_SETUP],
  160. -[AC_PREREQ(2.50)dnl
  161. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  162. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  163. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  164. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  165. +# Old names:
  166. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  167. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  168. +dnl aclocal-1.4 backwards compatibility:
  169. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  170. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  171. +
  172. +
  173. +# _LT_CC_BASENAME(CC)
  174. +# -------------------
  175. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  176. +m4_defun([_LT_CC_BASENAME],
  177. +[for cc_temp in $1""; do
  178. + case $cc_temp in
  179. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  180. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  181. + \-*) ;;
  182. + *) break;;
  183. + esac
  184. +done
  185. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  186. +])
  187. +
  188. +
  189. +# _LT_FILEUTILS_DEFAULTS
  190. +# ----------------------
  191. +# It is okay to use these file commands and assume they have been set
  192. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  193. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  194. +[: ${CP="cp -f"}
  195. +: ${MV="mv -f"}
  196. +: ${RM="rm -f"}
  197. +])# _LT_FILEUTILS_DEFAULTS
  198. +
  199. +
  200. +# _LT_SETUP
  201. +# ---------
  202. +m4_defun([_LT_SETUP],
  203. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  204. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  205. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  206. +_LT_DECL([], [host], [0])dnl
  207. +_LT_DECL([], [host_os], [0])dnl
  208. +dnl
  209. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  210. +_LT_DECL([], [build], [0])dnl
  211. +_LT_DECL([], [build_os], [0])dnl
  212. +dnl
  213. AC_REQUIRE([AC_PROG_CC])dnl
  214. -AC_REQUIRE([AC_PROG_LD])dnl
  215. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  216. -AC_REQUIRE([AC_PROG_NM])dnl
  217. -
  218. +AC_REQUIRE([LT_PATH_LD])dnl
  219. +AC_REQUIRE([LT_PATH_NM])dnl
  220. +dnl
  221. AC_REQUIRE([AC_PROG_LN_S])dnl
  222. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  223. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  224. -AC_REQUIRE([AC_OBJEXT])dnl
  225. -AC_REQUIRE([AC_EXEEXT])dnl
  226. +test -z "$LN_S" && LN_S="ln -s"
  227. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  228. dnl
  229. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  230. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  231. -AC_LIBTOOL_OBJDIR
  232. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  233. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  234. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  235. +dnl
  236. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  237. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  238. +m4_require([_LT_CMD_RELOAD])dnl
  239. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  240. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  241. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  242. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  243. -_LT_AC_PROG_ECHO_BACKSLASH
  244. +_LT_CONFIG_LIBTOOL_INIT([
  245. +# See if we are running on zsh, and set the options which allow our
  246. +# commands through without removal of \ escapes INIT.
  247. +if test -n "\${ZSH_VERSION+set}" ; then
  248. + setopt NO_GLOB_SUBST
  249. +fi
  250. +])
  251. +if test -n "${ZSH_VERSION+set}" ; then
  252. + setopt NO_GLOB_SUBST
  253. +fi
  254. +
  255. +_LT_CHECK_OBJDIR
  256. +
  257. +m4_require([_LT_TAG_COMPILER])dnl
  258. +_LT_PROG_ECHO_BACKSLASH
  259. case $host_os in
  260. aix3*)
  261. @@ -130,116 +216,653 @@ esac
  262. # Sed substitution that helps us do robust quoting. It backslashifies
  263. # metacharacters that are still active within double-quoted strings.
  264. -Xsed='sed -e 1s/^X//'
  265. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  266. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  267. # Same as above, but do not quote variable references.
  268. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  269. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  270. # Sed substitution to delay expansion of an escaped shell variable in a
  271. # double_quote_subst'ed string.
  272. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  273. +# Sed substitution to delay expansion of an escaped single quote.
  274. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  275. +
  276. # Sed substitution to avoid accidental globbing in evaled expressions
  277. no_glob_subst='s/\*/\\\*/g'
  278. -# Constants:
  279. -rm="rm -f"
  280. -
  281. # Global variables:
  282. -default_ofile=libtool
  283. +ofile=libtool
  284. can_build_shared=yes
  285. # All known linkers require a `.a' archive for static linking (except MSVC,
  286. # which needs '.lib').
  287. libext=a
  288. -ltmain="$ac_aux_dir/ltmain.sh"
  289. -ofile="$default_ofile"
  290. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  291. -AC_CHECK_TOOL(AR, ar, false)
  292. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  293. -AC_CHECK_TOOL(STRIP, strip, :)
  294. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  295. old_CC="$CC"
  296. old_CFLAGS="$CFLAGS"
  297. # Set sane defaults for various variables
  298. -test -z "$AR" && AR=ar
  299. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  300. -test -z "$AS" && AS=as
  301. test -z "$CC" && CC=cc
  302. test -z "$LTCC" && LTCC=$CC
  303. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  304. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  305. test -z "$LD" && LD=ld
  306. -test -z "$LN_S" && LN_S="ln -s"
  307. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  308. -test -z "$NM" && NM=nm
  309. -test -z "$SED" && SED=sed
  310. -test -z "$OBJDUMP" && OBJDUMP=objdump
  311. -test -z "$RANLIB" && RANLIB=:
  312. -test -z "$STRIP" && STRIP=:
  313. test -z "$ac_objext" && ac_objext=o
  314. -# Determine commands to create old-style static archives.
  315. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  316. -old_postinstall_cmds='chmod 644 $oldlib'
  317. -old_postuninstall_cmds=
  318. -
  319. -if test -n "$RANLIB"; then
  320. - case $host_os in
  321. - openbsd*)
  322. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  323. - ;;
  324. - *)
  325. - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  326. - ;;
  327. - esac
  328. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  329. -fi
  330. -
  331. _LT_CC_BASENAME([$compiler])
  332. # Only perform the check for file, if the check method requires it
  333. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  334. case $deplibs_check_method in
  335. file_magic*)
  336. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  337. - AC_PATH_MAGIC
  338. + _LT_PATH_MAGIC
  339. fi
  340. ;;
  341. esac
  342. -_LT_REQUIRED_DARWIN_CHECKS
  343. +# Use C for the default configuration in the libtool script
  344. +LT_SUPPORTED_TAG([CC])
  345. +_LT_LANG_C_CONFIG
  346. +_LT_LANG_DEFAULT_CONFIG
  347. +_LT_CONFIG_COMMANDS
  348. +])# _LT_SETUP
  349. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  350. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  351. -enable_win32_dll=yes, enable_win32_dll=no)
  352. -AC_ARG_ENABLE([libtool-lock],
  353. - [AC_HELP_STRING([--disable-libtool-lock],
  354. - [avoid locking (might break parallel builds)])])
  355. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  356. +# _LT_PROG_LTMAIN
  357. +# ---------------
  358. +# Note that this code is called both from `configure', and `config.status'
  359. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  360. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  361. +# so we pass a copy along to make sure it has a sensible value anyway.
  362. +m4_defun([_LT_PROG_LTMAIN],
  363. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  364. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  365. +ltmain="$ac_aux_dir/ltmain.sh"
  366. +])# _LT_PROG_LTMAIN
  367. -AC_ARG_WITH([pic],
  368. - [AC_HELP_STRING([--with-pic],
  369. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  370. - [pic_mode="$withval"],
  371. - [pic_mode=default])
  372. -test -z "$pic_mode" && pic_mode=default
  373. -# Use C for the default configuration in the libtool script
  374. -tagname=
  375. -AC_LIBTOOL_LANG_C_CONFIG
  376. -_LT_AC_TAGCONFIG
  377. -])# AC_LIBTOOL_SETUP
  378. +# So that we can recreate a full libtool script including additional
  379. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  380. +# in macros and then make a single call at the end using the `libtool'
  381. +# label.
  382. -# _LT_AC_SYS_COMPILER
  383. +
  384. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  385. +# ----------------------------------------
  386. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  387. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  388. +[m4_ifval([$1],
  389. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  390. + [$1
  391. +])])])
  392. +
  393. +# Initialize.
  394. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  395. +
  396. +
  397. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  398. +# ------------------------------
  399. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  400. +m4_define([_LT_CONFIG_LIBTOOL],
  401. +[m4_ifval([$1],
  402. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  403. + [$1
  404. +])])])
  405. +
  406. +# Initialize.
  407. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  408. +
  409. +
  410. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  411. +# -----------------------------------------------------
  412. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  413. +[_LT_CONFIG_LIBTOOL([$1])
  414. +_LT_CONFIG_LIBTOOL_INIT([$2])
  415. +])
  416. +
  417. +
  418. +# _LT_FORMAT_COMMENT([COMMENT])
  419. +# -----------------------------
  420. +# Add leading comment marks to the start of each line, and a trailing
  421. +# full-stop to the whole comment if one is not present already.
  422. +m4_define([_LT_FORMAT_COMMENT],
  423. +[m4_ifval([$1], [
  424. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  425. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  426. +)])
  427. +
  428. +
  429. +
  430. +
  431. +
  432. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  433. +# -------------------------------------------------------------------
  434. +# CONFIGNAME is the name given to the value in the libtool script.
  435. +# VARNAME is the (base) name used in the configure script.
  436. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  437. +# VARNAME. Any other value will be used directly.
  438. +m4_define([_LT_DECL],
  439. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  440. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  441. + [m4_ifval([$1], [$1], [$2])])
  442. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  443. + m4_ifval([$4],
  444. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  445. + lt_dict_add_subkey([lt_decl_dict], [$2],
  446. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  447. +])
  448. +
  449. +
  450. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  451. +# --------------------------------------------------------
  452. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  453. +
  454. +
  455. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  456. +# ------------------------------------------------
  457. +m4_define([lt_decl_tag_varnames],
  458. +[_lt_decl_filter([tagged?], [yes], $@)])
  459. +
  460. +
  461. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  462. +# ---------------------------------------------------------
  463. +m4_define([_lt_decl_filter],
  464. +[m4_case([$#],
  465. + [0], [m4_fatal([$0: too few arguments: $#])],
  466. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  467. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  468. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  469. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  470. +])
  471. +
  472. +
  473. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  474. +# --------------------------------------------------
  475. +m4_define([lt_decl_quote_varnames],
  476. +[_lt_decl_filter([value], [1], $@)])
  477. +
  478. +
  479. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  480. +# ---------------------------------------------------
  481. +m4_define([lt_decl_dquote_varnames],
  482. +[_lt_decl_filter([value], [2], $@)])
  483. +
  484. +
  485. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  486. +# ---------------------------------------------------
  487. +m4_define([lt_decl_varnames_tagged],
  488. +[m4_assert([$# <= 2])dnl
  489. +_$0(m4_quote(m4_default([$1], [[, ]])),
  490. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  491. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  492. +m4_define([_lt_decl_varnames_tagged],
  493. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  494. +
  495. +
  496. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  497. +# ------------------------------------------------
  498. +m4_define([lt_decl_all_varnames],
  499. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  500. + m4_if([$2], [],
  501. + m4_quote(lt_decl_varnames),
  502. + m4_quote(m4_shift($@))))[]dnl
  503. +])
  504. +m4_define([_lt_decl_all_varnames],
  505. +[lt_join($@, lt_decl_varnames_tagged([$1],
  506. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  507. +])
  508. +
  509. +
  510. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  511. +# ------------------------------------
  512. +# Quote a variable value, and forward it to `config.status' so that its
  513. +# declaration there will have the same value as in `configure'. VARNAME
  514. +# must have a single quote delimited value for this to work.
  515. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  516. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  517. +
  518. +
  519. +# _LT_CONFIG_STATUS_DECLARATIONS
  520. +# ------------------------------
  521. +# We delimit libtool config variables with single quotes, so when
  522. +# we write them to config.status, we have to be sure to quote all
  523. +# embedded single quotes properly. In configure, this macro expands
  524. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  525. +#
  526. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  527. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  528. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  529. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  530. +
  531. +
  532. +# _LT_LIBTOOL_TAGS
  533. +# ----------------
  534. +# Output comment and list of tags supported by the script
  535. +m4_defun([_LT_LIBTOOL_TAGS],
  536. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  537. +available_tags="_LT_TAGS"dnl
  538. +])
  539. +
  540. +
  541. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  542. +# -----------------------------------
  543. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  544. +# expand to a commented shell variable setting:
  545. +#
  546. +# # Some comment about what VAR is for.
  547. +# visible_name=$lt_internal_name
  548. +m4_define([_LT_LIBTOOL_DECLARE],
  549. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  550. + [description])))[]dnl
  551. +m4_pushdef([_libtool_name],
  552. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  553. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  554. + [0], [_libtool_name=[$]$1],
  555. + [1], [_libtool_name=$lt_[]$1],
  556. + [2], [_libtool_name=$lt_[]$1],
  557. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  558. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  559. +])
  560. +
  561. +
  562. +# _LT_LIBTOOL_CONFIG_VARS
  563. +# -----------------------
  564. +# Produce commented declarations of non-tagged libtool config variables
  565. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  566. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  567. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  568. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  569. +[m4_foreach([_lt_var],
  570. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  571. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  572. +
  573. +
  574. +# _LT_LIBTOOL_TAG_VARS(TAG)
  575. +# -------------------------
  576. +m4_define([_LT_LIBTOOL_TAG_VARS],
  577. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  578. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  579. +
  580. +
  581. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  582. +# ------------------------------
  583. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  584. +
  585. +
  586. +# _LT_CONFIG_COMMANDS
  587. # -------------------
  588. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  589. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  590. +# variables for single and double quote escaping we saved from calls
  591. +# to _LT_DECL, we can put quote escaped variables declarations
  592. +# into `config.status', and then the shell code to quote escape them in
  593. +# for loops in `config.status'. Finally, any additional code accumulated
  594. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  595. +m4_defun([_LT_CONFIG_COMMANDS],
  596. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  597. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  598. + dnl instead of duplicating it all over again into config.status,
  599. + dnl then we will have config.status run $CONFIG_LT later, so it
  600. + dnl needs to know what name is stored there:
  601. + [AC_CONFIG_COMMANDS([libtool],
  602. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  603. + dnl If the libtool generation code is destined for config.status,
  604. + dnl expand the accumulated commands and init code now:
  605. + [AC_CONFIG_COMMANDS([libtool],
  606. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  607. +])#_LT_CONFIG_COMMANDS
  608. +
  609. +
  610. +# Initialize.
  611. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  612. +[
  613. +
  614. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  615. +# if CDPATH is set.
  616. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  617. +
  618. +sed_quote_subst='$sed_quote_subst'
  619. +double_quote_subst='$double_quote_subst'
  620. +delay_variable_subst='$delay_variable_subst'
  621. +_LT_CONFIG_STATUS_DECLARATIONS
  622. +LTCC='$LTCC'
  623. +LTCFLAGS='$LTCFLAGS'
  624. +compiler='$compiler_DEFAULT'
  625. +
  626. +# Quote evaled strings.
  627. +for var in lt_decl_all_varnames([[ \
  628. +]], lt_decl_quote_varnames); do
  629. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  630. + *[[\\\\\\\`\\"\\\$]]*)
  631. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  632. + ;;
  633. + *)
  634. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  635. + ;;
  636. + esac
  637. +done
  638. +
  639. +# Double-quote double-evaled strings.
  640. +for var in lt_decl_all_varnames([[ \
  641. +]], lt_decl_dquote_varnames); do
  642. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  643. + *[[\\\\\\\`\\"\\\$]]*)
  644. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  645. + ;;
  646. + *)
  647. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  648. + ;;
  649. + esac
  650. +done
  651. +
  652. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  653. +case \$lt_ECHO in
  654. +*'\\\[$]0 --fallback-echo"')dnl "
  655. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  656. + ;;
  657. +esac
  658. +
  659. +_LT_OUTPUT_LIBTOOL_INIT
  660. +])
  661. +
  662. +
  663. +# LT_OUTPUT
  664. +# ---------
  665. +# This macro allows early generation of the libtool script (before
  666. +# AC_OUTPUT is called), incase it is used in configure for compilation
  667. +# tests.
  668. +AC_DEFUN([LT_OUTPUT],
  669. +[: ${CONFIG_LT=./config.lt}
  670. +AC_MSG_NOTICE([creating $CONFIG_LT])
  671. +cat >"$CONFIG_LT" <<_LTEOF
  672. +#! $SHELL
  673. +# Generated by $as_me.
  674. +# Run this file to recreate a libtool stub with the current configuration.
  675. +
  676. +lt_cl_silent=false
  677. +SHELL=\${CONFIG_SHELL-$SHELL}
  678. +_LTEOF
  679. +
  680. +cat >>"$CONFIG_LT" <<\_LTEOF
  681. +AS_SHELL_SANITIZE
  682. +_AS_PREPARE
  683. +
  684. +exec AS_MESSAGE_FD>&1
  685. +exec AS_MESSAGE_LOG_FD>>config.log
  686. +{
  687. + echo
  688. + AS_BOX([Running $as_me.])
  689. +} >&AS_MESSAGE_LOG_FD
  690. +
  691. +lt_cl_help="\
  692. +\`$as_me' creates a local libtool stub from the current configuration,
  693. +for use in further configure time tests before the real libtool is
  694. +generated.
  695. +
  696. +Usage: $[0] [[OPTIONS]]
  697. +
  698. + -h, --help print this help, then exit
  699. + -V, --version print version number, then exit
  700. + -q, --quiet do not print progress messages
  701. + -d, --debug don't remove temporary files
  702. +
  703. +Report bugs to <bug-libtool@gnu.org>."
  704. +
  705. +lt_cl_version="\
  706. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  707. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  708. +configured by $[0], generated by m4_PACKAGE_STRING.
  709. +
  710. +Copyright (C) 2008 Free Software Foundation, Inc.
  711. +This config.lt script is free software; the Free Software Foundation
  712. +gives unlimited permision to copy, distribute and modify it."
  713. +
  714. +while test $[#] != 0
  715. +do
  716. + case $[1] in
  717. + --version | --v* | -V )
  718. + echo "$lt_cl_version"; exit 0 ;;
  719. + --help | --h* | -h )
  720. + echo "$lt_cl_help"; exit 0 ;;
  721. + --debug | --d* | -d )
  722. + debug=: ;;
  723. + --quiet | --q* | --silent | --s* | -q )
  724. + lt_cl_silent=: ;;
  725. +
  726. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  727. +Try \`$[0] --help' for more information.]) ;;
  728. +
  729. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  730. +Try \`$[0] --help' for more information.]) ;;
  731. + esac
  732. + shift
  733. +done
  734. +
  735. +if $lt_cl_silent; then
  736. + exec AS_MESSAGE_FD>/dev/null
  737. +fi
  738. +_LTEOF
  739. +
  740. +cat >>"$CONFIG_LT" <<_LTEOF
  741. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  742. +_LTEOF
  743. +
  744. +cat >>"$CONFIG_LT" <<\_LTEOF
  745. +AC_MSG_NOTICE([creating $ofile])
  746. +_LT_OUTPUT_LIBTOOL_COMMANDS
  747. +AS_EXIT(0)
  748. +_LTEOF
  749. +chmod +x "$CONFIG_LT"
  750. +
  751. +# configure is writing to config.log, but config.lt does its own redirection,
  752. +# appending to config.log, which fails on DOS, as config.log is still kept
  753. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  754. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  755. +if test "$no_create" != yes; then
  756. + lt_cl_success=:
  757. + test "$silent" = yes &&
  758. + lt_config_lt_args="$lt_config_lt_args --quiet"
  759. + exec AS_MESSAGE_LOG_FD>/dev/null
  760. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  761. + exec AS_MESSAGE_LOG_FD>>config.log
  762. + $lt_cl_success || AS_EXIT(1)
  763. +fi
  764. +])# LT_OUTPUT
  765. +
  766. +
  767. +# _LT_CONFIG(TAG)
  768. +# ---------------
  769. +# If TAG is the built-in tag, create an initial libtool script with a
  770. +# default configuration from the untagged config vars. Otherwise add code
  771. +# to config.status for appending the configuration named by TAG from the
  772. +# matching tagged config vars.
  773. +m4_defun([_LT_CONFIG],
  774. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  775. +_LT_CONFIG_SAVE_COMMANDS([
  776. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  777. + m4_if(_LT_TAG, [C], [
  778. + # See if we are running on zsh, and set the options which allow our
  779. + # commands through without removal of \ escapes.
  780. + if test -n "${ZSH_VERSION+set}" ; then
  781. + setopt NO_GLOB_SUBST
  782. + fi
  783. +
  784. + cfgfile="${ofile}T"
  785. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  786. + $RM "$cfgfile"
  787. +
  788. + cat <<_LT_EOF >> "$cfgfile"
  789. +#! $SHELL
  790. +
  791. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  792. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  793. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  794. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  795. +#
  796. +_LT_COPYING
  797. +_LT_LIBTOOL_TAGS
  798. +
  799. +# ### BEGIN LIBTOOL CONFIG
  800. +_LT_LIBTOOL_CONFIG_VARS
  801. +_LT_LIBTOOL_TAG_VARS
  802. +# ### END LIBTOOL CONFIG
  803. +
  804. +_LT_EOF
  805. +
  806. + case $host_os in
  807. + aix3*)
  808. + cat <<\_LT_EOF >> "$cfgfile"
  809. +# AIX sometimes has problems with the GCC collect2 program. For some
  810. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  811. +# vanish in a puff of smoke.
  812. +if test "X${COLLECT_NAMES+set}" != Xset; then
  813. + COLLECT_NAMES=
  814. + export COLLECT_NAMES
  815. +fi
  816. +_LT_EOF
  817. + ;;
  818. + esac
  819. +
  820. + _LT_PROG_LTMAIN
  821. +
  822. + # We use sed instead of cat because bash on DJGPP gets confused if
  823. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  824. + # text mode, it properly converts lines to CR/LF. This bash problem
  825. + # is reportedly fixed, but why not run on old versions too?
  826. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  827. + || (rm -f "$cfgfile"; exit 1)
  828. +
  829. + _LT_PROG_XSI_SHELLFNS
  830. +
  831. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  832. + || (rm -f "$cfgfile"; exit 1)
  833. +
  834. + mv -f "$cfgfile" "$ofile" ||
  835. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  836. + chmod +x "$ofile"
  837. +],
  838. +[cat <<_LT_EOF >> "$ofile"
  839. +
  840. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  841. +dnl in a comment (ie after a #).
  842. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  843. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  844. +# ### END LIBTOOL TAG CONFIG: $1
  845. +_LT_EOF
  846. +])dnl /m4_if
  847. +],
  848. +[m4_if([$1], [], [
  849. + PACKAGE='$PACKAGE'
  850. + VERSION='$VERSION'
  851. + TIMESTAMP='$TIMESTAMP'
  852. + RM='$RM'
  853. + ofile='$ofile'], [])
  854. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  855. +])# _LT_CONFIG
  856. +
  857. +
  858. +# LT_SUPPORTED_TAG(TAG)
  859. +# ---------------------
  860. +# Trace this macro to discover what tags are supported by the libtool
  861. +# --tag option, using:
  862. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  863. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  864. +
  865. +
  866. +# C support is built-in for now
  867. +m4_define([_LT_LANG_C_enabled], [])
  868. +m4_define([_LT_TAGS], [])
  869. +
  870. +
  871. +# LT_LANG(LANG)
  872. +# -------------
  873. +# Enable libtool support for the given language if not already enabled.
  874. +AC_DEFUN([LT_LANG],
  875. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  876. +m4_case([$1],
  877. + [C], [_LT_LANG(C)],
  878. + [C++], [_LT_LANG(CXX)],
  879. + [Java], [_LT_LANG(GCJ)],
  880. + [Fortran 77], [_LT_LANG(F77)],
  881. + [Fortran], [_LT_LANG(FC)],
  882. + [Windows Resource], [_LT_LANG(RC)],
  883. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  884. + [_LT_LANG($1)],
  885. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  886. +])# LT_LANG
  887. +
  888. +
  889. +# _LT_LANG(LANGNAME)
  890. +# ------------------
  891. +m4_defun([_LT_LANG],
  892. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  893. + [LT_SUPPORTED_TAG([$1])dnl
  894. + m4_append([_LT_TAGS], [$1 ])dnl
  895. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  896. + _LT_LANG_$1_CONFIG($1)])dnl
  897. +])# _LT_LANG
  898. +
  899. +
  900. +# _LT_LANG_DEFAULT_CONFIG
  901. +# -----------------------
  902. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  903. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  904. + [LT_LANG(CXX)],
  905. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  906. +
  907. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  908. + [LT_LANG(F77)],
  909. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  910. +
  911. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  912. + [LT_LANG(FC)],
  913. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  914. +
  915. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  916. +dnl pulling things in needlessly.
  917. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  918. + [LT_LANG(GCJ)],
  919. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  920. + [LT_LANG(GCJ)],
  921. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  922. + [LT_LANG(GCJ)],
  923. + [m4_ifdef([AC_PROG_GCJ],
  924. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  925. + m4_ifdef([A][M_PROG_GCJ],
  926. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  927. + m4_ifdef([LT_PROG_GCJ],
  928. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  929. +
  930. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  931. + [LT_LANG(RC)],
  932. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  933. +])# _LT_LANG_DEFAULT_CONFIG
  934. +
  935. +# Obsolete macros:
  936. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  937. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  938. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  939. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  940. +dnl aclocal-1.4 backwards compatibility:
  941. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  942. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  943. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  944. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  945. +
  946. +
  947. +# _LT_TAG_COMPILER
  948. +# ----------------
  949. +m4_defun([_LT_TAG_COMPILER],
  950. [AC_REQUIRE([AC_PROG_CC])dnl
  951. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  952. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  953. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  954. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  955. +
  956. # If no C compiler was specified, use CC.
  957. LTCC=${LTCC-"$CC"}
  958. @@ -248,36 +871,20 @@ LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  959. # Allow CC to be a program name with arguments.
  960. compiler=$CC
  961. -])# _LT_AC_SYS_COMPILER
  962. -
  963. -
  964. -# _LT_CC_BASENAME(CC)
  965. -# -------------------
  966. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  967. -AC_DEFUN([_LT_CC_BASENAME],
  968. -[for cc_temp in $1""; do
  969. - case $cc_temp in
  970. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  971. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  972. - \-*) ;;
  973. - *) break;;
  974. - esac
  975. -done
  976. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  977. -])
  978. +])# _LT_TAG_COMPILER
  979. # _LT_COMPILER_BOILERPLATE
  980. # ------------------------
  981. # Check for compiler boilerplate output or warnings with
  982. # the simple compiler test code.
  983. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  984. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  985. +m4_defun([_LT_COMPILER_BOILERPLATE],
  986. +[m4_require([_LT_DECL_SED])dnl
  987. ac_outfile=conftest.$ac_objext
  988. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  989. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  990. _lt_compiler_boilerplate=`cat conftest.err`
  991. -$rm conftest*
  992. +$RM conftest*
  993. ])# _LT_COMPILER_BOILERPLATE
  994. @@ -285,39 +892,57 @@ $rm conftest*
  995. # ----------------------
  996. # Check for linker boilerplate output or warnings with
  997. # the simple link test code.
  998. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  999. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1000. +m4_defun([_LT_LINKER_BOILERPLATE],
  1001. +[m4_require([_LT_DECL_SED])dnl
  1002. ac_outfile=conftest.$ac_objext
  1003. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1004. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1005. _lt_linker_boilerplate=`cat conftest.err`
  1006. -$rm -r conftest*
  1007. +$RM -r conftest*
  1008. ])# _LT_LINKER_BOILERPLATE
  1009. # _LT_REQUIRED_DARWIN_CHECKS
  1010. -# --------------------------
  1011. -# Check for some things on darwin
  1012. -AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1013. +# -------------------------
  1014. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1015. case $host_os in
  1016. rhapsody* | darwin*)
  1017. AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1018. AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1019. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1020. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1021. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1022. + _LT_DECL([], [DSYMUTIL], [1],
  1023. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1024. + _LT_DECL([], [NMEDIT], [1],
  1025. + [Tool to change global to local symbols on Mac OS X])
  1026. + _LT_DECL([], [LIPO], [1],
  1027. + [Tool to manipulate fat objects and archives on Mac OS X])
  1028. + _LT_DECL([], [OTOOL], [1],
  1029. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1030. + _LT_DECL([], [OTOOL64], [1],
  1031. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1032. AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1033. [lt_cv_apple_cc_single_mod=no
  1034. if test -z "${LT_MULTI_MODULE}"; then
  1035. - # By default we will add the -single_module flag. You can override
  1036. - # by either setting the environment variable LT_MULTI_MODULE
  1037. - # non-empty at configure time, or by adding -multi_module to the
  1038. - # link flags.
  1039. - echo "int foo(void){return 1;}" > conftest.c
  1040. - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1041. - -dynamiclib ${wl}-single_module conftest.c
  1042. - if test -f libconftest.dylib; then
  1043. - lt_cv_apple_cc_single_mod=yes
  1044. - rm -rf libconftest.dylib*
  1045. - fi
  1046. - rm conftest.c
  1047. + # By default we will add the -single_module flag. You can override
  1048. + # by either setting the environment variable LT_MULTI_MODULE
  1049. + # non-empty at configure time, or by adding -multi_module to the
  1050. + # link flags.
  1051. + rm -rf libconftest.dylib*
  1052. + echo "int foo(void){return 1;}" > conftest.c
  1053. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1054. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1055. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1056. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1057. + _lt_result=$?
  1058. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1059. + lt_cv_apple_cc_single_mod=yes
  1060. + else
  1061. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1062. + fi
  1063. + rm -rf libconftest.dylib*
  1064. + rm -f conftest.*
  1065. fi])
  1066. AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1067. [lt_cv_ld_exported_symbols_list],
  1068. @@ -326,26 +951,26 @@ AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1069. echo "_main" > conftest.sym
  1070. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1071. AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1072. - [lt_cv_ld_exported_symbols_list=yes],
  1073. - [lt_cv_ld_exported_symbols_list=no])
  1074. - LDFLAGS="$save_LDFLAGS"
  1075. + [lt_cv_ld_exported_symbols_list=yes],
  1076. + [lt_cv_ld_exported_symbols_list=no])
  1077. + LDFLAGS="$save_LDFLAGS"
  1078. ])
  1079. case $host_os in
  1080. - rhapsody* | darwin1.[[0123]])
  1081. + rhapsody* | darwin1.[[012]])
  1082. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1083. darwin1.*)
  1084. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1085. - darwin*)
  1086. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1087. + darwin*) # darwin 5.x on
  1088. # if running on 10.5 or later, the deployment target defaults
  1089. # to the OS version, if on x86, and 10.4, the deployment
  1090. # target defaults to 10.4. Don't you love it?
  1091. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1092. - 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1093. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1094. - 10.[[012]]*)
  1095. - _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1096. - 10.*)
  1097. - _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1098. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1099. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1100. + 10.[[012]]*)
  1101. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1102. + 10.*)
  1103. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1104. esac
  1105. ;;
  1106. esac
  1107. @@ -355,10 +980,10 @@ AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1108. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1109. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1110. else
  1111. - _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
  1112. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1113. fi
  1114. if test "$DSYMUTIL" != ":"; then
  1115. - _lt_dsymutil="~$DSYMUTIL \$lib || :"
  1116. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1117. else
  1118. _lt_dsymutil=
  1119. fi
  1120. @@ -366,16 +991,51 @@ AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
  1121. esac
  1122. ])
  1123. -# _LT_AC_SYS_LIBPATH_AIX
  1124. -# ----------------------
  1125. +
  1126. +# _LT_DARWIN_LINKER_FEATURES
  1127. +# --------------------------
  1128. +# Checks for linker and compiler features on darwin
  1129. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1130. +[
  1131. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1132. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1133. + _LT_TAGVAR(hardcode_direct, $1)=no
  1134. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1135. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1136. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1137. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1138. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1139. + case $cc_basename in
  1140. + ifort*) _lt_dar_can_shared=yes ;;
  1141. + *) _lt_dar_can_shared=$GCC ;;
  1142. + esac
  1143. + if test "$_lt_dar_can_shared" = "yes"; then
  1144. + output_verbose_link_cmd=echo
  1145. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1146. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1147. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1148. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1149. + m4_if([$1], [CXX],
  1150. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1151. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1152. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1153. + fi
  1154. +],[])
  1155. + else
  1156. + _LT_TAGVAR(ld_shlibs, $1)=no
  1157. + fi
  1158. +])
  1159. +
  1160. +# _LT_SYS_MODULE_PATH_AIX
  1161. +# -----------------------
  1162. # Links a minimal program and checks the executable
  1163. # for the system default hardcoded library path. In most cases,
  1164. # this is /usr/lib:/lib, but when the MPI compilers are used
  1165. # the location of the communication and MPI libs are included too.
  1166. # If we don't find anything, use the default library path according
  1167. # to the aix ld manual.
  1168. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1169. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1170. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1171. +[m4_require([_LT_DECL_SED])dnl
  1172. AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1173. lt_aix_libpath_sed='
  1174. /Import File Strings/,/^$/ {
  1175. @@ -390,45 +1050,45 @@ if test -z "$aix_libpath"; then
  1176. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1177. fi],[])
  1178. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1179. -])# _LT_AC_SYS_LIBPATH_AIX
  1180. +])# _LT_SYS_MODULE_PATH_AIX
  1181. -# _LT_AC_SHELL_INIT(ARG)
  1182. -# ----------------------
  1183. -AC_DEFUN([_LT_AC_SHELL_INIT],
  1184. +# _LT_SHELL_INIT(ARG)
  1185. +# -------------------
  1186. +m4_define([_LT_SHELL_INIT],
  1187. [ifdef([AC_DIVERSION_NOTICE],
  1188. [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1189. [AC_DIVERT_PUSH(NOTICE)])
  1190. $1
  1191. AC_DIVERT_POP
  1192. -])# _LT_AC_SHELL_INIT
  1193. +])# _LT_SHELL_INIT
  1194. -# _LT_AC_PROG_ECHO_BACKSLASH
  1195. -# --------------------------
  1196. +# _LT_PROG_ECHO_BACKSLASH
  1197. +# -----------------------
  1198. # Add some code to the start of the generated configure script which
  1199. # will find an echo command which doesn't interpret backslashes.
  1200. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1201. -[_LT_AC_SHELL_INIT([
  1202. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1203. +[_LT_SHELL_INIT([
  1204. # Check that we are running under the correct shell.
  1205. SHELL=${CONFIG_SHELL-/bin/sh}
  1206. -case X$ECHO in
  1207. +case X$lt_ECHO in
  1208. X*--fallback-echo)
  1209. # Remove one level of quotation (which was required for Make).
  1210. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1211. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1212. ;;
  1213. esac
  1214. -echo=${ECHO-echo}
  1215. +ECHO=${lt_ECHO-echo}
  1216. if test "X[$]1" = X--no-reexec; then
  1217. # Discard the --no-reexec flag, and continue.
  1218. shift
  1219. elif test "X[$]1" = X--fallback-echo; then
  1220. # Avoid inline document here, it may be left over
  1221. :
  1222. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1223. - # Yippee, $echo works!
  1224. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1225. + # Yippee, $ECHO works!
  1226. :
  1227. else
  1228. # Restart under the correct shell.
  1229. @@ -438,9 +1098,9 @@ fi
  1230. if test "X[$]1" = X--fallback-echo; then
  1231. # used as fallback echo
  1232. shift
  1233. - cat <<EOF
  1234. + cat <<_LT_EOF
  1235. [$]*
  1236. -EOF
  1237. +_LT_EOF
  1238. exit 0
  1239. fi
  1240. @@ -448,124 +1108,127 @@ fi
  1241. # if CDPATH is set.
  1242. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1243. -if test -z "$ECHO"; then
  1244. -if test "X${echo_test_string+set}" != Xset; then
  1245. -# find a string as large as possible, as long as the shell can cope with it
  1246. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1247. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1248. - if (echo_test_string=`eval $cmd`) 2>/dev/null &&
  1249. - echo_test_string=`eval $cmd` &&
  1250. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1251. - then
  1252. - break
  1253. - fi
  1254. - done
  1255. -fi
  1256. +if test -z "$lt_ECHO"; then
  1257. + if test "X${echo_test_string+set}" != Xset; then
  1258. + # find a string as large as possible, as long as the shell can cope with it
  1259. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1260. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1261. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1262. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1263. + then
  1264. + break
  1265. + fi
  1266. + done
  1267. + fi
  1268. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1269. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1270. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1271. - :
  1272. -else
  1273. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  1274. - # backslashes. This makes it impossible to quote backslashes using
  1275. - # echo "$something" | sed 's/\\/\\\\/g'
  1276. - #
  1277. - # So, first we look for a working echo in the user's PATH.
  1278. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1279. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1280. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1281. + :
  1282. + else
  1283. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1284. + # backslashes. This makes it impossible to quote backslashes using
  1285. + # echo "$something" | sed 's/\\/\\\\/g'
  1286. + #
  1287. + # So, first we look for a working echo in the user's PATH.
  1288. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1289. - for dir in $PATH /usr/ucb; do
  1290. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1291. + for dir in $PATH /usr/ucb; do
  1292. + IFS="$lt_save_ifs"
  1293. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1294. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1295. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1296. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1297. + ECHO="$dir/echo"
  1298. + break
  1299. + fi
  1300. + done
  1301. IFS="$lt_save_ifs"
  1302. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1303. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1304. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1305. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1306. - echo="$dir/echo"
  1307. - break
  1308. - fi
  1309. - done
  1310. - IFS="$lt_save_ifs"
  1311. - if test "X$echo" = Xecho; then
  1312. - # We didn't find a better echo, so look for alternatives.
  1313. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1314. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1315. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1316. - # This shell has a builtin print -r that does the trick.
  1317. - echo='print -r'
  1318. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1319. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  1320. - # If we have ksh, try running configure again with it.
  1321. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1322. - export ORIGINAL_CONFIG_SHELL
  1323. - CONFIG_SHELL=/bin/ksh
  1324. - export CONFIG_SHELL
  1325. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1326. - else
  1327. - # Try using printf.
  1328. - echo='printf %s\n'
  1329. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1330. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1331. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1332. - # Cool, printf works
  1333. - :
  1334. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1335. - test "X$echo_testing_string" = 'X\t' &&
  1336. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1337. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1338. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1339. - export CONFIG_SHELL
  1340. - SHELL="$CONFIG_SHELL"
  1341. - export SHELL
  1342. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1343. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1344. - test "X$echo_testing_string" = 'X\t' &&
  1345. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1346. - test "X$echo_testing_string" = "X$echo_test_string"; then
  1347. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1348. + if test "X$ECHO" = Xecho; then
  1349. + # We didn't find a better echo, so look for alternatives.
  1350. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1351. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1352. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1353. + # This shell has a builtin print -r that does the trick.
  1354. + ECHO='print -r'
  1355. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1356. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1357. + # If we have ksh, try running configure again with it.
  1358. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1359. + export ORIGINAL_CONFIG_SHELL
  1360. + CONFIG_SHELL=/bin/ksh
  1361. + export CONFIG_SHELL
  1362. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1363. else
  1364. - # maybe with a smaller string...
  1365. - prev=:
  1366. + # Try using printf.
  1367. + ECHO='printf %s\n'
  1368. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1369. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1370. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1371. + # Cool, printf works
  1372. + :
  1373. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1374. + test "X$echo_testing_string" = 'X\t' &&
  1375. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1376. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1377. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1378. + export CONFIG_SHELL
  1379. + SHELL="$CONFIG_SHELL"
  1380. + export SHELL
  1381. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1382. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1383. + test "X$echo_testing_string" = 'X\t' &&
  1384. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1385. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1386. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1387. + else
  1388. + # maybe with a smaller string...
  1389. + prev=:
  1390. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1391. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1392. - then
  1393. - break
  1394. - fi
  1395. - prev="$cmd"
  1396. - done
  1397. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1398. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1399. + then
  1400. + break
  1401. + fi
  1402. + prev="$cmd"
  1403. + done
  1404. - if test "$prev" != 'sed 50q "[$]0"'; then
  1405. - echo_test_string=`eval $prev`
  1406. - export echo_test_string
  1407. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1408. - else
  1409. - # Oops. We lost completely, so just stick with echo.
  1410. - echo=echo
  1411. - fi
  1412. + if test "$prev" != 'sed 50q "[$]0"'; then
  1413. + echo_test_string=`eval $prev`
  1414. + export echo_test_string
  1415. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1416. + else
  1417. + # Oops. We lost completely, so just stick with echo.
  1418. + ECHO=echo
  1419. + fi
  1420. + fi
  1421. fi
  1422. fi
  1423. fi
  1424. fi
  1425. -fi
  1426. # Copy echo and quote the copy suitably for passing to libtool from
  1427. # the Makefile, instead of quoting the original, which is used later.
  1428. -ECHO=$echo
  1429. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1430. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1431. +lt_ECHO=$ECHO
  1432. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1433. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1434. fi
  1435. -AC_SUBST(ECHO)
  1436. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  1437. +AC_SUBST(lt_ECHO)
  1438. +])
  1439. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  1440. +_LT_DECL([], [ECHO], [1],
  1441. + [An echo program that does not interpret backslashes])
  1442. +])# _LT_PROG_ECHO_BACKSLASH
  1443. -# _LT_AC_LOCK
  1444. -# -----------
  1445. -AC_DEFUN([_LT_AC_LOCK],
  1446. +# _LT_ENABLE_LOCK
  1447. +# ---------------
  1448. +m4_defun([_LT_ENABLE_LOCK],
  1449. [AC_ARG_ENABLE([libtool-lock],
  1450. - [AC_HELP_STRING([--disable-libtool-lock],
  1451. - [avoid locking (might break parallel builds)])])
  1452. + [AS_HELP_STRING([--disable-libtool-lock],
  1453. + [avoid locking (might break parallel builds)])])
  1454. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1455. # Some flags need to be propagated to the compiler or linker for good
  1456. @@ -576,12 +1239,12 @@ ia64-*-hpux*)
  1457. echo 'int i;' > conftest.$ac_ext
  1458. if AC_TRY_EVAL(ac_compile); then
  1459. case `/usr/bin/file conftest.$ac_objext` in
  1460. - *ELF-32*)
  1461. - HPUX_IA64_MODE="32"
  1462. - ;;
  1463. - *ELF-64*)
  1464. - HPUX_IA64_MODE="64"
  1465. - ;;
  1466. + *ELF-32*)
  1467. + HPUX_IA64_MODE="32"
  1468. + ;;
  1469. + *ELF-64*)
  1470. + HPUX_IA64_MODE="64"
  1471. + ;;
  1472. esac
  1473. fi
  1474. rm -rf conftest*
  1475. @@ -590,80 +1253,79 @@ ia64-*-hpux*)
  1476. # Find out which ABI we are using.
  1477. echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1478. if AC_TRY_EVAL(ac_compile); then
  1479. - if test "$lt_cv_prog_gnu_ld" = yes; then
  1480. - case `/usr/bin/file conftest.$ac_objext` in
  1481. - *32-bit*)
  1482. - LD="${LD-ld} -melf32bsmip"
  1483. - ;;
  1484. - *N32*)
  1485. - LD="${LD-ld} -melf32bmipn32"
  1486. - ;;
  1487. - *64-bit*)
  1488. - LD="${LD-ld} -melf64bmip"
  1489. - ;;
  1490. - esac
  1491. - else
  1492. - case `/usr/bin/file conftest.$ac_objext` in
  1493. - *32-bit*)
  1494. - LD="${LD-ld} -32"
  1495. - ;;
  1496. - *N32*)
  1497. - LD="${LD-ld} -n32"
  1498. - ;;
  1499. - *64-bit*)
  1500. - LD="${LD-ld} -64"
  1501. - ;;
  1502. - esac
  1503. - fi
  1504. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1505. + case `/usr/bin/file conftest.$ac_objext` in
  1506. + *32-bit*)
  1507. + LD="${LD-ld} -melf32bsmip"
  1508. + ;;
  1509. + *N32*)
  1510. + LD="${LD-ld} -melf32bmipn32"
  1511. + ;;
  1512. + *64-bit*)
  1513. + LD="${LD-ld} -melf64bmip"
  1514. + ;;
  1515. + esac
  1516. + else
  1517. + case `/usr/bin/file conftest.$ac_objext` in
  1518. + *32-bit*)
  1519. + LD="${LD-ld} -32"
  1520. + ;;
  1521. + *N32*)
  1522. + LD="${LD-ld} -n32"
  1523. + ;;
  1524. + *64-bit*)
  1525. + LD="${LD-ld} -64"
  1526. + ;;
  1527. + esac
  1528. + fi
  1529. fi
  1530. rm -rf conftest*
  1531. ;;
  1532. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  1533. -s390*-*linux*|sparc*-*linux*)
  1534. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  1535. # Find out which ABI we are using.
  1536. echo 'int i;' > conftest.$ac_ext
  1537. if AC_TRY_EVAL(ac_compile); then
  1538. case `/usr/bin/file conftest.o` in
  1539. - *32-bit*)
  1540. - case $host in
  1541. - x86_64-*kfreebsd*-gnu)
  1542. - LD="${LD-ld} -m elf_i386_fbsd"
  1543. - ;;
  1544. - x86_64-*linux*)
  1545. - LD="${LD-ld} -m elf_i386"
  1546. - ;;
  1547. - ppc64-*linux*|powerpc64-*linux*)
  1548. - LD="${LD-ld} -m elf32ppclinux"
  1549. - ;;
  1550. - s390x-*linux*)
  1551. - LD="${LD-ld} -m elf_s390"
  1552. - ;;
  1553. - sparc64-*linux*)
  1554. - LD="${LD-ld} -m elf32_sparc"
  1555. - ;;
  1556. - esac
  1557. - ;;
  1558. - *64-bit*)
  1559. - libsuff=64
  1560. - case $host in
  1561. - x86_64-*kfreebsd*-gnu)
  1562. - LD="${LD-ld} -m elf_x86_64_fbsd"
  1563. - ;;
  1564. - x86_64-*linux*)
  1565. - LD="${LD-ld} -m elf_x86_64"
  1566. - ;;
  1567. - ppc*-*linux*|powerpc*-*linux*)
  1568. - LD="${LD-ld} -m elf64ppc"
  1569. - ;;
  1570. - s390*-*linux*)
  1571. - LD="${LD-ld} -m elf64_s390"
  1572. - ;;
  1573. - sparc*-*linux*)
  1574. - LD="${LD-ld} -m elf64_sparc"
  1575. - ;;
  1576. - esac
  1577. - ;;
  1578. + *32-bit*)
  1579. + case $host in
  1580. + x86_64-*kfreebsd*-gnu)
  1581. + LD="${LD-ld} -m elf_i386_fbsd"
  1582. + ;;
  1583. + x86_64-*linux*)
  1584. + LD="${LD-ld} -m elf_i386"
  1585. + ;;
  1586. + ppc64-*linux*|powerpc64-*linux*)
  1587. + LD="${LD-ld} -m elf32ppclinux"
  1588. + ;;
  1589. + s390x-*linux*)
  1590. + LD="${LD-ld} -m elf_s390"
  1591. + ;;
  1592. + sparc64-*linux*)
  1593. + LD="${LD-ld} -m elf32_sparc"
  1594. + ;;
  1595. + esac
  1596. + ;;
  1597. + *64-bit*)
  1598. + case $host in
  1599. + x86_64-*kfreebsd*-gnu)
  1600. + LD="${LD-ld} -m elf_x86_64_fbsd"
  1601. + ;;
  1602. + x86_64-*linux*)
  1603. + LD="${LD-ld} -m elf_x86_64"
  1604. + ;;
  1605. + ppc*-*linux*|powerpc*-*linux*)
  1606. + LD="${LD-ld} -m elf64ppc"
  1607. + ;;
  1608. + s390*-*linux*|s390*-*tpf*)
  1609. + LD="${LD-ld} -m elf64_s390"
  1610. + ;;
  1611. + sparc*-*linux*)
  1612. + LD="${LD-ld} -m elf64_sparc"
  1613. + ;;
  1614. + esac
  1615. + ;;
  1616. esac
  1617. fi
  1618. rm -rf conftest*
  1619. @@ -675,7 +1337,7 @@ s390*-*linux*|sparc*-*linux*)
  1620. CFLAGS="$CFLAGS -belf"
  1621. AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1622. [AC_LANG_PUSH(C)
  1623. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1624. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1625. AC_LANG_POP])
  1626. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1627. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1628. @@ -691,7 +1353,7 @@ sparc*-*solaris*)
  1629. case $lt_cv_prog_gnu_ld in
  1630. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  1631. *)
  1632. - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1633. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  1634. LD="${LD-ld} -64"
  1635. fi
  1636. ;;
  1637. @@ -701,30 +1363,63 @@ sparc*-*solaris*)
  1638. fi
  1639. rm -rf conftest*
  1640. ;;
  1641. -
  1642. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1643. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1644. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1645. - AC_CHECK_TOOL(AS, as, false)
  1646. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1647. - ;;
  1648. - ])
  1649. esac
  1650. need_locks="$enable_libtool_lock"
  1651. +])# _LT_ENABLE_LOCK
  1652. -])# _LT_AC_LOCK
  1653. +# _LT_CMD_OLD_ARCHIVE
  1654. +# -------------------
  1655. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  1656. +[AC_CHECK_TOOL(AR, ar, false)
  1657. +test -z "$AR" && AR=ar
  1658. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1659. +_LT_DECL([], [AR], [1], [The archiver])
  1660. +_LT_DECL([], [AR_FLAGS], [1])
  1661. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1662. +AC_CHECK_TOOL(STRIP, strip, :)
  1663. +test -z "$STRIP" && STRIP=:
  1664. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  1665. +
  1666. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1667. +test -z "$RANLIB" && RANLIB=:
  1668. +_LT_DECL([], [RANLIB], [1],
  1669. + [Commands used to install an old-style archive])
  1670. +
  1671. +# Determine commands to create old-style static archives.
  1672. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  1673. +old_postinstall_cmds='chmod 644 $oldlib'
  1674. +old_postuninstall_cmds=
  1675. +
  1676. +if test -n "$RANLIB"; then
  1677. + case $host_os in
  1678. + openbsd*)
  1679. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  1680. + ;;
  1681. + *)
  1682. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  1683. + ;;
  1684. + esac
  1685. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1686. +fi
  1687. +_LT_DECL([], [old_postinstall_cmds], [2])
  1688. +_LT_DECL([], [old_postuninstall_cmds], [2])
  1689. +_LT_TAGDECL([], [old_archive_cmds], [2],
  1690. + [Commands used to build an old-style archive])
  1691. +])# _LT_CMD_OLD_ARCHIVE
  1692. +
  1693. +
  1694. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1695. # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1696. # ----------------------------------------------------------------
  1697. # Check whether the given compiler option works
  1698. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1699. -[AC_REQUIRE([LT_AC_PROG_SED])
  1700. +AC_DEFUN([_LT_COMPILER_OPTION],
  1701. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1702. +m4_require([_LT_DECL_SED])dnl
  1703. AC_CACHE_CHECK([$1], [$2],
  1704. [$2=no
  1705. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1706. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1707. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  1708. lt_compiler_flag="$3"
  1709. # Insert the option either (1) after the last *FLAGS variable, or
  1710. @@ -744,29 +1439,35 @@ AC_CACHE_CHECK([$1], [$2],
  1711. if (exit $ac_status) && test -s "$ac_outfile"; then
  1712. # The compiler can only warn and ignore the option if not recognized
  1713. # So say no if there are warnings other than the usual output.
  1714. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1715. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  1716. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1717. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  1718. $2=yes
  1719. fi
  1720. fi
  1721. - $rm conftest*
  1722. + $RM conftest*
  1723. ])
  1724. if test x"[$]$2" = xyes; then
  1725. - ifelse([$5], , :, [$5])
  1726. + m4_if([$5], , :, [$5])
  1727. else
  1728. - ifelse([$6], , :, [$6])
  1729. + m4_if([$6], , :, [$6])
  1730. fi
  1731. -])# AC_LIBTOOL_COMPILER_OPTION
  1732. +])# _LT_COMPILER_OPTION
  1733. +# Old name:
  1734. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  1735. +dnl aclocal-1.4 backwards compatibility:
  1736. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  1737. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1738. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1739. -# ------------------------------------------------------------
  1740. -# Check whether the given compiler option works
  1741. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1742. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1743. +
  1744. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1745. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1746. +# ----------------------------------------------------
  1747. +# Check whether the given linker option works
  1748. +AC_DEFUN([_LT_LINKER_OPTION],
  1749. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1750. +m4_require([_LT_DECL_SED])dnl
  1751. AC_CACHE_CHECK([$1], [$2],
  1752. [$2=no
  1753. save_LDFLAGS="$LDFLAGS"
  1754. @@ -778,7 +1479,7 @@ AC_CACHE_CHECK([$1], [$2],
  1755. if test -s conftest.err; then
  1756. # Append any errors to the config.log.
  1757. cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1758. - $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1759. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  1760. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  1761. if diff conftest.exp conftest.er2 >/dev/null; then
  1762. $2=yes
  1763. @@ -787,22 +1488,28 @@ AC_CACHE_CHECK([$1], [$2],
  1764. $2=yes
  1765. fi
  1766. fi
  1767. - $rm -r conftest*
  1768. + $RM -r conftest*
  1769. LDFLAGS="$save_LDFLAGS"
  1770. ])
  1771. if test x"[$]$2" = xyes; then
  1772. - ifelse([$4], , :, [$4])
  1773. + m4_if([$4], , :, [$4])
  1774. else
  1775. - ifelse([$5], , :, [$5])
  1776. + m4_if([$5], , :, [$5])
  1777. fi
  1778. -])# AC_LIBTOOL_LINKER_OPTION
  1779. +])# _LT_LINKER_OPTION
  1780. +# Old name:
  1781. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  1782. +dnl aclocal-1.4 backwards compatibility:
  1783. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  1784. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1785. -# --------------------------
  1786. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1787. -[# find the maximum length of command line arguments
  1788. +
  1789. +# LT_CMD_MAX_LEN
  1790. +#---------------
  1791. +AC_DEFUN([LT_CMD_MAX_LEN],
  1792. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1793. +# find the maximum length of command line arguments
  1794. AC_MSG_CHECKING([the maximum length of command line arguments])
  1795. AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1796. i=0
  1797. @@ -824,7 +1531,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
  1798. lt_cv_sys_max_cmd_len=-1;
  1799. ;;
  1800. - cygwin* | mingw*)
  1801. + cygwin* | mingw* | cegcc*)
  1802. # On Win9x/ME, this test blows up -- it succeeds, but takes
  1803. # about 5 minutes as the teststring grows exponentially.
  1804. # Worse, since 9x/ME are not pre-emptively multitasking,
  1805. @@ -879,7 +1586,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
  1806. sysv5* | sco5v6* | sysv4.2uw2*)
  1807. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  1808. if test -n "$kargmax"; then
  1809. - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1810. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  1811. else
  1812. lt_cv_sys_max_cmd_len=32768
  1813. fi
  1814. @@ -890,20 +1597,28 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
  1815. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1816. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1817. else
  1818. + # Make teststring a little bigger before we do anything with it.
  1819. + # a 1K string should be a reasonable start.
  1820. + for i in 1 2 3 4 5 6 7 8 ; do
  1821. + teststring=$teststring$teststring
  1822. + done
  1823. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1824. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1825. - = "XX$teststring") >/dev/null 2>&1 &&
  1826. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1827. - lt_cv_sys_max_cmd_len=$new_result &&
  1828. + # If test is not a shell built-in, we'll probably end up computing a
  1829. + # maximum length that is only half of the actual maximum length, but
  1830. + # we can't tell.
  1831. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  1832. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  1833. test $i != 17 # 1/2 MB should be enough
  1834. do
  1835. i=`expr $i + 1`
  1836. teststring=$teststring$teststring
  1837. done
  1838. + # Only check the string length outside the loop.
  1839. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  1840. teststring=
  1841. - # Add a significant safety factor because C++ compilers can tack on massive
  1842. - # amounts of additional arguments before passing them to the linker.
  1843. - # It appears as though 1/2 is a usable value.
  1844. + # Add a significant safety factor because C++ compilers can tack on
  1845. + # massive amounts of additional arguments before passing them to the
  1846. + # linker. It appears as though 1/2 is a usable value.
  1847. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1848. fi
  1849. ;;
  1850. @@ -914,27 +1629,35 @@ if test -n $lt_cv_sys_max_cmd_len ; then
  1851. else
  1852. AC_MSG_RESULT(none)
  1853. fi
  1854. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1855. +max_cmd_len=$lt_cv_sys_max_cmd_len
  1856. +_LT_DECL([], [max_cmd_len], [0],
  1857. + [What is the maximum length of a command?])
  1858. +])# LT_CMD_MAX_LEN
  1859. +
  1860. +# Old name:
  1861. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  1862. +dnl aclocal-1.4 backwards compatibility:
  1863. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  1864. -# _LT_AC_CHECK_DLFCN
  1865. -# ------------------
  1866. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1867. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1868. -])# _LT_AC_CHECK_DLFCN
  1869. +# _LT_HEADER_DLFCN
  1870. +# ----------------
  1871. +m4_defun([_LT_HEADER_DLFCN],
  1872. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  1873. +])# _LT_HEADER_DLFCN
  1874. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1875. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1876. -# ---------------------------------------------------------------------
  1877. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1878. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1879. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1880. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1881. +# ----------------------------------------------------------------
  1882. +m4_defun([_LT_TRY_DLOPEN_SELF],
  1883. +[m4_require([_LT_HEADER_DLFCN])dnl
  1884. if test "$cross_compiling" = yes; then :
  1885. [$4]
  1886. else
  1887. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1888. lt_status=$lt_dlunknown
  1889. - cat > conftest.$ac_ext <<EOF
  1890. + cat > conftest.$ac_ext <<_LT_EOF
  1891. [#line __oline__ "configure"
  1892. #include "confdefs.h"
  1893. @@ -976,10 +1699,6 @@ else
  1894. # endif
  1895. #endif
  1896. -#ifdef __cplusplus
  1897. -extern "C" void exit (int);
  1898. -#endif
  1899. -
  1900. void fnord() { int i=42;}
  1901. int main ()
  1902. {
  1903. @@ -995,9 +1714,9 @@ int main ()
  1904. else
  1905. puts (dlerror ());
  1906. - exit (status);
  1907. + return status;
  1908. }]
  1909. -EOF
  1910. +_LT_EOF
  1911. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1912. (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  1913. lt_status=$?
  1914. @@ -1012,13 +1731,13 @@ EOF
  1915. fi
  1916. fi
  1917. rm -fr conftest*
  1918. -])# _LT_AC_TRY_DLOPEN_SELF
  1919. +])# _LT_TRY_DLOPEN_SELF
  1920. -# AC_LIBTOOL_DLOPEN_SELF
  1921. -# ----------------------
  1922. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1923. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1924. +# LT_SYS_DLOPEN_SELF
  1925. +# ------------------
  1926. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  1927. +[m4_require([_LT_HEADER_DLFCN])dnl
  1928. if test "x$enable_dlopen" != xyes; then
  1929. enable_dlopen=unknown
  1930. enable_dlopen_self=unknown
  1931. @@ -1034,15 +1753,15 @@ else
  1932. lt_cv_dlopen_self=yes
  1933. ;;
  1934. - mingw* | pw32*)
  1935. + mingw* | pw32* | cegcc*)
  1936. lt_cv_dlopen="LoadLibrary"
  1937. lt_cv_dlopen_libs=
  1938. - ;;
  1939. + ;;
  1940. cygwin*)
  1941. lt_cv_dlopen="dlopen"
  1942. lt_cv_dlopen_libs=
  1943. - ;;
  1944. + ;;
  1945. darwin*)
  1946. # if libdl is installed we need to link against it
  1947. @@ -1052,7 +1771,7 @@ else
  1948. lt_cv_dlopen_libs=
  1949. lt_cv_dlopen_self=yes
  1950. ])
  1951. - ;;
  1952. + ;;
  1953. *)
  1954. AC_CHECK_FUNC([shl_load],
  1955. @@ -1094,7 +1813,7 @@ else
  1956. AC_CACHE_CHECK([whether a program can dlopen itself],
  1957. lt_cv_dlopen_self, [dnl
  1958. - _LT_AC_TRY_DLOPEN_SELF(
  1959. + _LT_TRY_DLOPEN_SELF(
  1960. lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1961. lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1962. ])
  1963. @@ -1102,8 +1821,8 @@ else
  1964. if test "x$lt_cv_dlopen_self" = xyes; then
  1965. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  1966. AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1967. - lt_cv_dlopen_self_static, [dnl
  1968. - _LT_AC_TRY_DLOPEN_SELF(
  1969. + lt_cv_dlopen_self_static, [dnl
  1970. + _LT_TRY_DLOPEN_SELF(
  1971. lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1972. lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1973. ])
  1974. @@ -1125,19 +1844,32 @@ else
  1975. *) enable_dlopen_self_static=unknown ;;
  1976. esac
  1977. fi
  1978. -])# AC_LIBTOOL_DLOPEN_SELF
  1979. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  1980. + [Whether dlopen is supported])
  1981. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  1982. + [Whether dlopen of programs is supported])
  1983. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  1984. + [Whether dlopen of statically linked programs is supported])
  1985. +])# LT_SYS_DLOPEN_SELF
  1986. +# Old name:
  1987. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  1988. +dnl aclocal-1.4 backwards compatibility:
  1989. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  1990. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1991. -# ---------------------------------
  1992. -# Check to see if options -c and -o are simultaneously supported by compiler
  1993. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1994. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  1995. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1996. +
  1997. +# _LT_COMPILER_C_O([TAGNAME])
  1998. +# ---------------------------
  1999. +# Check to see if options -c and -o are simultaneously supported by compiler.
  2000. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  2001. +m4_defun([_LT_COMPILER_C_O],
  2002. +[m4_require([_LT_DECL_SED])dnl
  2003. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2004. +m4_require([_LT_TAG_COMPILER])dnl
  2005. AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  2006. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2007. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2008. - $rm -r conftest 2>/dev/null
  2009. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  2010. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  2011. + $RM -r conftest 2>/dev/null
  2012. mkdir conftest
  2013. cd conftest
  2014. mkdir out
  2015. @@ -1161,37 +1893,41 @@ AC_CACHE_CHECK([if $compiler supports -c
  2016. then
  2017. # The compiler can only warn and ignore the option if not recognized
  2018. # So say no if there are warnings
  2019. - $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2020. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  2021. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  2022. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  2023. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2024. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  2025. fi
  2026. fi
  2027. chmod u+w . 2>&AS_MESSAGE_LOG_FD
  2028. - $rm conftest*
  2029. + $RM conftest*
  2030. # SGI C++ compiler will create directory out/ii_files/ for
  2031. # template instantiation
  2032. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  2033. - $rm out/* && rmdir out
  2034. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  2035. + $RM out/* && rmdir out
  2036. cd ..
  2037. - rmdir conftest
  2038. - $rm conftest*
  2039. + $RM -r conftest
  2040. + $RM conftest*
  2041. ])
  2042. -])# AC_LIBTOOL_PROG_CC_C_O
  2043. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  2044. + [Does compiler simultaneously support -c and -o options?])
  2045. +])# _LT_COMPILER_C_O
  2046. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  2047. -# -----------------------------------------
  2048. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  2049. +# ----------------------------------
  2050. # Check to see if we can do hard links to lock some files if needed
  2051. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  2052. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  2053. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  2054. +[m4_require([_LT_ENABLE_LOCK])dnl
  2055. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2056. +_LT_COMPILER_C_O([$1])
  2057. hard_links="nottested"
  2058. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2059. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  2060. # do not overwrite the value of need_locks provided by the user
  2061. AC_MSG_CHECKING([if we can lock with hard links])
  2062. hard_links=yes
  2063. - $rm conftest*
  2064. + $RM conftest*
  2065. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2066. touch conftest.a
  2067. ln conftest.a conftest.b 2>&5 || hard_links=no
  2068. @@ -1204,12 +1940,13 @@ if test "$_LT_AC_TAGVAR(lt_cv_prog_compi
  2069. else
  2070. need_locks=no
  2071. fi
  2072. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  2073. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  2074. +])# _LT_COMPILER_FILE_LOCKS
  2075. -# AC_LIBTOOL_OBJDIR
  2076. -# -----------------
  2077. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  2078. +# _LT_CHECK_OBJDIR
  2079. +# ----------------
  2080. +m4_defun([_LT_CHECK_OBJDIR],
  2081. [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  2082. [rm -f .libs 2>/dev/null
  2083. mkdir .libs 2>/dev/null
  2084. @@ -1221,40 +1958,46 @@ else
  2085. fi
  2086. rmdir .libs 2>/dev/null])
  2087. objdir=$lt_cv_objdir
  2088. -])# AC_LIBTOOL_OBJDIR
  2089. +_LT_DECL([], [objdir], [0],
  2090. + [The name of the directory that contains temporary libtool files])dnl
  2091. +m4_pattern_allow([LT_OBJDIR])dnl
  2092. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  2093. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  2094. +])# _LT_CHECK_OBJDIR
  2095. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  2096. -# ----------------------------------------------
  2097. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  2098. +# --------------------------------------
  2099. # Check hardcoding attributes.
  2100. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  2101. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  2102. [AC_MSG_CHECKING([how to hardcode library paths into programs])
  2103. -_LT_AC_TAGVAR(hardcode_action, $1)=
  2104. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  2105. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  2106. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2107. +_LT_TAGVAR(hardcode_action, $1)=
  2108. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  2109. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  2110. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  2111. - # We can hardcode non-existant directories.
  2112. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  2113. + # We can hardcode non-existent directories.
  2114. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  2115. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  2116. # have to relink, otherwise we might link with an installed library
  2117. # when we should be linking with a yet-to-be-installed one
  2118. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2119. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2120. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  2121. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  2122. # Linking always hardcodes the temporary library directory.
  2123. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2124. + _LT_TAGVAR(hardcode_action, $1)=relink
  2125. else
  2126. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2127. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2128. + _LT_TAGVAR(hardcode_action, $1)=immediate
  2129. fi
  2130. else
  2131. # We cannot hardcode anything, or else we can only hardcode existing
  2132. # directories.
  2133. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2134. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  2135. fi
  2136. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2137. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  2138. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2139. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  2140. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  2141. # Fast installation is not supported
  2142. enable_fast_install=no
  2143. elif test "$shlibpath_overrides_runpath" = yes ||
  2144. @@ -1262,73 +2005,70 @@ elif test "$shlibpath_overrides_runpath"
  2145. # Fast installation is not necessary
  2146. enable_fast_install=needless
  2147. fi
  2148. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2149. +_LT_TAGDECL([], [hardcode_action], [0],
  2150. + [How to hardcode a shared library path into an executable])
  2151. +])# _LT_LINKER_HARDCODE_LIBPATH
  2152. -# AC_LIBTOOL_SYS_LIB_STRIP
  2153. -# ------------------------
  2154. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2155. -[striplib=
  2156. +# _LT_CMD_STRIPLIB
  2157. +# ----------------
  2158. +m4_defun([_LT_CMD_STRIPLIB],
  2159. +[m4_require([_LT_DECL_EGREP])
  2160. +striplib=
  2161. old_striplib=
  2162. AC_MSG_CHECKING([whether stripping libraries is possible])
  2163. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2164. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  2165. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2166. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2167. AC_MSG_RESULT([yes])
  2168. else
  2169. # FIXME - insert some real tests, host_os isn't really good enough
  2170. case $host_os in
  2171. - darwin*)
  2172. - if test -n "$STRIP" ; then
  2173. - striplib="$STRIP -x"
  2174. - old_striplib="$STRIP -S"
  2175. - AC_MSG_RESULT([yes])
  2176. - else
  2177. - AC_MSG_RESULT([no])
  2178. -fi
  2179. - ;;
  2180. - *)
  2181. - AC_MSG_RESULT([no])
  2182. + darwin*)
  2183. + if test -n "$STRIP" ; then
  2184. + striplib="$STRIP -x"
  2185. + old_striplib="$STRIP -S"
  2186. + AC_MSG_RESULT([yes])
  2187. + else
  2188. + AC_MSG_RESULT([no])
  2189. + fi
  2190. + ;;
  2191. + *)
  2192. + AC_MSG_RESULT([no])
  2193. ;;
  2194. esac
  2195. fi
  2196. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2197. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  2198. +_LT_DECL([], [striplib], [1])
  2199. +])# _LT_CMD_STRIPLIB
  2200. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2201. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  2202. # -----------------------------
  2203. # PORTME Fill in your ld.so characteristics
  2204. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2205. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2206. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  2207. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2208. +m4_require([_LT_DECL_EGREP])dnl
  2209. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2210. +m4_require([_LT_DECL_OBJDUMP])dnl
  2211. +m4_require([_LT_DECL_SED])dnl
  2212. AC_MSG_CHECKING([dynamic linker characteristics])
  2213. -library_names_spec=
  2214. -libname_spec='lib$name'
  2215. -soname_spec=
  2216. -shrext_cmds=".so"
  2217. -postinstall_cmds=
  2218. -postuninstall_cmds=
  2219. -finish_cmds=
  2220. -finish_eval=
  2221. -shlibpath_var=
  2222. -shlibpath_overrides_runpath=unknown
  2223. -version_type=none
  2224. -dynamic_linker="$host_os ld.so"
  2225. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2226. -m4_if($1,[],[
  2227. +m4_if([$1],
  2228. + [], [
  2229. if test "$GCC" = yes; then
  2230. case $host_os in
  2231. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  2232. *) lt_awk_arg="/^libraries:/" ;;
  2233. esac
  2234. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2235. - if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
  2236. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  2237. # if the path contains ";" then we assume it to be the separator
  2238. # otherwise default to the standard path separator (i.e. ":") - it is
  2239. # assumed that no part of a normal pathname contains ";" but that should
  2240. # okay in the real world where ";" in dirpaths is itself problematic.
  2241. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2242. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  2243. else
  2244. - lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2245. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2246. fi
  2247. # Ok, now we have the path, separated by spaces, we can step through it
  2248. # and add multilib dir if necessary.
  2249. @@ -1342,7 +2082,7 @@ if test "$GCC" = yes; then
  2250. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  2251. fi
  2252. done
  2253. - lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
  2254. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  2255. BEGIN {RS=" "; FS="/|\n";} {
  2256. lt_foo="";
  2257. lt_count=0;
  2258. @@ -1362,10 +2102,23 @@ BEGIN {RS=" "; FS="/|\n";} {
  2259. if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  2260. if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  2261. }'`
  2262. - sys_lib_search_path_spec=`echo $lt_search_path_spec`
  2263. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  2264. else
  2265. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2266. fi])
  2267. +library_names_spec=
  2268. +libname_spec='lib$name'
  2269. +soname_spec=
  2270. +shrext_cmds=".so"
  2271. +postinstall_cmds=
  2272. +postuninstall_cmds=
  2273. +finish_cmds=
  2274. +finish_eval=
  2275. +shlibpath_var=
  2276. +shlibpath_overrides_runpath=unknown
  2277. +version_type=none
  2278. +dynamic_linker="$host_os ld.so"
  2279. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2280. need_lib_prefix=unknown
  2281. hardcode_into_libs=no
  2282. @@ -1402,7 +2155,7 @@ aix[[4-9]]*)
  2283. aix4 | aix4.[[01]] | aix4.[[01]].*)
  2284. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2285. echo ' yes '
  2286. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2287. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  2288. :
  2289. else
  2290. can_build_shared=no
  2291. @@ -1428,9 +2181,18 @@ aix[[4-9]]*)
  2292. ;;
  2293. amigaos*)
  2294. - library_names_spec='$libname.ixlibrary $libname.a'
  2295. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2296. - 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'
  2297. + case $host_cpu in
  2298. + powerpc)
  2299. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  2300. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  2301. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2302. + ;;
  2303. + m68k)
  2304. + library_names_spec='$libname.ixlibrary $libname.a'
  2305. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2306. + 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'
  2307. + ;;
  2308. + esac
  2309. ;;
  2310. beos*)
  2311. @@ -1453,25 +2215,28 @@ bsdi[[45]]*)
  2312. # libtool to hard-code these into programs
  2313. ;;
  2314. -cygwin* | mingw* | pw32*)
  2315. +cygwin* | mingw* | pw32* | cegcc*)
  2316. version_type=windows
  2317. shrext_cmds=".dll"
  2318. need_version=no
  2319. need_lib_prefix=no
  2320. case $GCC,$host_os in
  2321. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2322. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  2323. library_names_spec='$libname.dll.a'
  2324. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2325. postinstall_cmds='base_file=`basename \${file}`~
  2326. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2327. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  2328. dldir=$destdir/`dirname \$dlpath`~
  2329. test -d \$dldir || mkdir -p \$dldir~
  2330. $install_prog $dir/$dlname \$dldir/$dlname~
  2331. - chmod a+x \$dldir/$dlname'
  2332. + chmod a+x \$dldir/$dlname~
  2333. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  2334. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  2335. + fi'
  2336. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2337. dlpath=$dir/\$dldll~
  2338. - $rm \$dlpath'
  2339. + $RM \$dlpath'
  2340. shlibpath_overrides_runpath=yes
  2341. case $host_os in
  2342. @@ -1480,20 +2245,20 @@ cygwin* | mingw* | pw32*)
  2343. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2344. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2345. ;;
  2346. - mingw*)
  2347. + mingw* | cegcc*)
  2348. # MinGW DLLs use traditional 'lib' prefix
  2349. soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2350. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2351. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2352. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2353. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  2354. # It is most probably a Windows format PATH printed by
  2355. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2356. # path with ; separators, and with drive letters. We can handle the
  2357. # drive letters (cygwin fileutils understands them), so leave them,
  2358. # especially as we might pass files found there to a mingw objdump,
  2359. # which wouldn't understand a cygwinified path. Ahh.
  2360. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2361. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2362. else
  2363. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2364. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2365. fi
  2366. ;;
  2367. pw32*)
  2368. @@ -1517,13 +2282,13 @@ darwin* | rhapsody*)
  2369. version_type=darwin
  2370. need_lib_prefix=no
  2371. need_version=no
  2372. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2373. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2374. soname_spec='${libname}${release}${major}$shared_ext'
  2375. shlibpath_overrides_runpath=yes
  2376. shlibpath_var=DYLD_LIBRARY_PATH
  2377. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  2378. - m4_if([$1], [],[
  2379. - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2380. +m4_if([$1], [],[
  2381. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  2382. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2383. ;;
  2384. @@ -1551,7 +2316,14 @@ freebsd* | dragonfly*)
  2385. *) objformat=elf ;;
  2386. esac
  2387. fi
  2388. - version_type=freebsd-$objformat
  2389. + # Handle Gentoo/FreeBSD as it was Linux
  2390. + case $host_vendor in
  2391. + gentoo)
  2392. + version_type=linux ;;
  2393. + *)
  2394. + version_type=freebsd-$objformat ;;
  2395. + esac
  2396. +
  2397. case $version_type in
  2398. freebsd-elf*)
  2399. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2400. @@ -1562,6 +2334,12 @@ freebsd* | dragonfly*)
  2401. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2402. need_version=yes
  2403. ;;
  2404. + linux)
  2405. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2406. + soname_spec='${libname}${release}${shared_ext}$major'
  2407. + need_lib_prefix=no
  2408. + need_version=no
  2409. + ;;
  2410. esac
  2411. shlibpath_var=LD_LIBRARY_PATH
  2412. case $host_os in
  2413. @@ -1616,18 +2394,18 @@ hpux9* | hpux10* | hpux11*)
  2414. fi
  2415. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2416. ;;
  2417. - hppa*64*)
  2418. - shrext_cmds='.sl'
  2419. - hardcode_into_libs=yes
  2420. - dynamic_linker="$host_os dld.sl"
  2421. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2422. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2423. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2424. - soname_spec='${libname}${release}${shared_ext}$major'
  2425. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2426. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2427. - ;;
  2428. - *)
  2429. + hppa*64*)
  2430. + shrext_cmds='.sl'
  2431. + hardcode_into_libs=yes
  2432. + dynamic_linker="$host_os dld.sl"
  2433. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2434. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2435. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2436. + soname_spec='${libname}${release}${shared_ext}$major'
  2437. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2438. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2439. + ;;
  2440. + *)
  2441. shrext_cmds='.sl'
  2442. dynamic_linker="$host_os dld.sl"
  2443. shlibpath_var=SHLIB_PATH
  2444. @@ -1704,17 +2482,26 @@ linux* | k*bsd*-gnu)
  2445. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2446. shlibpath_var=LD_LIBRARY_PATH
  2447. shlibpath_overrides_runpath=no
  2448. + # Some binutils ld are patched to set DT_RUNPATH
  2449. + save_LDFLAGS=$LDFLAGS
  2450. + save_libdir=$libdir
  2451. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  2452. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  2453. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  2454. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  2455. + [shlibpath_overrides_runpath=yes])])
  2456. + LDFLAGS=$save_LDFLAGS
  2457. + libdir=$save_libdir
  2458. +
  2459. # This implies no fast_install, which is unacceptable.
  2460. # Some rework will be needed to allow for fast_install
  2461. # before this can be enabled.
  2462. hardcode_into_libs=yes
  2463. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2464. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2465. # Append ld.so.conf contents to the search path
  2466. if test -f /etc/ld.so.conf; then
  2467. - 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' ' '`
  2468. - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  2469. + 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' ' '`
  2470. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2471. fi
  2472. # We used to test for /lib/ld.so.1 and disable shared libraries on
  2473. @@ -1730,7 +2517,7 @@ netbsd*)
  2474. version_type=sunos
  2475. need_lib_prefix=no
  2476. need_version=no
  2477. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2478. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  2479. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2480. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2481. dynamic_linker='NetBSD (a.out) ld.so'
  2482. @@ -1751,14 +2538,16 @@ newsos6)
  2483. shlibpath_overrides_runpath=yes
  2484. ;;
  2485. -nto-qnx*)
  2486. - version_type=linux
  2487. +*nto* | *qnx*)
  2488. + version_type=qnx
  2489. need_lib_prefix=no
  2490. need_version=no
  2491. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2492. soname_spec='${libname}${release}${shared_ext}$major'
  2493. shlibpath_var=LD_LIBRARY_PATH
  2494. - shlibpath_overrides_runpath=yes
  2495. + shlibpath_overrides_runpath=no
  2496. + hardcode_into_libs=yes
  2497. + dynamic_linker='ldqnx.so'
  2498. ;;
  2499. openbsd*)
  2500. @@ -1767,13 +2556,13 @@ openbsd*)
  2501. need_lib_prefix=no
  2502. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  2503. case $host_os in
  2504. - openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2505. - *) need_version=no ;;
  2506. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  2507. + *) need_version=no ;;
  2508. esac
  2509. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2510. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2511. shlibpath_var=LD_LIBRARY_PATH
  2512. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2513. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2514. case $host_os in
  2515. openbsd2.[[89]] | openbsd2.[[89]].*)
  2516. shlibpath_overrides_runpath=no
  2517. @@ -1845,7 +2634,6 @@ sysv4 | sysv4.3*)
  2518. sni)
  2519. shlibpath_overrides_runpath=no
  2520. need_lib_prefix=no
  2521. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  2522. runpath_var=LD_RUN_PATH
  2523. ;;
  2524. siemens)
  2525. @@ -1876,13 +2664,12 @@ sysv5* | sco3.2v5* | sco5v6* | unixware*
  2526. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2527. soname_spec='${libname}${release}${shared_ext}$major'
  2528. shlibpath_var=LD_LIBRARY_PATH
  2529. + shlibpath_overrides_runpath=yes
  2530. hardcode_into_libs=yes
  2531. if test "$with_gnu_ld" = yes; then
  2532. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  2533. - shlibpath_overrides_runpath=no
  2534. else
  2535. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  2536. - shlibpath_overrides_runpath=yes
  2537. case $host_os in
  2538. sco3.2v5*)
  2539. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  2540. @@ -1892,6 +2679,17 @@ sysv5* | sco3.2v5* | sco5v6* | unixware*
  2541. sys_lib_dlsearch_path_spec='/usr/lib'
  2542. ;;
  2543. +tpf*)
  2544. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  2545. + version_type=linux
  2546. + need_lib_prefix=no
  2547. + need_version=no
  2548. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2549. + shlibpath_var=LD_LIBRARY_PATH
  2550. + shlibpath_overrides_runpath=no
  2551. + hardcode_into_libs=yes
  2552. + ;;
  2553. +
  2554. uts4*)
  2555. version_type=linux
  2556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2557. @@ -1906,288 +2704,58 @@ esac
  2558. AC_MSG_RESULT([$dynamic_linker])
  2559. test "$dynamic_linker" = no && can_build_shared=no
  2560. -AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
  2561. -[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
  2562. -sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2563. -AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
  2564. -[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
  2565. -sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2566. -
  2567. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  2568. if test "$GCC" = yes; then
  2569. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  2570. fi
  2571. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2572. -
  2573. -
  2574. -# _LT_AC_TAGCONFIG
  2575. -# ----------------
  2576. -AC_DEFUN([_LT_AC_TAGCONFIG],
  2577. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  2578. -AC_ARG_WITH([tags],
  2579. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  2580. - [include additional configurations @<:@automatic@:>@])],
  2581. - [tagnames="$withval"])
  2582. -
  2583. -if test -f "$ltmain" && test -n "$tagnames"; then
  2584. - if test ! -f "${ofile}"; then
  2585. - AC_MSG_WARN([output file `$ofile' does not exist])
  2586. - fi
  2587. -
  2588. - if test -z "$LTCC"; then
  2589. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  2590. - if test -z "$LTCC"; then
  2591. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  2592. - else
  2593. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  2594. - fi
  2595. - fi
  2596. - if test -z "$LTCFLAGS"; then
  2597. - eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
  2598. - fi
  2599. -
  2600. - # Extract list of available tagged configurations in $ofile.
  2601. - # Note that this assumes the entire list is on one line.
  2602. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  2603. -
  2604. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2605. - for tagname in $tagnames; do
  2606. - IFS="$lt_save_ifs"
  2607. - # Check whether tagname contains only valid characters
  2608. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  2609. - "") ;;
  2610. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  2611. - ;;
  2612. - esac
  2613. -
  2614. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  2615. - then
  2616. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  2617. - fi
  2618. -
  2619. - # Update the list of available tags.
  2620. - if test -n "$tagname"; then
  2621. - echo appending configuration tag \"$tagname\" to $ofile
  2622. -
  2623. - case $tagname in
  2624. - CXX)
  2625. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  2626. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  2627. - (test "X$CXX" != "Xg++"))) ; then
  2628. - AC_LIBTOOL_LANG_CXX_CONFIG
  2629. - else
  2630. - tagname=""
  2631. - fi
  2632. - ;;
  2633. -
  2634. - F77)
  2635. - if test -n "$F77" && test "X$F77" != "Xno"; then
  2636. - AC_LIBTOOL_LANG_F77_CONFIG
  2637. - else
  2638. - tagname=""
  2639. - fi
  2640. - ;;
  2641. -
  2642. - GCJ)
  2643. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  2644. - AC_LIBTOOL_LANG_GCJ_CONFIG
  2645. - else
  2646. - tagname=""
  2647. - fi
  2648. - ;;
  2649. -
  2650. - RC)
  2651. - AC_LIBTOOL_LANG_RC_CONFIG
  2652. - ;;
  2653. -
  2654. - *)
  2655. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  2656. - ;;
  2657. - esac
  2658. - # Append the new tag name to the list of available tags.
  2659. - if test -n "$tagname" ; then
  2660. - available_tags="$available_tags $tagname"
  2661. - fi
  2662. - fi
  2663. - done
  2664. - IFS="$lt_save_ifs"
  2665. -
  2666. - # Now substitute the updated list of available tags.
  2667. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  2668. - mv "${ofile}T" "$ofile"
  2669. - chmod +x "$ofile"
  2670. - else
  2671. - rm -f "${ofile}T"
  2672. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  2673. - fi
  2674. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  2675. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  2676. +fi
  2677. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  2678. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  2679. fi
  2680. -])# _LT_AC_TAGCONFIG
  2681. -
  2682. -
  2683. -# AC_LIBTOOL_DLOPEN
  2684. -# -----------------
  2685. -# enable checks for dlopen support
  2686. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  2687. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  2688. -])# AC_LIBTOOL_DLOPEN
  2689. -
  2690. -
  2691. -# AC_LIBTOOL_WIN32_DLL
  2692. -# --------------------
  2693. -# declare package support for building win32 DLLs
  2694. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  2695. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  2696. -])# AC_LIBTOOL_WIN32_DLL
  2697. -
  2698. -
  2699. -# AC_ENABLE_SHARED([DEFAULT])
  2700. -# ---------------------------
  2701. -# implement the --enable-shared flag
  2702. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2703. -AC_DEFUN([AC_ENABLE_SHARED],
  2704. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  2705. -AC_ARG_ENABLE([shared],
  2706. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  2707. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  2708. - [p=${PACKAGE-default}
  2709. - case $enableval in
  2710. - yes) enable_shared=yes ;;
  2711. - no) enable_shared=no ;;
  2712. - *)
  2713. - enable_shared=no
  2714. - # Look at the argument we got. We use all the common list separators.
  2715. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2716. - for pkg in $enableval; do
  2717. - IFS="$lt_save_ifs"
  2718. - if test "X$pkg" = "X$p"; then
  2719. - enable_shared=yes
  2720. - fi
  2721. - done
  2722. - IFS="$lt_save_ifs"
  2723. - ;;
  2724. - esac],
  2725. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  2726. -])# AC_ENABLE_SHARED
  2727. -
  2728. -
  2729. -# AC_DISABLE_SHARED
  2730. -# -----------------
  2731. -# set the default shared flag to --disable-shared
  2732. -AC_DEFUN([AC_DISABLE_SHARED],
  2733. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2734. -AC_ENABLE_SHARED(no)
  2735. -])# AC_DISABLE_SHARED
  2736. -
  2737. -
  2738. -# AC_ENABLE_STATIC([DEFAULT])
  2739. -# ---------------------------
  2740. -# implement the --enable-static flag
  2741. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2742. -AC_DEFUN([AC_ENABLE_STATIC],
  2743. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  2744. -AC_ARG_ENABLE([static],
  2745. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  2746. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  2747. - [p=${PACKAGE-default}
  2748. - case $enableval in
  2749. - yes) enable_static=yes ;;
  2750. - no) enable_static=no ;;
  2751. - *)
  2752. - enable_static=no
  2753. - # Look at the argument we got. We use all the common list separators.
  2754. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2755. - for pkg in $enableval; do
  2756. - IFS="$lt_save_ifs"
  2757. - if test "X$pkg" = "X$p"; then
  2758. - enable_static=yes
  2759. - fi
  2760. - done
  2761. - IFS="$lt_save_ifs"
  2762. - ;;
  2763. - esac],
  2764. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  2765. -])# AC_ENABLE_STATIC
  2766. -
  2767. -
  2768. -# AC_DISABLE_STATIC
  2769. -# -----------------
  2770. -# set the default static flag to --disable-static
  2771. -AC_DEFUN([AC_DISABLE_STATIC],
  2772. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2773. -AC_ENABLE_STATIC(no)
  2774. -])# AC_DISABLE_STATIC
  2775. -
  2776. -
  2777. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  2778. -# ---------------------------------
  2779. -# implement the --enable-fast-install flag
  2780. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  2781. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  2782. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  2783. -AC_ARG_ENABLE([fast-install],
  2784. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  2785. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  2786. - [p=${PACKAGE-default}
  2787. - case $enableval in
  2788. - yes) enable_fast_install=yes ;;
  2789. - no) enable_fast_install=no ;;
  2790. - *)
  2791. - enable_fast_install=no
  2792. - # Look at the argument we got. We use all the common list separators.
  2793. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  2794. - for pkg in $enableval; do
  2795. - IFS="$lt_save_ifs"
  2796. - if test "X$pkg" = "X$p"; then
  2797. - enable_fast_install=yes
  2798. - fi
  2799. - done
  2800. - IFS="$lt_save_ifs"
  2801. - ;;
  2802. - esac],
  2803. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  2804. -])# AC_ENABLE_FAST_INSTALL
  2805. -
  2806. -# AC_DISABLE_FAST_INSTALL
  2807. -# -----------------------
  2808. -# set the default to --disable-fast-install
  2809. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  2810. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2811. -AC_ENABLE_FAST_INSTALL(no)
  2812. -])# AC_DISABLE_FAST_INSTALL
  2813. +_LT_DECL([], [variables_saved_for_relink], [1],
  2814. + [Variables whose values should be saved in libtool wrapper scripts and
  2815. + restored at link time])
  2816. +_LT_DECL([], [need_lib_prefix], [0],
  2817. + [Do we need the "lib" prefix for modules?])
  2818. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  2819. +_LT_DECL([], [version_type], [0], [Library versioning type])
  2820. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  2821. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  2822. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  2823. + [Is shlibpath searched before the hard-coded library search path?])
  2824. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  2825. +_LT_DECL([], [library_names_spec], [1],
  2826. + [[List of archive names. First name is the real one, the rest are links.
  2827. + The last name is the one that the linker finds with -lNAME]])
  2828. +_LT_DECL([], [soname_spec], [1],
  2829. + [[The coded name of the library, if different from the real name]])
  2830. +_LT_DECL([], [postinstall_cmds], [2],
  2831. + [Command to use after installation of a shared archive])
  2832. +_LT_DECL([], [postuninstall_cmds], [2],
  2833. + [Command to use after uninstallation of a shared archive])
  2834. +_LT_DECL([], [finish_cmds], [2],
  2835. + [Commands used to finish a libtool library installation in a directory])
  2836. +_LT_DECL([], [finish_eval], [1],
  2837. + [[As "finish_cmds", except a single script fragment to be evaled but
  2838. + not shown]])
  2839. +_LT_DECL([], [hardcode_into_libs], [0],
  2840. + [Whether we should hardcode library paths into libraries])
  2841. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  2842. + [Compile-time system search path for libraries])
  2843. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  2844. + [Run-time system search path for libraries])
  2845. +])# _LT_SYS_DYNAMIC_LINKER
  2846. -# AC_LIBTOOL_PICMODE([MODE])
  2847. +# _LT_PATH_TOOL_PREFIX(TOOL)
  2848. # --------------------------
  2849. -# implement the --with-pic flag
  2850. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  2851. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  2852. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  2853. -pic_mode=ifelse($#,1,$1,default)
  2854. -])# AC_LIBTOOL_PICMODE
  2855. -
  2856. -
  2857. -# AC_PROG_EGREP
  2858. -# -------------
  2859. -# This is predefined starting with Autoconf 2.54, so this conditional
  2860. -# definition can be removed once we require Autoconf 2.54 or later.
  2861. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  2862. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  2863. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2864. - then ac_cv_prog_egrep='grep -E'
  2865. - else ac_cv_prog_egrep='egrep'
  2866. - fi])
  2867. - EGREP=$ac_cv_prog_egrep
  2868. - AC_SUBST([EGREP])
  2869. -])])
  2870. -
  2871. -
  2872. -# AC_PATH_TOOL_PREFIX
  2873. -# -------------------
  2874. # find a file program which can recognize shared library
  2875. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  2876. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2877. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  2878. +[m4_require([_LT_DECL_EGREP])dnl
  2879. AC_MSG_CHECKING([for $1])
  2880. AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2881. [case $MAGIC_CMD in
  2882. @@ -2200,7 +2768,7 @@ AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  2883. dnl $ac_dummy forces splitting on constant user-supplied paths.
  2884. dnl POSIX.2 word splitting is done only on the output of word expansions,
  2885. dnl not every word. This closes a longstanding sh security hole.
  2886. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  2887. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  2888. for ac_dir in $ac_dummy; do
  2889. IFS="$lt_save_ifs"
  2890. test -z "$ac_dir" && ac_dir=.
  2891. @@ -2215,7 +2783,7 @@ dnl not every word. This closes a longs
  2892. $EGREP "$file_magic_regex" > /dev/null; then
  2893. :
  2894. else
  2895. - cat <<EOF 1>&2
  2896. + cat <<_LT_EOF 1>&2
  2897. *** Warning: the command libtool uses to detect shared libraries,
  2898. *** $file_magic_cmd, produces output that libtool cannot recognize.
  2899. @@ -2226,7 +2794,7 @@ dnl not every word. This closes a longs
  2900. *** may want to report the problem to your system manager and/or to
  2901. *** bug-libtool@gnu.org
  2902. -EOF
  2903. +_LT_EOF
  2904. fi ;;
  2905. esac
  2906. fi
  2907. @@ -2243,37 +2811,47 @@ if test -n "$MAGIC_CMD"; then
  2908. else
  2909. AC_MSG_RESULT(no)
  2910. fi
  2911. -])# AC_PATH_TOOL_PREFIX
  2912. +_LT_DECL([], [MAGIC_CMD], [0],
  2913. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  2914. +])# _LT_PATH_TOOL_PREFIX
  2915. +# Old name:
  2916. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  2917. +dnl aclocal-1.4 backwards compatibility:
  2918. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  2919. -# AC_PATH_MAGIC
  2920. -# -------------
  2921. +
  2922. +# _LT_PATH_MAGIC
  2923. +# --------------
  2924. # find a file program which can recognize a shared library
  2925. -AC_DEFUN([AC_PATH_MAGIC],
  2926. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2927. +m4_defun([_LT_PATH_MAGIC],
  2928. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  2929. if test -z "$lt_cv_path_MAGIC_CMD"; then
  2930. if test -n "$ac_tool_prefix"; then
  2931. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2932. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  2933. else
  2934. MAGIC_CMD=:
  2935. fi
  2936. fi
  2937. -])# AC_PATH_MAGIC
  2938. +])# _LT_PATH_MAGIC
  2939. -# AC_PROG_LD
  2940. +# LT_PATH_LD
  2941. # ----------
  2942. # find the pathname to the GNU or non-GNU linker
  2943. -AC_DEFUN([AC_PROG_LD],
  2944. -[AC_ARG_WITH([gnu-ld],
  2945. - [AC_HELP_STRING([--with-gnu-ld],
  2946. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2947. - [test "$withval" = no || with_gnu_ld=yes],
  2948. - [with_gnu_ld=no])
  2949. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  2950. -AC_REQUIRE([AC_PROG_CC])dnl
  2951. +AC_DEFUN([LT_PATH_LD],
  2952. +[AC_REQUIRE([AC_PROG_CC])dnl
  2953. AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2954. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  2955. +m4_require([_LT_DECL_SED])dnl
  2956. +m4_require([_LT_DECL_EGREP])dnl
  2957. +
  2958. +AC_ARG_WITH([gnu-ld],
  2959. + [AS_HELP_STRING([--with-gnu-ld],
  2960. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  2961. + [test "$withval" = no || with_gnu_ld=yes],
  2962. + [with_gnu_ld=no])dnl
  2963. +
  2964. ac_prog=ld
  2965. if test "$GCC" = yes; then
  2966. # Check if gcc -print-prog-name=ld gives a path.
  2967. @@ -2290,9 +2868,9 @@ if test "$GCC" = yes; then
  2968. [[\\/]]* | ?:[[\\/]]*)
  2969. re_direlt='/[[^/]][[^/]]*/\.\./'
  2970. # Canonicalize the pathname of ld
  2971. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  2972. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  2973. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  2974. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  2975. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  2976. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  2977. done
  2978. test -z "$LD" && LD="$ac_prog"
  2979. ;;
  2980. @@ -2342,15 +2920,24 @@ else
  2981. AC_MSG_RESULT(no)
  2982. fi
  2983. test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  2984. -AC_PROG_LD_GNU
  2985. -])# AC_PROG_LD
  2986. +_LT_PATH_LD_GNU
  2987. +AC_SUBST([LD])
  2988. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  2989. +])# LT_PATH_LD
  2990. -# AC_PROG_LD_GNU
  2991. -# --------------
  2992. -AC_DEFUN([AC_PROG_LD_GNU],
  2993. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  2994. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  2995. +# Old names:
  2996. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  2997. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  2998. +dnl aclocal-1.4 backwards compatibility:
  2999. +dnl AC_DEFUN([AM_PROG_LD], [])
  3000. +dnl AC_DEFUN([AC_PROG_LD], [])
  3001. +
  3002. +
  3003. +# _LT_PATH_LD_GNU
  3004. +#- --------------
  3005. +m4_defun([_LT_PATH_LD_GNU],
  3006. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3007. [# I'd rather use --version here, but apparently some GNU lds only accept -v.
  3008. case `$LD -v 2>&1 </dev/null` in
  3009. *GNU* | *'with BFD'*)
  3010. @@ -2361,14 +2948,14 @@ case `$LD -v 2>&1 </dev/null` in
  3011. ;;
  3012. esac])
  3013. with_gnu_ld=$lt_cv_prog_gnu_ld
  3014. -])# AC_PROG_LD_GNU
  3015. +])# _LT_PATH_LD_GNU
  3016. -# AC_PROG_LD_RELOAD_FLAG
  3017. -# ----------------------
  3018. +# _LT_CMD_RELOAD
  3019. +# --------------
  3020. # find reload flag for linker
  3021. # -- PORTME Some linkers may need a different reload flag.
  3022. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3023. +m4_defun([_LT_CMD_RELOAD],
  3024. [AC_CACHE_CHECK([for $LD option to reload object files],
  3025. lt_cv_ld_reload_flag,
  3026. [lt_cv_ld_reload_flag='-r'])
  3027. @@ -2387,15 +2974,19 @@ case $host_os in
  3028. fi
  3029. ;;
  3030. esac
  3031. -])# AC_PROG_LD_RELOAD_FLAG
  3032. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  3033. +_LT_DECL([], [reload_cmds], [2])dnl
  3034. +])# _LT_CMD_RELOAD
  3035. -# AC_DEPLIBS_CHECK_METHOD
  3036. -# -----------------------
  3037. +# _LT_CHECK_MAGIC_METHOD
  3038. +# ----------------------
  3039. # how to check for library dependencies
  3040. # -- PORTME fill in with the dynamic library characteristics
  3041. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3042. -[AC_CACHE_CHECK([how to recognize dependent libraries],
  3043. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  3044. +[m4_require([_LT_DECL_EGREP])
  3045. +m4_require([_LT_DECL_OBJDUMP])
  3046. +AC_CACHE_CHECK([how to recognize dependent libraries],
  3047. lt_cv_deplibs_check_method,
  3048. [lt_cv_file_magic_cmd='$MAGIC_CMD'
  3049. lt_cv_file_magic_test_file=
  3050. @@ -2445,12 +3036,18 @@ mingw* | pw32*)
  3051. fi
  3052. ;;
  3053. +cegcc)
  3054. + # use the weaker test based on 'objdump'. See mingw*.
  3055. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  3056. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3057. + ;;
  3058. +
  3059. darwin* | rhapsody*)
  3060. lt_cv_deplibs_check_method=pass_all
  3061. ;;
  3062. freebsd* | dragonfly*)
  3063. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3064. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3065. case $host_cpu in
  3066. i*86 )
  3067. # Not sure whether the presence of OpenBSD here was a mistake.
  3068. @@ -2508,7 +3105,7 @@ linux* | k*bsd*-gnu)
  3069. ;;
  3070. netbsd*)
  3071. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3072. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  3073. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3074. else
  3075. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3076. @@ -2521,12 +3118,12 @@ newos6*)
  3077. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3078. ;;
  3079. -nto-qnx*)
  3080. - lt_cv_deplibs_check_method=unknown
  3081. +*nto* | *qnx*)
  3082. + lt_cv_deplibs_check_method=pass_all
  3083. ;;
  3084. openbsd*)
  3085. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3086. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3087. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  3088. else
  3089. lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3090. @@ -2545,6 +3142,10 @@ solaris*)
  3091. lt_cv_deplibs_check_method=pass_all
  3092. ;;
  3093. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3094. + lt_cv_deplibs_check_method=pass_all
  3095. + ;;
  3096. +
  3097. sysv4 | sysv4.3*)
  3098. case $host_vendor in
  3099. motorola)
  3100. @@ -2572,7 +3173,7 @@ sysv4 | sysv4.3*)
  3101. esac
  3102. ;;
  3103. -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  3104. +tpf*)
  3105. lt_cv_deplibs_check_method=pass_all
  3106. ;;
  3107. esac
  3108. @@ -2580,14 +3181,20 @@ esac
  3109. file_magic_cmd=$lt_cv_file_magic_cmd
  3110. deplibs_check_method=$lt_cv_deplibs_check_method
  3111. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3112. -])# AC_DEPLIBS_CHECK_METHOD
  3113. +_LT_DECL([], [deplibs_check_method], [1],
  3114. + [Method to check whether dependent libraries are shared objects])
  3115. +_LT_DECL([], [file_magic_cmd], [1],
  3116. + [Command to use when deplibs_check_method == "file_magic"])
  3117. +])# _LT_CHECK_MAGIC_METHOD
  3118. -# AC_PROG_NM
  3119. +
  3120. +# LT_PATH_NM
  3121. # ----------
  3122. -# find the pathname to a BSD-compatible name lister
  3123. -AC_DEFUN([AC_PROG_NM],
  3124. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3125. +# find the pathname to a BSD- or MS-compatible name lister
  3126. +AC_DEFUN([LT_PATH_NM],
  3127. +[AC_REQUIRE([AC_PROG_CC])dnl
  3128. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  3129. [if test -n "$NM"; then
  3130. # Let the user override the test.
  3131. lt_cv_path_NM="$NM"
  3132. @@ -2629,16 +3236,51 @@ else
  3133. done
  3134. IFS="$lt_save_ifs"
  3135. done
  3136. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3137. + : ${lt_cv_path_NM=no}
  3138. fi])
  3139. -NM="$lt_cv_path_NM"
  3140. -])# AC_PROG_NM
  3141. +if test "$lt_cv_path_NM" != "no"; then
  3142. + NM="$lt_cv_path_NM"
  3143. +else
  3144. + # Didn't find any BSD compatible name lister, look for dumpbin.
  3145. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  3146. + AC_SUBST([DUMPBIN])
  3147. + if test "$DUMPBIN" != ":"; then
  3148. + NM="$DUMPBIN"
  3149. + fi
  3150. +fi
  3151. +test -z "$NM" && NM=nm
  3152. +AC_SUBST([NM])
  3153. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  3154. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  3155. + [lt_cv_nm_interface="BSD nm"
  3156. + echo "int some_variable = 0;" > conftest.$ac_ext
  3157. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  3158. + (eval "$ac_compile" 2>conftest.err)
  3159. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3160. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  3161. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  3162. + cat conftest.err >&AS_MESSAGE_LOG_FD
  3163. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  3164. + cat conftest.out >&AS_MESSAGE_LOG_FD
  3165. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  3166. + lt_cv_nm_interface="MS dumpbin"
  3167. + fi
  3168. + rm -f conftest*])
  3169. +])# LT_PATH_NM
  3170. -# AC_CHECK_LIBM
  3171. -# -------------
  3172. +# Old names:
  3173. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  3174. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  3175. +dnl aclocal-1.4 backwards compatibility:
  3176. +dnl AC_DEFUN([AM_PROG_NM], [])
  3177. +dnl AC_DEFUN([AC_PROG_NM], [])
  3178. +
  3179. +
  3180. +# LT_LIB_M
  3181. +# --------
  3182. # check for math library
  3183. -AC_DEFUN([AC_CHECK_LIBM],
  3184. +AC_DEFUN([LT_LIB_M],
  3185. [AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3186. LIBM=
  3187. case $host in
  3188. @@ -2653,2155 +3295,46 @@ case $host in
  3189. AC_CHECK_LIB(m, cos, LIBM="-lm")
  3190. ;;
  3191. esac
  3192. -])# AC_CHECK_LIBM
  3193. -
  3194. -
  3195. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3196. -# -----------------------------------
  3197. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  3198. -# LTDLINCL to the include flags for the libltdl header and adds
  3199. -# --enable-ltdl-convenience to the configure arguments. Note that
  3200. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3201. -# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
  3202. -# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
  3203. -# (note the single quotes!). If your package is not flat and you're not
  3204. -# using automake, define top_builddir and top_srcdir appropriately in
  3205. -# the Makefiles.
  3206. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3207. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3208. - case $enable_ltdl_convenience in
  3209. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3210. - "") enable_ltdl_convenience=yes
  3211. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3212. - esac
  3213. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3214. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3215. - # For backwards non-gettext consistent compatibility...
  3216. - INCLTDL="$LTDLINCL"
  3217. -])# AC_LIBLTDL_CONVENIENCE
  3218. -
  3219. -
  3220. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3221. -# -----------------------------------
  3222. -# sets LIBLTDL to the link flags for the libltdl installable library and
  3223. -# LTDLINCL to the include flags for the libltdl header and adds
  3224. -# --enable-ltdl-install to the configure arguments. Note that
  3225. -# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
  3226. -# and an installed libltdl is not found, it is assumed to be `libltdl'.
  3227. -# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
  3228. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  3229. -# flat and you're not using automake, define top_builddir and top_srcdir
  3230. -# appropriately in the Makefiles.
  3231. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3232. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3233. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3234. - AC_CHECK_LIB(ltdl, lt_dlinit,
  3235. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3236. - [if test x"$enable_ltdl_install" = xno; then
  3237. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  3238. - else
  3239. - enable_ltdl_install=yes
  3240. - fi
  3241. - ])
  3242. - if test x"$enable_ltdl_install" = x"yes"; then
  3243. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3244. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3245. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3246. - else
  3247. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3248. - LIBLTDL="-lltdl"
  3249. - LTDLINCL=
  3250. - fi
  3251. - # For backwards non-gettext consistent compatibility...
  3252. - INCLTDL="$LTDLINCL"
  3253. -])# AC_LIBLTDL_INSTALLABLE
  3254. -
  3255. -
  3256. -# AC_LIBTOOL_CXX
  3257. -# --------------
  3258. -# enable support for C++ libraries
  3259. -AC_DEFUN([AC_LIBTOOL_CXX],
  3260. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  3261. -])# AC_LIBTOOL_CXX
  3262. -
  3263. -
  3264. -# _LT_AC_LANG_CXX
  3265. -# ---------------
  3266. -AC_DEFUN([_LT_AC_LANG_CXX],
  3267. -[AC_REQUIRE([AC_PROG_CXX])
  3268. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3269. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3270. -])# _LT_AC_LANG_CXX
  3271. -
  3272. -# _LT_AC_PROG_CXXCPP
  3273. -# ------------------
  3274. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  3275. -[
  3276. -AC_REQUIRE([AC_PROG_CXX])
  3277. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3278. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3279. - (test "X$CXX" != "Xg++"))) ; then
  3280. - AC_PROG_CXXCPP
  3281. -fi
  3282. -])# _LT_AC_PROG_CXXCPP
  3283. -
  3284. -# AC_LIBTOOL_F77
  3285. -# --------------
  3286. -# enable support for Fortran 77 libraries
  3287. -AC_DEFUN([AC_LIBTOOL_F77],
  3288. -[AC_REQUIRE([_LT_AC_LANG_F77])
  3289. -])# AC_LIBTOOL_F77
  3290. -
  3291. -
  3292. -# _LT_AC_LANG_F77
  3293. -# ---------------
  3294. -AC_DEFUN([_LT_AC_LANG_F77],
  3295. -[AC_REQUIRE([AC_PROG_F77])
  3296. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3297. -])# _LT_AC_LANG_F77
  3298. -
  3299. -
  3300. -# AC_LIBTOOL_GCJ
  3301. -# --------------
  3302. -# enable support for GCJ libraries
  3303. -AC_DEFUN([AC_LIBTOOL_GCJ],
  3304. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3305. -])# AC_LIBTOOL_GCJ
  3306. -
  3307. -
  3308. -# _LT_AC_LANG_GCJ
  3309. -# ---------------
  3310. -AC_DEFUN([_LT_AC_LANG_GCJ],
  3311. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3312. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3313. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3314. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3315. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3316. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3317. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3318. -])# _LT_AC_LANG_GCJ
  3319. -
  3320. -
  3321. -# AC_LIBTOOL_RC
  3322. -# -------------
  3323. -# enable support for Windows resource files
  3324. -AC_DEFUN([AC_LIBTOOL_RC],
  3325. -[AC_REQUIRE([LT_AC_PROG_RC])
  3326. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3327. -])# AC_LIBTOOL_RC
  3328. -
  3329. -
  3330. -# AC_LIBTOOL_LANG_C_CONFIG
  3331. -# ------------------------
  3332. -# Ensure that the configuration vars for the C compiler are
  3333. -# suitably defined. Those variables are subsequently used by
  3334. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3335. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3336. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3337. -[lt_save_CC="$CC"
  3338. -AC_LANG_PUSH(C)
  3339. -
  3340. -# Source file extension for C test sources.
  3341. -ac_ext=c
  3342. -
  3343. -# Object file extension for compiled C test sources.
  3344. -objext=o
  3345. -_LT_AC_TAGVAR(objext, $1)=$objext
  3346. -
  3347. -# Code to be used in simple compile tests
  3348. -lt_simple_compile_test_code="int some_variable = 0;"
  3349. -
  3350. -# Code to be used in simple link tests
  3351. -lt_simple_link_test_code='int main(){return(0);}'
  3352. -
  3353. -_LT_AC_SYS_COMPILER
  3354. -
  3355. -# save warnings/boilerplate of simple test code
  3356. -_LT_COMPILER_BOILERPLATE
  3357. -_LT_LINKER_BOILERPLATE
  3358. -
  3359. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  3360. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  3361. -AC_LIBTOOL_PROG_CC_C_O($1)
  3362. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  3363. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  3364. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  3365. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  3366. -AC_LIBTOOL_SYS_LIB_STRIP
  3367. -AC_LIBTOOL_DLOPEN_SELF
  3368. -
  3369. -# Report which library types will actually be built
  3370. -AC_MSG_CHECKING([if libtool supports shared libraries])
  3371. -AC_MSG_RESULT([$can_build_shared])
  3372. -
  3373. -AC_MSG_CHECKING([whether to build shared libraries])
  3374. -test "$can_build_shared" = "no" && enable_shared=no
  3375. -
  3376. -# On AIX, shared libraries and static libraries use the same namespace, and
  3377. -# are all built from PIC.
  3378. -case $host_os in
  3379. -aix3*)
  3380. - test "$enable_shared" = yes && enable_static=no
  3381. - if test -n "$RANLIB"; then
  3382. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3383. - postinstall_cmds='$RANLIB $lib'
  3384. - fi
  3385. - ;;
  3386. -
  3387. -aix[[4-9]]*)
  3388. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3389. - test "$enable_shared" = yes && enable_static=no
  3390. - fi
  3391. - ;;
  3392. -esac
  3393. -AC_MSG_RESULT([$enable_shared])
  3394. -
  3395. -AC_MSG_CHECKING([whether to build static libraries])
  3396. -# Make sure either enable_shared or enable_static is yes.
  3397. -test "$enable_shared" = yes || enable_static=yes
  3398. -AC_MSG_RESULT([$enable_static])
  3399. -
  3400. -AC_LIBTOOL_CONFIG($1)
  3401. -
  3402. -AC_LANG_POP
  3403. -CC="$lt_save_CC"
  3404. -])# AC_LIBTOOL_LANG_C_CONFIG
  3405. -
  3406. -
  3407. -# AC_LIBTOOL_LANG_CXX_CONFIG
  3408. -# --------------------------
  3409. -# Ensure that the configuration vars for the C compiler are
  3410. -# suitably defined. Those variables are subsequently used by
  3411. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3412. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  3413. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  3414. -[AC_LANG_PUSH(C++)
  3415. -AC_REQUIRE([AC_PROG_CXX])
  3416. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  3417. -
  3418. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3419. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  3420. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  3421. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  3422. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  3423. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  3424. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  3425. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  3426. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3427. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  3428. -_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3429. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  3430. -_LT_AC_TAGVAR(module_cmds, $1)=
  3431. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  3432. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  3433. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  3434. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  3435. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3436. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  3437. -
  3438. -# Dependencies to place before and after the object being linked:
  3439. -_LT_AC_TAGVAR(predep_objects, $1)=
  3440. -_LT_AC_TAGVAR(postdep_objects, $1)=
  3441. -_LT_AC_TAGVAR(predeps, $1)=
  3442. -_LT_AC_TAGVAR(postdeps, $1)=
  3443. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  3444. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  3445. -
  3446. -# Source file extension for C++ test sources.
  3447. -ac_ext=cpp
  3448. -
  3449. -# Object file extension for compiled C++ test sources.
  3450. -objext=o
  3451. -_LT_AC_TAGVAR(objext, $1)=$objext
  3452. -
  3453. -# Code to be used in simple compile tests
  3454. -lt_simple_compile_test_code="int some_variable = 0;"
  3455. -
  3456. -# Code to be used in simple link tests
  3457. -lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  3458. -
  3459. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  3460. -_LT_AC_SYS_COMPILER
  3461. -
  3462. -# save warnings/boilerplate of simple test code
  3463. -_LT_COMPILER_BOILERPLATE
  3464. -_LT_LINKER_BOILERPLATE
  3465. -
  3466. -# Allow CC to be a program name with arguments.
  3467. -lt_save_CC=$CC
  3468. -lt_save_LD=$LD
  3469. -lt_save_GCC=$GCC
  3470. -GCC=$GXX
  3471. -lt_save_with_gnu_ld=$with_gnu_ld
  3472. -lt_save_path_LD=$lt_cv_path_LD
  3473. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  3474. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  3475. -else
  3476. - $as_unset lt_cv_prog_gnu_ld
  3477. -fi
  3478. -if test -n "${lt_cv_path_LDCXX+set}"; then
  3479. - lt_cv_path_LD=$lt_cv_path_LDCXX
  3480. -else
  3481. - $as_unset lt_cv_path_LD
  3482. -fi
  3483. -test -z "${LDCXX+set}" || LD=$LDCXX
  3484. -CC=${CXX-"c++"}
  3485. -compiler=$CC
  3486. -_LT_AC_TAGVAR(compiler, $1)=$CC
  3487. -_LT_CC_BASENAME([$compiler])
  3488. -
  3489. -# We don't want -fno-exception wen compiling C++ code, so set the
  3490. -# no_builtin_flag separately
  3491. -if test "$GXX" = yes; then
  3492. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  3493. -else
  3494. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  3495. -fi
  3496. -
  3497. -if test "$GXX" = yes; then
  3498. - # Set up default GNU C++ configuration
  3499. -
  3500. - AC_PROG_LD
  3501. -
  3502. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  3503. - # archiving commands below assume that GNU ld is being used.
  3504. - if test "$with_gnu_ld" = yes; then
  3505. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3506. - _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'
  3507. -
  3508. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3509. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3510. -
  3511. - # If archive_cmds runs LD, not CC, wlarc should be empty
  3512. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  3513. - # investigate it a little bit more. (MM)
  3514. - wlarc='${wl}'
  3515. -
  3516. - # ancient GNU ld didn't support --whole-archive et. al.
  3517. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  3518. - grep 'no-whole-archive' > /dev/null; then
  3519. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  3520. - else
  3521. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  3522. - fi
  3523. - else
  3524. - with_gnu_ld=no
  3525. - wlarc=
  3526. -
  3527. - # A generic and very simple default shared library creation
  3528. - # command for GNU C++ for the case where it uses the native
  3529. - # linker, instead of GNU ld. If possible, this setting should
  3530. - # overridden to take advantage of the native linker features on
  3531. - # the platform it is being used on.
  3532. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  3533. - fi
  3534. -
  3535. - # Commands to make compiler produce verbose output that lists
  3536. - # what "hidden" libraries, object files and flags are used when
  3537. - # linking a shared library.
  3538. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  3539. -
  3540. -else
  3541. - GXX=no
  3542. - with_gnu_ld=no
  3543. - wlarc=
  3544. -fi
  3545. -
  3546. -# PORTME: fill in a description of your system's C++ link characteristics
  3547. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  3548. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3549. -case $host_os in
  3550. - aix3*)
  3551. - # FIXME: insert proper C++ library support
  3552. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3553. - ;;
  3554. - aix[[4-9]]*)
  3555. - if test "$host_cpu" = ia64; then
  3556. - # On IA64, the linker does run time linking by default, so we don't
  3557. - # have to do anything special.
  3558. - aix_use_runtimelinking=no
  3559. - exp_sym_flag='-Bexport'
  3560. - no_entry_flag=""
  3561. - else
  3562. - aix_use_runtimelinking=no
  3563. -
  3564. - # Test if we are trying to use run time linking or normal
  3565. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  3566. - # need to do runtime linking.
  3567. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  3568. - for ld_flag in $LDFLAGS; do
  3569. - case $ld_flag in
  3570. - *-brtl*)
  3571. - aix_use_runtimelinking=yes
  3572. - break
  3573. - ;;
  3574. - esac
  3575. - done
  3576. - ;;
  3577. - esac
  3578. -
  3579. - exp_sym_flag='-bexport'
  3580. - no_entry_flag='-bnoentry'
  3581. - fi
  3582. -
  3583. - # When large executables or shared objects are built, AIX ld can
  3584. - # have problems creating the table of contents. If linking a library
  3585. - # or program results in "error TOC overflow" add -mminimal-toc to
  3586. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  3587. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  3588. -
  3589. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  3590. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3591. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  3592. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3593. -
  3594. - if test "$GXX" = yes; then
  3595. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  3596. - # We only want to do this on AIX 4.2 and lower, the check
  3597. - # below for broken collect2 doesn't work under 4.3+
  3598. - collect2name=`${CC} -print-prog-name=collect2`
  3599. - if test -f "$collect2name" && \
  3600. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  3601. - then
  3602. - # We have reworked collect2
  3603. - :
  3604. - else
  3605. - # We have old collect2
  3606. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  3607. - # It fails to find uninstalled libraries when the uninstalled
  3608. - # path is not listed in the libpath. Setting hardcode_minus_L
  3609. - # to unsupported forces relinking
  3610. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  3611. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3612. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  3613. - fi
  3614. - ;;
  3615. - esac
  3616. - shared_flag='-shared'
  3617. - if test "$aix_use_runtimelinking" = yes; then
  3618. - shared_flag="$shared_flag "'${wl}-G'
  3619. - fi
  3620. - else
  3621. - # not using gcc
  3622. - if test "$host_cpu" = ia64; then
  3623. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  3624. - # chokes on -Wl,-G. The following line is correct:
  3625. - shared_flag='-G'
  3626. - else
  3627. - if test "$aix_use_runtimelinking" = yes; then
  3628. - shared_flag='${wl}-G'
  3629. - else
  3630. - shared_flag='${wl}-bM:SRE'
  3631. - fi
  3632. - fi
  3633. - fi
  3634. -
  3635. - # It seems that -bexpall does not export symbols beginning with
  3636. - # underscore (_), so it is better to generate a list of symbols to export.
  3637. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  3638. - if test "$aix_use_runtimelinking" = yes; then
  3639. - # Warning - without using the other runtime loading flags (-brtl),
  3640. - # -berok will link without error, but may produce a broken library.
  3641. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  3642. - # Determine the default libpath from the value encoded in an empty executable.
  3643. - _LT_AC_SYS_LIBPATH_AIX
  3644. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3645. -
  3646. - _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"
  3647. - else
  3648. - if test "$host_cpu" = ia64; then
  3649. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  3650. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  3651. - _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"
  3652. - else
  3653. - # Determine the default libpath from the value encoded in an empty executable.
  3654. - _LT_AC_SYS_LIBPATH_AIX
  3655. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  3656. - # Warning - without using the other run time loading flags,
  3657. - # -berok will link without error, but may produce a broken library.
  3658. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  3659. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  3660. - # Exported symbols can be pulled into shared objects from archives
  3661. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  3662. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  3663. - # This is similar to how AIX traditionally builds its shared libraries.
  3664. - _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'
  3665. - fi
  3666. - fi
  3667. - ;;
  3668. -
  3669. - beos*)
  3670. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  3671. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3672. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  3673. - # support --undefined. This deserves some investigation. FIXME
  3674. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3675. - else
  3676. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3677. - fi
  3678. - ;;
  3679. -
  3680. - chorus*)
  3681. - case $cc_basename in
  3682. - *)
  3683. - # FIXME: insert proper C++ library support
  3684. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3685. - ;;
  3686. - esac
  3687. - ;;
  3688. -
  3689. - cygwin* | mingw* | pw32*)
  3690. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  3691. - # as there is no search path for DLLs.
  3692. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  3693. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  3694. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  3695. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  3696. -
  3697. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  3698. - _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'
  3699. - # If the export-symbols file already is a .def file (1st line
  3700. - # is EXPORTS), use it as is; otherwise, prepend...
  3701. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  3702. - cp $export_symbols $output_objdir/$soname.def;
  3703. - else
  3704. - echo EXPORTS > $output_objdir/$soname.def;
  3705. - cat $export_symbols >> $output_objdir/$soname.def;
  3706. - fi~
  3707. - $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'
  3708. - else
  3709. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3710. - fi
  3711. - ;;
  3712. - darwin* | rhapsody*)
  3713. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3714. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3715. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  3716. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  3717. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  3718. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3719. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  3720. - if test "$GXX" = yes ; then
  3721. - output_verbose_link_cmd='echo'
  3722. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  3723. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  3724. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  3725. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  3726. - if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  3727. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  3728. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  3729. - fi
  3730. - else
  3731. - case $cc_basename in
  3732. - xlc*)
  3733. - output_verbose_link_cmd='echo'
  3734. - _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'
  3735. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  3736. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  3737. - _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}'
  3738. - _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}'
  3739. - ;;
  3740. - *)
  3741. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3742. - ;;
  3743. - esac
  3744. - fi
  3745. - ;;
  3746. -
  3747. - dgux*)
  3748. - case $cc_basename in
  3749. - ec++*)
  3750. - # FIXME: insert proper C++ library support
  3751. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3752. - ;;
  3753. - ghcx*)
  3754. - # Green Hills C++ Compiler
  3755. - # FIXME: insert proper C++ library support
  3756. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3757. - ;;
  3758. - *)
  3759. - # FIXME: insert proper C++ library support
  3760. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3761. - ;;
  3762. - esac
  3763. - ;;
  3764. - freebsd[[12]]*)
  3765. - # C++ shared libraries reported to be fairly broken before switch to ELF
  3766. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3767. - ;;
  3768. - freebsd-elf*)
  3769. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3770. - ;;
  3771. - freebsd* | dragonfly*)
  3772. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  3773. - # conventions
  3774. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  3775. - ;;
  3776. - gnu*)
  3777. - ;;
  3778. - hpux9*)
  3779. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3780. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3781. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3782. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3783. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3784. - # but as the default
  3785. - # location of the library.
  3786. -
  3787. - case $cc_basename in
  3788. - CC*)
  3789. - # FIXME: insert proper C++ library support
  3790. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3791. - ;;
  3792. - aCC*)
  3793. - _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'
  3794. - # Commands to make compiler produce verbose output that lists
  3795. - # what "hidden" libraries, object files and flags are used when
  3796. - # linking a shared library.
  3797. - #
  3798. - # There doesn't appear to be a way to prevent this compiler from
  3799. - # explicitly linking system object files so we need to strip them
  3800. - # from the output so that they don't get included in the library
  3801. - # dependencies.
  3802. - 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'
  3803. - ;;
  3804. - *)
  3805. - if test "$GXX" = yes; then
  3806. - _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'
  3807. - else
  3808. - # FIXME: insert proper C++ library support
  3809. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3810. - fi
  3811. - ;;
  3812. - esac
  3813. - ;;
  3814. - hpux10*|hpux11*)
  3815. - if test $with_gnu_ld = no; then
  3816. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  3817. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3818. -
  3819. - case $host_cpu in
  3820. - hppa*64*|ia64*) ;;
  3821. - *)
  3822. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3823. - ;;
  3824. - esac
  3825. - fi
  3826. - case $host_cpu in
  3827. - hppa*64*|ia64*)
  3828. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3829. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3830. - ;;
  3831. - *)
  3832. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  3833. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  3834. - # but as the default
  3835. - # location of the library.
  3836. - ;;
  3837. - esac
  3838. -
  3839. - case $cc_basename in
  3840. - CC*)
  3841. - # FIXME: insert proper C++ library support
  3842. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3843. - ;;
  3844. - aCC*)
  3845. - case $host_cpu in
  3846. - hppa*64*)
  3847. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3848. - ;;
  3849. - ia64*)
  3850. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3851. - ;;
  3852. - *)
  3853. - _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'
  3854. - ;;
  3855. - esac
  3856. - # Commands to make compiler produce verbose output that lists
  3857. - # what "hidden" libraries, object files and flags are used when
  3858. - # linking a shared library.
  3859. - #
  3860. - # There doesn't appear to be a way to prevent this compiler from
  3861. - # explicitly linking system object files so we need to strip them
  3862. - # from the output so that they don't get included in the library
  3863. - # dependencies.
  3864. - 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'
  3865. - ;;
  3866. - *)
  3867. - if test "$GXX" = yes; then
  3868. - if test $with_gnu_ld = no; then
  3869. - case $host_cpu in
  3870. - hppa*64*)
  3871. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  3872. - ;;
  3873. - ia64*)
  3874. - _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'
  3875. - ;;
  3876. - *)
  3877. - _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'
  3878. - ;;
  3879. - esac
  3880. - fi
  3881. - else
  3882. - # FIXME: insert proper C++ library support
  3883. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  3884. - fi
  3885. - ;;
  3886. - esac
  3887. - ;;
  3888. - interix[[3-9]]*)
  3889. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  3890. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  3891. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3892. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  3893. - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  3894. - # Instead, shared libraries are loaded at an image base (0x10000000 by
  3895. - # default) and relocated if they conflict, which is a slow very memory
  3896. - # consuming and fragmenting process. To avoid this, we pick a random,
  3897. - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  3898. - # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  3899. - _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'
  3900. - _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'
  3901. - ;;
  3902. - irix5* | irix6*)
  3903. - case $cc_basename in
  3904. - CC*)
  3905. - # SGI C++
  3906. - _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'
  3907. -
  3908. - # Archives containing C++ object files must be created using
  3909. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  3910. - # necessary to make sure instantiated templates are included
  3911. - # in the archive.
  3912. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  3913. - ;;
  3914. - *)
  3915. - if test "$GXX" = yes; then
  3916. - if test "$with_gnu_ld" = no; then
  3917. - _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'
  3918. - else
  3919. - _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'
  3920. - fi
  3921. - fi
  3922. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  3923. - ;;
  3924. - esac
  3925. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  3926. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3927. - ;;
  3928. - linux* | k*bsd*-gnu)
  3929. - case $cc_basename in
  3930. - KCC*)
  3931. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  3932. -
  3933. - # KCC will only create a shared library if the output file
  3934. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  3935. - # to its proper name (with version) after linking.
  3936. - _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'
  3937. - _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'
  3938. - # Commands to make compiler produce verbose output that lists
  3939. - # what "hidden" libraries, object files and flags are used when
  3940. - # linking a shared library.
  3941. - #
  3942. - # There doesn't appear to be a way to prevent this compiler from
  3943. - # explicitly linking system object files so we need to strip them
  3944. - # from the output so that they don't get included in the library
  3945. - # dependencies.
  3946. - 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'
  3947. -
  3948. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  3949. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3950. -
  3951. - # Archives containing C++ object files must be created using
  3952. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  3953. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  3954. - ;;
  3955. - icpc*)
  3956. - # Intel C++
  3957. - with_gnu_ld=yes
  3958. - # version 8.0 and above of icpc choke on multiply defined symbols
  3959. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  3960. - # earlier do not add the objects themselves.
  3961. - case `$CC -V 2>&1` in
  3962. - *"Version 7."*)
  3963. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3964. - _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'
  3965. - ;;
  3966. - *) # Version 8.0 or newer
  3967. - tmp_idyn=
  3968. - case $host_cpu in
  3969. - ia64*) tmp_idyn=' -i_dynamic';;
  3970. - esac
  3971. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3972. - _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'
  3973. - ;;
  3974. - esac
  3975. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  3976. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  3977. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3978. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  3979. - ;;
  3980. - pgCC* | pgcpp*)
  3981. - # Portland Group C++ compiler
  3982. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  3983. - _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'
  3984. -
  3985. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  3986. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  3987. - _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'
  3988. - ;;
  3989. - cxx*)
  3990. - # Compaq C++
  3991. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3992. - _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'
  3993. -
  3994. - runpath_var=LD_RUN_PATH
  3995. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  3996. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  3997. -
  3998. - # Commands to make compiler produce verbose output that lists
  3999. - # what "hidden" libraries, object files and flags are used when
  4000. - # linking a shared library.
  4001. - #
  4002. - # There doesn't appear to be a way to prevent this compiler from
  4003. - # explicitly linking system object files so we need to strip them
  4004. - # from the output so that they don't get included in the library
  4005. - # dependencies.
  4006. - 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'
  4007. - ;;
  4008. - *)
  4009. - case `$CC -V 2>&1 | sed 5q` in
  4010. - *Sun\ C*)
  4011. - # Sun C++ 5.9
  4012. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4013. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4014. - _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'
  4015. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4016. - _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'
  4017. -
  4018. - # Not sure whether something based on
  4019. - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  4020. - # would be better.
  4021. - output_verbose_link_cmd='echo'
  4022. -
  4023. - # Archives containing C++ object files must be created using
  4024. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4025. - # necessary to make sure instantiated templates are included
  4026. - # in the archive.
  4027. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4028. - ;;
  4029. - esac
  4030. - ;;
  4031. - esac
  4032. - ;;
  4033. - lynxos*)
  4034. - # FIXME: insert proper C++ library support
  4035. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4036. - ;;
  4037. - m88k*)
  4038. - # FIXME: insert proper C++ library support
  4039. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4040. - ;;
  4041. - mvs*)
  4042. - case $cc_basename in
  4043. - cxx*)
  4044. - # FIXME: insert proper C++ library support
  4045. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4046. - ;;
  4047. - *)
  4048. - # FIXME: insert proper C++ library support
  4049. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4050. - ;;
  4051. - esac
  4052. - ;;
  4053. - netbsd*)
  4054. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4055. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  4056. - wlarc=
  4057. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4058. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4059. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4060. - fi
  4061. - # Workaround some broken pre-1.5 toolchains
  4062. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  4063. - ;;
  4064. - openbsd2*)
  4065. - # C++ shared libraries are fairly broken
  4066. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4067. - ;;
  4068. - openbsd*)
  4069. - if test -f /usr/libexec/ld.so; then
  4070. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4071. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4072. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4073. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4074. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4075. - _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'
  4076. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4077. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4078. - fi
  4079. - output_verbose_link_cmd='echo'
  4080. - else
  4081. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4082. - fi
  4083. - ;;
  4084. - osf3*)
  4085. - case $cc_basename in
  4086. - KCC*)
  4087. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4088. -
  4089. - # KCC will only create a shared library if the output file
  4090. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4091. - # to its proper name (with version) after linking.
  4092. - _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'
  4093. -
  4094. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4095. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4096. -
  4097. - # Archives containing C++ object files must be created using
  4098. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4099. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4100. -
  4101. - ;;
  4102. - RCC*)
  4103. - # Rational C++ 2.4.1
  4104. - # FIXME: insert proper C++ library support
  4105. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4106. - ;;
  4107. - cxx*)
  4108. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4109. - _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'
  4110. -
  4111. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4112. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4113. -
  4114. - # Commands to make compiler produce verbose output that lists
  4115. - # what "hidden" libraries, object files and flags are used when
  4116. - # linking a shared library.
  4117. - #
  4118. - # There doesn't appear to be a way to prevent this compiler from
  4119. - # explicitly linking system object files so we need to strip them
  4120. - # from the output so that they don't get included in the library
  4121. - # dependencies.
  4122. - 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'
  4123. - ;;
  4124. - *)
  4125. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4126. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4127. - _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'
  4128. -
  4129. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4130. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4131. -
  4132. - # Commands to make compiler produce verbose output that lists
  4133. - # what "hidden" libraries, object files and flags are used when
  4134. - # linking a shared library.
  4135. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4136. -
  4137. - else
  4138. - # FIXME: insert proper C++ library support
  4139. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4140. - fi
  4141. - ;;
  4142. - esac
  4143. - ;;
  4144. - osf4* | osf5*)
  4145. - case $cc_basename in
  4146. - KCC*)
  4147. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  4148. -
  4149. - # KCC will only create a shared library if the output file
  4150. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4151. - # to its proper name (with version) after linking.
  4152. - _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'
  4153. -
  4154. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4155. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4156. -
  4157. - # Archives containing C++ object files must be created using
  4158. - # the KAI C++ compiler.
  4159. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  4160. - ;;
  4161. - RCC*)
  4162. - # Rational C++ 2.4.1
  4163. - # FIXME: insert proper C++ library support
  4164. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4165. - ;;
  4166. - cxx*)
  4167. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  4168. - _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'
  4169. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  4170. - echo "-hidden">> $lib.exp~
  4171. - $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~
  4172. - $rm $lib.exp'
  4173. -
  4174. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4175. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4176. -
  4177. - # Commands to make compiler produce verbose output that lists
  4178. - # what "hidden" libraries, object files and flags are used when
  4179. - # linking a shared library.
  4180. - #
  4181. - # There doesn't appear to be a way to prevent this compiler from
  4182. - # explicitly linking system object files so we need to strip them
  4183. - # from the output so that they don't get included in the library
  4184. - # dependencies.
  4185. - 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'
  4186. - ;;
  4187. - *)
  4188. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4189. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  4190. - _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'
  4191. -
  4192. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4193. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4194. -
  4195. - # Commands to make compiler produce verbose output that lists
  4196. - # what "hidden" libraries, object files and flags are used when
  4197. - # linking a shared library.
  4198. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4199. -
  4200. - else
  4201. - # FIXME: insert proper C++ library support
  4202. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4203. - fi
  4204. - ;;
  4205. - esac
  4206. - ;;
  4207. - psos*)
  4208. - # FIXME: insert proper C++ library support
  4209. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4210. - ;;
  4211. - sunos4*)
  4212. - case $cc_basename in
  4213. - CC*)
  4214. - # Sun C++ 4.x
  4215. - # FIXME: insert proper C++ library support
  4216. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4217. - ;;
  4218. - lcc*)
  4219. - # Lucid
  4220. - # FIXME: insert proper C++ library support
  4221. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4222. - ;;
  4223. - *)
  4224. - # FIXME: insert proper C++ library support
  4225. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4226. - ;;
  4227. - esac
  4228. - ;;
  4229. - solaris*)
  4230. - case $cc_basename in
  4231. - CC*)
  4232. - # Sun C++ 4.2, 5.x and Centerline C++
  4233. - _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
  4234. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  4235. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  4236. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4237. - $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'
  4238. -
  4239. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  4240. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4241. - case $host_os in
  4242. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4243. - *)
  4244. - # The compiler driver will combine and reorder linker options,
  4245. - # but understands `-z linker_flag'.
  4246. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  4247. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  4248. - ;;
  4249. - esac
  4250. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4251. -
  4252. - output_verbose_link_cmd='echo'
  4253. -
  4254. - # Archives containing C++ object files must be created using
  4255. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  4256. - # necessary to make sure instantiated templates are included
  4257. - # in the archive.
  4258. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  4259. - ;;
  4260. - gcx*)
  4261. - # Green Hills C++ Compiler
  4262. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4263. -
  4264. - # The C++ compiler must be used to create the archive.
  4265. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  4266. - ;;
  4267. - *)
  4268. - # GNU C++ compiler with Solaris linker
  4269. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  4270. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  4271. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  4272. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4273. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4274. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4275. -
  4276. - # Commands to make compiler produce verbose output that lists
  4277. - # what "hidden" libraries, object files and flags are used when
  4278. - # linking a shared library.
  4279. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4280. - else
  4281. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  4282. - # platform.
  4283. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  4284. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4285. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  4286. -
  4287. - # Commands to make compiler produce verbose output that lists
  4288. - # what "hidden" libraries, object files and flags are used when
  4289. - # linking a shared library.
  4290. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  4291. - fi
  4292. -
  4293. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  4294. - case $host_os in
  4295. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4296. - *)
  4297. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  4298. - ;;
  4299. - esac
  4300. - fi
  4301. - ;;
  4302. - esac
  4303. - ;;
  4304. - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  4305. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4306. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4307. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4308. - runpath_var='LD_RUN_PATH'
  4309. -
  4310. - case $cc_basename in
  4311. - CC*)
  4312. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4313. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4314. - ;;
  4315. - *)
  4316. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4317. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  4318. - ;;
  4319. - esac
  4320. - ;;
  4321. - sysv5* | sco3.2v5* | sco5v6*)
  4322. - # Note: We can NOT use -z defs as we might desire, because we do not
  4323. - # link with -lc, and that would cause any symbols used from libc to
  4324. - # always be unresolved, which means just about no library would
  4325. - # ever link correctly. If we're not using GNU ld we use -z text
  4326. - # though, which does catch some bad symbols but isn't as heavy-handed
  4327. - # as -z defs.
  4328. - # For security reasons, it is highly recommended that you always
  4329. - # use absolute paths for naming shared libraries, and exclude the
  4330. - # DT_RUNPATH tag from executables and libraries. But doing so
  4331. - # requires that you compile everything twice, which is a pain.
  4332. - # So that behaviour is only enabled if SCOABSPATH is set to a
  4333. - # non-empty value in the environment. Most likely only useful for
  4334. - # creating official distributions of packages.
  4335. - # This is a hack until libtool officially supports absolute path
  4336. - # names for shared libraries.
  4337. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  4338. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  4339. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4340. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4341. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  4342. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4343. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4344. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  4345. - runpath_var='LD_RUN_PATH'
  4346. -
  4347. - case $cc_basename in
  4348. - CC*)
  4349. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4350. - _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'
  4351. - ;;
  4352. - *)
  4353. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  4354. - _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'
  4355. - ;;
  4356. - esac
  4357. - ;;
  4358. - tandem*)
  4359. - case $cc_basename in
  4360. - NCC*)
  4361. - # NonStop-UX NCC 3.20
  4362. - # FIXME: insert proper C++ library support
  4363. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4364. - ;;
  4365. - *)
  4366. - # FIXME: insert proper C++ library support
  4367. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4368. - ;;
  4369. - esac
  4370. - ;;
  4371. - vxworks*)
  4372. - # FIXME: insert proper C++ library support
  4373. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4374. - ;;
  4375. - *)
  4376. - # FIXME: insert proper C++ library support
  4377. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4378. - ;;
  4379. -esac
  4380. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  4381. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  4382. -
  4383. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  4384. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4385. -
  4386. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  4387. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4388. -AC_LIBTOOL_PROG_CC_C_O($1)
  4389. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4390. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4391. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4392. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4393. -
  4394. -AC_LIBTOOL_CONFIG($1)
  4395. -
  4396. -AC_LANG_POP
  4397. -CC=$lt_save_CC
  4398. -LDCXX=$LD
  4399. -LD=$lt_save_LD
  4400. -GCC=$lt_save_GCC
  4401. -with_gnu_ldcxx=$with_gnu_ld
  4402. -with_gnu_ld=$lt_save_with_gnu_ld
  4403. -lt_cv_path_LDCXX=$lt_cv_path_LD
  4404. -lt_cv_path_LD=$lt_save_path_LD
  4405. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  4406. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  4407. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  4408. -
  4409. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  4410. -# ------------------------------------
  4411. -# Figure out "hidden" library dependencies from verbose
  4412. -# compiler output when linking a shared library.
  4413. -# Parse the compiler output and extract the necessary
  4414. -# objects, libraries and library flags.
  4415. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
  4416. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  4417. -dnl we can't use the lt_simple_compile_test_code here,
  4418. -dnl because it contains code intended for an executable,
  4419. -dnl not a library. It's possible we should let each
  4420. -dnl tag define a new lt_????_link_test_code variable,
  4421. -dnl but it's only used here...
  4422. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  4423. -int a;
  4424. -void foo (void) { a = 0; }
  4425. -EOF
  4426. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  4427. -class Foo
  4428. -{
  4429. -public:
  4430. - Foo (void) { a = 0; }
  4431. -private:
  4432. - int a;
  4433. -};
  4434. -EOF
  4435. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  4436. - subroutine foo
  4437. - implicit none
  4438. - integer*4 a
  4439. - a=0
  4440. - return
  4441. - end
  4442. -EOF
  4443. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  4444. -public class foo {
  4445. - private int a;
  4446. - public void bar (void) {
  4447. - a = 0;
  4448. - }
  4449. -};
  4450. -EOF
  4451. -])
  4452. -dnl Parse the compiler output and extract the necessary
  4453. -dnl objects, libraries and library flags.
  4454. -if AC_TRY_EVAL(ac_compile); then
  4455. - # Parse the compiler output and extract the necessary
  4456. - # objects, libraries and library flags.
  4457. -
  4458. - # Sentinel used to keep track of whether or not we are before
  4459. - # the conftest object file.
  4460. - pre_test_object_deps_done=no
  4461. -
  4462. - # The `*' in the case matches for architectures that use `case' in
  4463. - # $output_verbose_cmd can trigger glob expansion during the loop
  4464. - # eval without this substitution.
  4465. - output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
  4466. -
  4467. - for p in `eval $output_verbose_link_cmd`; do
  4468. - case $p in
  4469. -
  4470. - -L* | -R* | -l*)
  4471. - # Some compilers place space between "-{L,R}" and the path.
  4472. - # Remove the space.
  4473. - if test $p = "-L" \
  4474. - || test $p = "-R"; then
  4475. - prev=$p
  4476. - continue
  4477. - else
  4478. - prev=
  4479. - fi
  4480. -
  4481. - if test "$pre_test_object_deps_done" = no; then
  4482. - case $p in
  4483. - -L* | -R*)
  4484. - # Internal compiler library paths should come after those
  4485. - # provided the user. The postdeps already come after the
  4486. - # user supplied libs so there is no need to process them.
  4487. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  4488. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  4489. - else
  4490. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  4491. - fi
  4492. - ;;
  4493. - # The "-l" case would never come before the object being
  4494. - # linked, so don't bother handling this case.
  4495. - esac
  4496. - else
  4497. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  4498. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  4499. - else
  4500. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  4501. - fi
  4502. - fi
  4503. - ;;
  4504. -
  4505. - *.$objext)
  4506. - # This assumes that the test object file only shows up
  4507. - # once in the compiler output.
  4508. - if test "$p" = "conftest.$objext"; then
  4509. - pre_test_object_deps_done=yes
  4510. - continue
  4511. - fi
  4512. -
  4513. - if test "$pre_test_object_deps_done" = no; then
  4514. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  4515. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  4516. - else
  4517. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  4518. - fi
  4519. - else
  4520. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  4521. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  4522. - else
  4523. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  4524. - fi
  4525. - fi
  4526. - ;;
  4527. -
  4528. - *) ;; # Ignore the rest.
  4529. -
  4530. - esac
  4531. - done
  4532. -
  4533. - # Clean up.
  4534. - rm -f a.out a.exe
  4535. -else
  4536. - echo "libtool.m4: error: problem compiling $1 test program"
  4537. -fi
  4538. -
  4539. -$rm -f confest.$objext
  4540. -
  4541. -_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
  4542. -if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  4543. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  4544. -fi
  4545. -
  4546. -# PORTME: override above test on systems where it is broken
  4547. -ifelse([$1],[CXX],
  4548. -[case $host_os in
  4549. -interix[[3-9]]*)
  4550. - # Interix 3.5 installs completely hosed .la files for C++, so rather than
  4551. - # hack all around it, let's just trust "g++" to DTRT.
  4552. - _LT_AC_TAGVAR(predep_objects,$1)=
  4553. - _LT_AC_TAGVAR(postdep_objects,$1)=
  4554. - _LT_AC_TAGVAR(postdeps,$1)=
  4555. - ;;
  4556. -
  4557. -linux*)
  4558. - case `$CC -V 2>&1 | sed 5q` in
  4559. - *Sun\ C*)
  4560. - # Sun C++ 5.9
  4561. - #
  4562. - # The more standards-conforming stlport4 library is
  4563. - # incompatible with the Cstd library. Avoid specifying
  4564. - # it if it's in CXXFLAGS. Ignore libCrun as
  4565. - # -library=stlport4 depends on it.
  4566. - case " $CXX $CXXFLAGS " in
  4567. - *" -library=stlport4 "*)
  4568. - solaris_use_stlport4=yes
  4569. - ;;
  4570. - esac
  4571. - if test "$solaris_use_stlport4" != yes; then
  4572. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4573. - fi
  4574. - ;;
  4575. - esac
  4576. - ;;
  4577. -
  4578. -solaris*)
  4579. - case $cc_basename in
  4580. - CC*)
  4581. - # The more standards-conforming stlport4 library is
  4582. - # incompatible with the Cstd library. Avoid specifying
  4583. - # it if it's in CXXFLAGS. Ignore libCrun as
  4584. - # -library=stlport4 depends on it.
  4585. - case " $CXX $CXXFLAGS " in
  4586. - *" -library=stlport4 "*)
  4587. - solaris_use_stlport4=yes
  4588. - ;;
  4589. - esac
  4590. -
  4591. - # Adding this requires a known-good setup of shared libraries for
  4592. - # Sun compiler versions before 5.6, else PIC objects from an old
  4593. - # archive will be linked into the output, leading to subtle bugs.
  4594. - if test "$solaris_use_stlport4" != yes; then
  4595. - _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  4596. - fi
  4597. - ;;
  4598. - esac
  4599. - ;;
  4600. -esac
  4601. -])
  4602. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  4603. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  4604. -esac
  4605. -])# AC_LIBTOOL_POSTDEP_PREDEP
  4606. -
  4607. -# AC_LIBTOOL_LANG_F77_CONFIG
  4608. -# --------------------------
  4609. -# Ensure that the configuration vars for the C compiler are
  4610. -# suitably defined. Those variables are subsequently used by
  4611. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4612. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  4613. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  4614. -[AC_REQUIRE([AC_PROG_F77])
  4615. -AC_LANG_PUSH(Fortran 77)
  4616. -
  4617. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4618. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4619. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4620. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4621. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4622. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4623. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4624. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4625. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4626. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4627. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4628. -_LT_AC_TAGVAR(module_cmds, $1)=
  4629. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4630. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4631. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4632. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4633. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4634. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4635. -
  4636. -# Source file extension for f77 test sources.
  4637. -ac_ext=f
  4638. -
  4639. -# Object file extension for compiled f77 test sources.
  4640. -objext=o
  4641. -_LT_AC_TAGVAR(objext, $1)=$objext
  4642. -
  4643. -# Code to be used in simple compile tests
  4644. -lt_simple_compile_test_code="\
  4645. - subroutine t
  4646. - return
  4647. - end
  4648. -"
  4649. -
  4650. -# Code to be used in simple link tests
  4651. -lt_simple_link_test_code="\
  4652. - program t
  4653. - end
  4654. -"
  4655. -
  4656. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4657. -_LT_AC_SYS_COMPILER
  4658. -
  4659. -# save warnings/boilerplate of simple test code
  4660. -_LT_COMPILER_BOILERPLATE
  4661. -_LT_LINKER_BOILERPLATE
  4662. -
  4663. -# Allow CC to be a program name with arguments.
  4664. -lt_save_CC="$CC"
  4665. -CC=${F77-"f77"}
  4666. -compiler=$CC
  4667. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4668. -_LT_CC_BASENAME([$compiler])
  4669. -
  4670. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4671. -AC_MSG_RESULT([$can_build_shared])
  4672. -
  4673. -AC_MSG_CHECKING([whether to build shared libraries])
  4674. -test "$can_build_shared" = "no" && enable_shared=no
  4675. -
  4676. -# On AIX, shared libraries and static libraries use the same namespace, and
  4677. -# are all built from PIC.
  4678. -case $host_os in
  4679. -aix3*)
  4680. - test "$enable_shared" = yes && enable_static=no
  4681. - if test -n "$RANLIB"; then
  4682. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4683. - postinstall_cmds='$RANLIB $lib'
  4684. - fi
  4685. - ;;
  4686. -aix[[4-9]]*)
  4687. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4688. - test "$enable_shared" = yes && enable_static=no
  4689. - fi
  4690. - ;;
  4691. -esac
  4692. -AC_MSG_RESULT([$enable_shared])
  4693. -
  4694. -AC_MSG_CHECKING([whether to build static libraries])
  4695. -# Make sure either enable_shared or enable_static is yes.
  4696. -test "$enable_shared" = yes || enable_static=yes
  4697. -AC_MSG_RESULT([$enable_static])
  4698. -
  4699. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  4700. -_LT_AC_TAGVAR(LD, $1)="$LD"
  4701. -
  4702. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4703. -AC_LIBTOOL_PROG_CC_C_O($1)
  4704. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4705. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4706. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4707. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4708. -
  4709. -AC_LIBTOOL_CONFIG($1)
  4710. -
  4711. -AC_LANG_POP
  4712. -CC="$lt_save_CC"
  4713. -])# AC_LIBTOOL_LANG_F77_CONFIG
  4714. -
  4715. -
  4716. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  4717. -# --------------------------
  4718. -# Ensure that the configuration vars for the C compiler are
  4719. -# suitably defined. Those variables are subsequently used by
  4720. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4721. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  4722. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  4723. -[AC_LANG_SAVE
  4724. -
  4725. -# Source file extension for Java test sources.
  4726. -ac_ext=java
  4727. -
  4728. -# Object file extension for compiled Java test sources.
  4729. -objext=o
  4730. -_LT_AC_TAGVAR(objext, $1)=$objext
  4731. -
  4732. -# Code to be used in simple compile tests
  4733. -lt_simple_compile_test_code="class foo {}"
  4734. -
  4735. -# Code to be used in simple link tests
  4736. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  4737. -
  4738. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4739. -_LT_AC_SYS_COMPILER
  4740. -
  4741. -# save warnings/boilerplate of simple test code
  4742. -_LT_COMPILER_BOILERPLATE
  4743. -_LT_LINKER_BOILERPLATE
  4744. -
  4745. -# Allow CC to be a program name with arguments.
  4746. -lt_save_CC="$CC"
  4747. -CC=${GCJ-"gcj"}
  4748. -compiler=$CC
  4749. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4750. -_LT_CC_BASENAME([$compiler])
  4751. -
  4752. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  4753. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4754. -
  4755. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4756. -
  4757. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4758. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4759. -AC_LIBTOOL_PROG_CC_C_O($1)
  4760. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4761. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4762. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4763. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4764. -
  4765. -AC_LIBTOOL_CONFIG($1)
  4766. -
  4767. -AC_LANG_RESTORE
  4768. -CC="$lt_save_CC"
  4769. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  4770. -
  4771. -
  4772. -# AC_LIBTOOL_LANG_RC_CONFIG
  4773. -# -------------------------
  4774. -# Ensure that the configuration vars for the Windows resource compiler are
  4775. -# suitably defined. Those variables are subsequently used by
  4776. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4777. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  4778. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  4779. -[AC_LANG_SAVE
  4780. -
  4781. -# Source file extension for RC test sources.
  4782. -ac_ext=rc
  4783. -
  4784. -# Object file extension for compiled RC test sources.
  4785. -objext=o
  4786. -_LT_AC_TAGVAR(objext, $1)=$objext
  4787. -
  4788. -# Code to be used in simple compile tests
  4789. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  4790. -
  4791. -# Code to be used in simple link tests
  4792. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  4793. -
  4794. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4795. -_LT_AC_SYS_COMPILER
  4796. -
  4797. -# save warnings/boilerplate of simple test code
  4798. -_LT_COMPILER_BOILERPLATE
  4799. -_LT_LINKER_BOILERPLATE
  4800. -
  4801. -# Allow CC to be a program name with arguments.
  4802. -lt_save_CC="$CC"
  4803. -CC=${RC-"windres"}
  4804. -compiler=$CC
  4805. -_LT_AC_TAGVAR(compiler, $1)=$CC
  4806. -_LT_CC_BASENAME([$compiler])
  4807. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  4808. -
  4809. -AC_LIBTOOL_CONFIG($1)
  4810. -
  4811. -AC_LANG_RESTORE
  4812. -CC="$lt_save_CC"
  4813. -])# AC_LIBTOOL_LANG_RC_CONFIG
  4814. -
  4815. -
  4816. -# AC_LIBTOOL_CONFIG([TAGNAME])
  4817. -# ----------------------------
  4818. -# If TAGNAME is not passed, then create an initial libtool script
  4819. -# with a default configuration from the untagged config vars. Otherwise
  4820. -# add code to config.status for appending the configuration named by
  4821. -# TAGNAME from the matching tagged config vars.
  4822. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  4823. -[# The else clause should only fire when bootstrapping the
  4824. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  4825. -# with your package, and you will get complaints that there are
  4826. -# no rules to generate ltmain.sh.
  4827. -if test -f "$ltmain"; then
  4828. - # See if we are running on zsh, and set the options which allow our commands through
  4829. - # without removal of \ escapes.
  4830. - if test -n "${ZSH_VERSION+set}" ; then
  4831. - setopt NO_GLOB_SUBST
  4832. - fi
  4833. - # Now quote all the things that may contain metacharacters while being
  4834. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  4835. - # variables and quote the copies for generation of the libtool script.
  4836. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
  4837. - SED SHELL STRIP \
  4838. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  4839. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  4840. - deplibs_check_method reload_flag reload_cmds need_locks \
  4841. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  4842. - lt_cv_sys_global_symbol_to_c_name_address \
  4843. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  4844. - old_postinstall_cmds old_postuninstall_cmds \
  4845. - _LT_AC_TAGVAR(compiler, $1) \
  4846. - _LT_AC_TAGVAR(CC, $1) \
  4847. - _LT_AC_TAGVAR(LD, $1) \
  4848. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  4849. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  4850. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  4851. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  4852. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  4853. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  4854. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  4855. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  4856. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  4857. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  4858. - _LT_AC_TAGVAR(predep_objects, $1) \
  4859. - _LT_AC_TAGVAR(postdep_objects, $1) \
  4860. - _LT_AC_TAGVAR(predeps, $1) \
  4861. - _LT_AC_TAGVAR(postdeps, $1) \
  4862. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  4863. - _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
  4864. - _LT_AC_TAGVAR(archive_cmds, $1) \
  4865. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  4866. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  4867. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  4868. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  4869. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  4870. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  4871. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  4872. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  4873. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  4874. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  4875. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  4876. - _LT_AC_TAGVAR(module_cmds, $1) \
  4877. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  4878. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  4879. - _LT_AC_TAGVAR(fix_srcfile_path, $1) \
  4880. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  4881. - _LT_AC_TAGVAR(include_expsyms, $1); do
  4882. -
  4883. - case $var in
  4884. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  4885. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  4886. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  4887. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  4888. - _LT_AC_TAGVAR(module_cmds, $1) | \
  4889. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  4890. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  4891. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  4892. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  4893. - postinstall_cmds | postuninstall_cmds | \
  4894. - old_postinstall_cmds | old_postuninstall_cmds | \
  4895. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  4896. - # Double-quote double-evaled strings.
  4897. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  4898. - ;;
  4899. - *)
  4900. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  4901. - ;;
  4902. - esac
  4903. - done
  4904. -
  4905. - case $lt_echo in
  4906. - *'\[$]0 --fallback-echo"')
  4907. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  4908. - ;;
  4909. - esac
  4910. -
  4911. -ifelse([$1], [],
  4912. - [cfgfile="${ofile}T"
  4913. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  4914. - $rm -f "$cfgfile"
  4915. - AC_MSG_NOTICE([creating $ofile])],
  4916. - [cfgfile="$ofile"])
  4917. -
  4918. - cat <<__EOF__ >> "$cfgfile"
  4919. -ifelse([$1], [],
  4920. -[#! $SHELL
  4921. -
  4922. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  4923. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  4924. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  4925. -#
  4926. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
  4927. -# Free Software Foundation, Inc.
  4928. -#
  4929. -# This file is part of GNU Libtool:
  4930. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  4931. -#
  4932. -# This program is free software; you can redistribute it and/or modify
  4933. -# it under the terms of the GNU General Public License as published by
  4934. -# the Free Software Foundation; either version 2 of the License, or
  4935. -# (at your option) any later version.
  4936. -#
  4937. -# This program is distributed in the hope that it will be useful, but
  4938. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  4939. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  4940. -# General Public License for more details.
  4941. -#
  4942. -# You should have received a copy of the GNU General Public License
  4943. -# along with this program; if not, write to the Free Software
  4944. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  4945. -#
  4946. -# As a special exception to the GNU General Public License, if you
  4947. -# distribute this file as part of a program that contains a
  4948. -# configuration script generated by Autoconf, you may include it under
  4949. -# the same distribution terms that you use for the rest of that program.
  4950. -
  4951. -# A sed program that does not truncate output.
  4952. -SED=$lt_SED
  4953. -
  4954. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  4955. -Xsed="$SED -e 1s/^X//"
  4956. -
  4957. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  4958. -# if CDPATH is set.
  4959. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  4960. -
  4961. -# The names of the tagged configurations supported by this script.
  4962. -available_tags=
  4963. -
  4964. -# ### BEGIN LIBTOOL CONFIG],
  4965. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  4966. -
  4967. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  4968. -
  4969. -# Shell to use when invoking shell scripts.
  4970. -SHELL=$lt_SHELL
  4971. -
  4972. -# Whether or not to build shared libraries.
  4973. -build_libtool_libs=$enable_shared
  4974. -
  4975. -# Whether or not to build static libraries.
  4976. -build_old_libs=$enable_static
  4977. -
  4978. -# Whether or not to add -lc for building shared libraries.
  4979. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  4980. -
  4981. -# Whether or not to disallow shared libs when runtime libs are static
  4982. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  4983. -
  4984. -# Whether or not to optimize for fast installation.
  4985. -fast_install=$enable_fast_install
  4986. -
  4987. -# The host system.
  4988. -host_alias=$host_alias
  4989. -host=$host
  4990. -host_os=$host_os
  4991. -
  4992. -# The build system.
  4993. -build_alias=$build_alias
  4994. -build=$build
  4995. -build_os=$build_os
  4996. -
  4997. -# An echo program that does not interpret backslashes.
  4998. -echo=$lt_echo
  4999. -
  5000. -# The archiver.
  5001. -AR=$lt_AR
  5002. -AR_FLAGS=$lt_AR_FLAGS
  5003. -
  5004. -# A C compiler.
  5005. -LTCC=$lt_LTCC
  5006. -
  5007. -# LTCC compiler flags.
  5008. -LTCFLAGS=$lt_LTCFLAGS
  5009. -
  5010. -# A language-specific compiler.
  5011. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  5012. -
  5013. -# Is the compiler the GNU C compiler?
  5014. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  5015. -
  5016. -# An ERE matcher.
  5017. -EGREP=$lt_EGREP
  5018. -
  5019. -# The linker used to build libraries.
  5020. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  5021. -
  5022. -# Whether we need hard or soft links.
  5023. -LN_S=$lt_LN_S
  5024. -
  5025. -# A BSD-compatible nm program.
  5026. -NM=$lt_NM
  5027. -
  5028. -# A symbol stripping program
  5029. -STRIP=$lt_STRIP
  5030. -
  5031. -# Used to examine libraries when file_magic_cmd begins "file"
  5032. -MAGIC_CMD=$MAGIC_CMD
  5033. -
  5034. -# Used on cygwin: DLL creation program.
  5035. -DLLTOOL="$DLLTOOL"
  5036. -
  5037. -# Used on cygwin: object dumper.
  5038. -OBJDUMP="$OBJDUMP"
  5039. -
  5040. -# Used on cygwin: assembler.
  5041. -AS="$AS"
  5042. -
  5043. -# The name of the directory that contains temporary libtool files.
  5044. -objdir=$objdir
  5045. -
  5046. -# How to create reloadable object files.
  5047. -reload_flag=$lt_reload_flag
  5048. -reload_cmds=$lt_reload_cmds
  5049. -
  5050. -# How to pass a linker flag through the compiler.
  5051. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  5052. -
  5053. -# Object file suffix (normally "o").
  5054. -objext="$ac_objext"
  5055. -
  5056. -# Old archive suffix (normally "a").
  5057. -libext="$libext"
  5058. -
  5059. -# Shared library suffix (normally ".so").
  5060. -shrext_cmds='$shrext_cmds'
  5061. -
  5062. -# Executable file suffix (normally "").
  5063. -exeext="$exeext"
  5064. -
  5065. -# Additional compiler flags for building library objects.
  5066. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  5067. -pic_mode=$pic_mode
  5068. -
  5069. -# What is the maximum length of a command?
  5070. -max_cmd_len=$lt_cv_sys_max_cmd_len
  5071. -
  5072. -# Does compiler simultaneously support -c and -o options?
  5073. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  5074. -
  5075. -# Must we lock files when doing compilation?
  5076. -need_locks=$lt_need_locks
  5077. -
  5078. -# Do we need the lib prefix for modules?
  5079. -need_lib_prefix=$need_lib_prefix
  5080. -
  5081. -# Do we need a version for libraries?
  5082. -need_version=$need_version
  5083. -
  5084. -# Whether dlopen is supported.
  5085. -dlopen_support=$enable_dlopen
  5086. -
  5087. -# Whether dlopen of programs is supported.
  5088. -dlopen_self=$enable_dlopen_self
  5089. -
  5090. -# Whether dlopen of statically linked programs is supported.
  5091. -dlopen_self_static=$enable_dlopen_self_static
  5092. -
  5093. -# Compiler flag to prevent dynamic linking.
  5094. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  5095. -
  5096. -# Compiler flag to turn off builtin functions.
  5097. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  5098. -
  5099. -# Compiler flag to allow reflexive dlopens.
  5100. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  5101. -
  5102. -# Compiler flag to generate shared objects directly from archives.
  5103. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  5104. -
  5105. -# Compiler flag to generate thread-safe objects.
  5106. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  5107. -
  5108. -# Library versioning type.
  5109. -version_type=$version_type
  5110. -
  5111. -# Format of library name prefix.
  5112. -libname_spec=$lt_libname_spec
  5113. -
  5114. -# List of archive names. First name is the real one, the rest are links.
  5115. -# The last name is the one that the linker finds with -lNAME.
  5116. -library_names_spec=$lt_library_names_spec
  5117. -
  5118. -# The coded name of the library, if different from the real name.
  5119. -soname_spec=$lt_soname_spec
  5120. -
  5121. -# Commands used to build and install an old-style archive.
  5122. -RANLIB=$lt_RANLIB
  5123. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  5124. -old_postinstall_cmds=$lt_old_postinstall_cmds
  5125. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  5126. -
  5127. -# Create an old-style archive from a shared archive.
  5128. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  5129. -
  5130. -# Create a temporary old-style archive to link instead of a shared archive.
  5131. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  5132. -
  5133. -# Commands used to build and install a shared archive.
  5134. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  5135. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  5136. -postinstall_cmds=$lt_postinstall_cmds
  5137. -postuninstall_cmds=$lt_postuninstall_cmds
  5138. -
  5139. -# Commands used to build a loadable module (assumed same as above if empty)
  5140. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  5141. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  5142. -
  5143. -# Commands to strip libraries.
  5144. -old_striplib=$lt_old_striplib
  5145. -striplib=$lt_striplib
  5146. -
  5147. -# Dependencies to place before the objects being linked to create a
  5148. -# shared library.
  5149. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  5150. -
  5151. -# Dependencies to place after the objects being linked to create a
  5152. -# shared library.
  5153. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  5154. -
  5155. -# Dependencies to place before the objects being linked to create a
  5156. -# shared library.
  5157. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  5158. -
  5159. -# Dependencies to place after the objects being linked to create a
  5160. -# shared library.
  5161. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  5162. -
  5163. -# The directories searched by this compiler when creating a shared
  5164. -# library
  5165. -compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
  5166. -
  5167. -# The library search path used internally by the compiler when linking
  5168. -# a shared library.
  5169. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  5170. -
  5171. -# Method to check whether dependent libraries are shared objects.
  5172. -deplibs_check_method=$lt_deplibs_check_method
  5173. -
  5174. -# Command to use when deplibs_check_method == file_magic.
  5175. -file_magic_cmd=$lt_file_magic_cmd
  5176. -
  5177. -# Flag that allows shared libraries with undefined symbols to be built.
  5178. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  5179. -
  5180. -# Flag that forces no undefined symbols.
  5181. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  5182. -
  5183. -# Commands used to finish a libtool library installation in a directory.
  5184. -finish_cmds=$lt_finish_cmds
  5185. -
  5186. -# Same as above, but a single script fragment to be evaled but not shown.
  5187. -finish_eval=$lt_finish_eval
  5188. -
  5189. -# Take the output of nm and produce a listing of raw symbols and C names.
  5190. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  5191. -
  5192. -# Transform the output of nm in a proper C declaration
  5193. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  5194. -
  5195. -# Transform the output of nm in a C name address pair
  5196. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  5197. -
  5198. -# This is the shared library runtime path variable.
  5199. -runpath_var=$runpath_var
  5200. -
  5201. -# This is the shared library path variable.
  5202. -shlibpath_var=$shlibpath_var
  5203. -
  5204. -# Is shlibpath searched before the hard-coded library search path?
  5205. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  5206. -
  5207. -# How to hardcode a shared library path into an executable.
  5208. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  5209. -
  5210. -# Whether we should hardcode library paths into libraries.
  5211. -hardcode_into_libs=$hardcode_into_libs
  5212. -
  5213. -# Flag to hardcode \$libdir into a binary during linking.
  5214. -# This must work even if \$libdir does not exist.
  5215. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  5216. -
  5217. -# If ld is used when linking, flag to hardcode \$libdir into
  5218. -# a binary during linking. This must work even if \$libdir does
  5219. -# not exist.
  5220. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  5221. -
  5222. -# Whether we need a single -rpath flag with a separated argument.
  5223. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  5224. -
  5225. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  5226. -# resulting binary.
  5227. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  5228. -
  5229. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  5230. -# resulting binary.
  5231. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  5232. -
  5233. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  5234. -# the resulting binary.
  5235. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  5236. -
  5237. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  5238. -# and all subsequent libraries and executables linked against it.
  5239. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  5240. -
  5241. -# Variables whose values should be saved in libtool wrapper scripts and
  5242. -# restored at relink time.
  5243. -variables_saved_for_relink="$variables_saved_for_relink"
  5244. -
  5245. -# Whether libtool must link a program against all its dependency libraries.
  5246. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  5247. -
  5248. -# Compile-time system search path for libraries
  5249. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  5250. -
  5251. -# Run-time system search path for libraries
  5252. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  5253. -
  5254. -# Fix the shell variable \$srcfile for the compiler.
  5255. -fix_srcfile_path=$lt_fix_srcfile_path
  5256. -
  5257. -# Set to yes if exported symbols are required.
  5258. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  5259. -
  5260. -# The commands to list exported symbols.
  5261. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  5262. -
  5263. -# The commands to extract the exported symbol list from a shared archive.
  5264. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  5265. -
  5266. -# Symbols that should not be listed in the preloaded symbols.
  5267. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  5268. -
  5269. -# Symbols that must always be exported.
  5270. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  5271. -
  5272. -ifelse([$1],[],
  5273. -[# ### END LIBTOOL CONFIG],
  5274. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  5275. -
  5276. -__EOF__
  5277. -
  5278. -ifelse([$1],[], [
  5279. - case $host_os in
  5280. - aix3*)
  5281. - cat <<\EOF >> "$cfgfile"
  5282. -
  5283. -# AIX sometimes has problems with the GCC collect2 program. For some
  5284. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  5285. -# vanish in a puff of smoke.
  5286. -if test "X${COLLECT_NAMES+set}" != Xset; then
  5287. - COLLECT_NAMES=
  5288. - export COLLECT_NAMES
  5289. -fi
  5290. -EOF
  5291. - ;;
  5292. - esac
  5293. -
  5294. - # We use sed instead of cat because bash on DJGPP gets confused if
  5295. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  5296. - # text mode, it properly converts lines to CR/LF. This bash problem
  5297. - # is reportedly fixed, but why not run on old versions too?
  5298. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  5299. +AC_SUBST([LIBM])
  5300. +])# LT_LIB_M
  5301. - mv -f "$cfgfile" "$ofile" || \
  5302. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  5303. - chmod +x "$ofile"
  5304. -])
  5305. -else
  5306. - # If there is no Makefile yet, we rely on a make rule to execute
  5307. - # `config.status --recheck' to rerun these tests and create the
  5308. - # libtool script then.
  5309. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  5310. - if test -f "$ltmain_in"; then
  5311. - test -f Makefile && make "$ltmain"
  5312. - fi
  5313. -fi
  5314. -])# AC_LIBTOOL_CONFIG
  5315. +# Old name:
  5316. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  5317. +dnl aclocal-1.4 backwards compatibility:
  5318. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  5319. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  5320. -# -------------------------------------------
  5321. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  5322. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  5323. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  5324. +# -------------------------------
  5325. +m4_defun([_LT_COMPILER_NO_RTTI],
  5326. +[m4_require([_LT_TAG_COMPILER])dnl
  5327. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5328. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5329. if test "$GCC" = yes; then
  5330. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5331. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5332. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  5333. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  5334. lt_cv_prog_compiler_rtti_exceptions,
  5335. [-fno-rtti -fno-exceptions], [],
  5336. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  5337. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  5338. fi
  5339. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  5340. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  5341. + [Compiler flag to turn off builtin functions])
  5342. +])# _LT_COMPILER_NO_RTTI
  5343. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  5344. -# ---------------------------------
  5345. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  5346. -[AC_REQUIRE([AC_CANONICAL_HOST])
  5347. -AC_REQUIRE([LT_AC_PROG_SED])
  5348. -AC_REQUIRE([AC_PROG_NM])
  5349. -AC_REQUIRE([AC_OBJEXT])
  5350. +# _LT_CMD_GLOBAL_SYMBOLS
  5351. +# ----------------------
  5352. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  5353. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  5354. +AC_REQUIRE([AC_PROG_CC])dnl
  5355. +AC_REQUIRE([LT_PATH_NM])dnl
  5356. +AC_REQUIRE([LT_PATH_LD])dnl
  5357. +m4_require([_LT_DECL_SED])dnl
  5358. +m4_require([_LT_DECL_EGREP])dnl
  5359. +m4_require([_LT_TAG_COMPILER])dnl
  5360. +
  5361. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5362. AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  5363. AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  5364. @@ -4815,33 +3348,18 @@ symcode='[[BCDEGRST]]'
  5365. # Regexp to match symbols that can be accessed directly from C.
  5366. sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  5367. -# Transform an extracted symbol line into a proper C declaration
  5368. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  5369. -
  5370. -# Transform an extracted symbol line into symbol name and symbol address
  5371. -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'"
  5372. -
  5373. # Define system-specific variables.
  5374. case $host_os in
  5375. aix*)
  5376. symcode='[[BCDT]]'
  5377. ;;
  5378. -cygwin* | mingw* | pw32*)
  5379. +cygwin* | mingw* | pw32* | cegcc*)
  5380. symcode='[[ABCDGISTW]]'
  5381. ;;
  5382. -hpux*) # Its linker distinguishes data from code symbols
  5383. +hpux*)
  5384. if test "$host_cpu" = ia64; then
  5385. symcode='[[ABCDEGRST]]'
  5386. fi
  5387. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5388. - 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'"
  5389. - ;;
  5390. -linux* | k*bsd*-gnu)
  5391. - if test "$host_cpu" = ia64; then
  5392. - symcode='[[ABCDGIRSTW]]'
  5393. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5394. - 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'"
  5395. - fi
  5396. ;;
  5397. irix* | nonstopux*)
  5398. symcode='[[BCDEGRST]]'
  5399. @@ -4866,44 +3384,72 @@ sysv4)
  5400. ;;
  5401. esac
  5402. +# If we're using GNU nm, then use its standard symbol codes.
  5403. +case `$NM -V 2>&1` in
  5404. +*GNU* | *'with BFD'*)
  5405. + symcode='[[ABCDGIRSTW]]' ;;
  5406. +esac
  5407. +
  5408. +# Transform an extracted symbol line into a proper C declaration.
  5409. +# Some systems (esp. on ia64) link data and code symbols differently,
  5410. +# so use this general approach.
  5411. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5412. +
  5413. +# Transform an extracted symbol line into symbol name and symbol address
  5414. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5415. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5416. +
  5417. # Handle CRLF in mingw tool chain
  5418. opt_cr=
  5419. case $build_os in
  5420. mingw*)
  5421. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5422. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5423. ;;
  5424. esac
  5425. -# If we're using GNU nm, then use its standard symbol codes.
  5426. -case `$NM -V 2>&1` in
  5427. -*GNU* | *'with BFD'*)
  5428. - symcode='[[ABCDGIRSTW]]' ;;
  5429. -esac
  5430. -
  5431. -# Try without a prefix undercore, then with it.
  5432. +# Try without a prefix underscore, then with it.
  5433. for ac_symprfx in "" "_"; do
  5434. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5435. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5436. # Write the raw and C identifiers.
  5437. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5438. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5439. + # Fake it for dumpbin and say T for any non-static function
  5440. + # and D for any global variable.
  5441. + # Also find C++ and __fastcall symbols from MSVC++,
  5442. + # which start with @ or ?.
  5443. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  5444. +" {last_section=section; section=\$ 3};"\
  5445. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5446. +" \$ 0!~/External *\|/{next};"\
  5447. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5448. +" {if(hide[section]) next};"\
  5449. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5450. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5451. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5452. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5453. +" ' prfx=^$ac_symprfx]"
  5454. + else
  5455. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5456. + fi
  5457. # Check to see that the pipe works correctly.
  5458. pipe_works=no
  5459. rm -f conftest*
  5460. - cat > conftest.$ac_ext <<EOF
  5461. + cat > conftest.$ac_ext <<_LT_EOF
  5462. #ifdef __cplusplus
  5463. extern "C" {
  5464. #endif
  5465. char nm_test_var;
  5466. -void nm_test_func(){}
  5467. +void nm_test_func(void);
  5468. +void nm_test_func(void){}
  5469. #ifdef __cplusplus
  5470. }
  5471. #endif
  5472. int main(){nm_test_var='a';nm_test_func();return(0);}
  5473. -EOF
  5474. +_LT_EOF
  5475. if AC_TRY_EVAL(ac_compile); then
  5476. # Now try to grab the symbols.
  5477. @@ -4917,48 +3463,50 @@ EOF
  5478. fi
  5479. # Make sure that we snagged all the symbols we need.
  5480. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  5481. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  5482. - cat <<EOF > conftest.$ac_ext
  5483. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5484. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5485. + cat <<_LT_EOF > conftest.$ac_ext
  5486. #ifdef __cplusplus
  5487. extern "C" {
  5488. #endif
  5489. -EOF
  5490. +_LT_EOF
  5491. # Now generate the symbol file.
  5492. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  5493. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5494. - cat <<EOF >> conftest.$ac_ext
  5495. -#if defined (__STDC__) && __STDC__
  5496. -# define lt_ptr_t void *
  5497. -#else
  5498. -# define lt_ptr_t char *
  5499. -# define const
  5500. -#endif
  5501. + cat <<_LT_EOF >> conftest.$ac_ext
  5502. -/* The mapping between symbol names and symbols. */
  5503. +/* The mapping between symbol names and symbols. */
  5504. const struct {
  5505. const char *name;
  5506. - lt_ptr_t address;
  5507. + void *address;
  5508. }
  5509. -lt_preloaded_symbols[[]] =
  5510. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  5511. {
  5512. -EOF
  5513. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  5514. - cat <<\EOF >> conftest.$ac_ext
  5515. - {0, (lt_ptr_t) 0}
  5516. + { "@PROGRAM@", (void *) 0 },
  5517. +_LT_EOF
  5518. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5519. + cat <<\_LT_EOF >> conftest.$ac_ext
  5520. + {0, (void *) 0}
  5521. };
  5522. +/* This works around a problem in FreeBSD linker */
  5523. +#ifdef FREEBSD_WORKAROUND
  5524. +static const void *lt_preloaded_setup() {
  5525. + return lt__PROGRAM__LTX_preloaded_symbols;
  5526. +}
  5527. +#endif
  5528. +
  5529. #ifdef __cplusplus
  5530. }
  5531. #endif
  5532. -EOF
  5533. +_LT_EOF
  5534. # Now try linking the two files.
  5535. mv conftest.$ac_objext conftstm.$ac_objext
  5536. lt_save_LIBS="$LIBS"
  5537. lt_save_CFLAGS="$CFLAGS"
  5538. LIBS="conftstm.$ac_objext"
  5539. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  5540. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  5541. if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  5542. pipe_works=yes
  5543. fi
  5544. @@ -4995,56 +3543,78 @@ if test -z "$lt_cv_sys_global_symbol_pip
  5545. else
  5546. AC_MSG_RESULT(ok)
  5547. fi
  5548. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  5549. +
  5550. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  5551. + [Take the output of nm and produce a listing of raw symbols and C names])
  5552. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  5553. + [Transform the output of nm in a proper C declaration])
  5554. +_LT_DECL([global_symbol_to_c_name_address],
  5555. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  5556. + [Transform the output of nm in a C name address pair])
  5557. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  5558. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  5559. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  5560. +]) # _LT_CMD_GLOBAL_SYMBOLS
  5561. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  5562. -# ---------------------------------------
  5563. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  5564. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  5565. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5566. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  5567. +# _LT_COMPILER_PIC([TAGNAME])
  5568. +# ---------------------------
  5569. +m4_defun([_LT_COMPILER_PIC],
  5570. +[m4_require([_LT_TAG_COMPILER])dnl
  5571. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  5572. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5573. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  5574. AC_MSG_CHECKING([for $compiler option to produce PIC])
  5575. - ifelse([$1],[CXX],[
  5576. +m4_if([$1], [CXX], [
  5577. # C++ specific cases for pic, static, wl, etc.
  5578. if test "$GXX" = yes; then
  5579. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5580. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5581. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5582. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5583. case $host_os in
  5584. aix*)
  5585. # All AIX code is PIC.
  5586. if test "$host_cpu" = ia64; then
  5587. # AIX 5 now supports IA64 processor
  5588. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5589. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5590. fi
  5591. ;;
  5592. +
  5593. amigaos*)
  5594. - # FIXME: we need at least 68020 code to build shared libraries, but
  5595. - # adding the `-m68020' flag to GCC prevents building anything better,
  5596. - # like `-m68040'.
  5597. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5598. + case $host_cpu in
  5599. + powerpc)
  5600. + # see comment about AmigaOS4 .so support
  5601. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5602. + ;;
  5603. + m68k)
  5604. + # FIXME: we need at least 68020 code to build shared libraries, but
  5605. + # adding the `-m68020' flag to GCC prevents building anything better,
  5606. + # like `-m68040'.
  5607. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5608. + ;;
  5609. + esac
  5610. ;;
  5611. +
  5612. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5613. # PIC is the default for these OSes.
  5614. ;;
  5615. - mingw* | cygwin* | os2* | pw32*)
  5616. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  5617. # This hack is so that the source file can tell whether it is being
  5618. # built for inclusion in a dll (and should export symbols for example).
  5619. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5620. # (--disable-auto-import) libraries
  5621. m4_if([$1], [GCJ], [],
  5622. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5623. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5624. ;;
  5625. darwin* | rhapsody*)
  5626. # PIC is the default on this platform
  5627. # Common symbols not allowed in MH_DYLIB files
  5628. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5629. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5630. ;;
  5631. *djgpp*)
  5632. # DJGPP does not support shared libraries at all
  5633. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5634. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5635. ;;
  5636. interix[[3-9]]*)
  5637. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  5638. @@ -5052,22 +3622,28 @@ AC_MSG_CHECKING([for $compiler option to
  5639. ;;
  5640. sysv4*MP*)
  5641. if test -d /usr/nec; then
  5642. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5643. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  5644. fi
  5645. ;;
  5646. hpux*)
  5647. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  5648. - # not for PA HP-UX.
  5649. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5650. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5651. + # sets the default TLS model and affects inlining.
  5652. case $host_cpu in
  5653. - hppa*64*|ia64*)
  5654. + hppa*64*)
  5655. ;;
  5656. *)
  5657. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5658. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5659. ;;
  5660. esac
  5661. ;;
  5662. + *qnx* | *nto*)
  5663. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5664. + # it will coredump.
  5665. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5666. + ;;
  5667. *)
  5668. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5669. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5670. ;;
  5671. esac
  5672. else
  5673. @@ -5076,37 +3652,27 @@ AC_MSG_CHECKING([for $compiler option to
  5674. # All AIX code is PIC.
  5675. if test "$host_cpu" = ia64; then
  5676. # AIX 5 now supports IA64 processor
  5677. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5678. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5679. else
  5680. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5681. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  5682. fi
  5683. ;;
  5684. chorus*)
  5685. case $cc_basename in
  5686. cxch68*)
  5687. # Green Hills C++ Compiler
  5688. - # _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"
  5689. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  5690. ;;
  5691. esac
  5692. ;;
  5693. - darwin*)
  5694. - # PIC is the default on this platform
  5695. - # Common symbols not allowed in MH_DYLIB files
  5696. - case $cc_basename in
  5697. - xlc*)
  5698. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  5699. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5700. - ;;
  5701. - esac
  5702. - ;;
  5703. dgux*)
  5704. case $cc_basename in
  5705. ec++*)
  5706. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5707. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5708. ;;
  5709. ghcx*)
  5710. # Green Hills C++ Compiler
  5711. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5712. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5713. ;;
  5714. *)
  5715. ;;
  5716. @@ -5118,21 +3684,21 @@ AC_MSG_CHECKING([for $compiler option to
  5717. hpux9* | hpux10* | hpux11*)
  5718. case $cc_basename in
  5719. CC*)
  5720. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5721. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5722. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5723. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5724. if test "$host_cpu" != ia64; then
  5725. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5726. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5727. fi
  5728. ;;
  5729. aCC*)
  5730. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5731. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5732. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5733. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  5734. case $host_cpu in
  5735. hppa*64*|ia64*)
  5736. # +Z the default
  5737. ;;
  5738. *)
  5739. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5740. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  5741. ;;
  5742. esac
  5743. ;;
  5744. @@ -5147,8 +3713,8 @@ AC_MSG_CHECKING([for $compiler option to
  5745. irix5* | irix6* | nonstopux*)
  5746. case $cc_basename in
  5747. CC*)
  5748. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5749. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5750. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5751. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5752. # CC pic flag -KPIC is the default.
  5753. ;;
  5754. *)
  5755. @@ -5159,35 +3725,48 @@ AC_MSG_CHECKING([for $compiler option to
  5756. case $cc_basename in
  5757. KCC*)
  5758. # KAI C++ Compiler
  5759. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5760. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5761. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5762. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5763. ;;
  5764. - icpc* | ecpc*)
  5765. - # Intel C++
  5766. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5767. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5768. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5769. + ecpc* )
  5770. + # old Intel C++ for x86_64 which still supported -KPIC.
  5771. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5772. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5773. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5774. + ;;
  5775. + icpc* )
  5776. + # Intel C++, used to be incompatible with GCC.
  5777. + # ICC 10 doesn't accept -KPIC any more.
  5778. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5779. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5780. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5781. ;;
  5782. pgCC* | pgcpp*)
  5783. - # Portland Group C++ compiler.
  5784. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5785. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5786. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5787. + # Portland Group C++ compiler
  5788. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5789. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  5790. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5791. ;;
  5792. cxx*)
  5793. # Compaq C++
  5794. # Make sure the PIC flag is empty. It appears that all Alpha
  5795. # Linux and Compaq Tru64 Unix objects are PIC.
  5796. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5797. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5798. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5799. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5800. + ;;
  5801. + xlc* | xlC*)
  5802. + # IBM XL 8.0 on PPC
  5803. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5804. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  5805. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  5806. ;;
  5807. *)
  5808. case `$CC -V 2>&1 | sed 5q` in
  5809. *Sun\ C*)
  5810. # Sun C++ 5.9
  5811. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5812. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5813. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5814. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5815. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5816. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5817. ;;
  5818. esac
  5819. ;;
  5820. @@ -5200,7 +3779,7 @@ AC_MSG_CHECKING([for $compiler option to
  5821. mvs*)
  5822. case $cc_basename in
  5823. cxx*)
  5824. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5825. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  5826. ;;
  5827. *)
  5828. ;;
  5829. @@ -5208,22 +3787,27 @@ AC_MSG_CHECKING([for $compiler option to
  5830. ;;
  5831. netbsd*)
  5832. ;;
  5833. + *qnx* | *nto*)
  5834. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  5835. + # it will coredump.
  5836. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  5837. + ;;
  5838. osf3* | osf4* | osf5*)
  5839. case $cc_basename in
  5840. KCC*)
  5841. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5842. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  5843. ;;
  5844. RCC*)
  5845. # Rational C++ 2.4.1
  5846. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5847. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5848. ;;
  5849. cxx*)
  5850. # Digital/Compaq C++
  5851. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5852. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5853. # Make sure the PIC flag is empty. It appears that all Alpha
  5854. # Linux and Compaq Tru64 Unix objects are PIC.
  5855. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  5856. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5857. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  5858. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  5859. ;;
  5860. *)
  5861. ;;
  5862. @@ -5235,13 +3819,13 @@ AC_MSG_CHECKING([for $compiler option to
  5863. case $cc_basename in
  5864. CC*)
  5865. # Sun C++ 4.2, 5.x and Centerline C++
  5866. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5867. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5868. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5869. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5870. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5871. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  5872. ;;
  5873. gcx*)
  5874. # Green Hills C++ Compiler
  5875. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5876. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  5877. ;;
  5878. *)
  5879. ;;
  5880. @@ -5251,82 +3835,104 @@ AC_MSG_CHECKING([for $compiler option to
  5881. case $cc_basename in
  5882. CC*)
  5883. # Sun C++ 4.x
  5884. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5885. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5886. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5887. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5888. ;;
  5889. lcc*)
  5890. # Lucid
  5891. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5892. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  5893. ;;
  5894. *)
  5895. ;;
  5896. esac
  5897. ;;
  5898. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5899. + case $cc_basename in
  5900. + CC*)
  5901. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5902. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5903. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5904. + ;;
  5905. + esac
  5906. + ;;
  5907. tandem*)
  5908. case $cc_basename in
  5909. NCC*)
  5910. # NonStop-UX NCC 3.20
  5911. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5912. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5913. ;;
  5914. *)
  5915. ;;
  5916. esac
  5917. ;;
  5918. - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  5919. - case $cc_basename in
  5920. - CC*)
  5921. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5922. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  5923. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5924. - ;;
  5925. - esac
  5926. - ;;
  5927. vxworks*)
  5928. ;;
  5929. *)
  5930. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5931. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  5932. ;;
  5933. esac
  5934. fi
  5935. ],
  5936. [
  5937. if test "$GCC" = yes; then
  5938. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5939. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5940. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  5941. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  5942. case $host_os in
  5943. aix*)
  5944. # All AIX code is PIC.
  5945. if test "$host_cpu" = ia64; then
  5946. # AIX 5 now supports IA64 processor
  5947. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5948. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  5949. fi
  5950. ;;
  5951. amigaos*)
  5952. - # FIXME: we need at least 68020 code to build shared libraries, but
  5953. - # adding the `-m68020' flag to GCC prevents building anything better,
  5954. - # like `-m68040'.
  5955. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5956. + case $host_cpu in
  5957. + powerpc)
  5958. + # see comment about AmigaOS4 .so support
  5959. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5960. + ;;
  5961. + m68k)
  5962. + # FIXME: we need at least 68020 code to build shared libraries, but
  5963. + # adding the `-m68020' flag to GCC prevents building anything better,
  5964. + # like `-m68040'.
  5965. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  5966. + ;;
  5967. + esac
  5968. ;;
  5969. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  5970. # PIC is the default for these OSes.
  5971. ;;
  5972. - mingw* | cygwin* | pw32* | os2*)
  5973. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  5974. # This hack is so that the source file can tell whether it is being
  5975. # built for inclusion in a dll (and should export symbols for example).
  5976. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  5977. # (--disable-auto-import) libraries
  5978. m4_if([$1], [GCJ], [],
  5979. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5980. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  5981. ;;
  5982. darwin* | rhapsody*)
  5983. # PIC is the default on this platform
  5984. # Common symbols not allowed in MH_DYLIB files
  5985. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5986. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  5987. + ;;
  5988. +
  5989. + hpux*)
  5990. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  5991. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  5992. + # sets the default TLS model and affects inlining.
  5993. + case $host_cpu in
  5994. + hppa*64*)
  5995. + # +Z the default
  5996. + ;;
  5997. + *)
  5998. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  5999. + ;;
  6000. + esac
  6001. ;;
  6002. interix[[3-9]]*)
  6003. @@ -5337,65 +3943,48 @@ AC_MSG_CHECKING([for $compiler option to
  6004. msdosdjgpp*)
  6005. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6006. # on systems that don't support them.
  6007. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6008. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6009. enable_shared=no
  6010. ;;
  6011. + *nto* | *qnx*)
  6012. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6013. + # it will coredump.
  6014. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6015. + ;;
  6016. +
  6017. sysv4*MP*)
  6018. if test -d /usr/nec; then
  6019. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6020. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6021. fi
  6022. ;;
  6023. - hpux*)
  6024. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6025. - # not for PA HP-UX.
  6026. - case $host_cpu in
  6027. - hppa*64*|ia64*)
  6028. - # +Z the default
  6029. - ;;
  6030. - *)
  6031. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6032. - ;;
  6033. - esac
  6034. - ;;
  6035. -
  6036. *)
  6037. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6038. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6039. ;;
  6040. esac
  6041. else
  6042. # PORTME Check for flag to pass linker flags through the system compiler.
  6043. case $host_os in
  6044. aix*)
  6045. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6046. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6047. if test "$host_cpu" = ia64; then
  6048. # AIX 5 now supports IA64 processor
  6049. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6050. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6051. else
  6052. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6053. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6054. fi
  6055. ;;
  6056. - darwin*)
  6057. - # PIC is the default on this platform
  6058. - # Common symbols not allowed in MH_DYLIB files
  6059. - case $cc_basename in
  6060. - xlc*)
  6061. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  6062. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6063. - ;;
  6064. - esac
  6065. - ;;
  6066. - mingw* | cygwin* | pw32* | os2*)
  6067. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  6068. # This hack is so that the source file can tell whether it is being
  6069. # built for inclusion in a dll (and should export symbols for example).
  6070. m4_if([$1], [GCJ], [],
  6071. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6072. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6073. ;;
  6074. hpux9* | hpux10* | hpux11*)
  6075. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6076. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6077. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6078. # not for PA HP-UX.
  6079. case $host_cpu in
  6080. @@ -5403,222 +3992,263 @@ AC_MSG_CHECKING([for $compiler option to
  6081. # +Z the default
  6082. ;;
  6083. *)
  6084. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6085. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6086. ;;
  6087. esac
  6088. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6089. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6090. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  6091. ;;
  6092. irix5* | irix6* | nonstopux*)
  6093. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6094. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6095. # PIC (with -KPIC) is the default.
  6096. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6097. - ;;
  6098. -
  6099. - newsos6)
  6100. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6101. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6102. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6103. ;;
  6104. linux* | k*bsd*-gnu)
  6105. case $cc_basename in
  6106. - icc* | ecc*)
  6107. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6108. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6109. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6110. + # old Intel for x86_64 which still supported -KPIC.
  6111. + ecc*)
  6112. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6113. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6114. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6115. + ;;
  6116. + # icc used to be incompatible with GCC.
  6117. + # ICC 10 doesn't accept -KPIC any more.
  6118. + icc* | ifort*)
  6119. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6120. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6121. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6122. ;;
  6123. + # Lahey Fortran 8.1.
  6124. + lf95*)
  6125. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6126. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  6127. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  6128. + ;;
  6129. pgcc* | pgf77* | pgf90* | pgf95*)
  6130. # Portland Group compilers (*not* the Pentium gcc compiler,
  6131. # which looks to be a dead project)
  6132. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6133. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6134. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6135. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6136. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  6137. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6138. ;;
  6139. ccc*)
  6140. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6141. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6142. # All Alpha code is PIC.
  6143. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6144. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6145. ;;
  6146. + xl*)
  6147. + # IBM XL C 8.0/Fortran 10.1 on PPC
  6148. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6149. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  6150. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  6151. + ;;
  6152. *)
  6153. - case `$CC -V 2>&1 | sed 5q` in
  6154. + case `$CC -V 2>&1 | sed 5q` in
  6155. *Sun\ C*)
  6156. # Sun C 5.9
  6157. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6158. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6159. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6160. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6161. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6162. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6163. ;;
  6164. *Sun\ F*)
  6165. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6166. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6167. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6168. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
  6169. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6170. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6171. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  6172. ;;
  6173. esac
  6174. ;;
  6175. esac
  6176. ;;
  6177. + newsos6)
  6178. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6179. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6180. + ;;
  6181. +
  6182. + *nto* | *qnx*)
  6183. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6184. + # it will coredump.
  6185. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6186. + ;;
  6187. +
  6188. osf3* | osf4* | osf5*)
  6189. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6190. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6191. # All OSF/1 code is PIC.
  6192. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6193. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6194. ;;
  6195. rdos*)
  6196. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6197. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6198. ;;
  6199. solaris*)
  6200. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6201. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6202. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6203. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6204. case $cc_basename in
  6205. f77* | f90* | f95*)
  6206. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6207. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  6208. *)
  6209. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6210. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  6211. esac
  6212. ;;
  6213. sunos4*)
  6214. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6215. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6216. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6217. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  6218. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  6219. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6220. ;;
  6221. sysv4 | sysv4.2uw2* | sysv4.3*)
  6222. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6223. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6224. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6225. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6226. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6227. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6228. ;;
  6229. sysv4*MP*)
  6230. if test -d /usr/nec ;then
  6231. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  6232. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6233. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  6234. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6235. fi
  6236. ;;
  6237. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6238. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6239. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6240. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6241. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6242. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6243. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6244. ;;
  6245. unicos*)
  6246. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6247. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6248. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6249. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6250. ;;
  6251. uts4*)
  6252. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6253. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6254. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6255. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6256. ;;
  6257. *)
  6258. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6259. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  6260. ;;
  6261. esac
  6262. fi
  6263. ])
  6264. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  6265. -
  6266. -#
  6267. -# Check to make sure the PIC flag actually works.
  6268. -#
  6269. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6270. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  6271. - _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
  6272. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  6273. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  6274. - "" | " "*) ;;
  6275. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  6276. - esac],
  6277. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6278. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  6279. -fi
  6280. case $host_os in
  6281. # For platforms which do not support PIC, -DPIC is meaningless:
  6282. *djgpp*)
  6283. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6284. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6285. ;;
  6286. *)
  6287. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  6288. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  6289. ;;
  6290. esac
  6291. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  6292. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  6293. + [How to pass a linker flag through the compiler])
  6294. +
  6295. +#
  6296. +# Check to make sure the PIC flag actually works.
  6297. +#
  6298. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  6299. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  6300. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  6301. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  6302. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  6303. + "" | " "*) ;;
  6304. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  6305. + esac],
  6306. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6307. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  6308. +fi
  6309. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  6310. + [Additional compiler flags for building library objects])
  6311. #
  6312. # Check to make sure the static flag actually works.
  6313. #
  6314. -wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
  6315. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  6316. - _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  6317. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  6318. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  6319. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  6320. $lt_tmp_static_flag,
  6321. [],
  6322. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  6323. -])
  6324. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  6325. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  6326. + [Compiler flag to prevent dynamic linking])
  6327. +])# _LT_COMPILER_PIC
  6328. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  6329. -# ------------------------------------
  6330. +# _LT_LINKER_SHLIBS([TAGNAME])
  6331. +# ----------------------------
  6332. # See if the linker supports building shared libraries.
  6333. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  6334. -[AC_REQUIRE([LT_AC_PROG_SED])dnl
  6335. +m4_defun([_LT_LINKER_SHLIBS],
  6336. +[AC_REQUIRE([LT_PATH_LD])dnl
  6337. +AC_REQUIRE([LT_PATH_NM])dnl
  6338. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  6339. +m4_require([_LT_DECL_EGREP])dnl
  6340. +m4_require([_LT_DECL_SED])dnl
  6341. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  6342. +m4_require([_LT_TAG_COMPILER])dnl
  6343. AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  6344. -ifelse([$1],[CXX],[
  6345. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6346. +m4_if([$1], [CXX], [
  6347. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6348. case $host_os in
  6349. aix[[4-9]]*)
  6350. # If we're using GNU nm, then we don't want the "-C" option.
  6351. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6352. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6353. - _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'
  6354. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6355. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6356. else
  6357. - _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'
  6358. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6359. fi
  6360. ;;
  6361. pw32*)
  6362. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  6363. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  6364. ;;
  6365. - cygwin* | mingw*)
  6366. - _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'
  6367. + cygwin* | mingw* | cegcc*)
  6368. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  6369. ;;
  6370. *)
  6371. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6372. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6373. ;;
  6374. esac
  6375. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6376. -],[
  6377. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6378. +], [
  6379. runpath_var=
  6380. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6381. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6382. - _LT_AC_TAGVAR(archive_cmds, $1)=
  6383. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6384. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  6385. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  6386. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6387. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6388. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  6389. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6390. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6391. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6392. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6393. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6394. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6395. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6396. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6397. - _LT_AC_TAGVAR(module_cmds, $1)=
  6398. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6399. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  6400. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6401. + _LT_TAGVAR(allow_undefined_flag, $1)=
  6402. + _LT_TAGVAR(always_export_symbols, $1)=no
  6403. + _LT_TAGVAR(archive_cmds, $1)=
  6404. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  6405. + _LT_TAGVAR(compiler_needs_object, $1)=no
  6406. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6407. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6408. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  6409. + _LT_TAGVAR(hardcode_automatic, $1)=no
  6410. + _LT_TAGVAR(hardcode_direct, $1)=no
  6411. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  6412. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6413. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6414. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6415. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  6416. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  6417. + _LT_TAGVAR(inherit_rpath, $1)=no
  6418. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  6419. + _LT_TAGVAR(module_cmds, $1)=
  6420. + _LT_TAGVAR(module_expsym_cmds, $1)=
  6421. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  6422. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  6423. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  6424. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6425. # include_expsyms should be a list of space-separated symbols to be *always*
  6426. # included in the symbol list
  6427. - _LT_AC_TAGVAR(include_expsyms, $1)=
  6428. + _LT_TAGVAR(include_expsyms, $1)=
  6429. # exclude_expsyms can be an extended regexp of symbols to exclude
  6430. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  6431. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  6432. # as well as any symbol that contains `d'.
  6433. - _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6434. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  6435. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  6436. # platforms (ab)use it in PIC code, but their linkers get confused if
  6437. # the symbol is explicitly referenced. Since portable code cannot
  6438. @@ -5627,10 +4257,9 @@ ifelse([$1],[CXX],[
  6439. # Exclude shared library initialization/finalization symbols.
  6440. dnl Note also adjust exclude_expsyms for C++ above.
  6441. extract_expsyms_cmds=
  6442. - # Just being paranoid about ensuring that cc_basename is set.
  6443. - _LT_CC_BASENAME([$compiler])
  6444. +
  6445. case $host_os in
  6446. - cygwin* | mingw* | pw32*)
  6447. + cygwin* | mingw* | pw32* | cegcc*)
  6448. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  6449. # When not using gcc, we currently assume that we are using
  6450. # Microsoft Visual C++.
  6451. @@ -5647,7 +4276,7 @@ dnl Note also adjust exclude_expsyms for
  6452. ;;
  6453. esac
  6454. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  6455. + _LT_TAGVAR(ld_shlibs, $1)=yes
  6456. if test "$with_gnu_ld" = yes; then
  6457. # If archive_cmds runs LD, not CC, wlarc should be empty
  6458. wlarc='${wl}'
  6459. @@ -5656,16 +4285,16 @@ dnl Note also adjust exclude_expsyms for
  6460. # are reset later if shared libraries are not supported. Putting them
  6461. # here allows them to be overridden if necessary.
  6462. runpath_var=LD_RUN_PATH
  6463. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  6464. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6465. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6466. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  6467. # ancient GNU ld didn't support --whole-archive et. al.
  6468. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  6469. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6470. - else
  6471. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6472. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  6473. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  6474. + else
  6475. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6476. fi
  6477. supports_anon_versioning=no
  6478. - case `$LD -v 2>/dev/null` in
  6479. + case `$LD -v 2>&1` in
  6480. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  6481. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  6482. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  6483. @@ -5678,8 +4307,8 @@ dnl Note also adjust exclude_expsyms for
  6484. aix[[3-9]]*)
  6485. # On AIX/PPC, the GNU linker is very broken
  6486. if test "$host_cpu" != ia64; then
  6487. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6488. - cat <<EOF 1>&2
  6489. + _LT_TAGVAR(ld_shlibs, $1)=no
  6490. + cat <<_LT_EOF 1>&2
  6491. *** Warning: the GNU linker, at least up to release 2.9.1, is reported
  6492. *** to be unable to reliably create shared libraries on AIX.
  6493. @@ -5687,49 +4316,50 @@ dnl Note also adjust exclude_expsyms for
  6494. *** really care for shared libraries, you may want to modify your PATH
  6495. *** so that a non-GNU linker is found, and then restart.
  6496. -EOF
  6497. +_LT_EOF
  6498. fi
  6499. ;;
  6500. amigaos*)
  6501. - _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)'
  6502. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6503. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6504. -
  6505. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  6506. - # that the semantics of dynamic libraries on AmigaOS, at least up
  6507. - # to version 4, is to share data among multiple programs linked
  6508. - # with the same dynamic library. Since this doesn't match the
  6509. - # behavior of shared libraries on other platforms, we can't use
  6510. - # them.
  6511. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6512. + case $host_cpu in
  6513. + powerpc)
  6514. + # see comment about AmigaOS4 .so support
  6515. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6516. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6517. + ;;
  6518. + m68k)
  6519. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6520. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6521. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6522. + ;;
  6523. + esac
  6524. ;;
  6525. beos*)
  6526. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6527. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6528. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6529. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6530. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  6531. # support --undefined. This deserves some investigation. FIXME
  6532. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6533. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6534. else
  6535. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6536. + _LT_TAGVAR(ld_shlibs, $1)=no
  6537. fi
  6538. ;;
  6539. - cygwin* | mingw* | pw32*)
  6540. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6541. + cygwin* | mingw* | pw32* | cegcc*)
  6542. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  6543. # as there is no search path for DLLs.
  6544. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6545. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6546. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  6547. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6548. - _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'
  6549. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6550. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6551. + _LT_TAGVAR(always_export_symbols, $1)=no
  6552. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6553. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  6554. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  6555. - _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'
  6556. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  6557. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6558. # If the export-symbols file already is a .def file (1st line
  6559. # is EXPORTS), use it as is; otherwise, prepend...
  6560. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6561. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  6562. cp $export_symbols $output_objdir/$soname.def;
  6563. else
  6564. echo EXPORTS > $output_objdir/$soname.def;
  6565. @@ -5737,79 +4367,109 @@ EOF
  6566. fi~
  6567. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  6568. else
  6569. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6570. + _LT_TAGVAR(ld_shlibs, $1)=no
  6571. fi
  6572. ;;
  6573. interix[[3-9]]*)
  6574. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  6575. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6576. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6577. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6578. + _LT_TAGVAR(hardcode_direct, $1)=no
  6579. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6580. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  6581. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  6582. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  6583. # Instead, shared libraries are loaded at an image base (0x10000000 by
  6584. # default) and relocated if they conflict, which is a slow very memory
  6585. # consuming and fragmenting process. To avoid this, we pick a random,
  6586. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  6587. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  6588. - _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'
  6589. - _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'
  6590. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6591. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  6592. ;;
  6593. - gnu* | linux* | k*bsd*-gnu)
  6594. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6595. + gnu* | linux* | tpf* | k*bsd*-gnu)
  6596. + tmp_diet=no
  6597. + if test "$host_os" = linux-dietlibc; then
  6598. + case $cc_basename in
  6599. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  6600. + esac
  6601. + fi
  6602. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  6603. + && test "$tmp_diet" = no
  6604. + then
  6605. tmp_addflag=
  6606. + tmp_sharedflag='-shared'
  6607. case $cc_basename,$host_cpu in
  6608. - pgcc*) # Portland Group C compiler
  6609. - _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'
  6610. + pgcc*) # Portland Group C compiler
  6611. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6612. tmp_addflag=' $pic_flag'
  6613. ;;
  6614. pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  6615. - _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'
  6616. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6617. tmp_addflag=' $pic_flag -Mnomain' ;;
  6618. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6619. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  6620. tmp_addflag=' -i_dynamic' ;;
  6621. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  6622. tmp_addflag=' -i_dynamic -nofor_main' ;;
  6623. ifc* | ifort*) # Intel Fortran compiler
  6624. tmp_addflag=' -nofor_main' ;;
  6625. + lf95*) # Lahey Fortran 8.1
  6626. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6627. + tmp_sharedflag='--shared' ;;
  6628. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  6629. + tmp_sharedflag='-qmkshrobj'
  6630. + tmp_addflag= ;;
  6631. esac
  6632. case `$CC -V 2>&1 | sed 5q` in
  6633. *Sun\ C*) # Sun C 5.9
  6634. - _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'
  6635. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  6636. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  6637. tmp_sharedflag='-G' ;;
  6638. *Sun\ F*) # Sun Fortran 8.3
  6639. tmp_sharedflag='-G' ;;
  6640. - *)
  6641. - tmp_sharedflag='-shared' ;;
  6642. esac
  6643. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6644. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6645. - if test $supports_anon_versioning = yes; then
  6646. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  6647. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6648. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  6649. - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6650. - fi
  6651. + if test "x$supports_anon_versioning" = xyes; then
  6652. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6653. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6654. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6655. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  6656. + fi
  6657. +
  6658. + case $cc_basename in
  6659. + xlf*)
  6660. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  6661. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  6662. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6663. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  6664. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  6665. + if test "x$supports_anon_versioning" = xyes; then
  6666. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  6667. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  6668. + echo "local: *; };" >> $output_objdir/$libname.ver~
  6669. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  6670. + fi
  6671. + ;;
  6672. + esac
  6673. else
  6674. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6675. + _LT_TAGVAR(ld_shlibs, $1)=no
  6676. fi
  6677. ;;
  6678. netbsd*)
  6679. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  6680. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6681. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  6682. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  6683. wlarc=
  6684. else
  6685. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6686. - _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'
  6687. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6688. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6689. fi
  6690. ;;
  6691. solaris*)
  6692. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  6693. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6694. - cat <<EOF 1>&2
  6695. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  6696. + _LT_TAGVAR(ld_shlibs, $1)=no
  6697. + cat <<_LT_EOF 1>&2
  6698. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  6699. *** create shared libraries on Solaris systems. Therefore, libtool
  6700. @@ -5818,19 +4478,19 @@ EOF
  6701. *** your PATH or compiler configuration so that the native linker is
  6702. *** used, and then restart.
  6703. -EOF
  6704. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6705. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6706. - _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'
  6707. +_LT_EOF
  6708. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6709. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6710. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6711. else
  6712. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6713. + _LT_TAGVAR(ld_shlibs, $1)=no
  6714. fi
  6715. ;;
  6716. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  6717. case `$LD -v 2>&1` in
  6718. *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  6719. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6720. + _LT_TAGVAR(ld_shlibs, $1)=no
  6721. cat <<_LT_EOF 1>&2
  6722. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  6723. @@ -5843,54 +4503,58 @@ EOF
  6724. _LT_EOF
  6725. ;;
  6726. *)
  6727. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6728. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
  6729. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
  6730. - _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'
  6731. + # For security reasons, it is highly recommended that you always
  6732. + # use absolute paths for naming shared libraries, and exclude the
  6733. + # DT_RUNPATH tag from executables and libraries. But doing so
  6734. + # requires that you compile everything twice, which is a pain.
  6735. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6736. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  6737. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6738. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6739. else
  6740. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6741. + _LT_TAGVAR(ld_shlibs, $1)=no
  6742. fi
  6743. ;;
  6744. esac
  6745. ;;
  6746. sunos4*)
  6747. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6748. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  6749. wlarc=
  6750. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6751. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6752. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6753. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  6754. ;;
  6755. *)
  6756. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  6757. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6758. - _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'
  6759. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  6760. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6761. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  6762. else
  6763. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6764. + _LT_TAGVAR(ld_shlibs, $1)=no
  6765. fi
  6766. ;;
  6767. esac
  6768. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  6769. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  6770. runpath_var=
  6771. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6772. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6773. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6774. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6775. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  6776. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  6777. fi
  6778. else
  6779. # PORTME fill in a description of your system's linker (not GNU ld)
  6780. case $host_os in
  6781. aix3*)
  6782. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6783. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  6784. - _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'
  6785. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6786. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6787. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  6788. # Note: this linker hardcodes the directories in LIBPATH if there
  6789. # are no directories specified by -L.
  6790. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6791. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6792. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  6793. # Neither direct hardcoding nor static linking is supported with a
  6794. # broken collect2.
  6795. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  6796. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6797. fi
  6798. ;;
  6799. @@ -5904,10 +4568,10 @@ _LT_EOF
  6800. else
  6801. # If we're using GNU nm, then we don't want the "-C" option.
  6802. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  6803. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  6804. - _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'
  6805. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  6806. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6807. else
  6808. - _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'
  6809. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  6810. fi
  6811. aix_use_runtimelinking=no
  6812. @@ -5916,10 +4580,10 @@ _LT_EOF
  6813. # need to do runtime linking.
  6814. case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  6815. for ld_flag in $LDFLAGS; do
  6816. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6817. - aix_use_runtimelinking=yes
  6818. - break
  6819. - fi
  6820. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  6821. + aix_use_runtimelinking=yes
  6822. + break
  6823. + fi
  6824. done
  6825. ;;
  6826. esac
  6827. @@ -5934,30 +4598,32 @@ _LT_EOF
  6828. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  6829. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  6830. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  6831. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  6832. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  6833. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6834. + _LT_TAGVAR(archive_cmds, $1)=''
  6835. + _LT_TAGVAR(hardcode_direct, $1)=yes
  6836. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  6837. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  6838. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  6839. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  6840. if test "$GCC" = yes; then
  6841. case $host_os in aix4.[[012]]|aix4.[[012]].*)
  6842. # We only want to do this on AIX 4.2 and lower, the check
  6843. # below for broken collect2 doesn't work under 4.3+
  6844. collect2name=`${CC} -print-prog-name=collect2`
  6845. - if test -f "$collect2name" && \
  6846. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  6847. + if test -f "$collect2name" &&
  6848. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  6849. then
  6850. - # We have reworked collect2
  6851. - :
  6852. + # We have reworked collect2
  6853. + :
  6854. else
  6855. - # We have old collect2
  6856. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  6857. - # It fails to find uninstalled libraries when the uninstalled
  6858. - # path is not listed in the libpath. Setting hardcode_minus_L
  6859. - # to unsupported forces relinking
  6860. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6861. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6862. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6863. + # We have old collect2
  6864. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  6865. + # It fails to find uninstalled libraries when the uninstalled
  6866. + # path is not listed in the libpath. Setting hardcode_minus_L
  6867. + # to unsupported forces relinking
  6868. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6869. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6870. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  6871. fi
  6872. ;;
  6873. esac
  6874. @@ -5968,8 +4634,8 @@ _LT_EOF
  6875. else
  6876. # not using gcc
  6877. if test "$host_cpu" = ia64; then
  6878. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6879. - # chokes on -Wl,-G. The following line is correct:
  6880. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  6881. + # chokes on -Wl,-G. The following line is correct:
  6882. shared_flag='-G'
  6883. else
  6884. if test "$aix_use_runtimelinking" = yes; then
  6885. @@ -5980,129 +4646,94 @@ _LT_EOF
  6886. fi
  6887. fi
  6888. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  6889. # It seems that -bexpall does not export symbols beginning with
  6890. # underscore (_), so it is better to generate a list of symbols to export.
  6891. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  6892. + _LT_TAGVAR(always_export_symbols, $1)=yes
  6893. if test "$aix_use_runtimelinking" = yes; then
  6894. # Warning - without using the other runtime loading flags (-brtl),
  6895. # -berok will link without error, but may produce a broken library.
  6896. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  6897. - # Determine the default libpath from the value encoded in an empty executable.
  6898. - _LT_AC_SYS_LIBPATH_AIX
  6899. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6900. - _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"
  6901. - else
  6902. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  6903. + # Determine the default libpath from the value encoded in an
  6904. + # empty executable.
  6905. + _LT_SYS_MODULE_PATH_AIX
  6906. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6907. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  6908. + else
  6909. if test "$host_cpu" = ia64; then
  6910. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6911. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6912. - _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"
  6913. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  6914. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  6915. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  6916. else
  6917. - # Determine the default libpath from the value encoded in an empty executable.
  6918. - _LT_AC_SYS_LIBPATH_AIX
  6919. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6920. + # Determine the default libpath from the value encoded in an
  6921. + # empty executable.
  6922. + _LT_SYS_MODULE_PATH_AIX
  6923. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  6924. # Warning - without using the other run time loading flags,
  6925. # -berok will link without error, but may produce a broken library.
  6926. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6927. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6928. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  6929. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  6930. # Exported symbols can be pulled into shared objects from archives
  6931. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6932. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  6933. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  6934. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  6935. # This is similar to how AIX traditionally builds its shared libraries.
  6936. - _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'
  6937. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  6938. fi
  6939. fi
  6940. ;;
  6941. amigaos*)
  6942. - _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)'
  6943. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6944. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  6945. - # see comment about different semantics on the GNU ld section
  6946. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6947. + case $host_cpu in
  6948. + powerpc)
  6949. + # see comment about AmigaOS4 .so support
  6950. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  6951. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  6952. + ;;
  6953. + m68k)
  6954. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  6955. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  6956. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  6957. + ;;
  6958. + esac
  6959. ;;
  6960. bsdi[[45]]*)
  6961. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6962. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  6963. ;;
  6964. - cygwin* | mingw* | pw32*)
  6965. + cygwin* | mingw* | pw32* | cegcc*)
  6966. # When not using gcc, we currently assume that we are using
  6967. # Microsoft Visual C++.
  6968. # hardcode_libdir_flag_spec is actually meaningless, as there is
  6969. # no search path for DLLs.
  6970. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6971. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  6972. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  6973. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  6974. # Tell ltmain to make .lib files, not .a files.
  6975. libext=lib
  6976. # Tell ltmain to make .dll files, not .so files.
  6977. shrext_cmds=".dll"
  6978. # FIXME: Setting linknames here is a bad hack.
  6979. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6980. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  6981. # The linker will automatically build a .lib file if we build a DLL.
  6982. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  6983. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  6984. # FIXME: Should let the user specify the lib program.
  6985. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6986. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6987. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6988. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  6989. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  6990. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  6991. ;;
  6992. darwin* | rhapsody*)
  6993. - case $host_os in
  6994. - rhapsody* | darwin1.[[012]])
  6995. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  6996. - ;;
  6997. - *) # Darwin 1.3 on
  6998. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  6999. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7000. - else
  7001. - case ${MACOSX_DEPLOYMENT_TARGET} in
  7002. - 10.[[012]])
  7003. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7004. - ;;
  7005. - 10.*)
  7006. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  7007. - ;;
  7008. - esac
  7009. - fi
  7010. - ;;
  7011. - esac
  7012. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7013. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7014. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  7015. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7016. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  7017. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7018. - if test "$GCC" = yes ; then
  7019. - output_verbose_link_cmd='echo'
  7020. - _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7021. - _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7022. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7023. - _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7024. - else
  7025. - case $cc_basename in
  7026. - xlc*)
  7027. - output_verbose_link_cmd='echo'
  7028. - _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'
  7029. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  7030. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
  7031. - _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}'
  7032. - _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}'
  7033. - ;;
  7034. - *)
  7035. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7036. - ;;
  7037. - esac
  7038. - fi
  7039. + _LT_DARWIN_LINKER_FEATURES($1)
  7040. ;;
  7041. dgux*)
  7042. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7043. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7044. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7045. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7046. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7047. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7048. ;;
  7049. freebsd1*)
  7050. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7051. + _LT_TAGVAR(ld_shlibs, $1)=no
  7052. ;;
  7053. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7054. @@ -6110,60 +4741,60 @@ _LT_EOF
  7055. # does not break anything, and helps significantly (at the cost of a little
  7056. # extra space).
  7057. freebsd2.2*)
  7058. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7059. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7060. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7061. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7062. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7063. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7064. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7065. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7066. ;;
  7067. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7068. freebsd2*)
  7069. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7070. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7071. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7072. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7073. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7074. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7075. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7076. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7077. ;;
  7078. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7079. freebsd* | dragonfly*)
  7080. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7081. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7082. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7083. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7084. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7085. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7086. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7087. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7088. ;;
  7089. hpux9*)
  7090. if test "$GCC" = yes; then
  7091. - _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'
  7092. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7093. else
  7094. - _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'
  7095. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7096. fi
  7097. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7098. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7099. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7100. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7101. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7102. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7103. # hardcode_minus_L: Not really in the search PATH,
  7104. # but as the default location of the library.
  7105. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7106. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7107. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7108. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7109. ;;
  7110. hpux10*)
  7111. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7112. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7113. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7114. else
  7115. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7116. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7117. fi
  7118. if test "$with_gnu_ld" = no; then
  7119. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7120. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7121. -
  7122. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7123. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7124. -
  7125. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7126. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  7127. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7128. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7129. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7130. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7131. # hardcode_minus_L: Not really in the search PATH,
  7132. # but as the default location of the library.
  7133. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7134. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7135. fi
  7136. ;;
  7137. @@ -6171,45 +4802,45 @@ _LT_EOF
  7138. if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  7139. case $host_cpu in
  7140. hppa*64*)
  7141. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7142. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7143. ;;
  7144. ia64*)
  7145. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7146. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7147. ;;
  7148. *)
  7149. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7150. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7151. ;;
  7152. esac
  7153. else
  7154. case $host_cpu in
  7155. hppa*64*)
  7156. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7157. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7158. ;;
  7159. ia64*)
  7160. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7161. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7162. ;;
  7163. *)
  7164. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7165. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7166. ;;
  7167. esac
  7168. fi
  7169. if test "$with_gnu_ld" = no; then
  7170. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7171. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7172. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  7173. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7174. case $host_cpu in
  7175. hppa*64*|ia64*)
  7176. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  7177. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7178. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7179. + _LT_TAGVAR(hardcode_direct, $1)=no
  7180. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7181. ;;
  7182. *)
  7183. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7184. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7185. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7186. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7187. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7188. # hardcode_minus_L: Not really in the search PATH,
  7189. # but as the default location of the library.
  7190. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7191. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7192. ;;
  7193. esac
  7194. fi
  7195. @@ -6217,194 +4848,221 @@ _LT_EOF
  7196. irix5* | irix6* | nonstopux*)
  7197. if test "$GCC" = yes; then
  7198. - _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'
  7199. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7200. + # Try to use the -exported_symbol ld option, if it does not
  7201. + # work, assume that -exports_file does not work either and
  7202. + # implicitly export all symbols.
  7203. + save_LDFLAGS="$LDFLAGS"
  7204. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7205. + AC_LINK_IFELSE(int foo(void) {},
  7206. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  7207. + )
  7208. + LDFLAGS="$save_LDFLAGS"
  7209. else
  7210. - _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'
  7211. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7212. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7213. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  7214. fi
  7215. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7216. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7217. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7218. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7219. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7220. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7221. + _LT_TAGVAR(inherit_rpath, $1)=yes
  7222. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7223. ;;
  7224. netbsd*)
  7225. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7226. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7227. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7228. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7229. else
  7230. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7231. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7232. fi
  7233. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7234. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7235. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7236. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7237. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7238. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7239. ;;
  7240. newsos6)
  7241. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7242. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7243. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7244. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7245. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7246. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7247. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7249. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7250. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7251. + ;;
  7252. +
  7253. + *nto* | *qnx*)
  7254. ;;
  7255. openbsd*)
  7256. if test -f /usr/libexec/ld.so; then
  7257. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7258. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7259. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7260. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7261. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7262. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7263. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7264. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7265. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7266. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  7267. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7268. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7269. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7270. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7271. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7272. else
  7273. case $host_os in
  7274. openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  7275. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7276. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7277. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7278. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7279. ;;
  7280. *)
  7281. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7282. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7283. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7284. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7285. ;;
  7286. esac
  7287. - fi
  7288. + fi
  7289. else
  7290. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7291. + _LT_TAGVAR(ld_shlibs, $1)=no
  7292. fi
  7293. ;;
  7294. os2*)
  7295. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7296. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7297. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7298. - _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'
  7299. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7300. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7301. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7302. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7303. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  7304. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7305. ;;
  7306. osf3*)
  7307. if test "$GCC" = yes; then
  7308. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7309. - _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'
  7310. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7311. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7312. else
  7313. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7314. - _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'
  7315. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7316. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7317. fi
  7318. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7319. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7320. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7321. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7322. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7323. ;;
  7324. osf4* | osf5*) # as osf3* with the addition of -msym flag
  7325. if test "$GCC" = yes; then
  7326. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7327. - _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'
  7328. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7329. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  7330. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  7331. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7332. else
  7333. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7334. - _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'
  7335. - _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~
  7336. - $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'
  7337. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  7338. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  7339. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  7340. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  7341. # Both c and cxx compiler support -rpath directly
  7342. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7343. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  7344. fi
  7345. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  7346. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  7347. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  7348. ;;
  7349. solaris*)
  7350. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  7351. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  7352. if test "$GCC" = yes; then
  7353. wlarc='${wl}'
  7354. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7355. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7356. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  7357. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7358. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7359. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7360. else
  7361. - wlarc=''
  7362. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7363. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  7364. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  7365. + case `$CC -V 2>&1` in
  7366. + *"Compilers 5.0"*)
  7367. + wlarc=''
  7368. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7369. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7370. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  7371. + ;;
  7372. + *)
  7373. + wlarc='${wl}'
  7374. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7375. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  7376. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  7377. + ;;
  7378. + esac
  7379. fi
  7380. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7381. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7382. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  7383. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7384. case $host_os in
  7385. solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  7386. *)
  7387. # The compiler driver will combine and reorder linker options,
  7388. # but understands `-z linker_flag'. GCC discards it without `$wl',
  7389. # but is careful enough not to reorder.
  7390. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  7391. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  7392. if test "$GCC" = yes; then
  7393. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7394. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  7395. else
  7396. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7397. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  7398. fi
  7399. ;;
  7400. esac
  7401. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7402. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7403. ;;
  7404. sunos4*)
  7405. if test "x$host_vendor" = xsequent; then
  7406. # Use $CC to link under sequent, because it throws in some extra .o
  7407. # files that make .init and .fini sections work.
  7408. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7409. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  7410. else
  7411. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7412. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  7413. fi
  7414. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7415. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7416. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7417. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7418. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7419. + _LT_TAGVAR(hardcode_direct, $1)=yes
  7420. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7421. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7422. ;;
  7423. sysv4)
  7424. case $host_vendor in
  7425. sni)
  7426. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7427. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  7428. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7429. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  7430. ;;
  7431. siemens)
  7432. ## LD is ld it makes a PLAMLIB
  7433. ## CC just makes a GrossModule.
  7434. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7435. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  7436. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7437. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  7438. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  7439. + _LT_TAGVAR(hardcode_direct, $1)=no
  7440. ;;
  7441. motorola)
  7442. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7443. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  7444. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7445. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  7446. ;;
  7447. esac
  7448. runpath_var='LD_RUN_PATH'
  7449. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7450. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7451. ;;
  7452. sysv4.3*)
  7453. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7454. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7455. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  7456. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7457. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7458. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  7459. ;;
  7460. sysv4*MP*)
  7461. if test -d /usr/nec; then
  7462. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7463. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7464. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7465. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7466. runpath_var=LD_RUN_PATH
  7467. hardcode_runpath_var=yes
  7468. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  7469. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7470. fi
  7471. ;;
  7472. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  7473. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7474. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7475. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7476. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7477. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7478. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7479. runpath_var='LD_RUN_PATH'
  7480. if test "$GCC" = yes; then
  7481. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7482. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7483. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7484. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7485. else
  7486. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7487. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7488. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7489. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7490. fi
  7491. ;;
  7492. @@ -6415,50 +5073,65 @@ _LT_EOF
  7493. # ever link correctly. If we're not using GNU ld we use -z text
  7494. # though, which does catch some bad symbols but isn't as heavy-handed
  7495. # as -z defs.
  7496. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7497. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7498. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7499. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7500. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
  7501. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7502. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7503. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7504. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  7505. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  7506. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7507. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7508. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  7509. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  7510. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  7511. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  7512. runpath_var='LD_RUN_PATH'
  7513. if test "$GCC" = yes; then
  7514. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7515. - _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'
  7516. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7517. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7518. else
  7519. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7520. - _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'
  7521. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7522. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  7523. fi
  7524. ;;
  7525. uts4*)
  7526. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7527. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7528. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7529. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7530. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7531. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7532. ;;
  7533. *)
  7534. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7535. + _LT_TAGVAR(ld_shlibs, $1)=no
  7536. ;;
  7537. esac
  7538. +
  7539. + if test x$host_vendor = xsni; then
  7540. + case $host in
  7541. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7542. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  7543. + ;;
  7544. + esac
  7545. + fi
  7546. fi
  7547. ])
  7548. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  7549. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7550. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  7551. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  7552. +
  7553. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  7554. +
  7555. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  7556. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  7557. +_LT_DECL([], [extract_expsyms_cmds], [2],
  7558. + [The commands to extract the exported symbol list from a shared archive])
  7559. #
  7560. # Do we need to explicitly link libc?
  7561. #
  7562. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  7563. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  7564. x|xyes)
  7565. # Assume -lc should be added
  7566. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  7567. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7568. if test "$enable_shared" = yes && test "$GCC" = yes; then
  7569. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  7570. + case $_LT_TAGVAR(archive_cmds, $1) in
  7571. *'~'*)
  7572. # FIXME: we may have to deal with multi-command sequences.
  7573. ;;
  7574. @@ -6467,7 +5140,7 @@ x|xyes)
  7575. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  7576. # to ld, don't add -lc before -lgcc.
  7577. AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  7578. - $rm conftest*
  7579. + $RM conftest*
  7580. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7581. if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  7582. @@ -6475,135 +5148,1916 @@ x|xyes)
  7583. lib=conftest
  7584. libobjs=conftest.$ac_objext
  7585. deplibs=
  7586. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7587. - pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7588. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  7589. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  7590. compiler_flags=-v
  7591. linker_flags=-v
  7592. verstring=
  7593. output_objdir=.
  7594. libname=conftest
  7595. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7596. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7597. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  7598. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  7599. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7600. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  7601. then
  7602. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  7603. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7604. else
  7605. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  7606. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  7607. fi
  7608. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  7609. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  7610. else
  7611. cat conftest.err 1>&5
  7612. fi
  7613. - $rm conftest*
  7614. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  7615. + $RM conftest*
  7616. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  7617. ;;
  7618. esac
  7619. fi
  7620. ;;
  7621. esac
  7622. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  7623. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  7624. + [Whether or not to add -lc for building shared libraries])
  7625. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  7626. + [enable_shared_with_static_runtimes], [0],
  7627. + [Whether or not to disallow shared libs when runtime libs are static])
  7628. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  7629. + [Compiler flag to allow reflexive dlopens])
  7630. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  7631. + [Compiler flag to generate shared objects directly from archives])
  7632. +_LT_TAGDECL([], [compiler_needs_object], [1],
  7633. + [Whether the compiler copes with passing no objects directly])
  7634. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  7635. + [Create an old-style archive from a shared archive])
  7636. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  7637. + [Create a temporary old-style archive to link instead of a shared archive])
  7638. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  7639. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  7640. +_LT_TAGDECL([], [module_cmds], [2],
  7641. + [Commands used to build a loadable module if different from building
  7642. + a shared archive.])
  7643. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  7644. +_LT_TAGDECL([], [with_gnu_ld], [1],
  7645. + [Whether we are building with GNU ld or not])
  7646. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  7647. + [Flag that allows shared libraries with undefined symbols to be built])
  7648. +_LT_TAGDECL([], [no_undefined_flag], [1],
  7649. + [Flag that enforces no undefined symbols])
  7650. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  7651. + [Flag to hardcode $libdir into a binary during linking.
  7652. + This must work even if $libdir does not exist])
  7653. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  7654. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  7655. + during linking. This must work even if $libdir does not exist]])
  7656. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  7657. + [Whether we need a single "-rpath" flag with a separated argument])
  7658. +_LT_TAGDECL([], [hardcode_direct], [0],
  7659. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7660. + DIR into the resulting binary])
  7661. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  7662. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  7663. + DIR into the resulting binary and the resulting library dependency is
  7664. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  7665. + library is relocated])
  7666. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  7667. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  7668. + into the resulting binary])
  7669. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  7670. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  7671. + into the resulting binary])
  7672. +_LT_TAGDECL([], [hardcode_automatic], [0],
  7673. + [Set to "yes" if building a shared library automatically hardcodes DIR
  7674. + into the library and all subsequent libraries and executables linked
  7675. + against it])
  7676. +_LT_TAGDECL([], [inherit_rpath], [0],
  7677. + [Set to yes if linker adds runtime paths of dependent libraries
  7678. + to runtime path list])
  7679. +_LT_TAGDECL([], [link_all_deplibs], [0],
  7680. + [Whether libtool must link a program against all its dependency libraries])
  7681. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  7682. + [Fix the shell variable $srcfile for the compiler])
  7683. +_LT_TAGDECL([], [always_export_symbols], [0],
  7684. + [Set to "yes" if exported symbols are required])
  7685. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  7686. + [The commands to list exported symbols])
  7687. +_LT_TAGDECL([], [exclude_expsyms], [1],
  7688. + [Symbols that should not be listed in the preloaded symbols])
  7689. +_LT_TAGDECL([], [include_expsyms], [1],
  7690. + [Symbols that must always be exported])
  7691. +_LT_TAGDECL([], [prelink_cmds], [2],
  7692. + [Commands necessary for linking programs (against libraries) with templates])
  7693. +_LT_TAGDECL([], [file_list_spec], [1],
  7694. + [Specify filename containing input files])
  7695. +dnl FIXME: Not yet implemented
  7696. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  7697. +dnl [Compiler flag to generate thread safe objects])
  7698. +])# _LT_LINKER_SHLIBS
  7699. -# _LT_AC_FILE_LTDLL_C
  7700. -# -------------------
  7701. -# Be careful that the start marker always follows a newline.
  7702. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  7703. -# /* ltdll.c starts here */
  7704. -# #define WIN32_LEAN_AND_MEAN
  7705. -# #include <windows.h>
  7706. -# #undef WIN32_LEAN_AND_MEAN
  7707. -# #include <stdio.h>
  7708. -#
  7709. -# #ifndef __CYGWIN__
  7710. -# # ifdef __CYGWIN32__
  7711. -# # define __CYGWIN__ __CYGWIN32__
  7712. -# # endif
  7713. -# #endif
  7714. -#
  7715. -# #ifdef __cplusplus
  7716. -# extern "C" {
  7717. -# #endif
  7718. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  7719. -# #ifdef __cplusplus
  7720. -# }
  7721. -# #endif
  7722. -#
  7723. -# #ifdef __CYGWIN__
  7724. -# #include <cygwin/cygwin_dll.h>
  7725. -# DECLARE_CYGWIN_DLL( DllMain );
  7726. -# #endif
  7727. -# HINSTANCE __hDllInstance_base;
  7728. -#
  7729. -# BOOL APIENTRY
  7730. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  7731. -# {
  7732. -# __hDllInstance_base = hInst;
  7733. -# return TRUE;
  7734. -# }
  7735. -# /* ltdll.c ends here */
  7736. -])# _LT_AC_FILE_LTDLL_C
  7737. +# _LT_LANG_C_CONFIG([TAG])
  7738. +# ------------------------
  7739. +# Ensure that the configuration variables for a C compiler are suitably
  7740. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7741. +# the compiler configuration to `libtool'.
  7742. +m4_defun([_LT_LANG_C_CONFIG],
  7743. +[m4_require([_LT_DECL_EGREP])dnl
  7744. +lt_save_CC="$CC"
  7745. +AC_LANG_PUSH(C)
  7746. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  7747. -# ---------------------------------
  7748. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  7749. +# Source file extension for C test sources.
  7750. +ac_ext=c
  7751. +# Object file extension for compiled C test sources.
  7752. +objext=o
  7753. +_LT_TAGVAR(objext, $1)=$objext
  7754. -# old names
  7755. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  7756. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  7757. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  7758. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  7759. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  7760. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  7761. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  7762. +# Code to be used in simple compile tests
  7763. +lt_simple_compile_test_code="int some_variable = 0;"
  7764. -# This is just to silence aclocal about the macro not being used
  7765. -ifelse([AC_DISABLE_FAST_INSTALL])
  7766. +# Code to be used in simple link tests
  7767. +lt_simple_link_test_code='int main(){return(0);}'
  7768. -AC_DEFUN([LT_AC_PROG_GCJ],
  7769. -[AC_CHECK_TOOL(GCJ, gcj, no)
  7770. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  7771. - AC_SUBST(GCJFLAGS)
  7772. -])
  7773. +_LT_TAG_COMPILER
  7774. +# Save the default compiler, since it gets overwritten when the other
  7775. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7776. +compiler_DEFAULT=$CC
  7777. -AC_DEFUN([LT_AC_PROG_RC],
  7778. -[AC_CHECK_TOOL(RC, windres, no)
  7779. +# save warnings/boilerplate of simple test code
  7780. +_LT_COMPILER_BOILERPLATE
  7781. +_LT_LINKER_BOILERPLATE
  7782. +
  7783. +if test -n "$compiler"; then
  7784. + _LT_COMPILER_NO_RTTI($1)
  7785. + _LT_COMPILER_PIC($1)
  7786. + _LT_COMPILER_C_O($1)
  7787. + _LT_COMPILER_FILE_LOCKS($1)
  7788. + _LT_LINKER_SHLIBS($1)
  7789. + _LT_SYS_DYNAMIC_LINKER($1)
  7790. + _LT_LINKER_HARDCODE_LIBPATH($1)
  7791. + LT_SYS_DLOPEN_SELF
  7792. + _LT_CMD_STRIPLIB
  7793. +
  7794. + # Report which library types will actually be built
  7795. + AC_MSG_CHECKING([if libtool supports shared libraries])
  7796. + AC_MSG_RESULT([$can_build_shared])
  7797. +
  7798. + AC_MSG_CHECKING([whether to build shared libraries])
  7799. + test "$can_build_shared" = "no" && enable_shared=no
  7800. +
  7801. + # On AIX, shared libraries and static libraries use the same namespace, and
  7802. + # are all built from PIC.
  7803. + case $host_os in
  7804. + aix3*)
  7805. + test "$enable_shared" = yes && enable_static=no
  7806. + if test -n "$RANLIB"; then
  7807. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  7808. + postinstall_cmds='$RANLIB $lib'
  7809. + fi
  7810. + ;;
  7811. +
  7812. + aix[[4-9]]*)
  7813. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  7814. + test "$enable_shared" = yes && enable_static=no
  7815. + fi
  7816. + ;;
  7817. + esac
  7818. + AC_MSG_RESULT([$enable_shared])
  7819. +
  7820. + AC_MSG_CHECKING([whether to build static libraries])
  7821. + # Make sure either enable_shared or enable_static is yes.
  7822. + test "$enable_shared" = yes || enable_static=yes
  7823. + AC_MSG_RESULT([$enable_static])
  7824. +
  7825. + _LT_CONFIG($1)
  7826. +fi
  7827. +AC_LANG_POP
  7828. +CC="$lt_save_CC"
  7829. +])# _LT_LANG_C_CONFIG
  7830. +
  7831. +
  7832. +# _LT_PROG_CXX
  7833. +# ------------
  7834. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  7835. +# compiler, we have our own version here.
  7836. +m4_defun([_LT_PROG_CXX],
  7837. +[
  7838. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  7839. +AC_PROG_CXX
  7840. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  7841. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  7842. + (test "X$CXX" != "Xg++"))) ; then
  7843. + AC_PROG_CXXCPP
  7844. +else
  7845. + _lt_caught_CXX_error=yes
  7846. +fi
  7847. +popdef([AC_MSG_ERROR])
  7848. +])# _LT_PROG_CXX
  7849. +
  7850. +dnl aclocal-1.4 backwards compatibility:
  7851. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  7852. +
  7853. +
  7854. +# _LT_LANG_CXX_CONFIG([TAG])
  7855. +# --------------------------
  7856. +# Ensure that the configuration variables for a C++ compiler are suitably
  7857. +# defined. These variables are subsequently used by _LT_CONFIG to write
  7858. +# the compiler configuration to `libtool'.
  7859. +m4_defun([_LT_LANG_CXX_CONFIG],
  7860. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  7861. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7862. +m4_require([_LT_DECL_EGREP])dnl
  7863. +
  7864. +AC_LANG_PUSH(C++)
  7865. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  7866. +_LT_TAGVAR(allow_undefined_flag, $1)=
  7867. +_LT_TAGVAR(always_export_symbols, $1)=no
  7868. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  7869. +_LT_TAGVAR(compiler_needs_object, $1)=no
  7870. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7871. +_LT_TAGVAR(hardcode_direct, $1)=no
  7872. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7873. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7874. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7875. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  7876. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  7877. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7878. +_LT_TAGVAR(hardcode_automatic, $1)=no
  7879. +_LT_TAGVAR(inherit_rpath, $1)=no
  7880. +_LT_TAGVAR(module_cmds, $1)=
  7881. +_LT_TAGVAR(module_expsym_cmds, $1)=
  7882. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  7883. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  7884. +_LT_TAGVAR(no_undefined_flag, $1)=
  7885. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  7886. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7887. +
  7888. +# Source file extension for C++ test sources.
  7889. +ac_ext=cpp
  7890. +
  7891. +# Object file extension for compiled C++ test sources.
  7892. +objext=o
  7893. +_LT_TAGVAR(objext, $1)=$objext
  7894. +
  7895. +# No sense in running all these tests if we already determined that
  7896. +# the CXX compiler isn't working. Some variables (like enable_shared)
  7897. +# are currently assumed to apply to all compilers on this platform,
  7898. +# and will be corrupted by setting them based on a non-working compiler.
  7899. +if test "$_lt_caught_CXX_error" != yes; then
  7900. + # Code to be used in simple compile tests
  7901. + lt_simple_compile_test_code="int some_variable = 0;"
  7902. +
  7903. + # Code to be used in simple link tests
  7904. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  7905. +
  7906. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  7907. + _LT_TAG_COMPILER
  7908. +
  7909. + # save warnings/boilerplate of simple test code
  7910. + _LT_COMPILER_BOILERPLATE
  7911. + _LT_LINKER_BOILERPLATE
  7912. +
  7913. + # Allow CC to be a program name with arguments.
  7914. + lt_save_CC=$CC
  7915. + lt_save_LD=$LD
  7916. + lt_save_GCC=$GCC
  7917. + GCC=$GXX
  7918. + lt_save_with_gnu_ld=$with_gnu_ld
  7919. + lt_save_path_LD=$lt_cv_path_LD
  7920. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  7921. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  7922. + else
  7923. + $as_unset lt_cv_prog_gnu_ld
  7924. + fi
  7925. + if test -n "${lt_cv_path_LDCXX+set}"; then
  7926. + lt_cv_path_LD=$lt_cv_path_LDCXX
  7927. + else
  7928. + $as_unset lt_cv_path_LD
  7929. + fi
  7930. + test -z "${LDCXX+set}" || LD=$LDCXX
  7931. + CC=${CXX-"c++"}
  7932. + compiler=$CC
  7933. + _LT_TAGVAR(compiler, $1)=$CC
  7934. + _LT_CC_BASENAME([$compiler])
  7935. +
  7936. + if test -n "$compiler"; then
  7937. + # We don't want -fno-exception when compiling C++ code, so set the
  7938. + # no_builtin_flag separately
  7939. + if test "$GXX" = yes; then
  7940. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  7941. + else
  7942. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  7943. + fi
  7944. +
  7945. + if test "$GXX" = yes; then
  7946. + # Set up default GNU C++ configuration
  7947. +
  7948. + LT_PATH_LD
  7949. +
  7950. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  7951. + # archiving commands below assume that GNU ld is being used.
  7952. + if test "$with_gnu_ld" = yes; then
  7953. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7954. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7955. +
  7956. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7957. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7958. +
  7959. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7960. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  7961. + # investigate it a little bit more. (MM)
  7962. + wlarc='${wl}'
  7963. +
  7964. + # ancient GNU ld didn't support --whole-archive et. al.
  7965. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  7966. + $GREP 'no-whole-archive' > /dev/null; then
  7967. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7968. + else
  7969. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7970. + fi
  7971. + else
  7972. + with_gnu_ld=no
  7973. + wlarc=
  7974. +
  7975. + # A generic and very simple default shared library creation
  7976. + # command for GNU C++ for the case where it uses the native
  7977. + # linker, instead of GNU ld. If possible, this setting should
  7978. + # overridden to take advantage of the native linker features on
  7979. + # the platform it is being used on.
  7980. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  7981. + fi
  7982. +
  7983. + # Commands to make compiler produce verbose output that lists
  7984. + # what "hidden" libraries, object files and flags are used when
  7985. + # linking a shared library.
  7986. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  7987. +
  7988. + else
  7989. + GXX=no
  7990. + with_gnu_ld=no
  7991. + wlarc=
  7992. + fi
  7993. +
  7994. + # PORTME: fill in a description of your system's C++ link characteristics
  7995. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7996. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7997. + case $host_os in
  7998. + aix3*)
  7999. + # FIXME: insert proper C++ library support
  8000. + _LT_TAGVAR(ld_shlibs, $1)=no
  8001. + ;;
  8002. + aix[[4-9]]*)
  8003. + if test "$host_cpu" = ia64; then
  8004. + # On IA64, the linker does run time linking by default, so we don't
  8005. + # have to do anything special.
  8006. + aix_use_runtimelinking=no
  8007. + exp_sym_flag='-Bexport'
  8008. + no_entry_flag=""
  8009. + else
  8010. + aix_use_runtimelinking=no
  8011. +
  8012. + # Test if we are trying to use run time linking or normal
  8013. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8014. + # need to do runtime linking.
  8015. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8016. + for ld_flag in $LDFLAGS; do
  8017. + case $ld_flag in
  8018. + *-brtl*)
  8019. + aix_use_runtimelinking=yes
  8020. + break
  8021. + ;;
  8022. + esac
  8023. + done
  8024. + ;;
  8025. + esac
  8026. +
  8027. + exp_sym_flag='-bexport'
  8028. + no_entry_flag='-bnoentry'
  8029. + fi
  8030. +
  8031. + # When large executables or shared objects are built, AIX ld can
  8032. + # have problems creating the table of contents. If linking a library
  8033. + # or program results in "error TOC overflow" add -mminimal-toc to
  8034. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8035. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8036. +
  8037. + _LT_TAGVAR(archive_cmds, $1)=''
  8038. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8039. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8040. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8041. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8042. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8043. +
  8044. + if test "$GXX" = yes; then
  8045. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8046. + # We only want to do this on AIX 4.2 and lower, the check
  8047. + # below for broken collect2 doesn't work under 4.3+
  8048. + collect2name=`${CC} -print-prog-name=collect2`
  8049. + if test -f "$collect2name" &&
  8050. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8051. + then
  8052. + # We have reworked collect2
  8053. + :
  8054. + else
  8055. + # We have old collect2
  8056. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8057. + # It fails to find uninstalled libraries when the uninstalled
  8058. + # path is not listed in the libpath. Setting hardcode_minus_L
  8059. + # to unsupported forces relinking
  8060. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8061. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8062. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8063. + fi
  8064. + esac
  8065. + shared_flag='-shared'
  8066. + if test "$aix_use_runtimelinking" = yes; then
  8067. + shared_flag="$shared_flag "'${wl}-G'
  8068. + fi
  8069. + else
  8070. + # not using gcc
  8071. + if test "$host_cpu" = ia64; then
  8072. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8073. + # chokes on -Wl,-G. The following line is correct:
  8074. + shared_flag='-G'
  8075. + else
  8076. + if test "$aix_use_runtimelinking" = yes; then
  8077. + shared_flag='${wl}-G'
  8078. + else
  8079. + shared_flag='${wl}-bM:SRE'
  8080. + fi
  8081. + fi
  8082. + fi
  8083. +
  8084. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8085. + # It seems that -bexpall does not export symbols beginning with
  8086. + # underscore (_), so it is better to generate a list of symbols to
  8087. + # export.
  8088. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8089. + if test "$aix_use_runtimelinking" = yes; then
  8090. + # Warning - without using the other runtime loading flags (-brtl),
  8091. + # -berok will link without error, but may produce a broken library.
  8092. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8093. + # Determine the default libpath from the value encoded in an empty
  8094. + # executable.
  8095. + _LT_SYS_MODULE_PATH_AIX
  8096. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8097. +
  8098. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8099. + else
  8100. + if test "$host_cpu" = ia64; then
  8101. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8102. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8103. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8104. + else
  8105. + # Determine the default libpath from the value encoded in an
  8106. + # empty executable.
  8107. + _LT_SYS_MODULE_PATH_AIX
  8108. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8109. + # Warning - without using the other run time loading flags,
  8110. + # -berok will link without error, but may produce a broken library.
  8111. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8112. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8113. + # Exported symbols can be pulled into shared objects from archives
  8114. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8115. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8116. + # This is similar to how AIX traditionally builds its shared
  8117. + # libraries.
  8118. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8119. + fi
  8120. + fi
  8121. + ;;
  8122. +
  8123. + beos*)
  8124. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8125. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8126. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8127. + # support --undefined. This deserves some investigation. FIXME
  8128. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8129. + else
  8130. + _LT_TAGVAR(ld_shlibs, $1)=no
  8131. + fi
  8132. + ;;
  8133. +
  8134. + chorus*)
  8135. + case $cc_basename in
  8136. + *)
  8137. + # FIXME: insert proper C++ library support
  8138. + _LT_TAGVAR(ld_shlibs, $1)=no
  8139. + ;;
  8140. + esac
  8141. + ;;
  8142. +
  8143. + cygwin* | mingw* | pw32* | cegcc*)
  8144. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  8145. + # as there is no search path for DLLs.
  8146. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8147. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8148. + _LT_TAGVAR(always_export_symbols, $1)=no
  8149. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8150. +
  8151. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8152. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8153. + # If the export-symbols file already is a .def file (1st line
  8154. + # is EXPORTS), use it as is; otherwise, prepend...
  8155. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8156. + cp $export_symbols $output_objdir/$soname.def;
  8157. + else
  8158. + echo EXPORTS > $output_objdir/$soname.def;
  8159. + cat $export_symbols >> $output_objdir/$soname.def;
  8160. + fi~
  8161. + $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'
  8162. + else
  8163. + _LT_TAGVAR(ld_shlibs, $1)=no
  8164. + fi
  8165. + ;;
  8166. + darwin* | rhapsody*)
  8167. + _LT_DARWIN_LINKER_FEATURES($1)
  8168. + ;;
  8169. +
  8170. + dgux*)
  8171. + case $cc_basename in
  8172. + ec++*)
  8173. + # FIXME: insert proper C++ library support
  8174. + _LT_TAGVAR(ld_shlibs, $1)=no
  8175. + ;;
  8176. + ghcx*)
  8177. + # Green Hills C++ Compiler
  8178. + # FIXME: insert proper C++ library support
  8179. + _LT_TAGVAR(ld_shlibs, $1)=no
  8180. + ;;
  8181. + *)
  8182. + # FIXME: insert proper C++ library support
  8183. + _LT_TAGVAR(ld_shlibs, $1)=no
  8184. + ;;
  8185. + esac
  8186. + ;;
  8187. +
  8188. + freebsd[[12]]*)
  8189. + # C++ shared libraries reported to be fairly broken before
  8190. + # switch to ELF
  8191. + _LT_TAGVAR(ld_shlibs, $1)=no
  8192. + ;;
  8193. +
  8194. + freebsd-elf*)
  8195. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8196. + ;;
  8197. +
  8198. + freebsd* | dragonfly*)
  8199. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  8200. + # conventions
  8201. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8202. + ;;
  8203. +
  8204. + gnu*)
  8205. + ;;
  8206. +
  8207. + hpux9*)
  8208. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8209. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8210. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8211. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8212. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  8213. + # but as the default
  8214. + # location of the library.
  8215. +
  8216. + case $cc_basename in
  8217. + CC*)
  8218. + # FIXME: insert proper C++ library support
  8219. + _LT_TAGVAR(ld_shlibs, $1)=no
  8220. + ;;
  8221. + aCC*)
  8222. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8223. + # Commands to make compiler produce verbose output that lists
  8224. + # what "hidden" libraries, object files and flags are used when
  8225. + # linking a shared library.
  8226. + #
  8227. + # There doesn't appear to be a way to prevent this compiler from
  8228. + # explicitly linking system object files so we need to strip them
  8229. + # from the output so that they don't get included in the library
  8230. + # dependencies.
  8231. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8232. + ;;
  8233. + *)
  8234. + if test "$GXX" = yes; then
  8235. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8236. + else
  8237. + # FIXME: insert proper C++ library support
  8238. + _LT_TAGVAR(ld_shlibs, $1)=no
  8239. + fi
  8240. + ;;
  8241. + esac
  8242. + ;;
  8243. +
  8244. + hpux10*|hpux11*)
  8245. + if test $with_gnu_ld = no; then
  8246. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8247. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8248. +
  8249. + case $host_cpu in
  8250. + hppa*64*|ia64*)
  8251. + ;;
  8252. + *)
  8253. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8254. + ;;
  8255. + esac
  8256. + fi
  8257. + case $host_cpu in
  8258. + hppa*64*|ia64*)
  8259. + _LT_TAGVAR(hardcode_direct, $1)=no
  8260. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8261. + ;;
  8262. + *)
  8263. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8264. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8265. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  8266. + # but as the default
  8267. + # location of the library.
  8268. + ;;
  8269. + esac
  8270. +
  8271. + case $cc_basename in
  8272. + CC*)
  8273. + # FIXME: insert proper C++ library support
  8274. + _LT_TAGVAR(ld_shlibs, $1)=no
  8275. + ;;
  8276. + aCC*)
  8277. + case $host_cpu in
  8278. + hppa*64*)
  8279. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8280. + ;;
  8281. + ia64*)
  8282. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8283. + ;;
  8284. + *)
  8285. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8286. + ;;
  8287. + esac
  8288. + # Commands to make compiler produce verbose output that lists
  8289. + # what "hidden" libraries, object files and flags are used when
  8290. + # linking a shared library.
  8291. + #
  8292. + # There doesn't appear to be a way to prevent this compiler from
  8293. + # explicitly linking system object files so we need to strip them
  8294. + # from the output so that they don't get included in the library
  8295. + # dependencies.
  8296. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8297. + ;;
  8298. + *)
  8299. + if test "$GXX" = yes; then
  8300. + if test $with_gnu_ld = no; then
  8301. + case $host_cpu in
  8302. + hppa*64*)
  8303. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8304. + ;;
  8305. + ia64*)
  8306. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8307. + ;;
  8308. + *)
  8309. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8310. + ;;
  8311. + esac
  8312. + fi
  8313. + else
  8314. + # FIXME: insert proper C++ library support
  8315. + _LT_TAGVAR(ld_shlibs, $1)=no
  8316. + fi
  8317. + ;;
  8318. + esac
  8319. + ;;
  8320. +
  8321. + interix[[3-9]]*)
  8322. + _LT_TAGVAR(hardcode_direct, $1)=no
  8323. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8324. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8325. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8326. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8327. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  8328. + # default) and relocated if they conflict, which is a slow very memory
  8329. + # consuming and fragmenting process. To avoid this, we pick a random,
  8330. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8331. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8332. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8333. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8334. + ;;
  8335. + irix5* | irix6*)
  8336. + case $cc_basename in
  8337. + CC*)
  8338. + # SGI C++
  8339. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8340. +
  8341. + # Archives containing C++ object files must be created using
  8342. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  8343. + # necessary to make sure instantiated templates are included
  8344. + # in the archive.
  8345. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  8346. + ;;
  8347. + *)
  8348. + if test "$GXX" = yes; then
  8349. + if test "$with_gnu_ld" = no; then
  8350. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8351. + else
  8352. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  8353. + fi
  8354. + fi
  8355. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8356. + ;;
  8357. + esac
  8358. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8359. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8360. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8361. + ;;
  8362. +
  8363. + linux* | k*bsd*-gnu)
  8364. + case $cc_basename in
  8365. + KCC*)
  8366. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  8367. +
  8368. + # KCC will only create a shared library if the output file
  8369. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8370. + # to its proper name (with version) after linking.
  8371. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8372. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  8373. + # Commands to make compiler produce verbose output that lists
  8374. + # what "hidden" libraries, object files and flags are used when
  8375. + # linking a shared library.
  8376. + #
  8377. + # There doesn't appear to be a way to prevent this compiler from
  8378. + # explicitly linking system object files so we need to strip them
  8379. + # from the output so that they don't get included in the library
  8380. + # dependencies.
  8381. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8382. +
  8383. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8384. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8385. +
  8386. + # Archives containing C++ object files must be created using
  8387. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  8388. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  8389. + ;;
  8390. + icpc* | ecpc* )
  8391. + # Intel C++
  8392. + with_gnu_ld=yes
  8393. + # version 8.0 and above of icpc choke on multiply defined symbols
  8394. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  8395. + # earlier do not add the objects themselves.
  8396. + case `$CC -V 2>&1` in
  8397. + *"Version 7."*)
  8398. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8399. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8400. + ;;
  8401. + *) # Version 8.0 or newer
  8402. + tmp_idyn=
  8403. + case $host_cpu in
  8404. + ia64*) tmp_idyn=' -i_dynamic';;
  8405. + esac
  8406. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8407. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8408. + ;;
  8409. + esac
  8410. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8411. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8412. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8413. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8414. + ;;
  8415. + pgCC* | pgcpp*)
  8416. + # Portland Group C++ compiler
  8417. + case `$CC -V` in
  8418. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  8419. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  8420. + rm -rf $tpldir~
  8421. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  8422. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  8423. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  8424. + rm -rf $tpldir~
  8425. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  8426. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  8427. + $RANLIB $oldlib'
  8428. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  8429. + rm -rf $tpldir~
  8430. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  8431. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8432. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  8433. + rm -rf $tpldir~
  8434. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  8435. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  8436. + ;;
  8437. + *) # Version 6 will use weak symbols
  8438. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  8439. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  8440. + ;;
  8441. + esac
  8442. +
  8443. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  8444. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8445. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8446. + ;;
  8447. + cxx*)
  8448. + # Compaq C++
  8449. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8450. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  8451. +
  8452. + runpath_var=LD_RUN_PATH
  8453. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8454. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8455. +
  8456. + # Commands to make compiler produce verbose output that lists
  8457. + # what "hidden" libraries, object files and flags are used when
  8458. + # linking a shared library.
  8459. + #
  8460. + # There doesn't appear to be a way to prevent this compiler from
  8461. + # explicitly linking system object files so we need to strip them
  8462. + # from the output so that they don't get included in the library
  8463. + # dependencies.
  8464. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8465. + ;;
  8466. + xl*)
  8467. + # IBM XL 8.0 on PPC, with GNU ld
  8468. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8469. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  8470. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8471. + if test "x$supports_anon_versioning" = xyes; then
  8472. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  8473. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8474. + echo "local: *; };" >> $output_objdir/$libname.ver~
  8475. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8476. + fi
  8477. + ;;
  8478. + *)
  8479. + case `$CC -V 2>&1 | sed 5q` in
  8480. + *Sun\ C*)
  8481. + # Sun C++ 5.9
  8482. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8483. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8484. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  8485. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8486. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  8487. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  8488. +
  8489. + # Not sure whether something based on
  8490. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  8491. + # would be better.
  8492. + output_verbose_link_cmd='echo'
  8493. +
  8494. + # Archives containing C++ object files must be created using
  8495. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8496. + # necessary to make sure instantiated templates are included
  8497. + # in the archive.
  8498. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8499. + ;;
  8500. + esac
  8501. + ;;
  8502. + esac
  8503. + ;;
  8504. +
  8505. + lynxos*)
  8506. + # FIXME: insert proper C++ library support
  8507. + _LT_TAGVAR(ld_shlibs, $1)=no
  8508. + ;;
  8509. +
  8510. + m88k*)
  8511. + # FIXME: insert proper C++ library support
  8512. + _LT_TAGVAR(ld_shlibs, $1)=no
  8513. + ;;
  8514. +
  8515. + mvs*)
  8516. + case $cc_basename in
  8517. + cxx*)
  8518. + # FIXME: insert proper C++ library support
  8519. + _LT_TAGVAR(ld_shlibs, $1)=no
  8520. + ;;
  8521. + *)
  8522. + # FIXME: insert proper C++ library support
  8523. + _LT_TAGVAR(ld_shlibs, $1)=no
  8524. + ;;
  8525. + esac
  8526. + ;;
  8527. +
  8528. + netbsd*)
  8529. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8530. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  8531. + wlarc=
  8532. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8533. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8534. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8535. + fi
  8536. + # Workaround some broken pre-1.5 toolchains
  8537. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  8538. + ;;
  8539. +
  8540. + *nto* | *qnx*)
  8541. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8542. + ;;
  8543. +
  8544. + openbsd2*)
  8545. + # C++ shared libraries are fairly broken
  8546. + _LT_TAGVAR(ld_shlibs, $1)=no
  8547. + ;;
  8548. +
  8549. + openbsd*)
  8550. + if test -f /usr/libexec/ld.so; then
  8551. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8552. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8553. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8554. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  8555. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8556. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8557. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  8558. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8559. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8560. + fi
  8561. + output_verbose_link_cmd=echo
  8562. + else
  8563. + _LT_TAGVAR(ld_shlibs, $1)=no
  8564. + fi
  8565. + ;;
  8566. +
  8567. + osf3* | osf4* | osf5*)
  8568. + case $cc_basename in
  8569. + KCC*)
  8570. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  8571. +
  8572. + # KCC will only create a shared library if the output file
  8573. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  8574. + # to its proper name (with version) after linking.
  8575. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  8576. +
  8577. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8578. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8579. +
  8580. + # Archives containing C++ object files must be created using
  8581. + # the KAI C++ compiler.
  8582. + case $host in
  8583. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  8584. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  8585. + esac
  8586. + ;;
  8587. + RCC*)
  8588. + # Rational C++ 2.4.1
  8589. + # FIXME: insert proper C++ library support
  8590. + _LT_TAGVAR(ld_shlibs, $1)=no
  8591. + ;;
  8592. + cxx*)
  8593. + case $host in
  8594. + osf3*)
  8595. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8596. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8597. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8598. + ;;
  8599. + *)
  8600. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8601. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8602. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  8603. + echo "-hidden">> $lib.exp~
  8604. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  8605. + $RM $lib.exp'
  8606. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8607. + ;;
  8608. + esac
  8609. +
  8610. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8611. +
  8612. + # Commands to make compiler produce verbose output that lists
  8613. + # what "hidden" libraries, object files and flags are used when
  8614. + # linking a shared library.
  8615. + #
  8616. + # There doesn't appear to be a way to prevent this compiler from
  8617. + # explicitly linking system object files so we need to strip them
  8618. + # from the output so that they don't get included in the library
  8619. + # dependencies.
  8620. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  8621. + ;;
  8622. + *)
  8623. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8624. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8625. + case $host in
  8626. + osf3*)
  8627. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8628. + ;;
  8629. + *)
  8630. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8631. + ;;
  8632. + esac
  8633. +
  8634. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8635. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8636. +
  8637. + # Commands to make compiler produce verbose output that lists
  8638. + # what "hidden" libraries, object files and flags are used when
  8639. + # linking a shared library.
  8640. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8641. +
  8642. + else
  8643. + # FIXME: insert proper C++ library support
  8644. + _LT_TAGVAR(ld_shlibs, $1)=no
  8645. + fi
  8646. + ;;
  8647. + esac
  8648. + ;;
  8649. +
  8650. + psos*)
  8651. + # FIXME: insert proper C++ library support
  8652. + _LT_TAGVAR(ld_shlibs, $1)=no
  8653. + ;;
  8654. +
  8655. + sunos4*)
  8656. + case $cc_basename in
  8657. + CC*)
  8658. + # Sun C++ 4.x
  8659. + # FIXME: insert proper C++ library support
  8660. + _LT_TAGVAR(ld_shlibs, $1)=no
  8661. + ;;
  8662. + lcc*)
  8663. + # Lucid
  8664. + # FIXME: insert proper C++ library support
  8665. + _LT_TAGVAR(ld_shlibs, $1)=no
  8666. + ;;
  8667. + *)
  8668. + # FIXME: insert proper C++ library support
  8669. + _LT_TAGVAR(ld_shlibs, $1)=no
  8670. + ;;
  8671. + esac
  8672. + ;;
  8673. +
  8674. + solaris*)
  8675. + case $cc_basename in
  8676. + CC*)
  8677. + # Sun C++ 4.2, 5.x and Centerline C++
  8678. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  8679. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  8680. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  8681. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8682. + $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'
  8683. +
  8684. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8685. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8686. + case $host_os in
  8687. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8688. + *)
  8689. + # The compiler driver will combine and reorder linker options,
  8690. + # but understands `-z linker_flag'.
  8691. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8692. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8693. + ;;
  8694. + esac
  8695. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8696. +
  8697. + output_verbose_link_cmd='echo'
  8698. +
  8699. + # Archives containing C++ object files must be created using
  8700. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  8701. + # necessary to make sure instantiated templates are included
  8702. + # in the archive.
  8703. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  8704. + ;;
  8705. + gcx*)
  8706. + # Green Hills C++ Compiler
  8707. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8708. +
  8709. + # The C++ compiler must be used to create the archive.
  8710. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  8711. + ;;
  8712. + *)
  8713. + # GNU C++ compiler with Solaris linker
  8714. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  8715. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  8716. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  8717. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8718. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8719. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8720. +
  8721. + # Commands to make compiler produce verbose output that lists
  8722. + # what "hidden" libraries, object files and flags are used when
  8723. + # linking a shared library.
  8724. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8725. + else
  8726. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  8727. + # platform.
  8728. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  8729. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8730. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  8731. +
  8732. + # Commands to make compiler produce verbose output that lists
  8733. + # what "hidden" libraries, object files and flags are used when
  8734. + # linking a shared library.
  8735. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  8736. + fi
  8737. +
  8738. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  8739. + case $host_os in
  8740. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8741. + *)
  8742. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8743. + ;;
  8744. + esac
  8745. + fi
  8746. + ;;
  8747. + esac
  8748. + ;;
  8749. +
  8750. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8751. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8752. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8753. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8754. + runpath_var='LD_RUN_PATH'
  8755. +
  8756. + case $cc_basename in
  8757. + CC*)
  8758. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8759. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8760. + ;;
  8761. + *)
  8762. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8763. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8764. + ;;
  8765. + esac
  8766. + ;;
  8767. +
  8768. + sysv5* | sco3.2v5* | sco5v6*)
  8769. + # Note: We can NOT use -z defs as we might desire, because we do not
  8770. + # link with -lc, and that would cause any symbols used from libc to
  8771. + # always be unresolved, which means just about no library would
  8772. + # ever link correctly. If we're not using GNU ld we use -z text
  8773. + # though, which does catch some bad symbols but isn't as heavy-handed
  8774. + # as -z defs.
  8775. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8776. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8777. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8778. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8779. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8780. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8781. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8782. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8783. + runpath_var='LD_RUN_PATH'
  8784. +
  8785. + case $cc_basename in
  8786. + CC*)
  8787. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8788. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8789. + ;;
  8790. + *)
  8791. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8792. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8793. + ;;
  8794. + esac
  8795. + ;;
  8796. +
  8797. + tandem*)
  8798. + case $cc_basename in
  8799. + NCC*)
  8800. + # NonStop-UX NCC 3.20
  8801. + # FIXME: insert proper C++ library support
  8802. + _LT_TAGVAR(ld_shlibs, $1)=no
  8803. + ;;
  8804. + *)
  8805. + # FIXME: insert proper C++ library support
  8806. + _LT_TAGVAR(ld_shlibs, $1)=no
  8807. + ;;
  8808. + esac
  8809. + ;;
  8810. +
  8811. + vxworks*)
  8812. + # FIXME: insert proper C++ library support
  8813. + _LT_TAGVAR(ld_shlibs, $1)=no
  8814. + ;;
  8815. +
  8816. + *)
  8817. + # FIXME: insert proper C++ library support
  8818. + _LT_TAGVAR(ld_shlibs, $1)=no
  8819. + ;;
  8820. + esac
  8821. +
  8822. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8823. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8824. +
  8825. + _LT_TAGVAR(GCC, $1)="$GXX"
  8826. + _LT_TAGVAR(LD, $1)="$LD"
  8827. +
  8828. + ## CAVEAT EMPTOR:
  8829. + ## There is no encapsulation within the following macros, do not change
  8830. + ## the running order or otherwise move them around unless you know exactly
  8831. + ## what you are doing...
  8832. + _LT_SYS_HIDDEN_LIBDEPS($1)
  8833. + _LT_COMPILER_PIC($1)
  8834. + _LT_COMPILER_C_O($1)
  8835. + _LT_COMPILER_FILE_LOCKS($1)
  8836. + _LT_LINKER_SHLIBS($1)
  8837. + _LT_SYS_DYNAMIC_LINKER($1)
  8838. + _LT_LINKER_HARDCODE_LIBPATH($1)
  8839. +
  8840. + _LT_CONFIG($1)
  8841. + fi # test -n "$compiler"
  8842. +
  8843. + CC=$lt_save_CC
  8844. + LDCXX=$LD
  8845. + LD=$lt_save_LD
  8846. + GCC=$lt_save_GCC
  8847. + with_gnu_ld=$lt_save_with_gnu_ld
  8848. + lt_cv_path_LDCXX=$lt_cv_path_LD
  8849. + lt_cv_path_LD=$lt_save_path_LD
  8850. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  8851. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  8852. +fi # test "$_lt_caught_CXX_error" != yes
  8853. +
  8854. +AC_LANG_POP
  8855. +])# _LT_LANG_CXX_CONFIG
  8856. +
  8857. +
  8858. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  8859. +# ---------------------------------
  8860. +# Figure out "hidden" library dependencies from verbose
  8861. +# compiler output when linking a shared library.
  8862. +# Parse the compiler output and extract the necessary
  8863. +# objects, libraries and library flags.
  8864. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  8865. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  8866. +# Dependencies to place before and after the object being linked:
  8867. +_LT_TAGVAR(predep_objects, $1)=
  8868. +_LT_TAGVAR(postdep_objects, $1)=
  8869. +_LT_TAGVAR(predeps, $1)=
  8870. +_LT_TAGVAR(postdeps, $1)=
  8871. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  8872. +
  8873. +dnl we can't use the lt_simple_compile_test_code here,
  8874. +dnl because it contains code intended for an executable,
  8875. +dnl not a library. It's possible we should let each
  8876. +dnl tag define a new lt_????_link_test_code variable,
  8877. +dnl but it's only used here...
  8878. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  8879. +int a;
  8880. +void foo (void) { a = 0; }
  8881. +_LT_EOF
  8882. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  8883. +class Foo
  8884. +{
  8885. +public:
  8886. + Foo (void) { a = 0; }
  8887. +private:
  8888. + int a;
  8889. +};
  8890. +_LT_EOF
  8891. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  8892. + subroutine foo
  8893. + implicit none
  8894. + integer*4 a
  8895. + a=0
  8896. + return
  8897. + end
  8898. +_LT_EOF
  8899. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  8900. + subroutine foo
  8901. + implicit none
  8902. + integer a
  8903. + a=0
  8904. + return
  8905. + end
  8906. +_LT_EOF
  8907. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  8908. +public class foo {
  8909. + private int a;
  8910. + public void bar (void) {
  8911. + a = 0;
  8912. + }
  8913. +};
  8914. +_LT_EOF
  8915. ])
  8916. +dnl Parse the compiler output and extract the necessary
  8917. +dnl objects, libraries and library flags.
  8918. +if AC_TRY_EVAL(ac_compile); then
  8919. + # Parse the compiler output and extract the necessary
  8920. + # objects, libraries and library flags.
  8921. + # Sentinel used to keep track of whether or not we are before
  8922. + # the conftest object file.
  8923. + pre_test_object_deps_done=no
  8924. -# Cheap backport of AS_EXECUTABLE_P and required macros
  8925. -# from Autoconf 2.59; we should not use $as_executable_p directly.
  8926. + for p in `eval "$output_verbose_link_cmd"`; do
  8927. + case $p in
  8928. -# _AS_TEST_PREPARE
  8929. -# ----------------
  8930. -m4_ifndef([_AS_TEST_PREPARE],
  8931. -[m4_defun([_AS_TEST_PREPARE],
  8932. -[if test -x / >/dev/null 2>&1; then
  8933. - as_executable_p='test -x'
  8934. + -L* | -R* | -l*)
  8935. + # Some compilers place space between "-{L,R}" and the path.
  8936. + # Remove the space.
  8937. + if test $p = "-L" ||
  8938. + test $p = "-R"; then
  8939. + prev=$p
  8940. + continue
  8941. + else
  8942. + prev=
  8943. + fi
  8944. +
  8945. + if test "$pre_test_object_deps_done" = no; then
  8946. + case $p in
  8947. + -L* | -R*)
  8948. + # Internal compiler library paths should come after those
  8949. + # provided the user. The postdeps already come after the
  8950. + # user supplied libs so there is no need to process them.
  8951. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  8952. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  8953. + else
  8954. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  8955. + fi
  8956. + ;;
  8957. + # The "-l" case would never come before the object being
  8958. + # linked, so don't bother handling this case.
  8959. + esac
  8960. + else
  8961. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  8962. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  8963. + else
  8964. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  8965. + fi
  8966. + fi
  8967. + ;;
  8968. +
  8969. + *.$objext)
  8970. + # This assumes that the test object file only shows up
  8971. + # once in the compiler output.
  8972. + if test "$p" = "conftest.$objext"; then
  8973. + pre_test_object_deps_done=yes
  8974. + continue
  8975. + fi
  8976. +
  8977. + if test "$pre_test_object_deps_done" = no; then
  8978. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  8979. + _LT_TAGVAR(predep_objects, $1)="$p"
  8980. + else
  8981. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  8982. + fi
  8983. + else
  8984. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  8985. + _LT_TAGVAR(postdep_objects, $1)="$p"
  8986. + else
  8987. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  8988. + fi
  8989. + fi
  8990. + ;;
  8991. +
  8992. + *) ;; # Ignore the rest.
  8993. +
  8994. + esac
  8995. + done
  8996. +
  8997. + # Clean up.
  8998. + rm -f a.out a.exe
  8999. else
  9000. - as_executable_p='test -f'
  9001. + echo "libtool.m4: error: problem compiling $1 test program"
  9002. fi
  9003. -])])# _AS_TEST_PREPARE
  9004. -# AS_EXECUTABLE_P
  9005. -# ---------------
  9006. -# Check whether a file is executable.
  9007. -m4_ifndef([AS_EXECUTABLE_P],
  9008. -[m4_defun([AS_EXECUTABLE_P],
  9009. -[AS_REQUIRE([_AS_TEST_PREPARE])dnl
  9010. -$as_executable_p $1[]dnl
  9011. -])])# AS_EXECUTABLE_P
  9012. +$RM -f confest.$objext
  9013. +
  9014. +# PORTME: override above test on systems where it is broken
  9015. +m4_if([$1], [CXX],
  9016. +[case $host_os in
  9017. +interix[[3-9]]*)
  9018. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  9019. + # hack all around it, let's just trust "g++" to DTRT.
  9020. + _LT_TAGVAR(predep_objects,$1)=
  9021. + _LT_TAGVAR(postdep_objects,$1)=
  9022. + _LT_TAGVAR(postdeps,$1)=
  9023. + ;;
  9024. +
  9025. +linux*)
  9026. + case `$CC -V 2>&1 | sed 5q` in
  9027. + *Sun\ C*)
  9028. + # Sun C++ 5.9
  9029. +
  9030. + # The more standards-conforming stlport4 library is
  9031. + # incompatible with the Cstd library. Avoid specifying
  9032. + # it if it's in CXXFLAGS. Ignore libCrun as
  9033. + # -library=stlport4 depends on it.
  9034. + case " $CXX $CXXFLAGS " in
  9035. + *" -library=stlport4 "*)
  9036. + solaris_use_stlport4=yes
  9037. + ;;
  9038. + esac
  9039. +
  9040. + if test "$solaris_use_stlport4" != yes; then
  9041. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  9042. + fi
  9043. + ;;
  9044. + esac
  9045. + ;;
  9046. +
  9047. +solaris*)
  9048. + case $cc_basename in
  9049. + CC*)
  9050. + # The more standards-conforming stlport4 library is
  9051. + # incompatible with the Cstd library. Avoid specifying
  9052. + # it if it's in CXXFLAGS. Ignore libCrun as
  9053. + # -library=stlport4 depends on it.
  9054. + case " $CXX $CXXFLAGS " in
  9055. + *" -library=stlport4 "*)
  9056. + solaris_use_stlport4=yes
  9057. + ;;
  9058. + esac
  9059. +
  9060. + # Adding this requires a known-good setup of shared libraries for
  9061. + # Sun compiler versions before 5.6, else PIC objects from an old
  9062. + # archive will be linked into the output, leading to subtle bugs.
  9063. + if test "$solaris_use_stlport4" != yes; then
  9064. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  9065. + fi
  9066. + ;;
  9067. + esac
  9068. + ;;
  9069. +esac
  9070. +])
  9071. +
  9072. +case " $_LT_TAGVAR(postdeps, $1) " in
  9073. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  9074. +esac
  9075. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  9076. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  9077. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  9078. +fi
  9079. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  9080. + [The directories searched by this compiler when creating a shared library])
  9081. +_LT_TAGDECL([], [predep_objects], [1],
  9082. + [Dependencies to place before and after the objects being linked to
  9083. + create a shared library])
  9084. +_LT_TAGDECL([], [postdep_objects], [1])
  9085. +_LT_TAGDECL([], [predeps], [1])
  9086. +_LT_TAGDECL([], [postdeps], [1])
  9087. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  9088. + [The library search path used internally by the compiler when linking
  9089. + a shared library])
  9090. +])# _LT_SYS_HIDDEN_LIBDEPS
  9091. +
  9092. +
  9093. +# _LT_PROG_F77
  9094. +# ------------
  9095. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  9096. +# if there is no fortran compiler, we have our own version here.
  9097. +m4_defun([_LT_PROG_F77],
  9098. +[
  9099. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  9100. +AC_PROG_F77
  9101. +if test -z "$F77" || test "X$F77" = "Xno"; then
  9102. + _lt_disable_F77=yes
  9103. +fi
  9104. +popdef([AC_MSG_ERROR])
  9105. +])# _LT_PROG_F77
  9106. +
  9107. +dnl aclocal-1.4 backwards compatibility:
  9108. +dnl AC_DEFUN([_LT_PROG_F77], [])
  9109. +
  9110. +
  9111. +# _LT_LANG_F77_CONFIG([TAG])
  9112. +# --------------------------
  9113. +# Ensure that the configuration variables for a Fortran 77 compiler are
  9114. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  9115. +# to write the compiler configuration to `libtool'.
  9116. +m4_defun([_LT_LANG_F77_CONFIG],
  9117. +[AC_REQUIRE([_LT_PROG_F77])dnl
  9118. +AC_LANG_PUSH(Fortran 77)
  9119. +
  9120. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9121. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9122. +_LT_TAGVAR(always_export_symbols, $1)=no
  9123. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9124. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9125. +_LT_TAGVAR(hardcode_direct, $1)=no
  9126. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9127. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9128. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9129. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9130. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9131. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9132. +_LT_TAGVAR(inherit_rpath, $1)=no
  9133. +_LT_TAGVAR(module_cmds, $1)=
  9134. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9135. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9136. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9137. +_LT_TAGVAR(no_undefined_flag, $1)=
  9138. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9139. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9140. +
  9141. +# Source file extension for f77 test sources.
  9142. +ac_ext=f
  9143. +
  9144. +# Object file extension for compiled f77 test sources.
  9145. +objext=o
  9146. +_LT_TAGVAR(objext, $1)=$objext
  9147. +
  9148. +# No sense in running all these tests if we already determined that
  9149. +# the F77 compiler isn't working. Some variables (like enable_shared)
  9150. +# are currently assumed to apply to all compilers on this platform,
  9151. +# and will be corrupted by setting them based on a non-working compiler.
  9152. +if test "$_lt_disable_F77" != yes; then
  9153. + # Code to be used in simple compile tests
  9154. + lt_simple_compile_test_code="\
  9155. + subroutine t
  9156. + return
  9157. + end
  9158. +"
  9159. +
  9160. + # Code to be used in simple link tests
  9161. + lt_simple_link_test_code="\
  9162. + program t
  9163. + end
  9164. +"
  9165. +
  9166. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9167. + _LT_TAG_COMPILER
  9168. +
  9169. + # save warnings/boilerplate of simple test code
  9170. + _LT_COMPILER_BOILERPLATE
  9171. + _LT_LINKER_BOILERPLATE
  9172. +
  9173. + # Allow CC to be a program name with arguments.
  9174. + lt_save_CC="$CC"
  9175. + lt_save_GCC=$GCC
  9176. + CC=${F77-"f77"}
  9177. + compiler=$CC
  9178. + _LT_TAGVAR(compiler, $1)=$CC
  9179. + _LT_CC_BASENAME([$compiler])
  9180. + GCC=$G77
  9181. + if test -n "$compiler"; then
  9182. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9183. + AC_MSG_RESULT([$can_build_shared])
  9184. + AC_MSG_CHECKING([whether to build shared libraries])
  9185. + test "$can_build_shared" = "no" && enable_shared=no
  9186. +
  9187. + # On AIX, shared libraries and static libraries use the same namespace, and
  9188. + # are all built from PIC.
  9189. + case $host_os in
  9190. + aix3*)
  9191. + test "$enable_shared" = yes && enable_static=no
  9192. + if test -n "$RANLIB"; then
  9193. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9194. + postinstall_cmds='$RANLIB $lib'
  9195. + fi
  9196. + ;;
  9197. + aix[[4-9]]*)
  9198. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9199. + test "$enable_shared" = yes && enable_static=no
  9200. + fi
  9201. + ;;
  9202. + esac
  9203. + AC_MSG_RESULT([$enable_shared])
  9204. +
  9205. + AC_MSG_CHECKING([whether to build static libraries])
  9206. + # Make sure either enable_shared or enable_static is yes.
  9207. + test "$enable_shared" = yes || enable_static=yes
  9208. + AC_MSG_RESULT([$enable_static])
  9209. +
  9210. + _LT_TAGVAR(GCC, $1)="$G77"
  9211. + _LT_TAGVAR(LD, $1)="$LD"
  9212. +
  9213. + ## CAVEAT EMPTOR:
  9214. + ## There is no encapsulation within the following macros, do not change
  9215. + ## the running order or otherwise move them around unless you know exactly
  9216. + ## what you are doing...
  9217. + _LT_COMPILER_PIC($1)
  9218. + _LT_COMPILER_C_O($1)
  9219. + _LT_COMPILER_FILE_LOCKS($1)
  9220. + _LT_LINKER_SHLIBS($1)
  9221. + _LT_SYS_DYNAMIC_LINKER($1)
  9222. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9223. +
  9224. + _LT_CONFIG($1)
  9225. + fi # test -n "$compiler"
  9226. +
  9227. + GCC=$lt_save_GCC
  9228. + CC="$lt_save_CC"
  9229. +fi # test "$_lt_disable_F77" != yes
  9230. +
  9231. +AC_LANG_POP
  9232. +])# _LT_LANG_F77_CONFIG
  9233. +
  9234. +
  9235. +# _LT_PROG_FC
  9236. +# -----------
  9237. +# Since AC_PROG_FC is broken, in that it returns the empty string
  9238. +# if there is no fortran compiler, we have our own version here.
  9239. +m4_defun([_LT_PROG_FC],
  9240. +[
  9241. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  9242. +AC_PROG_FC
  9243. +if test -z "$FC" || test "X$FC" = "Xno"; then
  9244. + _lt_disable_FC=yes
  9245. +fi
  9246. +popdef([AC_MSG_ERROR])
  9247. +])# _LT_PROG_FC
  9248. +
  9249. +dnl aclocal-1.4 backwards compatibility:
  9250. +dnl AC_DEFUN([_LT_PROG_FC], [])
  9251. +
  9252. +
  9253. +# _LT_LANG_FC_CONFIG([TAG])
  9254. +# -------------------------
  9255. +# Ensure that the configuration variables for a Fortran compiler are
  9256. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  9257. +# to write the compiler configuration to `libtool'.
  9258. +m4_defun([_LT_LANG_FC_CONFIG],
  9259. +[AC_REQUIRE([_LT_PROG_FC])dnl
  9260. +AC_LANG_PUSH(Fortran)
  9261. +
  9262. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9263. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9264. +_LT_TAGVAR(always_export_symbols, $1)=no
  9265. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9266. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9267. +_LT_TAGVAR(hardcode_direct, $1)=no
  9268. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9269. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9270. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9271. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9272. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9273. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9274. +_LT_TAGVAR(inherit_rpath, $1)=no
  9275. +_LT_TAGVAR(module_cmds, $1)=
  9276. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9277. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9278. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9279. +_LT_TAGVAR(no_undefined_flag, $1)=
  9280. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9281. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9282. +
  9283. +# Source file extension for fc test sources.
  9284. +ac_ext=${ac_fc_srcext-f}
  9285. +
  9286. +# Object file extension for compiled fc test sources.
  9287. +objext=o
  9288. +_LT_TAGVAR(objext, $1)=$objext
  9289. +
  9290. +# No sense in running all these tests if we already determined that
  9291. +# the FC compiler isn't working. Some variables (like enable_shared)
  9292. +# are currently assumed to apply to all compilers on this platform,
  9293. +# and will be corrupted by setting them based on a non-working compiler.
  9294. +if test "$_lt_disable_FC" != yes; then
  9295. + # Code to be used in simple compile tests
  9296. + lt_simple_compile_test_code="\
  9297. + subroutine t
  9298. + return
  9299. + end
  9300. +"
  9301. +
  9302. + # Code to be used in simple link tests
  9303. + lt_simple_link_test_code="\
  9304. + program t
  9305. + end
  9306. +"
  9307. +
  9308. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9309. + _LT_TAG_COMPILER
  9310. +
  9311. + # save warnings/boilerplate of simple test code
  9312. + _LT_COMPILER_BOILERPLATE
  9313. + _LT_LINKER_BOILERPLATE
  9314. +
  9315. + # Allow CC to be a program name with arguments.
  9316. + lt_save_CC="$CC"
  9317. + lt_save_GCC=$GCC
  9318. + CC=${FC-"f95"}
  9319. + compiler=$CC
  9320. + GCC=$ac_cv_fc_compiler_gnu
  9321. +
  9322. + _LT_TAGVAR(compiler, $1)=$CC
  9323. + _LT_CC_BASENAME([$compiler])
  9324. +
  9325. + if test -n "$compiler"; then
  9326. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9327. + AC_MSG_RESULT([$can_build_shared])
  9328. +
  9329. + AC_MSG_CHECKING([whether to build shared libraries])
  9330. + test "$can_build_shared" = "no" && enable_shared=no
  9331. +
  9332. + # On AIX, shared libraries and static libraries use the same namespace, and
  9333. + # are all built from PIC.
  9334. + case $host_os in
  9335. + aix3*)
  9336. + test "$enable_shared" = yes && enable_static=no
  9337. + if test -n "$RANLIB"; then
  9338. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9339. + postinstall_cmds='$RANLIB $lib'
  9340. + fi
  9341. + ;;
  9342. + aix[[4-9]]*)
  9343. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9344. + test "$enable_shared" = yes && enable_static=no
  9345. + fi
  9346. + ;;
  9347. + esac
  9348. + AC_MSG_RESULT([$enable_shared])
  9349. +
  9350. + AC_MSG_CHECKING([whether to build static libraries])
  9351. + # Make sure either enable_shared or enable_static is yes.
  9352. + test "$enable_shared" = yes || enable_static=yes
  9353. + AC_MSG_RESULT([$enable_static])
  9354. +
  9355. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  9356. + _LT_TAGVAR(LD, $1)="$LD"
  9357. +
  9358. + ## CAVEAT EMPTOR:
  9359. + ## There is no encapsulation within the following macros, do not change
  9360. + ## the running order or otherwise move them around unless you know exactly
  9361. + ## what you are doing...
  9362. + _LT_SYS_HIDDEN_LIBDEPS($1)
  9363. + _LT_COMPILER_PIC($1)
  9364. + _LT_COMPILER_C_O($1)
  9365. + _LT_COMPILER_FILE_LOCKS($1)
  9366. + _LT_LINKER_SHLIBS($1)
  9367. + _LT_SYS_DYNAMIC_LINKER($1)
  9368. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9369. +
  9370. + _LT_CONFIG($1)
  9371. + fi # test -n "$compiler"
  9372. +
  9373. + GCC=$lt_save_GCC
  9374. + CC="$lt_save_CC"
  9375. +fi # test "$_lt_disable_FC" != yes
  9376. +
  9377. +AC_LANG_POP
  9378. +])# _LT_LANG_FC_CONFIG
  9379. +
  9380. +
  9381. +# _LT_LANG_GCJ_CONFIG([TAG])
  9382. +# --------------------------
  9383. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  9384. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9385. +# to write the compiler configuration to `libtool'.
  9386. +m4_defun([_LT_LANG_GCJ_CONFIG],
  9387. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  9388. +AC_LANG_SAVE
  9389. +
  9390. +# Source file extension for Java test sources.
  9391. +ac_ext=java
  9392. +
  9393. +# Object file extension for compiled Java test sources.
  9394. +objext=o
  9395. +_LT_TAGVAR(objext, $1)=$objext
  9396. +
  9397. +# Code to be used in simple compile tests
  9398. +lt_simple_compile_test_code="class foo {}"
  9399. +
  9400. +# Code to be used in simple link tests
  9401. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  9402. +
  9403. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9404. +_LT_TAG_COMPILER
  9405. +
  9406. +# save warnings/boilerplate of simple test code
  9407. +_LT_COMPILER_BOILERPLATE
  9408. +_LT_LINKER_BOILERPLATE
  9409. +
  9410. +# Allow CC to be a program name with arguments.
  9411. +lt_save_CC="$CC"
  9412. +lt_save_GCC=$GCC
  9413. +GCC=yes
  9414. +CC=${GCJ-"gcj"}
  9415. +compiler=$CC
  9416. +_LT_TAGVAR(compiler, $1)=$CC
  9417. +_LT_TAGVAR(LD, $1)="$LD"
  9418. +_LT_CC_BASENAME([$compiler])
  9419. +
  9420. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  9421. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9422. +
  9423. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9424. +
  9425. +if test -n "$compiler"; then
  9426. + _LT_COMPILER_NO_RTTI($1)
  9427. + _LT_COMPILER_PIC($1)
  9428. + _LT_COMPILER_C_O($1)
  9429. + _LT_COMPILER_FILE_LOCKS($1)
  9430. + _LT_LINKER_SHLIBS($1)
  9431. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9432. +
  9433. + _LT_CONFIG($1)
  9434. +fi
  9435. +
  9436. +AC_LANG_RESTORE
  9437. +
  9438. +GCC=$lt_save_GCC
  9439. +CC="$lt_save_CC"
  9440. +])# _LT_LANG_GCJ_CONFIG
  9441. +
  9442. +
  9443. +# _LT_LANG_RC_CONFIG([TAG])
  9444. +# -------------------------
  9445. +# Ensure that the configuration variables for the Windows resource compiler
  9446. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  9447. +# to write the compiler configuration to `libtool'.
  9448. +m4_defun([_LT_LANG_RC_CONFIG],
  9449. +[AC_REQUIRE([LT_PROG_RC])dnl
  9450. +AC_LANG_SAVE
  9451. +
  9452. +# Source file extension for RC test sources.
  9453. +ac_ext=rc
  9454. +
  9455. +# Object file extension for compiled RC test sources.
  9456. +objext=o
  9457. +_LT_TAGVAR(objext, $1)=$objext
  9458. +
  9459. +# Code to be used in simple compile tests
  9460. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  9461. +
  9462. +# Code to be used in simple link tests
  9463. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  9464. +
  9465. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9466. +_LT_TAG_COMPILER
  9467. +
  9468. +# save warnings/boilerplate of simple test code
  9469. +_LT_COMPILER_BOILERPLATE
  9470. +_LT_LINKER_BOILERPLATE
  9471. +
  9472. +# Allow CC to be a program name with arguments.
  9473. +lt_save_CC="$CC"
  9474. +lt_save_GCC=$GCC
  9475. +GCC=
  9476. +CC=${RC-"windres"}
  9477. +compiler=$CC
  9478. +_LT_TAGVAR(compiler, $1)=$CC
  9479. +_LT_CC_BASENAME([$compiler])
  9480. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  9481. +
  9482. +if test -n "$compiler"; then
  9483. + :
  9484. + _LT_CONFIG($1)
  9485. +fi
  9486. +
  9487. +GCC=$lt_save_GCC
  9488. +AC_LANG_RESTORE
  9489. +CC="$lt_save_CC"
  9490. +])# _LT_LANG_RC_CONFIG
  9491. +
  9492. +
  9493. +# LT_PROG_GCJ
  9494. +# -----------
  9495. +AC_DEFUN([LT_PROG_GCJ],
  9496. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  9497. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  9498. + [AC_CHECK_TOOL(GCJ, gcj,)
  9499. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  9500. + AC_SUBST(GCJFLAGS)])])[]dnl
  9501. +])
  9502. +
  9503. +# Old name:
  9504. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  9505. +dnl aclocal-1.4 backwards compatibility:
  9506. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  9507. +
  9508. +
  9509. +# LT_PROG_RC
  9510. +# ----------
  9511. +AC_DEFUN([LT_PROG_RC],
  9512. +[AC_CHECK_TOOL(RC, windres,)
  9513. +])
  9514. +
  9515. +# Old name:
  9516. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  9517. +dnl aclocal-1.4 backwards compatibility:
  9518. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  9519. +
  9520. +
  9521. +# _LT_DECL_EGREP
  9522. +# --------------
  9523. +# If we don't have a new enough Autoconf to choose the best grep
  9524. +# available, choose the one first in the user's PATH.
  9525. +m4_defun([_LT_DECL_EGREP],
  9526. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  9527. +AC_REQUIRE([AC_PROG_FGREP])dnl
  9528. +test -z "$GREP" && GREP=grep
  9529. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  9530. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  9531. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  9532. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  9533. +AC_SUBST([GREP])
  9534. +])
  9535. +
  9536. +
  9537. +# _LT_DECL_OBJDUMP
  9538. +# --------------
  9539. +# If we don't have a new enough Autoconf to choose the best objdump
  9540. +# available, choose the one first in the user's PATH.
  9541. +m4_defun([_LT_DECL_OBJDUMP],
  9542. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9543. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9544. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  9545. +AC_SUBST([OBJDUMP])
  9546. +])
  9547. +
  9548. +
  9549. +# _LT_DECL_SED
  9550. +# ------------
  9551. +# Check for a fully-functional sed program, that truncates
  9552. +# as few characters as possible. Prefer GNU sed if found.
  9553. +m4_defun([_LT_DECL_SED],
  9554. +[AC_PROG_SED
  9555. +test -z "$SED" && SED=sed
  9556. +Xsed="$SED -e 1s/^X//"
  9557. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  9558. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  9559. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  9560. +])# _LT_DECL_SED
  9561. +
  9562. +m4_ifndef([AC_PROG_SED], [
  9563. # NOTE: This macro has been submitted for inclusion into #
  9564. # GNU Autoconf as AC_PROG_SED. When it is available in #
  9565. # a released version of Autoconf we should remove this #
  9566. # macro and use it instead. #
  9567. -# LT_AC_PROG_SED
  9568. -# --------------
  9569. -# Check for a fully-functional sed program, that truncates
  9570. -# as few characters as possible. Prefer GNU sed if found.
  9571. -AC_DEFUN([LT_AC_PROG_SED],
  9572. +
  9573. +m4_defun([AC_PROG_SED],
  9574. [AC_MSG_CHECKING([for a sed that does not truncate output])
  9575. AC_CACHE_VAL(lt_cv_path_SED,
  9576. [# Loop through the user's path and test for sed and gsed.
  9577. @@ -6615,7 +7069,7 @@ do
  9578. test -z "$as_dir" && as_dir=.
  9579. for lt_ac_prog in sed gsed; do
  9580. for ac_exec_ext in '' $ac_executable_extensions; do
  9581. - if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
  9582. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  9583. lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  9584. fi
  9585. done
  9586. @@ -6656,8 +7110,874 @@ done
  9587. SED=$lt_cv_path_SED
  9588. AC_SUBST([SED])
  9589. AC_MSG_RESULT([$SED])
  9590. +])#AC_PROG_SED
  9591. +])#m4_ifndef
  9592. +
  9593. +# Old name:
  9594. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  9595. +dnl aclocal-1.4 backwards compatibility:
  9596. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  9597. +
  9598. +
  9599. +# _LT_CHECK_SHELL_FEATURES
  9600. +# ------------------------
  9601. +# Find out whether the shell is Bourne or XSI compatible,
  9602. +# or has some other useful features.
  9603. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  9604. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  9605. +# Try some XSI features
  9606. +xsi_shell=no
  9607. +( _lt_dummy="a/b/c"
  9608. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  9609. + = c,a/b,, \
  9610. + && eval 'test $(( 1 + 1 )) -eq 2 \
  9611. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  9612. + && xsi_shell=yes
  9613. +AC_MSG_RESULT([$xsi_shell])
  9614. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  9615. +
  9616. +AC_MSG_CHECKING([whether the shell understands "+="])
  9617. +lt_shell_append=no
  9618. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  9619. + >/dev/null 2>&1 \
  9620. + && lt_shell_append=yes
  9621. +AC_MSG_RESULT([$lt_shell_append])
  9622. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  9623. +
  9624. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9625. + lt_unset=unset
  9626. +else
  9627. + lt_unset=false
  9628. +fi
  9629. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  9630. +
  9631. +# test EBCDIC or ASCII
  9632. +case `echo X|tr X '\101'` in
  9633. + A) # ASCII based system
  9634. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  9635. + lt_SP2NL='tr \040 \012'
  9636. + lt_NL2SP='tr \015\012 \040\040'
  9637. + ;;
  9638. + *) # EBCDIC based system
  9639. + lt_SP2NL='tr \100 \n'
  9640. + lt_NL2SP='tr \r\n \100\100'
  9641. + ;;
  9642. +esac
  9643. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  9644. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  9645. +])# _LT_CHECK_SHELL_FEATURES
  9646. +
  9647. +
  9648. +# _LT_PROG_XSI_SHELLFNS
  9649. +# ---------------------
  9650. +# Bourne and XSI compatible variants of some useful shell functions.
  9651. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  9652. +[case $xsi_shell in
  9653. + yes)
  9654. + cat << \_LT_EOF >> "$cfgfile"
  9655. +
  9656. +# func_dirname file append nondir_replacement
  9657. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9658. +# otherwise set result to NONDIR_REPLACEMENT.
  9659. +func_dirname ()
  9660. +{
  9661. + case ${1} in
  9662. + */*) func_dirname_result="${1%/*}${2}" ;;
  9663. + * ) func_dirname_result="${3}" ;;
  9664. + esac
  9665. +}
  9666. +
  9667. +# func_basename file
  9668. +func_basename ()
  9669. +{
  9670. + func_basename_result="${1##*/}"
  9671. +}
  9672. +
  9673. +# func_dirname_and_basename file append nondir_replacement
  9674. +# perform func_basename and func_dirname in a single function
  9675. +# call:
  9676. +# dirname: Compute the dirname of FILE. If nonempty,
  9677. +# add APPEND to the result, otherwise set result
  9678. +# to NONDIR_REPLACEMENT.
  9679. +# value returned in "$func_dirname_result"
  9680. +# basename: Compute filename of FILE.
  9681. +# value retuned in "$func_basename_result"
  9682. +# Implementation must be kept synchronized with func_dirname
  9683. +# and func_basename. For efficiency, we do not delegate to
  9684. +# those functions but instead duplicate the functionality here.
  9685. +func_dirname_and_basename ()
  9686. +{
  9687. + case ${1} in
  9688. + */*) func_dirname_result="${1%/*}${2}" ;;
  9689. + * ) func_dirname_result="${3}" ;;
  9690. + esac
  9691. + func_basename_result="${1##*/}"
  9692. +}
  9693. +
  9694. +# func_stripname prefix suffix name
  9695. +# strip PREFIX and SUFFIX off of NAME.
  9696. +# PREFIX and SUFFIX must not contain globbing or regex special
  9697. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9698. +# dot (in which case that matches only a dot).
  9699. +func_stripname ()
  9700. +{
  9701. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  9702. + # positional parameters, so assign one to ordinary parameter first.
  9703. + func_stripname_result=${3}
  9704. + func_stripname_result=${func_stripname_result#"${1}"}
  9705. + func_stripname_result=${func_stripname_result%"${2}"}
  9706. +}
  9707. +
  9708. +# func_opt_split
  9709. +func_opt_split ()
  9710. +{
  9711. + func_opt_split_opt=${1%%=*}
  9712. + func_opt_split_arg=${1#*=}
  9713. +}
  9714. +
  9715. +# func_lo2o object
  9716. +func_lo2o ()
  9717. +{
  9718. + case ${1} in
  9719. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  9720. + *) func_lo2o_result=${1} ;;
  9721. + esac
  9722. +}
  9723. +
  9724. +# func_xform libobj-or-source
  9725. +func_xform ()
  9726. +{
  9727. + func_xform_result=${1%.*}.lo
  9728. +}
  9729. +
  9730. +# func_arith arithmetic-term...
  9731. +func_arith ()
  9732. +{
  9733. + func_arith_result=$(( $[*] ))
  9734. +}
  9735. +
  9736. +# func_len string
  9737. +# STRING may not start with a hyphen.
  9738. +func_len ()
  9739. +{
  9740. + func_len_result=${#1}
  9741. +}
  9742. +
  9743. +_LT_EOF
  9744. + ;;
  9745. + *) # Bourne compatible functions.
  9746. + cat << \_LT_EOF >> "$cfgfile"
  9747. +
  9748. +# func_dirname file append nondir_replacement
  9749. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  9750. +# otherwise set result to NONDIR_REPLACEMENT.
  9751. +func_dirname ()
  9752. +{
  9753. + # Extract subdirectory from the argument.
  9754. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  9755. + if test "X$func_dirname_result" = "X${1}"; then
  9756. + func_dirname_result="${3}"
  9757. + else
  9758. + func_dirname_result="$func_dirname_result${2}"
  9759. + fi
  9760. +}
  9761. +
  9762. +# func_basename file
  9763. +func_basename ()
  9764. +{
  9765. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  9766. +}
  9767. +
  9768. +dnl func_dirname_and_basename
  9769. +dnl A portable version of this function is already defined in general.m4sh
  9770. +dnl so there is no need for it here.
  9771. +
  9772. +# func_stripname prefix suffix name
  9773. +# strip PREFIX and SUFFIX off of NAME.
  9774. +# PREFIX and SUFFIX must not contain globbing or regex special
  9775. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  9776. +# dot (in which case that matches only a dot).
  9777. +# func_strip_suffix prefix name
  9778. +func_stripname ()
  9779. +{
  9780. + case ${2} in
  9781. + .*) func_stripname_result=`$ECHO "X${3}" \
  9782. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  9783. + *) func_stripname_result=`$ECHO "X${3}" \
  9784. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  9785. + esac
  9786. +}
  9787. +
  9788. +# sed scripts:
  9789. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  9790. +my_sed_long_arg='1s/^-[[^=]]*=//'
  9791. +
  9792. +# func_opt_split
  9793. +func_opt_split ()
  9794. +{
  9795. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  9796. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  9797. +}
  9798. +
  9799. +# func_lo2o object
  9800. +func_lo2o ()
  9801. +{
  9802. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  9803. +}
  9804. +
  9805. +# func_xform libobj-or-source
  9806. +func_xform ()
  9807. +{
  9808. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  9809. +}
  9810. +
  9811. +# func_arith arithmetic-term...
  9812. +func_arith ()
  9813. +{
  9814. + func_arith_result=`expr "$[@]"`
  9815. +}
  9816. +
  9817. +# func_len string
  9818. +# STRING may not start with a hyphen.
  9819. +func_len ()
  9820. +{
  9821. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  9822. +}
  9823. +
  9824. +_LT_EOF
  9825. +esac
  9826. +
  9827. +case $lt_shell_append in
  9828. + yes)
  9829. + cat << \_LT_EOF >> "$cfgfile"
  9830. +
  9831. +# func_append var value
  9832. +# Append VALUE to the end of shell variable VAR.
  9833. +func_append ()
  9834. +{
  9835. + eval "$[1]+=\$[2]"
  9836. +}
  9837. +_LT_EOF
  9838. + ;;
  9839. + *)
  9840. + cat << \_LT_EOF >> "$cfgfile"
  9841. +
  9842. +# func_append var value
  9843. +# Append VALUE to the end of shell variable VAR.
  9844. +func_append ()
  9845. +{
  9846. + eval "$[1]=\$$[1]\$[2]"
  9847. +}
  9848. +
  9849. +_LT_EOF
  9850. + ;;
  9851. + esac
  9852. ])
  9853. +# Helper functions for option handling. -*- Autoconf -*-
  9854. +#
  9855. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  9856. +# Written by Gary V. Vaughan, 2004
  9857. +#
  9858. +# This file is free software; the Free Software Foundation gives
  9859. +# unlimited permission to copy and/or distribute it, with or without
  9860. +# modifications, as long as this notice is preserved.
  9861. +
  9862. +# serial 6 ltoptions.m4
  9863. +
  9864. +# This is to help aclocal find these macros, as it can't see m4_define.
  9865. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  9866. +
  9867. +
  9868. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  9869. +# ------------------------------------------
  9870. +m4_define([_LT_MANGLE_OPTION],
  9871. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  9872. +
  9873. +
  9874. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  9875. +# ---------------------------------------
  9876. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  9877. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  9878. +# saved as a flag.
  9879. +m4_define([_LT_SET_OPTION],
  9880. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  9881. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  9882. + _LT_MANGLE_DEFUN([$1], [$2]),
  9883. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  9884. +])
  9885. +
  9886. +
  9887. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  9888. +# ------------------------------------------------------------
  9889. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  9890. +m4_define([_LT_IF_OPTION],
  9891. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  9892. +
  9893. +
  9894. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  9895. +# -------------------------------------------------------
  9896. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  9897. +# are set.
  9898. +m4_define([_LT_UNLESS_OPTIONS],
  9899. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9900. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  9901. + [m4_define([$0_found])])])[]dnl
  9902. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  9903. +])[]dnl
  9904. +])
  9905. +
  9906. +
  9907. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  9908. +# ----------------------------------------
  9909. +# OPTION-LIST is a space-separated list of Libtool options associated
  9910. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  9911. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  9912. +# the unknown option and exit.
  9913. +m4_defun([_LT_SET_OPTIONS],
  9914. +[# Set options
  9915. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  9916. + [_LT_SET_OPTION([$1], _LT_Option)])
  9917. +
  9918. +m4_if([$1],[LT_INIT],[
  9919. + dnl
  9920. + dnl Simply set some default values (i.e off) if boolean options were not
  9921. + dnl specified:
  9922. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  9923. + ])
  9924. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  9925. + ])
  9926. + dnl
  9927. + dnl If no reference was made to various pairs of opposing options, then
  9928. + dnl we run the default mode handler for the pair. For example, if neither
  9929. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  9930. + dnl archives by default:
  9931. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  9932. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  9933. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  9934. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  9935. + [_LT_ENABLE_FAST_INSTALL])
  9936. + ])
  9937. +])# _LT_SET_OPTIONS
  9938. +
  9939. +
  9940. +
  9941. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  9942. +# -----------------------------------------
  9943. +m4_define([_LT_MANGLE_DEFUN],
  9944. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  9945. +
  9946. +
  9947. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  9948. +# -----------------------------------------------
  9949. +m4_define([LT_OPTION_DEFINE],
  9950. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  9951. +])# LT_OPTION_DEFINE
  9952. +
  9953. +
  9954. +# dlopen
  9955. +# ------
  9956. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  9957. +])
  9958. +
  9959. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  9960. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  9961. +AC_DIAGNOSE([obsolete],
  9962. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  9963. +put the `dlopen' option into LT_INIT's first parameter.])
  9964. +])
  9965. +
  9966. +dnl aclocal-1.4 backwards compatibility:
  9967. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  9968. +
  9969. +
  9970. +# win32-dll
  9971. +# ---------
  9972. +# Declare package support for building win32 dll's.
  9973. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  9974. +[enable_win32_dll=yes
  9975. +
  9976. +case $host in
  9977. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  9978. + AC_CHECK_TOOL(AS, as, false)
  9979. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  9980. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  9981. + ;;
  9982. +esac
  9983. +
  9984. +test -z "$AS" && AS=as
  9985. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  9986. +
  9987. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  9988. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  9989. +
  9990. +test -z "$OBJDUMP" && OBJDUMP=objdump
  9991. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  9992. +])# win32-dll
  9993. +
  9994. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  9995. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  9996. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  9997. +AC_DIAGNOSE([obsolete],
  9998. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  9999. +put the `win32-dll' option into LT_INIT's first parameter.])
  10000. +])
  10001. +
  10002. +dnl aclocal-1.4 backwards compatibility:
  10003. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  10004. +
  10005. +
  10006. +# _LT_ENABLE_SHARED([DEFAULT])
  10007. +# ----------------------------
  10008. +# implement the --enable-shared flag, and supports the `shared' and
  10009. +# `disable-shared' LT_INIT options.
  10010. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10011. +m4_define([_LT_ENABLE_SHARED],
  10012. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10013. +AC_ARG_ENABLE([shared],
  10014. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  10015. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  10016. + [p=${PACKAGE-default}
  10017. + case $enableval in
  10018. + yes) enable_shared=yes ;;
  10019. + no) enable_shared=no ;;
  10020. + *)
  10021. + enable_shared=no
  10022. + # Look at the argument we got. We use all the common list separators.
  10023. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10024. + for pkg in $enableval; do
  10025. + IFS="$lt_save_ifs"
  10026. + if test "X$pkg" = "X$p"; then
  10027. + enable_shared=yes
  10028. + fi
  10029. + done
  10030. + IFS="$lt_save_ifs"
  10031. + ;;
  10032. + esac],
  10033. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  10034. +
  10035. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  10036. + [Whether or not to build shared libraries])
  10037. +])# _LT_ENABLE_SHARED
  10038. +
  10039. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  10040. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  10041. +
  10042. +# Old names:
  10043. +AC_DEFUN([AC_ENABLE_SHARED],
  10044. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  10045. +])
  10046. +
  10047. +AC_DEFUN([AC_DISABLE_SHARED],
  10048. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  10049. +])
  10050. +
  10051. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  10052. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  10053. +
  10054. +dnl aclocal-1.4 backwards compatibility:
  10055. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  10056. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  10057. +
  10058. +
  10059. +
  10060. +# _LT_ENABLE_STATIC([DEFAULT])
  10061. +# ----------------------------
  10062. +# implement the --enable-static flag, and support the `static' and
  10063. +# `disable-static' LT_INIT options.
  10064. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10065. +m4_define([_LT_ENABLE_STATIC],
  10066. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10067. +AC_ARG_ENABLE([static],
  10068. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  10069. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  10070. + [p=${PACKAGE-default}
  10071. + case $enableval in
  10072. + yes) enable_static=yes ;;
  10073. + no) enable_static=no ;;
  10074. + *)
  10075. + enable_static=no
  10076. + # Look at the argument we got. We use all the common list separators.
  10077. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10078. + for pkg in $enableval; do
  10079. + IFS="$lt_save_ifs"
  10080. + if test "X$pkg" = "X$p"; then
  10081. + enable_static=yes
  10082. + fi
  10083. + done
  10084. + IFS="$lt_save_ifs"
  10085. + ;;
  10086. + esac],
  10087. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  10088. +
  10089. + _LT_DECL([build_old_libs], [enable_static], [0],
  10090. + [Whether or not to build static libraries])
  10091. +])# _LT_ENABLE_STATIC
  10092. +
  10093. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  10094. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  10095. +
  10096. +# Old names:
  10097. +AC_DEFUN([AC_ENABLE_STATIC],
  10098. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  10099. +])
  10100. +
  10101. +AC_DEFUN([AC_DISABLE_STATIC],
  10102. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  10103. +])
  10104. +
  10105. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  10106. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  10107. +
  10108. +dnl aclocal-1.4 backwards compatibility:
  10109. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  10110. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  10111. +
  10112. +
  10113. +
  10114. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  10115. +# ----------------------------------
  10116. +# implement the --enable-fast-install flag, and support the `fast-install'
  10117. +# and `disable-fast-install' LT_INIT options.
  10118. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  10119. +m4_define([_LT_ENABLE_FAST_INSTALL],
  10120. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  10121. +AC_ARG_ENABLE([fast-install],
  10122. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  10123. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  10124. + [p=${PACKAGE-default}
  10125. + case $enableval in
  10126. + yes) enable_fast_install=yes ;;
  10127. + no) enable_fast_install=no ;;
  10128. + *)
  10129. + enable_fast_install=no
  10130. + # Look at the argument we got. We use all the common list separators.
  10131. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  10132. + for pkg in $enableval; do
  10133. + IFS="$lt_save_ifs"
  10134. + if test "X$pkg" = "X$p"; then
  10135. + enable_fast_install=yes
  10136. + fi
  10137. + done
  10138. + IFS="$lt_save_ifs"
  10139. + ;;
  10140. + esac],
  10141. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  10142. +
  10143. +_LT_DECL([fast_install], [enable_fast_install], [0],
  10144. + [Whether or not to optimize for fast installation])dnl
  10145. +])# _LT_ENABLE_FAST_INSTALL
  10146. +
  10147. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  10148. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  10149. +
  10150. +# Old names:
  10151. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  10152. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  10153. +AC_DIAGNOSE([obsolete],
  10154. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10155. +the `fast-install' option into LT_INIT's first parameter.])
  10156. +])
  10157. +
  10158. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  10159. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  10160. +AC_DIAGNOSE([obsolete],
  10161. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  10162. +the `disable-fast-install' option into LT_INIT's first parameter.])
  10163. +])
  10164. +
  10165. +dnl aclocal-1.4 backwards compatibility:
  10166. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  10167. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  10168. +
  10169. +
  10170. +# _LT_WITH_PIC([MODE])
  10171. +# --------------------
  10172. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  10173. +# LT_INIT options.
  10174. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  10175. +m4_define([_LT_WITH_PIC],
  10176. +[AC_ARG_WITH([pic],
  10177. + [AS_HELP_STRING([--with-pic],
  10178. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  10179. + [pic_mode="$withval"],
  10180. + [pic_mode=default])
  10181. +
  10182. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  10183. +
  10184. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  10185. +])# _LT_WITH_PIC
  10186. +
  10187. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  10188. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  10189. +
  10190. +# Old name:
  10191. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  10192. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  10193. +AC_DIAGNOSE([obsolete],
  10194. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  10195. +put the `pic-only' option into LT_INIT's first parameter.])
  10196. +])
  10197. +
  10198. +dnl aclocal-1.4 backwards compatibility:
  10199. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  10200. +
  10201. +
  10202. +m4_define([_LTDL_MODE], [])
  10203. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  10204. + [m4_define([_LTDL_MODE], [nonrecursive])])
  10205. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  10206. + [m4_define([_LTDL_MODE], [recursive])])
  10207. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  10208. + [m4_define([_LTDL_MODE], [subproject])])
  10209. +
  10210. +m4_define([_LTDL_TYPE], [])
  10211. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  10212. + [m4_define([_LTDL_TYPE], [installable])])
  10213. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  10214. + [m4_define([_LTDL_TYPE], [convenience])])
  10215. +
  10216. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  10217. +#
  10218. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  10219. +# Written by Gary V. Vaughan, 2004
  10220. +#
  10221. +# This file is free software; the Free Software Foundation gives
  10222. +# unlimited permission to copy and/or distribute it, with or without
  10223. +# modifications, as long as this notice is preserved.
  10224. +
  10225. +# serial 6 ltsugar.m4
  10226. +
  10227. +# This is to help aclocal find these macros, as it can't see m4_define.
  10228. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  10229. +
  10230. +
  10231. +# lt_join(SEP, ARG1, [ARG2...])
  10232. +# -----------------------------
  10233. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  10234. +# associated separator.
  10235. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  10236. +# versions in m4sugar had bugs.
  10237. +m4_define([lt_join],
  10238. +[m4_if([$#], [1], [],
  10239. + [$#], [2], [[$2]],
  10240. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  10241. +m4_define([_lt_join],
  10242. +[m4_if([$#$2], [2], [],
  10243. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  10244. +
  10245. +
  10246. +# lt_car(LIST)
  10247. +# lt_cdr(LIST)
  10248. +# ------------
  10249. +# Manipulate m4 lists.
  10250. +# These macros are necessary as long as will still need to support
  10251. +# Autoconf-2.59 which quotes differently.
  10252. +m4_define([lt_car], [[$1]])
  10253. +m4_define([lt_cdr],
  10254. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  10255. + [$#], 1, [],
  10256. + [m4_dquote(m4_shift($@))])])
  10257. +m4_define([lt_unquote], $1)
  10258. +
  10259. +
  10260. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  10261. +# ------------------------------------------
  10262. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  10263. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  10264. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  10265. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  10266. +# than defined and empty).
  10267. +#
  10268. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  10269. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  10270. +m4_define([lt_append],
  10271. +[m4_define([$1],
  10272. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  10273. +
  10274. +
  10275. +
  10276. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  10277. +# ----------------------------------------------------------
  10278. +# Produce a SEP delimited list of all paired combinations of elements of
  10279. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  10280. +# has the form PREFIXmINFIXSUFFIXn.
  10281. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  10282. +m4_define([lt_combine],
  10283. +[m4_if(m4_eval([$# > 3]), [1],
  10284. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  10285. +[[m4_foreach([_Lt_prefix], [$2],
  10286. + [m4_foreach([_Lt_suffix],
  10287. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  10288. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  10289. +
  10290. +
  10291. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  10292. +# -----------------------------------------------------------------------
  10293. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  10294. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  10295. +m4_define([lt_if_append_uniq],
  10296. +[m4_ifdef([$1],
  10297. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  10298. + [lt_append([$1], [$2], [$3])$4],
  10299. + [$5])],
  10300. + [lt_append([$1], [$2], [$3])$4])])
  10301. +
  10302. +
  10303. +# lt_dict_add(DICT, KEY, VALUE)
  10304. +# -----------------------------
  10305. +m4_define([lt_dict_add],
  10306. +[m4_define([$1($2)], [$3])])
  10307. +
  10308. +
  10309. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  10310. +# --------------------------------------------
  10311. +m4_define([lt_dict_add_subkey],
  10312. +[m4_define([$1($2:$3)], [$4])])
  10313. +
  10314. +
  10315. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  10316. +# ----------------------------------
  10317. +m4_define([lt_dict_fetch],
  10318. +[m4_ifval([$3],
  10319. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  10320. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  10321. +
  10322. +
  10323. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  10324. +# -----------------------------------------------------------------
  10325. +m4_define([lt_if_dict_fetch],
  10326. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  10327. + [$5],
  10328. + [$6])])
  10329. +
  10330. +
  10331. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  10332. +# --------------------------------------------------------------
  10333. +m4_define([lt_dict_filter],
  10334. +[m4_if([$5], [], [],
  10335. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  10336. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  10337. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  10338. +])
  10339. +
  10340. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  10341. +#
  10342. +# Copyright (C) 2004 Free Software Foundation, Inc.
  10343. +# Written by Scott James Remnant, 2004
  10344. +#
  10345. +# This file is free software; the Free Software Foundation gives
  10346. +# unlimited permission to copy and/or distribute it, with or without
  10347. +# modifications, as long as this notice is preserved.
  10348. +
  10349. +# Generated from ltversion.in.
  10350. +
  10351. +# serial 3012 ltversion.m4
  10352. +# This file is part of GNU Libtool
  10353. +
  10354. +m4_define([LT_PACKAGE_VERSION], [2.2.6])
  10355. +m4_define([LT_PACKAGE_REVISION], [1.3012])
  10356. +
  10357. +AC_DEFUN([LTVERSION_VERSION],
  10358. +[macro_version='2.2.6'
  10359. +macro_revision='1.3012'
  10360. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  10361. +_LT_DECL(, macro_revision, 0)
  10362. +])
  10363. +
  10364. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  10365. +#
  10366. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  10367. +# Written by Scott James Remnant, 2004.
  10368. +#
  10369. +# This file is free software; the Free Software Foundation gives
  10370. +# unlimited permission to copy and/or distribute it, with or without
  10371. +# modifications, as long as this notice is preserved.
  10372. +
  10373. +# serial 4 lt~obsolete.m4
  10374. +
  10375. +# These exist entirely to fool aclocal when bootstrapping libtool.
  10376. +#
  10377. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  10378. +# which have later been changed to m4_define as they aren't part of the
  10379. +# exported API, or moved to Autoconf or Automake where they belong.
  10380. +#
  10381. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  10382. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  10383. +# using a macro with the same name in our local m4/libtool.m4 it'll
  10384. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  10385. +# and doesn't know about Autoconf macros at all.)
  10386. +#
  10387. +# So we provide this file, which has a silly filename so it's always
  10388. +# included after everything else. This provides aclocal with the
  10389. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  10390. +# because those macros already exist, or will be overwritten later.
  10391. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  10392. +#
  10393. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  10394. +# Yes, that means every name once taken will need to remain here until
  10395. +# we give up compatibility with versions before 1.7, at which point
  10396. +# we need to keep only those names which we still refer to.
  10397. +
  10398. +# This is to help aclocal find these macros, as it can't see m4_define.
  10399. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  10400. +
  10401. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  10402. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  10403. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  10404. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  10405. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  10406. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  10407. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  10408. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  10409. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  10410. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  10411. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  10412. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  10413. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  10414. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  10415. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  10416. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  10417. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  10418. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  10419. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  10420. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  10421. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  10422. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  10423. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  10424. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  10425. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  10426. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  10427. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  10428. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  10429. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  10430. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  10431. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  10432. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  10433. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  10434. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  10435. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  10436. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  10437. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  10438. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  10439. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  10440. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  10441. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  10442. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  10443. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  10444. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  10445. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  10446. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  10447. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  10448. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  10449. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  10450. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  10451. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  10452. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  10453. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  10454. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  10455. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  10456. +
  10457. # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
  10458. #
  10459. # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
  10460. @@ -6814,7 +8134,7 @@ else
  10461. fi[]dnl
  10462. ])# PKG_CHECK_MODULES
  10463. -# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
  10464. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  10465. #
  10466. # This file is free software; the Free Software Foundation
  10467. # gives unlimited permission to copy and/or distribute it,
  10468. @@ -6829,7 +8149,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
  10469. [am__api_version='1.10'
  10470. dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  10471. dnl require some minimum version. Point them to the right macro.
  10472. -m4_if([$1], [1.10.1], [],
  10473. +m4_if([$1], [1.10.2], [],
  10474. [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  10475. ])
  10476. @@ -6843,12 +8163,12 @@ m4_define([_AM_AUTOCONF_VERSION], [])
  10477. # AM_SET_CURRENT_AUTOMAKE_VERSION
  10478. # -------------------------------
  10479. # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  10480. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  10481. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  10482. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  10483. -[AM_AUTOMAKE_VERSION([1.10.1])dnl
  10484. +[AM_AUTOMAKE_VERSION([1.10.2])dnl
  10485. m4_ifndef([AC_AUTOCONF_VERSION],
  10486. [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  10487. -_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)])
  10488. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  10489. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  10490. @@ -7098,19 +8418,28 @@ _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  10491. # Generate code to set up dependency tracking. -*- Autoconf -*-
  10492. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  10493. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  10494. # Free Software Foundation, Inc.
  10495. #
  10496. # This file is free software; the Free Software Foundation
  10497. # gives unlimited permission to copy and/or distribute it,
  10498. # with or without modifications, as long as this notice is preserved.
  10499. -#serial 3
  10500. +#serial 4
  10501. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  10502. # ------------------------------
  10503. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  10504. -[for mf in $CONFIG_FILES; do
  10505. +[# Autoconf 2.62 quotes --file arguments for eval, but not when files
  10506. +# are listed without --file. Let's play safe and only enable the eval
  10507. +# if we detect the quoting.
  10508. +case $CONFIG_FILES in
  10509. +*\'*) eval set x "$CONFIG_FILES" ;;
  10510. +*) set x $CONFIG_FILES ;;
  10511. +esac
  10512. +shift
  10513. +for mf
  10514. +do
  10515. # Strip MF so we end up with the name of the file.
  10516. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10517. # Check whether this is an Automake generated Makefile or not.
  10518. @@ -7483,13 +8812,13 @@ esac
  10519. # Helper functions for option handling. -*- Autoconf -*-
  10520. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  10521. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  10522. #
  10523. # This file is free software; the Free Software Foundation
  10524. # gives unlimited permission to copy and/or distribute it,
  10525. # with or without modifications, as long as this notice is preserved.
  10526. -# serial 3
  10527. +# serial 4
  10528. # _AM_MANGLE_OPTION(NAME)
  10529. # -----------------------
  10530. @@ -7506,7 +8835,7 @@ AC_DEFUN([_AM_SET_OPTION],
  10531. # ----------------------------------
  10532. # OPTIONS is a space-separated list of Automake options.
  10533. AC_DEFUN([_AM_SET_OPTIONS],
  10534. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  10535. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  10536. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  10537. # -------------------------------------------