configure 395 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libcsv 3.0.3.
  4. #
  5. # Report bugs to <rgamble99@gmail.com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  188. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. PATH=/empty FPATH=/empty; export PATH FPATH
  192. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  193. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  194. test \$(( 1 + 1 )) = 2 || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and
  259. $0: rgamble99@gmail.com about your system, including any
  260. $0: error possibly output before this message. Then install
  261. $0: a modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='libcsv'
  542. PACKAGE_TARNAME='libcsv'
  543. PACKAGE_VERSION='3.0.3'
  544. PACKAGE_STRING='libcsv 3.0.3'
  545. PACKAGE_BUGREPORT='rgamble99@gmail.com'
  546. PACKAGE_URL='https://github.com/rgamble/libcsv'
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_unique_file="libcsv.c"
  583. ac_subst_vars='am__EXEEXT_FALSE
  584. am__EXEEXT_TRUE
  585. LTLIBOBJS
  586. LIBOBJS
  587. CPP
  588. OTOOL64
  589. OTOOL
  590. LIPO
  591. NMEDIT
  592. DSYMUTIL
  593. MANIFEST_TOOL
  594. RANLIB
  595. ac_ct_AR
  596. AR
  597. DLLTOOL
  598. OBJDUMP
  599. LN_S
  600. NM
  601. ac_ct_DUMPBIN
  602. DUMPBIN
  603. LD
  604. FGREP
  605. EGREP
  606. GREP
  607. SED
  608. host_os
  609. host_vendor
  610. host_cpu
  611. host
  612. build_os
  613. build_vendor
  614. build_cpu
  615. build
  616. LIBTOOL
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. AM_BACKSLASH
  635. AM_DEFAULT_VERBOSITY
  636. AM_DEFAULT_V
  637. AM_V
  638. am__untar
  639. am__tar
  640. AMTAR
  641. am__leading_dot
  642. SET_MAKE
  643. AWK
  644. mkdir_p
  645. MKDIR_P
  646. INSTALL_STRIP_PROGRAM
  647. STRIP
  648. install_sh
  649. MAKEINFO
  650. AUTOHEADER
  651. AUTOMAKE
  652. AUTOCONF
  653. ACLOCAL
  654. VERSION
  655. PACKAGE
  656. CYGPATH_W
  657. am__isrc
  658. INSTALL_DATA
  659. INSTALL_SCRIPT
  660. INSTALL_PROGRAM
  661. target_alias
  662. host_alias
  663. build_alias
  664. LIBS
  665. ECHO_T
  666. ECHO_N
  667. ECHO_C
  668. DEFS
  669. mandir
  670. localedir
  671. libdir
  672. psdir
  673. pdfdir
  674. dvidir
  675. htmldir
  676. infodir
  677. docdir
  678. oldincludedir
  679. includedir
  680. localstatedir
  681. sharedstatedir
  682. sysconfdir
  683. datadir
  684. datarootdir
  685. libexecdir
  686. sbindir
  687. bindir
  688. program_transform_name
  689. prefix
  690. exec_prefix
  691. PACKAGE_URL
  692. PACKAGE_BUGREPORT
  693. PACKAGE_STRING
  694. PACKAGE_VERSION
  695. PACKAGE_TARNAME
  696. PACKAGE_NAME
  697. PATH_SEPARATOR
  698. SHELL'
  699. ac_subst_files=''
  700. ac_user_opts='
  701. enable_option_checking
  702. enable_silent_rules
  703. enable_dependency_tracking
  704. enable_shared
  705. enable_static
  706. with_pic
  707. enable_fast_install
  708. with_gnu_ld
  709. with_sysroot
  710. enable_libtool_lock
  711. '
  712. ac_precious_vars='build_alias
  713. host_alias
  714. target_alias
  715. CC
  716. CFLAGS
  717. LDFLAGS
  718. LIBS
  719. CPPFLAGS
  720. CPP'
  721. # Initialize some variables set by options.
  722. ac_init_help=
  723. ac_init_version=false
  724. ac_unrecognized_opts=
  725. ac_unrecognized_sep=
  726. # The variables have the same names as the options, with
  727. # dashes changed to underlines.
  728. cache_file=/dev/null
  729. exec_prefix=NONE
  730. no_create=
  731. no_recursion=
  732. prefix=NONE
  733. program_prefix=NONE
  734. program_suffix=NONE
  735. program_transform_name=s,x,x,
  736. silent=
  737. site=
  738. srcdir=
  739. verbose=
  740. x_includes=NONE
  741. x_libraries=NONE
  742. # Installation directory options.
  743. # These are left unexpanded so users can "make install exec_prefix=/foo"
  744. # and all the variables that are supposed to be based on exec_prefix
  745. # by default will actually change.
  746. # Use braces instead of parens because sh, perl, etc. also accept them.
  747. # (The list follows the same order as the GNU Coding Standards.)
  748. bindir='${exec_prefix}/bin'
  749. sbindir='${exec_prefix}/sbin'
  750. libexecdir='${exec_prefix}/libexec'
  751. datarootdir='${prefix}/share'
  752. datadir='${datarootdir}'
  753. sysconfdir='${prefix}/etc'
  754. sharedstatedir='${prefix}/com'
  755. localstatedir='${prefix}/var'
  756. includedir='${prefix}/include'
  757. oldincludedir='/usr/include'
  758. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  759. infodir='${datarootdir}/info'
  760. htmldir='${docdir}'
  761. dvidir='${docdir}'
  762. pdfdir='${docdir}'
  763. psdir='${docdir}'
  764. libdir='${exec_prefix}/lib'
  765. localedir='${datarootdir}/locale'
  766. mandir='${datarootdir}/man'
  767. ac_prev=
  768. ac_dashdash=
  769. for ac_option
  770. do
  771. # If the previous option needs an argument, assign it.
  772. if test -n "$ac_prev"; then
  773. eval $ac_prev=\$ac_option
  774. ac_prev=
  775. continue
  776. fi
  777. case $ac_option in
  778. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  779. *=) ac_optarg= ;;
  780. *) ac_optarg=yes ;;
  781. esac
  782. # Accept the important Cygnus configure options, so we can diagnose typos.
  783. case $ac_dashdash$ac_option in
  784. --)
  785. ac_dashdash=yes ;;
  786. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  787. ac_prev=bindir ;;
  788. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  789. bindir=$ac_optarg ;;
  790. -build | --build | --buil | --bui | --bu)
  791. ac_prev=build_alias ;;
  792. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  793. build_alias=$ac_optarg ;;
  794. -cache-file | --cache-file | --cache-fil | --cache-fi \
  795. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  796. ac_prev=cache_file ;;
  797. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  798. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  799. cache_file=$ac_optarg ;;
  800. --config-cache | -C)
  801. cache_file=config.cache ;;
  802. -datadir | --datadir | --datadi | --datad)
  803. ac_prev=datadir ;;
  804. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  805. datadir=$ac_optarg ;;
  806. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  807. | --dataroo | --dataro | --datar)
  808. ac_prev=datarootdir ;;
  809. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  810. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  811. datarootdir=$ac_optarg ;;
  812. -disable-* | --disable-*)
  813. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  814. # Reject names that are not valid shell variable names.
  815. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  816. as_fn_error $? "invalid feature name: $ac_useropt"
  817. ac_useropt_orig=$ac_useropt
  818. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  819. case $ac_user_opts in
  820. *"
  821. "enable_$ac_useropt"
  822. "*) ;;
  823. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  824. ac_unrecognized_sep=', ';;
  825. esac
  826. eval enable_$ac_useropt=no ;;
  827. -docdir | --docdir | --docdi | --doc | --do)
  828. ac_prev=docdir ;;
  829. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  830. docdir=$ac_optarg ;;
  831. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  832. ac_prev=dvidir ;;
  833. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  834. dvidir=$ac_optarg ;;
  835. -enable-* | --enable-*)
  836. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  837. # Reject names that are not valid shell variable names.
  838. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  839. as_fn_error $? "invalid feature name: $ac_useropt"
  840. ac_useropt_orig=$ac_useropt
  841. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  842. case $ac_user_opts in
  843. *"
  844. "enable_$ac_useropt"
  845. "*) ;;
  846. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  847. ac_unrecognized_sep=', ';;
  848. esac
  849. eval enable_$ac_useropt=\$ac_optarg ;;
  850. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  851. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  852. | --exec | --exe | --ex)
  853. ac_prev=exec_prefix ;;
  854. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  855. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  856. | --exec=* | --exe=* | --ex=*)
  857. exec_prefix=$ac_optarg ;;
  858. -gas | --gas | --ga | --g)
  859. # Obsolete; use --with-gas.
  860. with_gas=yes ;;
  861. -help | --help | --hel | --he | -h)
  862. ac_init_help=long ;;
  863. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  864. ac_init_help=recursive ;;
  865. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  866. ac_init_help=short ;;
  867. -host | --host | --hos | --ho)
  868. ac_prev=host_alias ;;
  869. -host=* | --host=* | --hos=* | --ho=*)
  870. host_alias=$ac_optarg ;;
  871. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  872. ac_prev=htmldir ;;
  873. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  874. | --ht=*)
  875. htmldir=$ac_optarg ;;
  876. -includedir | --includedir | --includedi | --included | --include \
  877. | --includ | --inclu | --incl | --inc)
  878. ac_prev=includedir ;;
  879. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  880. | --includ=* | --inclu=* | --incl=* | --inc=*)
  881. includedir=$ac_optarg ;;
  882. -infodir | --infodir | --infodi | --infod | --info | --inf)
  883. ac_prev=infodir ;;
  884. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  885. infodir=$ac_optarg ;;
  886. -libdir | --libdir | --libdi | --libd)
  887. ac_prev=libdir ;;
  888. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  889. libdir=$ac_optarg ;;
  890. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  891. | --libexe | --libex | --libe)
  892. ac_prev=libexecdir ;;
  893. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  894. | --libexe=* | --libex=* | --libe=*)
  895. libexecdir=$ac_optarg ;;
  896. -localedir | --localedir | --localedi | --localed | --locale)
  897. ac_prev=localedir ;;
  898. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  899. localedir=$ac_optarg ;;
  900. -localstatedir | --localstatedir | --localstatedi | --localstated \
  901. | --localstate | --localstat | --localsta | --localst | --locals)
  902. ac_prev=localstatedir ;;
  903. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  904. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  905. localstatedir=$ac_optarg ;;
  906. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  907. ac_prev=mandir ;;
  908. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  909. mandir=$ac_optarg ;;
  910. -nfp | --nfp | --nf)
  911. # Obsolete; use --without-fp.
  912. with_fp=no ;;
  913. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  914. | --no-cr | --no-c | -n)
  915. no_create=yes ;;
  916. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  917. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  918. no_recursion=yes ;;
  919. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  920. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  921. | --oldin | --oldi | --old | --ol | --o)
  922. ac_prev=oldincludedir ;;
  923. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  924. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  925. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  926. oldincludedir=$ac_optarg ;;
  927. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  928. ac_prev=prefix ;;
  929. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  930. prefix=$ac_optarg ;;
  931. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  932. | --program-pre | --program-pr | --program-p)
  933. ac_prev=program_prefix ;;
  934. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  935. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  936. program_prefix=$ac_optarg ;;
  937. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  938. | --program-suf | --program-su | --program-s)
  939. ac_prev=program_suffix ;;
  940. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  941. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  942. program_suffix=$ac_optarg ;;
  943. -program-transform-name | --program-transform-name \
  944. | --program-transform-nam | --program-transform-na \
  945. | --program-transform-n | --program-transform- \
  946. | --program-transform | --program-transfor \
  947. | --program-transfo | --program-transf \
  948. | --program-trans | --program-tran \
  949. | --progr-tra | --program-tr | --program-t)
  950. ac_prev=program_transform_name ;;
  951. -program-transform-name=* | --program-transform-name=* \
  952. | --program-transform-nam=* | --program-transform-na=* \
  953. | --program-transform-n=* | --program-transform-=* \
  954. | --program-transform=* | --program-transfor=* \
  955. | --program-transfo=* | --program-transf=* \
  956. | --program-trans=* | --program-tran=* \
  957. | --progr-tra=* | --program-tr=* | --program-t=*)
  958. program_transform_name=$ac_optarg ;;
  959. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  960. ac_prev=pdfdir ;;
  961. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  962. pdfdir=$ac_optarg ;;
  963. -psdir | --psdir | --psdi | --psd | --ps)
  964. ac_prev=psdir ;;
  965. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  966. psdir=$ac_optarg ;;
  967. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  968. | -silent | --silent | --silen | --sile | --sil)
  969. silent=yes ;;
  970. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  971. ac_prev=sbindir ;;
  972. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  973. | --sbi=* | --sb=*)
  974. sbindir=$ac_optarg ;;
  975. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  976. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  977. | --sharedst | --shareds | --shared | --share | --shar \
  978. | --sha | --sh)
  979. ac_prev=sharedstatedir ;;
  980. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  981. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  982. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  983. | --sha=* | --sh=*)
  984. sharedstatedir=$ac_optarg ;;
  985. -site | --site | --sit)
  986. ac_prev=site ;;
  987. -site=* | --site=* | --sit=*)
  988. site=$ac_optarg ;;
  989. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  990. ac_prev=srcdir ;;
  991. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  992. srcdir=$ac_optarg ;;
  993. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  994. | --syscon | --sysco | --sysc | --sys | --sy)
  995. ac_prev=sysconfdir ;;
  996. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  997. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  998. sysconfdir=$ac_optarg ;;
  999. -target | --target | --targe | --targ | --tar | --ta | --t)
  1000. ac_prev=target_alias ;;
  1001. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1002. target_alias=$ac_optarg ;;
  1003. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1004. verbose=yes ;;
  1005. -version | --version | --versio | --versi | --vers | -V)
  1006. ac_init_version=: ;;
  1007. -with-* | --with-*)
  1008. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1009. # Reject names that are not valid shell variable names.
  1010. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1011. as_fn_error $? "invalid package name: $ac_useropt"
  1012. ac_useropt_orig=$ac_useropt
  1013. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1014. case $ac_user_opts in
  1015. *"
  1016. "with_$ac_useropt"
  1017. "*) ;;
  1018. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1019. ac_unrecognized_sep=', ';;
  1020. esac
  1021. eval with_$ac_useropt=\$ac_optarg ;;
  1022. -without-* | --without-*)
  1023. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1024. # Reject names that are not valid shell variable names.
  1025. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1026. as_fn_error $? "invalid package name: $ac_useropt"
  1027. ac_useropt_orig=$ac_useropt
  1028. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1029. case $ac_user_opts in
  1030. *"
  1031. "with_$ac_useropt"
  1032. "*) ;;
  1033. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1034. ac_unrecognized_sep=', ';;
  1035. esac
  1036. eval with_$ac_useropt=no ;;
  1037. --x)
  1038. # Obsolete; use --with-x.
  1039. with_x=yes ;;
  1040. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1041. | --x-incl | --x-inc | --x-in | --x-i)
  1042. ac_prev=x_includes ;;
  1043. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1044. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1045. x_includes=$ac_optarg ;;
  1046. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1047. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1048. ac_prev=x_libraries ;;
  1049. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1050. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1051. x_libraries=$ac_optarg ;;
  1052. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1053. Try \`$0 --help' for more information"
  1054. ;;
  1055. *=*)
  1056. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1057. # Reject names that are not valid shell variable names.
  1058. case $ac_envvar in #(
  1059. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1060. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1061. esac
  1062. eval $ac_envvar=\$ac_optarg
  1063. export $ac_envvar ;;
  1064. *)
  1065. # FIXME: should be removed in autoconf 3.0.
  1066. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1067. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1068. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1069. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1070. ;;
  1071. esac
  1072. done
  1073. if test -n "$ac_prev"; then
  1074. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1075. as_fn_error $? "missing argument to $ac_option"
  1076. fi
  1077. if test -n "$ac_unrecognized_opts"; then
  1078. case $enable_option_checking in
  1079. no) ;;
  1080. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1081. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1082. esac
  1083. fi
  1084. # Check all directory arguments for consistency.
  1085. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1086. datadir sysconfdir sharedstatedir localstatedir includedir \
  1087. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1088. libdir localedir mandir
  1089. do
  1090. eval ac_val=\$$ac_var
  1091. # Remove trailing slashes.
  1092. case $ac_val in
  1093. */ )
  1094. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1095. eval $ac_var=\$ac_val;;
  1096. esac
  1097. # Be sure to have absolute directory names.
  1098. case $ac_val in
  1099. [\\/$]* | ?:[\\/]* ) continue;;
  1100. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1101. esac
  1102. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1103. done
  1104. # There might be people who depend on the old broken behavior: `$host'
  1105. # used to hold the argument of --host etc.
  1106. # FIXME: To remove some day.
  1107. build=$build_alias
  1108. host=$host_alias
  1109. target=$target_alias
  1110. # FIXME: To remove some day.
  1111. if test "x$host_alias" != x; then
  1112. if test "x$build_alias" = x; then
  1113. cross_compiling=maybe
  1114. elif test "x$build_alias" != "x$host_alias"; then
  1115. cross_compiling=yes
  1116. fi
  1117. fi
  1118. ac_tool_prefix=
  1119. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1120. test "$silent" = yes && exec 6>/dev/null
  1121. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1122. ac_ls_di=`ls -di .` &&
  1123. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1124. as_fn_error $? "working directory cannot be determined"
  1125. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1126. as_fn_error $? "pwd does not report name of working directory"
  1127. # Find the source files, if location was not specified.
  1128. if test -z "$srcdir"; then
  1129. ac_srcdir_defaulted=yes
  1130. # Try the directory containing this script, then the parent directory.
  1131. ac_confdir=`$as_dirname -- "$as_myself" ||
  1132. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1133. X"$as_myself" : 'X\(//\)[^/]' \| \
  1134. X"$as_myself" : 'X\(//\)$' \| \
  1135. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1136. $as_echo X"$as_myself" |
  1137. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)[^/].*/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\/\)$/{
  1146. s//\1/
  1147. q
  1148. }
  1149. /^X\(\/\).*/{
  1150. s//\1/
  1151. q
  1152. }
  1153. s/.*/./; q'`
  1154. srcdir=$ac_confdir
  1155. if test ! -r "$srcdir/$ac_unique_file"; then
  1156. srcdir=..
  1157. fi
  1158. else
  1159. ac_srcdir_defaulted=no
  1160. fi
  1161. if test ! -r "$srcdir/$ac_unique_file"; then
  1162. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1163. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1164. fi
  1165. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1166. ac_abs_confdir=`(
  1167. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1168. pwd)`
  1169. # When building in place, set srcdir=.
  1170. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1171. srcdir=.
  1172. fi
  1173. # Remove unnecessary trailing slashes from srcdir.
  1174. # Double slashes in file names in object file debugging info
  1175. # mess up M-x gdb in Emacs.
  1176. case $srcdir in
  1177. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1178. esac
  1179. for ac_var in $ac_precious_vars; do
  1180. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1181. eval ac_env_${ac_var}_value=\$${ac_var}
  1182. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1183. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1184. done
  1185. #
  1186. # Report the --help message.
  1187. #
  1188. if test "$ac_init_help" = "long"; then
  1189. # Omit some internal or obsolete options to make the list less imposing.
  1190. # This message is too long to be a string in the A/UX 3.1 sh.
  1191. cat <<_ACEOF
  1192. \`configure' configures libcsv 3.0.3 to adapt to many kinds of systems.
  1193. Usage: $0 [OPTION]... [VAR=VALUE]...
  1194. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1195. VAR=VALUE. See below for descriptions of some of the useful variables.
  1196. Defaults for the options are specified in brackets.
  1197. Configuration:
  1198. -h, --help display this help and exit
  1199. --help=short display options specific to this package
  1200. --help=recursive display the short help of all the included packages
  1201. -V, --version display version information and exit
  1202. -q, --quiet, --silent do not print \`checking ...' messages
  1203. --cache-file=FILE cache test results in FILE [disabled]
  1204. -C, --config-cache alias for \`--cache-file=config.cache'
  1205. -n, --no-create do not create output files
  1206. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1207. Installation directories:
  1208. --prefix=PREFIX install architecture-independent files in PREFIX
  1209. [$ac_default_prefix]
  1210. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1211. [PREFIX]
  1212. By default, \`make install' will install all the files in
  1213. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1214. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1215. for instance \`--prefix=\$HOME'.
  1216. For better control, use the options below.
  1217. Fine tuning of the installation directories:
  1218. --bindir=DIR user executables [EPREFIX/bin]
  1219. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1220. --libexecdir=DIR program executables [EPREFIX/libexec]
  1221. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1222. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1223. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1224. --libdir=DIR object code libraries [EPREFIX/lib]
  1225. --includedir=DIR C header files [PREFIX/include]
  1226. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1227. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1228. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1229. --infodir=DIR info documentation [DATAROOTDIR/info]
  1230. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1231. --mandir=DIR man documentation [DATAROOTDIR/man]
  1232. --docdir=DIR documentation root [DATAROOTDIR/doc/libcsv]
  1233. --htmldir=DIR html documentation [DOCDIR]
  1234. --dvidir=DIR dvi documentation [DOCDIR]
  1235. --pdfdir=DIR pdf documentation [DOCDIR]
  1236. --psdir=DIR ps documentation [DOCDIR]
  1237. _ACEOF
  1238. cat <<\_ACEOF
  1239. Program names:
  1240. --program-prefix=PREFIX prepend PREFIX to installed program names
  1241. --program-suffix=SUFFIX append SUFFIX to installed program names
  1242. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1243. System types:
  1244. --build=BUILD configure for building on BUILD [guessed]
  1245. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1246. _ACEOF
  1247. fi
  1248. if test -n "$ac_init_help"; then
  1249. case $ac_init_help in
  1250. short | recursive ) echo "Configuration of libcsv 3.0.3:";;
  1251. esac
  1252. cat <<\_ACEOF
  1253. Optional Features:
  1254. --disable-option-checking ignore unrecognized --enable/--with options
  1255. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1256. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1257. --enable-silent-rules less verbose build output (undo: "make V=1")
  1258. --disable-silent-rules verbose build output (undo: "make V=0")
  1259. --enable-dependency-tracking
  1260. do not reject slow dependency extractors
  1261. --disable-dependency-tracking
  1262. speeds up one-time build
  1263. --enable-shared[=PKGS] build shared libraries [default=yes]
  1264. --enable-static[=PKGS] build static libraries [default=yes]
  1265. --enable-fast-install[=PKGS]
  1266. optimize for fast installation [default=yes]
  1267. --disable-libtool-lock avoid locking (might break parallel builds)
  1268. Optional Packages:
  1269. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1270. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1271. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1272. both]
  1273. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1274. --with-sysroot=DIR Search for dependent libraries within DIR
  1275. (or the compiler's sysroot if not specified).
  1276. Some influential environment variables:
  1277. CC C compiler command
  1278. CFLAGS C compiler flags
  1279. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1280. nonstandard directory <lib dir>
  1281. LIBS libraries to pass to the linker, e.g. -l<library>
  1282. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1283. you have headers in a nonstandard directory <include dir>
  1284. CPP C preprocessor
  1285. Use these variables to override the choices made by `configure' or to help
  1286. it to find libraries and programs with nonstandard names/locations.
  1287. Report bugs to <rgamble99@gmail.com>.
  1288. libcsv home page: <https://github.com/rgamble/libcsv>.
  1289. _ACEOF
  1290. ac_status=$?
  1291. fi
  1292. if test "$ac_init_help" = "recursive"; then
  1293. # If there are subdirs, report their specific --help.
  1294. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1295. test -d "$ac_dir" ||
  1296. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1297. continue
  1298. ac_builddir=.
  1299. case "$ac_dir" in
  1300. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1301. *)
  1302. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1303. # A ".." for each directory in $ac_dir_suffix.
  1304. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1305. case $ac_top_builddir_sub in
  1306. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1307. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1308. esac ;;
  1309. esac
  1310. ac_abs_top_builddir=$ac_pwd
  1311. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1312. # for backward compatibility:
  1313. ac_top_builddir=$ac_top_build_prefix
  1314. case $srcdir in
  1315. .) # We are building in place.
  1316. ac_srcdir=.
  1317. ac_top_srcdir=$ac_top_builddir_sub
  1318. ac_abs_top_srcdir=$ac_pwd ;;
  1319. [\\/]* | ?:[\\/]* ) # Absolute name.
  1320. ac_srcdir=$srcdir$ac_dir_suffix;
  1321. ac_top_srcdir=$srcdir
  1322. ac_abs_top_srcdir=$srcdir ;;
  1323. *) # Relative name.
  1324. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1325. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1326. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1327. esac
  1328. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1329. cd "$ac_dir" || { ac_status=$?; continue; }
  1330. # Check for guested configure.
  1331. if test -f "$ac_srcdir/configure.gnu"; then
  1332. echo &&
  1333. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1334. elif test -f "$ac_srcdir/configure"; then
  1335. echo &&
  1336. $SHELL "$ac_srcdir/configure" --help=recursive
  1337. else
  1338. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1339. fi || ac_status=$?
  1340. cd "$ac_pwd" || { ac_status=$?; break; }
  1341. done
  1342. fi
  1343. test -n "$ac_init_help" && exit $ac_status
  1344. if $ac_init_version; then
  1345. cat <<\_ACEOF
  1346. libcsv configure 3.0.3
  1347. generated by GNU Autoconf 2.69
  1348. Copyright (C) 2012 Free Software Foundation, Inc.
  1349. This configure script is free software; the Free Software Foundation
  1350. gives unlimited permission to copy, distribute and modify it.
  1351. _ACEOF
  1352. exit
  1353. fi
  1354. ## ------------------------ ##
  1355. ## Autoconf initialization. ##
  1356. ## ------------------------ ##
  1357. # ac_fn_c_try_compile LINENO
  1358. # --------------------------
  1359. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1360. ac_fn_c_try_compile ()
  1361. {
  1362. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1363. rm -f conftest.$ac_objext
  1364. if { { ac_try="$ac_compile"
  1365. case "(($ac_try" in
  1366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1367. *) ac_try_echo=$ac_try;;
  1368. esac
  1369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1370. $as_echo "$ac_try_echo"; } >&5
  1371. (eval "$ac_compile") 2>conftest.err
  1372. ac_status=$?
  1373. if test -s conftest.err; then
  1374. grep -v '^ *+' conftest.err >conftest.er1
  1375. cat conftest.er1 >&5
  1376. mv -f conftest.er1 conftest.err
  1377. fi
  1378. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1379. test $ac_status = 0; } && {
  1380. test -z "$ac_c_werror_flag" ||
  1381. test ! -s conftest.err
  1382. } && test -s conftest.$ac_objext; then :
  1383. ac_retval=0
  1384. else
  1385. $as_echo "$as_me: failed program was:" >&5
  1386. sed 's/^/| /' conftest.$ac_ext >&5
  1387. ac_retval=1
  1388. fi
  1389. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1390. as_fn_set_status $ac_retval
  1391. } # ac_fn_c_try_compile
  1392. # ac_fn_c_try_link LINENO
  1393. # -----------------------
  1394. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1395. ac_fn_c_try_link ()
  1396. {
  1397. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1398. rm -f conftest.$ac_objext conftest$ac_exeext
  1399. if { { ac_try="$ac_link"
  1400. case "(($ac_try" in
  1401. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1402. *) ac_try_echo=$ac_try;;
  1403. esac
  1404. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1405. $as_echo "$ac_try_echo"; } >&5
  1406. (eval "$ac_link") 2>conftest.err
  1407. ac_status=$?
  1408. if test -s conftest.err; then
  1409. grep -v '^ *+' conftest.err >conftest.er1
  1410. cat conftest.er1 >&5
  1411. mv -f conftest.er1 conftest.err
  1412. fi
  1413. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1414. test $ac_status = 0; } && {
  1415. test -z "$ac_c_werror_flag" ||
  1416. test ! -s conftest.err
  1417. } && test -s conftest$ac_exeext && {
  1418. test "$cross_compiling" = yes ||
  1419. test -x conftest$ac_exeext
  1420. }; then :
  1421. ac_retval=0
  1422. else
  1423. $as_echo "$as_me: failed program was:" >&5
  1424. sed 's/^/| /' conftest.$ac_ext >&5
  1425. ac_retval=1
  1426. fi
  1427. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1428. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1429. # interfere with the next link command; also delete a directory that is
  1430. # left behind by Apple's compiler. We do this before executing the actions.
  1431. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1432. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1433. as_fn_set_status $ac_retval
  1434. } # ac_fn_c_try_link
  1435. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1436. # -------------------------------------------------------
  1437. # Tests whether HEADER exists and can be compiled using the include files in
  1438. # INCLUDES, setting the cache variable VAR accordingly.
  1439. ac_fn_c_check_header_compile ()
  1440. {
  1441. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1443. $as_echo_n "checking for $2... " >&6; }
  1444. if eval \${$3+:} false; then :
  1445. $as_echo_n "(cached) " >&6
  1446. else
  1447. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1448. /* end confdefs.h. */
  1449. $4
  1450. #include <$2>
  1451. _ACEOF
  1452. if ac_fn_c_try_compile "$LINENO"; then :
  1453. eval "$3=yes"
  1454. else
  1455. eval "$3=no"
  1456. fi
  1457. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1458. fi
  1459. eval ac_res=\$$3
  1460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1461. $as_echo "$ac_res" >&6; }
  1462. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1463. } # ac_fn_c_check_header_compile
  1464. # ac_fn_c_try_cpp LINENO
  1465. # ----------------------
  1466. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1467. ac_fn_c_try_cpp ()
  1468. {
  1469. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1470. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1471. case "(($ac_try" in
  1472. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1473. *) ac_try_echo=$ac_try;;
  1474. esac
  1475. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1476. $as_echo "$ac_try_echo"; } >&5
  1477. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1478. ac_status=$?
  1479. if test -s conftest.err; then
  1480. grep -v '^ *+' conftest.err >conftest.er1
  1481. cat conftest.er1 >&5
  1482. mv -f conftest.er1 conftest.err
  1483. fi
  1484. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1485. test $ac_status = 0; } > conftest.i && {
  1486. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1487. test ! -s conftest.err
  1488. }; then :
  1489. ac_retval=0
  1490. else
  1491. $as_echo "$as_me: failed program was:" >&5
  1492. sed 's/^/| /' conftest.$ac_ext >&5
  1493. ac_retval=1
  1494. fi
  1495. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1496. as_fn_set_status $ac_retval
  1497. } # ac_fn_c_try_cpp
  1498. # ac_fn_c_try_run LINENO
  1499. # ----------------------
  1500. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1501. # that executables *can* be run.
  1502. ac_fn_c_try_run ()
  1503. {
  1504. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1505. if { { ac_try="$ac_link"
  1506. case "(($ac_try" in
  1507. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1508. *) ac_try_echo=$ac_try;;
  1509. esac
  1510. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1511. $as_echo "$ac_try_echo"; } >&5
  1512. (eval "$ac_link") 2>&5
  1513. ac_status=$?
  1514. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1515. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1516. { { case "(($ac_try" in
  1517. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1518. *) ac_try_echo=$ac_try;;
  1519. esac
  1520. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1521. $as_echo "$ac_try_echo"; } >&5
  1522. (eval "$ac_try") 2>&5
  1523. ac_status=$?
  1524. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1525. test $ac_status = 0; }; }; then :
  1526. ac_retval=0
  1527. else
  1528. $as_echo "$as_me: program exited with status $ac_status" >&5
  1529. $as_echo "$as_me: failed program was:" >&5
  1530. sed 's/^/| /' conftest.$ac_ext >&5
  1531. ac_retval=$ac_status
  1532. fi
  1533. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1534. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1535. as_fn_set_status $ac_retval
  1536. } # ac_fn_c_try_run
  1537. # ac_fn_c_check_func LINENO FUNC VAR
  1538. # ----------------------------------
  1539. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1540. ac_fn_c_check_func ()
  1541. {
  1542. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1543. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1544. $as_echo_n "checking for $2... " >&6; }
  1545. if eval \${$3+:} false; then :
  1546. $as_echo_n "(cached) " >&6
  1547. else
  1548. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1549. /* end confdefs.h. */
  1550. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1551. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1552. #define $2 innocuous_$2
  1553. /* System header to define __stub macros and hopefully few prototypes,
  1554. which can conflict with char $2 (); below.
  1555. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1556. <limits.h> exists even on freestanding compilers. */
  1557. #ifdef __STDC__
  1558. # include <limits.h>
  1559. #else
  1560. # include <assert.h>
  1561. #endif
  1562. #undef $2
  1563. /* Override any GCC internal prototype to avoid an error.
  1564. Use char because int might match the return type of a GCC
  1565. builtin and then its argument prototype would still apply. */
  1566. #ifdef __cplusplus
  1567. extern "C"
  1568. #endif
  1569. char $2 ();
  1570. /* The GNU C library defines this for functions which it implements
  1571. to always fail with ENOSYS. Some functions are actually named
  1572. something starting with __ and the normal name is an alias. */
  1573. #if defined __stub_$2 || defined __stub___$2
  1574. choke me
  1575. #endif
  1576. int
  1577. main ()
  1578. {
  1579. return $2 ();
  1580. ;
  1581. return 0;
  1582. }
  1583. _ACEOF
  1584. if ac_fn_c_try_link "$LINENO"; then :
  1585. eval "$3=yes"
  1586. else
  1587. eval "$3=no"
  1588. fi
  1589. rm -f core conftest.err conftest.$ac_objext \
  1590. conftest$ac_exeext conftest.$ac_ext
  1591. fi
  1592. eval ac_res=\$$3
  1593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1594. $as_echo "$ac_res" >&6; }
  1595. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1596. } # ac_fn_c_check_func
  1597. cat >config.log <<_ACEOF
  1598. This file contains any messages produced by compilers while
  1599. running configure, to aid debugging if configure makes a mistake.
  1600. It was created by libcsv $as_me 3.0.3, which was
  1601. generated by GNU Autoconf 2.69. Invocation command line was
  1602. $ $0 $@
  1603. _ACEOF
  1604. exec 5>>config.log
  1605. {
  1606. cat <<_ASUNAME
  1607. ## --------- ##
  1608. ## Platform. ##
  1609. ## --------- ##
  1610. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1611. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1612. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1613. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1614. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1615. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1616. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1617. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1618. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1619. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1620. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1621. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1622. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1623. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1624. _ASUNAME
  1625. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1626. for as_dir in $PATH
  1627. do
  1628. IFS=$as_save_IFS
  1629. test -z "$as_dir" && as_dir=.
  1630. $as_echo "PATH: $as_dir"
  1631. done
  1632. IFS=$as_save_IFS
  1633. } >&5
  1634. cat >&5 <<_ACEOF
  1635. ## ----------- ##
  1636. ## Core tests. ##
  1637. ## ----------- ##
  1638. _ACEOF
  1639. # Keep a trace of the command line.
  1640. # Strip out --no-create and --no-recursion so they do not pile up.
  1641. # Strip out --silent because we don't want to record it for future runs.
  1642. # Also quote any args containing shell meta-characters.
  1643. # Make two passes to allow for proper duplicate-argument suppression.
  1644. ac_configure_args=
  1645. ac_configure_args0=
  1646. ac_configure_args1=
  1647. ac_must_keep_next=false
  1648. for ac_pass in 1 2
  1649. do
  1650. for ac_arg
  1651. do
  1652. case $ac_arg in
  1653. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1654. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1655. | -silent | --silent | --silen | --sile | --sil)
  1656. continue ;;
  1657. *\'*)
  1658. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1659. esac
  1660. case $ac_pass in
  1661. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1662. 2)
  1663. as_fn_append ac_configure_args1 " '$ac_arg'"
  1664. if test $ac_must_keep_next = true; then
  1665. ac_must_keep_next=false # Got value, back to normal.
  1666. else
  1667. case $ac_arg in
  1668. *=* | --config-cache | -C | -disable-* | --disable-* \
  1669. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1670. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1671. | -with-* | --with-* | -without-* | --without-* | --x)
  1672. case "$ac_configure_args0 " in
  1673. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1674. esac
  1675. ;;
  1676. -* ) ac_must_keep_next=true ;;
  1677. esac
  1678. fi
  1679. as_fn_append ac_configure_args " '$ac_arg'"
  1680. ;;
  1681. esac
  1682. done
  1683. done
  1684. { ac_configure_args0=; unset ac_configure_args0;}
  1685. { ac_configure_args1=; unset ac_configure_args1;}
  1686. # When interrupted or exit'd, cleanup temporary files, and complete
  1687. # config.log. We remove comments because anyway the quotes in there
  1688. # would cause problems or look ugly.
  1689. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1690. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1691. trap 'exit_status=$?
  1692. # Save into config.log some information that might help in debugging.
  1693. {
  1694. echo
  1695. $as_echo "## ---------------- ##
  1696. ## Cache variables. ##
  1697. ## ---------------- ##"
  1698. echo
  1699. # The following way of writing the cache mishandles newlines in values,
  1700. (
  1701. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1702. eval ac_val=\$$ac_var
  1703. case $ac_val in #(
  1704. *${as_nl}*)
  1705. case $ac_var in #(
  1706. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1707. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1708. esac
  1709. case $ac_var in #(
  1710. _ | IFS | as_nl) ;; #(
  1711. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1712. *) { eval $ac_var=; unset $ac_var;} ;;
  1713. esac ;;
  1714. esac
  1715. done
  1716. (set) 2>&1 |
  1717. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1718. *${as_nl}ac_space=\ *)
  1719. sed -n \
  1720. "s/'\''/'\''\\\\'\'''\''/g;
  1721. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1722. ;; #(
  1723. *)
  1724. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1725. ;;
  1726. esac |
  1727. sort
  1728. )
  1729. echo
  1730. $as_echo "## ----------------- ##
  1731. ## Output variables. ##
  1732. ## ----------------- ##"
  1733. echo
  1734. for ac_var in $ac_subst_vars
  1735. do
  1736. eval ac_val=\$$ac_var
  1737. case $ac_val in
  1738. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1739. esac
  1740. $as_echo "$ac_var='\''$ac_val'\''"
  1741. done | sort
  1742. echo
  1743. if test -n "$ac_subst_files"; then
  1744. $as_echo "## ------------------- ##
  1745. ## File substitutions. ##
  1746. ## ------------------- ##"
  1747. echo
  1748. for ac_var in $ac_subst_files
  1749. do
  1750. eval ac_val=\$$ac_var
  1751. case $ac_val in
  1752. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1753. esac
  1754. $as_echo "$ac_var='\''$ac_val'\''"
  1755. done | sort
  1756. echo
  1757. fi
  1758. if test -s confdefs.h; then
  1759. $as_echo "## ----------- ##
  1760. ## confdefs.h. ##
  1761. ## ----------- ##"
  1762. echo
  1763. cat confdefs.h
  1764. echo
  1765. fi
  1766. test "$ac_signal" != 0 &&
  1767. $as_echo "$as_me: caught signal $ac_signal"
  1768. $as_echo "$as_me: exit $exit_status"
  1769. } >&5
  1770. rm -f core *.core core.conftest.* &&
  1771. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1772. exit $exit_status
  1773. ' 0
  1774. for ac_signal in 1 2 13 15; do
  1775. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1776. done
  1777. ac_signal=0
  1778. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1779. rm -f -r conftest* confdefs.h
  1780. $as_echo "/* confdefs.h */" > confdefs.h
  1781. # Predefined preprocessor variables.
  1782. cat >>confdefs.h <<_ACEOF
  1783. #define PACKAGE_NAME "$PACKAGE_NAME"
  1784. _ACEOF
  1785. cat >>confdefs.h <<_ACEOF
  1786. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1787. _ACEOF
  1788. cat >>confdefs.h <<_ACEOF
  1789. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1790. _ACEOF
  1791. cat >>confdefs.h <<_ACEOF
  1792. #define PACKAGE_STRING "$PACKAGE_STRING"
  1793. _ACEOF
  1794. cat >>confdefs.h <<_ACEOF
  1795. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1796. _ACEOF
  1797. cat >>confdefs.h <<_ACEOF
  1798. #define PACKAGE_URL "$PACKAGE_URL"
  1799. _ACEOF
  1800. # Let the site file select an alternate cache file if it wants to.
  1801. # Prefer an explicitly selected file to automatically selected ones.
  1802. ac_site_file1=NONE
  1803. ac_site_file2=NONE
  1804. if test -n "$CONFIG_SITE"; then
  1805. # We do not want a PATH search for config.site.
  1806. case $CONFIG_SITE in #((
  1807. -*) ac_site_file1=./$CONFIG_SITE;;
  1808. */*) ac_site_file1=$CONFIG_SITE;;
  1809. *) ac_site_file1=./$CONFIG_SITE;;
  1810. esac
  1811. elif test "x$prefix" != xNONE; then
  1812. ac_site_file1=$prefix/share/config.site
  1813. ac_site_file2=$prefix/etc/config.site
  1814. else
  1815. ac_site_file1=$ac_default_prefix/share/config.site
  1816. ac_site_file2=$ac_default_prefix/etc/config.site
  1817. fi
  1818. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1819. do
  1820. test "x$ac_site_file" = xNONE && continue
  1821. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1822. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1823. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1824. sed 's/^/| /' "$ac_site_file" >&5
  1825. . "$ac_site_file" \
  1826. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1827. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1828. as_fn_error $? "failed to load site script $ac_site_file
  1829. See \`config.log' for more details" "$LINENO" 5; }
  1830. fi
  1831. done
  1832. if test -r "$cache_file"; then
  1833. # Some versions of bash will fail to source /dev/null (special files
  1834. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1835. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1836. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1837. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1838. case $cache_file in
  1839. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1840. *) . "./$cache_file";;
  1841. esac
  1842. fi
  1843. else
  1844. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1845. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1846. >$cache_file
  1847. fi
  1848. # Check that the precious variables saved in the cache have kept the same
  1849. # value.
  1850. ac_cache_corrupted=false
  1851. for ac_var in $ac_precious_vars; do
  1852. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1853. eval ac_new_set=\$ac_env_${ac_var}_set
  1854. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1855. eval ac_new_val=\$ac_env_${ac_var}_value
  1856. case $ac_old_set,$ac_new_set in
  1857. set,)
  1858. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1859. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1860. ac_cache_corrupted=: ;;
  1861. ,set)
  1862. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1863. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1864. ac_cache_corrupted=: ;;
  1865. ,);;
  1866. *)
  1867. if test "x$ac_old_val" != "x$ac_new_val"; then
  1868. # differences in whitespace do not lead to failure.
  1869. ac_old_val_w=`echo x $ac_old_val`
  1870. ac_new_val_w=`echo x $ac_new_val`
  1871. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1872. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1873. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1874. ac_cache_corrupted=:
  1875. else
  1876. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1877. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1878. eval $ac_var=\$ac_old_val
  1879. fi
  1880. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1881. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1882. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1883. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1884. fi;;
  1885. esac
  1886. # Pass precious variables to config.status.
  1887. if test "$ac_new_set" = set; then
  1888. case $ac_new_val in
  1889. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1890. *) ac_arg=$ac_var=$ac_new_val ;;
  1891. esac
  1892. case " $ac_configure_args " in
  1893. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1894. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1895. esac
  1896. fi
  1897. done
  1898. if $ac_cache_corrupted; then
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1900. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1901. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1902. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1903. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1904. fi
  1905. ## -------------------- ##
  1906. ## Main body of script. ##
  1907. ## -------------------- ##
  1908. ac_ext=c
  1909. ac_cpp='$CPP $CPPFLAGS'
  1910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1913. am__api_version='1.14'
  1914. ac_aux_dir=
  1915. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1916. if test -f "$ac_dir/install-sh"; then
  1917. ac_aux_dir=$ac_dir
  1918. ac_install_sh="$ac_aux_dir/install-sh -c"
  1919. break
  1920. elif test -f "$ac_dir/install.sh"; then
  1921. ac_aux_dir=$ac_dir
  1922. ac_install_sh="$ac_aux_dir/install.sh -c"
  1923. break
  1924. elif test -f "$ac_dir/shtool"; then
  1925. ac_aux_dir=$ac_dir
  1926. ac_install_sh="$ac_aux_dir/shtool install -c"
  1927. break
  1928. fi
  1929. done
  1930. if test -z "$ac_aux_dir"; then
  1931. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  1932. fi
  1933. # These three variables are undocumented and unsupported,
  1934. # and are intended to be withdrawn in a future Autoconf release.
  1935. # They can cause serious problems if a builder's source tree is in a directory
  1936. # whose full name contains unusual characters.
  1937. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1938. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1939. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1940. # Find a good install program. We prefer a C program (faster),
  1941. # so one script is as good as another. But avoid the broken or
  1942. # incompatible versions:
  1943. # SysV /etc/install, /usr/sbin/install
  1944. # SunOS /usr/etc/install
  1945. # IRIX /sbin/install
  1946. # AIX /bin/install
  1947. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1948. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1949. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1950. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1951. # OS/2's system install, which has a completely different semantic
  1952. # ./install, which can be erroneously created by make from ./install.sh.
  1953. # Reject install programs that cannot install multiple files.
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  1955. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  1956. if test -z "$INSTALL"; then
  1957. if ${ac_cv_path_install+:} false; then :
  1958. $as_echo_n "(cached) " >&6
  1959. else
  1960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1961. for as_dir in $PATH
  1962. do
  1963. IFS=$as_save_IFS
  1964. test -z "$as_dir" && as_dir=.
  1965. # Account for people who put trailing slashes in PATH elements.
  1966. case $as_dir/ in #((
  1967. ./ | .// | /[cC]/* | \
  1968. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1969. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  1970. /usr/ucb/* ) ;;
  1971. *)
  1972. # OSF1 and SCO ODT 3.0 have their own names for install.
  1973. # Don't use installbsd from OSF since it installs stuff as root
  1974. # by default.
  1975. for ac_prog in ginstall scoinst install; do
  1976. for ac_exec_ext in '' $ac_executable_extensions; do
  1977. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  1978. if test $ac_prog = install &&
  1979. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1980. # AIX install. It has an incompatible calling convention.
  1981. :
  1982. elif test $ac_prog = install &&
  1983. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1984. # program-specific install script used by HP pwplus--don't use.
  1985. :
  1986. else
  1987. rm -rf conftest.one conftest.two conftest.dir
  1988. echo one > conftest.one
  1989. echo two > conftest.two
  1990. mkdir conftest.dir
  1991. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  1992. test -s conftest.one && test -s conftest.two &&
  1993. test -s conftest.dir/conftest.one &&
  1994. test -s conftest.dir/conftest.two
  1995. then
  1996. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1997. break 3
  1998. fi
  1999. fi
  2000. fi
  2001. done
  2002. done
  2003. ;;
  2004. esac
  2005. done
  2006. IFS=$as_save_IFS
  2007. rm -rf conftest.one conftest.two conftest.dir
  2008. fi
  2009. if test "${ac_cv_path_install+set}" = set; then
  2010. INSTALL=$ac_cv_path_install
  2011. else
  2012. # As a last resort, use the slow shell script. Don't cache a
  2013. # value for INSTALL within a source directory, because that will
  2014. # break other packages using the cache if that directory is
  2015. # removed, or if the value is a relative name.
  2016. INSTALL=$ac_install_sh
  2017. fi
  2018. fi
  2019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2020. $as_echo "$INSTALL" >&6; }
  2021. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2022. # It thinks the first close brace ends the variable substitution.
  2023. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2024. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2025. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2027. $as_echo_n "checking whether build environment is sane... " >&6; }
  2028. # Reject unsafe characters in $srcdir or the absolute working directory
  2029. # name. Accept space and tab only in the latter.
  2030. am_lf='
  2031. '
  2032. case `pwd` in
  2033. *[\\\"\#\$\&\'\`$am_lf]*)
  2034. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2035. esac
  2036. case $srcdir in
  2037. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2038. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2039. esac
  2040. # Do 'set' in a subshell so we don't clobber the current shell's
  2041. # arguments. Must try -L first in case configure is actually a
  2042. # symlink; some systems play weird games with the mod time of symlinks
  2043. # (eg FreeBSD returns the mod time of the symlink's containing
  2044. # directory).
  2045. if (
  2046. am_has_slept=no
  2047. for am_try in 1 2; do
  2048. echo "timestamp, slept: $am_has_slept" > conftest.file
  2049. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2050. if test "$*" = "X"; then
  2051. # -L didn't work.
  2052. set X `ls -t "$srcdir/configure" conftest.file`
  2053. fi
  2054. if test "$*" != "X $srcdir/configure conftest.file" \
  2055. && test "$*" != "X conftest.file $srcdir/configure"; then
  2056. # If neither matched, then we have a broken ls. This can happen
  2057. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2058. # broken ls alias from the environment. This has actually
  2059. # happened. Such a system could not be considered "sane".
  2060. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2061. alias in your environment" "$LINENO" 5
  2062. fi
  2063. if test "$2" = conftest.file || test $am_try -eq 2; then
  2064. break
  2065. fi
  2066. # Just in case.
  2067. sleep 1
  2068. am_has_slept=yes
  2069. done
  2070. test "$2" = conftest.file
  2071. )
  2072. then
  2073. # Ok.
  2074. :
  2075. else
  2076. as_fn_error $? "newly created file is older than distributed files!
  2077. Check your system clock" "$LINENO" 5
  2078. fi
  2079. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2080. $as_echo "yes" >&6; }
  2081. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2082. # generated files are strictly newer.
  2083. am_sleep_pid=
  2084. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2085. ( sleep 1 ) &
  2086. am_sleep_pid=$!
  2087. fi
  2088. rm -f conftest.file
  2089. test "$program_prefix" != NONE &&
  2090. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2091. # Use a double $ so make ignores it.
  2092. test "$program_suffix" != NONE &&
  2093. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2094. # Double any \ or $.
  2095. # By default was `s,x,x', remove it if useless.
  2096. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2097. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2098. # expand $ac_aux_dir to an absolute path
  2099. am_aux_dir=`cd $ac_aux_dir && pwd`
  2100. if test x"${MISSING+set}" != xset; then
  2101. case $am_aux_dir in
  2102. *\ * | *\ *)
  2103. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2104. *)
  2105. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2106. esac
  2107. fi
  2108. # Use eval to expand $SHELL
  2109. if eval "$MISSING --is-lightweight"; then
  2110. am_missing_run="$MISSING "
  2111. else
  2112. am_missing_run=
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2114. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2115. fi
  2116. if test x"${install_sh}" != xset; then
  2117. case $am_aux_dir in
  2118. *\ * | *\ *)
  2119. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2120. *)
  2121. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2122. esac
  2123. fi
  2124. # Installed binaries are usually stripped using 'strip' when the user
  2125. # run "make install-strip". However 'strip' might not be the right
  2126. # tool to use in cross-compilation environments, therefore Automake
  2127. # will honor the 'STRIP' environment variable to overrule this program.
  2128. if test "$cross_compiling" != no; then
  2129. if test -n "$ac_tool_prefix"; then
  2130. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2131. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2132. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2133. $as_echo_n "checking for $ac_word... " >&6; }
  2134. if ${ac_cv_prog_STRIP+:} false; then :
  2135. $as_echo_n "(cached) " >&6
  2136. else
  2137. if test -n "$STRIP"; then
  2138. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2139. else
  2140. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2141. for as_dir in $PATH
  2142. do
  2143. IFS=$as_save_IFS
  2144. test -z "$as_dir" && as_dir=.
  2145. for ac_exec_ext in '' $ac_executable_extensions; do
  2146. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2147. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2148. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2149. break 2
  2150. fi
  2151. done
  2152. done
  2153. IFS=$as_save_IFS
  2154. fi
  2155. fi
  2156. STRIP=$ac_cv_prog_STRIP
  2157. if test -n "$STRIP"; then
  2158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2159. $as_echo "$STRIP" >&6; }
  2160. else
  2161. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2162. $as_echo "no" >&6; }
  2163. fi
  2164. fi
  2165. if test -z "$ac_cv_prog_STRIP"; then
  2166. ac_ct_STRIP=$STRIP
  2167. # Extract the first word of "strip", so it can be a program name with args.
  2168. set dummy strip; ac_word=$2
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2170. $as_echo_n "checking for $ac_word... " >&6; }
  2171. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2172. $as_echo_n "(cached) " >&6
  2173. else
  2174. if test -n "$ac_ct_STRIP"; then
  2175. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2176. else
  2177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2178. for as_dir in $PATH
  2179. do
  2180. IFS=$as_save_IFS
  2181. test -z "$as_dir" && as_dir=.
  2182. for ac_exec_ext in '' $ac_executable_extensions; do
  2183. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2184. ac_cv_prog_ac_ct_STRIP="strip"
  2185. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2186. break 2
  2187. fi
  2188. done
  2189. done
  2190. IFS=$as_save_IFS
  2191. fi
  2192. fi
  2193. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2194. if test -n "$ac_ct_STRIP"; then
  2195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2196. $as_echo "$ac_ct_STRIP" >&6; }
  2197. else
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2199. $as_echo "no" >&6; }
  2200. fi
  2201. if test "x$ac_ct_STRIP" = x; then
  2202. STRIP=":"
  2203. else
  2204. case $cross_compiling:$ac_tool_warned in
  2205. yes:)
  2206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2207. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2208. ac_tool_warned=yes ;;
  2209. esac
  2210. STRIP=$ac_ct_STRIP
  2211. fi
  2212. else
  2213. STRIP="$ac_cv_prog_STRIP"
  2214. fi
  2215. fi
  2216. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2218. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2219. if test -z "$MKDIR_P"; then
  2220. if ${ac_cv_path_mkdir+:} false; then :
  2221. $as_echo_n "(cached) " >&6
  2222. else
  2223. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2224. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2225. do
  2226. IFS=$as_save_IFS
  2227. test -z "$as_dir" && as_dir=.
  2228. for ac_prog in mkdir gmkdir; do
  2229. for ac_exec_ext in '' $ac_executable_extensions; do
  2230. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2231. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2232. 'mkdir (GNU coreutils) '* | \
  2233. 'mkdir (coreutils) '* | \
  2234. 'mkdir (fileutils) '4.1*)
  2235. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2236. break 3;;
  2237. esac
  2238. done
  2239. done
  2240. done
  2241. IFS=$as_save_IFS
  2242. fi
  2243. test -d ./--version && rmdir ./--version
  2244. if test "${ac_cv_path_mkdir+set}" = set; then
  2245. MKDIR_P="$ac_cv_path_mkdir -p"
  2246. else
  2247. # As a last resort, use the slow shell script. Don't cache a
  2248. # value for MKDIR_P within a source directory, because that will
  2249. # break other packages using the cache if that directory is
  2250. # removed, or if the value is a relative name.
  2251. MKDIR_P="$ac_install_sh -d"
  2252. fi
  2253. fi
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2255. $as_echo "$MKDIR_P" >&6; }
  2256. for ac_prog in gawk mawk nawk awk
  2257. do
  2258. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2259. set dummy $ac_prog; ac_word=$2
  2260. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2261. $as_echo_n "checking for $ac_word... " >&6; }
  2262. if ${ac_cv_prog_AWK+:} false; then :
  2263. $as_echo_n "(cached) " >&6
  2264. else
  2265. if test -n "$AWK"; then
  2266. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2267. else
  2268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2269. for as_dir in $PATH
  2270. do
  2271. IFS=$as_save_IFS
  2272. test -z "$as_dir" && as_dir=.
  2273. for ac_exec_ext in '' $ac_executable_extensions; do
  2274. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2275. ac_cv_prog_AWK="$ac_prog"
  2276. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2277. break 2
  2278. fi
  2279. done
  2280. done
  2281. IFS=$as_save_IFS
  2282. fi
  2283. fi
  2284. AWK=$ac_cv_prog_AWK
  2285. if test -n "$AWK"; then
  2286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2287. $as_echo "$AWK" >&6; }
  2288. else
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2290. $as_echo "no" >&6; }
  2291. fi
  2292. test -n "$AWK" && break
  2293. done
  2294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2295. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2296. set x ${MAKE-make}
  2297. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2298. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2299. $as_echo_n "(cached) " >&6
  2300. else
  2301. cat >conftest.make <<\_ACEOF
  2302. SHELL = /bin/sh
  2303. all:
  2304. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2305. _ACEOF
  2306. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2307. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2308. *@@@%%%=?*=@@@%%%*)
  2309. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2310. *)
  2311. eval ac_cv_prog_make_${ac_make}_set=no;;
  2312. esac
  2313. rm -f conftest.make
  2314. fi
  2315. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2317. $as_echo "yes" >&6; }
  2318. SET_MAKE=
  2319. else
  2320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2321. $as_echo "no" >&6; }
  2322. SET_MAKE="MAKE=${MAKE-make}"
  2323. fi
  2324. rm -rf .tst 2>/dev/null
  2325. mkdir .tst 2>/dev/null
  2326. if test -d .tst; then
  2327. am__leading_dot=.
  2328. else
  2329. am__leading_dot=_
  2330. fi
  2331. rmdir .tst 2>/dev/null
  2332. # Check whether --enable-silent-rules was given.
  2333. if test "${enable_silent_rules+set}" = set; then :
  2334. enableval=$enable_silent_rules;
  2335. fi
  2336. case $enable_silent_rules in # (((
  2337. yes) AM_DEFAULT_VERBOSITY=0;;
  2338. no) AM_DEFAULT_VERBOSITY=1;;
  2339. *) AM_DEFAULT_VERBOSITY=1;;
  2340. esac
  2341. am_make=${MAKE-make}
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2343. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2344. if ${am_cv_make_support_nested_variables+:} false; then :
  2345. $as_echo_n "(cached) " >&6
  2346. else
  2347. if $as_echo 'TRUE=$(BAR$(V))
  2348. BAR0=false
  2349. BAR1=true
  2350. V=1
  2351. am__doit:
  2352. @$(TRUE)
  2353. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2354. am_cv_make_support_nested_variables=yes
  2355. else
  2356. am_cv_make_support_nested_variables=no
  2357. fi
  2358. fi
  2359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2360. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2361. if test $am_cv_make_support_nested_variables = yes; then
  2362. AM_V='$(V)'
  2363. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2364. else
  2365. AM_V=$AM_DEFAULT_VERBOSITY
  2366. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2367. fi
  2368. AM_BACKSLASH='\'
  2369. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2370. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2371. # is not polluted with repeated "-I."
  2372. am__isrc=' -I$(srcdir)'
  2373. # test to see if srcdir already configured
  2374. if test -f $srcdir/config.status; then
  2375. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2376. fi
  2377. fi
  2378. # test whether we have cygpath
  2379. if test -z "$CYGPATH_W"; then
  2380. if (cygpath --version) >/dev/null 2>/dev/null; then
  2381. CYGPATH_W='cygpath -w'
  2382. else
  2383. CYGPATH_W=echo
  2384. fi
  2385. fi
  2386. # Define the identity of the package.
  2387. PACKAGE='libcsv'
  2388. VERSION='3.0.3'
  2389. cat >>confdefs.h <<_ACEOF
  2390. #define PACKAGE "$PACKAGE"
  2391. _ACEOF
  2392. cat >>confdefs.h <<_ACEOF
  2393. #define VERSION "$VERSION"
  2394. _ACEOF
  2395. # Some tools Automake needs.
  2396. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2397. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2398. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2399. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2400. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2401. # For better backward compatibility. To be removed once Automake 1.9.x
  2402. # dies out for good. For more background, see:
  2403. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2404. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2405. mkdir_p='$(MKDIR_P)'
  2406. # We need awk for the "check" target. The system "awk" is bad on
  2407. # some platforms.
  2408. # Always define AMTAR for backward compatibility. Yes, it's still used
  2409. # in the wild :-( We should find a proper way to deprecate it ...
  2410. AMTAR='$${TAR-tar}'
  2411. # We'll loop over all known methods to create a tar archive until one works.
  2412. _am_tools='gnutar pax cpio none'
  2413. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2414. # POSIX will say in a future version that running "rm -f" with no argument
  2415. # is OK; and we want to be able to make that assumption in our Makefile
  2416. # recipes. So use an aggressive probe to check that the usage we want is
  2417. # actually supported "in the wild" to an acceptable degree.
  2418. # See automake bug#10828.
  2419. # To make any issue more visible, cause the running configure to be aborted
  2420. # by default if the 'rm' program in use doesn't match our expectations; the
  2421. # user can still override this though.
  2422. if rm -f && rm -fr && rm -rf; then : OK; else
  2423. cat >&2 <<'END'
  2424. Oops!
  2425. Your 'rm' program seems unable to run without file operands specified
  2426. on the command line, even when the '-f' option is present. This is contrary
  2427. to the behaviour of most rm programs out there, and not conforming with
  2428. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2429. Please tell bug-automake@gnu.org about your system, including the value
  2430. of your $PATH and any error possibly output before this message. This
  2431. can help us improve future automake versions.
  2432. END
  2433. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2434. echo 'Configuration will proceed anyway, since you have set the' >&2
  2435. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2436. echo >&2
  2437. else
  2438. cat >&2 <<'END'
  2439. Aborting the configuration process, to ensure you take notice of the issue.
  2440. You can download and install GNU coreutils to get an 'rm' implementation
  2441. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2442. If you want to complete the configuration process using your problematic
  2443. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2444. to "yes", and re-run configure.
  2445. END
  2446. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2447. fi
  2448. fi
  2449. ac_ext=c
  2450. ac_cpp='$CPP $CPPFLAGS'
  2451. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2452. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2453. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2454. if test -n "$ac_tool_prefix"; then
  2455. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2456. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2457. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2458. $as_echo_n "checking for $ac_word... " >&6; }
  2459. if ${ac_cv_prog_CC+:} false; then :
  2460. $as_echo_n "(cached) " >&6
  2461. else
  2462. if test -n "$CC"; then
  2463. ac_cv_prog_CC="$CC" # Let the user override the test.
  2464. else
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. for ac_exec_ext in '' $ac_executable_extensions; do
  2471. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2472. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2473. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2474. break 2
  2475. fi
  2476. done
  2477. done
  2478. IFS=$as_save_IFS
  2479. fi
  2480. fi
  2481. CC=$ac_cv_prog_CC
  2482. if test -n "$CC"; then
  2483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2484. $as_echo "$CC" >&6; }
  2485. else
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2487. $as_echo "no" >&6; }
  2488. fi
  2489. fi
  2490. if test -z "$ac_cv_prog_CC"; then
  2491. ac_ct_CC=$CC
  2492. # Extract the first word of "gcc", so it can be a program name with args.
  2493. set dummy gcc; ac_word=$2
  2494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2495. $as_echo_n "checking for $ac_word... " >&6; }
  2496. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2497. $as_echo_n "(cached) " >&6
  2498. else
  2499. if test -n "$ac_ct_CC"; then
  2500. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2501. else
  2502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2503. for as_dir in $PATH
  2504. do
  2505. IFS=$as_save_IFS
  2506. test -z "$as_dir" && as_dir=.
  2507. for ac_exec_ext in '' $ac_executable_extensions; do
  2508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2509. ac_cv_prog_ac_ct_CC="gcc"
  2510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2511. break 2
  2512. fi
  2513. done
  2514. done
  2515. IFS=$as_save_IFS
  2516. fi
  2517. fi
  2518. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2519. if test -n "$ac_ct_CC"; then
  2520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2521. $as_echo "$ac_ct_CC" >&6; }
  2522. else
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2524. $as_echo "no" >&6; }
  2525. fi
  2526. if test "x$ac_ct_CC" = x; then
  2527. CC=""
  2528. else
  2529. case $cross_compiling:$ac_tool_warned in
  2530. yes:)
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2532. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2533. ac_tool_warned=yes ;;
  2534. esac
  2535. CC=$ac_ct_CC
  2536. fi
  2537. else
  2538. CC="$ac_cv_prog_CC"
  2539. fi
  2540. if test -z "$CC"; then
  2541. if test -n "$ac_tool_prefix"; then
  2542. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2543. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2545. $as_echo_n "checking for $ac_word... " >&6; }
  2546. if ${ac_cv_prog_CC+:} false; then :
  2547. $as_echo_n "(cached) " >&6
  2548. else
  2549. if test -n "$CC"; then
  2550. ac_cv_prog_CC="$CC" # Let the user override the test.
  2551. else
  2552. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2553. for as_dir in $PATH
  2554. do
  2555. IFS=$as_save_IFS
  2556. test -z "$as_dir" && as_dir=.
  2557. for ac_exec_ext in '' $ac_executable_extensions; do
  2558. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2559. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2560. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2561. break 2
  2562. fi
  2563. done
  2564. done
  2565. IFS=$as_save_IFS
  2566. fi
  2567. fi
  2568. CC=$ac_cv_prog_CC
  2569. if test -n "$CC"; then
  2570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2571. $as_echo "$CC" >&6; }
  2572. else
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2574. $as_echo "no" >&6; }
  2575. fi
  2576. fi
  2577. fi
  2578. if test -z "$CC"; then
  2579. # Extract the first word of "cc", so it can be a program name with args.
  2580. set dummy cc; ac_word=$2
  2581. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2582. $as_echo_n "checking for $ac_word... " >&6; }
  2583. if ${ac_cv_prog_CC+:} false; then :
  2584. $as_echo_n "(cached) " >&6
  2585. else
  2586. if test -n "$CC"; then
  2587. ac_cv_prog_CC="$CC" # Let the user override the test.
  2588. else
  2589. ac_prog_rejected=no
  2590. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2591. for as_dir in $PATH
  2592. do
  2593. IFS=$as_save_IFS
  2594. test -z "$as_dir" && as_dir=.
  2595. for ac_exec_ext in '' $ac_executable_extensions; do
  2596. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2597. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2598. ac_prog_rejected=yes
  2599. continue
  2600. fi
  2601. ac_cv_prog_CC="cc"
  2602. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2603. break 2
  2604. fi
  2605. done
  2606. done
  2607. IFS=$as_save_IFS
  2608. if test $ac_prog_rejected = yes; then
  2609. # We found a bogon in the path, so make sure we never use it.
  2610. set dummy $ac_cv_prog_CC
  2611. shift
  2612. if test $# != 0; then
  2613. # We chose a different compiler from the bogus one.
  2614. # However, it has the same basename, so the bogon will be chosen
  2615. # first if we set CC to just the basename; use the full file name.
  2616. shift
  2617. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2618. fi
  2619. fi
  2620. fi
  2621. fi
  2622. CC=$ac_cv_prog_CC
  2623. if test -n "$CC"; then
  2624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2625. $as_echo "$CC" >&6; }
  2626. else
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2628. $as_echo "no" >&6; }
  2629. fi
  2630. fi
  2631. if test -z "$CC"; then
  2632. if test -n "$ac_tool_prefix"; then
  2633. for ac_prog in cl.exe
  2634. do
  2635. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2636. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2637. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2638. $as_echo_n "checking for $ac_word... " >&6; }
  2639. if ${ac_cv_prog_CC+:} false; then :
  2640. $as_echo_n "(cached) " >&6
  2641. else
  2642. if test -n "$CC"; then
  2643. ac_cv_prog_CC="$CC" # Let the user override the test.
  2644. else
  2645. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2646. for as_dir in $PATH
  2647. do
  2648. IFS=$as_save_IFS
  2649. test -z "$as_dir" && as_dir=.
  2650. for ac_exec_ext in '' $ac_executable_extensions; do
  2651. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2652. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2653. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2654. break 2
  2655. fi
  2656. done
  2657. done
  2658. IFS=$as_save_IFS
  2659. fi
  2660. fi
  2661. CC=$ac_cv_prog_CC
  2662. if test -n "$CC"; then
  2663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2664. $as_echo "$CC" >&6; }
  2665. else
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2667. $as_echo "no" >&6; }
  2668. fi
  2669. test -n "$CC" && break
  2670. done
  2671. fi
  2672. if test -z "$CC"; then
  2673. ac_ct_CC=$CC
  2674. for ac_prog in cl.exe
  2675. do
  2676. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2677. set dummy $ac_prog; ac_word=$2
  2678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2679. $as_echo_n "checking for $ac_word... " >&6; }
  2680. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2681. $as_echo_n "(cached) " >&6
  2682. else
  2683. if test -n "$ac_ct_CC"; then
  2684. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2685. else
  2686. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2687. for as_dir in $PATH
  2688. do
  2689. IFS=$as_save_IFS
  2690. test -z "$as_dir" && as_dir=.
  2691. for ac_exec_ext in '' $ac_executable_extensions; do
  2692. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2693. ac_cv_prog_ac_ct_CC="$ac_prog"
  2694. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2695. break 2
  2696. fi
  2697. done
  2698. done
  2699. IFS=$as_save_IFS
  2700. fi
  2701. fi
  2702. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2703. if test -n "$ac_ct_CC"; then
  2704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2705. $as_echo "$ac_ct_CC" >&6; }
  2706. else
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2708. $as_echo "no" >&6; }
  2709. fi
  2710. test -n "$ac_ct_CC" && break
  2711. done
  2712. if test "x$ac_ct_CC" = x; then
  2713. CC=""
  2714. else
  2715. case $cross_compiling:$ac_tool_warned in
  2716. yes:)
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2718. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2719. ac_tool_warned=yes ;;
  2720. esac
  2721. CC=$ac_ct_CC
  2722. fi
  2723. fi
  2724. fi
  2725. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2726. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2727. as_fn_error $? "no acceptable C compiler found in \$PATH
  2728. See \`config.log' for more details" "$LINENO" 5; }
  2729. # Provide some information about the compiler.
  2730. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2731. set X $ac_compile
  2732. ac_compiler=$2
  2733. for ac_option in --version -v -V -qversion; do
  2734. { { ac_try="$ac_compiler $ac_option >&5"
  2735. case "(($ac_try" in
  2736. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2737. *) ac_try_echo=$ac_try;;
  2738. esac
  2739. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2740. $as_echo "$ac_try_echo"; } >&5
  2741. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2742. ac_status=$?
  2743. if test -s conftest.err; then
  2744. sed '10a\
  2745. ... rest of stderr output deleted ...
  2746. 10q' conftest.err >conftest.er1
  2747. cat conftest.er1 >&5
  2748. fi
  2749. rm -f conftest.er1 conftest.err
  2750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2751. test $ac_status = 0; }
  2752. done
  2753. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2754. /* end confdefs.h. */
  2755. int
  2756. main ()
  2757. {
  2758. ;
  2759. return 0;
  2760. }
  2761. _ACEOF
  2762. ac_clean_files_save=$ac_clean_files
  2763. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2764. # Try to create an executable without -o first, disregard a.out.
  2765. # It will help us diagnose broken compilers, and finding out an intuition
  2766. # of exeext.
  2767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2768. $as_echo_n "checking whether the C compiler works... " >&6; }
  2769. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2770. # The possible output files:
  2771. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2772. ac_rmfiles=
  2773. for ac_file in $ac_files
  2774. do
  2775. case $ac_file in
  2776. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2777. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2778. esac
  2779. done
  2780. rm -f $ac_rmfiles
  2781. if { { ac_try="$ac_link_default"
  2782. case "(($ac_try" in
  2783. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2784. *) ac_try_echo=$ac_try;;
  2785. esac
  2786. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2787. $as_echo "$ac_try_echo"; } >&5
  2788. (eval "$ac_link_default") 2>&5
  2789. ac_status=$?
  2790. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2791. test $ac_status = 0; }; then :
  2792. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2793. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2794. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2795. # so that the user can short-circuit this test for compilers unknown to
  2796. # Autoconf.
  2797. for ac_file in $ac_files ''
  2798. do
  2799. test -f "$ac_file" || continue
  2800. case $ac_file in
  2801. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2802. ;;
  2803. [ab].out )
  2804. # We found the default executable, but exeext='' is most
  2805. # certainly right.
  2806. break;;
  2807. *.* )
  2808. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2809. then :; else
  2810. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2811. fi
  2812. # We set ac_cv_exeext here because the later test for it is not
  2813. # safe: cross compilers may not add the suffix if given an `-o'
  2814. # argument, so we may need to know it at that point already.
  2815. # Even if this section looks crufty: it has the advantage of
  2816. # actually working.
  2817. break;;
  2818. * )
  2819. break;;
  2820. esac
  2821. done
  2822. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2823. else
  2824. ac_file=''
  2825. fi
  2826. if test -z "$ac_file"; then :
  2827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2828. $as_echo "no" >&6; }
  2829. $as_echo "$as_me: failed program was:" >&5
  2830. sed 's/^/| /' conftest.$ac_ext >&5
  2831. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2832. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2833. as_fn_error 77 "C compiler cannot create executables
  2834. See \`config.log' for more details" "$LINENO" 5; }
  2835. else
  2836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2837. $as_echo "yes" >&6; }
  2838. fi
  2839. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2840. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2842. $as_echo "$ac_file" >&6; }
  2843. ac_exeext=$ac_cv_exeext
  2844. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2845. ac_clean_files=$ac_clean_files_save
  2846. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2847. $as_echo_n "checking for suffix of executables... " >&6; }
  2848. if { { ac_try="$ac_link"
  2849. case "(($ac_try" in
  2850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2851. *) ac_try_echo=$ac_try;;
  2852. esac
  2853. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2854. $as_echo "$ac_try_echo"; } >&5
  2855. (eval "$ac_link") 2>&5
  2856. ac_status=$?
  2857. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2858. test $ac_status = 0; }; then :
  2859. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2860. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2861. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2862. # `rm'.
  2863. for ac_file in conftest.exe conftest conftest.*; do
  2864. test -f "$ac_file" || continue
  2865. case $ac_file in
  2866. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2867. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2868. break;;
  2869. * ) break;;
  2870. esac
  2871. done
  2872. else
  2873. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2874. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2875. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2876. See \`config.log' for more details" "$LINENO" 5; }
  2877. fi
  2878. rm -f conftest conftest$ac_cv_exeext
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2880. $as_echo "$ac_cv_exeext" >&6; }
  2881. rm -f conftest.$ac_ext
  2882. EXEEXT=$ac_cv_exeext
  2883. ac_exeext=$EXEEXT
  2884. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2885. /* end confdefs.h. */
  2886. #include <stdio.h>
  2887. int
  2888. main ()
  2889. {
  2890. FILE *f = fopen ("conftest.out", "w");
  2891. return ferror (f) || fclose (f) != 0;
  2892. ;
  2893. return 0;
  2894. }
  2895. _ACEOF
  2896. ac_clean_files="$ac_clean_files conftest.out"
  2897. # Check that the compiler produces executables we can run. If not, either
  2898. # the compiler is broken, or we cross compile.
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2900. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2901. if test "$cross_compiling" != yes; then
  2902. { { ac_try="$ac_link"
  2903. case "(($ac_try" in
  2904. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2905. *) ac_try_echo=$ac_try;;
  2906. esac
  2907. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2908. $as_echo "$ac_try_echo"; } >&5
  2909. (eval "$ac_link") 2>&5
  2910. ac_status=$?
  2911. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2912. test $ac_status = 0; }
  2913. if { ac_try='./conftest$ac_cv_exeext'
  2914. { { case "(($ac_try" in
  2915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2916. *) ac_try_echo=$ac_try;;
  2917. esac
  2918. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2919. $as_echo "$ac_try_echo"; } >&5
  2920. (eval "$ac_try") 2>&5
  2921. ac_status=$?
  2922. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2923. test $ac_status = 0; }; }; then
  2924. cross_compiling=no
  2925. else
  2926. if test "$cross_compiling" = maybe; then
  2927. cross_compiling=yes
  2928. else
  2929. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2930. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2931. as_fn_error $? "cannot run C compiled programs.
  2932. If you meant to cross compile, use \`--host'.
  2933. See \`config.log' for more details" "$LINENO" 5; }
  2934. fi
  2935. fi
  2936. fi
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2938. $as_echo "$cross_compiling" >&6; }
  2939. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2940. ac_clean_files=$ac_clean_files_save
  2941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2942. $as_echo_n "checking for suffix of object files... " >&6; }
  2943. if ${ac_cv_objext+:} false; then :
  2944. $as_echo_n "(cached) " >&6
  2945. else
  2946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2947. /* end confdefs.h. */
  2948. int
  2949. main ()
  2950. {
  2951. ;
  2952. return 0;
  2953. }
  2954. _ACEOF
  2955. rm -f conftest.o conftest.obj
  2956. if { { ac_try="$ac_compile"
  2957. case "(($ac_try" in
  2958. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2959. *) ac_try_echo=$ac_try;;
  2960. esac
  2961. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2962. $as_echo "$ac_try_echo"; } >&5
  2963. (eval "$ac_compile") 2>&5
  2964. ac_status=$?
  2965. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2966. test $ac_status = 0; }; then :
  2967. for ac_file in conftest.o conftest.obj conftest.*; do
  2968. test -f "$ac_file" || continue;
  2969. case $ac_file in
  2970. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2971. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2972. break;;
  2973. esac
  2974. done
  2975. else
  2976. $as_echo "$as_me: failed program was:" >&5
  2977. sed 's/^/| /' conftest.$ac_ext >&5
  2978. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2979. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2980. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2981. See \`config.log' for more details" "$LINENO" 5; }
  2982. fi
  2983. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2984. fi
  2985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2986. $as_echo "$ac_cv_objext" >&6; }
  2987. OBJEXT=$ac_cv_objext
  2988. ac_objext=$OBJEXT
  2989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2990. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2991. if ${ac_cv_c_compiler_gnu+:} false; then :
  2992. $as_echo_n "(cached) " >&6
  2993. else
  2994. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2995. /* end confdefs.h. */
  2996. int
  2997. main ()
  2998. {
  2999. #ifndef __GNUC__
  3000. choke me
  3001. #endif
  3002. ;
  3003. return 0;
  3004. }
  3005. _ACEOF
  3006. if ac_fn_c_try_compile "$LINENO"; then :
  3007. ac_compiler_gnu=yes
  3008. else
  3009. ac_compiler_gnu=no
  3010. fi
  3011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3012. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3015. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3016. if test $ac_compiler_gnu = yes; then
  3017. GCC=yes
  3018. else
  3019. GCC=
  3020. fi
  3021. ac_test_CFLAGS=${CFLAGS+set}
  3022. ac_save_CFLAGS=$CFLAGS
  3023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3024. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3025. if ${ac_cv_prog_cc_g+:} false; then :
  3026. $as_echo_n "(cached) " >&6
  3027. else
  3028. ac_save_c_werror_flag=$ac_c_werror_flag
  3029. ac_c_werror_flag=yes
  3030. ac_cv_prog_cc_g=no
  3031. CFLAGS="-g"
  3032. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3033. /* end confdefs.h. */
  3034. int
  3035. main ()
  3036. {
  3037. ;
  3038. return 0;
  3039. }
  3040. _ACEOF
  3041. if ac_fn_c_try_compile "$LINENO"; then :
  3042. ac_cv_prog_cc_g=yes
  3043. else
  3044. CFLAGS=""
  3045. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3046. /* end confdefs.h. */
  3047. int
  3048. main ()
  3049. {
  3050. ;
  3051. return 0;
  3052. }
  3053. _ACEOF
  3054. if ac_fn_c_try_compile "$LINENO"; then :
  3055. else
  3056. ac_c_werror_flag=$ac_save_c_werror_flag
  3057. CFLAGS="-g"
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. int
  3061. main ()
  3062. {
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. if ac_fn_c_try_compile "$LINENO"; then :
  3068. ac_cv_prog_cc_g=yes
  3069. fi
  3070. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3071. fi
  3072. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3073. fi
  3074. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3075. ac_c_werror_flag=$ac_save_c_werror_flag
  3076. fi
  3077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3078. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3079. if test "$ac_test_CFLAGS" = set; then
  3080. CFLAGS=$ac_save_CFLAGS
  3081. elif test $ac_cv_prog_cc_g = yes; then
  3082. if test "$GCC" = yes; then
  3083. CFLAGS="-g -O2"
  3084. else
  3085. CFLAGS="-g"
  3086. fi
  3087. else
  3088. if test "$GCC" = yes; then
  3089. CFLAGS="-O2"
  3090. else
  3091. CFLAGS=
  3092. fi
  3093. fi
  3094. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3095. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3096. if ${ac_cv_prog_cc_c89+:} false; then :
  3097. $as_echo_n "(cached) " >&6
  3098. else
  3099. ac_cv_prog_cc_c89=no
  3100. ac_save_CC=$CC
  3101. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3102. /* end confdefs.h. */
  3103. #include <stdarg.h>
  3104. #include <stdio.h>
  3105. struct stat;
  3106. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3107. struct buf { int x; };
  3108. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3109. static char *e (p, i)
  3110. char **p;
  3111. int i;
  3112. {
  3113. return p[i];
  3114. }
  3115. static char *f (char * (*g) (char **, int), char **p, ...)
  3116. {
  3117. char *s;
  3118. va_list v;
  3119. va_start (v,p);
  3120. s = g (p, va_arg (v,int));
  3121. va_end (v);
  3122. return s;
  3123. }
  3124. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3125. function prototypes and stuff, but not '\xHH' hex character constants.
  3126. These don't provoke an error unfortunately, instead are silently treated
  3127. as 'x'. The following induces an error, until -std is added to get
  3128. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3129. array size at least. It's necessary to write '\x00'==0 to get something
  3130. that's true only with -std. */
  3131. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3132. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3133. inside strings and character constants. */
  3134. #define FOO(x) 'x'
  3135. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3136. int test (int i, double x);
  3137. struct s1 {int (*f) (int a);};
  3138. struct s2 {int (*f) (double a);};
  3139. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3140. int argc;
  3141. char **argv;
  3142. int
  3143. main ()
  3144. {
  3145. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3146. ;
  3147. return 0;
  3148. }
  3149. _ACEOF
  3150. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3151. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3152. do
  3153. CC="$ac_save_CC $ac_arg"
  3154. if ac_fn_c_try_compile "$LINENO"; then :
  3155. ac_cv_prog_cc_c89=$ac_arg
  3156. fi
  3157. rm -f core conftest.err conftest.$ac_objext
  3158. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3159. done
  3160. rm -f conftest.$ac_ext
  3161. CC=$ac_save_CC
  3162. fi
  3163. # AC_CACHE_VAL
  3164. case "x$ac_cv_prog_cc_c89" in
  3165. x)
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3167. $as_echo "none needed" >&6; } ;;
  3168. xno)
  3169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3170. $as_echo "unsupported" >&6; } ;;
  3171. *)
  3172. CC="$CC $ac_cv_prog_cc_c89"
  3173. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3174. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3175. esac
  3176. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3177. fi
  3178. ac_ext=c
  3179. ac_cpp='$CPP $CPPFLAGS'
  3180. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3181. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3182. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3183. ac_ext=c
  3184. ac_cpp='$CPP $CPPFLAGS'
  3185. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3186. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3187. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3189. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3190. if ${am_cv_prog_cc_c_o+:} false; then :
  3191. $as_echo_n "(cached) " >&6
  3192. else
  3193. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3194. /* end confdefs.h. */
  3195. int
  3196. main ()
  3197. {
  3198. ;
  3199. return 0;
  3200. }
  3201. _ACEOF
  3202. # Make sure it works both with $CC and with simple cc.
  3203. # Following AC_PROG_CC_C_O, we do the test twice because some
  3204. # compilers refuse to overwrite an existing .o file with -o,
  3205. # though they will create one.
  3206. am_cv_prog_cc_c_o=yes
  3207. for am_i in 1 2; do
  3208. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3209. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3210. ac_status=$?
  3211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3212. (exit $ac_status); } \
  3213. && test -f conftest2.$ac_objext; then
  3214. : OK
  3215. else
  3216. am_cv_prog_cc_c_o=no
  3217. break
  3218. fi
  3219. done
  3220. rm -f core conftest*
  3221. unset am_i
  3222. fi
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3224. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3225. if test "$am_cv_prog_cc_c_o" != yes; then
  3226. # Losing compiler, so override with the script.
  3227. # FIXME: It is wrong to rewrite CC.
  3228. # But if we don't then we get into trouble of one sort or another.
  3229. # A longer-term fix would be to have automake use am__CC in this case,
  3230. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3231. CC="$am_aux_dir/compile $CC"
  3232. fi
  3233. ac_ext=c
  3234. ac_cpp='$CPP $CPPFLAGS'
  3235. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3236. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3237. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3238. DEPDIR="${am__leading_dot}deps"
  3239. ac_config_commands="$ac_config_commands depfiles"
  3240. am_make=${MAKE-make}
  3241. cat > confinc << 'END'
  3242. am__doit:
  3243. @echo this is the am__doit target
  3244. .PHONY: am__doit
  3245. END
  3246. # If we don't find an include directive, just comment out the code.
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3248. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3249. am__include="#"
  3250. am__quote=
  3251. _am_result=none
  3252. # First try GNU make style include.
  3253. echo "include confinc" > confmf
  3254. # Ignore all kinds of additional output from 'make'.
  3255. case `$am_make -s -f confmf 2> /dev/null` in #(
  3256. *the\ am__doit\ target*)
  3257. am__include=include
  3258. am__quote=
  3259. _am_result=GNU
  3260. ;;
  3261. esac
  3262. # Now try BSD make style include.
  3263. if test "$am__include" = "#"; then
  3264. echo '.include "confinc"' > confmf
  3265. case `$am_make -s -f confmf 2> /dev/null` in #(
  3266. *the\ am__doit\ target*)
  3267. am__include=.include
  3268. am__quote="\""
  3269. _am_result=BSD
  3270. ;;
  3271. esac
  3272. fi
  3273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3274. $as_echo "$_am_result" >&6; }
  3275. rm -f confinc confmf
  3276. # Check whether --enable-dependency-tracking was given.
  3277. if test "${enable_dependency_tracking+set}" = set; then :
  3278. enableval=$enable_dependency_tracking;
  3279. fi
  3280. if test "x$enable_dependency_tracking" != xno; then
  3281. am_depcomp="$ac_aux_dir/depcomp"
  3282. AMDEPBACKSLASH='\'
  3283. am__nodep='_no'
  3284. fi
  3285. if test "x$enable_dependency_tracking" != xno; then
  3286. AMDEP_TRUE=
  3287. AMDEP_FALSE='#'
  3288. else
  3289. AMDEP_TRUE='#'
  3290. AMDEP_FALSE=
  3291. fi
  3292. depcc="$CC" am_compiler_list=
  3293. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3294. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3295. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3296. $as_echo_n "(cached) " >&6
  3297. else
  3298. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3299. # We make a subdir and do the tests there. Otherwise we can end up
  3300. # making bogus files that we don't know about and never remove. For
  3301. # instance it was reported that on HP-UX the gcc test will end up
  3302. # making a dummy file named 'D' -- because '-MD' means "put the output
  3303. # in D".
  3304. rm -rf conftest.dir
  3305. mkdir conftest.dir
  3306. # Copy depcomp to subdir because otherwise we won't find it if we're
  3307. # using a relative directory.
  3308. cp "$am_depcomp" conftest.dir
  3309. cd conftest.dir
  3310. # We will build objects and dependencies in a subdirectory because
  3311. # it helps to detect inapplicable dependency modes. For instance
  3312. # both Tru64's cc and ICC support -MD to output dependencies as a
  3313. # side effect of compilation, but ICC will put the dependencies in
  3314. # the current directory while Tru64 will put them in the object
  3315. # directory.
  3316. mkdir sub
  3317. am_cv_CC_dependencies_compiler_type=none
  3318. if test "$am_compiler_list" = ""; then
  3319. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3320. fi
  3321. am__universal=false
  3322. case " $depcc " in #(
  3323. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3324. esac
  3325. for depmode in $am_compiler_list; do
  3326. # Setup a source with many dependencies, because some compilers
  3327. # like to wrap large dependency lists on column 80 (with \), and
  3328. # we should not choose a depcomp mode which is confused by this.
  3329. #
  3330. # We need to recreate these files for each test, as the compiler may
  3331. # overwrite some of them when testing with obscure command lines.
  3332. # This happens at least with the AIX C compiler.
  3333. : > sub/conftest.c
  3334. for i in 1 2 3 4 5 6; do
  3335. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3336. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3337. # Solaris 10 /bin/sh.
  3338. echo '/* dummy */' > sub/conftst$i.h
  3339. done
  3340. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3341. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3342. # mode. It turns out that the SunPro C++ compiler does not properly
  3343. # handle '-M -o', and we need to detect this. Also, some Intel
  3344. # versions had trouble with output in subdirs.
  3345. am__obj=sub/conftest.${OBJEXT-o}
  3346. am__minus_obj="-o $am__obj"
  3347. case $depmode in
  3348. gcc)
  3349. # This depmode causes a compiler race in universal mode.
  3350. test "$am__universal" = false || continue
  3351. ;;
  3352. nosideeffect)
  3353. # After this tag, mechanisms are not by side-effect, so they'll
  3354. # only be used when explicitly requested.
  3355. if test "x$enable_dependency_tracking" = xyes; then
  3356. continue
  3357. else
  3358. break
  3359. fi
  3360. ;;
  3361. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3362. # This compiler won't grok '-c -o', but also, the minuso test has
  3363. # not run yet. These depmodes are late enough in the game, and
  3364. # so weak that their functioning should not be impacted.
  3365. am__obj=conftest.${OBJEXT-o}
  3366. am__minus_obj=
  3367. ;;
  3368. none) break ;;
  3369. esac
  3370. if depmode=$depmode \
  3371. source=sub/conftest.c object=$am__obj \
  3372. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3373. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3374. >/dev/null 2>conftest.err &&
  3375. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3376. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3377. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3378. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3379. # icc doesn't choke on unknown options, it will just issue warnings
  3380. # or remarks (even with -Werror). So we grep stderr for any message
  3381. # that says an option was ignored or not supported.
  3382. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3383. # icc: Command line warning: ignoring option '-M'; no argument required
  3384. # The diagnosis changed in icc 8.0:
  3385. # icc: Command line remark: option '-MP' not supported
  3386. if (grep 'ignoring option' conftest.err ||
  3387. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3388. am_cv_CC_dependencies_compiler_type=$depmode
  3389. break
  3390. fi
  3391. fi
  3392. done
  3393. cd ..
  3394. rm -rf conftest.dir
  3395. else
  3396. am_cv_CC_dependencies_compiler_type=none
  3397. fi
  3398. fi
  3399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3400. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3401. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3402. if
  3403. test "x$enable_dependency_tracking" != xno \
  3404. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3405. am__fastdepCC_TRUE=
  3406. am__fastdepCC_FALSE='#'
  3407. else
  3408. am__fastdepCC_TRUE='#'
  3409. am__fastdepCC_FALSE=
  3410. fi
  3411. case `pwd` in
  3412. *\ * | *\ *)
  3413. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3414. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3415. esac
  3416. macro_version='2.4.2'
  3417. macro_revision='1.3337'
  3418. ltmain="$ac_aux_dir/ltmain.sh"
  3419. # Make sure we can run config.sub.
  3420. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3421. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3423. $as_echo_n "checking build system type... " >&6; }
  3424. if ${ac_cv_build+:} false; then :
  3425. $as_echo_n "(cached) " >&6
  3426. else
  3427. ac_build_alias=$build_alias
  3428. test "x$ac_build_alias" = x &&
  3429. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3430. test "x$ac_build_alias" = x &&
  3431. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3432. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3433. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3436. $as_echo "$ac_cv_build" >&6; }
  3437. case $ac_cv_build in
  3438. *-*-*) ;;
  3439. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3440. esac
  3441. build=$ac_cv_build
  3442. ac_save_IFS=$IFS; IFS='-'
  3443. set x $ac_cv_build
  3444. shift
  3445. build_cpu=$1
  3446. build_vendor=$2
  3447. shift; shift
  3448. # Remember, the first character of IFS is used to create $*,
  3449. # except with old shells:
  3450. build_os=$*
  3451. IFS=$ac_save_IFS
  3452. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3454. $as_echo_n "checking host system type... " >&6; }
  3455. if ${ac_cv_host+:} false; then :
  3456. $as_echo_n "(cached) " >&6
  3457. else
  3458. if test "x$host_alias" = x; then
  3459. ac_cv_host=$ac_cv_build
  3460. else
  3461. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3462. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3463. fi
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3466. $as_echo "$ac_cv_host" >&6; }
  3467. case $ac_cv_host in
  3468. *-*-*) ;;
  3469. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3470. esac
  3471. host=$ac_cv_host
  3472. ac_save_IFS=$IFS; IFS='-'
  3473. set x $ac_cv_host
  3474. shift
  3475. host_cpu=$1
  3476. host_vendor=$2
  3477. shift; shift
  3478. # Remember, the first character of IFS is used to create $*,
  3479. # except with old shells:
  3480. host_os=$*
  3481. IFS=$ac_save_IFS
  3482. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3483. # Backslashify metacharacters that are still active within
  3484. # double-quoted strings.
  3485. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3486. # Same as above, but do not quote variable references.
  3487. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3488. # Sed substitution to delay expansion of an escaped shell variable in a
  3489. # double_quote_subst'ed string.
  3490. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3491. # Sed substitution to delay expansion of an escaped single quote.
  3492. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3493. # Sed substitution to avoid accidental globbing in evaled expressions
  3494. no_glob_subst='s/\*/\\\*/g'
  3495. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3496. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3497. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3498. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3499. $as_echo_n "checking how to print strings... " >&6; }
  3500. # Test print first, because it will be a builtin if present.
  3501. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3502. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3503. ECHO='print -r --'
  3504. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3505. ECHO='printf %s\n'
  3506. else
  3507. # Use this function as a fallback that always works.
  3508. func_fallback_echo ()
  3509. {
  3510. eval 'cat <<_LTECHO_EOF
  3511. $1
  3512. _LTECHO_EOF'
  3513. }
  3514. ECHO='func_fallback_echo'
  3515. fi
  3516. # func_echo_all arg...
  3517. # Invoke $ECHO with all args, space-separated.
  3518. func_echo_all ()
  3519. {
  3520. $ECHO ""
  3521. }
  3522. case "$ECHO" in
  3523. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3524. $as_echo "printf" >&6; } ;;
  3525. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3526. $as_echo "print -r" >&6; } ;;
  3527. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3528. $as_echo "cat" >&6; } ;;
  3529. esac
  3530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3531. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3532. if ${ac_cv_path_SED+:} false; then :
  3533. $as_echo_n "(cached) " >&6
  3534. else
  3535. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3536. for ac_i in 1 2 3 4 5 6 7; do
  3537. ac_script="$ac_script$as_nl$ac_script"
  3538. done
  3539. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3540. { ac_script=; unset ac_script;}
  3541. if test -z "$SED"; then
  3542. ac_path_SED_found=false
  3543. # Loop through the user's path and test for each of PROGNAME-LIST
  3544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3545. for as_dir in $PATH
  3546. do
  3547. IFS=$as_save_IFS
  3548. test -z "$as_dir" && as_dir=.
  3549. for ac_prog in sed gsed; do
  3550. for ac_exec_ext in '' $ac_executable_extensions; do
  3551. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3552. as_fn_executable_p "$ac_path_SED" || continue
  3553. # Check for GNU ac_path_SED and select it if it is found.
  3554. # Check for GNU $ac_path_SED
  3555. case `"$ac_path_SED" --version 2>&1` in
  3556. *GNU*)
  3557. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3558. *)
  3559. ac_count=0
  3560. $as_echo_n 0123456789 >"conftest.in"
  3561. while :
  3562. do
  3563. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3564. mv "conftest.tmp" "conftest.in"
  3565. cp "conftest.in" "conftest.nl"
  3566. $as_echo '' >> "conftest.nl"
  3567. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3568. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3569. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3570. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3571. # Best one so far, save it but keep looking for a better one
  3572. ac_cv_path_SED="$ac_path_SED"
  3573. ac_path_SED_max=$ac_count
  3574. fi
  3575. # 10*(2^10) chars as input seems more than enough
  3576. test $ac_count -gt 10 && break
  3577. done
  3578. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3579. esac
  3580. $ac_path_SED_found && break 3
  3581. done
  3582. done
  3583. done
  3584. IFS=$as_save_IFS
  3585. if test -z "$ac_cv_path_SED"; then
  3586. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3587. fi
  3588. else
  3589. ac_cv_path_SED=$SED
  3590. fi
  3591. fi
  3592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3593. $as_echo "$ac_cv_path_SED" >&6; }
  3594. SED="$ac_cv_path_SED"
  3595. rm -f conftest.sed
  3596. test -z "$SED" && SED=sed
  3597. Xsed="$SED -e 1s/^X//"
  3598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3599. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3600. if ${ac_cv_path_GREP+:} false; then :
  3601. $as_echo_n "(cached) " >&6
  3602. else
  3603. if test -z "$GREP"; then
  3604. ac_path_GREP_found=false
  3605. # Loop through the user's path and test for each of PROGNAME-LIST
  3606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3607. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3608. do
  3609. IFS=$as_save_IFS
  3610. test -z "$as_dir" && as_dir=.
  3611. for ac_prog in grep ggrep; do
  3612. for ac_exec_ext in '' $ac_executable_extensions; do
  3613. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3614. as_fn_executable_p "$ac_path_GREP" || continue
  3615. # Check for GNU ac_path_GREP and select it if it is found.
  3616. # Check for GNU $ac_path_GREP
  3617. case `"$ac_path_GREP" --version 2>&1` in
  3618. *GNU*)
  3619. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3620. *)
  3621. ac_count=0
  3622. $as_echo_n 0123456789 >"conftest.in"
  3623. while :
  3624. do
  3625. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3626. mv "conftest.tmp" "conftest.in"
  3627. cp "conftest.in" "conftest.nl"
  3628. $as_echo 'GREP' >> "conftest.nl"
  3629. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3630. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3631. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3632. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3633. # Best one so far, save it but keep looking for a better one
  3634. ac_cv_path_GREP="$ac_path_GREP"
  3635. ac_path_GREP_max=$ac_count
  3636. fi
  3637. # 10*(2^10) chars as input seems more than enough
  3638. test $ac_count -gt 10 && break
  3639. done
  3640. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3641. esac
  3642. $ac_path_GREP_found && break 3
  3643. done
  3644. done
  3645. done
  3646. IFS=$as_save_IFS
  3647. if test -z "$ac_cv_path_GREP"; then
  3648. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3649. fi
  3650. else
  3651. ac_cv_path_GREP=$GREP
  3652. fi
  3653. fi
  3654. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3655. $as_echo "$ac_cv_path_GREP" >&6; }
  3656. GREP="$ac_cv_path_GREP"
  3657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3658. $as_echo_n "checking for egrep... " >&6; }
  3659. if ${ac_cv_path_EGREP+:} false; then :
  3660. $as_echo_n "(cached) " >&6
  3661. else
  3662. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3663. then ac_cv_path_EGREP="$GREP -E"
  3664. else
  3665. if test -z "$EGREP"; then
  3666. ac_path_EGREP_found=false
  3667. # Loop through the user's path and test for each of PROGNAME-LIST
  3668. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3669. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3670. do
  3671. IFS=$as_save_IFS
  3672. test -z "$as_dir" && as_dir=.
  3673. for ac_prog in egrep; do
  3674. for ac_exec_ext in '' $ac_executable_extensions; do
  3675. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3676. as_fn_executable_p "$ac_path_EGREP" || continue
  3677. # Check for GNU ac_path_EGREP and select it if it is found.
  3678. # Check for GNU $ac_path_EGREP
  3679. case `"$ac_path_EGREP" --version 2>&1` in
  3680. *GNU*)
  3681. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3682. *)
  3683. ac_count=0
  3684. $as_echo_n 0123456789 >"conftest.in"
  3685. while :
  3686. do
  3687. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3688. mv "conftest.tmp" "conftest.in"
  3689. cp "conftest.in" "conftest.nl"
  3690. $as_echo 'EGREP' >> "conftest.nl"
  3691. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3692. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3693. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3694. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3695. # Best one so far, save it but keep looking for a better one
  3696. ac_cv_path_EGREP="$ac_path_EGREP"
  3697. ac_path_EGREP_max=$ac_count
  3698. fi
  3699. # 10*(2^10) chars as input seems more than enough
  3700. test $ac_count -gt 10 && break
  3701. done
  3702. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3703. esac
  3704. $ac_path_EGREP_found && break 3
  3705. done
  3706. done
  3707. done
  3708. IFS=$as_save_IFS
  3709. if test -z "$ac_cv_path_EGREP"; then
  3710. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3711. fi
  3712. else
  3713. ac_cv_path_EGREP=$EGREP
  3714. fi
  3715. fi
  3716. fi
  3717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3718. $as_echo "$ac_cv_path_EGREP" >&6; }
  3719. EGREP="$ac_cv_path_EGREP"
  3720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3721. $as_echo_n "checking for fgrep... " >&6; }
  3722. if ${ac_cv_path_FGREP+:} false; then :
  3723. $as_echo_n "(cached) " >&6
  3724. else
  3725. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3726. then ac_cv_path_FGREP="$GREP -F"
  3727. else
  3728. if test -z "$FGREP"; then
  3729. ac_path_FGREP_found=false
  3730. # Loop through the user's path and test for each of PROGNAME-LIST
  3731. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3732. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3733. do
  3734. IFS=$as_save_IFS
  3735. test -z "$as_dir" && as_dir=.
  3736. for ac_prog in fgrep; do
  3737. for ac_exec_ext in '' $ac_executable_extensions; do
  3738. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3739. as_fn_executable_p "$ac_path_FGREP" || continue
  3740. # Check for GNU ac_path_FGREP and select it if it is found.
  3741. # Check for GNU $ac_path_FGREP
  3742. case `"$ac_path_FGREP" --version 2>&1` in
  3743. *GNU*)
  3744. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3745. *)
  3746. ac_count=0
  3747. $as_echo_n 0123456789 >"conftest.in"
  3748. while :
  3749. do
  3750. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3751. mv "conftest.tmp" "conftest.in"
  3752. cp "conftest.in" "conftest.nl"
  3753. $as_echo 'FGREP' >> "conftest.nl"
  3754. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3755. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3756. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3757. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3758. # Best one so far, save it but keep looking for a better one
  3759. ac_cv_path_FGREP="$ac_path_FGREP"
  3760. ac_path_FGREP_max=$ac_count
  3761. fi
  3762. # 10*(2^10) chars as input seems more than enough
  3763. test $ac_count -gt 10 && break
  3764. done
  3765. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3766. esac
  3767. $ac_path_FGREP_found && break 3
  3768. done
  3769. done
  3770. done
  3771. IFS=$as_save_IFS
  3772. if test -z "$ac_cv_path_FGREP"; then
  3773. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3774. fi
  3775. else
  3776. ac_cv_path_FGREP=$FGREP
  3777. fi
  3778. fi
  3779. fi
  3780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3781. $as_echo "$ac_cv_path_FGREP" >&6; }
  3782. FGREP="$ac_cv_path_FGREP"
  3783. test -z "$GREP" && GREP=grep
  3784. # Check whether --with-gnu-ld was given.
  3785. if test "${with_gnu_ld+set}" = set; then :
  3786. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3787. else
  3788. with_gnu_ld=no
  3789. fi
  3790. ac_prog=ld
  3791. if test "$GCC" = yes; then
  3792. # Check if gcc -print-prog-name=ld gives a path.
  3793. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3794. $as_echo_n "checking for ld used by $CC... " >&6; }
  3795. case $host in
  3796. *-*-mingw*)
  3797. # gcc leaves a trailing carriage return which upsets mingw
  3798. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3799. *)
  3800. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3801. esac
  3802. case $ac_prog in
  3803. # Accept absolute paths.
  3804. [\\/]* | ?:[\\/]*)
  3805. re_direlt='/[^/][^/]*/\.\./'
  3806. # Canonicalize the pathname of ld
  3807. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3808. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3809. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3810. done
  3811. test -z "$LD" && LD="$ac_prog"
  3812. ;;
  3813. "")
  3814. # If it fails, then pretend we aren't using GCC.
  3815. ac_prog=ld
  3816. ;;
  3817. *)
  3818. # If it is relative, then search for the first ld in PATH.
  3819. with_gnu_ld=unknown
  3820. ;;
  3821. esac
  3822. elif test "$with_gnu_ld" = yes; then
  3823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3824. $as_echo_n "checking for GNU ld... " >&6; }
  3825. else
  3826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3827. $as_echo_n "checking for non-GNU ld... " >&6; }
  3828. fi
  3829. if ${lt_cv_path_LD+:} false; then :
  3830. $as_echo_n "(cached) " >&6
  3831. else
  3832. if test -z "$LD"; then
  3833. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3834. for ac_dir in $PATH; do
  3835. IFS="$lt_save_ifs"
  3836. test -z "$ac_dir" && ac_dir=.
  3837. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3838. lt_cv_path_LD="$ac_dir/$ac_prog"
  3839. # Check to see if the program is GNU ld. I'd rather use --version,
  3840. # but apparently some variants of GNU ld only accept -v.
  3841. # Break only if it was the GNU/non-GNU ld that we prefer.
  3842. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3843. *GNU* | *'with BFD'*)
  3844. test "$with_gnu_ld" != no && break
  3845. ;;
  3846. *)
  3847. test "$with_gnu_ld" != yes && break
  3848. ;;
  3849. esac
  3850. fi
  3851. done
  3852. IFS="$lt_save_ifs"
  3853. else
  3854. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3855. fi
  3856. fi
  3857. LD="$lt_cv_path_LD"
  3858. if test -n "$LD"; then
  3859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3860. $as_echo "$LD" >&6; }
  3861. else
  3862. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3863. $as_echo "no" >&6; }
  3864. fi
  3865. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3866. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3867. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3868. if ${lt_cv_prog_gnu_ld+:} false; then :
  3869. $as_echo_n "(cached) " >&6
  3870. else
  3871. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3872. case `$LD -v 2>&1 </dev/null` in
  3873. *GNU* | *'with BFD'*)
  3874. lt_cv_prog_gnu_ld=yes
  3875. ;;
  3876. *)
  3877. lt_cv_prog_gnu_ld=no
  3878. ;;
  3879. esac
  3880. fi
  3881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3882. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3883. with_gnu_ld=$lt_cv_prog_gnu_ld
  3884. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3885. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3886. if ${lt_cv_path_NM+:} false; then :
  3887. $as_echo_n "(cached) " >&6
  3888. else
  3889. if test -n "$NM"; then
  3890. # Let the user override the test.
  3891. lt_cv_path_NM="$NM"
  3892. else
  3893. lt_nm_to_check="${ac_tool_prefix}nm"
  3894. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3895. lt_nm_to_check="$lt_nm_to_check nm"
  3896. fi
  3897. for lt_tmp_nm in $lt_nm_to_check; do
  3898. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3899. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3900. IFS="$lt_save_ifs"
  3901. test -z "$ac_dir" && ac_dir=.
  3902. tmp_nm="$ac_dir/$lt_tmp_nm"
  3903. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3904. # Check to see if the nm accepts a BSD-compat flag.
  3905. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3906. # nm: unknown option "B" ignored
  3907. # Tru64's nm complains that /dev/null is an invalid object file
  3908. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3909. */dev/null* | *'Invalid file or object type'*)
  3910. lt_cv_path_NM="$tmp_nm -B"
  3911. break
  3912. ;;
  3913. *)
  3914. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3915. */dev/null*)
  3916. lt_cv_path_NM="$tmp_nm -p"
  3917. break
  3918. ;;
  3919. *)
  3920. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3921. continue # so that we can try to find one that supports BSD flags
  3922. ;;
  3923. esac
  3924. ;;
  3925. esac
  3926. fi
  3927. done
  3928. IFS="$lt_save_ifs"
  3929. done
  3930. : ${lt_cv_path_NM=no}
  3931. fi
  3932. fi
  3933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3934. $as_echo "$lt_cv_path_NM" >&6; }
  3935. if test "$lt_cv_path_NM" != "no"; then
  3936. NM="$lt_cv_path_NM"
  3937. else
  3938. # Didn't find any BSD compatible name lister, look for dumpbin.
  3939. if test -n "$DUMPBIN"; then :
  3940. # Let the user override the test.
  3941. else
  3942. if test -n "$ac_tool_prefix"; then
  3943. for ac_prog in dumpbin "link -dump"
  3944. do
  3945. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3946. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3948. $as_echo_n "checking for $ac_word... " >&6; }
  3949. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3950. $as_echo_n "(cached) " >&6
  3951. else
  3952. if test -n "$DUMPBIN"; then
  3953. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3954. else
  3955. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3956. for as_dir in $PATH
  3957. do
  3958. IFS=$as_save_IFS
  3959. test -z "$as_dir" && as_dir=.
  3960. for ac_exec_ext in '' $ac_executable_extensions; do
  3961. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3962. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3963. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3964. break 2
  3965. fi
  3966. done
  3967. done
  3968. IFS=$as_save_IFS
  3969. fi
  3970. fi
  3971. DUMPBIN=$ac_cv_prog_DUMPBIN
  3972. if test -n "$DUMPBIN"; then
  3973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3974. $as_echo "$DUMPBIN" >&6; }
  3975. else
  3976. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3977. $as_echo "no" >&6; }
  3978. fi
  3979. test -n "$DUMPBIN" && break
  3980. done
  3981. fi
  3982. if test -z "$DUMPBIN"; then
  3983. ac_ct_DUMPBIN=$DUMPBIN
  3984. for ac_prog in dumpbin "link -dump"
  3985. do
  3986. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3987. set dummy $ac_prog; ac_word=$2
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3989. $as_echo_n "checking for $ac_word... " >&6; }
  3990. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3991. $as_echo_n "(cached) " >&6
  3992. else
  3993. if test -n "$ac_ct_DUMPBIN"; then
  3994. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3995. else
  3996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3997. for as_dir in $PATH
  3998. do
  3999. IFS=$as_save_IFS
  4000. test -z "$as_dir" && as_dir=.
  4001. for ac_exec_ext in '' $ac_executable_extensions; do
  4002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4003. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4005. break 2
  4006. fi
  4007. done
  4008. done
  4009. IFS=$as_save_IFS
  4010. fi
  4011. fi
  4012. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4013. if test -n "$ac_ct_DUMPBIN"; then
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4015. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4016. else
  4017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4018. $as_echo "no" >&6; }
  4019. fi
  4020. test -n "$ac_ct_DUMPBIN" && break
  4021. done
  4022. if test "x$ac_ct_DUMPBIN" = x; then
  4023. DUMPBIN=":"
  4024. else
  4025. case $cross_compiling:$ac_tool_warned in
  4026. yes:)
  4027. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4028. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4029. ac_tool_warned=yes ;;
  4030. esac
  4031. DUMPBIN=$ac_ct_DUMPBIN
  4032. fi
  4033. fi
  4034. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4035. *COFF*)
  4036. DUMPBIN="$DUMPBIN -symbols"
  4037. ;;
  4038. *)
  4039. DUMPBIN=:
  4040. ;;
  4041. esac
  4042. fi
  4043. if test "$DUMPBIN" != ":"; then
  4044. NM="$DUMPBIN"
  4045. fi
  4046. fi
  4047. test -z "$NM" && NM=nm
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4049. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4050. if ${lt_cv_nm_interface+:} false; then :
  4051. $as_echo_n "(cached) " >&6
  4052. else
  4053. lt_cv_nm_interface="BSD nm"
  4054. echo "int some_variable = 0;" > conftest.$ac_ext
  4055. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4056. (eval "$ac_compile" 2>conftest.err)
  4057. cat conftest.err >&5
  4058. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4059. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4060. cat conftest.err >&5
  4061. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4062. cat conftest.out >&5
  4063. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4064. lt_cv_nm_interface="MS dumpbin"
  4065. fi
  4066. rm -f conftest*
  4067. fi
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4069. $as_echo "$lt_cv_nm_interface" >&6; }
  4070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4071. $as_echo_n "checking whether ln -s works... " >&6; }
  4072. LN_S=$as_ln_s
  4073. if test "$LN_S" = "ln -s"; then
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4075. $as_echo "yes" >&6; }
  4076. else
  4077. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4078. $as_echo "no, using $LN_S" >&6; }
  4079. fi
  4080. # find the maximum length of command line arguments
  4081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4082. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4083. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4084. $as_echo_n "(cached) " >&6
  4085. else
  4086. i=0
  4087. teststring="ABCD"
  4088. case $build_os in
  4089. msdosdjgpp*)
  4090. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4091. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4092. # during glob expansion). Even if it were fixed, the result of this
  4093. # check would be larger than it should be.
  4094. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4095. ;;
  4096. gnu*)
  4097. # Under GNU Hurd, this test is not required because there is
  4098. # no limit to the length of command line arguments.
  4099. # Libtool will interpret -1 as no limit whatsoever
  4100. lt_cv_sys_max_cmd_len=-1;
  4101. ;;
  4102. cygwin* | mingw* | cegcc*)
  4103. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4104. # about 5 minutes as the teststring grows exponentially.
  4105. # Worse, since 9x/ME are not pre-emptively multitasking,
  4106. # you end up with a "frozen" computer, even though with patience
  4107. # the test eventually succeeds (with a max line length of 256k).
  4108. # Instead, let's just punt: use the minimum linelength reported by
  4109. # all of the supported platforms: 8192 (on NT/2K/XP).
  4110. lt_cv_sys_max_cmd_len=8192;
  4111. ;;
  4112. mint*)
  4113. # On MiNT this can take a long time and run out of memory.
  4114. lt_cv_sys_max_cmd_len=8192;
  4115. ;;
  4116. amigaos*)
  4117. # On AmigaOS with pdksh, this test takes hours, literally.
  4118. # So we just punt and use a minimum line length of 8192.
  4119. lt_cv_sys_max_cmd_len=8192;
  4120. ;;
  4121. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4122. # This has been around since 386BSD, at least. Likely further.
  4123. if test -x /sbin/sysctl; then
  4124. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4125. elif test -x /usr/sbin/sysctl; then
  4126. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4127. else
  4128. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4129. fi
  4130. # And add a safety zone
  4131. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4132. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4133. ;;
  4134. interix*)
  4135. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4136. lt_cv_sys_max_cmd_len=196608
  4137. ;;
  4138. os2*)
  4139. # The test takes a long time on OS/2.
  4140. lt_cv_sys_max_cmd_len=8192
  4141. ;;
  4142. osf*)
  4143. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4144. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4145. # nice to cause kernel panics so lets avoid the loop below.
  4146. # First set a reasonable default.
  4147. lt_cv_sys_max_cmd_len=16384
  4148. #
  4149. if test -x /sbin/sysconfig; then
  4150. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4151. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4152. esac
  4153. fi
  4154. ;;
  4155. sco3.2v5*)
  4156. lt_cv_sys_max_cmd_len=102400
  4157. ;;
  4158. sysv5* | sco5v6* | sysv4.2uw2*)
  4159. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4160. if test -n "$kargmax"; then
  4161. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4162. else
  4163. lt_cv_sys_max_cmd_len=32768
  4164. fi
  4165. ;;
  4166. *)
  4167. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4168. if test -n "$lt_cv_sys_max_cmd_len" && \
  4169. test undefined != "$lt_cv_sys_max_cmd_len"; then
  4170. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4171. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4172. else
  4173. # Make teststring a little bigger before we do anything with it.
  4174. # a 1K string should be a reasonable start.
  4175. for i in 1 2 3 4 5 6 7 8 ; do
  4176. teststring=$teststring$teststring
  4177. done
  4178. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4179. # If test is not a shell built-in, we'll probably end up computing a
  4180. # maximum length that is only half of the actual maximum length, but
  4181. # we can't tell.
  4182. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4183. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4184. test $i != 17 # 1/2 MB should be enough
  4185. do
  4186. i=`expr $i + 1`
  4187. teststring=$teststring$teststring
  4188. done
  4189. # Only check the string length outside the loop.
  4190. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4191. teststring=
  4192. # Add a significant safety factor because C++ compilers can tack on
  4193. # massive amounts of additional arguments before passing them to the
  4194. # linker. It appears as though 1/2 is a usable value.
  4195. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4196. fi
  4197. ;;
  4198. esac
  4199. fi
  4200. if test -n $lt_cv_sys_max_cmd_len ; then
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4202. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4203. else
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4205. $as_echo "none" >&6; }
  4206. fi
  4207. max_cmd_len=$lt_cv_sys_max_cmd_len
  4208. : ${CP="cp -f"}
  4209. : ${MV="mv -f"}
  4210. : ${RM="rm -f"}
  4211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4212. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4213. # Try some XSI features
  4214. xsi_shell=no
  4215. ( _lt_dummy="a/b/c"
  4216. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4217. = c,a/b,b/c, \
  4218. && eval 'test $(( 1 + 1 )) -eq 2 \
  4219. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4220. && xsi_shell=yes
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4222. $as_echo "$xsi_shell" >&6; }
  4223. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4224. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4225. lt_shell_append=no
  4226. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4227. >/dev/null 2>&1 \
  4228. && lt_shell_append=yes
  4229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4230. $as_echo "$lt_shell_append" >&6; }
  4231. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4232. lt_unset=unset
  4233. else
  4234. lt_unset=false
  4235. fi
  4236. # test EBCDIC or ASCII
  4237. case `echo X|tr X '\101'` in
  4238. A) # ASCII based system
  4239. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4240. lt_SP2NL='tr \040 \012'
  4241. lt_NL2SP='tr \015\012 \040\040'
  4242. ;;
  4243. *) # EBCDIC based system
  4244. lt_SP2NL='tr \100 \n'
  4245. lt_NL2SP='tr \r\n \100\100'
  4246. ;;
  4247. esac
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4249. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4250. if ${lt_cv_to_host_file_cmd+:} false; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. case $host in
  4254. *-*-mingw* )
  4255. case $build in
  4256. *-*-mingw* ) # actually msys
  4257. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4258. ;;
  4259. *-*-cygwin* )
  4260. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4261. ;;
  4262. * ) # otherwise, assume *nix
  4263. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4264. ;;
  4265. esac
  4266. ;;
  4267. *-*-cygwin* )
  4268. case $build in
  4269. *-*-mingw* ) # actually msys
  4270. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4271. ;;
  4272. *-*-cygwin* )
  4273. lt_cv_to_host_file_cmd=func_convert_file_noop
  4274. ;;
  4275. * ) # otherwise, assume *nix
  4276. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4277. ;;
  4278. esac
  4279. ;;
  4280. * ) # unhandled hosts (and "normal" native builds)
  4281. lt_cv_to_host_file_cmd=func_convert_file_noop
  4282. ;;
  4283. esac
  4284. fi
  4285. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4287. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4289. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4290. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4291. $as_echo_n "(cached) " >&6
  4292. else
  4293. #assume ordinary cross tools, or native build.
  4294. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4295. case $host in
  4296. *-*-mingw* )
  4297. case $build in
  4298. *-*-mingw* ) # actually msys
  4299. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4300. ;;
  4301. esac
  4302. ;;
  4303. esac
  4304. fi
  4305. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4307. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4309. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4310. if ${lt_cv_ld_reload_flag+:} false; then :
  4311. $as_echo_n "(cached) " >&6
  4312. else
  4313. lt_cv_ld_reload_flag='-r'
  4314. fi
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4316. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4317. reload_flag=$lt_cv_ld_reload_flag
  4318. case $reload_flag in
  4319. "" | " "*) ;;
  4320. *) reload_flag=" $reload_flag" ;;
  4321. esac
  4322. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4323. case $host_os in
  4324. cygwin* | mingw* | pw32* | cegcc*)
  4325. if test "$GCC" != yes; then
  4326. reload_cmds=false
  4327. fi
  4328. ;;
  4329. darwin*)
  4330. if test "$GCC" = yes; then
  4331. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4332. else
  4333. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4334. fi
  4335. ;;
  4336. esac
  4337. if test -n "$ac_tool_prefix"; then
  4338. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4339. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4340. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4341. $as_echo_n "checking for $ac_word... " >&6; }
  4342. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4343. $as_echo_n "(cached) " >&6
  4344. else
  4345. if test -n "$OBJDUMP"; then
  4346. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4347. else
  4348. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4349. for as_dir in $PATH
  4350. do
  4351. IFS=$as_save_IFS
  4352. test -z "$as_dir" && as_dir=.
  4353. for ac_exec_ext in '' $ac_executable_extensions; do
  4354. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4355. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4356. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4357. break 2
  4358. fi
  4359. done
  4360. done
  4361. IFS=$as_save_IFS
  4362. fi
  4363. fi
  4364. OBJDUMP=$ac_cv_prog_OBJDUMP
  4365. if test -n "$OBJDUMP"; then
  4366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4367. $as_echo "$OBJDUMP" >&6; }
  4368. else
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4370. $as_echo "no" >&6; }
  4371. fi
  4372. fi
  4373. if test -z "$ac_cv_prog_OBJDUMP"; then
  4374. ac_ct_OBJDUMP=$OBJDUMP
  4375. # Extract the first word of "objdump", so it can be a program name with args.
  4376. set dummy objdump; ac_word=$2
  4377. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4378. $as_echo_n "checking for $ac_word... " >&6; }
  4379. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4380. $as_echo_n "(cached) " >&6
  4381. else
  4382. if test -n "$ac_ct_OBJDUMP"; then
  4383. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4384. else
  4385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4386. for as_dir in $PATH
  4387. do
  4388. IFS=$as_save_IFS
  4389. test -z "$as_dir" && as_dir=.
  4390. for ac_exec_ext in '' $ac_executable_extensions; do
  4391. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4392. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4393. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4394. break 2
  4395. fi
  4396. done
  4397. done
  4398. IFS=$as_save_IFS
  4399. fi
  4400. fi
  4401. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4402. if test -n "$ac_ct_OBJDUMP"; then
  4403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4404. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4405. else
  4406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4407. $as_echo "no" >&6; }
  4408. fi
  4409. if test "x$ac_ct_OBJDUMP" = x; then
  4410. OBJDUMP="false"
  4411. else
  4412. case $cross_compiling:$ac_tool_warned in
  4413. yes:)
  4414. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4415. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4416. ac_tool_warned=yes ;;
  4417. esac
  4418. OBJDUMP=$ac_ct_OBJDUMP
  4419. fi
  4420. else
  4421. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4422. fi
  4423. test -z "$OBJDUMP" && OBJDUMP=objdump
  4424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4425. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4426. if ${lt_cv_deplibs_check_method+:} false; then :
  4427. $as_echo_n "(cached) " >&6
  4428. else
  4429. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4430. lt_cv_file_magic_test_file=
  4431. lt_cv_deplibs_check_method='unknown'
  4432. # Need to set the preceding variable on all platforms that support
  4433. # interlibrary dependencies.
  4434. # 'none' -- dependencies not supported.
  4435. # `unknown' -- same as none, but documents that we really don't know.
  4436. # 'pass_all' -- all dependencies passed with no checks.
  4437. # 'test_compile' -- check by making test program.
  4438. # 'file_magic [[regex]]' -- check by looking for files in library path
  4439. # which responds to the $file_magic_cmd with a given extended regex.
  4440. # If you have `file' or equivalent on your system and you're not sure
  4441. # whether `pass_all' will *always* work, you probably want this one.
  4442. case $host_os in
  4443. aix[4-9]*)
  4444. lt_cv_deplibs_check_method=pass_all
  4445. ;;
  4446. beos*)
  4447. lt_cv_deplibs_check_method=pass_all
  4448. ;;
  4449. bsdi[45]*)
  4450. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4451. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4452. lt_cv_file_magic_test_file=/shlib/libc.so
  4453. ;;
  4454. cygwin*)
  4455. # func_win32_libid is a shell function defined in ltmain.sh
  4456. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4457. lt_cv_file_magic_cmd='func_win32_libid'
  4458. ;;
  4459. mingw* | pw32*)
  4460. # Base MSYS/MinGW do not provide the 'file' command needed by
  4461. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4462. # unless we find 'file', for example because we are cross-compiling.
  4463. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4464. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4465. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4466. lt_cv_file_magic_cmd='func_win32_libid'
  4467. else
  4468. # Keep this pattern in sync with the one in func_win32_libid.
  4469. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4470. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4471. fi
  4472. ;;
  4473. cegcc*)
  4474. # use the weaker test based on 'objdump'. See mingw*.
  4475. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4476. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4477. ;;
  4478. darwin* | rhapsody*)
  4479. lt_cv_deplibs_check_method=pass_all
  4480. ;;
  4481. freebsd* | dragonfly*)
  4482. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4483. case $host_cpu in
  4484. i*86 )
  4485. # Not sure whether the presence of OpenBSD here was a mistake.
  4486. # Let's accept both of them until this is cleared up.
  4487. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4488. lt_cv_file_magic_cmd=/usr/bin/file
  4489. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4490. ;;
  4491. esac
  4492. else
  4493. lt_cv_deplibs_check_method=pass_all
  4494. fi
  4495. ;;
  4496. haiku*)
  4497. lt_cv_deplibs_check_method=pass_all
  4498. ;;
  4499. hpux10.20* | hpux11*)
  4500. lt_cv_file_magic_cmd=/usr/bin/file
  4501. case $host_cpu in
  4502. ia64*)
  4503. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4504. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4505. ;;
  4506. hppa*64*)
  4507. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  4508. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4509. ;;
  4510. *)
  4511. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4512. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4513. ;;
  4514. esac
  4515. ;;
  4516. interix[3-9]*)
  4517. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4518. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4519. ;;
  4520. irix5* | irix6* | nonstopux*)
  4521. case $LD in
  4522. *-32|*"-32 ") libmagic=32-bit;;
  4523. *-n32|*"-n32 ") libmagic=N32;;
  4524. *-64|*"-64 ") libmagic=64-bit;;
  4525. *) libmagic=never-match;;
  4526. esac
  4527. lt_cv_deplibs_check_method=pass_all
  4528. ;;
  4529. # This must be glibc/ELF.
  4530. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4531. lt_cv_deplibs_check_method=pass_all
  4532. ;;
  4533. netbsd* | netbsdelf*-gnu)
  4534. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4535. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4536. else
  4537. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4538. fi
  4539. ;;
  4540. newos6*)
  4541. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4542. lt_cv_file_magic_cmd=/usr/bin/file
  4543. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4544. ;;
  4545. *nto* | *qnx*)
  4546. lt_cv_deplibs_check_method=pass_all
  4547. ;;
  4548. openbsd*)
  4549. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4550. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4551. else
  4552. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4553. fi
  4554. ;;
  4555. osf3* | osf4* | osf5*)
  4556. lt_cv_deplibs_check_method=pass_all
  4557. ;;
  4558. rdos*)
  4559. lt_cv_deplibs_check_method=pass_all
  4560. ;;
  4561. solaris*)
  4562. lt_cv_deplibs_check_method=pass_all
  4563. ;;
  4564. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4565. lt_cv_deplibs_check_method=pass_all
  4566. ;;
  4567. sysv4 | sysv4.3*)
  4568. case $host_vendor in
  4569. motorola)
  4570. 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]'
  4571. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4572. ;;
  4573. ncr)
  4574. lt_cv_deplibs_check_method=pass_all
  4575. ;;
  4576. sequent)
  4577. lt_cv_file_magic_cmd='/bin/file'
  4578. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4579. ;;
  4580. sni)
  4581. lt_cv_file_magic_cmd='/bin/file'
  4582. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4583. lt_cv_file_magic_test_file=/lib/libc.so
  4584. ;;
  4585. siemens)
  4586. lt_cv_deplibs_check_method=pass_all
  4587. ;;
  4588. pc)
  4589. lt_cv_deplibs_check_method=pass_all
  4590. ;;
  4591. esac
  4592. ;;
  4593. tpf*)
  4594. lt_cv_deplibs_check_method=pass_all
  4595. ;;
  4596. esac
  4597. fi
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4599. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4600. file_magic_glob=
  4601. want_nocaseglob=no
  4602. if test "$build" = "$host"; then
  4603. case $host_os in
  4604. mingw* | pw32*)
  4605. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4606. want_nocaseglob=yes
  4607. else
  4608. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4609. fi
  4610. ;;
  4611. esac
  4612. fi
  4613. file_magic_cmd=$lt_cv_file_magic_cmd
  4614. deplibs_check_method=$lt_cv_deplibs_check_method
  4615. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4616. if test -n "$ac_tool_prefix"; then
  4617. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4618. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4620. $as_echo_n "checking for $ac_word... " >&6; }
  4621. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4622. $as_echo_n "(cached) " >&6
  4623. else
  4624. if test -n "$DLLTOOL"; then
  4625. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4626. else
  4627. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4628. for as_dir in $PATH
  4629. do
  4630. IFS=$as_save_IFS
  4631. test -z "$as_dir" && as_dir=.
  4632. for ac_exec_ext in '' $ac_executable_extensions; do
  4633. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4634. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4635. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4636. break 2
  4637. fi
  4638. done
  4639. done
  4640. IFS=$as_save_IFS
  4641. fi
  4642. fi
  4643. DLLTOOL=$ac_cv_prog_DLLTOOL
  4644. if test -n "$DLLTOOL"; then
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4646. $as_echo "$DLLTOOL" >&6; }
  4647. else
  4648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4649. $as_echo "no" >&6; }
  4650. fi
  4651. fi
  4652. if test -z "$ac_cv_prog_DLLTOOL"; then
  4653. ac_ct_DLLTOOL=$DLLTOOL
  4654. # Extract the first word of "dlltool", so it can be a program name with args.
  4655. set dummy dlltool; ac_word=$2
  4656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4657. $as_echo_n "checking for $ac_word... " >&6; }
  4658. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4659. $as_echo_n "(cached) " >&6
  4660. else
  4661. if test -n "$ac_ct_DLLTOOL"; then
  4662. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4663. else
  4664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4665. for as_dir in $PATH
  4666. do
  4667. IFS=$as_save_IFS
  4668. test -z "$as_dir" && as_dir=.
  4669. for ac_exec_ext in '' $ac_executable_extensions; do
  4670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4671. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4673. break 2
  4674. fi
  4675. done
  4676. done
  4677. IFS=$as_save_IFS
  4678. fi
  4679. fi
  4680. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4681. if test -n "$ac_ct_DLLTOOL"; then
  4682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4683. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4684. else
  4685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4686. $as_echo "no" >&6; }
  4687. fi
  4688. if test "x$ac_ct_DLLTOOL" = x; then
  4689. DLLTOOL="false"
  4690. else
  4691. case $cross_compiling:$ac_tool_warned in
  4692. yes:)
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4694. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4695. ac_tool_warned=yes ;;
  4696. esac
  4697. DLLTOOL=$ac_ct_DLLTOOL
  4698. fi
  4699. else
  4700. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4701. fi
  4702. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4703. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4704. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4705. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4706. $as_echo_n "(cached) " >&6
  4707. else
  4708. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4709. case $host_os in
  4710. cygwin* | mingw* | pw32* | cegcc*)
  4711. # two different shell functions defined in ltmain.sh
  4712. # decide which to use based on capabilities of $DLLTOOL
  4713. case `$DLLTOOL --help 2>&1` in
  4714. *--identify-strict*)
  4715. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4716. ;;
  4717. *)
  4718. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4719. ;;
  4720. esac
  4721. ;;
  4722. *)
  4723. # fallback: assume linklib IS sharedlib
  4724. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4725. ;;
  4726. esac
  4727. fi
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4729. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4730. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4731. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4732. if test -n "$ac_tool_prefix"; then
  4733. for ac_prog in ar
  4734. do
  4735. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4736. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4738. $as_echo_n "checking for $ac_word... " >&6; }
  4739. if ${ac_cv_prog_AR+:} false; then :
  4740. $as_echo_n "(cached) " >&6
  4741. else
  4742. if test -n "$AR"; then
  4743. ac_cv_prog_AR="$AR" # Let the user override the test.
  4744. else
  4745. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4746. for as_dir in $PATH
  4747. do
  4748. IFS=$as_save_IFS
  4749. test -z "$as_dir" && as_dir=.
  4750. for ac_exec_ext in '' $ac_executable_extensions; do
  4751. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4752. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4753. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4754. break 2
  4755. fi
  4756. done
  4757. done
  4758. IFS=$as_save_IFS
  4759. fi
  4760. fi
  4761. AR=$ac_cv_prog_AR
  4762. if test -n "$AR"; then
  4763. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4764. $as_echo "$AR" >&6; }
  4765. else
  4766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4767. $as_echo "no" >&6; }
  4768. fi
  4769. test -n "$AR" && break
  4770. done
  4771. fi
  4772. if test -z "$AR"; then
  4773. ac_ct_AR=$AR
  4774. for ac_prog in ar
  4775. do
  4776. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4777. set dummy $ac_prog; ac_word=$2
  4778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4779. $as_echo_n "checking for $ac_word... " >&6; }
  4780. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4781. $as_echo_n "(cached) " >&6
  4782. else
  4783. if test -n "$ac_ct_AR"; then
  4784. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4785. else
  4786. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4787. for as_dir in $PATH
  4788. do
  4789. IFS=$as_save_IFS
  4790. test -z "$as_dir" && as_dir=.
  4791. for ac_exec_ext in '' $ac_executable_extensions; do
  4792. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4793. ac_cv_prog_ac_ct_AR="$ac_prog"
  4794. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4795. break 2
  4796. fi
  4797. done
  4798. done
  4799. IFS=$as_save_IFS
  4800. fi
  4801. fi
  4802. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4803. if test -n "$ac_ct_AR"; then
  4804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4805. $as_echo "$ac_ct_AR" >&6; }
  4806. else
  4807. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4808. $as_echo "no" >&6; }
  4809. fi
  4810. test -n "$ac_ct_AR" && break
  4811. done
  4812. if test "x$ac_ct_AR" = x; then
  4813. AR="false"
  4814. else
  4815. case $cross_compiling:$ac_tool_warned in
  4816. yes:)
  4817. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4818. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4819. ac_tool_warned=yes ;;
  4820. esac
  4821. AR=$ac_ct_AR
  4822. fi
  4823. fi
  4824. : ${AR=ar}
  4825. : ${AR_FLAGS=cru}
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4827. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4828. if ${lt_cv_ar_at_file+:} false; then :
  4829. $as_echo_n "(cached) " >&6
  4830. else
  4831. lt_cv_ar_at_file=no
  4832. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4833. /* end confdefs.h. */
  4834. int
  4835. main ()
  4836. {
  4837. ;
  4838. return 0;
  4839. }
  4840. _ACEOF
  4841. if ac_fn_c_try_compile "$LINENO"; then :
  4842. echo conftest.$ac_objext > conftest.lst
  4843. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4844. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4845. (eval $lt_ar_try) 2>&5
  4846. ac_status=$?
  4847. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4848. test $ac_status = 0; }
  4849. if test "$ac_status" -eq 0; then
  4850. # Ensure the archiver fails upon bogus file names.
  4851. rm -f conftest.$ac_objext libconftest.a
  4852. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4853. (eval $lt_ar_try) 2>&5
  4854. ac_status=$?
  4855. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4856. test $ac_status = 0; }
  4857. if test "$ac_status" -ne 0; then
  4858. lt_cv_ar_at_file=@
  4859. fi
  4860. fi
  4861. rm -f conftest.* libconftest.a
  4862. fi
  4863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4864. fi
  4865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4866. $as_echo "$lt_cv_ar_at_file" >&6; }
  4867. if test "x$lt_cv_ar_at_file" = xno; then
  4868. archiver_list_spec=
  4869. else
  4870. archiver_list_spec=$lt_cv_ar_at_file
  4871. fi
  4872. if test -n "$ac_tool_prefix"; then
  4873. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4874. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4876. $as_echo_n "checking for $ac_word... " >&6; }
  4877. if ${ac_cv_prog_STRIP+:} false; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. if test -n "$STRIP"; then
  4881. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4882. else
  4883. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4884. for as_dir in $PATH
  4885. do
  4886. IFS=$as_save_IFS
  4887. test -z "$as_dir" && as_dir=.
  4888. for ac_exec_ext in '' $ac_executable_extensions; do
  4889. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4890. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4891. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4892. break 2
  4893. fi
  4894. done
  4895. done
  4896. IFS=$as_save_IFS
  4897. fi
  4898. fi
  4899. STRIP=$ac_cv_prog_STRIP
  4900. if test -n "$STRIP"; then
  4901. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4902. $as_echo "$STRIP" >&6; }
  4903. else
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4905. $as_echo "no" >&6; }
  4906. fi
  4907. fi
  4908. if test -z "$ac_cv_prog_STRIP"; then
  4909. ac_ct_STRIP=$STRIP
  4910. # Extract the first word of "strip", so it can be a program name with args.
  4911. set dummy strip; ac_word=$2
  4912. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4913. $as_echo_n "checking for $ac_word... " >&6; }
  4914. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4915. $as_echo_n "(cached) " >&6
  4916. else
  4917. if test -n "$ac_ct_STRIP"; then
  4918. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4919. else
  4920. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4921. for as_dir in $PATH
  4922. do
  4923. IFS=$as_save_IFS
  4924. test -z "$as_dir" && as_dir=.
  4925. for ac_exec_ext in '' $ac_executable_extensions; do
  4926. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4927. ac_cv_prog_ac_ct_STRIP="strip"
  4928. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4929. break 2
  4930. fi
  4931. done
  4932. done
  4933. IFS=$as_save_IFS
  4934. fi
  4935. fi
  4936. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4937. if test -n "$ac_ct_STRIP"; then
  4938. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4939. $as_echo "$ac_ct_STRIP" >&6; }
  4940. else
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4942. $as_echo "no" >&6; }
  4943. fi
  4944. if test "x$ac_ct_STRIP" = x; then
  4945. STRIP=":"
  4946. else
  4947. case $cross_compiling:$ac_tool_warned in
  4948. yes:)
  4949. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4950. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4951. ac_tool_warned=yes ;;
  4952. esac
  4953. STRIP=$ac_ct_STRIP
  4954. fi
  4955. else
  4956. STRIP="$ac_cv_prog_STRIP"
  4957. fi
  4958. test -z "$STRIP" && STRIP=:
  4959. if test -n "$ac_tool_prefix"; then
  4960. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4961. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4963. $as_echo_n "checking for $ac_word... " >&6; }
  4964. if ${ac_cv_prog_RANLIB+:} false; then :
  4965. $as_echo_n "(cached) " >&6
  4966. else
  4967. if test -n "$RANLIB"; then
  4968. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4969. else
  4970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4971. for as_dir in $PATH
  4972. do
  4973. IFS=$as_save_IFS
  4974. test -z "$as_dir" && as_dir=.
  4975. for ac_exec_ext in '' $ac_executable_extensions; do
  4976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4977. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4979. break 2
  4980. fi
  4981. done
  4982. done
  4983. IFS=$as_save_IFS
  4984. fi
  4985. fi
  4986. RANLIB=$ac_cv_prog_RANLIB
  4987. if test -n "$RANLIB"; then
  4988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4989. $as_echo "$RANLIB" >&6; }
  4990. else
  4991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4992. $as_echo "no" >&6; }
  4993. fi
  4994. fi
  4995. if test -z "$ac_cv_prog_RANLIB"; then
  4996. ac_ct_RANLIB=$RANLIB
  4997. # Extract the first word of "ranlib", so it can be a program name with args.
  4998. set dummy ranlib; ac_word=$2
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5000. $as_echo_n "checking for $ac_word... " >&6; }
  5001. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5002. $as_echo_n "(cached) " >&6
  5003. else
  5004. if test -n "$ac_ct_RANLIB"; then
  5005. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5006. else
  5007. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5008. for as_dir in $PATH
  5009. do
  5010. IFS=$as_save_IFS
  5011. test -z "$as_dir" && as_dir=.
  5012. for ac_exec_ext in '' $ac_executable_extensions; do
  5013. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5014. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5015. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5016. break 2
  5017. fi
  5018. done
  5019. done
  5020. IFS=$as_save_IFS
  5021. fi
  5022. fi
  5023. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5024. if test -n "$ac_ct_RANLIB"; then
  5025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5026. $as_echo "$ac_ct_RANLIB" >&6; }
  5027. else
  5028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5029. $as_echo "no" >&6; }
  5030. fi
  5031. if test "x$ac_ct_RANLIB" = x; then
  5032. RANLIB=":"
  5033. else
  5034. case $cross_compiling:$ac_tool_warned in
  5035. yes:)
  5036. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5037. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5038. ac_tool_warned=yes ;;
  5039. esac
  5040. RANLIB=$ac_ct_RANLIB
  5041. fi
  5042. else
  5043. RANLIB="$ac_cv_prog_RANLIB"
  5044. fi
  5045. test -z "$RANLIB" && RANLIB=:
  5046. # Determine commands to create old-style static archives.
  5047. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5048. old_postinstall_cmds='chmod 644 $oldlib'
  5049. old_postuninstall_cmds=
  5050. if test -n "$RANLIB"; then
  5051. case $host_os in
  5052. openbsd*)
  5053. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5054. ;;
  5055. *)
  5056. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5057. ;;
  5058. esac
  5059. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5060. fi
  5061. case $host_os in
  5062. darwin*)
  5063. lock_old_archive_extraction=yes ;;
  5064. *)
  5065. lock_old_archive_extraction=no ;;
  5066. esac
  5067. # If no C compiler was specified, use CC.
  5068. LTCC=${LTCC-"$CC"}
  5069. # If no C compiler flags were specified, use CFLAGS.
  5070. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5071. # Allow CC to be a program name with arguments.
  5072. compiler=$CC
  5073. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5074. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5075. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5076. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5077. $as_echo_n "(cached) " >&6
  5078. else
  5079. # These are sane defaults that work on at least a few old systems.
  5080. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5081. # Character class describing NM global symbol codes.
  5082. symcode='[BCDEGRST]'
  5083. # Regexp to match symbols that can be accessed directly from C.
  5084. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5085. # Define system-specific variables.
  5086. case $host_os in
  5087. aix*)
  5088. symcode='[BCDT]'
  5089. ;;
  5090. cygwin* | mingw* | pw32* | cegcc*)
  5091. symcode='[ABCDGISTW]'
  5092. ;;
  5093. hpux*)
  5094. if test "$host_cpu" = ia64; then
  5095. symcode='[ABCDEGRST]'
  5096. fi
  5097. ;;
  5098. irix* | nonstopux*)
  5099. symcode='[BCDEGRST]'
  5100. ;;
  5101. osf*)
  5102. symcode='[BCDEGQRST]'
  5103. ;;
  5104. solaris*)
  5105. symcode='[BDRT]'
  5106. ;;
  5107. sco3.2v5*)
  5108. symcode='[DT]'
  5109. ;;
  5110. sysv4.2uw2*)
  5111. symcode='[DT]'
  5112. ;;
  5113. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5114. symcode='[ABDT]'
  5115. ;;
  5116. sysv4)
  5117. symcode='[DFNSTU]'
  5118. ;;
  5119. esac
  5120. # If we're using GNU nm, then use its standard symbol codes.
  5121. case `$NM -V 2>&1` in
  5122. *GNU* | *'with BFD'*)
  5123. symcode='[ABCDGIRSTW]' ;;
  5124. esac
  5125. # Transform an extracted symbol line into a proper C declaration.
  5126. # Some systems (esp. on ia64) link data and code symbols differently,
  5127. # so use this general approach.
  5128. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5129. # Transform an extracted symbol line into symbol name and symbol address
  5130. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5131. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  5132. # Handle CRLF in mingw tool chain
  5133. opt_cr=
  5134. case $build_os in
  5135. mingw*)
  5136. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5137. ;;
  5138. esac
  5139. # Try without a prefix underscore, then with it.
  5140. for ac_symprfx in "" "_"; do
  5141. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5142. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5143. # Write the raw and C identifiers.
  5144. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5145. # Fake it for dumpbin and say T for any non-static function
  5146. # and D for any global variable.
  5147. # Also find C++ and __fastcall symbols from MSVC++,
  5148. # which start with @ or ?.
  5149. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5150. " {last_section=section; section=\$ 3};"\
  5151. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5152. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5153. " \$ 0!~/External *\|/{next};"\
  5154. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5155. " {if(hide[section]) next};"\
  5156. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5157. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5158. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5159. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5160. " ' prfx=^$ac_symprfx"
  5161. else
  5162. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5163. fi
  5164. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5165. # Check to see that the pipe works correctly.
  5166. pipe_works=no
  5167. rm -f conftest*
  5168. cat > conftest.$ac_ext <<_LT_EOF
  5169. #ifdef __cplusplus
  5170. extern "C" {
  5171. #endif
  5172. char nm_test_var;
  5173. void nm_test_func(void);
  5174. void nm_test_func(void){}
  5175. #ifdef __cplusplus
  5176. }
  5177. #endif
  5178. int main(){nm_test_var='a';nm_test_func();return(0);}
  5179. _LT_EOF
  5180. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5181. (eval $ac_compile) 2>&5
  5182. ac_status=$?
  5183. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5184. test $ac_status = 0; }; then
  5185. # Now try to grab the symbols.
  5186. nlist=conftest.nm
  5187. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5188. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5189. ac_status=$?
  5190. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5191. test $ac_status = 0; } && test -s "$nlist"; then
  5192. # Try sorting and uniquifying the output.
  5193. if sort "$nlist" | uniq > "$nlist"T; then
  5194. mv -f "$nlist"T "$nlist"
  5195. else
  5196. rm -f "$nlist"T
  5197. fi
  5198. # Make sure that we snagged all the symbols we need.
  5199. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5200. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5201. cat <<_LT_EOF > conftest.$ac_ext
  5202. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5203. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5204. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5205. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5206. # define LT_DLSYM_CONST
  5207. #elif defined(__osf__)
  5208. /* This system does not cope well with relocations in const data. */
  5209. # define LT_DLSYM_CONST
  5210. #else
  5211. # define LT_DLSYM_CONST const
  5212. #endif
  5213. #ifdef __cplusplus
  5214. extern "C" {
  5215. #endif
  5216. _LT_EOF
  5217. # Now generate the symbol file.
  5218. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5219. cat <<_LT_EOF >> conftest.$ac_ext
  5220. /* The mapping between symbol names and symbols. */
  5221. LT_DLSYM_CONST struct {
  5222. const char *name;
  5223. void *address;
  5224. }
  5225. lt__PROGRAM__LTX_preloaded_symbols[] =
  5226. {
  5227. { "@PROGRAM@", (void *) 0 },
  5228. _LT_EOF
  5229. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5230. cat <<\_LT_EOF >> conftest.$ac_ext
  5231. {0, (void *) 0}
  5232. };
  5233. /* This works around a problem in FreeBSD linker */
  5234. #ifdef FREEBSD_WORKAROUND
  5235. static const void *lt_preloaded_setup() {
  5236. return lt__PROGRAM__LTX_preloaded_symbols;
  5237. }
  5238. #endif
  5239. #ifdef __cplusplus
  5240. }
  5241. #endif
  5242. _LT_EOF
  5243. # Now try linking the two files.
  5244. mv conftest.$ac_objext conftstm.$ac_objext
  5245. lt_globsym_save_LIBS=$LIBS
  5246. lt_globsym_save_CFLAGS=$CFLAGS
  5247. LIBS="conftstm.$ac_objext"
  5248. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5249. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5250. (eval $ac_link) 2>&5
  5251. ac_status=$?
  5252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5253. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5254. pipe_works=yes
  5255. fi
  5256. LIBS=$lt_globsym_save_LIBS
  5257. CFLAGS=$lt_globsym_save_CFLAGS
  5258. else
  5259. echo "cannot find nm_test_func in $nlist" >&5
  5260. fi
  5261. else
  5262. echo "cannot find nm_test_var in $nlist" >&5
  5263. fi
  5264. else
  5265. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5266. fi
  5267. else
  5268. echo "$progname: failed program was:" >&5
  5269. cat conftest.$ac_ext >&5
  5270. fi
  5271. rm -rf conftest* conftst*
  5272. # Do not use the global_symbol_pipe unless it works.
  5273. if test "$pipe_works" = yes; then
  5274. break
  5275. else
  5276. lt_cv_sys_global_symbol_pipe=
  5277. fi
  5278. done
  5279. fi
  5280. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5281. lt_cv_sys_global_symbol_to_cdecl=
  5282. fi
  5283. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5285. $as_echo "failed" >&6; }
  5286. else
  5287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5288. $as_echo "ok" >&6; }
  5289. fi
  5290. # Response file support.
  5291. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5292. nm_file_list_spec='@'
  5293. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5294. nm_file_list_spec='@'
  5295. fi
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5297. $as_echo_n "checking for sysroot... " >&6; }
  5298. # Check whether --with-sysroot was given.
  5299. if test "${with_sysroot+set}" = set; then :
  5300. withval=$with_sysroot;
  5301. else
  5302. with_sysroot=no
  5303. fi
  5304. lt_sysroot=
  5305. case ${with_sysroot} in #(
  5306. yes)
  5307. if test "$GCC" = yes; then
  5308. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5309. fi
  5310. ;; #(
  5311. /*)
  5312. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5313. ;; #(
  5314. no|'')
  5315. ;; #(
  5316. *)
  5317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5318. $as_echo "${with_sysroot}" >&6; }
  5319. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5320. ;;
  5321. esac
  5322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5323. $as_echo "${lt_sysroot:-no}" >&6; }
  5324. # Check whether --enable-libtool-lock was given.
  5325. if test "${enable_libtool_lock+set}" = set; then :
  5326. enableval=$enable_libtool_lock;
  5327. fi
  5328. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5329. # Some flags need to be propagated to the compiler or linker for good
  5330. # libtool support.
  5331. case $host in
  5332. ia64-*-hpux*)
  5333. # Find out which ABI we are using.
  5334. echo 'int i;' > conftest.$ac_ext
  5335. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5336. (eval $ac_compile) 2>&5
  5337. ac_status=$?
  5338. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5339. test $ac_status = 0; }; then
  5340. case `/usr/bin/file conftest.$ac_objext` in
  5341. *ELF-32*)
  5342. HPUX_IA64_MODE="32"
  5343. ;;
  5344. *ELF-64*)
  5345. HPUX_IA64_MODE="64"
  5346. ;;
  5347. esac
  5348. fi
  5349. rm -rf conftest*
  5350. ;;
  5351. *-*-irix6*)
  5352. # Find out which ABI we are using.
  5353. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5354. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5355. (eval $ac_compile) 2>&5
  5356. ac_status=$?
  5357. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5358. test $ac_status = 0; }; then
  5359. if test "$lt_cv_prog_gnu_ld" = yes; then
  5360. case `/usr/bin/file conftest.$ac_objext` in
  5361. *32-bit*)
  5362. LD="${LD-ld} -melf32bsmip"
  5363. ;;
  5364. *N32*)
  5365. LD="${LD-ld} -melf32bmipn32"
  5366. ;;
  5367. *64-bit*)
  5368. LD="${LD-ld} -melf64bmip"
  5369. ;;
  5370. esac
  5371. else
  5372. case `/usr/bin/file conftest.$ac_objext` in
  5373. *32-bit*)
  5374. LD="${LD-ld} -32"
  5375. ;;
  5376. *N32*)
  5377. LD="${LD-ld} -n32"
  5378. ;;
  5379. *64-bit*)
  5380. LD="${LD-ld} -64"
  5381. ;;
  5382. esac
  5383. fi
  5384. fi
  5385. rm -rf conftest*
  5386. ;;
  5387. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5388. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5389. # Find out which ABI we are using.
  5390. echo 'int i;' > conftest.$ac_ext
  5391. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5392. (eval $ac_compile) 2>&5
  5393. ac_status=$?
  5394. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5395. test $ac_status = 0; }; then
  5396. case `/usr/bin/file conftest.o` in
  5397. *32-bit*)
  5398. case $host in
  5399. x86_64-*kfreebsd*-gnu)
  5400. LD="${LD-ld} -m elf_i386_fbsd"
  5401. ;;
  5402. x86_64-*linux*)
  5403. case `/usr/bin/file conftest.o` in
  5404. *x86-64*)
  5405. LD="${LD-ld} -m elf32_x86_64"
  5406. ;;
  5407. *)
  5408. LD="${LD-ld} -m elf_i386"
  5409. ;;
  5410. esac
  5411. ;;
  5412. powerpc64le-*)
  5413. LD="${LD-ld} -m elf32lppclinux"
  5414. ;;
  5415. powerpc64-*)
  5416. LD="${LD-ld} -m elf32ppclinux"
  5417. ;;
  5418. s390x-*linux*)
  5419. LD="${LD-ld} -m elf_s390"
  5420. ;;
  5421. sparc64-*linux*)
  5422. LD="${LD-ld} -m elf32_sparc"
  5423. ;;
  5424. esac
  5425. ;;
  5426. *64-bit*)
  5427. case $host in
  5428. x86_64-*kfreebsd*-gnu)
  5429. LD="${LD-ld} -m elf_x86_64_fbsd"
  5430. ;;
  5431. x86_64-*linux*)
  5432. LD="${LD-ld} -m elf_x86_64"
  5433. ;;
  5434. powerpcle-*)
  5435. LD="${LD-ld} -m elf64lppc"
  5436. ;;
  5437. powerpc-*)
  5438. LD="${LD-ld} -m elf64ppc"
  5439. ;;
  5440. s390*-*linux*|s390*-*tpf*)
  5441. LD="${LD-ld} -m elf64_s390"
  5442. ;;
  5443. sparc*-*linux*)
  5444. LD="${LD-ld} -m elf64_sparc"
  5445. ;;
  5446. esac
  5447. ;;
  5448. esac
  5449. fi
  5450. rm -rf conftest*
  5451. ;;
  5452. *-*-sco3.2v5*)
  5453. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5454. SAVE_CFLAGS="$CFLAGS"
  5455. CFLAGS="$CFLAGS -belf"
  5456. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5457. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5458. if ${lt_cv_cc_needs_belf+:} false; then :
  5459. $as_echo_n "(cached) " >&6
  5460. else
  5461. ac_ext=c
  5462. ac_cpp='$CPP $CPPFLAGS'
  5463. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5464. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5465. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5467. /* end confdefs.h. */
  5468. int
  5469. main ()
  5470. {
  5471. ;
  5472. return 0;
  5473. }
  5474. _ACEOF
  5475. if ac_fn_c_try_link "$LINENO"; then :
  5476. lt_cv_cc_needs_belf=yes
  5477. else
  5478. lt_cv_cc_needs_belf=no
  5479. fi
  5480. rm -f core conftest.err conftest.$ac_objext \
  5481. conftest$ac_exeext conftest.$ac_ext
  5482. ac_ext=c
  5483. ac_cpp='$CPP $CPPFLAGS'
  5484. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5485. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5486. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5487. fi
  5488. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5489. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5490. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5491. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5492. CFLAGS="$SAVE_CFLAGS"
  5493. fi
  5494. ;;
  5495. *-*solaris*)
  5496. # Find out which ABI we are using.
  5497. echo 'int i;' > conftest.$ac_ext
  5498. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5499. (eval $ac_compile) 2>&5
  5500. ac_status=$?
  5501. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5502. test $ac_status = 0; }; then
  5503. case `/usr/bin/file conftest.o` in
  5504. *64-bit*)
  5505. case $lt_cv_prog_gnu_ld in
  5506. yes*)
  5507. case $host in
  5508. i?86-*-solaris*)
  5509. LD="${LD-ld} -m elf_x86_64"
  5510. ;;
  5511. sparc*-*-solaris*)
  5512. LD="${LD-ld} -m elf64_sparc"
  5513. ;;
  5514. esac
  5515. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5516. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5517. LD="${LD-ld}_sol2"
  5518. fi
  5519. ;;
  5520. *)
  5521. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5522. LD="${LD-ld} -64"
  5523. fi
  5524. ;;
  5525. esac
  5526. ;;
  5527. esac
  5528. fi
  5529. rm -rf conftest*
  5530. ;;
  5531. esac
  5532. need_locks="$enable_libtool_lock"
  5533. if test -n "$ac_tool_prefix"; then
  5534. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5535. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5537. $as_echo_n "checking for $ac_word... " >&6; }
  5538. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5539. $as_echo_n "(cached) " >&6
  5540. else
  5541. if test -n "$MANIFEST_TOOL"; then
  5542. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5543. else
  5544. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5545. for as_dir in $PATH
  5546. do
  5547. IFS=$as_save_IFS
  5548. test -z "$as_dir" && as_dir=.
  5549. for ac_exec_ext in '' $ac_executable_extensions; do
  5550. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5551. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5552. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5553. break 2
  5554. fi
  5555. done
  5556. done
  5557. IFS=$as_save_IFS
  5558. fi
  5559. fi
  5560. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5561. if test -n "$MANIFEST_TOOL"; then
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5563. $as_echo "$MANIFEST_TOOL" >&6; }
  5564. else
  5565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5566. $as_echo "no" >&6; }
  5567. fi
  5568. fi
  5569. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5570. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5571. # Extract the first word of "mt", so it can be a program name with args.
  5572. set dummy mt; ac_word=$2
  5573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5574. $as_echo_n "checking for $ac_word... " >&6; }
  5575. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5576. $as_echo_n "(cached) " >&6
  5577. else
  5578. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5579. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5580. else
  5581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5582. for as_dir in $PATH
  5583. do
  5584. IFS=$as_save_IFS
  5585. test -z "$as_dir" && as_dir=.
  5586. for ac_exec_ext in '' $ac_executable_extensions; do
  5587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5588. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5590. break 2
  5591. fi
  5592. done
  5593. done
  5594. IFS=$as_save_IFS
  5595. fi
  5596. fi
  5597. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5598. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5600. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5601. else
  5602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5603. $as_echo "no" >&6; }
  5604. fi
  5605. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5606. MANIFEST_TOOL=":"
  5607. else
  5608. case $cross_compiling:$ac_tool_warned in
  5609. yes:)
  5610. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5611. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5612. ac_tool_warned=yes ;;
  5613. esac
  5614. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5615. fi
  5616. else
  5617. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5618. fi
  5619. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5620. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5621. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5622. if ${lt_cv_path_mainfest_tool+:} false; then :
  5623. $as_echo_n "(cached) " >&6
  5624. else
  5625. lt_cv_path_mainfest_tool=no
  5626. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5627. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5628. cat conftest.err >&5
  5629. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5630. lt_cv_path_mainfest_tool=yes
  5631. fi
  5632. rm -f conftest*
  5633. fi
  5634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5635. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5636. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5637. MANIFEST_TOOL=:
  5638. fi
  5639. case $host_os in
  5640. rhapsody* | darwin*)
  5641. if test -n "$ac_tool_prefix"; then
  5642. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5643. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5645. $as_echo_n "checking for $ac_word... " >&6; }
  5646. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5647. $as_echo_n "(cached) " >&6
  5648. else
  5649. if test -n "$DSYMUTIL"; then
  5650. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5651. else
  5652. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5653. for as_dir in $PATH
  5654. do
  5655. IFS=$as_save_IFS
  5656. test -z "$as_dir" && as_dir=.
  5657. for ac_exec_ext in '' $ac_executable_extensions; do
  5658. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5659. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5660. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5661. break 2
  5662. fi
  5663. done
  5664. done
  5665. IFS=$as_save_IFS
  5666. fi
  5667. fi
  5668. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5669. if test -n "$DSYMUTIL"; then
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5671. $as_echo "$DSYMUTIL" >&6; }
  5672. else
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5674. $as_echo "no" >&6; }
  5675. fi
  5676. fi
  5677. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5678. ac_ct_DSYMUTIL=$DSYMUTIL
  5679. # Extract the first word of "dsymutil", so it can be a program name with args.
  5680. set dummy dsymutil; ac_word=$2
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5682. $as_echo_n "checking for $ac_word... " >&6; }
  5683. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5684. $as_echo_n "(cached) " >&6
  5685. else
  5686. if test -n "$ac_ct_DSYMUTIL"; then
  5687. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5688. else
  5689. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5690. for as_dir in $PATH
  5691. do
  5692. IFS=$as_save_IFS
  5693. test -z "$as_dir" && as_dir=.
  5694. for ac_exec_ext in '' $ac_executable_extensions; do
  5695. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5696. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5697. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5698. break 2
  5699. fi
  5700. done
  5701. done
  5702. IFS=$as_save_IFS
  5703. fi
  5704. fi
  5705. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5706. if test -n "$ac_ct_DSYMUTIL"; then
  5707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5708. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5709. else
  5710. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5711. $as_echo "no" >&6; }
  5712. fi
  5713. if test "x$ac_ct_DSYMUTIL" = x; then
  5714. DSYMUTIL=":"
  5715. else
  5716. case $cross_compiling:$ac_tool_warned in
  5717. yes:)
  5718. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5719. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5720. ac_tool_warned=yes ;;
  5721. esac
  5722. DSYMUTIL=$ac_ct_DSYMUTIL
  5723. fi
  5724. else
  5725. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5726. fi
  5727. if test -n "$ac_tool_prefix"; then
  5728. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5729. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5731. $as_echo_n "checking for $ac_word... " >&6; }
  5732. if ${ac_cv_prog_NMEDIT+:} false; then :
  5733. $as_echo_n "(cached) " >&6
  5734. else
  5735. if test -n "$NMEDIT"; then
  5736. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5737. else
  5738. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5739. for as_dir in $PATH
  5740. do
  5741. IFS=$as_save_IFS
  5742. test -z "$as_dir" && as_dir=.
  5743. for ac_exec_ext in '' $ac_executable_extensions; do
  5744. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5745. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5746. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5747. break 2
  5748. fi
  5749. done
  5750. done
  5751. IFS=$as_save_IFS
  5752. fi
  5753. fi
  5754. NMEDIT=$ac_cv_prog_NMEDIT
  5755. if test -n "$NMEDIT"; then
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5757. $as_echo "$NMEDIT" >&6; }
  5758. else
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5760. $as_echo "no" >&6; }
  5761. fi
  5762. fi
  5763. if test -z "$ac_cv_prog_NMEDIT"; then
  5764. ac_ct_NMEDIT=$NMEDIT
  5765. # Extract the first word of "nmedit", so it can be a program name with args.
  5766. set dummy nmedit; ac_word=$2
  5767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5768. $as_echo_n "checking for $ac_word... " >&6; }
  5769. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5770. $as_echo_n "(cached) " >&6
  5771. else
  5772. if test -n "$ac_ct_NMEDIT"; then
  5773. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5774. else
  5775. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5776. for as_dir in $PATH
  5777. do
  5778. IFS=$as_save_IFS
  5779. test -z "$as_dir" && as_dir=.
  5780. for ac_exec_ext in '' $ac_executable_extensions; do
  5781. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5782. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5783. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5784. break 2
  5785. fi
  5786. done
  5787. done
  5788. IFS=$as_save_IFS
  5789. fi
  5790. fi
  5791. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5792. if test -n "$ac_ct_NMEDIT"; then
  5793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5794. $as_echo "$ac_ct_NMEDIT" >&6; }
  5795. else
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5797. $as_echo "no" >&6; }
  5798. fi
  5799. if test "x$ac_ct_NMEDIT" = x; then
  5800. NMEDIT=":"
  5801. else
  5802. case $cross_compiling:$ac_tool_warned in
  5803. yes:)
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5805. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5806. ac_tool_warned=yes ;;
  5807. esac
  5808. NMEDIT=$ac_ct_NMEDIT
  5809. fi
  5810. else
  5811. NMEDIT="$ac_cv_prog_NMEDIT"
  5812. fi
  5813. if test -n "$ac_tool_prefix"; then
  5814. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5815. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5817. $as_echo_n "checking for $ac_word... " >&6; }
  5818. if ${ac_cv_prog_LIPO+:} false; then :
  5819. $as_echo_n "(cached) " >&6
  5820. else
  5821. if test -n "$LIPO"; then
  5822. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5823. else
  5824. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5825. for as_dir in $PATH
  5826. do
  5827. IFS=$as_save_IFS
  5828. test -z "$as_dir" && as_dir=.
  5829. for ac_exec_ext in '' $ac_executable_extensions; do
  5830. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5831. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5832. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5833. break 2
  5834. fi
  5835. done
  5836. done
  5837. IFS=$as_save_IFS
  5838. fi
  5839. fi
  5840. LIPO=$ac_cv_prog_LIPO
  5841. if test -n "$LIPO"; then
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5843. $as_echo "$LIPO" >&6; }
  5844. else
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5846. $as_echo "no" >&6; }
  5847. fi
  5848. fi
  5849. if test -z "$ac_cv_prog_LIPO"; then
  5850. ac_ct_LIPO=$LIPO
  5851. # Extract the first word of "lipo", so it can be a program name with args.
  5852. set dummy lipo; ac_word=$2
  5853. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5854. $as_echo_n "checking for $ac_word... " >&6; }
  5855. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5856. $as_echo_n "(cached) " >&6
  5857. else
  5858. if test -n "$ac_ct_LIPO"; then
  5859. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5860. else
  5861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5862. for as_dir in $PATH
  5863. do
  5864. IFS=$as_save_IFS
  5865. test -z "$as_dir" && as_dir=.
  5866. for ac_exec_ext in '' $ac_executable_extensions; do
  5867. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5868. ac_cv_prog_ac_ct_LIPO="lipo"
  5869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5870. break 2
  5871. fi
  5872. done
  5873. done
  5874. IFS=$as_save_IFS
  5875. fi
  5876. fi
  5877. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5878. if test -n "$ac_ct_LIPO"; then
  5879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5880. $as_echo "$ac_ct_LIPO" >&6; }
  5881. else
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5883. $as_echo "no" >&6; }
  5884. fi
  5885. if test "x$ac_ct_LIPO" = x; then
  5886. LIPO=":"
  5887. else
  5888. case $cross_compiling:$ac_tool_warned in
  5889. yes:)
  5890. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5891. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5892. ac_tool_warned=yes ;;
  5893. esac
  5894. LIPO=$ac_ct_LIPO
  5895. fi
  5896. else
  5897. LIPO="$ac_cv_prog_LIPO"
  5898. fi
  5899. if test -n "$ac_tool_prefix"; then
  5900. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5901. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5903. $as_echo_n "checking for $ac_word... " >&6; }
  5904. if ${ac_cv_prog_OTOOL+:} false; then :
  5905. $as_echo_n "(cached) " >&6
  5906. else
  5907. if test -n "$OTOOL"; then
  5908. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5909. else
  5910. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5911. for as_dir in $PATH
  5912. do
  5913. IFS=$as_save_IFS
  5914. test -z "$as_dir" && as_dir=.
  5915. for ac_exec_ext in '' $ac_executable_extensions; do
  5916. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5917. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5918. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5919. break 2
  5920. fi
  5921. done
  5922. done
  5923. IFS=$as_save_IFS
  5924. fi
  5925. fi
  5926. OTOOL=$ac_cv_prog_OTOOL
  5927. if test -n "$OTOOL"; then
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5929. $as_echo "$OTOOL" >&6; }
  5930. else
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5932. $as_echo "no" >&6; }
  5933. fi
  5934. fi
  5935. if test -z "$ac_cv_prog_OTOOL"; then
  5936. ac_ct_OTOOL=$OTOOL
  5937. # Extract the first word of "otool", so it can be a program name with args.
  5938. set dummy otool; ac_word=$2
  5939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5940. $as_echo_n "checking for $ac_word... " >&6; }
  5941. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5942. $as_echo_n "(cached) " >&6
  5943. else
  5944. if test -n "$ac_ct_OTOOL"; then
  5945. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5946. else
  5947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5948. for as_dir in $PATH
  5949. do
  5950. IFS=$as_save_IFS
  5951. test -z "$as_dir" && as_dir=.
  5952. for ac_exec_ext in '' $ac_executable_extensions; do
  5953. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5954. ac_cv_prog_ac_ct_OTOOL="otool"
  5955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5956. break 2
  5957. fi
  5958. done
  5959. done
  5960. IFS=$as_save_IFS
  5961. fi
  5962. fi
  5963. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5964. if test -n "$ac_ct_OTOOL"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5966. $as_echo "$ac_ct_OTOOL" >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5969. $as_echo "no" >&6; }
  5970. fi
  5971. if test "x$ac_ct_OTOOL" = x; then
  5972. OTOOL=":"
  5973. else
  5974. case $cross_compiling:$ac_tool_warned in
  5975. yes:)
  5976. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5977. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5978. ac_tool_warned=yes ;;
  5979. esac
  5980. OTOOL=$ac_ct_OTOOL
  5981. fi
  5982. else
  5983. OTOOL="$ac_cv_prog_OTOOL"
  5984. fi
  5985. if test -n "$ac_tool_prefix"; then
  5986. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5987. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5989. $as_echo_n "checking for $ac_word... " >&6; }
  5990. if ${ac_cv_prog_OTOOL64+:} false; then :
  5991. $as_echo_n "(cached) " >&6
  5992. else
  5993. if test -n "$OTOOL64"; then
  5994. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5995. else
  5996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5997. for as_dir in $PATH
  5998. do
  5999. IFS=$as_save_IFS
  6000. test -z "$as_dir" && as_dir=.
  6001. for ac_exec_ext in '' $ac_executable_extensions; do
  6002. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6003. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6005. break 2
  6006. fi
  6007. done
  6008. done
  6009. IFS=$as_save_IFS
  6010. fi
  6011. fi
  6012. OTOOL64=$ac_cv_prog_OTOOL64
  6013. if test -n "$OTOOL64"; then
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6015. $as_echo "$OTOOL64" >&6; }
  6016. else
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6018. $as_echo "no" >&6; }
  6019. fi
  6020. fi
  6021. if test -z "$ac_cv_prog_OTOOL64"; then
  6022. ac_ct_OTOOL64=$OTOOL64
  6023. # Extract the first word of "otool64", so it can be a program name with args.
  6024. set dummy otool64; ac_word=$2
  6025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6026. $as_echo_n "checking for $ac_word... " >&6; }
  6027. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6028. $as_echo_n "(cached) " >&6
  6029. else
  6030. if test -n "$ac_ct_OTOOL64"; then
  6031. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6032. else
  6033. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6034. for as_dir in $PATH
  6035. do
  6036. IFS=$as_save_IFS
  6037. test -z "$as_dir" && as_dir=.
  6038. for ac_exec_ext in '' $ac_executable_extensions; do
  6039. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6040. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6041. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6042. break 2
  6043. fi
  6044. done
  6045. done
  6046. IFS=$as_save_IFS
  6047. fi
  6048. fi
  6049. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6050. if test -n "$ac_ct_OTOOL64"; then
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6052. $as_echo "$ac_ct_OTOOL64" >&6; }
  6053. else
  6054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6055. $as_echo "no" >&6; }
  6056. fi
  6057. if test "x$ac_ct_OTOOL64" = x; then
  6058. OTOOL64=":"
  6059. else
  6060. case $cross_compiling:$ac_tool_warned in
  6061. yes:)
  6062. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6063. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6064. ac_tool_warned=yes ;;
  6065. esac
  6066. OTOOL64=$ac_ct_OTOOL64
  6067. fi
  6068. else
  6069. OTOOL64="$ac_cv_prog_OTOOL64"
  6070. fi
  6071. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6072. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6073. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6074. $as_echo_n "(cached) " >&6
  6075. else
  6076. lt_cv_apple_cc_single_mod=no
  6077. if test -z "${LT_MULTI_MODULE}"; then
  6078. # By default we will add the -single_module flag. You can override
  6079. # by either setting the environment variable LT_MULTI_MODULE
  6080. # non-empty at configure time, or by adding -multi_module to the
  6081. # link flags.
  6082. rm -rf libconftest.dylib*
  6083. echo "int foo(void){return 1;}" > conftest.c
  6084. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6085. -dynamiclib -Wl,-single_module conftest.c" >&5
  6086. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6087. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6088. _lt_result=$?
  6089. # If there is a non-empty error log, and "single_module"
  6090. # appears in it, assume the flag caused a linker warning
  6091. if test -s conftest.err && $GREP single_module conftest.err; then
  6092. cat conftest.err >&5
  6093. # Otherwise, if the output was created with a 0 exit code from
  6094. # the compiler, it worked.
  6095. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6096. lt_cv_apple_cc_single_mod=yes
  6097. else
  6098. cat conftest.err >&5
  6099. fi
  6100. rm -rf libconftest.dylib*
  6101. rm -f conftest.*
  6102. fi
  6103. fi
  6104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6105. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6107. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6108. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6109. $as_echo_n "(cached) " >&6
  6110. else
  6111. lt_cv_ld_exported_symbols_list=no
  6112. save_LDFLAGS=$LDFLAGS
  6113. echo "_main" > conftest.sym
  6114. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6115. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6116. /* end confdefs.h. */
  6117. int
  6118. main ()
  6119. {
  6120. ;
  6121. return 0;
  6122. }
  6123. _ACEOF
  6124. if ac_fn_c_try_link "$LINENO"; then :
  6125. lt_cv_ld_exported_symbols_list=yes
  6126. else
  6127. lt_cv_ld_exported_symbols_list=no
  6128. fi
  6129. rm -f core conftest.err conftest.$ac_objext \
  6130. conftest$ac_exeext conftest.$ac_ext
  6131. LDFLAGS="$save_LDFLAGS"
  6132. fi
  6133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6134. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6136. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6137. if ${lt_cv_ld_force_load+:} false; then :
  6138. $as_echo_n "(cached) " >&6
  6139. else
  6140. lt_cv_ld_force_load=no
  6141. cat > conftest.c << _LT_EOF
  6142. int forced_loaded() { return 2;}
  6143. _LT_EOF
  6144. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6145. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6146. echo "$AR cru libconftest.a conftest.o" >&5
  6147. $AR cru libconftest.a conftest.o 2>&5
  6148. echo "$RANLIB libconftest.a" >&5
  6149. $RANLIB libconftest.a 2>&5
  6150. cat > conftest.c << _LT_EOF
  6151. int main() { return 0;}
  6152. _LT_EOF
  6153. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6154. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6155. _lt_result=$?
  6156. if test -s conftest.err && $GREP force_load conftest.err; then
  6157. cat conftest.err >&5
  6158. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6159. lt_cv_ld_force_load=yes
  6160. else
  6161. cat conftest.err >&5
  6162. fi
  6163. rm -f conftest.err libconftest.a conftest conftest.c
  6164. rm -rf conftest.dSYM
  6165. fi
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6167. $as_echo "$lt_cv_ld_force_load" >&6; }
  6168. case $host_os in
  6169. rhapsody* | darwin1.[012])
  6170. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6171. darwin1.*)
  6172. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6173. darwin*) # darwin 5.x on
  6174. # if running on 10.5 or later, the deployment target defaults
  6175. # to the OS version, if on x86, and 10.4, the deployment
  6176. # target defaults to 10.4. Don't you love it?
  6177. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6178. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6179. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6180. 10.[012]*)
  6181. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6182. 10.*)
  6183. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6184. esac
  6185. ;;
  6186. esac
  6187. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6188. _lt_dar_single_mod='$single_module'
  6189. fi
  6190. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6191. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6192. else
  6193. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6194. fi
  6195. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6196. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6197. else
  6198. _lt_dsymutil=
  6199. fi
  6200. ;;
  6201. esac
  6202. ac_ext=c
  6203. ac_cpp='$CPP $CPPFLAGS'
  6204. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6205. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6206. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6208. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6209. # On Suns, sometimes $CPP names a directory.
  6210. if test -n "$CPP" && test -d "$CPP"; then
  6211. CPP=
  6212. fi
  6213. if test -z "$CPP"; then
  6214. if ${ac_cv_prog_CPP+:} false; then :
  6215. $as_echo_n "(cached) " >&6
  6216. else
  6217. # Double quotes because CPP needs to be expanded
  6218. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6219. do
  6220. ac_preproc_ok=false
  6221. for ac_c_preproc_warn_flag in '' yes
  6222. do
  6223. # Use a header file that comes with gcc, so configuring glibc
  6224. # with a fresh cross-compiler works.
  6225. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6226. # <limits.h> exists even on freestanding compilers.
  6227. # On the NeXT, cc -E runs the code through the compiler's parser,
  6228. # not just through cpp. "Syntax error" is here to catch this case.
  6229. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6230. /* end confdefs.h. */
  6231. #ifdef __STDC__
  6232. # include <limits.h>
  6233. #else
  6234. # include <assert.h>
  6235. #endif
  6236. Syntax error
  6237. _ACEOF
  6238. if ac_fn_c_try_cpp "$LINENO"; then :
  6239. else
  6240. # Broken: fails on valid input.
  6241. continue
  6242. fi
  6243. rm -f conftest.err conftest.i conftest.$ac_ext
  6244. # OK, works on sane cases. Now check whether nonexistent headers
  6245. # can be detected and how.
  6246. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6247. /* end confdefs.h. */
  6248. #include <ac_nonexistent.h>
  6249. _ACEOF
  6250. if ac_fn_c_try_cpp "$LINENO"; then :
  6251. # Broken: success on invalid input.
  6252. continue
  6253. else
  6254. # Passes both tests.
  6255. ac_preproc_ok=:
  6256. break
  6257. fi
  6258. rm -f conftest.err conftest.i conftest.$ac_ext
  6259. done
  6260. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6261. rm -f conftest.i conftest.err conftest.$ac_ext
  6262. if $ac_preproc_ok; then :
  6263. break
  6264. fi
  6265. done
  6266. ac_cv_prog_CPP=$CPP
  6267. fi
  6268. CPP=$ac_cv_prog_CPP
  6269. else
  6270. ac_cv_prog_CPP=$CPP
  6271. fi
  6272. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6273. $as_echo "$CPP" >&6; }
  6274. ac_preproc_ok=false
  6275. for ac_c_preproc_warn_flag in '' yes
  6276. do
  6277. # Use a header file that comes with gcc, so configuring glibc
  6278. # with a fresh cross-compiler works.
  6279. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6280. # <limits.h> exists even on freestanding compilers.
  6281. # On the NeXT, cc -E runs the code through the compiler's parser,
  6282. # not just through cpp. "Syntax error" is here to catch this case.
  6283. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6284. /* end confdefs.h. */
  6285. #ifdef __STDC__
  6286. # include <limits.h>
  6287. #else
  6288. # include <assert.h>
  6289. #endif
  6290. Syntax error
  6291. _ACEOF
  6292. if ac_fn_c_try_cpp "$LINENO"; then :
  6293. else
  6294. # Broken: fails on valid input.
  6295. continue
  6296. fi
  6297. rm -f conftest.err conftest.i conftest.$ac_ext
  6298. # OK, works on sane cases. Now check whether nonexistent headers
  6299. # can be detected and how.
  6300. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6301. /* end confdefs.h. */
  6302. #include <ac_nonexistent.h>
  6303. _ACEOF
  6304. if ac_fn_c_try_cpp "$LINENO"; then :
  6305. # Broken: success on invalid input.
  6306. continue
  6307. else
  6308. # Passes both tests.
  6309. ac_preproc_ok=:
  6310. break
  6311. fi
  6312. rm -f conftest.err conftest.i conftest.$ac_ext
  6313. done
  6314. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6315. rm -f conftest.i conftest.err conftest.$ac_ext
  6316. if $ac_preproc_ok; then :
  6317. else
  6318. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6319. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6320. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6321. See \`config.log' for more details" "$LINENO" 5; }
  6322. fi
  6323. ac_ext=c
  6324. ac_cpp='$CPP $CPPFLAGS'
  6325. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6326. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6327. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6329. $as_echo_n "checking for ANSI C header files... " >&6; }
  6330. if ${ac_cv_header_stdc+:} false; then :
  6331. $as_echo_n "(cached) " >&6
  6332. else
  6333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6334. /* end confdefs.h. */
  6335. #include <stdlib.h>
  6336. #include <stdarg.h>
  6337. #include <string.h>
  6338. #include <float.h>
  6339. int
  6340. main ()
  6341. {
  6342. ;
  6343. return 0;
  6344. }
  6345. _ACEOF
  6346. if ac_fn_c_try_compile "$LINENO"; then :
  6347. ac_cv_header_stdc=yes
  6348. else
  6349. ac_cv_header_stdc=no
  6350. fi
  6351. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6352. if test $ac_cv_header_stdc = yes; then
  6353. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. #include <string.h>
  6357. _ACEOF
  6358. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6359. $EGREP "memchr" >/dev/null 2>&1; then :
  6360. else
  6361. ac_cv_header_stdc=no
  6362. fi
  6363. rm -f conftest*
  6364. fi
  6365. if test $ac_cv_header_stdc = yes; then
  6366. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6368. /* end confdefs.h. */
  6369. #include <stdlib.h>
  6370. _ACEOF
  6371. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6372. $EGREP "free" >/dev/null 2>&1; then :
  6373. else
  6374. ac_cv_header_stdc=no
  6375. fi
  6376. rm -f conftest*
  6377. fi
  6378. if test $ac_cv_header_stdc = yes; then
  6379. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6380. if test "$cross_compiling" = yes; then :
  6381. :
  6382. else
  6383. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6384. /* end confdefs.h. */
  6385. #include <ctype.h>
  6386. #include <stdlib.h>
  6387. #if ((' ' & 0x0FF) == 0x020)
  6388. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6389. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6390. #else
  6391. # define ISLOWER(c) \
  6392. (('a' <= (c) && (c) <= 'i') \
  6393. || ('j' <= (c) && (c) <= 'r') \
  6394. || ('s' <= (c) && (c) <= 'z'))
  6395. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6396. #endif
  6397. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6398. int
  6399. main ()
  6400. {
  6401. int i;
  6402. for (i = 0; i < 256; i++)
  6403. if (XOR (islower (i), ISLOWER (i))
  6404. || toupper (i) != TOUPPER (i))
  6405. return 2;
  6406. return 0;
  6407. }
  6408. _ACEOF
  6409. if ac_fn_c_try_run "$LINENO"; then :
  6410. else
  6411. ac_cv_header_stdc=no
  6412. fi
  6413. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6414. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6415. fi
  6416. fi
  6417. fi
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6419. $as_echo "$ac_cv_header_stdc" >&6; }
  6420. if test $ac_cv_header_stdc = yes; then
  6421. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6422. fi
  6423. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6424. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6425. inttypes.h stdint.h unistd.h
  6426. do :
  6427. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6428. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6429. "
  6430. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6431. cat >>confdefs.h <<_ACEOF
  6432. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6433. _ACEOF
  6434. fi
  6435. done
  6436. for ac_header in dlfcn.h
  6437. do :
  6438. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6439. "
  6440. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6441. cat >>confdefs.h <<_ACEOF
  6442. #define HAVE_DLFCN_H 1
  6443. _ACEOF
  6444. fi
  6445. done
  6446. # Set options
  6447. enable_dlopen=no
  6448. enable_win32_dll=no
  6449. # Check whether --enable-shared was given.
  6450. if test "${enable_shared+set}" = set; then :
  6451. enableval=$enable_shared; p=${PACKAGE-default}
  6452. case $enableval in
  6453. yes) enable_shared=yes ;;
  6454. no) enable_shared=no ;;
  6455. *)
  6456. enable_shared=no
  6457. # Look at the argument we got. We use all the common list separators.
  6458. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6459. for pkg in $enableval; do
  6460. IFS="$lt_save_ifs"
  6461. if test "X$pkg" = "X$p"; then
  6462. enable_shared=yes
  6463. fi
  6464. done
  6465. IFS="$lt_save_ifs"
  6466. ;;
  6467. esac
  6468. else
  6469. enable_shared=yes
  6470. fi
  6471. # Check whether --enable-static was given.
  6472. if test "${enable_static+set}" = set; then :
  6473. enableval=$enable_static; p=${PACKAGE-default}
  6474. case $enableval in
  6475. yes) enable_static=yes ;;
  6476. no) enable_static=no ;;
  6477. *)
  6478. enable_static=no
  6479. # Look at the argument we got. We use all the common list separators.
  6480. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6481. for pkg in $enableval; do
  6482. IFS="$lt_save_ifs"
  6483. if test "X$pkg" = "X$p"; then
  6484. enable_static=yes
  6485. fi
  6486. done
  6487. IFS="$lt_save_ifs"
  6488. ;;
  6489. esac
  6490. else
  6491. enable_static=yes
  6492. fi
  6493. # Check whether --with-pic was given.
  6494. if test "${with_pic+set}" = set; then :
  6495. withval=$with_pic; lt_p=${PACKAGE-default}
  6496. case $withval in
  6497. yes|no) pic_mode=$withval ;;
  6498. *)
  6499. pic_mode=default
  6500. # Look at the argument we got. We use all the common list separators.
  6501. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6502. for lt_pkg in $withval; do
  6503. IFS="$lt_save_ifs"
  6504. if test "X$lt_pkg" = "X$lt_p"; then
  6505. pic_mode=yes
  6506. fi
  6507. done
  6508. IFS="$lt_save_ifs"
  6509. ;;
  6510. esac
  6511. else
  6512. pic_mode=default
  6513. fi
  6514. test -z "$pic_mode" && pic_mode=default
  6515. # Check whether --enable-fast-install was given.
  6516. if test "${enable_fast_install+set}" = set; then :
  6517. enableval=$enable_fast_install; p=${PACKAGE-default}
  6518. case $enableval in
  6519. yes) enable_fast_install=yes ;;
  6520. no) enable_fast_install=no ;;
  6521. *)
  6522. enable_fast_install=no
  6523. # Look at the argument we got. We use all the common list separators.
  6524. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6525. for pkg in $enableval; do
  6526. IFS="$lt_save_ifs"
  6527. if test "X$pkg" = "X$p"; then
  6528. enable_fast_install=yes
  6529. fi
  6530. done
  6531. IFS="$lt_save_ifs"
  6532. ;;
  6533. esac
  6534. else
  6535. enable_fast_install=yes
  6536. fi
  6537. # This can be used to rebuild libtool when needed
  6538. LIBTOOL_DEPS="$ltmain"
  6539. # Always use our own libtool.
  6540. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6541. test -z "$LN_S" && LN_S="ln -s"
  6542. if test -n "${ZSH_VERSION+set}" ; then
  6543. setopt NO_GLOB_SUBST
  6544. fi
  6545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6546. $as_echo_n "checking for objdir... " >&6; }
  6547. if ${lt_cv_objdir+:} false; then :
  6548. $as_echo_n "(cached) " >&6
  6549. else
  6550. rm -f .libs 2>/dev/null
  6551. mkdir .libs 2>/dev/null
  6552. if test -d .libs; then
  6553. lt_cv_objdir=.libs
  6554. else
  6555. # MS-DOS does not allow filenames that begin with a dot.
  6556. lt_cv_objdir=_libs
  6557. fi
  6558. rmdir .libs 2>/dev/null
  6559. fi
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6561. $as_echo "$lt_cv_objdir" >&6; }
  6562. objdir=$lt_cv_objdir
  6563. cat >>confdefs.h <<_ACEOF
  6564. #define LT_OBJDIR "$lt_cv_objdir/"
  6565. _ACEOF
  6566. case $host_os in
  6567. aix3*)
  6568. # AIX sometimes has problems with the GCC collect2 program. For some
  6569. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6570. # vanish in a puff of smoke.
  6571. if test "X${COLLECT_NAMES+set}" != Xset; then
  6572. COLLECT_NAMES=
  6573. export COLLECT_NAMES
  6574. fi
  6575. ;;
  6576. esac
  6577. # Global variables:
  6578. ofile=libtool
  6579. can_build_shared=yes
  6580. # All known linkers require a `.a' archive for static linking (except MSVC,
  6581. # which needs '.lib').
  6582. libext=a
  6583. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6584. old_CC="$CC"
  6585. old_CFLAGS="$CFLAGS"
  6586. # Set sane defaults for various variables
  6587. test -z "$CC" && CC=cc
  6588. test -z "$LTCC" && LTCC=$CC
  6589. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6590. test -z "$LD" && LD=ld
  6591. test -z "$ac_objext" && ac_objext=o
  6592. for cc_temp in $compiler""; do
  6593. case $cc_temp in
  6594. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6595. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6596. \-*) ;;
  6597. *) break;;
  6598. esac
  6599. done
  6600. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6601. # Only perform the check for file, if the check method requires it
  6602. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6603. case $deplibs_check_method in
  6604. file_magic*)
  6605. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6607. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6608. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6609. $as_echo_n "(cached) " >&6
  6610. else
  6611. case $MAGIC_CMD in
  6612. [\\/*] | ?:[\\/]*)
  6613. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6614. ;;
  6615. *)
  6616. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6617. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6618. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6619. for ac_dir in $ac_dummy; do
  6620. IFS="$lt_save_ifs"
  6621. test -z "$ac_dir" && ac_dir=.
  6622. if test -f $ac_dir/${ac_tool_prefix}file; then
  6623. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6624. if test -n "$file_magic_test_file"; then
  6625. case $deplibs_check_method in
  6626. "file_magic "*)
  6627. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6628. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6629. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6630. $EGREP "$file_magic_regex" > /dev/null; then
  6631. :
  6632. else
  6633. cat <<_LT_EOF 1>&2
  6634. *** Warning: the command libtool uses to detect shared libraries,
  6635. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6636. *** The result is that libtool may fail to recognize shared libraries
  6637. *** as such. This will affect the creation of libtool libraries that
  6638. *** depend on shared libraries, but programs linked with such libtool
  6639. *** libraries will work regardless of this problem. Nevertheless, you
  6640. *** may want to report the problem to your system manager and/or to
  6641. *** bug-libtool@gnu.org
  6642. _LT_EOF
  6643. fi ;;
  6644. esac
  6645. fi
  6646. break
  6647. fi
  6648. done
  6649. IFS="$lt_save_ifs"
  6650. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6651. ;;
  6652. esac
  6653. fi
  6654. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6655. if test -n "$MAGIC_CMD"; then
  6656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6657. $as_echo "$MAGIC_CMD" >&6; }
  6658. else
  6659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6660. $as_echo "no" >&6; }
  6661. fi
  6662. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6663. if test -n "$ac_tool_prefix"; then
  6664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6665. $as_echo_n "checking for file... " >&6; }
  6666. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6667. $as_echo_n "(cached) " >&6
  6668. else
  6669. case $MAGIC_CMD in
  6670. [\\/*] | ?:[\\/]*)
  6671. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6672. ;;
  6673. *)
  6674. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6675. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6676. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6677. for ac_dir in $ac_dummy; do
  6678. IFS="$lt_save_ifs"
  6679. test -z "$ac_dir" && ac_dir=.
  6680. if test -f $ac_dir/file; then
  6681. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6682. if test -n "$file_magic_test_file"; then
  6683. case $deplibs_check_method in
  6684. "file_magic "*)
  6685. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6686. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6687. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6688. $EGREP "$file_magic_regex" > /dev/null; then
  6689. :
  6690. else
  6691. cat <<_LT_EOF 1>&2
  6692. *** Warning: the command libtool uses to detect shared libraries,
  6693. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6694. *** The result is that libtool may fail to recognize shared libraries
  6695. *** as such. This will affect the creation of libtool libraries that
  6696. *** depend on shared libraries, but programs linked with such libtool
  6697. *** libraries will work regardless of this problem. Nevertheless, you
  6698. *** may want to report the problem to your system manager and/or to
  6699. *** bug-libtool@gnu.org
  6700. _LT_EOF
  6701. fi ;;
  6702. esac
  6703. fi
  6704. break
  6705. fi
  6706. done
  6707. IFS="$lt_save_ifs"
  6708. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6709. ;;
  6710. esac
  6711. fi
  6712. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6713. if test -n "$MAGIC_CMD"; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6715. $as_echo "$MAGIC_CMD" >&6; }
  6716. else
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. fi
  6720. else
  6721. MAGIC_CMD=:
  6722. fi
  6723. fi
  6724. fi
  6725. ;;
  6726. esac
  6727. # Use C for the default configuration in the libtool script
  6728. lt_save_CC="$CC"
  6729. ac_ext=c
  6730. ac_cpp='$CPP $CPPFLAGS'
  6731. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6732. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6733. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6734. # Source file extension for C test sources.
  6735. ac_ext=c
  6736. # Object file extension for compiled C test sources.
  6737. objext=o
  6738. objext=$objext
  6739. # Code to be used in simple compile tests
  6740. lt_simple_compile_test_code="int some_variable = 0;"
  6741. # Code to be used in simple link tests
  6742. lt_simple_link_test_code='int main(){return(0);}'
  6743. # If no C compiler was specified, use CC.
  6744. LTCC=${LTCC-"$CC"}
  6745. # If no C compiler flags were specified, use CFLAGS.
  6746. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6747. # Allow CC to be a program name with arguments.
  6748. compiler=$CC
  6749. # Save the default compiler, since it gets overwritten when the other
  6750. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6751. compiler_DEFAULT=$CC
  6752. # save warnings/boilerplate of simple test code
  6753. ac_outfile=conftest.$ac_objext
  6754. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6755. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6756. _lt_compiler_boilerplate=`cat conftest.err`
  6757. $RM conftest*
  6758. ac_outfile=conftest.$ac_objext
  6759. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6760. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6761. _lt_linker_boilerplate=`cat conftest.err`
  6762. $RM -r conftest*
  6763. ## CAVEAT EMPTOR:
  6764. ## There is no encapsulation within the following macros, do not change
  6765. ## the running order or otherwise move them around unless you know exactly
  6766. ## what you are doing...
  6767. if test -n "$compiler"; then
  6768. lt_prog_compiler_no_builtin_flag=
  6769. if test "$GCC" = yes; then
  6770. case $cc_basename in
  6771. nvcc*)
  6772. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6773. *)
  6774. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6775. esac
  6776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6777. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6778. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6779. $as_echo_n "(cached) " >&6
  6780. else
  6781. lt_cv_prog_compiler_rtti_exceptions=no
  6782. ac_outfile=conftest.$ac_objext
  6783. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6784. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6785. # Insert the option either (1) after the last *FLAGS variable, or
  6786. # (2) before a word containing "conftest.", or (3) at the end.
  6787. # Note that $ac_compile itself does not contain backslashes and begins
  6788. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6789. # The option is referenced via a variable to avoid confusing sed.
  6790. lt_compile=`echo "$ac_compile" | $SED \
  6791. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6792. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6793. -e 's:$: $lt_compiler_flag:'`
  6794. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6795. (eval "$lt_compile" 2>conftest.err)
  6796. ac_status=$?
  6797. cat conftest.err >&5
  6798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6799. if (exit $ac_status) && test -s "$ac_outfile"; then
  6800. # The compiler can only warn and ignore the option if not recognized
  6801. # So say no if there are warnings other than the usual output.
  6802. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6803. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6804. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6805. lt_cv_prog_compiler_rtti_exceptions=yes
  6806. fi
  6807. fi
  6808. $RM conftest*
  6809. fi
  6810. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6811. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6812. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6813. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6814. else
  6815. :
  6816. fi
  6817. fi
  6818. lt_prog_compiler_wl=
  6819. lt_prog_compiler_pic=
  6820. lt_prog_compiler_static=
  6821. if test "$GCC" = yes; then
  6822. lt_prog_compiler_wl='-Wl,'
  6823. lt_prog_compiler_static='-static'
  6824. case $host_os in
  6825. aix*)
  6826. # All AIX code is PIC.
  6827. if test "$host_cpu" = ia64; then
  6828. # AIX 5 now supports IA64 processor
  6829. lt_prog_compiler_static='-Bstatic'
  6830. fi
  6831. ;;
  6832. amigaos*)
  6833. case $host_cpu in
  6834. powerpc)
  6835. # see comment about AmigaOS4 .so support
  6836. lt_prog_compiler_pic='-fPIC'
  6837. ;;
  6838. m68k)
  6839. # FIXME: we need at least 68020 code to build shared libraries, but
  6840. # adding the `-m68020' flag to GCC prevents building anything better,
  6841. # like `-m68040'.
  6842. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6843. ;;
  6844. esac
  6845. ;;
  6846. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6847. # PIC is the default for these OSes.
  6848. ;;
  6849. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6850. # This hack is so that the source file can tell whether it is being
  6851. # built for inclusion in a dll (and should export symbols for example).
  6852. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6853. # (--disable-auto-import) libraries
  6854. lt_prog_compiler_pic='-DDLL_EXPORT'
  6855. ;;
  6856. darwin* | rhapsody*)
  6857. # PIC is the default on this platform
  6858. # Common symbols not allowed in MH_DYLIB files
  6859. lt_prog_compiler_pic='-fno-common'
  6860. ;;
  6861. haiku*)
  6862. # PIC is the default for Haiku.
  6863. # The "-static" flag exists, but is broken.
  6864. lt_prog_compiler_static=
  6865. ;;
  6866. hpux*)
  6867. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6868. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6869. # sets the default TLS model and affects inlining.
  6870. case $host_cpu in
  6871. hppa*64*)
  6872. # +Z the default
  6873. ;;
  6874. *)
  6875. lt_prog_compiler_pic='-fPIC'
  6876. ;;
  6877. esac
  6878. ;;
  6879. interix[3-9]*)
  6880. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6881. # Instead, we relocate shared libraries at runtime.
  6882. ;;
  6883. msdosdjgpp*)
  6884. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6885. # on systems that don't support them.
  6886. lt_prog_compiler_can_build_shared=no
  6887. enable_shared=no
  6888. ;;
  6889. *nto* | *qnx*)
  6890. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6891. # it will coredump.
  6892. lt_prog_compiler_pic='-fPIC -shared'
  6893. ;;
  6894. sysv4*MP*)
  6895. if test -d /usr/nec; then
  6896. lt_prog_compiler_pic=-Kconform_pic
  6897. fi
  6898. ;;
  6899. *)
  6900. lt_prog_compiler_pic='-fPIC'
  6901. ;;
  6902. esac
  6903. case $cc_basename in
  6904. nvcc*) # Cuda Compiler Driver 2.2
  6905. lt_prog_compiler_wl='-Xlinker '
  6906. if test -n "$lt_prog_compiler_pic"; then
  6907. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6908. fi
  6909. ;;
  6910. esac
  6911. else
  6912. # PORTME Check for flag to pass linker flags through the system compiler.
  6913. case $host_os in
  6914. aix*)
  6915. lt_prog_compiler_wl='-Wl,'
  6916. if test "$host_cpu" = ia64; then
  6917. # AIX 5 now supports IA64 processor
  6918. lt_prog_compiler_static='-Bstatic'
  6919. else
  6920. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6921. fi
  6922. ;;
  6923. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6924. # This hack is so that the source file can tell whether it is being
  6925. # built for inclusion in a dll (and should export symbols for example).
  6926. lt_prog_compiler_pic='-DDLL_EXPORT'
  6927. ;;
  6928. hpux9* | hpux10* | hpux11*)
  6929. lt_prog_compiler_wl='-Wl,'
  6930. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6931. # not for PA HP-UX.
  6932. case $host_cpu in
  6933. hppa*64*|ia64*)
  6934. # +Z the default
  6935. ;;
  6936. *)
  6937. lt_prog_compiler_pic='+Z'
  6938. ;;
  6939. esac
  6940. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6941. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6942. ;;
  6943. irix5* | irix6* | nonstopux*)
  6944. lt_prog_compiler_wl='-Wl,'
  6945. # PIC (with -KPIC) is the default.
  6946. lt_prog_compiler_static='-non_shared'
  6947. ;;
  6948. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6949. case $cc_basename in
  6950. # old Intel for x86_64 which still supported -KPIC.
  6951. ecc*)
  6952. lt_prog_compiler_wl='-Wl,'
  6953. lt_prog_compiler_pic='-KPIC'
  6954. lt_prog_compiler_static='-static'
  6955. ;;
  6956. # icc used to be incompatible with GCC.
  6957. # ICC 10 doesn't accept -KPIC any more.
  6958. icc* | ifort*)
  6959. lt_prog_compiler_wl='-Wl,'
  6960. lt_prog_compiler_pic='-fPIC'
  6961. lt_prog_compiler_static='-static'
  6962. ;;
  6963. # Lahey Fortran 8.1.
  6964. lf95*)
  6965. lt_prog_compiler_wl='-Wl,'
  6966. lt_prog_compiler_pic='--shared'
  6967. lt_prog_compiler_static='--static'
  6968. ;;
  6969. nagfor*)
  6970. # NAG Fortran compiler
  6971. lt_prog_compiler_wl='-Wl,-Wl,,'
  6972. lt_prog_compiler_pic='-PIC'
  6973. lt_prog_compiler_static='-Bstatic'
  6974. ;;
  6975. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6976. # Portland Group compilers (*not* the Pentium gcc compiler,
  6977. # which looks to be a dead project)
  6978. lt_prog_compiler_wl='-Wl,'
  6979. lt_prog_compiler_pic='-fpic'
  6980. lt_prog_compiler_static='-Bstatic'
  6981. ;;
  6982. ccc*)
  6983. lt_prog_compiler_wl='-Wl,'
  6984. # All Alpha code is PIC.
  6985. lt_prog_compiler_static='-non_shared'
  6986. ;;
  6987. xl* | bgxl* | bgf* | mpixl*)
  6988. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6989. lt_prog_compiler_wl='-Wl,'
  6990. lt_prog_compiler_pic='-qpic'
  6991. lt_prog_compiler_static='-qstaticlink'
  6992. ;;
  6993. *)
  6994. case `$CC -V 2>&1 | sed 5q` in
  6995. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6996. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6997. lt_prog_compiler_pic='-KPIC'
  6998. lt_prog_compiler_static='-Bstatic'
  6999. lt_prog_compiler_wl=''
  7000. ;;
  7001. *Sun\ F* | *Sun*Fortran*)
  7002. lt_prog_compiler_pic='-KPIC'
  7003. lt_prog_compiler_static='-Bstatic'
  7004. lt_prog_compiler_wl='-Qoption ld '
  7005. ;;
  7006. *Sun\ C*)
  7007. # Sun C 5.9
  7008. lt_prog_compiler_pic='-KPIC'
  7009. lt_prog_compiler_static='-Bstatic'
  7010. lt_prog_compiler_wl='-Wl,'
  7011. ;;
  7012. *Intel*\ [CF]*Compiler*)
  7013. lt_prog_compiler_wl='-Wl,'
  7014. lt_prog_compiler_pic='-fPIC'
  7015. lt_prog_compiler_static='-static'
  7016. ;;
  7017. *Portland\ Group*)
  7018. lt_prog_compiler_wl='-Wl,'
  7019. lt_prog_compiler_pic='-fpic'
  7020. lt_prog_compiler_static='-Bstatic'
  7021. ;;
  7022. esac
  7023. ;;
  7024. esac
  7025. ;;
  7026. newsos6)
  7027. lt_prog_compiler_pic='-KPIC'
  7028. lt_prog_compiler_static='-Bstatic'
  7029. ;;
  7030. *nto* | *qnx*)
  7031. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7032. # it will coredump.
  7033. lt_prog_compiler_pic='-fPIC -shared'
  7034. ;;
  7035. osf3* | osf4* | osf5*)
  7036. lt_prog_compiler_wl='-Wl,'
  7037. # All OSF/1 code is PIC.
  7038. lt_prog_compiler_static='-non_shared'
  7039. ;;
  7040. rdos*)
  7041. lt_prog_compiler_static='-non_shared'
  7042. ;;
  7043. solaris*)
  7044. lt_prog_compiler_pic='-KPIC'
  7045. lt_prog_compiler_static='-Bstatic'
  7046. case $cc_basename in
  7047. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7048. lt_prog_compiler_wl='-Qoption ld ';;
  7049. *)
  7050. lt_prog_compiler_wl='-Wl,';;
  7051. esac
  7052. ;;
  7053. sunos4*)
  7054. lt_prog_compiler_wl='-Qoption ld '
  7055. lt_prog_compiler_pic='-PIC'
  7056. lt_prog_compiler_static='-Bstatic'
  7057. ;;
  7058. sysv4 | sysv4.2uw2* | sysv4.3*)
  7059. lt_prog_compiler_wl='-Wl,'
  7060. lt_prog_compiler_pic='-KPIC'
  7061. lt_prog_compiler_static='-Bstatic'
  7062. ;;
  7063. sysv4*MP*)
  7064. if test -d /usr/nec ;then
  7065. lt_prog_compiler_pic='-Kconform_pic'
  7066. lt_prog_compiler_static='-Bstatic'
  7067. fi
  7068. ;;
  7069. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7070. lt_prog_compiler_wl='-Wl,'
  7071. lt_prog_compiler_pic='-KPIC'
  7072. lt_prog_compiler_static='-Bstatic'
  7073. ;;
  7074. unicos*)
  7075. lt_prog_compiler_wl='-Wl,'
  7076. lt_prog_compiler_can_build_shared=no
  7077. ;;
  7078. uts4*)
  7079. lt_prog_compiler_pic='-pic'
  7080. lt_prog_compiler_static='-Bstatic'
  7081. ;;
  7082. *)
  7083. lt_prog_compiler_can_build_shared=no
  7084. ;;
  7085. esac
  7086. fi
  7087. case $host_os in
  7088. # For platforms which do not support PIC, -DPIC is meaningless:
  7089. *djgpp*)
  7090. lt_prog_compiler_pic=
  7091. ;;
  7092. *)
  7093. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7094. ;;
  7095. esac
  7096. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7097. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7098. if ${lt_cv_prog_compiler_pic+:} false; then :
  7099. $as_echo_n "(cached) " >&6
  7100. else
  7101. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7102. fi
  7103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7104. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7105. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7106. #
  7107. # Check to make sure the PIC flag actually works.
  7108. #
  7109. if test -n "$lt_prog_compiler_pic"; then
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7111. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7112. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7113. $as_echo_n "(cached) " >&6
  7114. else
  7115. lt_cv_prog_compiler_pic_works=no
  7116. ac_outfile=conftest.$ac_objext
  7117. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7118. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7119. # Insert the option either (1) after the last *FLAGS variable, or
  7120. # (2) before a word containing "conftest.", or (3) at the end.
  7121. # Note that $ac_compile itself does not contain backslashes and begins
  7122. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7123. # The option is referenced via a variable to avoid confusing sed.
  7124. lt_compile=`echo "$ac_compile" | $SED \
  7125. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7126. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7127. -e 's:$: $lt_compiler_flag:'`
  7128. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7129. (eval "$lt_compile" 2>conftest.err)
  7130. ac_status=$?
  7131. cat conftest.err >&5
  7132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7133. if (exit $ac_status) && test -s "$ac_outfile"; then
  7134. # The compiler can only warn and ignore the option if not recognized
  7135. # So say no if there are warnings other than the usual output.
  7136. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7137. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7138. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7139. lt_cv_prog_compiler_pic_works=yes
  7140. fi
  7141. fi
  7142. $RM conftest*
  7143. fi
  7144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7145. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7146. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7147. case $lt_prog_compiler_pic in
  7148. "" | " "*) ;;
  7149. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7150. esac
  7151. else
  7152. lt_prog_compiler_pic=
  7153. lt_prog_compiler_can_build_shared=no
  7154. fi
  7155. fi
  7156. #
  7157. # Check to make sure the static flag actually works.
  7158. #
  7159. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7161. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7162. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7163. $as_echo_n "(cached) " >&6
  7164. else
  7165. lt_cv_prog_compiler_static_works=no
  7166. save_LDFLAGS="$LDFLAGS"
  7167. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7168. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7169. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7170. # The linker can only warn and ignore the option if not recognized
  7171. # So say no if there are warnings
  7172. if test -s conftest.err; then
  7173. # Append any errors to the config.log.
  7174. cat conftest.err 1>&5
  7175. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7176. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7177. if diff conftest.exp conftest.er2 >/dev/null; then
  7178. lt_cv_prog_compiler_static_works=yes
  7179. fi
  7180. else
  7181. lt_cv_prog_compiler_static_works=yes
  7182. fi
  7183. fi
  7184. $RM -r conftest*
  7185. LDFLAGS="$save_LDFLAGS"
  7186. fi
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7188. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7189. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7190. :
  7191. else
  7192. lt_prog_compiler_static=
  7193. fi
  7194. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7195. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7196. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7197. $as_echo_n "(cached) " >&6
  7198. else
  7199. lt_cv_prog_compiler_c_o=no
  7200. $RM -r conftest 2>/dev/null
  7201. mkdir conftest
  7202. cd conftest
  7203. mkdir out
  7204. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7205. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7206. # Insert the option either (1) after the last *FLAGS variable, or
  7207. # (2) before a word containing "conftest.", or (3) at the end.
  7208. # Note that $ac_compile itself does not contain backslashes and begins
  7209. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7210. lt_compile=`echo "$ac_compile" | $SED \
  7211. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7212. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7213. -e 's:$: $lt_compiler_flag:'`
  7214. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7215. (eval "$lt_compile" 2>out/conftest.err)
  7216. ac_status=$?
  7217. cat out/conftest.err >&5
  7218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7219. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7220. then
  7221. # The compiler can only warn and ignore the option if not recognized
  7222. # So say no if there are warnings
  7223. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7224. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7225. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7226. lt_cv_prog_compiler_c_o=yes
  7227. fi
  7228. fi
  7229. chmod u+w . 2>&5
  7230. $RM conftest*
  7231. # SGI C++ compiler will create directory out/ii_files/ for
  7232. # template instantiation
  7233. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7234. $RM out/* && rmdir out
  7235. cd ..
  7236. $RM -r conftest
  7237. $RM conftest*
  7238. fi
  7239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7240. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7241. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7242. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7243. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7244. $as_echo_n "(cached) " >&6
  7245. else
  7246. lt_cv_prog_compiler_c_o=no
  7247. $RM -r conftest 2>/dev/null
  7248. mkdir conftest
  7249. cd conftest
  7250. mkdir out
  7251. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7252. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7253. # Insert the option either (1) after the last *FLAGS variable, or
  7254. # (2) before a word containing "conftest.", or (3) at the end.
  7255. # Note that $ac_compile itself does not contain backslashes and begins
  7256. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7257. lt_compile=`echo "$ac_compile" | $SED \
  7258. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7259. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7260. -e 's:$: $lt_compiler_flag:'`
  7261. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7262. (eval "$lt_compile" 2>out/conftest.err)
  7263. ac_status=$?
  7264. cat out/conftest.err >&5
  7265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7266. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7267. then
  7268. # The compiler can only warn and ignore the option if not recognized
  7269. # So say no if there are warnings
  7270. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7271. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7272. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7273. lt_cv_prog_compiler_c_o=yes
  7274. fi
  7275. fi
  7276. chmod u+w . 2>&5
  7277. $RM conftest*
  7278. # SGI C++ compiler will create directory out/ii_files/ for
  7279. # template instantiation
  7280. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7281. $RM out/* && rmdir out
  7282. cd ..
  7283. $RM -r conftest
  7284. $RM conftest*
  7285. fi
  7286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7287. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7288. hard_links="nottested"
  7289. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7290. # do not overwrite the value of need_locks provided by the user
  7291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7292. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7293. hard_links=yes
  7294. $RM conftest*
  7295. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7296. touch conftest.a
  7297. ln conftest.a conftest.b 2>&5 || hard_links=no
  7298. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7300. $as_echo "$hard_links" >&6; }
  7301. if test "$hard_links" = no; then
  7302. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7303. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7304. need_locks=warn
  7305. fi
  7306. else
  7307. need_locks=no
  7308. fi
  7309. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7310. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7311. runpath_var=
  7312. allow_undefined_flag=
  7313. always_export_symbols=no
  7314. archive_cmds=
  7315. archive_expsym_cmds=
  7316. compiler_needs_object=no
  7317. enable_shared_with_static_runtimes=no
  7318. export_dynamic_flag_spec=
  7319. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7320. hardcode_automatic=no
  7321. hardcode_direct=no
  7322. hardcode_direct_absolute=no
  7323. hardcode_libdir_flag_spec=
  7324. hardcode_libdir_separator=
  7325. hardcode_minus_L=no
  7326. hardcode_shlibpath_var=unsupported
  7327. inherit_rpath=no
  7328. link_all_deplibs=unknown
  7329. module_cmds=
  7330. module_expsym_cmds=
  7331. old_archive_from_new_cmds=
  7332. old_archive_from_expsyms_cmds=
  7333. thread_safe_flag_spec=
  7334. whole_archive_flag_spec=
  7335. # include_expsyms should be a list of space-separated symbols to be *always*
  7336. # included in the symbol list
  7337. include_expsyms=
  7338. # exclude_expsyms can be an extended regexp of symbols to exclude
  7339. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7340. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7341. # as well as any symbol that contains `d'.
  7342. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7343. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7344. # platforms (ab)use it in PIC code, but their linkers get confused if
  7345. # the symbol is explicitly referenced. Since portable code cannot
  7346. # rely on this symbol name, it's probably fine to never include it in
  7347. # preloaded symbol tables.
  7348. # Exclude shared library initialization/finalization symbols.
  7349. extract_expsyms_cmds=
  7350. case $host_os in
  7351. cygwin* | mingw* | pw32* | cegcc*)
  7352. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7353. # When not using gcc, we currently assume that we are using
  7354. # Microsoft Visual C++.
  7355. if test "$GCC" != yes; then
  7356. with_gnu_ld=no
  7357. fi
  7358. ;;
  7359. interix*)
  7360. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7361. with_gnu_ld=yes
  7362. ;;
  7363. openbsd*)
  7364. with_gnu_ld=no
  7365. ;;
  7366. linux* | k*bsd*-gnu | gnu*)
  7367. link_all_deplibs=no
  7368. ;;
  7369. esac
  7370. ld_shlibs=yes
  7371. # On some targets, GNU ld is compatible enough with the native linker
  7372. # that we're better off using the native interface for both.
  7373. lt_use_gnu_ld_interface=no
  7374. if test "$with_gnu_ld" = yes; then
  7375. case $host_os in
  7376. aix*)
  7377. # The AIX port of GNU ld has always aspired to compatibility
  7378. # with the native linker. However, as the warning in the GNU ld
  7379. # block says, versions before 2.19.5* couldn't really create working
  7380. # shared libraries, regardless of the interface used.
  7381. case `$LD -v 2>&1` in
  7382. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7383. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7384. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7385. *)
  7386. lt_use_gnu_ld_interface=yes
  7387. ;;
  7388. esac
  7389. ;;
  7390. *)
  7391. lt_use_gnu_ld_interface=yes
  7392. ;;
  7393. esac
  7394. fi
  7395. if test "$lt_use_gnu_ld_interface" = yes; then
  7396. # If archive_cmds runs LD, not CC, wlarc should be empty
  7397. wlarc='${wl}'
  7398. # Set some defaults for GNU ld with shared library support. These
  7399. # are reset later if shared libraries are not supported. Putting them
  7400. # here allows them to be overridden if necessary.
  7401. runpath_var=LD_RUN_PATH
  7402. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7403. export_dynamic_flag_spec='${wl}--export-dynamic'
  7404. # ancient GNU ld didn't support --whole-archive et. al.
  7405. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7406. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7407. else
  7408. whole_archive_flag_spec=
  7409. fi
  7410. supports_anon_versioning=no
  7411. case `$LD -v 2>&1` in
  7412. *GNU\ gold*) supports_anon_versioning=yes ;;
  7413. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7414. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7415. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7416. *\ 2.11.*) ;; # other 2.11 versions
  7417. *) supports_anon_versioning=yes ;;
  7418. esac
  7419. # See if GNU ld supports shared libraries.
  7420. case $host_os in
  7421. aix[3-9]*)
  7422. # On AIX/PPC, the GNU linker is very broken
  7423. if test "$host_cpu" != ia64; then
  7424. ld_shlibs=no
  7425. cat <<_LT_EOF 1>&2
  7426. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7427. *** to be unable to reliably create shared libraries on AIX.
  7428. *** Therefore, libtool is disabling shared libraries support. If you
  7429. *** really care for shared libraries, you may want to install binutils
  7430. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7431. *** You will then need to restart the configuration process.
  7432. _LT_EOF
  7433. fi
  7434. ;;
  7435. amigaos*)
  7436. case $host_cpu in
  7437. powerpc)
  7438. # see comment about AmigaOS4 .so support
  7439. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7440. archive_expsym_cmds=''
  7441. ;;
  7442. m68k)
  7443. 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)'
  7444. hardcode_libdir_flag_spec='-L$libdir'
  7445. hardcode_minus_L=yes
  7446. ;;
  7447. esac
  7448. ;;
  7449. beos*)
  7450. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7451. allow_undefined_flag=unsupported
  7452. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7453. # support --undefined. This deserves some investigation. FIXME
  7454. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7455. else
  7456. ld_shlibs=no
  7457. fi
  7458. ;;
  7459. cygwin* | mingw* | pw32* | cegcc*)
  7460. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7461. # as there is no search path for DLLs.
  7462. hardcode_libdir_flag_spec='-L$libdir'
  7463. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7464. allow_undefined_flag=unsupported
  7465. always_export_symbols=no
  7466. enable_shared_with_static_runtimes=yes
  7467. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  7468. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7469. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7470. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7471. # If the export-symbols file already is a .def file (1st line
  7472. # is EXPORTS), use it as is; otherwise, prepend...
  7473. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7474. cp $export_symbols $output_objdir/$soname.def;
  7475. else
  7476. echo EXPORTS > $output_objdir/$soname.def;
  7477. cat $export_symbols >> $output_objdir/$soname.def;
  7478. fi~
  7479. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7480. else
  7481. ld_shlibs=no
  7482. fi
  7483. ;;
  7484. haiku*)
  7485. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7486. link_all_deplibs=yes
  7487. ;;
  7488. interix[3-9]*)
  7489. hardcode_direct=no
  7490. hardcode_shlibpath_var=no
  7491. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7492. export_dynamic_flag_spec='${wl}-E'
  7493. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7494. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7495. # default) and relocated if they conflict, which is a slow very memory
  7496. # consuming and fragmenting process. To avoid this, we pick a random,
  7497. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7498. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7499. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7500. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7501. ;;
  7502. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7503. tmp_diet=no
  7504. if test "$host_os" = linux-dietlibc; then
  7505. case $cc_basename in
  7506. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7507. esac
  7508. fi
  7509. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7510. && test "$tmp_diet" = no
  7511. then
  7512. tmp_addflag=' $pic_flag'
  7513. tmp_sharedflag='-shared'
  7514. case $cc_basename,$host_cpu in
  7515. pgcc*) # Portland Group C compiler
  7516. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7517. tmp_addflag=' $pic_flag'
  7518. ;;
  7519. pgf77* | pgf90* | pgf95* | pgfortran*)
  7520. # Portland Group f77 and f90 compilers
  7521. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7522. tmp_addflag=' $pic_flag -Mnomain' ;;
  7523. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7524. tmp_addflag=' -i_dynamic' ;;
  7525. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7526. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7527. ifc* | ifort*) # Intel Fortran compiler
  7528. tmp_addflag=' -nofor_main' ;;
  7529. lf95*) # Lahey Fortran 8.1
  7530. whole_archive_flag_spec=
  7531. tmp_sharedflag='--shared' ;;
  7532. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7533. tmp_sharedflag='-qmkshrobj'
  7534. tmp_addflag= ;;
  7535. nvcc*) # Cuda Compiler Driver 2.2
  7536. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7537. compiler_needs_object=yes
  7538. ;;
  7539. esac
  7540. case `$CC -V 2>&1 | sed 5q` in
  7541. *Sun\ C*) # Sun C 5.9
  7542. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  7543. compiler_needs_object=yes
  7544. tmp_sharedflag='-G' ;;
  7545. *Sun\ F*) # Sun Fortran 8.3
  7546. tmp_sharedflag='-G' ;;
  7547. esac
  7548. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7549. if test "x$supports_anon_versioning" = xyes; then
  7550. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7551. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7552. echo "local: *; };" >> $output_objdir/$libname.ver~
  7553. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7554. fi
  7555. case $cc_basename in
  7556. xlf* | bgf* | bgxlf* | mpixlf*)
  7557. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7558. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7559. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7560. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7561. if test "x$supports_anon_versioning" = xyes; then
  7562. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7563. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7564. echo "local: *; };" >> $output_objdir/$libname.ver~
  7565. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7566. fi
  7567. ;;
  7568. esac
  7569. else
  7570. ld_shlibs=no
  7571. fi
  7572. ;;
  7573. netbsd* | netbsdelf*-gnu)
  7574. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7575. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7576. wlarc=
  7577. else
  7578. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7579. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7580. fi
  7581. ;;
  7582. solaris*)
  7583. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7584. ld_shlibs=no
  7585. cat <<_LT_EOF 1>&2
  7586. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7587. *** create shared libraries on Solaris systems. Therefore, libtool
  7588. *** is disabling shared libraries support. We urge you to upgrade GNU
  7589. *** binutils to release 2.9.1 or newer. Another option is to modify
  7590. *** your PATH or compiler configuration so that the native linker is
  7591. *** used, and then restart.
  7592. _LT_EOF
  7593. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7594. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7595. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7596. else
  7597. ld_shlibs=no
  7598. fi
  7599. ;;
  7600. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7601. case `$LD -v 2>&1` in
  7602. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7603. ld_shlibs=no
  7604. cat <<_LT_EOF 1>&2
  7605. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7606. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7607. *** is disabling shared libraries support. We urge you to upgrade GNU
  7608. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7609. *** your PATH or compiler configuration so that the native linker is
  7610. *** used, and then restart.
  7611. _LT_EOF
  7612. ;;
  7613. *)
  7614. # For security reasons, it is highly recommended that you always
  7615. # use absolute paths for naming shared libraries, and exclude the
  7616. # DT_RUNPATH tag from executables and libraries. But doing so
  7617. # requires that you compile everything twice, which is a pain.
  7618. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7619. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7620. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7621. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7622. else
  7623. ld_shlibs=no
  7624. fi
  7625. ;;
  7626. esac
  7627. ;;
  7628. sunos4*)
  7629. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7630. wlarc=
  7631. hardcode_direct=yes
  7632. hardcode_shlibpath_var=no
  7633. ;;
  7634. *)
  7635. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7636. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7637. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7638. else
  7639. ld_shlibs=no
  7640. fi
  7641. ;;
  7642. esac
  7643. if test "$ld_shlibs" = no; then
  7644. runpath_var=
  7645. hardcode_libdir_flag_spec=
  7646. export_dynamic_flag_spec=
  7647. whole_archive_flag_spec=
  7648. fi
  7649. else
  7650. # PORTME fill in a description of your system's linker (not GNU ld)
  7651. case $host_os in
  7652. aix3*)
  7653. allow_undefined_flag=unsupported
  7654. always_export_symbols=yes
  7655. 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'
  7656. # Note: this linker hardcodes the directories in LIBPATH if there
  7657. # are no directories specified by -L.
  7658. hardcode_minus_L=yes
  7659. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7660. # Neither direct hardcoding nor static linking is supported with a
  7661. # broken collect2.
  7662. hardcode_direct=unsupported
  7663. fi
  7664. ;;
  7665. aix[4-9]*)
  7666. if test "$host_cpu" = ia64; then
  7667. # On IA64, the linker does run time linking by default, so we don't
  7668. # have to do anything special.
  7669. aix_use_runtimelinking=no
  7670. exp_sym_flag='-Bexport'
  7671. no_entry_flag=""
  7672. else
  7673. # If we're using GNU nm, then we don't want the "-C" option.
  7674. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7675. # Also, AIX nm treats weak defined symbols like other global
  7676. # defined symbols, whereas GNU nm marks them as "W".
  7677. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7678. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7679. else
  7680. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7681. fi
  7682. aix_use_runtimelinking=no
  7683. # Test if we are trying to use run time linking or normal
  7684. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7685. # need to do runtime linking.
  7686. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7687. for ld_flag in $LDFLAGS; do
  7688. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7689. aix_use_runtimelinking=yes
  7690. break
  7691. fi
  7692. done
  7693. ;;
  7694. esac
  7695. exp_sym_flag='-bexport'
  7696. no_entry_flag='-bnoentry'
  7697. fi
  7698. # When large executables or shared objects are built, AIX ld can
  7699. # have problems creating the table of contents. If linking a library
  7700. # or program results in "error TOC overflow" add -mminimal-toc to
  7701. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7702. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7703. archive_cmds=''
  7704. hardcode_direct=yes
  7705. hardcode_direct_absolute=yes
  7706. hardcode_libdir_separator=':'
  7707. link_all_deplibs=yes
  7708. file_list_spec='${wl}-f,'
  7709. if test "$GCC" = yes; then
  7710. case $host_os in aix4.[012]|aix4.[012].*)
  7711. # We only want to do this on AIX 4.2 and lower, the check
  7712. # below for broken collect2 doesn't work under 4.3+
  7713. collect2name=`${CC} -print-prog-name=collect2`
  7714. if test -f "$collect2name" &&
  7715. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7716. then
  7717. # We have reworked collect2
  7718. :
  7719. else
  7720. # We have old collect2
  7721. hardcode_direct=unsupported
  7722. # It fails to find uninstalled libraries when the uninstalled
  7723. # path is not listed in the libpath. Setting hardcode_minus_L
  7724. # to unsupported forces relinking
  7725. hardcode_minus_L=yes
  7726. hardcode_libdir_flag_spec='-L$libdir'
  7727. hardcode_libdir_separator=
  7728. fi
  7729. ;;
  7730. esac
  7731. shared_flag='-shared'
  7732. if test "$aix_use_runtimelinking" = yes; then
  7733. shared_flag="$shared_flag "'${wl}-G'
  7734. fi
  7735. link_all_deplibs=no
  7736. else
  7737. # not using gcc
  7738. if test "$host_cpu" = ia64; then
  7739. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7740. # chokes on -Wl,-G. The following line is correct:
  7741. shared_flag='-G'
  7742. else
  7743. if test "$aix_use_runtimelinking" = yes; then
  7744. shared_flag='${wl}-G'
  7745. else
  7746. shared_flag='${wl}-bM:SRE'
  7747. fi
  7748. fi
  7749. fi
  7750. export_dynamic_flag_spec='${wl}-bexpall'
  7751. # It seems that -bexpall does not export symbols beginning with
  7752. # underscore (_), so it is better to generate a list of symbols to export.
  7753. always_export_symbols=yes
  7754. if test "$aix_use_runtimelinking" = yes; then
  7755. # Warning - without using the other runtime loading flags (-brtl),
  7756. # -berok will link without error, but may produce a broken library.
  7757. allow_undefined_flag='-berok'
  7758. # Determine the default libpath from the value encoded in an
  7759. # empty executable.
  7760. if test "${lt_cv_aix_libpath+set}" = set; then
  7761. aix_libpath=$lt_cv_aix_libpath
  7762. else
  7763. if ${lt_cv_aix_libpath_+:} false; then :
  7764. $as_echo_n "(cached) " >&6
  7765. else
  7766. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7767. /* end confdefs.h. */
  7768. int
  7769. main ()
  7770. {
  7771. ;
  7772. return 0;
  7773. }
  7774. _ACEOF
  7775. if ac_fn_c_try_link "$LINENO"; then :
  7776. lt_aix_libpath_sed='
  7777. /Import File Strings/,/^$/ {
  7778. /^0/ {
  7779. s/^0 *\([^ ]*\) *$/\1/
  7780. p
  7781. }
  7782. }'
  7783. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7784. # Check for a 64-bit object if we didn't find anything.
  7785. if test -z "$lt_cv_aix_libpath_"; then
  7786. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7787. fi
  7788. fi
  7789. rm -f core conftest.err conftest.$ac_objext \
  7790. conftest$ac_exeext conftest.$ac_ext
  7791. if test -z "$lt_cv_aix_libpath_"; then
  7792. lt_cv_aix_libpath_="/usr/lib:/lib"
  7793. fi
  7794. fi
  7795. aix_libpath=$lt_cv_aix_libpath_
  7796. fi
  7797. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7798. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  7799. else
  7800. if test "$host_cpu" = ia64; then
  7801. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7802. allow_undefined_flag="-z nodefs"
  7803. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  7804. else
  7805. # Determine the default libpath from the value encoded in an
  7806. # empty executable.
  7807. if test "${lt_cv_aix_libpath+set}" = set; then
  7808. aix_libpath=$lt_cv_aix_libpath
  7809. else
  7810. if ${lt_cv_aix_libpath_+:} false; then :
  7811. $as_echo_n "(cached) " >&6
  7812. else
  7813. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7814. /* end confdefs.h. */
  7815. int
  7816. main ()
  7817. {
  7818. ;
  7819. return 0;
  7820. }
  7821. _ACEOF
  7822. if ac_fn_c_try_link "$LINENO"; then :
  7823. lt_aix_libpath_sed='
  7824. /Import File Strings/,/^$/ {
  7825. /^0/ {
  7826. s/^0 *\([^ ]*\) *$/\1/
  7827. p
  7828. }
  7829. }'
  7830. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7831. # Check for a 64-bit object if we didn't find anything.
  7832. if test -z "$lt_cv_aix_libpath_"; then
  7833. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7834. fi
  7835. fi
  7836. rm -f core conftest.err conftest.$ac_objext \
  7837. conftest$ac_exeext conftest.$ac_ext
  7838. if test -z "$lt_cv_aix_libpath_"; then
  7839. lt_cv_aix_libpath_="/usr/lib:/lib"
  7840. fi
  7841. fi
  7842. aix_libpath=$lt_cv_aix_libpath_
  7843. fi
  7844. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7845. # Warning - without using the other run time loading flags,
  7846. # -berok will link without error, but may produce a broken library.
  7847. no_undefined_flag=' ${wl}-bernotok'
  7848. allow_undefined_flag=' ${wl}-berok'
  7849. if test "$with_gnu_ld" = yes; then
  7850. # We only use this code for GNU lds that support --whole-archive.
  7851. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7852. else
  7853. # Exported symbols can be pulled into shared objects from archives
  7854. whole_archive_flag_spec='$convenience'
  7855. fi
  7856. archive_cmds_need_lc=yes
  7857. # This is similar to how AIX traditionally builds its shared libraries.
  7858. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  7859. fi
  7860. fi
  7861. ;;
  7862. amigaos*)
  7863. case $host_cpu in
  7864. powerpc)
  7865. # see comment about AmigaOS4 .so support
  7866. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7867. archive_expsym_cmds=''
  7868. ;;
  7869. m68k)
  7870. 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)'
  7871. hardcode_libdir_flag_spec='-L$libdir'
  7872. hardcode_minus_L=yes
  7873. ;;
  7874. esac
  7875. ;;
  7876. bsdi[45]*)
  7877. export_dynamic_flag_spec=-rdynamic
  7878. ;;
  7879. cygwin* | mingw* | pw32* | cegcc*)
  7880. # When not using gcc, we currently assume that we are using
  7881. # Microsoft Visual C++.
  7882. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7883. # no search path for DLLs.
  7884. case $cc_basename in
  7885. cl*)
  7886. # Native MSVC
  7887. hardcode_libdir_flag_spec=' '
  7888. allow_undefined_flag=unsupported
  7889. always_export_symbols=yes
  7890. file_list_spec='@'
  7891. # Tell ltmain to make .lib files, not .a files.
  7892. libext=lib
  7893. # Tell ltmain to make .dll files, not .so files.
  7894. shrext_cmds=".dll"
  7895. # FIXME: Setting linknames here is a bad hack.
  7896. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7897. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7898. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7899. else
  7900. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7901. fi~
  7902. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7903. linknames='
  7904. # The linker will not automatically build a static lib if we build a DLL.
  7905. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7906. enable_shared_with_static_runtimes=yes
  7907. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7908. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7909. # Don't use ranlib
  7910. old_postinstall_cmds='chmod 644 $oldlib'
  7911. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7912. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7913. case $lt_outputfile in
  7914. *.exe|*.EXE) ;;
  7915. *)
  7916. lt_outputfile="$lt_outputfile.exe"
  7917. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7918. ;;
  7919. esac~
  7920. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7921. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7922. $RM "$lt_outputfile.manifest";
  7923. fi'
  7924. ;;
  7925. *)
  7926. # Assume MSVC wrapper
  7927. hardcode_libdir_flag_spec=' '
  7928. allow_undefined_flag=unsupported
  7929. # Tell ltmain to make .lib files, not .a files.
  7930. libext=lib
  7931. # Tell ltmain to make .dll files, not .so files.
  7932. shrext_cmds=".dll"
  7933. # FIXME: Setting linknames here is a bad hack.
  7934. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7935. # The linker will automatically build a .lib file if we build a DLL.
  7936. old_archive_from_new_cmds='true'
  7937. # FIXME: Should let the user specify the lib program.
  7938. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7939. enable_shared_with_static_runtimes=yes
  7940. ;;
  7941. esac
  7942. ;;
  7943. darwin* | rhapsody*)
  7944. archive_cmds_need_lc=no
  7945. hardcode_direct=no
  7946. hardcode_automatic=yes
  7947. hardcode_shlibpath_var=unsupported
  7948. if test "$lt_cv_ld_force_load" = "yes"; then
  7949. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  7950. else
  7951. whole_archive_flag_spec=''
  7952. fi
  7953. link_all_deplibs=yes
  7954. allow_undefined_flag="$_lt_dar_allow_undefined"
  7955. case $cc_basename in
  7956. ifort*) _lt_dar_can_shared=yes ;;
  7957. *) _lt_dar_can_shared=$GCC ;;
  7958. esac
  7959. if test "$_lt_dar_can_shared" = "yes"; then
  7960. output_verbose_link_cmd=func_echo_all
  7961. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7962. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7963. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  7964. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  7965. else
  7966. ld_shlibs=no
  7967. fi
  7968. ;;
  7969. dgux*)
  7970. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7971. hardcode_libdir_flag_spec='-L$libdir'
  7972. hardcode_shlibpath_var=no
  7973. ;;
  7974. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7975. # support. Future versions do this automatically, but an explicit c++rt0.o
  7976. # does not break anything, and helps significantly (at the cost of a little
  7977. # extra space).
  7978. freebsd2.2*)
  7979. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7980. hardcode_libdir_flag_spec='-R$libdir'
  7981. hardcode_direct=yes
  7982. hardcode_shlibpath_var=no
  7983. ;;
  7984. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7985. freebsd2.*)
  7986. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7987. hardcode_direct=yes
  7988. hardcode_minus_L=yes
  7989. hardcode_shlibpath_var=no
  7990. ;;
  7991. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7992. freebsd* | dragonfly*)
  7993. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7994. hardcode_libdir_flag_spec='-R$libdir'
  7995. hardcode_direct=yes
  7996. hardcode_shlibpath_var=no
  7997. ;;
  7998. hpux9*)
  7999. if test "$GCC" = yes; then
  8000. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8001. else
  8002. 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'
  8003. fi
  8004. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8005. hardcode_libdir_separator=:
  8006. hardcode_direct=yes
  8007. # hardcode_minus_L: Not really in the search PATH,
  8008. # but as the default location of the library.
  8009. hardcode_minus_L=yes
  8010. export_dynamic_flag_spec='${wl}-E'
  8011. ;;
  8012. hpux10*)
  8013. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8014. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8015. else
  8016. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8017. fi
  8018. if test "$with_gnu_ld" = no; then
  8019. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8020. hardcode_libdir_separator=:
  8021. hardcode_direct=yes
  8022. hardcode_direct_absolute=yes
  8023. export_dynamic_flag_spec='${wl}-E'
  8024. # hardcode_minus_L: Not really in the search PATH,
  8025. # but as the default location of the library.
  8026. hardcode_minus_L=yes
  8027. fi
  8028. ;;
  8029. hpux11*)
  8030. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8031. case $host_cpu in
  8032. hppa*64*)
  8033. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8034. ;;
  8035. ia64*)
  8036. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8037. ;;
  8038. *)
  8039. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8040. ;;
  8041. esac
  8042. else
  8043. case $host_cpu in
  8044. hppa*64*)
  8045. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8046. ;;
  8047. ia64*)
  8048. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8049. ;;
  8050. *)
  8051. # Older versions of the 11.00 compiler do not understand -b yet
  8052. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8054. $as_echo_n "checking if $CC understands -b... " >&6; }
  8055. if ${lt_cv_prog_compiler__b+:} false; then :
  8056. $as_echo_n "(cached) " >&6
  8057. else
  8058. lt_cv_prog_compiler__b=no
  8059. save_LDFLAGS="$LDFLAGS"
  8060. LDFLAGS="$LDFLAGS -b"
  8061. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8062. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8063. # The linker can only warn and ignore the option if not recognized
  8064. # So say no if there are warnings
  8065. if test -s conftest.err; then
  8066. # Append any errors to the config.log.
  8067. cat conftest.err 1>&5
  8068. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8069. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8070. if diff conftest.exp conftest.er2 >/dev/null; then
  8071. lt_cv_prog_compiler__b=yes
  8072. fi
  8073. else
  8074. lt_cv_prog_compiler__b=yes
  8075. fi
  8076. fi
  8077. $RM -r conftest*
  8078. LDFLAGS="$save_LDFLAGS"
  8079. fi
  8080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8081. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8082. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8083. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8084. else
  8085. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8086. fi
  8087. ;;
  8088. esac
  8089. fi
  8090. if test "$with_gnu_ld" = no; then
  8091. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8092. hardcode_libdir_separator=:
  8093. case $host_cpu in
  8094. hppa*64*|ia64*)
  8095. hardcode_direct=no
  8096. hardcode_shlibpath_var=no
  8097. ;;
  8098. *)
  8099. hardcode_direct=yes
  8100. hardcode_direct_absolute=yes
  8101. export_dynamic_flag_spec='${wl}-E'
  8102. # hardcode_minus_L: Not really in the search PATH,
  8103. # but as the default location of the library.
  8104. hardcode_minus_L=yes
  8105. ;;
  8106. esac
  8107. fi
  8108. ;;
  8109. irix5* | irix6* | nonstopux*)
  8110. if test "$GCC" = yes; then
  8111. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8112. # Try to use the -exported_symbol ld option, if it does not
  8113. # work, assume that -exports_file does not work either and
  8114. # implicitly export all symbols.
  8115. # This should be the same for all languages, so no per-tag cache variable.
  8116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8117. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8118. if ${lt_cv_irix_exported_symbol+:} false; then :
  8119. $as_echo_n "(cached) " >&6
  8120. else
  8121. save_LDFLAGS="$LDFLAGS"
  8122. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8123. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8124. /* end confdefs.h. */
  8125. int foo (void) { return 0; }
  8126. _ACEOF
  8127. if ac_fn_c_try_link "$LINENO"; then :
  8128. lt_cv_irix_exported_symbol=yes
  8129. else
  8130. lt_cv_irix_exported_symbol=no
  8131. fi
  8132. rm -f core conftest.err conftest.$ac_objext \
  8133. conftest$ac_exeext conftest.$ac_ext
  8134. LDFLAGS="$save_LDFLAGS"
  8135. fi
  8136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8137. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8138. if test "$lt_cv_irix_exported_symbol" = yes; then
  8139. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8140. fi
  8141. else
  8142. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8143. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8144. fi
  8145. archive_cmds_need_lc='no'
  8146. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8147. hardcode_libdir_separator=:
  8148. inherit_rpath=yes
  8149. link_all_deplibs=yes
  8150. ;;
  8151. netbsd* | netbsdelf*-gnu)
  8152. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8153. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8154. else
  8155. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8156. fi
  8157. hardcode_libdir_flag_spec='-R$libdir'
  8158. hardcode_direct=yes
  8159. hardcode_shlibpath_var=no
  8160. ;;
  8161. newsos6)
  8162. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8163. hardcode_direct=yes
  8164. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8165. hardcode_libdir_separator=:
  8166. hardcode_shlibpath_var=no
  8167. ;;
  8168. *nto* | *qnx*)
  8169. ;;
  8170. openbsd*)
  8171. if test -f /usr/libexec/ld.so; then
  8172. hardcode_direct=yes
  8173. hardcode_shlibpath_var=no
  8174. hardcode_direct_absolute=yes
  8175. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8176. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8177. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8178. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8179. export_dynamic_flag_spec='${wl}-E'
  8180. else
  8181. case $host_os in
  8182. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8183. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8184. hardcode_libdir_flag_spec='-R$libdir'
  8185. ;;
  8186. *)
  8187. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8188. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8189. ;;
  8190. esac
  8191. fi
  8192. else
  8193. ld_shlibs=no
  8194. fi
  8195. ;;
  8196. os2*)
  8197. hardcode_libdir_flag_spec='-L$libdir'
  8198. hardcode_minus_L=yes
  8199. allow_undefined_flag=unsupported
  8200. 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'
  8201. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8202. ;;
  8203. osf3*)
  8204. if test "$GCC" = yes; then
  8205. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8206. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8207. else
  8208. allow_undefined_flag=' -expect_unresolved \*'
  8209. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8210. fi
  8211. archive_cmds_need_lc='no'
  8212. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8213. hardcode_libdir_separator=:
  8214. ;;
  8215. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8216. if test "$GCC" = yes; then
  8217. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8218. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8219. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8220. else
  8221. allow_undefined_flag=' -expect_unresolved \*'
  8222. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  8223. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8224. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8225. # Both c and cxx compiler support -rpath directly
  8226. hardcode_libdir_flag_spec='-rpath $libdir'
  8227. fi
  8228. archive_cmds_need_lc='no'
  8229. hardcode_libdir_separator=:
  8230. ;;
  8231. solaris*)
  8232. no_undefined_flag=' -z defs'
  8233. if test "$GCC" = yes; then
  8234. wlarc='${wl}'
  8235. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8236. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8237. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8238. else
  8239. case `$CC -V 2>&1` in
  8240. *"Compilers 5.0"*)
  8241. wlarc=''
  8242. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8243. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8244. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8245. ;;
  8246. *)
  8247. wlarc='${wl}'
  8248. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8249. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8250. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8251. ;;
  8252. esac
  8253. fi
  8254. hardcode_libdir_flag_spec='-R$libdir'
  8255. hardcode_shlibpath_var=no
  8256. case $host_os in
  8257. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8258. *)
  8259. # The compiler driver will combine and reorder linker options,
  8260. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8261. # but is careful enough not to reorder.
  8262. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8263. if test "$GCC" = yes; then
  8264. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8265. else
  8266. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8267. fi
  8268. ;;
  8269. esac
  8270. link_all_deplibs=yes
  8271. ;;
  8272. sunos4*)
  8273. if test "x$host_vendor" = xsequent; then
  8274. # Use $CC to link under sequent, because it throws in some extra .o
  8275. # files that make .init and .fini sections work.
  8276. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8277. else
  8278. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8279. fi
  8280. hardcode_libdir_flag_spec='-L$libdir'
  8281. hardcode_direct=yes
  8282. hardcode_minus_L=yes
  8283. hardcode_shlibpath_var=no
  8284. ;;
  8285. sysv4)
  8286. case $host_vendor in
  8287. sni)
  8288. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8289. hardcode_direct=yes # is this really true???
  8290. ;;
  8291. siemens)
  8292. ## LD is ld it makes a PLAMLIB
  8293. ## CC just makes a GrossModule.
  8294. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8295. reload_cmds='$CC -r -o $output$reload_objs'
  8296. hardcode_direct=no
  8297. ;;
  8298. motorola)
  8299. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8300. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8301. ;;
  8302. esac
  8303. runpath_var='LD_RUN_PATH'
  8304. hardcode_shlibpath_var=no
  8305. ;;
  8306. sysv4.3*)
  8307. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8308. hardcode_shlibpath_var=no
  8309. export_dynamic_flag_spec='-Bexport'
  8310. ;;
  8311. sysv4*MP*)
  8312. if test -d /usr/nec; then
  8313. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8314. hardcode_shlibpath_var=no
  8315. runpath_var=LD_RUN_PATH
  8316. hardcode_runpath_var=yes
  8317. ld_shlibs=yes
  8318. fi
  8319. ;;
  8320. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8321. no_undefined_flag='${wl}-z,text'
  8322. archive_cmds_need_lc=no
  8323. hardcode_shlibpath_var=no
  8324. runpath_var='LD_RUN_PATH'
  8325. if test "$GCC" = yes; then
  8326. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8327. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8328. else
  8329. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8330. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8331. fi
  8332. ;;
  8333. sysv5* | sco3.2v5* | sco5v6*)
  8334. # Note: We can NOT use -z defs as we might desire, because we do not
  8335. # link with -lc, and that would cause any symbols used from libc to
  8336. # always be unresolved, which means just about no library would
  8337. # ever link correctly. If we're not using GNU ld we use -z text
  8338. # though, which does catch some bad symbols but isn't as heavy-handed
  8339. # as -z defs.
  8340. no_undefined_flag='${wl}-z,text'
  8341. allow_undefined_flag='${wl}-z,nodefs'
  8342. archive_cmds_need_lc=no
  8343. hardcode_shlibpath_var=no
  8344. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8345. hardcode_libdir_separator=':'
  8346. link_all_deplibs=yes
  8347. export_dynamic_flag_spec='${wl}-Bexport'
  8348. runpath_var='LD_RUN_PATH'
  8349. if test "$GCC" = yes; then
  8350. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8351. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8352. else
  8353. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8354. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8355. fi
  8356. ;;
  8357. uts4*)
  8358. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8359. hardcode_libdir_flag_spec='-L$libdir'
  8360. hardcode_shlibpath_var=no
  8361. ;;
  8362. *)
  8363. ld_shlibs=no
  8364. ;;
  8365. esac
  8366. if test x$host_vendor = xsni; then
  8367. case $host in
  8368. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8369. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8370. ;;
  8371. esac
  8372. fi
  8373. fi
  8374. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8375. $as_echo "$ld_shlibs" >&6; }
  8376. test "$ld_shlibs" = no && can_build_shared=no
  8377. with_gnu_ld=$with_gnu_ld
  8378. #
  8379. # Do we need to explicitly link libc?
  8380. #
  8381. case "x$archive_cmds_need_lc" in
  8382. x|xyes)
  8383. # Assume -lc should be added
  8384. archive_cmds_need_lc=yes
  8385. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8386. case $archive_cmds in
  8387. *'~'*)
  8388. # FIXME: we may have to deal with multi-command sequences.
  8389. ;;
  8390. '$CC '*)
  8391. # Test whether the compiler implicitly links with -lc since on some
  8392. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8393. # to ld, don't add -lc before -lgcc.
  8394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8395. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8396. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8397. $as_echo_n "(cached) " >&6
  8398. else
  8399. $RM conftest*
  8400. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8401. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8402. (eval $ac_compile) 2>&5
  8403. ac_status=$?
  8404. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8405. test $ac_status = 0; } 2>conftest.err; then
  8406. soname=conftest
  8407. lib=conftest
  8408. libobjs=conftest.$ac_objext
  8409. deplibs=
  8410. wl=$lt_prog_compiler_wl
  8411. pic_flag=$lt_prog_compiler_pic
  8412. compiler_flags=-v
  8413. linker_flags=-v
  8414. verstring=
  8415. output_objdir=.
  8416. libname=conftest
  8417. lt_save_allow_undefined_flag=$allow_undefined_flag
  8418. allow_undefined_flag=
  8419. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8420. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8421. ac_status=$?
  8422. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8423. test $ac_status = 0; }
  8424. then
  8425. lt_cv_archive_cmds_need_lc=no
  8426. else
  8427. lt_cv_archive_cmds_need_lc=yes
  8428. fi
  8429. allow_undefined_flag=$lt_save_allow_undefined_flag
  8430. else
  8431. cat conftest.err 1>&5
  8432. fi
  8433. $RM conftest*
  8434. fi
  8435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8436. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8437. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8438. ;;
  8439. esac
  8440. fi
  8441. ;;
  8442. esac
  8443. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8444. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8445. if test "$GCC" = yes; then
  8446. case $host_os in
  8447. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8448. *) lt_awk_arg="/^libraries:/" ;;
  8449. esac
  8450. case $host_os in
  8451. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8452. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8453. esac
  8454. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8455. case $lt_search_path_spec in
  8456. *\;*)
  8457. # if the path contains ";" then we assume it to be the separator
  8458. # otherwise default to the standard path separator (i.e. ":") - it is
  8459. # assumed that no part of a normal pathname contains ";" but that should
  8460. # okay in the real world where ";" in dirpaths is itself problematic.
  8461. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8462. ;;
  8463. *)
  8464. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8465. ;;
  8466. esac
  8467. # Ok, now we have the path, separated by spaces, we can step through it
  8468. # and add multilib dir if necessary.
  8469. lt_tmp_lt_search_path_spec=
  8470. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8471. for lt_sys_path in $lt_search_path_spec; do
  8472. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8473. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8474. else
  8475. test -d "$lt_sys_path" && \
  8476. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8477. fi
  8478. done
  8479. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8480. BEGIN {RS=" "; FS="/|\n";} {
  8481. lt_foo="";
  8482. lt_count=0;
  8483. for (lt_i = NF; lt_i > 0; lt_i--) {
  8484. if ($lt_i != "" && $lt_i != ".") {
  8485. if ($lt_i == "..") {
  8486. lt_count++;
  8487. } else {
  8488. if (lt_count == 0) {
  8489. lt_foo="/" $lt_i lt_foo;
  8490. } else {
  8491. lt_count--;
  8492. }
  8493. }
  8494. }
  8495. }
  8496. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8497. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8498. }'`
  8499. # AWK program above erroneously prepends '/' to C:/dos/paths
  8500. # for these hosts.
  8501. case $host_os in
  8502. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8503. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8504. esac
  8505. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8506. else
  8507. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8508. fi
  8509. library_names_spec=
  8510. libname_spec='lib$name'
  8511. soname_spec=
  8512. shrext_cmds=".so"
  8513. postinstall_cmds=
  8514. postuninstall_cmds=
  8515. finish_cmds=
  8516. finish_eval=
  8517. shlibpath_var=
  8518. shlibpath_overrides_runpath=unknown
  8519. version_type=none
  8520. dynamic_linker="$host_os ld.so"
  8521. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8522. need_lib_prefix=unknown
  8523. hardcode_into_libs=no
  8524. # when you set need_version to no, make sure it does not cause -set_version
  8525. # flags to be left without arguments
  8526. need_version=unknown
  8527. case $host_os in
  8528. aix3*)
  8529. version_type=linux # correct to gnu/linux during the next big refactor
  8530. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8531. shlibpath_var=LIBPATH
  8532. # AIX 3 has no versioning support, so we append a major version to the name.
  8533. soname_spec='${libname}${release}${shared_ext}$major'
  8534. ;;
  8535. aix[4-9]*)
  8536. version_type=linux # correct to gnu/linux during the next big refactor
  8537. need_lib_prefix=no
  8538. need_version=no
  8539. hardcode_into_libs=yes
  8540. if test "$host_cpu" = ia64; then
  8541. # AIX 5 supports IA64
  8542. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8543. shlibpath_var=LD_LIBRARY_PATH
  8544. else
  8545. # With GCC up to 2.95.x, collect2 would create an import file
  8546. # for dependence libraries. The import file would start with
  8547. # the line `#! .'. This would cause the generated library to
  8548. # depend on `.', always an invalid library. This was fixed in
  8549. # development snapshots of GCC prior to 3.0.
  8550. case $host_os in
  8551. aix4 | aix4.[01] | aix4.[01].*)
  8552. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8553. echo ' yes '
  8554. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8555. :
  8556. else
  8557. can_build_shared=no
  8558. fi
  8559. ;;
  8560. esac
  8561. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8562. # soname into executable. Probably we can add versioning support to
  8563. # collect2, so additional links can be useful in future.
  8564. if test "$aix_use_runtimelinking" = yes; then
  8565. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8566. # instead of lib<name>.a to let people know that these are not
  8567. # typical AIX shared libraries.
  8568. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8569. else
  8570. # We preserve .a as extension for shared libraries through AIX4.2
  8571. # and later when we are not doing run time linking.
  8572. library_names_spec='${libname}${release}.a $libname.a'
  8573. soname_spec='${libname}${release}${shared_ext}$major'
  8574. fi
  8575. shlibpath_var=LIBPATH
  8576. fi
  8577. ;;
  8578. amigaos*)
  8579. case $host_cpu in
  8580. powerpc)
  8581. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8582. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8583. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8584. ;;
  8585. m68k)
  8586. library_names_spec='$libname.ixlibrary $libname.a'
  8587. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8588. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  8589. ;;
  8590. esac
  8591. ;;
  8592. beos*)
  8593. library_names_spec='${libname}${shared_ext}'
  8594. dynamic_linker="$host_os ld.so"
  8595. shlibpath_var=LIBRARY_PATH
  8596. ;;
  8597. bsdi[45]*)
  8598. version_type=linux # correct to gnu/linux during the next big refactor
  8599. need_version=no
  8600. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8601. soname_spec='${libname}${release}${shared_ext}$major'
  8602. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8603. shlibpath_var=LD_LIBRARY_PATH
  8604. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8605. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8606. # the default ld.so.conf also contains /usr/contrib/lib and
  8607. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8608. # libtool to hard-code these into programs
  8609. ;;
  8610. cygwin* | mingw* | pw32* | cegcc*)
  8611. version_type=windows
  8612. shrext_cmds=".dll"
  8613. need_version=no
  8614. need_lib_prefix=no
  8615. case $GCC,$cc_basename in
  8616. yes,*)
  8617. # gcc
  8618. library_names_spec='$libname.dll.a'
  8619. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8620. postinstall_cmds='base_file=`basename \${file}`~
  8621. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8622. dldir=$destdir/`dirname \$dlpath`~
  8623. test -d \$dldir || mkdir -p \$dldir~
  8624. $install_prog $dir/$dlname \$dldir/$dlname~
  8625. chmod a+x \$dldir/$dlname~
  8626. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8627. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8628. fi'
  8629. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8630. dlpath=$dir/\$dldll~
  8631. $RM \$dlpath'
  8632. shlibpath_overrides_runpath=yes
  8633. case $host_os in
  8634. cygwin*)
  8635. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8636. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8637. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8638. ;;
  8639. mingw* | cegcc*)
  8640. # MinGW DLLs use traditional 'lib' prefix
  8641. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8642. ;;
  8643. pw32*)
  8644. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8645. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8646. ;;
  8647. esac
  8648. dynamic_linker='Win32 ld.exe'
  8649. ;;
  8650. *,cl*)
  8651. # Native MSVC
  8652. libname_spec='$name'
  8653. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8654. library_names_spec='${libname}.dll.lib'
  8655. case $build_os in
  8656. mingw*)
  8657. sys_lib_search_path_spec=
  8658. lt_save_ifs=$IFS
  8659. IFS=';'
  8660. for lt_path in $LIB
  8661. do
  8662. IFS=$lt_save_ifs
  8663. # Let DOS variable expansion print the short 8.3 style file name.
  8664. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8665. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8666. done
  8667. IFS=$lt_save_ifs
  8668. # Convert to MSYS style.
  8669. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8670. ;;
  8671. cygwin*)
  8672. # Convert to unix form, then to dos form, then back to unix form
  8673. # but this time dos style (no spaces!) so that the unix form looks
  8674. # like /cygdrive/c/PROGRA~1:/cygdr...
  8675. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8676. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8677. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8678. ;;
  8679. *)
  8680. sys_lib_search_path_spec="$LIB"
  8681. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8682. # It is most probably a Windows format PATH.
  8683. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8684. else
  8685. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8686. fi
  8687. # FIXME: find the short name or the path components, as spaces are
  8688. # common. (e.g. "Program Files" -> "PROGRA~1")
  8689. ;;
  8690. esac
  8691. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8692. postinstall_cmds='base_file=`basename \${file}`~
  8693. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8694. dldir=$destdir/`dirname \$dlpath`~
  8695. test -d \$dldir || mkdir -p \$dldir~
  8696. $install_prog $dir/$dlname \$dldir/$dlname'
  8697. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8698. dlpath=$dir/\$dldll~
  8699. $RM \$dlpath'
  8700. shlibpath_overrides_runpath=yes
  8701. dynamic_linker='Win32 link.exe'
  8702. ;;
  8703. *)
  8704. # Assume MSVC wrapper
  8705. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8706. dynamic_linker='Win32 ld.exe'
  8707. ;;
  8708. esac
  8709. # FIXME: first we should search . and the directory the executable is in
  8710. shlibpath_var=PATH
  8711. ;;
  8712. darwin* | rhapsody*)
  8713. dynamic_linker="$host_os dyld"
  8714. version_type=darwin
  8715. need_lib_prefix=no
  8716. need_version=no
  8717. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8718. soname_spec='${libname}${release}${major}$shared_ext'
  8719. shlibpath_overrides_runpath=yes
  8720. shlibpath_var=DYLD_LIBRARY_PATH
  8721. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8722. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8723. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8724. ;;
  8725. dgux*)
  8726. version_type=linux # correct to gnu/linux during the next big refactor
  8727. need_lib_prefix=no
  8728. need_version=no
  8729. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8730. soname_spec='${libname}${release}${shared_ext}$major'
  8731. shlibpath_var=LD_LIBRARY_PATH
  8732. ;;
  8733. freebsd* | dragonfly*)
  8734. # DragonFly does not have aout. When/if they implement a new
  8735. # versioning mechanism, adjust this.
  8736. if test -x /usr/bin/objformat; then
  8737. objformat=`/usr/bin/objformat`
  8738. else
  8739. case $host_os in
  8740. freebsd[23].*) objformat=aout ;;
  8741. *) objformat=elf ;;
  8742. esac
  8743. fi
  8744. version_type=freebsd-$objformat
  8745. case $version_type in
  8746. freebsd-elf*)
  8747. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8748. need_version=no
  8749. need_lib_prefix=no
  8750. ;;
  8751. freebsd-*)
  8752. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8753. need_version=yes
  8754. ;;
  8755. esac
  8756. shlibpath_var=LD_LIBRARY_PATH
  8757. case $host_os in
  8758. freebsd2.*)
  8759. shlibpath_overrides_runpath=yes
  8760. ;;
  8761. freebsd3.[01]* | freebsdelf3.[01]*)
  8762. shlibpath_overrides_runpath=yes
  8763. hardcode_into_libs=yes
  8764. ;;
  8765. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8766. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8767. shlibpath_overrides_runpath=no
  8768. hardcode_into_libs=yes
  8769. ;;
  8770. *) # from 4.6 on, and DragonFly
  8771. shlibpath_overrides_runpath=yes
  8772. hardcode_into_libs=yes
  8773. ;;
  8774. esac
  8775. ;;
  8776. haiku*)
  8777. version_type=linux # correct to gnu/linux during the next big refactor
  8778. need_lib_prefix=no
  8779. need_version=no
  8780. dynamic_linker="$host_os runtime_loader"
  8781. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8782. soname_spec='${libname}${release}${shared_ext}$major'
  8783. shlibpath_var=LIBRARY_PATH
  8784. shlibpath_overrides_runpath=yes
  8785. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8786. hardcode_into_libs=yes
  8787. ;;
  8788. hpux9* | hpux10* | hpux11*)
  8789. # Give a soname corresponding to the major version so that dld.sl refuses to
  8790. # link against other versions.
  8791. version_type=sunos
  8792. need_lib_prefix=no
  8793. need_version=no
  8794. case $host_cpu in
  8795. ia64*)
  8796. shrext_cmds='.so'
  8797. hardcode_into_libs=yes
  8798. dynamic_linker="$host_os dld.so"
  8799. shlibpath_var=LD_LIBRARY_PATH
  8800. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8801. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8802. soname_spec='${libname}${release}${shared_ext}$major'
  8803. if test "X$HPUX_IA64_MODE" = X32; then
  8804. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8805. else
  8806. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8807. fi
  8808. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8809. ;;
  8810. hppa*64*)
  8811. shrext_cmds='.sl'
  8812. hardcode_into_libs=yes
  8813. dynamic_linker="$host_os dld.sl"
  8814. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8815. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8816. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8817. soname_spec='${libname}${release}${shared_ext}$major'
  8818. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8819. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8820. ;;
  8821. *)
  8822. shrext_cmds='.sl'
  8823. dynamic_linker="$host_os dld.sl"
  8824. shlibpath_var=SHLIB_PATH
  8825. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8826. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8827. soname_spec='${libname}${release}${shared_ext}$major'
  8828. ;;
  8829. esac
  8830. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8831. postinstall_cmds='chmod 555 $lib'
  8832. # or fails outright, so override atomically:
  8833. install_override_mode=555
  8834. ;;
  8835. interix[3-9]*)
  8836. version_type=linux # correct to gnu/linux during the next big refactor
  8837. need_lib_prefix=no
  8838. need_version=no
  8839. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8840. soname_spec='${libname}${release}${shared_ext}$major'
  8841. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8842. shlibpath_var=LD_LIBRARY_PATH
  8843. shlibpath_overrides_runpath=no
  8844. hardcode_into_libs=yes
  8845. ;;
  8846. irix5* | irix6* | nonstopux*)
  8847. case $host_os in
  8848. nonstopux*) version_type=nonstopux ;;
  8849. *)
  8850. if test "$lt_cv_prog_gnu_ld" = yes; then
  8851. version_type=linux # correct to gnu/linux during the next big refactor
  8852. else
  8853. version_type=irix
  8854. fi ;;
  8855. esac
  8856. need_lib_prefix=no
  8857. need_version=no
  8858. soname_spec='${libname}${release}${shared_ext}$major'
  8859. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8860. case $host_os in
  8861. irix5* | nonstopux*)
  8862. libsuff= shlibsuff=
  8863. ;;
  8864. *)
  8865. case $LD in # libtool.m4 will add one of these switches to LD
  8866. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8867. libsuff= shlibsuff= libmagic=32-bit;;
  8868. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8869. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8870. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8871. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8872. *) libsuff= shlibsuff= libmagic=never-match;;
  8873. esac
  8874. ;;
  8875. esac
  8876. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8877. shlibpath_overrides_runpath=no
  8878. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8879. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8880. hardcode_into_libs=yes
  8881. ;;
  8882. # No shared lib support for Linux oldld, aout, or coff.
  8883. linux*oldld* | linux*aout* | linux*coff*)
  8884. dynamic_linker=no
  8885. ;;
  8886. # This must be glibc/ELF.
  8887. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8888. version_type=linux # correct to gnu/linux during the next big refactor
  8889. need_lib_prefix=no
  8890. need_version=no
  8891. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8892. soname_spec='${libname}${release}${shared_ext}$major'
  8893. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8894. shlibpath_var=LD_LIBRARY_PATH
  8895. shlibpath_overrides_runpath=no
  8896. # Some binutils ld are patched to set DT_RUNPATH
  8897. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8898. $as_echo_n "(cached) " >&6
  8899. else
  8900. lt_cv_shlibpath_overrides_runpath=no
  8901. save_LDFLAGS=$LDFLAGS
  8902. save_libdir=$libdir
  8903. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8904. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8906. /* end confdefs.h. */
  8907. int
  8908. main ()
  8909. {
  8910. ;
  8911. return 0;
  8912. }
  8913. _ACEOF
  8914. if ac_fn_c_try_link "$LINENO"; then :
  8915. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8916. lt_cv_shlibpath_overrides_runpath=yes
  8917. fi
  8918. fi
  8919. rm -f core conftest.err conftest.$ac_objext \
  8920. conftest$ac_exeext conftest.$ac_ext
  8921. LDFLAGS=$save_LDFLAGS
  8922. libdir=$save_libdir
  8923. fi
  8924. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8925. # This implies no fast_install, which is unacceptable.
  8926. # Some rework will be needed to allow for fast_install
  8927. # before this can be enabled.
  8928. hardcode_into_libs=yes
  8929. # Append ld.so.conf contents to the search path
  8930. if test -f /etc/ld.so.conf; then
  8931. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  8932. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8933. fi
  8934. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8935. # powerpc, because MkLinux only supported shared libraries with the
  8936. # GNU dynamic linker. Since this was broken with cross compilers,
  8937. # most powerpc-linux boxes support dynamic linking these days and
  8938. # people can always --disable-shared, the test was removed, and we
  8939. # assume the GNU/Linux dynamic linker is in use.
  8940. dynamic_linker='GNU/Linux ld.so'
  8941. ;;
  8942. netbsdelf*-gnu)
  8943. version_type=linux
  8944. need_lib_prefix=no
  8945. need_version=no
  8946. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8947. soname_spec='${libname}${release}${shared_ext}$major'
  8948. shlibpath_var=LD_LIBRARY_PATH
  8949. shlibpath_overrides_runpath=no
  8950. hardcode_into_libs=yes
  8951. dynamic_linker='NetBSD ld.elf_so'
  8952. ;;
  8953. netbsd*)
  8954. version_type=sunos
  8955. need_lib_prefix=no
  8956. need_version=no
  8957. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8958. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8959. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8960. dynamic_linker='NetBSD (a.out) ld.so'
  8961. else
  8962. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8963. soname_spec='${libname}${release}${shared_ext}$major'
  8964. dynamic_linker='NetBSD ld.elf_so'
  8965. fi
  8966. shlibpath_var=LD_LIBRARY_PATH
  8967. shlibpath_overrides_runpath=yes
  8968. hardcode_into_libs=yes
  8969. ;;
  8970. newsos6)
  8971. version_type=linux # correct to gnu/linux during the next big refactor
  8972. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8973. shlibpath_var=LD_LIBRARY_PATH
  8974. shlibpath_overrides_runpath=yes
  8975. ;;
  8976. *nto* | *qnx*)
  8977. version_type=qnx
  8978. need_lib_prefix=no
  8979. need_version=no
  8980. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8981. soname_spec='${libname}${release}${shared_ext}$major'
  8982. shlibpath_var=LD_LIBRARY_PATH
  8983. shlibpath_overrides_runpath=no
  8984. hardcode_into_libs=yes
  8985. dynamic_linker='ldqnx.so'
  8986. ;;
  8987. openbsd*)
  8988. version_type=sunos
  8989. sys_lib_dlsearch_path_spec="/usr/lib"
  8990. need_lib_prefix=no
  8991. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8992. case $host_os in
  8993. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8994. *) need_version=no ;;
  8995. esac
  8996. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8997. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8998. shlibpath_var=LD_LIBRARY_PATH
  8999. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9000. case $host_os in
  9001. openbsd2.[89] | openbsd2.[89].*)
  9002. shlibpath_overrides_runpath=no
  9003. ;;
  9004. *)
  9005. shlibpath_overrides_runpath=yes
  9006. ;;
  9007. esac
  9008. else
  9009. shlibpath_overrides_runpath=yes
  9010. fi
  9011. ;;
  9012. os2*)
  9013. libname_spec='$name'
  9014. shrext_cmds=".dll"
  9015. need_lib_prefix=no
  9016. library_names_spec='$libname${shared_ext} $libname.a'
  9017. dynamic_linker='OS/2 ld.exe'
  9018. shlibpath_var=LIBPATH
  9019. ;;
  9020. osf3* | osf4* | osf5*)
  9021. version_type=osf
  9022. need_lib_prefix=no
  9023. need_version=no
  9024. soname_spec='${libname}${release}${shared_ext}$major'
  9025. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9026. shlibpath_var=LD_LIBRARY_PATH
  9027. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9028. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9029. ;;
  9030. rdos*)
  9031. dynamic_linker=no
  9032. ;;
  9033. solaris*)
  9034. version_type=linux # correct to gnu/linux during the next big refactor
  9035. need_lib_prefix=no
  9036. need_version=no
  9037. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9038. soname_spec='${libname}${release}${shared_ext}$major'
  9039. shlibpath_var=LD_LIBRARY_PATH
  9040. shlibpath_overrides_runpath=yes
  9041. hardcode_into_libs=yes
  9042. # ldd complains unless libraries are executable
  9043. postinstall_cmds='chmod +x $lib'
  9044. ;;
  9045. sunos4*)
  9046. version_type=sunos
  9047. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9048. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9049. shlibpath_var=LD_LIBRARY_PATH
  9050. shlibpath_overrides_runpath=yes
  9051. if test "$with_gnu_ld" = yes; then
  9052. need_lib_prefix=no
  9053. fi
  9054. need_version=yes
  9055. ;;
  9056. sysv4 | sysv4.3*)
  9057. version_type=linux # correct to gnu/linux during the next big refactor
  9058. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9059. soname_spec='${libname}${release}${shared_ext}$major'
  9060. shlibpath_var=LD_LIBRARY_PATH
  9061. case $host_vendor in
  9062. sni)
  9063. shlibpath_overrides_runpath=no
  9064. need_lib_prefix=no
  9065. runpath_var=LD_RUN_PATH
  9066. ;;
  9067. siemens)
  9068. need_lib_prefix=no
  9069. ;;
  9070. motorola)
  9071. need_lib_prefix=no
  9072. need_version=no
  9073. shlibpath_overrides_runpath=no
  9074. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9075. ;;
  9076. esac
  9077. ;;
  9078. sysv4*MP*)
  9079. if test -d /usr/nec ;then
  9080. version_type=linux # correct to gnu/linux during the next big refactor
  9081. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9082. soname_spec='$libname${shared_ext}.$major'
  9083. shlibpath_var=LD_LIBRARY_PATH
  9084. fi
  9085. ;;
  9086. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9087. version_type=freebsd-elf
  9088. need_lib_prefix=no
  9089. need_version=no
  9090. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9091. soname_spec='${libname}${release}${shared_ext}$major'
  9092. shlibpath_var=LD_LIBRARY_PATH
  9093. shlibpath_overrides_runpath=yes
  9094. hardcode_into_libs=yes
  9095. if test "$with_gnu_ld" = yes; then
  9096. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9097. else
  9098. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9099. case $host_os in
  9100. sco3.2v5*)
  9101. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9102. ;;
  9103. esac
  9104. fi
  9105. sys_lib_dlsearch_path_spec='/usr/lib'
  9106. ;;
  9107. tpf*)
  9108. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9109. version_type=linux # correct to gnu/linux during the next big refactor
  9110. need_lib_prefix=no
  9111. need_version=no
  9112. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9113. shlibpath_var=LD_LIBRARY_PATH
  9114. shlibpath_overrides_runpath=no
  9115. hardcode_into_libs=yes
  9116. ;;
  9117. uts4*)
  9118. version_type=linux # correct to gnu/linux during the next big refactor
  9119. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9120. soname_spec='${libname}${release}${shared_ext}$major'
  9121. shlibpath_var=LD_LIBRARY_PATH
  9122. ;;
  9123. *)
  9124. dynamic_linker=no
  9125. ;;
  9126. esac
  9127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9128. $as_echo "$dynamic_linker" >&6; }
  9129. test "$dynamic_linker" = no && can_build_shared=no
  9130. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9131. if test "$GCC" = yes; then
  9132. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9133. fi
  9134. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9135. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9136. fi
  9137. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9138. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9139. fi
  9140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9141. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9142. hardcode_action=
  9143. if test -n "$hardcode_libdir_flag_spec" ||
  9144. test -n "$runpath_var" ||
  9145. test "X$hardcode_automatic" = "Xyes" ; then
  9146. # We can hardcode non-existent directories.
  9147. if test "$hardcode_direct" != no &&
  9148. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9149. # have to relink, otherwise we might link with an installed library
  9150. # when we should be linking with a yet-to-be-installed one
  9151. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9152. test "$hardcode_minus_L" != no; then
  9153. # Linking always hardcodes the temporary library directory.
  9154. hardcode_action=relink
  9155. else
  9156. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9157. hardcode_action=immediate
  9158. fi
  9159. else
  9160. # We cannot hardcode anything, or else we can only hardcode existing
  9161. # directories.
  9162. hardcode_action=unsupported
  9163. fi
  9164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9165. $as_echo "$hardcode_action" >&6; }
  9166. if test "$hardcode_action" = relink ||
  9167. test "$inherit_rpath" = yes; then
  9168. # Fast installation is not supported
  9169. enable_fast_install=no
  9170. elif test "$shlibpath_overrides_runpath" = yes ||
  9171. test "$enable_shared" = no; then
  9172. # Fast installation is not necessary
  9173. enable_fast_install=needless
  9174. fi
  9175. if test "x$enable_dlopen" != xyes; then
  9176. enable_dlopen=unknown
  9177. enable_dlopen_self=unknown
  9178. enable_dlopen_self_static=unknown
  9179. else
  9180. lt_cv_dlopen=no
  9181. lt_cv_dlopen_libs=
  9182. case $host_os in
  9183. beos*)
  9184. lt_cv_dlopen="load_add_on"
  9185. lt_cv_dlopen_libs=
  9186. lt_cv_dlopen_self=yes
  9187. ;;
  9188. mingw* | pw32* | cegcc*)
  9189. lt_cv_dlopen="LoadLibrary"
  9190. lt_cv_dlopen_libs=
  9191. ;;
  9192. cygwin*)
  9193. lt_cv_dlopen="dlopen"
  9194. lt_cv_dlopen_libs=
  9195. ;;
  9196. darwin*)
  9197. # if libdl is installed we need to link against it
  9198. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9199. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9200. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9201. $as_echo_n "(cached) " >&6
  9202. else
  9203. ac_check_lib_save_LIBS=$LIBS
  9204. LIBS="-ldl $LIBS"
  9205. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9206. /* end confdefs.h. */
  9207. /* Override any GCC internal prototype to avoid an error.
  9208. Use char because int might match the return type of a GCC
  9209. builtin and then its argument prototype would still apply. */
  9210. #ifdef __cplusplus
  9211. extern "C"
  9212. #endif
  9213. char dlopen ();
  9214. int
  9215. main ()
  9216. {
  9217. return dlopen ();
  9218. ;
  9219. return 0;
  9220. }
  9221. _ACEOF
  9222. if ac_fn_c_try_link "$LINENO"; then :
  9223. ac_cv_lib_dl_dlopen=yes
  9224. else
  9225. ac_cv_lib_dl_dlopen=no
  9226. fi
  9227. rm -f core conftest.err conftest.$ac_objext \
  9228. conftest$ac_exeext conftest.$ac_ext
  9229. LIBS=$ac_check_lib_save_LIBS
  9230. fi
  9231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9232. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9233. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9234. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9235. else
  9236. lt_cv_dlopen="dyld"
  9237. lt_cv_dlopen_libs=
  9238. lt_cv_dlopen_self=yes
  9239. fi
  9240. ;;
  9241. *)
  9242. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9243. if test "x$ac_cv_func_shl_load" = xyes; then :
  9244. lt_cv_dlopen="shl_load"
  9245. else
  9246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9247. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9248. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9249. $as_echo_n "(cached) " >&6
  9250. else
  9251. ac_check_lib_save_LIBS=$LIBS
  9252. LIBS="-ldld $LIBS"
  9253. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9254. /* end confdefs.h. */
  9255. /* Override any GCC internal prototype to avoid an error.
  9256. Use char because int might match the return type of a GCC
  9257. builtin and then its argument prototype would still apply. */
  9258. #ifdef __cplusplus
  9259. extern "C"
  9260. #endif
  9261. char shl_load ();
  9262. int
  9263. main ()
  9264. {
  9265. return shl_load ();
  9266. ;
  9267. return 0;
  9268. }
  9269. _ACEOF
  9270. if ac_fn_c_try_link "$LINENO"; then :
  9271. ac_cv_lib_dld_shl_load=yes
  9272. else
  9273. ac_cv_lib_dld_shl_load=no
  9274. fi
  9275. rm -f core conftest.err conftest.$ac_objext \
  9276. conftest$ac_exeext conftest.$ac_ext
  9277. LIBS=$ac_check_lib_save_LIBS
  9278. fi
  9279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9280. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9281. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9282. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9283. else
  9284. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9285. if test "x$ac_cv_func_dlopen" = xyes; then :
  9286. lt_cv_dlopen="dlopen"
  9287. else
  9288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9289. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9290. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9291. $as_echo_n "(cached) " >&6
  9292. else
  9293. ac_check_lib_save_LIBS=$LIBS
  9294. LIBS="-ldl $LIBS"
  9295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9296. /* end confdefs.h. */
  9297. /* Override any GCC internal prototype to avoid an error.
  9298. Use char because int might match the return type of a GCC
  9299. builtin and then its argument prototype would still apply. */
  9300. #ifdef __cplusplus
  9301. extern "C"
  9302. #endif
  9303. char dlopen ();
  9304. int
  9305. main ()
  9306. {
  9307. return dlopen ();
  9308. ;
  9309. return 0;
  9310. }
  9311. _ACEOF
  9312. if ac_fn_c_try_link "$LINENO"; then :
  9313. ac_cv_lib_dl_dlopen=yes
  9314. else
  9315. ac_cv_lib_dl_dlopen=no
  9316. fi
  9317. rm -f core conftest.err conftest.$ac_objext \
  9318. conftest$ac_exeext conftest.$ac_ext
  9319. LIBS=$ac_check_lib_save_LIBS
  9320. fi
  9321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9322. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9323. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9324. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9325. else
  9326. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9327. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9328. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9329. $as_echo_n "(cached) " >&6
  9330. else
  9331. ac_check_lib_save_LIBS=$LIBS
  9332. LIBS="-lsvld $LIBS"
  9333. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9334. /* end confdefs.h. */
  9335. /* Override any GCC internal prototype to avoid an error.
  9336. Use char because int might match the return type of a GCC
  9337. builtin and then its argument prototype would still apply. */
  9338. #ifdef __cplusplus
  9339. extern "C"
  9340. #endif
  9341. char dlopen ();
  9342. int
  9343. main ()
  9344. {
  9345. return dlopen ();
  9346. ;
  9347. return 0;
  9348. }
  9349. _ACEOF
  9350. if ac_fn_c_try_link "$LINENO"; then :
  9351. ac_cv_lib_svld_dlopen=yes
  9352. else
  9353. ac_cv_lib_svld_dlopen=no
  9354. fi
  9355. rm -f core conftest.err conftest.$ac_objext \
  9356. conftest$ac_exeext conftest.$ac_ext
  9357. LIBS=$ac_check_lib_save_LIBS
  9358. fi
  9359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9360. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9361. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9362. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9363. else
  9364. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9365. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9366. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9367. $as_echo_n "(cached) " >&6
  9368. else
  9369. ac_check_lib_save_LIBS=$LIBS
  9370. LIBS="-ldld $LIBS"
  9371. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9372. /* end confdefs.h. */
  9373. /* Override any GCC internal prototype to avoid an error.
  9374. Use char because int might match the return type of a GCC
  9375. builtin and then its argument prototype would still apply. */
  9376. #ifdef __cplusplus
  9377. extern "C"
  9378. #endif
  9379. char dld_link ();
  9380. int
  9381. main ()
  9382. {
  9383. return dld_link ();
  9384. ;
  9385. return 0;
  9386. }
  9387. _ACEOF
  9388. if ac_fn_c_try_link "$LINENO"; then :
  9389. ac_cv_lib_dld_dld_link=yes
  9390. else
  9391. ac_cv_lib_dld_dld_link=no
  9392. fi
  9393. rm -f core conftest.err conftest.$ac_objext \
  9394. conftest$ac_exeext conftest.$ac_ext
  9395. LIBS=$ac_check_lib_save_LIBS
  9396. fi
  9397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9398. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9399. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9400. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9401. fi
  9402. fi
  9403. fi
  9404. fi
  9405. fi
  9406. fi
  9407. ;;
  9408. esac
  9409. if test "x$lt_cv_dlopen" != xno; then
  9410. enable_dlopen=yes
  9411. else
  9412. enable_dlopen=no
  9413. fi
  9414. case $lt_cv_dlopen in
  9415. dlopen)
  9416. save_CPPFLAGS="$CPPFLAGS"
  9417. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9418. save_LDFLAGS="$LDFLAGS"
  9419. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9420. save_LIBS="$LIBS"
  9421. LIBS="$lt_cv_dlopen_libs $LIBS"
  9422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9423. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9424. if ${lt_cv_dlopen_self+:} false; then :
  9425. $as_echo_n "(cached) " >&6
  9426. else
  9427. if test "$cross_compiling" = yes; then :
  9428. lt_cv_dlopen_self=cross
  9429. else
  9430. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9431. lt_status=$lt_dlunknown
  9432. cat > conftest.$ac_ext <<_LT_EOF
  9433. #line $LINENO "configure"
  9434. #include "confdefs.h"
  9435. #if HAVE_DLFCN_H
  9436. #include <dlfcn.h>
  9437. #endif
  9438. #include <stdio.h>
  9439. #ifdef RTLD_GLOBAL
  9440. # define LT_DLGLOBAL RTLD_GLOBAL
  9441. #else
  9442. # ifdef DL_GLOBAL
  9443. # define LT_DLGLOBAL DL_GLOBAL
  9444. # else
  9445. # define LT_DLGLOBAL 0
  9446. # endif
  9447. #endif
  9448. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9449. find out it does not work in some platform. */
  9450. #ifndef LT_DLLAZY_OR_NOW
  9451. # ifdef RTLD_LAZY
  9452. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9453. # else
  9454. # ifdef DL_LAZY
  9455. # define LT_DLLAZY_OR_NOW DL_LAZY
  9456. # else
  9457. # ifdef RTLD_NOW
  9458. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9459. # else
  9460. # ifdef DL_NOW
  9461. # define LT_DLLAZY_OR_NOW DL_NOW
  9462. # else
  9463. # define LT_DLLAZY_OR_NOW 0
  9464. # endif
  9465. # endif
  9466. # endif
  9467. # endif
  9468. #endif
  9469. /* When -fvisbility=hidden is used, assume the code has been annotated
  9470. correspondingly for the symbols needed. */
  9471. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9472. int fnord () __attribute__((visibility("default")));
  9473. #endif
  9474. int fnord () { return 42; }
  9475. int main ()
  9476. {
  9477. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9478. int status = $lt_dlunknown;
  9479. if (self)
  9480. {
  9481. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9482. else
  9483. {
  9484. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9485. else puts (dlerror ());
  9486. }
  9487. /* dlclose (self); */
  9488. }
  9489. else
  9490. puts (dlerror ());
  9491. return status;
  9492. }
  9493. _LT_EOF
  9494. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9495. (eval $ac_link) 2>&5
  9496. ac_status=$?
  9497. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9498. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9499. (./conftest; exit; ) >&5 2>/dev/null
  9500. lt_status=$?
  9501. case x$lt_status in
  9502. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9503. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9504. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9505. esac
  9506. else :
  9507. # compilation failed
  9508. lt_cv_dlopen_self=no
  9509. fi
  9510. fi
  9511. rm -fr conftest*
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9514. $as_echo "$lt_cv_dlopen_self" >&6; }
  9515. if test "x$lt_cv_dlopen_self" = xyes; then
  9516. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9517. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9518. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9519. if ${lt_cv_dlopen_self_static+:} false; then :
  9520. $as_echo_n "(cached) " >&6
  9521. else
  9522. if test "$cross_compiling" = yes; then :
  9523. lt_cv_dlopen_self_static=cross
  9524. else
  9525. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9526. lt_status=$lt_dlunknown
  9527. cat > conftest.$ac_ext <<_LT_EOF
  9528. #line $LINENO "configure"
  9529. #include "confdefs.h"
  9530. #if HAVE_DLFCN_H
  9531. #include <dlfcn.h>
  9532. #endif
  9533. #include <stdio.h>
  9534. #ifdef RTLD_GLOBAL
  9535. # define LT_DLGLOBAL RTLD_GLOBAL
  9536. #else
  9537. # ifdef DL_GLOBAL
  9538. # define LT_DLGLOBAL DL_GLOBAL
  9539. # else
  9540. # define LT_DLGLOBAL 0
  9541. # endif
  9542. #endif
  9543. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9544. find out it does not work in some platform. */
  9545. #ifndef LT_DLLAZY_OR_NOW
  9546. # ifdef RTLD_LAZY
  9547. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9548. # else
  9549. # ifdef DL_LAZY
  9550. # define LT_DLLAZY_OR_NOW DL_LAZY
  9551. # else
  9552. # ifdef RTLD_NOW
  9553. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9554. # else
  9555. # ifdef DL_NOW
  9556. # define LT_DLLAZY_OR_NOW DL_NOW
  9557. # else
  9558. # define LT_DLLAZY_OR_NOW 0
  9559. # endif
  9560. # endif
  9561. # endif
  9562. # endif
  9563. #endif
  9564. /* When -fvisbility=hidden is used, assume the code has been annotated
  9565. correspondingly for the symbols needed. */
  9566. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9567. int fnord () __attribute__((visibility("default")));
  9568. #endif
  9569. int fnord () { return 42; }
  9570. int main ()
  9571. {
  9572. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9573. int status = $lt_dlunknown;
  9574. if (self)
  9575. {
  9576. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9577. else
  9578. {
  9579. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9580. else puts (dlerror ());
  9581. }
  9582. /* dlclose (self); */
  9583. }
  9584. else
  9585. puts (dlerror ());
  9586. return status;
  9587. }
  9588. _LT_EOF
  9589. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9590. (eval $ac_link) 2>&5
  9591. ac_status=$?
  9592. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9593. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9594. (./conftest; exit; ) >&5 2>/dev/null
  9595. lt_status=$?
  9596. case x$lt_status in
  9597. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9598. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9599. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9600. esac
  9601. else :
  9602. # compilation failed
  9603. lt_cv_dlopen_self_static=no
  9604. fi
  9605. fi
  9606. rm -fr conftest*
  9607. fi
  9608. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9609. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9610. fi
  9611. CPPFLAGS="$save_CPPFLAGS"
  9612. LDFLAGS="$save_LDFLAGS"
  9613. LIBS="$save_LIBS"
  9614. ;;
  9615. esac
  9616. case $lt_cv_dlopen_self in
  9617. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9618. *) enable_dlopen_self=unknown ;;
  9619. esac
  9620. case $lt_cv_dlopen_self_static in
  9621. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9622. *) enable_dlopen_self_static=unknown ;;
  9623. esac
  9624. fi
  9625. striplib=
  9626. old_striplib=
  9627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9628. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9629. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9630. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9631. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9633. $as_echo "yes" >&6; }
  9634. else
  9635. # FIXME - insert some real tests, host_os isn't really good enough
  9636. case $host_os in
  9637. darwin*)
  9638. if test -n "$STRIP" ; then
  9639. striplib="$STRIP -x"
  9640. old_striplib="$STRIP -S"
  9641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9642. $as_echo "yes" >&6; }
  9643. else
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9645. $as_echo "no" >&6; }
  9646. fi
  9647. ;;
  9648. *)
  9649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9650. $as_echo "no" >&6; }
  9651. ;;
  9652. esac
  9653. fi
  9654. # Report which library types will actually be built
  9655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9656. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9658. $as_echo "$can_build_shared" >&6; }
  9659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9660. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9661. test "$can_build_shared" = "no" && enable_shared=no
  9662. # On AIX, shared libraries and static libraries use the same namespace, and
  9663. # are all built from PIC.
  9664. case $host_os in
  9665. aix3*)
  9666. test "$enable_shared" = yes && enable_static=no
  9667. if test -n "$RANLIB"; then
  9668. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9669. postinstall_cmds='$RANLIB $lib'
  9670. fi
  9671. ;;
  9672. aix[4-9]*)
  9673. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9674. test "$enable_shared" = yes && enable_static=no
  9675. fi
  9676. ;;
  9677. esac
  9678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9679. $as_echo "$enable_shared" >&6; }
  9680. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9681. $as_echo_n "checking whether to build static libraries... " >&6; }
  9682. # Make sure either enable_shared or enable_static is yes.
  9683. test "$enable_shared" = yes || enable_static=yes
  9684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9685. $as_echo "$enable_static" >&6; }
  9686. fi
  9687. ac_ext=c
  9688. ac_cpp='$CPP $CPPFLAGS'
  9689. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9690. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9691. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9692. CC="$lt_save_CC"
  9693. ac_config_commands="$ac_config_commands libtool"
  9694. # Only expand once:
  9695. ac_config_files="$ac_config_files Makefile"
  9696. cat >confcache <<\_ACEOF
  9697. # This file is a shell script that caches the results of configure
  9698. # tests run on this system so they can be shared between configure
  9699. # scripts and configure runs, see configure's option --config-cache.
  9700. # It is not useful on other systems. If it contains results you don't
  9701. # want to keep, you may remove or edit it.
  9702. #
  9703. # config.status only pays attention to the cache file if you give it
  9704. # the --recheck option to rerun configure.
  9705. #
  9706. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9707. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9708. # following values.
  9709. _ACEOF
  9710. # The following way of writing the cache mishandles newlines in values,
  9711. # but we know of no workaround that is simple, portable, and efficient.
  9712. # So, we kill variables containing newlines.
  9713. # Ultrix sh set writes to stderr and can't be redirected directly,
  9714. # and sets the high bit in the cache file unless we assign to the vars.
  9715. (
  9716. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9717. eval ac_val=\$$ac_var
  9718. case $ac_val in #(
  9719. *${as_nl}*)
  9720. case $ac_var in #(
  9721. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9722. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9723. esac
  9724. case $ac_var in #(
  9725. _ | IFS | as_nl) ;; #(
  9726. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9727. *) { eval $ac_var=; unset $ac_var;} ;;
  9728. esac ;;
  9729. esac
  9730. done
  9731. (set) 2>&1 |
  9732. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9733. *${as_nl}ac_space=\ *)
  9734. # `set' does not quote correctly, so add quotes: double-quote
  9735. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9736. sed -n \
  9737. "s/'/'\\\\''/g;
  9738. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9739. ;; #(
  9740. *)
  9741. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9742. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9743. ;;
  9744. esac |
  9745. sort
  9746. ) |
  9747. sed '
  9748. /^ac_cv_env_/b end
  9749. t clear
  9750. :clear
  9751. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9752. t end
  9753. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9754. :end' >>confcache
  9755. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9756. if test -w "$cache_file"; then
  9757. if test "x$cache_file" != "x/dev/null"; then
  9758. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9759. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9760. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9761. cat confcache >"$cache_file"
  9762. else
  9763. case $cache_file in #(
  9764. */* | ?:*)
  9765. mv -f confcache "$cache_file"$$ &&
  9766. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9767. *)
  9768. mv -f confcache "$cache_file" ;;
  9769. esac
  9770. fi
  9771. fi
  9772. else
  9773. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9774. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9775. fi
  9776. fi
  9777. rm -f confcache
  9778. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9779. # Let make expand exec_prefix.
  9780. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9781. # Transform confdefs.h into DEFS.
  9782. # Protect against shell expansion while executing Makefile rules.
  9783. # Protect against Makefile macro expansion.
  9784. #
  9785. # If the first sed substitution is executed (which looks for macros that
  9786. # take arguments), then branch to the quote section. Otherwise,
  9787. # look for a macro that doesn't take arguments.
  9788. ac_script='
  9789. :mline
  9790. /\\$/{
  9791. N
  9792. s,\\\n,,
  9793. b mline
  9794. }
  9795. t clear
  9796. :clear
  9797. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9798. t quote
  9799. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9800. t quote
  9801. b any
  9802. :quote
  9803. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9804. s/\[/\\&/g
  9805. s/\]/\\&/g
  9806. s/\$/$$/g
  9807. H
  9808. :any
  9809. ${
  9810. g
  9811. s/^\n//
  9812. s/\n/ /g
  9813. p
  9814. }
  9815. '
  9816. DEFS=`sed -n "$ac_script" confdefs.h`
  9817. ac_libobjs=
  9818. ac_ltlibobjs=
  9819. U=
  9820. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9821. # 1. Remove the extension, and $U if already installed.
  9822. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9823. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9824. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9825. # will be set to the directory where LIBOBJS objects are built.
  9826. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9827. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9828. done
  9829. LIBOBJS=$ac_libobjs
  9830. LTLIBOBJS=$ac_ltlibobjs
  9831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9832. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9833. if test -n "$am_sleep_pid"; then
  9834. # Hide warnings about reused PIDs.
  9835. wait $am_sleep_pid 2>/dev/null
  9836. fi
  9837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  9838. $as_echo "done" >&6; }
  9839. if test -n "$EXEEXT"; then
  9840. am__EXEEXT_TRUE=
  9841. am__EXEEXT_FALSE='#'
  9842. else
  9843. am__EXEEXT_TRUE='#'
  9844. am__EXEEXT_FALSE=
  9845. fi
  9846. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9847. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9848. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9849. fi
  9850. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9851. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9852. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9853. fi
  9854. : "${CONFIG_STATUS=./config.status}"
  9855. ac_write_fail=0
  9856. ac_clean_files_save=$ac_clean_files
  9857. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9858. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9859. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9860. as_write_fail=0
  9861. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9862. #! $SHELL
  9863. # Generated by $as_me.
  9864. # Run this file to recreate the current configuration.
  9865. # Compiler output produced by configure, useful for debugging
  9866. # configure, is in config.log if it exists.
  9867. debug=false
  9868. ac_cs_recheck=false
  9869. ac_cs_silent=false
  9870. SHELL=\${CONFIG_SHELL-$SHELL}
  9871. export SHELL
  9872. _ASEOF
  9873. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9874. ## -------------------- ##
  9875. ## M4sh Initialization. ##
  9876. ## -------------------- ##
  9877. # Be more Bourne compatible
  9878. DUALCASE=1; export DUALCASE # for MKS sh
  9879. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9880. emulate sh
  9881. NULLCMD=:
  9882. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9883. # is contrary to our usage. Disable this feature.
  9884. alias -g '${1+"$@"}'='"$@"'
  9885. setopt NO_GLOB_SUBST
  9886. else
  9887. case `(set -o) 2>/dev/null` in #(
  9888. *posix*) :
  9889. set -o posix ;; #(
  9890. *) :
  9891. ;;
  9892. esac
  9893. fi
  9894. as_nl='
  9895. '
  9896. export as_nl
  9897. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9898. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9899. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9900. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9901. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9902. # but without wasting forks for bash or zsh.
  9903. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9904. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9905. as_echo='print -r --'
  9906. as_echo_n='print -rn --'
  9907. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9908. as_echo='printf %s\n'
  9909. as_echo_n='printf %s'
  9910. else
  9911. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9912. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9913. as_echo_n='/usr/ucb/echo -n'
  9914. else
  9915. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9916. as_echo_n_body='eval
  9917. arg=$1;
  9918. case $arg in #(
  9919. *"$as_nl"*)
  9920. expr "X$arg" : "X\\(.*\\)$as_nl";
  9921. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9922. esac;
  9923. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9924. '
  9925. export as_echo_n_body
  9926. as_echo_n='sh -c $as_echo_n_body as_echo'
  9927. fi
  9928. export as_echo_body
  9929. as_echo='sh -c $as_echo_body as_echo'
  9930. fi
  9931. # The user is always right.
  9932. if test "${PATH_SEPARATOR+set}" != set; then
  9933. PATH_SEPARATOR=:
  9934. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9935. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9936. PATH_SEPARATOR=';'
  9937. }
  9938. fi
  9939. # IFS
  9940. # We need space, tab and new line, in precisely that order. Quoting is
  9941. # there to prevent editors from complaining about space-tab.
  9942. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9943. # splitting by setting IFS to empty value.)
  9944. IFS=" "" $as_nl"
  9945. # Find who we are. Look in the path if we contain no directory separator.
  9946. as_myself=
  9947. case $0 in #((
  9948. *[\\/]* ) as_myself=$0 ;;
  9949. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9950. for as_dir in $PATH
  9951. do
  9952. IFS=$as_save_IFS
  9953. test -z "$as_dir" && as_dir=.
  9954. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9955. done
  9956. IFS=$as_save_IFS
  9957. ;;
  9958. esac
  9959. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9960. # in which case we are not to be found in the path.
  9961. if test "x$as_myself" = x; then
  9962. as_myself=$0
  9963. fi
  9964. if test ! -f "$as_myself"; then
  9965. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9966. exit 1
  9967. fi
  9968. # Unset variables that we do not need and which cause bugs (e.g. in
  9969. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9970. # suppresses any "Segmentation fault" message there. '((' could
  9971. # trigger a bug in pdksh 5.2.14.
  9972. for as_var in BASH_ENV ENV MAIL MAILPATH
  9973. do eval test x\${$as_var+set} = xset \
  9974. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9975. done
  9976. PS1='$ '
  9977. PS2='> '
  9978. PS4='+ '
  9979. # NLS nuisances.
  9980. LC_ALL=C
  9981. export LC_ALL
  9982. LANGUAGE=C
  9983. export LANGUAGE
  9984. # CDPATH.
  9985. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9986. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9987. # ----------------------------------------
  9988. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9989. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9990. # script with STATUS, using 1 if that was 0.
  9991. as_fn_error ()
  9992. {
  9993. as_status=$1; test $as_status -eq 0 && as_status=1
  9994. if test "$4"; then
  9995. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  9996. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  9997. fi
  9998. $as_echo "$as_me: error: $2" >&2
  9999. as_fn_exit $as_status
  10000. } # as_fn_error
  10001. # as_fn_set_status STATUS
  10002. # -----------------------
  10003. # Set $? to STATUS, without forking.
  10004. as_fn_set_status ()
  10005. {
  10006. return $1
  10007. } # as_fn_set_status
  10008. # as_fn_exit STATUS
  10009. # -----------------
  10010. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10011. as_fn_exit ()
  10012. {
  10013. set +e
  10014. as_fn_set_status $1
  10015. exit $1
  10016. } # as_fn_exit
  10017. # as_fn_unset VAR
  10018. # ---------------
  10019. # Portably unset VAR.
  10020. as_fn_unset ()
  10021. {
  10022. { eval $1=; unset $1;}
  10023. }
  10024. as_unset=as_fn_unset
  10025. # as_fn_append VAR VALUE
  10026. # ----------------------
  10027. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10028. # advantage of any shell optimizations that allow amortized linear growth over
  10029. # repeated appends, instead of the typical quadratic growth present in naive
  10030. # implementations.
  10031. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10032. eval 'as_fn_append ()
  10033. {
  10034. eval $1+=\$2
  10035. }'
  10036. else
  10037. as_fn_append ()
  10038. {
  10039. eval $1=\$$1\$2
  10040. }
  10041. fi # as_fn_append
  10042. # as_fn_arith ARG...
  10043. # ------------------
  10044. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10045. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10046. # must be portable across $(()) and expr.
  10047. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10048. eval 'as_fn_arith ()
  10049. {
  10050. as_val=$(( $* ))
  10051. }'
  10052. else
  10053. as_fn_arith ()
  10054. {
  10055. as_val=`expr "$@" || test $? -eq 1`
  10056. }
  10057. fi # as_fn_arith
  10058. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10059. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10060. as_expr=expr
  10061. else
  10062. as_expr=false
  10063. fi
  10064. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10065. as_basename=basename
  10066. else
  10067. as_basename=false
  10068. fi
  10069. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10070. as_dirname=dirname
  10071. else
  10072. as_dirname=false
  10073. fi
  10074. as_me=`$as_basename -- "$0" ||
  10075. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10076. X"$0" : 'X\(//\)$' \| \
  10077. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10078. $as_echo X/"$0" |
  10079. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10080. s//\1/
  10081. q
  10082. }
  10083. /^X\/\(\/\/\)$/{
  10084. s//\1/
  10085. q
  10086. }
  10087. /^X\/\(\/\).*/{
  10088. s//\1/
  10089. q
  10090. }
  10091. s/.*/./; q'`
  10092. # Avoid depending upon Character Ranges.
  10093. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10094. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10095. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10096. as_cr_digits='0123456789'
  10097. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10098. ECHO_C= ECHO_N= ECHO_T=
  10099. case `echo -n x` in #(((((
  10100. -n*)
  10101. case `echo 'xy\c'` in
  10102. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10103. xy) ECHO_C='\c';;
  10104. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10105. ECHO_T=' ';;
  10106. esac;;
  10107. *)
  10108. ECHO_N='-n';;
  10109. esac
  10110. rm -f conf$$ conf$$.exe conf$$.file
  10111. if test -d conf$$.dir; then
  10112. rm -f conf$$.dir/conf$$.file
  10113. else
  10114. rm -f conf$$.dir
  10115. mkdir conf$$.dir 2>/dev/null
  10116. fi
  10117. if (echo >conf$$.file) 2>/dev/null; then
  10118. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10119. as_ln_s='ln -s'
  10120. # ... but there are two gotchas:
  10121. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10122. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10123. # In both cases, we have to default to `cp -pR'.
  10124. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10125. as_ln_s='cp -pR'
  10126. elif ln conf$$.file conf$$ 2>/dev/null; then
  10127. as_ln_s=ln
  10128. else
  10129. as_ln_s='cp -pR'
  10130. fi
  10131. else
  10132. as_ln_s='cp -pR'
  10133. fi
  10134. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10135. rmdir conf$$.dir 2>/dev/null
  10136. # as_fn_mkdir_p
  10137. # -------------
  10138. # Create "$as_dir" as a directory, including parents if necessary.
  10139. as_fn_mkdir_p ()
  10140. {
  10141. case $as_dir in #(
  10142. -*) as_dir=./$as_dir;;
  10143. esac
  10144. test -d "$as_dir" || eval $as_mkdir_p || {
  10145. as_dirs=
  10146. while :; do
  10147. case $as_dir in #(
  10148. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10149. *) as_qdir=$as_dir;;
  10150. esac
  10151. as_dirs="'$as_qdir' $as_dirs"
  10152. as_dir=`$as_dirname -- "$as_dir" ||
  10153. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10154. X"$as_dir" : 'X\(//\)[^/]' \| \
  10155. X"$as_dir" : 'X\(//\)$' \| \
  10156. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10157. $as_echo X"$as_dir" |
  10158. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10159. s//\1/
  10160. q
  10161. }
  10162. /^X\(\/\/\)[^/].*/{
  10163. s//\1/
  10164. q
  10165. }
  10166. /^X\(\/\/\)$/{
  10167. s//\1/
  10168. q
  10169. }
  10170. /^X\(\/\).*/{
  10171. s//\1/
  10172. q
  10173. }
  10174. s/.*/./; q'`
  10175. test -d "$as_dir" && break
  10176. done
  10177. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10178. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10179. } # as_fn_mkdir_p
  10180. if mkdir -p . 2>/dev/null; then
  10181. as_mkdir_p='mkdir -p "$as_dir"'
  10182. else
  10183. test -d ./-p && rmdir ./-p
  10184. as_mkdir_p=false
  10185. fi
  10186. # as_fn_executable_p FILE
  10187. # -----------------------
  10188. # Test if FILE is an executable regular file.
  10189. as_fn_executable_p ()
  10190. {
  10191. test -f "$1" && test -x "$1"
  10192. } # as_fn_executable_p
  10193. as_test_x='test -x'
  10194. as_executable_p=as_fn_executable_p
  10195. # Sed expression to map a string onto a valid CPP name.
  10196. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10197. # Sed expression to map a string onto a valid variable name.
  10198. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10199. exec 6>&1
  10200. ## ----------------------------------- ##
  10201. ## Main body of $CONFIG_STATUS script. ##
  10202. ## ----------------------------------- ##
  10203. _ASEOF
  10204. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10205. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10206. # Save the log message, to keep $0 and so on meaningful, and to
  10207. # report actual input values of CONFIG_FILES etc. instead of their
  10208. # values after options handling.
  10209. ac_log="
  10210. This file was extended by libcsv $as_me 3.0.3, which was
  10211. generated by GNU Autoconf 2.69. Invocation command line was
  10212. CONFIG_FILES = $CONFIG_FILES
  10213. CONFIG_HEADERS = $CONFIG_HEADERS
  10214. CONFIG_LINKS = $CONFIG_LINKS
  10215. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10216. $ $0 $@
  10217. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10218. "
  10219. _ACEOF
  10220. case $ac_config_files in *"
  10221. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10222. esac
  10223. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10224. # Files that config.status was made for.
  10225. config_files="$ac_config_files"
  10226. config_commands="$ac_config_commands"
  10227. _ACEOF
  10228. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10229. ac_cs_usage="\
  10230. \`$as_me' instantiates files and other configuration actions
  10231. from templates according to the current configuration. Unless the files
  10232. and actions are specified as TAGs, all are instantiated by default.
  10233. Usage: $0 [OPTION]... [TAG]...
  10234. -h, --help print this help, then exit
  10235. -V, --version print version number and configuration settings, then exit
  10236. --config print configuration, then exit
  10237. -q, --quiet, --silent
  10238. do not print progress messages
  10239. -d, --debug don't remove temporary files
  10240. --recheck update $as_me by reconfiguring in the same conditions
  10241. --file=FILE[:TEMPLATE]
  10242. instantiate the configuration file FILE
  10243. Configuration files:
  10244. $config_files
  10245. Configuration commands:
  10246. $config_commands
  10247. Report bugs to <rgamble99@gmail.com>.
  10248. libcsv home page: <https://github.com/rgamble/libcsv>."
  10249. _ACEOF
  10250. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10251. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10252. ac_cs_version="\\
  10253. libcsv config.status 3.0.3
  10254. configured by $0, generated by GNU Autoconf 2.69,
  10255. with options \\"\$ac_cs_config\\"
  10256. Copyright (C) 2012 Free Software Foundation, Inc.
  10257. This config.status script is free software; the Free Software Foundation
  10258. gives unlimited permission to copy, distribute and modify it."
  10259. ac_pwd='$ac_pwd'
  10260. srcdir='$srcdir'
  10261. INSTALL='$INSTALL'
  10262. MKDIR_P='$MKDIR_P'
  10263. AWK='$AWK'
  10264. test -n "\$AWK" || AWK=awk
  10265. _ACEOF
  10266. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10267. # The default lists apply if the user does not specify any file.
  10268. ac_need_defaults=:
  10269. while test $# != 0
  10270. do
  10271. case $1 in
  10272. --*=?*)
  10273. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10274. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10275. ac_shift=:
  10276. ;;
  10277. --*=)
  10278. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10279. ac_optarg=
  10280. ac_shift=:
  10281. ;;
  10282. *)
  10283. ac_option=$1
  10284. ac_optarg=$2
  10285. ac_shift=shift
  10286. ;;
  10287. esac
  10288. case $ac_option in
  10289. # Handling of the options.
  10290. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10291. ac_cs_recheck=: ;;
  10292. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10293. $as_echo "$ac_cs_version"; exit ;;
  10294. --config | --confi | --conf | --con | --co | --c )
  10295. $as_echo "$ac_cs_config"; exit ;;
  10296. --debug | --debu | --deb | --de | --d | -d )
  10297. debug=: ;;
  10298. --file | --fil | --fi | --f )
  10299. $ac_shift
  10300. case $ac_optarg in
  10301. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10302. '') as_fn_error $? "missing file argument" ;;
  10303. esac
  10304. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10305. ac_need_defaults=false;;
  10306. --he | --h | --help | --hel | -h )
  10307. $as_echo "$ac_cs_usage"; exit ;;
  10308. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10309. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10310. ac_cs_silent=: ;;
  10311. # This is an error.
  10312. -*) as_fn_error $? "unrecognized option: \`$1'
  10313. Try \`$0 --help' for more information." ;;
  10314. *) as_fn_append ac_config_targets " $1"
  10315. ac_need_defaults=false ;;
  10316. esac
  10317. shift
  10318. done
  10319. ac_configure_extra_args=
  10320. if $ac_cs_silent; then
  10321. exec 6>/dev/null
  10322. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10323. fi
  10324. _ACEOF
  10325. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10326. if \$ac_cs_recheck; then
  10327. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10328. shift
  10329. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10330. CONFIG_SHELL='$SHELL'
  10331. export CONFIG_SHELL
  10332. exec "\$@"
  10333. fi
  10334. _ACEOF
  10335. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10336. exec 5>>config.log
  10337. {
  10338. echo
  10339. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10340. ## Running $as_me. ##
  10341. _ASBOX
  10342. $as_echo "$ac_log"
  10343. } >&5
  10344. _ACEOF
  10345. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10346. #
  10347. # INIT-COMMANDS
  10348. #
  10349. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10350. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10351. # if CDPATH is set.
  10352. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10353. sed_quote_subst='$sed_quote_subst'
  10354. double_quote_subst='$double_quote_subst'
  10355. delay_variable_subst='$delay_variable_subst'
  10356. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10357. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10358. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10359. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10360. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10361. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10362. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10363. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10364. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10365. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10366. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10367. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10368. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10369. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10370. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10371. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10372. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10373. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10374. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10375. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10376. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10377. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10378. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10379. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10380. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10381. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10382. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10383. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10384. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10385. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10386. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10387. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10388. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10389. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10390. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10391. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10392. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10393. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10394. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10395. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10396. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10397. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10398. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10399. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10400. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10401. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10402. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10403. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10404. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10405. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10406. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10407. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10408. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10409. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10410. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10411. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10412. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10413. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10414. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10415. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10416. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10417. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10418. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10419. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10420. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10421. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10422. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10423. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10424. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10425. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10426. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10427. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10428. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10429. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10430. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10431. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10432. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10433. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10434. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10435. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10436. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10437. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10438. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10439. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10440. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10441. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10442. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10443. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10444. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10445. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10446. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10447. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10448. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10449. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10450. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10451. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10452. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10453. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10454. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10455. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10456. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10457. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10458. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10459. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10460. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10461. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10462. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10463. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10464. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10465. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10466. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10467. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10468. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10469. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10470. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10471. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10472. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10473. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10474. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10475. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10476. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10477. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10478. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10479. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10480. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10481. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10482. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10483. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10484. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10485. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10486. LTCC='$LTCC'
  10487. LTCFLAGS='$LTCFLAGS'
  10488. compiler='$compiler_DEFAULT'
  10489. # A function that is used when there is no print builtin or printf.
  10490. func_fallback_echo ()
  10491. {
  10492. eval 'cat <<_LTECHO_EOF
  10493. \$1
  10494. _LTECHO_EOF'
  10495. }
  10496. # Quote evaled strings.
  10497. for var in SHELL \
  10498. ECHO \
  10499. PATH_SEPARATOR \
  10500. SED \
  10501. GREP \
  10502. EGREP \
  10503. FGREP \
  10504. LD \
  10505. NM \
  10506. LN_S \
  10507. lt_SP2NL \
  10508. lt_NL2SP \
  10509. reload_flag \
  10510. OBJDUMP \
  10511. deplibs_check_method \
  10512. file_magic_cmd \
  10513. file_magic_glob \
  10514. want_nocaseglob \
  10515. DLLTOOL \
  10516. sharedlib_from_linklib_cmd \
  10517. AR \
  10518. AR_FLAGS \
  10519. archiver_list_spec \
  10520. STRIP \
  10521. RANLIB \
  10522. CC \
  10523. CFLAGS \
  10524. compiler \
  10525. lt_cv_sys_global_symbol_pipe \
  10526. lt_cv_sys_global_symbol_to_cdecl \
  10527. lt_cv_sys_global_symbol_to_c_name_address \
  10528. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10529. nm_file_list_spec \
  10530. lt_prog_compiler_no_builtin_flag \
  10531. lt_prog_compiler_pic \
  10532. lt_prog_compiler_wl \
  10533. lt_prog_compiler_static \
  10534. lt_cv_prog_compiler_c_o \
  10535. need_locks \
  10536. MANIFEST_TOOL \
  10537. DSYMUTIL \
  10538. NMEDIT \
  10539. LIPO \
  10540. OTOOL \
  10541. OTOOL64 \
  10542. shrext_cmds \
  10543. export_dynamic_flag_spec \
  10544. whole_archive_flag_spec \
  10545. compiler_needs_object \
  10546. with_gnu_ld \
  10547. allow_undefined_flag \
  10548. no_undefined_flag \
  10549. hardcode_libdir_flag_spec \
  10550. hardcode_libdir_separator \
  10551. exclude_expsyms \
  10552. include_expsyms \
  10553. file_list_spec \
  10554. variables_saved_for_relink \
  10555. libname_spec \
  10556. library_names_spec \
  10557. soname_spec \
  10558. install_override_mode \
  10559. finish_eval \
  10560. old_striplib \
  10561. striplib; do
  10562. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10563. *[\\\\\\\`\\"\\\$]*)
  10564. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10565. ;;
  10566. *)
  10567. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10568. ;;
  10569. esac
  10570. done
  10571. # Double-quote double-evaled strings.
  10572. for var in reload_cmds \
  10573. old_postinstall_cmds \
  10574. old_postuninstall_cmds \
  10575. old_archive_cmds \
  10576. extract_expsyms_cmds \
  10577. old_archive_from_new_cmds \
  10578. old_archive_from_expsyms_cmds \
  10579. archive_cmds \
  10580. archive_expsym_cmds \
  10581. module_cmds \
  10582. module_expsym_cmds \
  10583. export_symbols_cmds \
  10584. prelink_cmds \
  10585. postlink_cmds \
  10586. postinstall_cmds \
  10587. postuninstall_cmds \
  10588. finish_cmds \
  10589. sys_lib_search_path_spec \
  10590. sys_lib_dlsearch_path_spec; do
  10591. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10592. *[\\\\\\\`\\"\\\$]*)
  10593. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10594. ;;
  10595. *)
  10596. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10597. ;;
  10598. esac
  10599. done
  10600. ac_aux_dir='$ac_aux_dir'
  10601. xsi_shell='$xsi_shell'
  10602. lt_shell_append='$lt_shell_append'
  10603. # See if we are running on zsh, and set the options which allow our
  10604. # commands through without removal of \ escapes INIT.
  10605. if test -n "\${ZSH_VERSION+set}" ; then
  10606. setopt NO_GLOB_SUBST
  10607. fi
  10608. PACKAGE='$PACKAGE'
  10609. VERSION='$VERSION'
  10610. TIMESTAMP='$TIMESTAMP'
  10611. RM='$RM'
  10612. ofile='$ofile'
  10613. _ACEOF
  10614. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10615. # Handling of arguments.
  10616. for ac_config_target in $ac_config_targets
  10617. do
  10618. case $ac_config_target in
  10619. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10620. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10621. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10622. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10623. esac
  10624. done
  10625. # If the user did not use the arguments to specify the items to instantiate,
  10626. # then the envvar interface is used. Set only those that are not.
  10627. # We use the long form for the default assignment because of an extremely
  10628. # bizarre bug on SunOS 4.1.3.
  10629. if $ac_need_defaults; then
  10630. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10631. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10632. fi
  10633. # Have a temporary directory for convenience. Make it in the build tree
  10634. # simply because there is no reason against having it here, and in addition,
  10635. # creating and moving files from /tmp can sometimes cause problems.
  10636. # Hook for its removal unless debugging.
  10637. # Note that there is a small window in which the directory will not be cleaned:
  10638. # after its creation but before its name has been assigned to `$tmp'.
  10639. $debug ||
  10640. {
  10641. tmp= ac_tmp=
  10642. trap 'exit_status=$?
  10643. : "${ac_tmp:=$tmp}"
  10644. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10645. ' 0
  10646. trap 'as_fn_exit 1' 1 2 13 15
  10647. }
  10648. # Create a (secure) tmp directory for tmp files.
  10649. {
  10650. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10651. test -d "$tmp"
  10652. } ||
  10653. {
  10654. tmp=./conf$$-$RANDOM
  10655. (umask 077 && mkdir "$tmp")
  10656. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10657. ac_tmp=$tmp
  10658. # Set up the scripts for CONFIG_FILES section.
  10659. # No need to generate them if there are no CONFIG_FILES.
  10660. # This happens for instance with `./config.status config.h'.
  10661. if test -n "$CONFIG_FILES"; then
  10662. ac_cr=`echo X | tr X '\015'`
  10663. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10664. # But we know of no other shell where ac_cr would be empty at this
  10665. # point, so we can use a bashism as a fallback.
  10666. if test "x$ac_cr" = x; then
  10667. eval ac_cr=\$\'\\r\'
  10668. fi
  10669. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10670. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10671. ac_cs_awk_cr='\\r'
  10672. else
  10673. ac_cs_awk_cr=$ac_cr
  10674. fi
  10675. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10676. _ACEOF
  10677. {
  10678. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10679. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10680. echo "_ACEOF"
  10681. } >conf$$subs.sh ||
  10682. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10683. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10684. ac_delim='%!_!# '
  10685. for ac_last_try in false false false false false :; do
  10686. . ./conf$$subs.sh ||
  10687. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10688. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10689. if test $ac_delim_n = $ac_delim_num; then
  10690. break
  10691. elif $ac_last_try; then
  10692. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10693. else
  10694. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10695. fi
  10696. done
  10697. rm -f conf$$subs.sh
  10698. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10699. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10700. _ACEOF
  10701. sed -n '
  10702. h
  10703. s/^/S["/; s/!.*/"]=/
  10704. p
  10705. g
  10706. s/^[^!]*!//
  10707. :repl
  10708. t repl
  10709. s/'"$ac_delim"'$//
  10710. t delim
  10711. :nl
  10712. h
  10713. s/\(.\{148\}\)..*/\1/
  10714. t more1
  10715. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10716. p
  10717. n
  10718. b repl
  10719. :more1
  10720. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10721. p
  10722. g
  10723. s/.\{148\}//
  10724. t nl
  10725. :delim
  10726. h
  10727. s/\(.\{148\}\)..*/\1/
  10728. t more2
  10729. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10730. p
  10731. b
  10732. :more2
  10733. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10734. p
  10735. g
  10736. s/.\{148\}//
  10737. t delim
  10738. ' <conf$$subs.awk | sed '
  10739. /^[^""]/{
  10740. N
  10741. s/\n//
  10742. }
  10743. ' >>$CONFIG_STATUS || ac_write_fail=1
  10744. rm -f conf$$subs.awk
  10745. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10746. _ACAWK
  10747. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10748. for (key in S) S_is_set[key] = 1
  10749. FS = ""
  10750. }
  10751. {
  10752. line = $ 0
  10753. nfields = split(line, field, "@")
  10754. substed = 0
  10755. len = length(field[1])
  10756. for (i = 2; i < nfields; i++) {
  10757. key = field[i]
  10758. keylen = length(key)
  10759. if (S_is_set[key]) {
  10760. value = S[key]
  10761. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10762. len += length(value) + length(field[++i])
  10763. substed = 1
  10764. } else
  10765. len += 1 + keylen
  10766. }
  10767. print line
  10768. }
  10769. _ACAWK
  10770. _ACEOF
  10771. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10772. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10773. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10774. else
  10775. cat
  10776. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10777. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10778. _ACEOF
  10779. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10780. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10781. # trailing colons and then remove the whole line if VPATH becomes empty
  10782. # (actually we leave an empty line to preserve line numbers).
  10783. if test "x$srcdir" = x.; then
  10784. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10785. h
  10786. s///
  10787. s/^/:/
  10788. s/[ ]*$/:/
  10789. s/:\$(srcdir):/:/g
  10790. s/:\${srcdir}:/:/g
  10791. s/:@srcdir@:/:/g
  10792. s/^:*//
  10793. s/:*$//
  10794. x
  10795. s/\(=[ ]*\).*/\1/
  10796. G
  10797. s/\n//
  10798. s/^[^=]*=[ ]*$//
  10799. }'
  10800. fi
  10801. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10802. fi # test -n "$CONFIG_FILES"
  10803. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10804. shift
  10805. for ac_tag
  10806. do
  10807. case $ac_tag in
  10808. :[FHLC]) ac_mode=$ac_tag; continue;;
  10809. esac
  10810. case $ac_mode$ac_tag in
  10811. :[FHL]*:*);;
  10812. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10813. :[FH]-) ac_tag=-:-;;
  10814. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10815. esac
  10816. ac_save_IFS=$IFS
  10817. IFS=:
  10818. set x $ac_tag
  10819. IFS=$ac_save_IFS
  10820. shift
  10821. ac_file=$1
  10822. shift
  10823. case $ac_mode in
  10824. :L) ac_source=$1;;
  10825. :[FH])
  10826. ac_file_inputs=
  10827. for ac_f
  10828. do
  10829. case $ac_f in
  10830. -) ac_f="$ac_tmp/stdin";;
  10831. *) # Look for the file first in the build tree, then in the source tree
  10832. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10833. # because $ac_f cannot contain `:'.
  10834. test -f "$ac_f" ||
  10835. case $ac_f in
  10836. [\\/$]*) false;;
  10837. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10838. esac ||
  10839. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10840. esac
  10841. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10842. as_fn_append ac_file_inputs " '$ac_f'"
  10843. done
  10844. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10845. # use $as_me), people would be surprised to read:
  10846. # /* config.h. Generated by config.status. */
  10847. configure_input='Generated from '`
  10848. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10849. `' by configure.'
  10850. if test x"$ac_file" != x-; then
  10851. configure_input="$ac_file. $configure_input"
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10853. $as_echo "$as_me: creating $ac_file" >&6;}
  10854. fi
  10855. # Neutralize special characters interpreted by sed in replacement strings.
  10856. case $configure_input in #(
  10857. *\&* | *\|* | *\\* )
  10858. ac_sed_conf_input=`$as_echo "$configure_input" |
  10859. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10860. *) ac_sed_conf_input=$configure_input;;
  10861. esac
  10862. case $ac_tag in
  10863. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10864. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10865. esac
  10866. ;;
  10867. esac
  10868. ac_dir=`$as_dirname -- "$ac_file" ||
  10869. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10870. X"$ac_file" : 'X\(//\)[^/]' \| \
  10871. X"$ac_file" : 'X\(//\)$' \| \
  10872. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10873. $as_echo X"$ac_file" |
  10874. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10875. s//\1/
  10876. q
  10877. }
  10878. /^X\(\/\/\)[^/].*/{
  10879. s//\1/
  10880. q
  10881. }
  10882. /^X\(\/\/\)$/{
  10883. s//\1/
  10884. q
  10885. }
  10886. /^X\(\/\).*/{
  10887. s//\1/
  10888. q
  10889. }
  10890. s/.*/./; q'`
  10891. as_dir="$ac_dir"; as_fn_mkdir_p
  10892. ac_builddir=.
  10893. case "$ac_dir" in
  10894. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10895. *)
  10896. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10897. # A ".." for each directory in $ac_dir_suffix.
  10898. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10899. case $ac_top_builddir_sub in
  10900. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10901. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10902. esac ;;
  10903. esac
  10904. ac_abs_top_builddir=$ac_pwd
  10905. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10906. # for backward compatibility:
  10907. ac_top_builddir=$ac_top_build_prefix
  10908. case $srcdir in
  10909. .) # We are building in place.
  10910. ac_srcdir=.
  10911. ac_top_srcdir=$ac_top_builddir_sub
  10912. ac_abs_top_srcdir=$ac_pwd ;;
  10913. [\\/]* | ?:[\\/]* ) # Absolute name.
  10914. ac_srcdir=$srcdir$ac_dir_suffix;
  10915. ac_top_srcdir=$srcdir
  10916. ac_abs_top_srcdir=$srcdir ;;
  10917. *) # Relative name.
  10918. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10919. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10920. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10921. esac
  10922. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10923. case $ac_mode in
  10924. :F)
  10925. #
  10926. # CONFIG_FILE
  10927. #
  10928. case $INSTALL in
  10929. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10930. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10931. esac
  10932. ac_MKDIR_P=$MKDIR_P
  10933. case $MKDIR_P in
  10934. [\\/$]* | ?:[\\/]* ) ;;
  10935. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10936. esac
  10937. _ACEOF
  10938. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10939. # If the template does not know about datarootdir, expand it.
  10940. # FIXME: This hack should be removed a few years after 2.60.
  10941. ac_datarootdir_hack=; ac_datarootdir_seen=
  10942. ac_sed_dataroot='
  10943. /datarootdir/ {
  10944. p
  10945. q
  10946. }
  10947. /@datadir@/p
  10948. /@docdir@/p
  10949. /@infodir@/p
  10950. /@localedir@/p
  10951. /@mandir@/p'
  10952. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10953. *datarootdir*) ac_datarootdir_seen=yes;;
  10954. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10955. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10956. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10957. _ACEOF
  10958. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10959. ac_datarootdir_hack='
  10960. s&@datadir@&$datadir&g
  10961. s&@docdir@&$docdir&g
  10962. s&@infodir@&$infodir&g
  10963. s&@localedir@&$localedir&g
  10964. s&@mandir@&$mandir&g
  10965. s&\\\${datarootdir}&$datarootdir&g' ;;
  10966. esac
  10967. _ACEOF
  10968. # Neutralize VPATH when `$srcdir' = `.'.
  10969. # Shell code in configure.ac might set extrasub.
  10970. # FIXME: do we really want to maintain this feature?
  10971. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10972. ac_sed_extra="$ac_vpsub
  10973. $extrasub
  10974. _ACEOF
  10975. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10976. :t
  10977. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10978. s|@configure_input@|$ac_sed_conf_input|;t t
  10979. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10980. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10981. s&@srcdir@&$ac_srcdir&;t t
  10982. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10983. s&@top_srcdir@&$ac_top_srcdir&;t t
  10984. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10985. s&@builddir@&$ac_builddir&;t t
  10986. s&@abs_builddir@&$ac_abs_builddir&;t t
  10987. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10988. s&@INSTALL@&$ac_INSTALL&;t t
  10989. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10990. $ac_datarootdir_hack
  10991. "
  10992. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  10993. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  10994. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  10995. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  10996. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  10997. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  10998. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  10999. which seems to be undefined. Please make sure it is defined" >&5
  11000. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11001. which seems to be undefined. Please make sure it is defined" >&2;}
  11002. rm -f "$ac_tmp/stdin"
  11003. case $ac_file in
  11004. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11005. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11006. esac \
  11007. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11008. ;;
  11009. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11010. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11011. ;;
  11012. esac
  11013. case $ac_file$ac_mode in
  11014. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11015. # Older Autoconf quotes --file arguments for eval, but not when files
  11016. # are listed without --file. Let's play safe and only enable the eval
  11017. # if we detect the quoting.
  11018. case $CONFIG_FILES in
  11019. *\'*) eval set x "$CONFIG_FILES" ;;
  11020. *) set x $CONFIG_FILES ;;
  11021. esac
  11022. shift
  11023. for mf
  11024. do
  11025. # Strip MF so we end up with the name of the file.
  11026. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11027. # Check whether this is an Automake generated Makefile or not.
  11028. # We used to match only the files named 'Makefile.in', but
  11029. # some people rename them; so instead we look at the file content.
  11030. # Grep'ing the first line is not enough: some people post-process
  11031. # each Makefile.in and add a new line on top of each file to say so.
  11032. # Grep'ing the whole file is not good either: AIX grep has a line
  11033. # limit of 2048, but all sed's we know have understand at least 4000.
  11034. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11035. dirpart=`$as_dirname -- "$mf" ||
  11036. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11037. X"$mf" : 'X\(//\)[^/]' \| \
  11038. X"$mf" : 'X\(//\)$' \| \
  11039. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11040. $as_echo X"$mf" |
  11041. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11042. s//\1/
  11043. q
  11044. }
  11045. /^X\(\/\/\)[^/].*/{
  11046. s//\1/
  11047. q
  11048. }
  11049. /^X\(\/\/\)$/{
  11050. s//\1/
  11051. q
  11052. }
  11053. /^X\(\/\).*/{
  11054. s//\1/
  11055. q
  11056. }
  11057. s/.*/./; q'`
  11058. else
  11059. continue
  11060. fi
  11061. # Extract the definition of DEPDIR, am__include, and am__quote
  11062. # from the Makefile without running 'make'.
  11063. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11064. test -z "$DEPDIR" && continue
  11065. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11066. test -z "$am__include" && continue
  11067. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11068. # Find all dependency output files, they are included files with
  11069. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11070. # simplest approach to changing $(DEPDIR) to its actual value in the
  11071. # expansion.
  11072. for file in `sed -n "
  11073. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11074. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11075. # Make sure the directory exists.
  11076. test -f "$dirpart/$file" && continue
  11077. fdir=`$as_dirname -- "$file" ||
  11078. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11079. X"$file" : 'X\(//\)[^/]' \| \
  11080. X"$file" : 'X\(//\)$' \| \
  11081. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11082. $as_echo X"$file" |
  11083. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11084. s//\1/
  11085. q
  11086. }
  11087. /^X\(\/\/\)[^/].*/{
  11088. s//\1/
  11089. q
  11090. }
  11091. /^X\(\/\/\)$/{
  11092. s//\1/
  11093. q
  11094. }
  11095. /^X\(\/\).*/{
  11096. s//\1/
  11097. q
  11098. }
  11099. s/.*/./; q'`
  11100. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11101. # echo "creating $dirpart/$file"
  11102. echo '# dummy' > "$dirpart/$file"
  11103. done
  11104. done
  11105. }
  11106. ;;
  11107. "libtool":C)
  11108. # See if we are running on zsh, and set the options which allow our
  11109. # commands through without removal of \ escapes.
  11110. if test -n "${ZSH_VERSION+set}" ; then
  11111. setopt NO_GLOB_SUBST
  11112. fi
  11113. cfgfile="${ofile}T"
  11114. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11115. $RM "$cfgfile"
  11116. cat <<_LT_EOF >> "$cfgfile"
  11117. #! $SHELL
  11118. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11119. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11120. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11121. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11122. #
  11123. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11124. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11125. # Foundation, Inc.
  11126. # Written by Gordon Matzigkeit, 1996
  11127. #
  11128. # This file is part of GNU Libtool.
  11129. #
  11130. # GNU Libtool is free software; you can redistribute it and/or
  11131. # modify it under the terms of the GNU General Public License as
  11132. # published by the Free Software Foundation; either version 2 of
  11133. # the License, or (at your option) any later version.
  11134. #
  11135. # As a special exception to the GNU General Public License,
  11136. # if you distribute this file as part of a program or library that
  11137. # is built using GNU Libtool, you may include this file under the
  11138. # same distribution terms that you use for the rest of that program.
  11139. #
  11140. # GNU Libtool is distributed in the hope that it will be useful,
  11141. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11142. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11143. # GNU General Public License for more details.
  11144. #
  11145. # You should have received a copy of the GNU General Public License
  11146. # along with GNU Libtool; see the file COPYING. If not, a copy
  11147. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11148. # obtained by writing to the Free Software Foundation, Inc.,
  11149. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11150. # The names of the tagged configurations supported by this script.
  11151. available_tags=""
  11152. # ### BEGIN LIBTOOL CONFIG
  11153. # Which release of libtool.m4 was used?
  11154. macro_version=$macro_version
  11155. macro_revision=$macro_revision
  11156. # Whether or not to build shared libraries.
  11157. build_libtool_libs=$enable_shared
  11158. # Whether or not to build static libraries.
  11159. build_old_libs=$enable_static
  11160. # What type of objects to build.
  11161. pic_mode=$pic_mode
  11162. # Whether or not to optimize for fast installation.
  11163. fast_install=$enable_fast_install
  11164. # Shell to use when invoking shell scripts.
  11165. SHELL=$lt_SHELL
  11166. # An echo program that protects backslashes.
  11167. ECHO=$lt_ECHO
  11168. # The PATH separator for the build system.
  11169. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11170. # The host system.
  11171. host_alias=$host_alias
  11172. host=$host
  11173. host_os=$host_os
  11174. # The build system.
  11175. build_alias=$build_alias
  11176. build=$build
  11177. build_os=$build_os
  11178. # A sed program that does not truncate output.
  11179. SED=$lt_SED
  11180. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11181. Xsed="\$SED -e 1s/^X//"
  11182. # A grep program that handles long lines.
  11183. GREP=$lt_GREP
  11184. # An ERE matcher.
  11185. EGREP=$lt_EGREP
  11186. # A literal string matcher.
  11187. FGREP=$lt_FGREP
  11188. # A BSD- or MS-compatible name lister.
  11189. NM=$lt_NM
  11190. # Whether we need soft or hard links.
  11191. LN_S=$lt_LN_S
  11192. # What is the maximum length of a command?
  11193. max_cmd_len=$max_cmd_len
  11194. # Object file suffix (normally "o").
  11195. objext=$ac_objext
  11196. # Executable file suffix (normally "").
  11197. exeext=$exeext
  11198. # whether the shell understands "unset".
  11199. lt_unset=$lt_unset
  11200. # turn spaces into newlines.
  11201. SP2NL=$lt_lt_SP2NL
  11202. # turn newlines into spaces.
  11203. NL2SP=$lt_lt_NL2SP
  11204. # convert \$build file names to \$host format.
  11205. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11206. # convert \$build files to toolchain format.
  11207. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11208. # An object symbol dumper.
  11209. OBJDUMP=$lt_OBJDUMP
  11210. # Method to check whether dependent libraries are shared objects.
  11211. deplibs_check_method=$lt_deplibs_check_method
  11212. # Command to use when deplibs_check_method = "file_magic".
  11213. file_magic_cmd=$lt_file_magic_cmd
  11214. # How to find potential files when deplibs_check_method = "file_magic".
  11215. file_magic_glob=$lt_file_magic_glob
  11216. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11217. want_nocaseglob=$lt_want_nocaseglob
  11218. # DLL creation program.
  11219. DLLTOOL=$lt_DLLTOOL
  11220. # Command to associate shared and link libraries.
  11221. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11222. # The archiver.
  11223. AR=$lt_AR
  11224. # Flags to create an archive.
  11225. AR_FLAGS=$lt_AR_FLAGS
  11226. # How to feed a file listing to the archiver.
  11227. archiver_list_spec=$lt_archiver_list_spec
  11228. # A symbol stripping program.
  11229. STRIP=$lt_STRIP
  11230. # Commands used to install an old-style archive.
  11231. RANLIB=$lt_RANLIB
  11232. old_postinstall_cmds=$lt_old_postinstall_cmds
  11233. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11234. # Whether to use a lock for old archive extraction.
  11235. lock_old_archive_extraction=$lock_old_archive_extraction
  11236. # A C compiler.
  11237. LTCC=$lt_CC
  11238. # LTCC compiler flags.
  11239. LTCFLAGS=$lt_CFLAGS
  11240. # Take the output of nm and produce a listing of raw symbols and C names.
  11241. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11242. # Transform the output of nm in a proper C declaration.
  11243. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11244. # Transform the output of nm in a C name address pair.
  11245. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11246. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11247. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11248. # Specify filename containing input files for \$NM.
  11249. nm_file_list_spec=$lt_nm_file_list_spec
  11250. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11251. lt_sysroot=$lt_sysroot
  11252. # The name of the directory that contains temporary libtool files.
  11253. objdir=$objdir
  11254. # Used to examine libraries when file_magic_cmd begins with "file".
  11255. MAGIC_CMD=$MAGIC_CMD
  11256. # Must we lock files when doing compilation?
  11257. need_locks=$lt_need_locks
  11258. # Manifest tool.
  11259. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11260. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11261. DSYMUTIL=$lt_DSYMUTIL
  11262. # Tool to change global to local symbols on Mac OS X.
  11263. NMEDIT=$lt_NMEDIT
  11264. # Tool to manipulate fat objects and archives on Mac OS X.
  11265. LIPO=$lt_LIPO
  11266. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11267. OTOOL=$lt_OTOOL
  11268. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11269. OTOOL64=$lt_OTOOL64
  11270. # Old archive suffix (normally "a").
  11271. libext=$libext
  11272. # Shared library suffix (normally ".so").
  11273. shrext_cmds=$lt_shrext_cmds
  11274. # The commands to extract the exported symbol list from a shared archive.
  11275. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11276. # Variables whose values should be saved in libtool wrapper scripts and
  11277. # restored at link time.
  11278. variables_saved_for_relink=$lt_variables_saved_for_relink
  11279. # Do we need the "lib" prefix for modules?
  11280. need_lib_prefix=$need_lib_prefix
  11281. # Do we need a version for libraries?
  11282. need_version=$need_version
  11283. # Library versioning type.
  11284. version_type=$version_type
  11285. # Shared library runtime path variable.
  11286. runpath_var=$runpath_var
  11287. # Shared library path variable.
  11288. shlibpath_var=$shlibpath_var
  11289. # Is shlibpath searched before the hard-coded library search path?
  11290. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11291. # Format of library name prefix.
  11292. libname_spec=$lt_libname_spec
  11293. # List of archive names. First name is the real one, the rest are links.
  11294. # The last name is the one that the linker finds with -lNAME
  11295. library_names_spec=$lt_library_names_spec
  11296. # The coded name of the library, if different from the real name.
  11297. soname_spec=$lt_soname_spec
  11298. # Permission mode override for installation of shared libraries.
  11299. install_override_mode=$lt_install_override_mode
  11300. # Command to use after installation of a shared archive.
  11301. postinstall_cmds=$lt_postinstall_cmds
  11302. # Command to use after uninstallation of a shared archive.
  11303. postuninstall_cmds=$lt_postuninstall_cmds
  11304. # Commands used to finish a libtool library installation in a directory.
  11305. finish_cmds=$lt_finish_cmds
  11306. # As "finish_cmds", except a single script fragment to be evaled but
  11307. # not shown.
  11308. finish_eval=$lt_finish_eval
  11309. # Whether we should hardcode library paths into libraries.
  11310. hardcode_into_libs=$hardcode_into_libs
  11311. # Compile-time system search path for libraries.
  11312. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11313. # Run-time system search path for libraries.
  11314. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11315. # Whether dlopen is supported.
  11316. dlopen_support=$enable_dlopen
  11317. # Whether dlopen of programs is supported.
  11318. dlopen_self=$enable_dlopen_self
  11319. # Whether dlopen of statically linked programs is supported.
  11320. dlopen_self_static=$enable_dlopen_self_static
  11321. # Commands to strip libraries.
  11322. old_striplib=$lt_old_striplib
  11323. striplib=$lt_striplib
  11324. # The linker used to build libraries.
  11325. LD=$lt_LD
  11326. # How to create reloadable object files.
  11327. reload_flag=$lt_reload_flag
  11328. reload_cmds=$lt_reload_cmds
  11329. # Commands used to build an old-style archive.
  11330. old_archive_cmds=$lt_old_archive_cmds
  11331. # A language specific compiler.
  11332. CC=$lt_compiler
  11333. # Is the compiler the GNU compiler?
  11334. with_gcc=$GCC
  11335. # Compiler flag to turn off builtin functions.
  11336. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11337. # Additional compiler flags for building library objects.
  11338. pic_flag=$lt_lt_prog_compiler_pic
  11339. # How to pass a linker flag through the compiler.
  11340. wl=$lt_lt_prog_compiler_wl
  11341. # Compiler flag to prevent dynamic linking.
  11342. link_static_flag=$lt_lt_prog_compiler_static
  11343. # Does compiler simultaneously support -c and -o options?
  11344. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11345. # Whether or not to add -lc for building shared libraries.
  11346. build_libtool_need_lc=$archive_cmds_need_lc
  11347. # Whether or not to disallow shared libs when runtime libs are static.
  11348. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11349. # Compiler flag to allow reflexive dlopens.
  11350. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11351. # Compiler flag to generate shared objects directly from archives.
  11352. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11353. # Whether the compiler copes with passing no objects directly.
  11354. compiler_needs_object=$lt_compiler_needs_object
  11355. # Create an old-style archive from a shared archive.
  11356. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11357. # Create a temporary old-style archive to link instead of a shared archive.
  11358. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11359. # Commands used to build a shared archive.
  11360. archive_cmds=$lt_archive_cmds
  11361. archive_expsym_cmds=$lt_archive_expsym_cmds
  11362. # Commands used to build a loadable module if different from building
  11363. # a shared archive.
  11364. module_cmds=$lt_module_cmds
  11365. module_expsym_cmds=$lt_module_expsym_cmds
  11366. # Whether we are building with GNU ld or not.
  11367. with_gnu_ld=$lt_with_gnu_ld
  11368. # Flag that allows shared libraries with undefined symbols to be built.
  11369. allow_undefined_flag=$lt_allow_undefined_flag
  11370. # Flag that enforces no undefined symbols.
  11371. no_undefined_flag=$lt_no_undefined_flag
  11372. # Flag to hardcode \$libdir into a binary during linking.
  11373. # This must work even if \$libdir does not exist
  11374. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11375. # Whether we need a single "-rpath" flag with a separated argument.
  11376. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11377. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11378. # DIR into the resulting binary.
  11379. hardcode_direct=$hardcode_direct
  11380. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11381. # DIR into the resulting binary and the resulting library dependency is
  11382. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11383. # library is relocated.
  11384. hardcode_direct_absolute=$hardcode_direct_absolute
  11385. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11386. # into the resulting binary.
  11387. hardcode_minus_L=$hardcode_minus_L
  11388. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11389. # into the resulting binary.
  11390. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11391. # Set to "yes" if building a shared library automatically hardcodes DIR
  11392. # into the library and all subsequent libraries and executables linked
  11393. # against it.
  11394. hardcode_automatic=$hardcode_automatic
  11395. # Set to yes if linker adds runtime paths of dependent libraries
  11396. # to runtime path list.
  11397. inherit_rpath=$inherit_rpath
  11398. # Whether libtool must link a program against all its dependency libraries.
  11399. link_all_deplibs=$link_all_deplibs
  11400. # Set to "yes" if exported symbols are required.
  11401. always_export_symbols=$always_export_symbols
  11402. # The commands to list exported symbols.
  11403. export_symbols_cmds=$lt_export_symbols_cmds
  11404. # Symbols that should not be listed in the preloaded symbols.
  11405. exclude_expsyms=$lt_exclude_expsyms
  11406. # Symbols that must always be exported.
  11407. include_expsyms=$lt_include_expsyms
  11408. # Commands necessary for linking programs (against libraries) with templates.
  11409. prelink_cmds=$lt_prelink_cmds
  11410. # Commands necessary for finishing linking programs.
  11411. postlink_cmds=$lt_postlink_cmds
  11412. # Specify filename containing input files.
  11413. file_list_spec=$lt_file_list_spec
  11414. # How to hardcode a shared library path into an executable.
  11415. hardcode_action=$hardcode_action
  11416. # ### END LIBTOOL CONFIG
  11417. _LT_EOF
  11418. case $host_os in
  11419. aix3*)
  11420. cat <<\_LT_EOF >> "$cfgfile"
  11421. # AIX sometimes has problems with the GCC collect2 program. For some
  11422. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11423. # vanish in a puff of smoke.
  11424. if test "X${COLLECT_NAMES+set}" != Xset; then
  11425. COLLECT_NAMES=
  11426. export COLLECT_NAMES
  11427. fi
  11428. _LT_EOF
  11429. ;;
  11430. esac
  11431. ltmain="$ac_aux_dir/ltmain.sh"
  11432. # We use sed instead of cat because bash on DJGPP gets confused if
  11433. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11434. # text mode, it properly converts lines to CR/LF. This bash problem
  11435. # is reportedly fixed, but why not run on old versions too?
  11436. sed '$q' "$ltmain" >> "$cfgfile" \
  11437. || (rm -f "$cfgfile"; exit 1)
  11438. if test x"$xsi_shell" = xyes; then
  11439. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11440. func_dirname ()\
  11441. {\
  11442. \ case ${1} in\
  11443. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11444. \ * ) func_dirname_result="${3}" ;;\
  11445. \ esac\
  11446. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11447. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11448. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11449. test 0 -eq $? || _lt_function_replace_fail=:
  11450. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11451. func_basename ()\
  11452. {\
  11453. \ func_basename_result="${1##*/}"\
  11454. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11455. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11456. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11457. test 0 -eq $? || _lt_function_replace_fail=:
  11458. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11459. func_dirname_and_basename ()\
  11460. {\
  11461. \ case ${1} in\
  11462. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11463. \ * ) func_dirname_result="${3}" ;;\
  11464. \ esac\
  11465. \ func_basename_result="${1##*/}"\
  11466. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11467. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11468. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11469. test 0 -eq $? || _lt_function_replace_fail=:
  11470. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11471. func_stripname ()\
  11472. {\
  11473. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11474. \ # positional parameters, so assign one to ordinary parameter first.\
  11475. \ func_stripname_result=${3}\
  11476. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11477. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11478. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11479. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11480. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11481. test 0 -eq $? || _lt_function_replace_fail=:
  11482. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11483. func_split_long_opt ()\
  11484. {\
  11485. \ func_split_long_opt_name=${1%%=*}\
  11486. \ func_split_long_opt_arg=${1#*=}\
  11487. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11488. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11489. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11490. test 0 -eq $? || _lt_function_replace_fail=:
  11491. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11492. func_split_short_opt ()\
  11493. {\
  11494. \ func_split_short_opt_arg=${1#??}\
  11495. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11496. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11497. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11498. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11499. test 0 -eq $? || _lt_function_replace_fail=:
  11500. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11501. func_lo2o ()\
  11502. {\
  11503. \ case ${1} in\
  11504. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11505. \ *) func_lo2o_result=${1} ;;\
  11506. \ esac\
  11507. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11508. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11509. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11510. test 0 -eq $? || _lt_function_replace_fail=:
  11511. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11512. func_xform ()\
  11513. {\
  11514. func_xform_result=${1%.*}.lo\
  11515. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11516. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11517. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11518. test 0 -eq $? || _lt_function_replace_fail=:
  11519. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11520. func_arith ()\
  11521. {\
  11522. func_arith_result=$(( $* ))\
  11523. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11524. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11525. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11526. test 0 -eq $? || _lt_function_replace_fail=:
  11527. sed -e '/^func_len ()$/,/^} # func_len /c\
  11528. func_len ()\
  11529. {\
  11530. func_len_result=${#1}\
  11531. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11532. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11533. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11534. test 0 -eq $? || _lt_function_replace_fail=:
  11535. fi
  11536. if test x"$lt_shell_append" = xyes; then
  11537. sed -e '/^func_append ()$/,/^} # func_append /c\
  11538. func_append ()\
  11539. {\
  11540. eval "${1}+=\\${2}"\
  11541. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11542. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11543. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11544. test 0 -eq $? || _lt_function_replace_fail=:
  11545. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11546. func_append_quoted ()\
  11547. {\
  11548. \ func_quote_for_eval "${2}"\
  11549. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11550. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11551. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11552. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11553. test 0 -eq $? || _lt_function_replace_fail=:
  11554. # Save a `func_append' function call where possible by direct use of '+='
  11555. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11556. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11557. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11558. test 0 -eq $? || _lt_function_replace_fail=:
  11559. else
  11560. # Save a `func_append' function call even when '+=' is not available
  11561. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11562. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11563. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11564. test 0 -eq $? || _lt_function_replace_fail=:
  11565. fi
  11566. if test x"$_lt_function_replace_fail" = x":"; then
  11567. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11568. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11569. fi
  11570. mv -f "$cfgfile" "$ofile" ||
  11571. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11572. chmod +x "$ofile"
  11573. ;;
  11574. esac
  11575. done # for ac_tag
  11576. as_fn_exit 0
  11577. _ACEOF
  11578. ac_clean_files=$ac_clean_files_save
  11579. test $ac_write_fail = 0 ||
  11580. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11581. # configure is writing to config.log, and then calls config.status.
  11582. # config.status does its own redirection, appending to config.log.
  11583. # Unfortunately, on DOS this fails, as config.log is still kept open
  11584. # by configure, so config.status won't be able to write to it; its
  11585. # output is simply discarded. So we exec the FD to /dev/null,
  11586. # effectively closing config.log, so it can be properly (re)opened and
  11587. # appended to by config.status. When coming back to configure, we
  11588. # need to make the FD available again.
  11589. if test "$no_create" != yes; then
  11590. ac_cs_success=:
  11591. ac_config_status_args=
  11592. test "$silent" = yes &&
  11593. ac_config_status_args="$ac_config_status_args --quiet"
  11594. exec 5>/dev/null
  11595. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11596. exec 5>>config.log
  11597. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11598. # would make configure fail if this is the last instruction.
  11599. $ac_cs_success || as_fn_exit 1
  11600. fi
  11601. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11602. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11603. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11604. fi