[Legacy] Clamav/SOSDG For Win32
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

clamav-sosdg-1.patch 630KB

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