configure 397 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for zlib 1.1.4.
  4. #
  5. #
  6. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. #
  8. #
  9. # This configure script is free software; the Free Software Foundation
  10. # gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in #(
  25. *posix*) :
  26. set -o posix ;; #(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in #(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in # ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in #(
  158. *posix*) :
  159. set -o posix ;; #(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in #(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in # ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. # as_fn_unset VAR
  274. # ---------------
  275. # Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. # as_fn_set_status STATUS
  282. # -----------------------
  283. # Set $? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } # as_fn_set_status
  288. # as_fn_exit STATUS
  289. # -----------------
  290. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } # as_fn_exit
  297. # as_fn_mkdir_p
  298. # -------------
  299. # Create "$as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } # as_fn_mkdir_p
  341. # as_fn_executable_p FILE
  342. # -----------------------
  343. # Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } # as_fn_executable_p
  348. # as_fn_append VAR VALUE
  349. # ----------------------
  350. # Append the text in VALUE to the end of the definition contained in VAR. Take
  351. # advantage of any shell optimizations that allow amortized linear growth over
  352. # repeated appends, instead of the typical quadratic growth present in naive
  353. # implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. # as_fn_arith ARG...
  366. # ------------------
  367. # Perform arithmetic evaluation on the ARGs, and store the result in the
  368. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. # ----------------------------------------
  383. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. # script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } # as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in #(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='zlib'
  539. PACKAGE_TARNAME='zlib'
  540. PACKAGE_VERSION='1.1.4'
  541. PACKAGE_STRING='zlib 1.1.4'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="zlib.h"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_header_list=
  581. ac_subst_vars='am__EXEEXT_FALSE
  582. am__EXEEXT_TRUE
  583. LTLIBOBJS
  584. LIBOBJS
  585. PICFLAG
  586. TARGET_LIBRARY_FALSE
  587. TARGET_LIBRARY_TRUE
  588. toolexeclibdir
  589. toolexecdir
  590. target_all
  591. CPP
  592. OTOOL64
  593. OTOOL
  594. LIPO
  595. NMEDIT
  596. DSYMUTIL
  597. RANLIB
  598. AR
  599. OBJDUMP
  600. LN_S
  601. NM
  602. ac_ct_DUMPBIN
  603. DUMPBIN
  604. LD
  605. FGREP
  606. EGREP
  607. GREP
  608. SED
  609. LIBTOOL
  610. am__fastdepCC_FALSE
  611. am__fastdepCC_TRUE
  612. CCDEPMODE
  613. am__nodep
  614. AMDEPBACKSLASH
  615. AMDEP_FALSE
  616. AMDEP_TRUE
  617. am__quote
  618. am__include
  619. DEPDIR
  620. OBJEXT
  621. EXEEXT
  622. ac_ct_CC
  623. CPPFLAGS
  624. LDFLAGS
  625. CFLAGS
  626. CC
  627. COMPPATH
  628. MAINT
  629. MAINTAINER_MODE_FALSE
  630. MAINTAINER_MODE_TRUE
  631. AM_BACKSLASH
  632. AM_DEFAULT_VERBOSITY
  633. AM_DEFAULT_V
  634. AM_V
  635. am__untar
  636. am__tar
  637. AMTAR
  638. am__leading_dot
  639. SET_MAKE
  640. AWK
  641. mkdir_p
  642. MKDIR_P
  643. INSTALL_STRIP_PROGRAM
  644. STRIP
  645. install_sh
  646. MAKEINFO
  647. AUTOHEADER
  648. AUTOMAKE
  649. AUTOCONF
  650. ACLOCAL
  651. VERSION
  652. PACKAGE
  653. CYGPATH_W
  654. am__isrc
  655. INSTALL_DATA
  656. INSTALL_SCRIPT
  657. INSTALL_PROGRAM
  658. mkinstalldirs
  659. target_os
  660. target_vendor
  661. target_cpu
  662. target
  663. host_os
  664. host_vendor
  665. host_cpu
  666. host
  667. build_os
  668. build_vendor
  669. build_cpu
  670. build
  671. multi_basedir
  672. target_alias
  673. host_alias
  674. build_alias
  675. LIBS
  676. ECHO_T
  677. ECHO_N
  678. ECHO_C
  679. DEFS
  680. mandir
  681. localedir
  682. libdir
  683. psdir
  684. pdfdir
  685. dvidir
  686. htmldir
  687. infodir
  688. docdir
  689. oldincludedir
  690. includedir
  691. localstatedir
  692. sharedstatedir
  693. sysconfdir
  694. datadir
  695. datarootdir
  696. libexecdir
  697. sbindir
  698. bindir
  699. program_transform_name
  700. prefix
  701. exec_prefix
  702. PACKAGE_URL
  703. PACKAGE_BUGREPORT
  704. PACKAGE_STRING
  705. PACKAGE_VERSION
  706. PACKAGE_TARNAME
  707. PACKAGE_NAME
  708. PATH_SEPARATOR
  709. SHELL'
  710. ac_subst_files=''
  711. ac_user_opts='
  712. enable_option_checking
  713. enable_multilib
  714. enable_silent_rules
  715. enable_maintainer_mode
  716. with_target_subdir
  717. with_cross_host
  718. with_system_zlib
  719. enable_dependency_tracking
  720. enable_shared
  721. enable_static
  722. with_pic
  723. enable_fast_install
  724. with_gnu_ld
  725. enable_libtool_lock
  726. enable_host_shared
  727. '
  728. ac_precious_vars='build_alias
  729. host_alias
  730. target_alias
  731. CPP
  732. CPPFLAGS'
  733. # Initialize some variables set by options.
  734. ac_init_help=
  735. ac_init_version=false
  736. ac_unrecognized_opts=
  737. ac_unrecognized_sep=
  738. # The variables have the same names as the options, with
  739. # dashes changed to underlines.
  740. cache_file=/dev/null
  741. exec_prefix=NONE
  742. no_create=
  743. no_recursion=
  744. prefix=NONE
  745. program_prefix=NONE
  746. program_suffix=NONE
  747. program_transform_name=s,x,x,
  748. silent=
  749. site=
  750. srcdir=
  751. verbose=
  752. x_includes=NONE
  753. x_libraries=NONE
  754. # Installation directory options.
  755. # These are left unexpanded so users can "make install exec_prefix=/foo"
  756. # and all the variables that are supposed to be based on exec_prefix
  757. # by default will actually change.
  758. # Use braces instead of parens because sh, perl, etc. also accept them.
  759. # (The list follows the same order as the GNU Coding Standards.)
  760. bindir='${exec_prefix}/bin'
  761. sbindir='${exec_prefix}/sbin'
  762. libexecdir='${exec_prefix}/libexec'
  763. datarootdir='${prefix}/share'
  764. datadir='${datarootdir}'
  765. sysconfdir='${prefix}/etc'
  766. sharedstatedir='${prefix}/com'
  767. localstatedir='${prefix}/var'
  768. includedir='${prefix}/include'
  769. oldincludedir='/usr/include'
  770. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  771. infodir='${datarootdir}/info'
  772. htmldir='${docdir}'
  773. dvidir='${docdir}'
  774. pdfdir='${docdir}'
  775. psdir='${docdir}'
  776. libdir='${exec_prefix}/lib'
  777. localedir='${datarootdir}/locale'
  778. mandir='${datarootdir}/man'
  779. ac_prev=
  780. ac_dashdash=
  781. for ac_option
  782. do
  783. # If the previous option needs an argument, assign it.
  784. if test -n "$ac_prev"; then
  785. eval $ac_prev=\$ac_option
  786. ac_prev=
  787. continue
  788. fi
  789. case $ac_option in
  790. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  791. *=) ac_optarg= ;;
  792. *) ac_optarg=yes ;;
  793. esac
  794. # Accept the important Cygnus configure options, so we can diagnose typos.
  795. case $ac_dashdash$ac_option in
  796. --)
  797. ac_dashdash=yes ;;
  798. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  799. ac_prev=bindir ;;
  800. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  801. bindir=$ac_optarg ;;
  802. -build | --build | --buil | --bui | --bu)
  803. ac_prev=build_alias ;;
  804. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  805. build_alias=$ac_optarg ;;
  806. -cache-file | --cache-file | --cache-fil | --cache-fi \
  807. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  808. ac_prev=cache_file ;;
  809. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  810. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  811. cache_file=$ac_optarg ;;
  812. --config-cache | -C)
  813. cache_file=config.cache ;;
  814. -datadir | --datadir | --datadi | --datad)
  815. ac_prev=datadir ;;
  816. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  817. datadir=$ac_optarg ;;
  818. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  819. | --dataroo | --dataro | --datar)
  820. ac_prev=datarootdir ;;
  821. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  822. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  823. datarootdir=$ac_optarg ;;
  824. -disable-* | --disable-*)
  825. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  826. # Reject names that are not valid shell variable names.
  827. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  828. as_fn_error $? "invalid feature name: $ac_useropt"
  829. ac_useropt_orig=$ac_useropt
  830. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  831. case $ac_user_opts in
  832. *"
  833. "enable_$ac_useropt"
  834. "*) ;;
  835. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  836. ac_unrecognized_sep=', ';;
  837. esac
  838. eval enable_$ac_useropt=no ;;
  839. -docdir | --docdir | --docdi | --doc | --do)
  840. ac_prev=docdir ;;
  841. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  842. docdir=$ac_optarg ;;
  843. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  844. ac_prev=dvidir ;;
  845. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  846. dvidir=$ac_optarg ;;
  847. -enable-* | --enable-*)
  848. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  849. # Reject names that are not valid shell variable names.
  850. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  851. as_fn_error $? "invalid feature name: $ac_useropt"
  852. ac_useropt_orig=$ac_useropt
  853. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  854. case $ac_user_opts in
  855. *"
  856. "enable_$ac_useropt"
  857. "*) ;;
  858. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  859. ac_unrecognized_sep=', ';;
  860. esac
  861. eval enable_$ac_useropt=\$ac_optarg ;;
  862. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  863. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  864. | --exec | --exe | --ex)
  865. ac_prev=exec_prefix ;;
  866. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  867. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  868. | --exec=* | --exe=* | --ex=*)
  869. exec_prefix=$ac_optarg ;;
  870. -gas | --gas | --ga | --g)
  871. # Obsolete; use --with-gas.
  872. with_gas=yes ;;
  873. -help | --help | --hel | --he | -h)
  874. ac_init_help=long ;;
  875. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  876. ac_init_help=recursive ;;
  877. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  878. ac_init_help=short ;;
  879. -host | --host | --hos | --ho)
  880. ac_prev=host_alias ;;
  881. -host=* | --host=* | --hos=* | --ho=*)
  882. host_alias=$ac_optarg ;;
  883. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  884. ac_prev=htmldir ;;
  885. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  886. | --ht=*)
  887. htmldir=$ac_optarg ;;
  888. -includedir | --includedir | --includedi | --included | --include \
  889. | --includ | --inclu | --incl | --inc)
  890. ac_prev=includedir ;;
  891. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  892. | --includ=* | --inclu=* | --incl=* | --inc=*)
  893. includedir=$ac_optarg ;;
  894. -infodir | --infodir | --infodi | --infod | --info | --inf)
  895. ac_prev=infodir ;;
  896. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  897. infodir=$ac_optarg ;;
  898. -libdir | --libdir | --libdi | --libd)
  899. ac_prev=libdir ;;
  900. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  901. libdir=$ac_optarg ;;
  902. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  903. | --libexe | --libex | --libe)
  904. ac_prev=libexecdir ;;
  905. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  906. | --libexe=* | --libex=* | --libe=*)
  907. libexecdir=$ac_optarg ;;
  908. -localedir | --localedir | --localedi | --localed | --locale)
  909. ac_prev=localedir ;;
  910. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  911. localedir=$ac_optarg ;;
  912. -localstatedir | --localstatedir | --localstatedi | --localstated \
  913. | --localstate | --localstat | --localsta | --localst | --locals)
  914. ac_prev=localstatedir ;;
  915. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  916. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  917. localstatedir=$ac_optarg ;;
  918. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  919. ac_prev=mandir ;;
  920. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  921. mandir=$ac_optarg ;;
  922. -nfp | --nfp | --nf)
  923. # Obsolete; use --without-fp.
  924. with_fp=no ;;
  925. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  926. | --no-cr | --no-c | -n)
  927. no_create=yes ;;
  928. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  929. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  930. no_recursion=yes ;;
  931. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  932. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  933. | --oldin | --oldi | --old | --ol | --o)
  934. ac_prev=oldincludedir ;;
  935. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  936. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  937. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  938. oldincludedir=$ac_optarg ;;
  939. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  940. ac_prev=prefix ;;
  941. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  942. prefix=$ac_optarg ;;
  943. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  944. | --program-pre | --program-pr | --program-p)
  945. ac_prev=program_prefix ;;
  946. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  947. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  948. program_prefix=$ac_optarg ;;
  949. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  950. | --program-suf | --program-su | --program-s)
  951. ac_prev=program_suffix ;;
  952. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  953. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  954. program_suffix=$ac_optarg ;;
  955. -program-transform-name | --program-transform-name \
  956. | --program-transform-nam | --program-transform-na \
  957. | --program-transform-n | --program-transform- \
  958. | --program-transform | --program-transfor \
  959. | --program-transfo | --program-transf \
  960. | --program-trans | --program-tran \
  961. | --progr-tra | --program-tr | --program-t)
  962. ac_prev=program_transform_name ;;
  963. -program-transform-name=* | --program-transform-name=* \
  964. | --program-transform-nam=* | --program-transform-na=* \
  965. | --program-transform-n=* | --program-transform-=* \
  966. | --program-transform=* | --program-transfor=* \
  967. | --program-transfo=* | --program-transf=* \
  968. | --program-trans=* | --program-tran=* \
  969. | --progr-tra=* | --program-tr=* | --program-t=*)
  970. program_transform_name=$ac_optarg ;;
  971. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  972. ac_prev=pdfdir ;;
  973. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  974. pdfdir=$ac_optarg ;;
  975. -psdir | --psdir | --psdi | --psd | --ps)
  976. ac_prev=psdir ;;
  977. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978. psdir=$ac_optarg ;;
  979. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  980. | -silent | --silent | --silen | --sile | --sil)
  981. silent=yes ;;
  982. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  983. ac_prev=sbindir ;;
  984. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  985. | --sbi=* | --sb=*)
  986. sbindir=$ac_optarg ;;
  987. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  988. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  989. | --sharedst | --shareds | --shared | --share | --shar \
  990. | --sha | --sh)
  991. ac_prev=sharedstatedir ;;
  992. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  993. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  994. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  995. | --sha=* | --sh=*)
  996. sharedstatedir=$ac_optarg ;;
  997. -site | --site | --sit)
  998. ac_prev=site ;;
  999. -site=* | --site=* | --sit=*)
  1000. site=$ac_optarg ;;
  1001. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1002. ac_prev=srcdir ;;
  1003. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1004. srcdir=$ac_optarg ;;
  1005. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1006. | --syscon | --sysco | --sysc | --sys | --sy)
  1007. ac_prev=sysconfdir ;;
  1008. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1009. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1010. sysconfdir=$ac_optarg ;;
  1011. -target | --target | --targe | --targ | --tar | --ta | --t)
  1012. ac_prev=target_alias ;;
  1013. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1014. target_alias=$ac_optarg ;;
  1015. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1016. verbose=yes ;;
  1017. -version | --version | --versio | --versi | --vers | -V)
  1018. ac_init_version=: ;;
  1019. -with-* | --with-*)
  1020. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1021. # Reject names that are not valid shell variable names.
  1022. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1023. as_fn_error $? "invalid package name: $ac_useropt"
  1024. ac_useropt_orig=$ac_useropt
  1025. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1026. case $ac_user_opts in
  1027. *"
  1028. "with_$ac_useropt"
  1029. "*) ;;
  1030. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1031. ac_unrecognized_sep=', ';;
  1032. esac
  1033. eval with_$ac_useropt=\$ac_optarg ;;
  1034. -without-* | --without-*)
  1035. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1036. # Reject names that are not valid shell variable names.
  1037. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1038. as_fn_error $? "invalid package name: $ac_useropt"
  1039. ac_useropt_orig=$ac_useropt
  1040. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1041. case $ac_user_opts in
  1042. *"
  1043. "with_$ac_useropt"
  1044. "*) ;;
  1045. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1046. ac_unrecognized_sep=', ';;
  1047. esac
  1048. eval with_$ac_useropt=no ;;
  1049. --x)
  1050. # Obsolete; use --with-x.
  1051. with_x=yes ;;
  1052. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1053. | --x-incl | --x-inc | --x-in | --x-i)
  1054. ac_prev=x_includes ;;
  1055. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1056. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1057. x_includes=$ac_optarg ;;
  1058. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1059. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1060. ac_prev=x_libraries ;;
  1061. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1062. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1063. x_libraries=$ac_optarg ;;
  1064. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1065. Try \`$0 --help' for more information"
  1066. ;;
  1067. *=*)
  1068. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1069. # Reject names that are not valid shell variable names.
  1070. case $ac_envvar in #(
  1071. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1072. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1073. esac
  1074. eval $ac_envvar=\$ac_optarg
  1075. export $ac_envvar ;;
  1076. *)
  1077. # FIXME: should be removed in autoconf 3.0.
  1078. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1079. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1080. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1081. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1082. ;;
  1083. esac
  1084. done
  1085. if test -n "$ac_prev"; then
  1086. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1087. as_fn_error $? "missing argument to $ac_option"
  1088. fi
  1089. if test -n "$ac_unrecognized_opts"; then
  1090. case $enable_option_checking in
  1091. no) ;;
  1092. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1093. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1094. esac
  1095. fi
  1096. # Check all directory arguments for consistency.
  1097. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1098. datadir sysconfdir sharedstatedir localstatedir includedir \
  1099. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1100. libdir localedir mandir
  1101. do
  1102. eval ac_val=\$$ac_var
  1103. # Remove trailing slashes.
  1104. case $ac_val in
  1105. */ )
  1106. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1107. eval $ac_var=\$ac_val;;
  1108. esac
  1109. # Be sure to have absolute directory names.
  1110. case $ac_val in
  1111. [\\/$]* | ?:[\\/]* ) continue;;
  1112. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1113. esac
  1114. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1115. done
  1116. # There might be people who depend on the old broken behavior: `$host'
  1117. # used to hold the argument of --host etc.
  1118. # FIXME: To remove some day.
  1119. build=$build_alias
  1120. host=$host_alias
  1121. target=$target_alias
  1122. # FIXME: To remove some day.
  1123. if test "x$host_alias" != x; then
  1124. if test "x$build_alias" = x; then
  1125. cross_compiling=maybe
  1126. elif test "x$build_alias" != "x$host_alias"; then
  1127. cross_compiling=yes
  1128. fi
  1129. fi
  1130. ac_tool_prefix=
  1131. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1132. test "$silent" = yes && exec 6>/dev/null
  1133. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1134. ac_ls_di=`ls -di .` &&
  1135. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1136. as_fn_error $? "working directory cannot be determined"
  1137. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1138. as_fn_error $? "pwd does not report name of working directory"
  1139. # Find the source files, if location was not specified.
  1140. if test -z "$srcdir"; then
  1141. ac_srcdir_defaulted=yes
  1142. # Try the directory containing this script, then the parent directory.
  1143. ac_confdir=`$as_dirname -- "$as_myself" ||
  1144. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1145. X"$as_myself" : 'X\(//\)[^/]' \| \
  1146. X"$as_myself" : 'X\(//\)$' \| \
  1147. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1148. $as_echo X"$as_myself" |
  1149. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1150. s//\1/
  1151. q
  1152. }
  1153. /^X\(\/\/\)[^/].*/{
  1154. s//\1/
  1155. q
  1156. }
  1157. /^X\(\/\/\)$/{
  1158. s//\1/
  1159. q
  1160. }
  1161. /^X\(\/\).*/{
  1162. s//\1/
  1163. q
  1164. }
  1165. s/.*/./; q'`
  1166. srcdir=$ac_confdir
  1167. if test ! -r "$srcdir/$ac_unique_file"; then
  1168. srcdir=..
  1169. fi
  1170. else
  1171. ac_srcdir_defaulted=no
  1172. fi
  1173. if test ! -r "$srcdir/$ac_unique_file"; then
  1174. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1175. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1176. fi
  1177. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1178. ac_abs_confdir=`(
  1179. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1180. pwd)`
  1181. # When building in place, set srcdir=.
  1182. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1183. srcdir=.
  1184. fi
  1185. # Remove unnecessary trailing slashes from srcdir.
  1186. # Double slashes in file names in object file debugging info
  1187. # mess up M-x gdb in Emacs.
  1188. case $srcdir in
  1189. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1190. esac
  1191. for ac_var in $ac_precious_vars; do
  1192. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1193. eval ac_env_${ac_var}_value=\$${ac_var}
  1194. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1195. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1196. done
  1197. #
  1198. # Report the --help message.
  1199. #
  1200. if test "$ac_init_help" = "long"; then
  1201. # Omit some internal or obsolete options to make the list less imposing.
  1202. # This message is too long to be a string in the A/UX 3.1 sh.
  1203. cat <<_ACEOF
  1204. \`configure' configures zlib 1.1.4 to adapt to many kinds of systems.
  1205. Usage: $0 [OPTION]... [VAR=VALUE]...
  1206. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1207. VAR=VALUE. See below for descriptions of some of the useful variables.
  1208. Defaults for the options are specified in brackets.
  1209. Configuration:
  1210. -h, --help display this help and exit
  1211. --help=short display options specific to this package
  1212. --help=recursive display the short help of all the included packages
  1213. -V, --version display version information and exit
  1214. -q, --quiet, --silent do not print \`checking ...' messages
  1215. --cache-file=FILE cache test results in FILE [disabled]
  1216. -C, --config-cache alias for \`--cache-file=config.cache'
  1217. -n, --no-create do not create output files
  1218. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1219. Installation directories:
  1220. --prefix=PREFIX install architecture-independent files in PREFIX
  1221. [$ac_default_prefix]
  1222. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1223. [PREFIX]
  1224. By default, \`make install' will install all the files in
  1225. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1226. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1227. for instance \`--prefix=\$HOME'.
  1228. For better control, use the options below.
  1229. Fine tuning of the installation directories:
  1230. --bindir=DIR user executables [EPREFIX/bin]
  1231. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1232. --libexecdir=DIR program executables [EPREFIX/libexec]
  1233. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1234. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1235. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1236. --libdir=DIR object code libraries [EPREFIX/lib]
  1237. --includedir=DIR C header files [PREFIX/include]
  1238. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1239. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1240. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1241. --infodir=DIR info documentation [DATAROOTDIR/info]
  1242. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1243. --mandir=DIR man documentation [DATAROOTDIR/man]
  1244. --docdir=DIR documentation root [DATAROOTDIR/doc/zlib]
  1245. --htmldir=DIR html documentation [DOCDIR]
  1246. --dvidir=DIR dvi documentation [DOCDIR]
  1247. --pdfdir=DIR pdf documentation [DOCDIR]
  1248. --psdir=DIR ps documentation [DOCDIR]
  1249. _ACEOF
  1250. cat <<\_ACEOF
  1251. Program names:
  1252. --program-prefix=PREFIX prepend PREFIX to installed program names
  1253. --program-suffix=SUFFIX append SUFFIX to installed program names
  1254. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1255. System types:
  1256. --build=BUILD configure for building on BUILD [guessed]
  1257. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1258. --target=TARGET configure for building compilers for TARGET [HOST]
  1259. _ACEOF
  1260. fi
  1261. if test -n "$ac_init_help"; then
  1262. case $ac_init_help in
  1263. short | recursive ) echo "Configuration of zlib 1.1.4:";;
  1264. esac
  1265. cat <<\_ACEOF
  1266. Optional Features:
  1267. --disable-option-checking ignore unrecognized --enable/--with options
  1268. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1269. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1270. --enable-multilib build many library versions (default)
  1271. --enable-silent-rules less verbose build output (undo: "make V=1")
  1272. --disable-silent-rules verbose build output (undo: "make V=0")
  1273. --enable-maintainer-mode
  1274. enable make rules and dependencies not useful (and
  1275. sometimes confusing) to the casual installer
  1276. --enable-dependency-tracking
  1277. do not reject slow dependency extractors
  1278. --disable-dependency-tracking
  1279. speeds up one-time build
  1280. --enable-shared[=PKGS] build shared libraries [default=yes]
  1281. --enable-static[=PKGS] build static libraries [default=yes]
  1282. --enable-fast-install[=PKGS]
  1283. optimize for fast installation [default=yes]
  1284. --disable-libtool-lock avoid locking (might break parallel builds)
  1285. --enable-host-shared build host code as shared libraries
  1286. Optional Packages:
  1287. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1288. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1289. --with-target-subdir=SUBDIR
  1290. configuring in a subdirectory
  1291. --with-cross-host=HOST configuring with a cross compiler
  1292. --with-system-zlib use installed libz
  1293. --with-pic try to use only PIC/non-PIC objects [default=use
  1294. both]
  1295. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1296. Some influential environment variables:
  1297. CC C compiler command
  1298. CFLAGS C compiler flags
  1299. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1300. nonstandard directory <lib dir>
  1301. LIBS libraries to pass to the linker, e.g. -l<library>
  1302. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1303. you have headers in a nonstandard directory <include dir>
  1304. CPP C preprocessor
  1305. Use these variables to override the choices made by `configure' or to help
  1306. it to find libraries and programs with nonstandard names/locations.
  1307. Report bugs to the package provider.
  1308. _ACEOF
  1309. ac_status=$?
  1310. fi
  1311. if test "$ac_init_help" = "recursive"; then
  1312. # If there are subdirs, report their specific --help.
  1313. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1314. test -d "$ac_dir" ||
  1315. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1316. continue
  1317. ac_builddir=.
  1318. case "$ac_dir" in
  1319. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1320. *)
  1321. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1322. # A ".." for each directory in $ac_dir_suffix.
  1323. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1324. case $ac_top_builddir_sub in
  1325. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1326. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1327. esac ;;
  1328. esac
  1329. ac_abs_top_builddir=$ac_pwd
  1330. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1331. # for backward compatibility:
  1332. ac_top_builddir=$ac_top_build_prefix
  1333. case $srcdir in
  1334. .) # We are building in place.
  1335. ac_srcdir=.
  1336. ac_top_srcdir=$ac_top_builddir_sub
  1337. ac_abs_top_srcdir=$ac_pwd ;;
  1338. [\\/]* | ?:[\\/]* ) # Absolute name.
  1339. ac_srcdir=$srcdir$ac_dir_suffix;
  1340. ac_top_srcdir=$srcdir
  1341. ac_abs_top_srcdir=$srcdir ;;
  1342. *) # Relative name.
  1343. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1344. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1345. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1346. esac
  1347. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1348. cd "$ac_dir" || { ac_status=$?; continue; }
  1349. # Check for guested configure.
  1350. if test -f "$ac_srcdir/configure.gnu"; then
  1351. echo &&
  1352. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1353. elif test -f "$ac_srcdir/configure"; then
  1354. echo &&
  1355. $SHELL "$ac_srcdir/configure" --help=recursive
  1356. else
  1357. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1358. fi || ac_status=$?
  1359. cd "$ac_pwd" || { ac_status=$?; break; }
  1360. done
  1361. fi
  1362. test -n "$ac_init_help" && exit $ac_status
  1363. if $ac_init_version; then
  1364. cat <<\_ACEOF
  1365. zlib configure 1.1.4
  1366. generated by GNU Autoconf 2.69
  1367. Copyright (C) 2012 Free Software Foundation, Inc.
  1368. This configure script is free software; the Free Software Foundation
  1369. gives unlimited permission to copy, distribute and modify it.
  1370. _ACEOF
  1371. exit
  1372. fi
  1373. ## ------------------------ ##
  1374. ## Autoconf initialization. ##
  1375. ## ------------------------ ##
  1376. # ac_fn_c_try_compile LINENO
  1377. # --------------------------
  1378. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1379. ac_fn_c_try_compile ()
  1380. {
  1381. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1382. rm -f conftest.$ac_objext
  1383. if { { ac_try="$ac_compile"
  1384. case "(($ac_try" in
  1385. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1386. *) ac_try_echo=$ac_try;;
  1387. esac
  1388. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1389. $as_echo "$ac_try_echo"; } >&5
  1390. (eval "$ac_compile") 2>conftest.err
  1391. ac_status=$?
  1392. if test -s conftest.err; then
  1393. grep -v '^ *+' conftest.err >conftest.er1
  1394. cat conftest.er1 >&5
  1395. mv -f conftest.er1 conftest.err
  1396. fi
  1397. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1398. test $ac_status = 0; } && {
  1399. test -z "$ac_c_werror_flag" ||
  1400. test ! -s conftest.err
  1401. } && test -s conftest.$ac_objext; then :
  1402. ac_retval=0
  1403. else
  1404. $as_echo "$as_me: failed program was:" >&5
  1405. sed 's/^/| /' conftest.$ac_ext >&5
  1406. ac_retval=1
  1407. fi
  1408. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1409. as_fn_set_status $ac_retval
  1410. } # ac_fn_c_try_compile
  1411. # ac_fn_c_try_link LINENO
  1412. # -----------------------
  1413. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1414. ac_fn_c_try_link ()
  1415. {
  1416. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1417. rm -f conftest.$ac_objext conftest$ac_exeext
  1418. if { { ac_try="$ac_link"
  1419. case "(($ac_try" in
  1420. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1421. *) ac_try_echo=$ac_try;;
  1422. esac
  1423. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1424. $as_echo "$ac_try_echo"; } >&5
  1425. (eval "$ac_link") 2>conftest.err
  1426. ac_status=$?
  1427. if test -s conftest.err; then
  1428. grep -v '^ *+' conftest.err >conftest.er1
  1429. cat conftest.er1 >&5
  1430. mv -f conftest.er1 conftest.err
  1431. fi
  1432. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1433. test $ac_status = 0; } && {
  1434. test -z "$ac_c_werror_flag" ||
  1435. test ! -s conftest.err
  1436. } && test -s conftest$ac_exeext && {
  1437. test "$cross_compiling" = yes ||
  1438. test -x conftest$ac_exeext
  1439. }; then :
  1440. ac_retval=0
  1441. else
  1442. $as_echo "$as_me: failed program was:" >&5
  1443. sed 's/^/| /' conftest.$ac_ext >&5
  1444. ac_retval=1
  1445. fi
  1446. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1447. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1448. # interfere with the next link command; also delete a directory that is
  1449. # left behind by Apple's compiler. We do this before executing the actions.
  1450. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1451. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1452. as_fn_set_status $ac_retval
  1453. } # ac_fn_c_try_link
  1454. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1455. # -------------------------------------------------------
  1456. # Tests whether HEADER exists and can be compiled using the include files in
  1457. # INCLUDES, setting the cache variable VAR accordingly.
  1458. ac_fn_c_check_header_compile ()
  1459. {
  1460. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1462. $as_echo_n "checking for $2... " >&6; }
  1463. if eval \${$3+:} false; then :
  1464. $as_echo_n "(cached) " >&6
  1465. else
  1466. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1467. /* end confdefs.h. */
  1468. $4
  1469. #include <$2>
  1470. _ACEOF
  1471. if ac_fn_c_try_compile "$LINENO"; then :
  1472. eval "$3=yes"
  1473. else
  1474. eval "$3=no"
  1475. fi
  1476. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1477. fi
  1478. eval ac_res=\$$3
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1480. $as_echo "$ac_res" >&6; }
  1481. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1482. } # ac_fn_c_check_header_compile
  1483. # ac_fn_c_try_cpp LINENO
  1484. # ----------------------
  1485. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1486. ac_fn_c_try_cpp ()
  1487. {
  1488. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1489. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1490. case "(($ac_try" in
  1491. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1492. *) ac_try_echo=$ac_try;;
  1493. esac
  1494. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1495. $as_echo "$ac_try_echo"; } >&5
  1496. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1497. ac_status=$?
  1498. if test -s conftest.err; then
  1499. grep -v '^ *+' conftest.err >conftest.er1
  1500. cat conftest.er1 >&5
  1501. mv -f conftest.er1 conftest.err
  1502. fi
  1503. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1504. test $ac_status = 0; } > conftest.i && {
  1505. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1506. test ! -s conftest.err
  1507. }; then :
  1508. ac_retval=0
  1509. else
  1510. $as_echo "$as_me: failed program was:" >&5
  1511. sed 's/^/| /' conftest.$ac_ext >&5
  1512. ac_retval=1
  1513. fi
  1514. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1515. as_fn_set_status $ac_retval
  1516. } # ac_fn_c_try_cpp
  1517. # ac_fn_c_try_run LINENO
  1518. # ----------------------
  1519. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1520. # that executables *can* be run.
  1521. ac_fn_c_try_run ()
  1522. {
  1523. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1524. if { { ac_try="$ac_link"
  1525. case "(($ac_try" in
  1526. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1527. *) ac_try_echo=$ac_try;;
  1528. esac
  1529. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1530. $as_echo "$ac_try_echo"; } >&5
  1531. (eval "$ac_link") 2>&5
  1532. ac_status=$?
  1533. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1534. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1535. { { case "(($ac_try" in
  1536. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1537. *) ac_try_echo=$ac_try;;
  1538. esac
  1539. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1540. $as_echo "$ac_try_echo"; } >&5
  1541. (eval "$ac_try") 2>&5
  1542. ac_status=$?
  1543. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1544. test $ac_status = 0; }; }; then :
  1545. ac_retval=0
  1546. else
  1547. $as_echo "$as_me: program exited with status $ac_status" >&5
  1548. $as_echo "$as_me: failed program was:" >&5
  1549. sed 's/^/| /' conftest.$ac_ext >&5
  1550. ac_retval=$ac_status
  1551. fi
  1552. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1553. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1554. as_fn_set_status $ac_retval
  1555. } # ac_fn_c_try_run
  1556. # ac_fn_c_check_func LINENO FUNC VAR
  1557. # ----------------------------------
  1558. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1559. ac_fn_c_check_func ()
  1560. {
  1561. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1563. $as_echo_n "checking for $2... " >&6; }
  1564. if eval \${$3+:} false; then :
  1565. $as_echo_n "(cached) " >&6
  1566. else
  1567. if test x$gcc_no_link = xyes; then
  1568. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  1569. fi
  1570. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1571. /* end confdefs.h. */
  1572. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1573. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1574. #define $2 innocuous_$2
  1575. /* System header to define __stub macros and hopefully few prototypes,
  1576. which can conflict with char $2 (); below.
  1577. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1578. <limits.h> exists even on freestanding compilers. */
  1579. #ifdef __STDC__
  1580. # include <limits.h>
  1581. #else
  1582. # include <assert.h>
  1583. #endif
  1584. #undef $2
  1585. /* Override any GCC internal prototype to avoid an error.
  1586. Use char because int might match the return type of a GCC
  1587. builtin and then its argument prototype would still apply. */
  1588. #ifdef __cplusplus
  1589. extern "C"
  1590. #endif
  1591. char $2 ();
  1592. /* The GNU C library defines this for functions which it implements
  1593. to always fail with ENOSYS. Some functions are actually named
  1594. something starting with __ and the normal name is an alias. */
  1595. #if defined __stub_$2 || defined __stub___$2
  1596. choke me
  1597. #endif
  1598. int
  1599. main ()
  1600. {
  1601. return $2 ();
  1602. ;
  1603. return 0;
  1604. }
  1605. _ACEOF
  1606. if ac_fn_c_try_link "$LINENO"; then :
  1607. eval "$3=yes"
  1608. else
  1609. eval "$3=no"
  1610. fi
  1611. rm -f core conftest.err conftest.$ac_objext \
  1612. conftest$ac_exeext conftest.$ac_ext
  1613. fi
  1614. eval ac_res=\$$3
  1615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1616. $as_echo "$ac_res" >&6; }
  1617. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1618. } # ac_fn_c_check_func
  1619. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1620. # -------------------------------------------------------
  1621. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1622. # the include files in INCLUDES and setting the cache variable VAR
  1623. # accordingly.
  1624. ac_fn_c_check_header_mongrel ()
  1625. {
  1626. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1627. if eval \${$3+:} false; then :
  1628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1629. $as_echo_n "checking for $2... " >&6; }
  1630. if eval \${$3+:} false; then :
  1631. $as_echo_n "(cached) " >&6
  1632. fi
  1633. eval ac_res=\$$3
  1634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1635. $as_echo "$ac_res" >&6; }
  1636. else
  1637. # Is the header compilable?
  1638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1639. $as_echo_n "checking $2 usability... " >&6; }
  1640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1641. /* end confdefs.h. */
  1642. $4
  1643. #include <$2>
  1644. _ACEOF
  1645. if ac_fn_c_try_compile "$LINENO"; then :
  1646. ac_header_compiler=yes
  1647. else
  1648. ac_header_compiler=no
  1649. fi
  1650. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1652. $as_echo "$ac_header_compiler" >&6; }
  1653. # Is the header present?
  1654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1655. $as_echo_n "checking $2 presence... " >&6; }
  1656. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1657. /* end confdefs.h. */
  1658. #include <$2>
  1659. _ACEOF
  1660. if ac_fn_c_try_cpp "$LINENO"; then :
  1661. ac_header_preproc=yes
  1662. else
  1663. ac_header_preproc=no
  1664. fi
  1665. rm -f conftest.err conftest.i conftest.$ac_ext
  1666. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1667. $as_echo "$ac_header_preproc" >&6; }
  1668. # So? What about this header?
  1669. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1670. yes:no: )
  1671. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1672. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1673. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1674. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1675. ;;
  1676. no:yes:* )
  1677. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1678. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1679. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1680. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1681. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1682. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1684. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1685. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1686. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1687. ;;
  1688. esac
  1689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1690. $as_echo_n "checking for $2... " >&6; }
  1691. if eval \${$3+:} false; then :
  1692. $as_echo_n "(cached) " >&6
  1693. else
  1694. eval "$3=\$ac_header_compiler"
  1695. fi
  1696. eval ac_res=\$$3
  1697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1698. $as_echo "$ac_res" >&6; }
  1699. fi
  1700. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1701. } # ac_fn_c_check_header_mongrel
  1702. cat >config.log <<_ACEOF
  1703. This file contains any messages produced by compilers while
  1704. running configure, to aid debugging if configure makes a mistake.
  1705. It was created by zlib $as_me 1.1.4, which was
  1706. generated by GNU Autoconf 2.69. Invocation command line was
  1707. $ $0 $@
  1708. _ACEOF
  1709. exec 5>>config.log
  1710. {
  1711. cat <<_ASUNAME
  1712. ## --------- ##
  1713. ## Platform. ##
  1714. ## --------- ##
  1715. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1716. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1717. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1718. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1719. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1720. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1721. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1722. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1723. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1724. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1725. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1726. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1727. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1728. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1729. _ASUNAME
  1730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1731. for as_dir in $PATH
  1732. do
  1733. IFS=$as_save_IFS
  1734. test -z "$as_dir" && as_dir=.
  1735. $as_echo "PATH: $as_dir"
  1736. done
  1737. IFS=$as_save_IFS
  1738. } >&5
  1739. cat >&5 <<_ACEOF
  1740. ## ----------- ##
  1741. ## Core tests. ##
  1742. ## ----------- ##
  1743. _ACEOF
  1744. # Keep a trace of the command line.
  1745. # Strip out --no-create and --no-recursion so they do not pile up.
  1746. # Strip out --silent because we don't want to record it for future runs.
  1747. # Also quote any args containing shell meta-characters.
  1748. # Make two passes to allow for proper duplicate-argument suppression.
  1749. ac_configure_args=
  1750. ac_configure_args0=
  1751. ac_configure_args1=
  1752. ac_must_keep_next=false
  1753. for ac_pass in 1 2
  1754. do
  1755. for ac_arg
  1756. do
  1757. case $ac_arg in
  1758. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1759. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1760. | -silent | --silent | --silen | --sile | --sil)
  1761. continue ;;
  1762. *\'*)
  1763. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1764. esac
  1765. case $ac_pass in
  1766. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1767. 2)
  1768. as_fn_append ac_configure_args1 " '$ac_arg'"
  1769. if test $ac_must_keep_next = true; then
  1770. ac_must_keep_next=false # Got value, back to normal.
  1771. else
  1772. case $ac_arg in
  1773. *=* | --config-cache | -C | -disable-* | --disable-* \
  1774. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1775. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1776. | -with-* | --with-* | -without-* | --without-* | --x)
  1777. case "$ac_configure_args0 " in
  1778. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1779. esac
  1780. ;;
  1781. -* ) ac_must_keep_next=true ;;
  1782. esac
  1783. fi
  1784. as_fn_append ac_configure_args " '$ac_arg'"
  1785. ;;
  1786. esac
  1787. done
  1788. done
  1789. { ac_configure_args0=; unset ac_configure_args0;}
  1790. { ac_configure_args1=; unset ac_configure_args1;}
  1791. # When interrupted or exit'd, cleanup temporary files, and complete
  1792. # config.log. We remove comments because anyway the quotes in there
  1793. # would cause problems or look ugly.
  1794. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1795. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1796. trap 'exit_status=$?
  1797. # Save into config.log some information that might help in debugging.
  1798. {
  1799. echo
  1800. $as_echo "## ---------------- ##
  1801. ## Cache variables. ##
  1802. ## ---------------- ##"
  1803. echo
  1804. # The following way of writing the cache mishandles newlines in values,
  1805. (
  1806. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1807. eval ac_val=\$$ac_var
  1808. case $ac_val in #(
  1809. *${as_nl}*)
  1810. case $ac_var in #(
  1811. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1812. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1813. esac
  1814. case $ac_var in #(
  1815. _ | IFS | as_nl) ;; #(
  1816. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1817. *) { eval $ac_var=; unset $ac_var;} ;;
  1818. esac ;;
  1819. esac
  1820. done
  1821. (set) 2>&1 |
  1822. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1823. *${as_nl}ac_space=\ *)
  1824. sed -n \
  1825. "s/'\''/'\''\\\\'\'''\''/g;
  1826. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1827. ;; #(
  1828. *)
  1829. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1830. ;;
  1831. esac |
  1832. sort
  1833. )
  1834. echo
  1835. $as_echo "## ----------------- ##
  1836. ## Output variables. ##
  1837. ## ----------------- ##"
  1838. echo
  1839. for ac_var in $ac_subst_vars
  1840. do
  1841. eval ac_val=\$$ac_var
  1842. case $ac_val in
  1843. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1844. esac
  1845. $as_echo "$ac_var='\''$ac_val'\''"
  1846. done | sort
  1847. echo
  1848. if test -n "$ac_subst_files"; then
  1849. $as_echo "## ------------------- ##
  1850. ## File substitutions. ##
  1851. ## ------------------- ##"
  1852. echo
  1853. for ac_var in $ac_subst_files
  1854. do
  1855. eval ac_val=\$$ac_var
  1856. case $ac_val in
  1857. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1858. esac
  1859. $as_echo "$ac_var='\''$ac_val'\''"
  1860. done | sort
  1861. echo
  1862. fi
  1863. if test -s confdefs.h; then
  1864. $as_echo "## ----------- ##
  1865. ## confdefs.h. ##
  1866. ## ----------- ##"
  1867. echo
  1868. cat confdefs.h
  1869. echo
  1870. fi
  1871. test "$ac_signal" != 0 &&
  1872. $as_echo "$as_me: caught signal $ac_signal"
  1873. $as_echo "$as_me: exit $exit_status"
  1874. } >&5
  1875. rm -f core *.core core.conftest.* &&
  1876. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1877. exit $exit_status
  1878. ' 0
  1879. for ac_signal in 1 2 13 15; do
  1880. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1881. done
  1882. ac_signal=0
  1883. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1884. rm -f -r conftest* confdefs.h
  1885. $as_echo "/* confdefs.h */" > confdefs.h
  1886. # Predefined preprocessor variables.
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_NAME "$PACKAGE_NAME"
  1889. _ACEOF
  1890. cat >>confdefs.h <<_ACEOF
  1891. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1892. _ACEOF
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define PACKAGE_STRING "$PACKAGE_STRING"
  1898. _ACEOF
  1899. cat >>confdefs.h <<_ACEOF
  1900. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1901. _ACEOF
  1902. cat >>confdefs.h <<_ACEOF
  1903. #define PACKAGE_URL "$PACKAGE_URL"
  1904. _ACEOF
  1905. # Let the site file select an alternate cache file if it wants to.
  1906. # Prefer an explicitly selected file to automatically selected ones.
  1907. ac_site_file1=NONE
  1908. ac_site_file2=NONE
  1909. if test -n "$CONFIG_SITE"; then
  1910. # We do not want a PATH search for config.site.
  1911. case $CONFIG_SITE in #((
  1912. -*) ac_site_file1=./$CONFIG_SITE;;
  1913. */*) ac_site_file1=$CONFIG_SITE;;
  1914. *) ac_site_file1=./$CONFIG_SITE;;
  1915. esac
  1916. elif test "x$prefix" != xNONE; then
  1917. ac_site_file1=$prefix/share/config.site
  1918. ac_site_file2=$prefix/etc/config.site
  1919. else
  1920. ac_site_file1=$ac_default_prefix/share/config.site
  1921. ac_site_file2=$ac_default_prefix/etc/config.site
  1922. fi
  1923. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1924. do
  1925. test "x$ac_site_file" = xNONE && continue
  1926. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1928. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1929. sed 's/^/| /' "$ac_site_file" >&5
  1930. . "$ac_site_file" \
  1931. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1932. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1933. as_fn_error $? "failed to load site script $ac_site_file
  1934. See \`config.log' for more details" "$LINENO" 5; }
  1935. fi
  1936. done
  1937. if test -r "$cache_file"; then
  1938. # Some versions of bash will fail to source /dev/null (special files
  1939. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1940. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1941. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1942. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1943. case $cache_file in
  1944. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1945. *) . "./$cache_file";;
  1946. esac
  1947. fi
  1948. else
  1949. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1950. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1951. >$cache_file
  1952. fi
  1953. as_fn_append ac_header_list " stdlib.h"
  1954. as_fn_append ac_header_list " unistd.h"
  1955. as_fn_append ac_header_list " sys/param.h"
  1956. # Check that the precious variables saved in the cache have kept the same
  1957. # value.
  1958. ac_cache_corrupted=false
  1959. for ac_var in $ac_precious_vars; do
  1960. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1961. eval ac_new_set=\$ac_env_${ac_var}_set
  1962. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1963. eval ac_new_val=\$ac_env_${ac_var}_value
  1964. case $ac_old_set,$ac_new_set in
  1965. set,)
  1966. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1967. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1968. ac_cache_corrupted=: ;;
  1969. ,set)
  1970. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1971. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1972. ac_cache_corrupted=: ;;
  1973. ,);;
  1974. *)
  1975. if test "x$ac_old_val" != "x$ac_new_val"; then
  1976. # differences in whitespace do not lead to failure.
  1977. ac_old_val_w=`echo x $ac_old_val`
  1978. ac_new_val_w=`echo x $ac_new_val`
  1979. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1980. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1981. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1982. ac_cache_corrupted=:
  1983. else
  1984. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1985. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1986. eval $ac_var=\$ac_old_val
  1987. fi
  1988. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1989. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1990. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1991. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1992. fi;;
  1993. esac
  1994. # Pass precious variables to config.status.
  1995. if test "$ac_new_set" = set; then
  1996. case $ac_new_val in
  1997. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1998. *) ac_arg=$ac_var=$ac_new_val ;;
  1999. esac
  2000. case " $ac_configure_args " in
  2001. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2002. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2003. esac
  2004. fi
  2005. done
  2006. if $ac_cache_corrupted; then
  2007. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2009. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2010. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2011. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2012. fi
  2013. ## -------------------- ##
  2014. ## Main body of script. ##
  2015. ## -------------------- ##
  2016. ac_ext=c
  2017. ac_cpp='$CPP $CPPFLAGS'
  2018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2021. if test -n "${with_target_subdir}"; then
  2022. # Default to --enable-multilib
  2023. # Check whether --enable-multilib was given.
  2024. if test "${enable_multilib+set}" = set; then :
  2025. enableval=$enable_multilib; case "$enableval" in
  2026. yes) multilib=yes ;;
  2027. no) multilib=no ;;
  2028. *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
  2029. esac
  2030. else
  2031. multilib=yes
  2032. fi
  2033. # We may get other options which we leave undocumented:
  2034. # --with-target-subdir, --with-multisrctop, --with-multisubdir
  2035. # See config-ml.in if you want the gory details.
  2036. if test "$srcdir" = "."; then
  2037. if test "$with_target_subdir" != "."; then
  2038. multi_basedir="$srcdir/$with_multisrctop../.."
  2039. else
  2040. multi_basedir="$srcdir/$with_multisrctop.."
  2041. fi
  2042. else
  2043. multi_basedir="$srcdir/.."
  2044. fi
  2045. # Even if the default multilib is not a cross compilation,
  2046. # it may be that some of the other multilibs are.
  2047. if test $cross_compiling = no && test $multilib = yes \
  2048. && test "x${with_multisubdir}" != x ; then
  2049. cross_compiling=maybe
  2050. fi
  2051. ac_config_commands="$ac_config_commands default-1"
  2052. fi
  2053. ac_aux_dir=
  2054. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2055. if test -f "$ac_dir/install-sh"; then
  2056. ac_aux_dir=$ac_dir
  2057. ac_install_sh="$ac_aux_dir/install-sh -c"
  2058. break
  2059. elif test -f "$ac_dir/install.sh"; then
  2060. ac_aux_dir=$ac_dir
  2061. ac_install_sh="$ac_aux_dir/install.sh -c"
  2062. break
  2063. elif test -f "$ac_dir/shtool"; then
  2064. ac_aux_dir=$ac_dir
  2065. ac_install_sh="$ac_aux_dir/shtool install -c"
  2066. break
  2067. fi
  2068. done
  2069. if test -z "$ac_aux_dir"; then
  2070. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2071. fi
  2072. # These three variables are undocumented and unsupported,
  2073. # and are intended to be withdrawn in a future Autoconf release.
  2074. # They can cause serious problems if a builder's source tree is in a directory
  2075. # whose full name contains unusual characters.
  2076. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2077. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2078. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2079. # Make sure we can run config.sub.
  2080. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2081. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2083. $as_echo_n "checking build system type... " >&6; }
  2084. if ${ac_cv_build+:} false; then :
  2085. $as_echo_n "(cached) " >&6
  2086. else
  2087. ac_build_alias=$build_alias
  2088. test "x$ac_build_alias" = x &&
  2089. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2090. test "x$ac_build_alias" = x &&
  2091. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2092. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2093. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2094. fi
  2095. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2096. $as_echo "$ac_cv_build" >&6; }
  2097. case $ac_cv_build in
  2098. *-*-*) ;;
  2099. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2100. esac
  2101. build=$ac_cv_build
  2102. ac_save_IFS=$IFS; IFS='-'
  2103. set x $ac_cv_build
  2104. shift
  2105. build_cpu=$1
  2106. build_vendor=$2
  2107. shift; shift
  2108. # Remember, the first character of IFS is used to create $*,
  2109. # except with old shells:
  2110. build_os=$*
  2111. IFS=$ac_save_IFS
  2112. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2114. $as_echo_n "checking host system type... " >&6; }
  2115. if ${ac_cv_host+:} false; then :
  2116. $as_echo_n "(cached) " >&6
  2117. else
  2118. if test "x$host_alias" = x; then
  2119. ac_cv_host=$ac_cv_build
  2120. else
  2121. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2122. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2123. fi
  2124. fi
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2126. $as_echo "$ac_cv_host" >&6; }
  2127. case $ac_cv_host in
  2128. *-*-*) ;;
  2129. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2130. esac
  2131. host=$ac_cv_host
  2132. ac_save_IFS=$IFS; IFS='-'
  2133. set x $ac_cv_host
  2134. shift
  2135. host_cpu=$1
  2136. host_vendor=$2
  2137. shift; shift
  2138. # Remember, the first character of IFS is used to create $*,
  2139. # except with old shells:
  2140. host_os=$*
  2141. IFS=$ac_save_IFS
  2142. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2144. $as_echo_n "checking target system type... " >&6; }
  2145. if ${ac_cv_target+:} false; then :
  2146. $as_echo_n "(cached) " >&6
  2147. else
  2148. if test "x$target_alias" = x; then
  2149. ac_cv_target=$ac_cv_host
  2150. else
  2151. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2152. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2153. fi
  2154. fi
  2155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2156. $as_echo "$ac_cv_target" >&6; }
  2157. case $ac_cv_target in
  2158. *-*-*) ;;
  2159. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2160. esac
  2161. target=$ac_cv_target
  2162. ac_save_IFS=$IFS; IFS='-'
  2163. set x $ac_cv_target
  2164. shift
  2165. target_cpu=$1
  2166. target_vendor=$2
  2167. shift; shift
  2168. # Remember, the first character of IFS is used to create $*,
  2169. # except with old shells:
  2170. target_os=$*
  2171. IFS=$ac_save_IFS
  2172. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2173. # The aliases save the names the user supplied, while $host etc.
  2174. # will get canonicalized.
  2175. test -n "$target_alias" &&
  2176. test "$program_prefix$program_suffix$program_transform_name" = \
  2177. NONENONEs,x,x, &&
  2178. program_prefix=${target_alias}-
  2179. # This works around an automake problem.
  2180. mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
  2181. am__api_version='1.15'
  2182. # Find a good install program. We prefer a C program (faster),
  2183. # so one script is as good as another. But avoid the broken or
  2184. # incompatible versions:
  2185. # SysV /etc/install, /usr/sbin/install
  2186. # SunOS /usr/etc/install
  2187. # IRIX /sbin/install
  2188. # AIX /bin/install
  2189. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2190. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2191. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2192. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2193. # OS/2's system install, which has a completely different semantic
  2194. # ./install, which can be erroneously created by make from ./install.sh.
  2195. # Reject install programs that cannot install multiple files.
  2196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2197. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2198. if test -z "$INSTALL"; then
  2199. if ${ac_cv_path_install+:} false; then :
  2200. $as_echo_n "(cached) " >&6
  2201. else
  2202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2203. for as_dir in $PATH
  2204. do
  2205. IFS=$as_save_IFS
  2206. test -z "$as_dir" && as_dir=.
  2207. # Account for people who put trailing slashes in PATH elements.
  2208. case $as_dir/ in #((
  2209. ./ | .// | /[cC]/* | \
  2210. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2211. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2212. /usr/ucb/* ) ;;
  2213. *)
  2214. # OSF1 and SCO ODT 3.0 have their own names for install.
  2215. # Don't use installbsd from OSF since it installs stuff as root
  2216. # by default.
  2217. for ac_prog in ginstall scoinst install; do
  2218. for ac_exec_ext in '' $ac_executable_extensions; do
  2219. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2220. if test $ac_prog = install &&
  2221. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2222. # AIX install. It has an incompatible calling convention.
  2223. :
  2224. elif test $ac_prog = install &&
  2225. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2226. # program-specific install script used by HP pwplus--don't use.
  2227. :
  2228. else
  2229. rm -rf conftest.one conftest.two conftest.dir
  2230. echo one > conftest.one
  2231. echo two > conftest.two
  2232. mkdir conftest.dir
  2233. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2234. test -s conftest.one && test -s conftest.two &&
  2235. test -s conftest.dir/conftest.one &&
  2236. test -s conftest.dir/conftest.two
  2237. then
  2238. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2239. break 3
  2240. fi
  2241. fi
  2242. fi
  2243. done
  2244. done
  2245. ;;
  2246. esac
  2247. done
  2248. IFS=$as_save_IFS
  2249. rm -rf conftest.one conftest.two conftest.dir
  2250. fi
  2251. if test "${ac_cv_path_install+set}" = set; then
  2252. INSTALL=$ac_cv_path_install
  2253. else
  2254. # As a last resort, use the slow shell script. Don't cache a
  2255. # value for INSTALL within a source directory, because that will
  2256. # break other packages using the cache if that directory is
  2257. # removed, or if the value is a relative name.
  2258. INSTALL=$ac_install_sh
  2259. fi
  2260. fi
  2261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2262. $as_echo "$INSTALL" >&6; }
  2263. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2264. # It thinks the first close brace ends the variable substitution.
  2265. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2266. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2267. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2269. $as_echo_n "checking whether build environment is sane... " >&6; }
  2270. # Reject unsafe characters in $srcdir or the absolute working directory
  2271. # name. Accept space and tab only in the latter.
  2272. am_lf='
  2273. '
  2274. case `pwd` in
  2275. *[\\\"\#\$\&\'\`$am_lf]*)
  2276. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2277. esac
  2278. case $srcdir in
  2279. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2280. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2281. esac
  2282. # Do 'set' in a subshell so we don't clobber the current shell's
  2283. # arguments. Must try -L first in case configure is actually a
  2284. # symlink; some systems play weird games with the mod time of symlinks
  2285. # (eg FreeBSD returns the mod time of the symlink's containing
  2286. # directory).
  2287. if (
  2288. am_has_slept=no
  2289. for am_try in 1 2; do
  2290. echo "timestamp, slept: $am_has_slept" > conftest.file
  2291. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2292. if test "$*" = "X"; then
  2293. # -L didn't work.
  2294. set X `ls -t "$srcdir/configure" conftest.file`
  2295. fi
  2296. if test "$*" != "X $srcdir/configure conftest.file" \
  2297. && test "$*" != "X conftest.file $srcdir/configure"; then
  2298. # If neither matched, then we have a broken ls. This can happen
  2299. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2300. # broken ls alias from the environment. This has actually
  2301. # happened. Such a system could not be considered "sane".
  2302. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2303. alias in your environment" "$LINENO" 5
  2304. fi
  2305. if test "$2" = conftest.file || test $am_try -eq 2; then
  2306. break
  2307. fi
  2308. # Just in case.
  2309. sleep 1
  2310. am_has_slept=yes
  2311. done
  2312. test "$2" = conftest.file
  2313. )
  2314. then
  2315. # Ok.
  2316. :
  2317. else
  2318. as_fn_error $? "newly created file is older than distributed files!
  2319. Check your system clock" "$LINENO" 5
  2320. fi
  2321. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2322. $as_echo "yes" >&6; }
  2323. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2324. # generated files are strictly newer.
  2325. am_sleep_pid=
  2326. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2327. ( sleep 1 ) &
  2328. am_sleep_pid=$!
  2329. fi
  2330. rm -f conftest.file
  2331. test "$program_prefix" != NONE &&
  2332. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2333. # Use a double $ so make ignores it.
  2334. test "$program_suffix" != NONE &&
  2335. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2336. # Double any \ or $.
  2337. # By default was `s,x,x', remove it if useless.
  2338. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2339. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2340. # Expand $ac_aux_dir to an absolute path.
  2341. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2342. if test x"${MISSING+set}" != xset; then
  2343. case $am_aux_dir in
  2344. *\ * | *\ *)
  2345. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2346. *)
  2347. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2348. esac
  2349. fi
  2350. # Use eval to expand $SHELL
  2351. if eval "$MISSING --is-lightweight"; then
  2352. am_missing_run="$MISSING "
  2353. else
  2354. am_missing_run=
  2355. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2356. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2357. fi
  2358. if test x"${install_sh+set}" != xset; then
  2359. case $am_aux_dir in
  2360. *\ * | *\ *)
  2361. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2362. *)
  2363. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2364. esac
  2365. fi
  2366. # Installed binaries are usually stripped using 'strip' when the user
  2367. # run "make install-strip". However 'strip' might not be the right
  2368. # tool to use in cross-compilation environments, therefore Automake
  2369. # will honor the 'STRIP' environment variable to overrule this program.
  2370. if test "$cross_compiling" != no; then
  2371. if test -n "$ac_tool_prefix"; then
  2372. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2373. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2375. $as_echo_n "checking for $ac_word... " >&6; }
  2376. if ${ac_cv_prog_STRIP+:} false; then :
  2377. $as_echo_n "(cached) " >&6
  2378. else
  2379. if test -n "$STRIP"; then
  2380. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2381. else
  2382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2383. for as_dir in $PATH
  2384. do
  2385. IFS=$as_save_IFS
  2386. test -z "$as_dir" && as_dir=.
  2387. for ac_exec_ext in '' $ac_executable_extensions; do
  2388. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2389. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2390. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2391. break 2
  2392. fi
  2393. done
  2394. done
  2395. IFS=$as_save_IFS
  2396. fi
  2397. fi
  2398. STRIP=$ac_cv_prog_STRIP
  2399. if test -n "$STRIP"; then
  2400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2401. $as_echo "$STRIP" >&6; }
  2402. else
  2403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2404. $as_echo "no" >&6; }
  2405. fi
  2406. fi
  2407. if test -z "$ac_cv_prog_STRIP"; then
  2408. ac_ct_STRIP=$STRIP
  2409. # Extract the first word of "strip", so it can be a program name with args.
  2410. set dummy strip; ac_word=$2
  2411. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2412. $as_echo_n "checking for $ac_word... " >&6; }
  2413. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2414. $as_echo_n "(cached) " >&6
  2415. else
  2416. if test -n "$ac_ct_STRIP"; then
  2417. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2418. else
  2419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2420. for as_dir in $PATH
  2421. do
  2422. IFS=$as_save_IFS
  2423. test -z "$as_dir" && as_dir=.
  2424. for ac_exec_ext in '' $ac_executable_extensions; do
  2425. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2426. ac_cv_prog_ac_ct_STRIP="strip"
  2427. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2428. break 2
  2429. fi
  2430. done
  2431. done
  2432. IFS=$as_save_IFS
  2433. fi
  2434. fi
  2435. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2436. if test -n "$ac_ct_STRIP"; then
  2437. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2438. $as_echo "$ac_ct_STRIP" >&6; }
  2439. else
  2440. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2441. $as_echo "no" >&6; }
  2442. fi
  2443. if test "x$ac_ct_STRIP" = x; then
  2444. STRIP=":"
  2445. else
  2446. case $cross_compiling:$ac_tool_warned in
  2447. yes:)
  2448. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2449. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2450. ac_tool_warned=yes ;;
  2451. esac
  2452. STRIP=$ac_ct_STRIP
  2453. fi
  2454. else
  2455. STRIP="$ac_cv_prog_STRIP"
  2456. fi
  2457. fi
  2458. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2459. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2460. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2461. if test -z "$MKDIR_P"; then
  2462. if ${ac_cv_path_mkdir+:} false; then :
  2463. $as_echo_n "(cached) " >&6
  2464. else
  2465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2466. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2467. do
  2468. IFS=$as_save_IFS
  2469. test -z "$as_dir" && as_dir=.
  2470. for ac_prog in mkdir gmkdir; do
  2471. for ac_exec_ext in '' $ac_executable_extensions; do
  2472. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2473. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2474. 'mkdir (GNU coreutils) '* | \
  2475. 'mkdir (coreutils) '* | \
  2476. 'mkdir (fileutils) '4.1*)
  2477. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2478. break 3;;
  2479. esac
  2480. done
  2481. done
  2482. done
  2483. IFS=$as_save_IFS
  2484. fi
  2485. test -d ./--version && rmdir ./--version
  2486. if test "${ac_cv_path_mkdir+set}" = set; then
  2487. MKDIR_P="$ac_cv_path_mkdir -p"
  2488. else
  2489. # As a last resort, use the slow shell script. Don't cache a
  2490. # value for MKDIR_P within a source directory, because that will
  2491. # break other packages using the cache if that directory is
  2492. # removed, or if the value is a relative name.
  2493. MKDIR_P="$ac_install_sh -d"
  2494. fi
  2495. fi
  2496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2497. $as_echo "$MKDIR_P" >&6; }
  2498. for ac_prog in gawk mawk nawk awk
  2499. do
  2500. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2501. set dummy $ac_prog; ac_word=$2
  2502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2503. $as_echo_n "checking for $ac_word... " >&6; }
  2504. if ${ac_cv_prog_AWK+:} false; then :
  2505. $as_echo_n "(cached) " >&6
  2506. else
  2507. if test -n "$AWK"; then
  2508. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2509. else
  2510. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2511. for as_dir in $PATH
  2512. do
  2513. IFS=$as_save_IFS
  2514. test -z "$as_dir" && as_dir=.
  2515. for ac_exec_ext in '' $ac_executable_extensions; do
  2516. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2517. ac_cv_prog_AWK="$ac_prog"
  2518. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2519. break 2
  2520. fi
  2521. done
  2522. done
  2523. IFS=$as_save_IFS
  2524. fi
  2525. fi
  2526. AWK=$ac_cv_prog_AWK
  2527. if test -n "$AWK"; then
  2528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2529. $as_echo "$AWK" >&6; }
  2530. else
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2532. $as_echo "no" >&6; }
  2533. fi
  2534. test -n "$AWK" && break
  2535. done
  2536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2537. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2538. set x ${MAKE-make}
  2539. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2540. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2541. $as_echo_n "(cached) " >&6
  2542. else
  2543. cat >conftest.make <<\_ACEOF
  2544. SHELL = /bin/sh
  2545. all:
  2546. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2547. _ACEOF
  2548. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2549. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2550. *@@@%%%=?*=@@@%%%*)
  2551. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2552. *)
  2553. eval ac_cv_prog_make_${ac_make}_set=no;;
  2554. esac
  2555. rm -f conftest.make
  2556. fi
  2557. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2559. $as_echo "yes" >&6; }
  2560. SET_MAKE=
  2561. else
  2562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2563. $as_echo "no" >&6; }
  2564. SET_MAKE="MAKE=${MAKE-make}"
  2565. fi
  2566. rm -rf .tst 2>/dev/null
  2567. mkdir .tst 2>/dev/null
  2568. if test -d .tst; then
  2569. am__leading_dot=.
  2570. else
  2571. am__leading_dot=_
  2572. fi
  2573. rmdir .tst 2>/dev/null
  2574. # Check whether --enable-silent-rules was given.
  2575. if test "${enable_silent_rules+set}" = set; then :
  2576. enableval=$enable_silent_rules;
  2577. fi
  2578. case $enable_silent_rules in # (((
  2579. yes) AM_DEFAULT_VERBOSITY=0;;
  2580. no) AM_DEFAULT_VERBOSITY=1;;
  2581. *) AM_DEFAULT_VERBOSITY=1;;
  2582. esac
  2583. am_make=${MAKE-make}
  2584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2585. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2586. if ${am_cv_make_support_nested_variables+:} false; then :
  2587. $as_echo_n "(cached) " >&6
  2588. else
  2589. if $as_echo 'TRUE=$(BAR$(V))
  2590. BAR0=false
  2591. BAR1=true
  2592. V=1
  2593. am__doit:
  2594. @$(TRUE)
  2595. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2596. am_cv_make_support_nested_variables=yes
  2597. else
  2598. am_cv_make_support_nested_variables=no
  2599. fi
  2600. fi
  2601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2602. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2603. if test $am_cv_make_support_nested_variables = yes; then
  2604. AM_V='$(V)'
  2605. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2606. else
  2607. AM_V=$AM_DEFAULT_VERBOSITY
  2608. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2609. fi
  2610. AM_BACKSLASH='\'
  2611. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2612. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2613. # is not polluted with repeated "-I."
  2614. am__isrc=' -I$(srcdir)'
  2615. # test to see if srcdir already configured
  2616. if test -f $srcdir/config.status; then
  2617. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2618. fi
  2619. fi
  2620. # test whether we have cygpath
  2621. if test -z "$CYGPATH_W"; then
  2622. if (cygpath --version) >/dev/null 2>/dev/null; then
  2623. CYGPATH_W='cygpath -w'
  2624. else
  2625. CYGPATH_W=echo
  2626. fi
  2627. fi
  2628. # Define the identity of the package.
  2629. PACKAGE='zlib'
  2630. VERSION='1.1.4'
  2631. cat >>confdefs.h <<_ACEOF
  2632. #define PACKAGE "$PACKAGE"
  2633. _ACEOF
  2634. cat >>confdefs.h <<_ACEOF
  2635. #define VERSION "$VERSION"
  2636. _ACEOF
  2637. # Some tools Automake needs.
  2638. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2639. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2640. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2641. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2642. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2643. # For better backward compatibility. To be removed once Automake 1.9.x
  2644. # dies out for good. For more background, see:
  2645. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2646. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2647. mkdir_p='$(MKDIR_P)'
  2648. # We need awk for the "check" target (and possibly the TAP driver). The
  2649. # system "awk" is bad on some platforms.
  2650. # Always define AMTAR for backward compatibility. Yes, it's still used
  2651. # in the wild :-( We should find a proper way to deprecate it ...
  2652. AMTAR='$${TAR-tar}'
  2653. # We'll loop over all known methods to create a tar archive until one works.
  2654. _am_tools='gnutar pax cpio none'
  2655. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2656. # POSIX will say in a future version that running "rm -f" with no argument
  2657. # is OK; and we want to be able to make that assumption in our Makefile
  2658. # recipes. So use an aggressive probe to check that the usage we want is
  2659. # actually supported "in the wild" to an acceptable degree.
  2660. # See automake bug#10828.
  2661. # To make any issue more visible, cause the running configure to be aborted
  2662. # by default if the 'rm' program in use doesn't match our expectations; the
  2663. # user can still override this though.
  2664. if rm -f && rm -fr && rm -rf; then : OK; else
  2665. cat >&2 <<'END'
  2666. Oops!
  2667. Your 'rm' program seems unable to run without file operands specified
  2668. on the command line, even when the '-f' option is present. This is contrary
  2669. to the behaviour of most rm programs out there, and not conforming with
  2670. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2671. Please tell bug-automake@gnu.org about your system, including the value
  2672. of your $PATH and any error possibly output before this message. This
  2673. can help us improve future automake versions.
  2674. END
  2675. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2676. echo 'Configuration will proceed anyway, since you have set the' >&2
  2677. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2678. echo >&2
  2679. else
  2680. cat >&2 <<'END'
  2681. Aborting the configuration process, to ensure you take notice of the issue.
  2682. You can download and install GNU coreutils to get an 'rm' implementation
  2683. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2684. If you want to complete the configuration process using your problematic
  2685. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2686. to "yes", and re-run configure.
  2687. END
  2688. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2689. fi
  2690. fi
  2691. # Check whether --enable-silent-rules was given.
  2692. if test "${enable_silent_rules+set}" = set; then :
  2693. enableval=$enable_silent_rules;
  2694. fi
  2695. case $enable_silent_rules in # (((
  2696. yes) AM_DEFAULT_VERBOSITY=0;;
  2697. no) AM_DEFAULT_VERBOSITY=1;;
  2698. *) AM_DEFAULT_VERBOSITY=0;;
  2699. esac
  2700. am_make=${MAKE-make}
  2701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2702. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2703. if ${am_cv_make_support_nested_variables+:} false; then :
  2704. $as_echo_n "(cached) " >&6
  2705. else
  2706. if $as_echo 'TRUE=$(BAR$(V))
  2707. BAR0=false
  2708. BAR1=true
  2709. V=1
  2710. am__doit:
  2711. @$(TRUE)
  2712. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2713. am_cv_make_support_nested_variables=yes
  2714. else
  2715. am_cv_make_support_nested_variables=no
  2716. fi
  2717. fi
  2718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2719. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2720. if test $am_cv_make_support_nested_variables = yes; then
  2721. AM_V='$(V)'
  2722. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2723. else
  2724. AM_V=$AM_DEFAULT_VERBOSITY
  2725. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2726. fi
  2727. AM_BACKSLASH='\'
  2728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2729. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2730. # Check whether --enable-maintainer-mode was given.
  2731. if test "${enable_maintainer_mode+set}" = set; then :
  2732. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2733. else
  2734. USE_MAINTAINER_MODE=no
  2735. fi
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2737. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2738. if test $USE_MAINTAINER_MODE = yes; then
  2739. MAINTAINER_MODE_TRUE=
  2740. MAINTAINER_MODE_FALSE='#'
  2741. else
  2742. MAINTAINER_MODE_TRUE='#'
  2743. MAINTAINER_MODE_FALSE=
  2744. fi
  2745. MAINT=$MAINTAINER_MODE_TRUE
  2746. # Check whether --with-target-subdir was given.
  2747. if test "${with_target_subdir+set}" = set; then :
  2748. withval=$with_target_subdir;
  2749. fi
  2750. if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
  2751. COMPPATH=.
  2752. else
  2753. COMPPATH=..
  2754. fi
  2755. # Check whether --with-cross-host was given.
  2756. if test "${with_cross_host+set}" = set; then :
  2757. withval=$with_cross_host;
  2758. fi
  2759. # Check whether --enable-multilib was given.
  2760. if test "${enable_multilib+set}" = set; then :
  2761. enableval=$enable_multilib; case "${enableval}" in
  2762. yes) multilib=yes ;;
  2763. no) multilib=no ;;
  2764. *) as_fn_error $? "bad value ${enableval} for multilib option" "$LINENO" 5 ;;
  2765. esac
  2766. else
  2767. test -z "$with_target_subdir" && multilib=no || multilib=yes
  2768. fi
  2769. # Check whether --with-system-zlib was given.
  2770. if test "${with_system_zlib+set}" = set; then :
  2771. withval=$with_system_zlib;
  2772. fi
  2773. # Make sure we don't test executables when making cross-tools.
  2774. # The same as in boehm-gc and libstdc++. Have to borrow it from there.
  2775. # We must force CC to /not/ be precious variables; otherwise
  2776. # the wrong, non-multilib-adjusted value will be used in multilibs.
  2777. # As a side effect, we have to subst CFLAGS ourselves.
  2778. ac_ext=c
  2779. ac_cpp='$CPP $CPPFLAGS'
  2780. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2781. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2782. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2783. if test -n "$ac_tool_prefix"; then
  2784. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2785. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2786. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2787. $as_echo_n "checking for $ac_word... " >&6; }
  2788. if ${ac_cv_prog_CC+:} false; then :
  2789. $as_echo_n "(cached) " >&6
  2790. else
  2791. if test -n "$CC"; then
  2792. ac_cv_prog_CC="$CC" # Let the user override the test.
  2793. else
  2794. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2795. for as_dir in $PATH
  2796. do
  2797. IFS=$as_save_IFS
  2798. test -z "$as_dir" && as_dir=.
  2799. for ac_exec_ext in '' $ac_executable_extensions; do
  2800. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2801. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2802. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2803. break 2
  2804. fi
  2805. done
  2806. done
  2807. IFS=$as_save_IFS
  2808. fi
  2809. fi
  2810. CC=$ac_cv_prog_CC
  2811. if test -n "$CC"; then
  2812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2813. $as_echo "$CC" >&6; }
  2814. else
  2815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2816. $as_echo "no" >&6; }
  2817. fi
  2818. fi
  2819. if test -z "$ac_cv_prog_CC"; then
  2820. ac_ct_CC=$CC
  2821. # Extract the first word of "gcc", so it can be a program name with args.
  2822. set dummy gcc; ac_word=$2
  2823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2824. $as_echo_n "checking for $ac_word... " >&6; }
  2825. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2826. $as_echo_n "(cached) " >&6
  2827. else
  2828. if test -n "$ac_ct_CC"; then
  2829. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2830. else
  2831. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2832. for as_dir in $PATH
  2833. do
  2834. IFS=$as_save_IFS
  2835. test -z "$as_dir" && as_dir=.
  2836. for ac_exec_ext in '' $ac_executable_extensions; do
  2837. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2838. ac_cv_prog_ac_ct_CC="gcc"
  2839. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2840. break 2
  2841. fi
  2842. done
  2843. done
  2844. IFS=$as_save_IFS
  2845. fi
  2846. fi
  2847. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2848. if test -n "$ac_ct_CC"; then
  2849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2850. $as_echo "$ac_ct_CC" >&6; }
  2851. else
  2852. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2853. $as_echo "no" >&6; }
  2854. fi
  2855. if test "x$ac_ct_CC" = x; then
  2856. CC=""
  2857. else
  2858. case $cross_compiling:$ac_tool_warned in
  2859. yes:)
  2860. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2861. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2862. ac_tool_warned=yes ;;
  2863. esac
  2864. CC=$ac_ct_CC
  2865. fi
  2866. else
  2867. CC="$ac_cv_prog_CC"
  2868. fi
  2869. if test -z "$CC"; then
  2870. if test -n "$ac_tool_prefix"; then
  2871. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2872. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2874. $as_echo_n "checking for $ac_word... " >&6; }
  2875. if ${ac_cv_prog_CC+:} false; then :
  2876. $as_echo_n "(cached) " >&6
  2877. else
  2878. if test -n "$CC"; then
  2879. ac_cv_prog_CC="$CC" # Let the user override the test.
  2880. else
  2881. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2882. for as_dir in $PATH
  2883. do
  2884. IFS=$as_save_IFS
  2885. test -z "$as_dir" && as_dir=.
  2886. for ac_exec_ext in '' $ac_executable_extensions; do
  2887. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2888. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2889. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2890. break 2
  2891. fi
  2892. done
  2893. done
  2894. IFS=$as_save_IFS
  2895. fi
  2896. fi
  2897. CC=$ac_cv_prog_CC
  2898. if test -n "$CC"; then
  2899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2900. $as_echo "$CC" >&6; }
  2901. else
  2902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2903. $as_echo "no" >&6; }
  2904. fi
  2905. fi
  2906. fi
  2907. if test -z "$CC"; then
  2908. # Extract the first word of "cc", so it can be a program name with args.
  2909. set dummy cc; ac_word=$2
  2910. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2911. $as_echo_n "checking for $ac_word... " >&6; }
  2912. if ${ac_cv_prog_CC+:} false; then :
  2913. $as_echo_n "(cached) " >&6
  2914. else
  2915. if test -n "$CC"; then
  2916. ac_cv_prog_CC="$CC" # Let the user override the test.
  2917. else
  2918. ac_prog_rejected=no
  2919. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2920. for as_dir in $PATH
  2921. do
  2922. IFS=$as_save_IFS
  2923. test -z "$as_dir" && as_dir=.
  2924. for ac_exec_ext in '' $ac_executable_extensions; do
  2925. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2926. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2927. ac_prog_rejected=yes
  2928. continue
  2929. fi
  2930. ac_cv_prog_CC="cc"
  2931. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2932. break 2
  2933. fi
  2934. done
  2935. done
  2936. IFS=$as_save_IFS
  2937. if test $ac_prog_rejected = yes; then
  2938. # We found a bogon in the path, so make sure we never use it.
  2939. set dummy $ac_cv_prog_CC
  2940. shift
  2941. if test $# != 0; then
  2942. # We chose a different compiler from the bogus one.
  2943. # However, it has the same basename, so the bogon will be chosen
  2944. # first if we set CC to just the basename; use the full file name.
  2945. shift
  2946. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2947. fi
  2948. fi
  2949. fi
  2950. fi
  2951. CC=$ac_cv_prog_CC
  2952. if test -n "$CC"; then
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2954. $as_echo "$CC" >&6; }
  2955. else
  2956. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2957. $as_echo "no" >&6; }
  2958. fi
  2959. fi
  2960. if test -z "$CC"; then
  2961. if test -n "$ac_tool_prefix"; then
  2962. for ac_prog in cl.exe
  2963. do
  2964. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2965. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2967. $as_echo_n "checking for $ac_word... " >&6; }
  2968. if ${ac_cv_prog_CC+:} false; then :
  2969. $as_echo_n "(cached) " >&6
  2970. else
  2971. if test -n "$CC"; then
  2972. ac_cv_prog_CC="$CC" # Let the user override the test.
  2973. else
  2974. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2975. for as_dir in $PATH
  2976. do
  2977. IFS=$as_save_IFS
  2978. test -z "$as_dir" && as_dir=.
  2979. for ac_exec_ext in '' $ac_executable_extensions; do
  2980. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2981. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2982. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2983. break 2
  2984. fi
  2985. done
  2986. done
  2987. IFS=$as_save_IFS
  2988. fi
  2989. fi
  2990. CC=$ac_cv_prog_CC
  2991. if test -n "$CC"; then
  2992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2993. $as_echo "$CC" >&6; }
  2994. else
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2996. $as_echo "no" >&6; }
  2997. fi
  2998. test -n "$CC" && break
  2999. done
  3000. fi
  3001. if test -z "$CC"; then
  3002. ac_ct_CC=$CC
  3003. for ac_prog in cl.exe
  3004. do
  3005. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3006. set dummy $ac_prog; ac_word=$2
  3007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3008. $as_echo_n "checking for $ac_word... " >&6; }
  3009. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3010. $as_echo_n "(cached) " >&6
  3011. else
  3012. if test -n "$ac_ct_CC"; then
  3013. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3014. else
  3015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3016. for as_dir in $PATH
  3017. do
  3018. IFS=$as_save_IFS
  3019. test -z "$as_dir" && as_dir=.
  3020. for ac_exec_ext in '' $ac_executable_extensions; do
  3021. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3022. ac_cv_prog_ac_ct_CC="$ac_prog"
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3024. break 2
  3025. fi
  3026. done
  3027. done
  3028. IFS=$as_save_IFS
  3029. fi
  3030. fi
  3031. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3032. if test -n "$ac_ct_CC"; then
  3033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3034. $as_echo "$ac_ct_CC" >&6; }
  3035. else
  3036. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3037. $as_echo "no" >&6; }
  3038. fi
  3039. test -n "$ac_ct_CC" && break
  3040. done
  3041. if test "x$ac_ct_CC" = x; then
  3042. CC=""
  3043. else
  3044. case $cross_compiling:$ac_tool_warned in
  3045. yes:)
  3046. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3047. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3048. ac_tool_warned=yes ;;
  3049. esac
  3050. CC=$ac_ct_CC
  3051. fi
  3052. fi
  3053. fi
  3054. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3055. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3056. as_fn_error $? "no acceptable C compiler found in \$PATH
  3057. See \`config.log' for more details" "$LINENO" 5; }
  3058. # Provide some information about the compiler.
  3059. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3060. set X $ac_compile
  3061. ac_compiler=$2
  3062. for ac_option in --version -v -V -qversion; do
  3063. { { ac_try="$ac_compiler $ac_option >&5"
  3064. case "(($ac_try" in
  3065. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3066. *) ac_try_echo=$ac_try;;
  3067. esac
  3068. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3069. $as_echo "$ac_try_echo"; } >&5
  3070. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3071. ac_status=$?
  3072. if test -s conftest.err; then
  3073. sed '10a\
  3074. ... rest of stderr output deleted ...
  3075. 10q' conftest.err >conftest.er1
  3076. cat conftest.er1 >&5
  3077. fi
  3078. rm -f conftest.er1 conftest.err
  3079. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3080. test $ac_status = 0; }
  3081. done
  3082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3083. /* end confdefs.h. */
  3084. #include <stdio.h>
  3085. int
  3086. main ()
  3087. {
  3088. printf ("hello world\n");
  3089. ;
  3090. return 0;
  3091. }
  3092. _ACEOF
  3093. # FIXME: Cleanup?
  3094. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  3095. (eval $ac_link) 2>&5
  3096. ac_status=$?
  3097. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3098. test $ac_status = 0; }; then :
  3099. gcc_no_link=no
  3100. else
  3101. gcc_no_link=yes
  3102. fi
  3103. if test x$gcc_no_link = xyes; then
  3104. # Setting cross_compile will disable run tests; it will
  3105. # also disable AC_CHECK_FILE but that's generally
  3106. # correct if we can't link.
  3107. cross_compiling=yes
  3108. EXEEXT=
  3109. else
  3110. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3111. /* end confdefs.h. */
  3112. int
  3113. main ()
  3114. {
  3115. ;
  3116. return 0;
  3117. }
  3118. _ACEOF
  3119. ac_clean_files_save=$ac_clean_files
  3120. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3121. # Try to create an executable without -o first, disregard a.out.
  3122. # It will help us diagnose broken compilers, and finding out an intuition
  3123. # of exeext.
  3124. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3125. $as_echo_n "checking whether the C compiler works... " >&6; }
  3126. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3127. # The possible output files:
  3128. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3129. ac_rmfiles=
  3130. for ac_file in $ac_files
  3131. do
  3132. case $ac_file in
  3133. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3134. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3135. esac
  3136. done
  3137. rm -f $ac_rmfiles
  3138. if { { ac_try="$ac_link_default"
  3139. case "(($ac_try" in
  3140. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3141. *) ac_try_echo=$ac_try;;
  3142. esac
  3143. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3144. $as_echo "$ac_try_echo"; } >&5
  3145. (eval "$ac_link_default") 2>&5
  3146. ac_status=$?
  3147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3148. test $ac_status = 0; }; then :
  3149. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3150. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3151. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3152. # so that the user can short-circuit this test for compilers unknown to
  3153. # Autoconf.
  3154. for ac_file in $ac_files ''
  3155. do
  3156. test -f "$ac_file" || continue
  3157. case $ac_file in
  3158. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3159. ;;
  3160. [ab].out )
  3161. # We found the default executable, but exeext='' is most
  3162. # certainly right.
  3163. break;;
  3164. *.* )
  3165. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3166. then :; else
  3167. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3168. fi
  3169. # We set ac_cv_exeext here because the later test for it is not
  3170. # safe: cross compilers may not add the suffix if given an `-o'
  3171. # argument, so we may need to know it at that point already.
  3172. # Even if this section looks crufty: it has the advantage of
  3173. # actually working.
  3174. break;;
  3175. * )
  3176. break;;
  3177. esac
  3178. done
  3179. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3180. else
  3181. ac_file=''
  3182. fi
  3183. if test -z "$ac_file"; then :
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3185. $as_echo "no" >&6; }
  3186. $as_echo "$as_me: failed program was:" >&5
  3187. sed 's/^/| /' conftest.$ac_ext >&5
  3188. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3189. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3190. as_fn_error 77 "C compiler cannot create executables
  3191. See \`config.log' for more details" "$LINENO" 5; }
  3192. else
  3193. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3194. $as_echo "yes" >&6; }
  3195. fi
  3196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3197. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3199. $as_echo "$ac_file" >&6; }
  3200. ac_exeext=$ac_cv_exeext
  3201. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3202. ac_clean_files=$ac_clean_files_save
  3203. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3204. $as_echo_n "checking for suffix of executables... " >&6; }
  3205. if { { ac_try="$ac_link"
  3206. case "(($ac_try" in
  3207. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3208. *) ac_try_echo=$ac_try;;
  3209. esac
  3210. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3211. $as_echo "$ac_try_echo"; } >&5
  3212. (eval "$ac_link") 2>&5
  3213. ac_status=$?
  3214. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3215. test $ac_status = 0; }; then :
  3216. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3217. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3218. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3219. # `rm'.
  3220. for ac_file in conftest.exe conftest conftest.*; do
  3221. test -f "$ac_file" || continue
  3222. case $ac_file in
  3223. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3224. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3225. break;;
  3226. * ) break;;
  3227. esac
  3228. done
  3229. else
  3230. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3232. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3233. See \`config.log' for more details" "$LINENO" 5; }
  3234. fi
  3235. rm -f conftest conftest$ac_cv_exeext
  3236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3237. $as_echo "$ac_cv_exeext" >&6; }
  3238. rm -f conftest.$ac_ext
  3239. EXEEXT=$ac_cv_exeext
  3240. ac_exeext=$EXEEXT
  3241. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3242. /* end confdefs.h. */
  3243. #include <stdio.h>
  3244. int
  3245. main ()
  3246. {
  3247. FILE *f = fopen ("conftest.out", "w");
  3248. return ferror (f) || fclose (f) != 0;
  3249. ;
  3250. return 0;
  3251. }
  3252. _ACEOF
  3253. ac_clean_files="$ac_clean_files conftest.out"
  3254. # Check that the compiler produces executables we can run. If not, either
  3255. # the compiler is broken, or we cross compile.
  3256. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3257. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3258. if test "$cross_compiling" != yes; then
  3259. { { ac_try="$ac_link"
  3260. case "(($ac_try" in
  3261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3262. *) ac_try_echo=$ac_try;;
  3263. esac
  3264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3265. $as_echo "$ac_try_echo"; } >&5
  3266. (eval "$ac_link") 2>&5
  3267. ac_status=$?
  3268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3269. test $ac_status = 0; }
  3270. if { ac_try='./conftest$ac_cv_exeext'
  3271. { { case "(($ac_try" in
  3272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3273. *) ac_try_echo=$ac_try;;
  3274. esac
  3275. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3276. $as_echo "$ac_try_echo"; } >&5
  3277. (eval "$ac_try") 2>&5
  3278. ac_status=$?
  3279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3280. test $ac_status = 0; }; }; then
  3281. cross_compiling=no
  3282. else
  3283. if test "$cross_compiling" = maybe; then
  3284. cross_compiling=yes
  3285. else
  3286. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3287. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3288. as_fn_error $? "cannot run C compiled programs.
  3289. If you meant to cross compile, use \`--host'.
  3290. See \`config.log' for more details" "$LINENO" 5; }
  3291. fi
  3292. fi
  3293. fi
  3294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3295. $as_echo "$cross_compiling" >&6; }
  3296. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3297. ac_clean_files=$ac_clean_files_save
  3298. fi
  3299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3300. $as_echo_n "checking for suffix of object files... " >&6; }
  3301. if ${ac_cv_objext+:} false; then :
  3302. $as_echo_n "(cached) " >&6
  3303. else
  3304. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3305. /* end confdefs.h. */
  3306. int
  3307. main ()
  3308. {
  3309. ;
  3310. return 0;
  3311. }
  3312. _ACEOF
  3313. rm -f conftest.o conftest.obj
  3314. if { { ac_try="$ac_compile"
  3315. case "(($ac_try" in
  3316. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3317. *) ac_try_echo=$ac_try;;
  3318. esac
  3319. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3320. $as_echo "$ac_try_echo"; } >&5
  3321. (eval "$ac_compile") 2>&5
  3322. ac_status=$?
  3323. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3324. test $ac_status = 0; }; then :
  3325. for ac_file in conftest.o conftest.obj conftest.*; do
  3326. test -f "$ac_file" || continue;
  3327. case $ac_file in
  3328. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3329. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3330. break;;
  3331. esac
  3332. done
  3333. else
  3334. $as_echo "$as_me: failed program was:" >&5
  3335. sed 's/^/| /' conftest.$ac_ext >&5
  3336. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3337. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3338. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3339. See \`config.log' for more details" "$LINENO" 5; }
  3340. fi
  3341. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3342. fi
  3343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3344. $as_echo "$ac_cv_objext" >&6; }
  3345. OBJEXT=$ac_cv_objext
  3346. ac_objext=$OBJEXT
  3347. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3348. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3349. if ${ac_cv_c_compiler_gnu+:} false; then :
  3350. $as_echo_n "(cached) " >&6
  3351. else
  3352. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3353. /* end confdefs.h. */
  3354. int
  3355. main ()
  3356. {
  3357. #ifndef __GNUC__
  3358. choke me
  3359. #endif
  3360. ;
  3361. return 0;
  3362. }
  3363. _ACEOF
  3364. if ac_fn_c_try_compile "$LINENO"; then :
  3365. ac_compiler_gnu=yes
  3366. else
  3367. ac_compiler_gnu=no
  3368. fi
  3369. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3370. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3371. fi
  3372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3373. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3374. if test $ac_compiler_gnu = yes; then
  3375. GCC=yes
  3376. else
  3377. GCC=
  3378. fi
  3379. ac_test_CFLAGS=${CFLAGS+set}
  3380. ac_save_CFLAGS=$CFLAGS
  3381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3382. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3383. if ${ac_cv_prog_cc_g+:} false; then :
  3384. $as_echo_n "(cached) " >&6
  3385. else
  3386. ac_save_c_werror_flag=$ac_c_werror_flag
  3387. ac_c_werror_flag=yes
  3388. ac_cv_prog_cc_g=no
  3389. CFLAGS="-g"
  3390. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3391. /* end confdefs.h. */
  3392. int
  3393. main ()
  3394. {
  3395. ;
  3396. return 0;
  3397. }
  3398. _ACEOF
  3399. if ac_fn_c_try_compile "$LINENO"; then :
  3400. ac_cv_prog_cc_g=yes
  3401. else
  3402. CFLAGS=""
  3403. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3404. /* end confdefs.h. */
  3405. int
  3406. main ()
  3407. {
  3408. ;
  3409. return 0;
  3410. }
  3411. _ACEOF
  3412. if ac_fn_c_try_compile "$LINENO"; then :
  3413. else
  3414. ac_c_werror_flag=$ac_save_c_werror_flag
  3415. CFLAGS="-g"
  3416. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3417. /* end confdefs.h. */
  3418. int
  3419. main ()
  3420. {
  3421. ;
  3422. return 0;
  3423. }
  3424. _ACEOF
  3425. if ac_fn_c_try_compile "$LINENO"; then :
  3426. ac_cv_prog_cc_g=yes
  3427. fi
  3428. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3429. fi
  3430. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3431. fi
  3432. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3433. ac_c_werror_flag=$ac_save_c_werror_flag
  3434. fi
  3435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3436. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3437. if test "$ac_test_CFLAGS" = set; then
  3438. CFLAGS=$ac_save_CFLAGS
  3439. elif test $ac_cv_prog_cc_g = yes; then
  3440. if test "$GCC" = yes; then
  3441. CFLAGS="-g -O2"
  3442. else
  3443. CFLAGS="-g"
  3444. fi
  3445. else
  3446. if test "$GCC" = yes; then
  3447. CFLAGS="-O2"
  3448. else
  3449. CFLAGS=
  3450. fi
  3451. fi
  3452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3453. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3454. if ${ac_cv_prog_cc_c89+:} false; then :
  3455. $as_echo_n "(cached) " >&6
  3456. else
  3457. ac_cv_prog_cc_c89=no
  3458. ac_save_CC=$CC
  3459. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3460. /* end confdefs.h. */
  3461. #include <stdarg.h>
  3462. #include <stdio.h>
  3463. struct stat;
  3464. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3465. struct buf { int x; };
  3466. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3467. static char *e (p, i)
  3468. char **p;
  3469. int i;
  3470. {
  3471. return p[i];
  3472. }
  3473. static char *f (char * (*g) (char **, int), char **p, ...)
  3474. {
  3475. char *s;
  3476. va_list v;
  3477. va_start (v,p);
  3478. s = g (p, va_arg (v,int));
  3479. va_end (v);
  3480. return s;
  3481. }
  3482. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3483. function prototypes and stuff, but not '\xHH' hex character constants.
  3484. These don't provoke an error unfortunately, instead are silently treated
  3485. as 'x'. The following induces an error, until -std is added to get
  3486. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3487. array size at least. It's necessary to write '\x00'==0 to get something
  3488. that's true only with -std. */
  3489. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3490. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3491. inside strings and character constants. */
  3492. #define FOO(x) 'x'
  3493. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3494. int test (int i, double x);
  3495. struct s1 {int (*f) (int a);};
  3496. struct s2 {int (*f) (double a);};
  3497. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3498. int argc;
  3499. char **argv;
  3500. int
  3501. main ()
  3502. {
  3503. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3509. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3510. do
  3511. CC="$ac_save_CC $ac_arg"
  3512. if ac_fn_c_try_compile "$LINENO"; then :
  3513. ac_cv_prog_cc_c89=$ac_arg
  3514. fi
  3515. rm -f core conftest.err conftest.$ac_objext
  3516. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3517. done
  3518. rm -f conftest.$ac_ext
  3519. CC=$ac_save_CC
  3520. fi
  3521. # AC_CACHE_VAL
  3522. case "x$ac_cv_prog_cc_c89" in
  3523. x)
  3524. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3525. $as_echo "none needed" >&6; } ;;
  3526. xno)
  3527. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3528. $as_echo "unsupported" >&6; } ;;
  3529. *)
  3530. CC="$CC $ac_cv_prog_cc_c89"
  3531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3532. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3533. esac
  3534. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3535. fi
  3536. ac_ext=c
  3537. ac_cpp='$CPP $CPPFLAGS'
  3538. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3539. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3540. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3541. ac_ext=c
  3542. ac_cpp='$CPP $CPPFLAGS'
  3543. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3544. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3545. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3547. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3548. if ${am_cv_prog_cc_c_o+:} false; then :
  3549. $as_echo_n "(cached) " >&6
  3550. else
  3551. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3552. /* end confdefs.h. */
  3553. int
  3554. main ()
  3555. {
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. # Make sure it works both with $CC and with simple cc.
  3561. # Following AC_PROG_CC_C_O, we do the test twice because some
  3562. # compilers refuse to overwrite an existing .o file with -o,
  3563. # though they will create one.
  3564. am_cv_prog_cc_c_o=yes
  3565. for am_i in 1 2; do
  3566. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3567. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3568. ac_status=$?
  3569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3570. (exit $ac_status); } \
  3571. && test -f conftest2.$ac_objext; then
  3572. : OK
  3573. else
  3574. am_cv_prog_cc_c_o=no
  3575. break
  3576. fi
  3577. done
  3578. rm -f core conftest*
  3579. unset am_i
  3580. fi
  3581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3582. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3583. if test "$am_cv_prog_cc_c_o" != yes; then
  3584. # Losing compiler, so override with the script.
  3585. # FIXME: It is wrong to rewrite CC.
  3586. # But if we don't then we get into trouble of one sort or another.
  3587. # A longer-term fix would be to have automake use am__CC in this case,
  3588. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3589. CC="$am_aux_dir/compile $CC"
  3590. fi
  3591. ac_ext=c
  3592. ac_cpp='$CPP $CPPFLAGS'
  3593. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3594. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3595. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3596. DEPDIR="${am__leading_dot}deps"
  3597. ac_config_commands="$ac_config_commands depfiles"
  3598. am_make=${MAKE-make}
  3599. cat > confinc << 'END'
  3600. am__doit:
  3601. @echo this is the am__doit target
  3602. .PHONY: am__doit
  3603. END
  3604. # If we don't find an include directive, just comment out the code.
  3605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3606. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3607. am__include="#"
  3608. am__quote=
  3609. _am_result=none
  3610. # First try GNU make style include.
  3611. echo "include confinc" > confmf
  3612. # Ignore all kinds of additional output from 'make'.
  3613. case `$am_make -s -f confmf 2> /dev/null` in #(
  3614. *the\ am__doit\ target*)
  3615. am__include=include
  3616. am__quote=
  3617. _am_result=GNU
  3618. ;;
  3619. esac
  3620. # Now try BSD make style include.
  3621. if test "$am__include" = "#"; then
  3622. echo '.include "confinc"' > confmf
  3623. case `$am_make -s -f confmf 2> /dev/null` in #(
  3624. *the\ am__doit\ target*)
  3625. am__include=.include
  3626. am__quote="\""
  3627. _am_result=BSD
  3628. ;;
  3629. esac
  3630. fi
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3632. $as_echo "$_am_result" >&6; }
  3633. rm -f confinc confmf
  3634. # Check whether --enable-dependency-tracking was given.
  3635. if test "${enable_dependency_tracking+set}" = set; then :
  3636. enableval=$enable_dependency_tracking;
  3637. fi
  3638. if test "x$enable_dependency_tracking" != xno; then
  3639. am_depcomp="$ac_aux_dir/depcomp"
  3640. AMDEPBACKSLASH='\'
  3641. am__nodep='_no'
  3642. fi
  3643. if test "x$enable_dependency_tracking" != xno; then
  3644. AMDEP_TRUE=
  3645. AMDEP_FALSE='#'
  3646. else
  3647. AMDEP_TRUE='#'
  3648. AMDEP_FALSE=
  3649. fi
  3650. depcc="$CC" am_compiler_list=
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3652. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3653. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3657. # We make a subdir and do the tests there. Otherwise we can end up
  3658. # making bogus files that we don't know about and never remove. For
  3659. # instance it was reported that on HP-UX the gcc test will end up
  3660. # making a dummy file named 'D' -- because '-MD' means "put the output
  3661. # in D".
  3662. rm -rf conftest.dir
  3663. mkdir conftest.dir
  3664. # Copy depcomp to subdir because otherwise we won't find it if we're
  3665. # using a relative directory.
  3666. cp "$am_depcomp" conftest.dir
  3667. cd conftest.dir
  3668. # We will build objects and dependencies in a subdirectory because
  3669. # it helps to detect inapplicable dependency modes. For instance
  3670. # both Tru64's cc and ICC support -MD to output dependencies as a
  3671. # side effect of compilation, but ICC will put the dependencies in
  3672. # the current directory while Tru64 will put them in the object
  3673. # directory.
  3674. mkdir sub
  3675. am_cv_CC_dependencies_compiler_type=none
  3676. if test "$am_compiler_list" = ""; then
  3677. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3678. fi
  3679. am__universal=false
  3680. case " $depcc " in #(
  3681. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3682. esac
  3683. for depmode in $am_compiler_list; do
  3684. # Setup a source with many dependencies, because some compilers
  3685. # like to wrap large dependency lists on column 80 (with \), and
  3686. # we should not choose a depcomp mode which is confused by this.
  3687. #
  3688. # We need to recreate these files for each test, as the compiler may
  3689. # overwrite some of them when testing with obscure command lines.
  3690. # This happens at least with the AIX C compiler.
  3691. : > sub/conftest.c
  3692. for i in 1 2 3 4 5 6; do
  3693. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3694. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3695. # Solaris 10 /bin/sh.
  3696. echo '/* dummy */' > sub/conftst$i.h
  3697. done
  3698. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3699. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3700. # mode. It turns out that the SunPro C++ compiler does not properly
  3701. # handle '-M -o', and we need to detect this. Also, some Intel
  3702. # versions had trouble with output in subdirs.
  3703. am__obj=sub/conftest.${OBJEXT-o}
  3704. am__minus_obj="-o $am__obj"
  3705. case $depmode in
  3706. gcc)
  3707. # This depmode causes a compiler race in universal mode.
  3708. test "$am__universal" = false || continue
  3709. ;;
  3710. nosideeffect)
  3711. # After this tag, mechanisms are not by side-effect, so they'll
  3712. # only be used when explicitly requested.
  3713. if test "x$enable_dependency_tracking" = xyes; then
  3714. continue
  3715. else
  3716. break
  3717. fi
  3718. ;;
  3719. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3720. # This compiler won't grok '-c -o', but also, the minuso test has
  3721. # not run yet. These depmodes are late enough in the game, and
  3722. # so weak that their functioning should not be impacted.
  3723. am__obj=conftest.${OBJEXT-o}
  3724. am__minus_obj=
  3725. ;;
  3726. none) break ;;
  3727. esac
  3728. if depmode=$depmode \
  3729. source=sub/conftest.c object=$am__obj \
  3730. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3731. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3732. >/dev/null 2>conftest.err &&
  3733. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3734. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3735. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3736. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3737. # icc doesn't choke on unknown options, it will just issue warnings
  3738. # or remarks (even with -Werror). So we grep stderr for any message
  3739. # that says an option was ignored or not supported.
  3740. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3741. # icc: Command line warning: ignoring option '-M'; no argument required
  3742. # The diagnosis changed in icc 8.0:
  3743. # icc: Command line remark: option '-MP' not supported
  3744. if (grep 'ignoring option' conftest.err ||
  3745. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3746. am_cv_CC_dependencies_compiler_type=$depmode
  3747. break
  3748. fi
  3749. fi
  3750. done
  3751. cd ..
  3752. rm -rf conftest.dir
  3753. else
  3754. am_cv_CC_dependencies_compiler_type=none
  3755. fi
  3756. fi
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3758. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3759. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3760. if
  3761. test "x$enable_dependency_tracking" != xno \
  3762. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3763. am__fastdepCC_TRUE=
  3764. am__fastdepCC_FALSE='#'
  3765. else
  3766. am__fastdepCC_TRUE='#'
  3767. am__fastdepCC_FALSE=
  3768. fi
  3769. case `pwd` in
  3770. *\ * | *\ *)
  3771. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3772. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3773. esac
  3774. macro_version='2.2.7a'
  3775. macro_revision='1.3134'
  3776. ltmain="$ac_aux_dir/ltmain.sh"
  3777. # Backslashify metacharacters that are still active within
  3778. # double-quoted strings.
  3779. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3780. # Same as above, but do not quote variable references.
  3781. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3782. # Sed substitution to delay expansion of an escaped shell variable in a
  3783. # double_quote_subst'ed string.
  3784. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3785. # Sed substitution to delay expansion of an escaped single quote.
  3786. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3787. # Sed substitution to avoid accidental globbing in evaled expressions
  3788. no_glob_subst='s/\*/\\\*/g'
  3789. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3790. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3791. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3793. $as_echo_n "checking how to print strings... " >&6; }
  3794. # Test print first, because it will be a builtin if present.
  3795. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  3796. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3797. ECHO='print -r --'
  3798. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3799. ECHO='printf %s\n'
  3800. else
  3801. # Use this function as a fallback that always works.
  3802. func_fallback_echo ()
  3803. {
  3804. eval 'cat <<_LTECHO_EOF
  3805. $1
  3806. _LTECHO_EOF'
  3807. }
  3808. ECHO='func_fallback_echo'
  3809. fi
  3810. # func_echo_all arg...
  3811. # Invoke $ECHO with all args, space-separated.
  3812. func_echo_all ()
  3813. {
  3814. $ECHO ""
  3815. }
  3816. case "$ECHO" in
  3817. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3818. $as_echo "printf" >&6; } ;;
  3819. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3820. $as_echo "print -r" >&6; } ;;
  3821. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3822. $as_echo "cat" >&6; } ;;
  3823. esac
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3825. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3826. if ${ac_cv_path_SED+:} false; then :
  3827. $as_echo_n "(cached) " >&6
  3828. else
  3829. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3830. for ac_i in 1 2 3 4 5 6 7; do
  3831. ac_script="$ac_script$as_nl$ac_script"
  3832. done
  3833. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3834. { ac_script=; unset ac_script;}
  3835. if test -z "$SED"; then
  3836. ac_path_SED_found=false
  3837. # Loop through the user's path and test for each of PROGNAME-LIST
  3838. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3839. for as_dir in $PATH
  3840. do
  3841. IFS=$as_save_IFS
  3842. test -z "$as_dir" && as_dir=.
  3843. for ac_prog in sed gsed; do
  3844. for ac_exec_ext in '' $ac_executable_extensions; do
  3845. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3846. as_fn_executable_p "$ac_path_SED" || continue
  3847. # Check for GNU ac_path_SED and select it if it is found.
  3848. # Check for GNU $ac_path_SED
  3849. case `"$ac_path_SED" --version 2>&1` in
  3850. *GNU*)
  3851. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3852. *)
  3853. ac_count=0
  3854. $as_echo_n 0123456789 >"conftest.in"
  3855. while :
  3856. do
  3857. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3858. mv "conftest.tmp" "conftest.in"
  3859. cp "conftest.in" "conftest.nl"
  3860. $as_echo '' >> "conftest.nl"
  3861. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3862. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3863. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3864. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3865. # Best one so far, save it but keep looking for a better one
  3866. ac_cv_path_SED="$ac_path_SED"
  3867. ac_path_SED_max=$ac_count
  3868. fi
  3869. # 10*(2^10) chars as input seems more than enough
  3870. test $ac_count -gt 10 && break
  3871. done
  3872. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3873. esac
  3874. $ac_path_SED_found && break 3
  3875. done
  3876. done
  3877. done
  3878. IFS=$as_save_IFS
  3879. if test -z "$ac_cv_path_SED"; then
  3880. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3881. fi
  3882. else
  3883. ac_cv_path_SED=$SED
  3884. fi
  3885. fi
  3886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3887. $as_echo "$ac_cv_path_SED" >&6; }
  3888. SED="$ac_cv_path_SED"
  3889. rm -f conftest.sed
  3890. test -z "$SED" && SED=sed
  3891. Xsed="$SED -e 1s/^X//"
  3892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3893. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3894. if ${ac_cv_path_GREP+:} false; then :
  3895. $as_echo_n "(cached) " >&6
  3896. else
  3897. if test -z "$GREP"; then
  3898. ac_path_GREP_found=false
  3899. # Loop through the user's path and test for each of PROGNAME-LIST
  3900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3901. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3902. do
  3903. IFS=$as_save_IFS
  3904. test -z "$as_dir" && as_dir=.
  3905. for ac_prog in grep ggrep; do
  3906. for ac_exec_ext in '' $ac_executable_extensions; do
  3907. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3908. as_fn_executable_p "$ac_path_GREP" || continue
  3909. # Check for GNU ac_path_GREP and select it if it is found.
  3910. # Check for GNU $ac_path_GREP
  3911. case `"$ac_path_GREP" --version 2>&1` in
  3912. *GNU*)
  3913. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3914. *)
  3915. ac_count=0
  3916. $as_echo_n 0123456789 >"conftest.in"
  3917. while :
  3918. do
  3919. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3920. mv "conftest.tmp" "conftest.in"
  3921. cp "conftest.in" "conftest.nl"
  3922. $as_echo 'GREP' >> "conftest.nl"
  3923. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3924. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3925. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3926. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3927. # Best one so far, save it but keep looking for a better one
  3928. ac_cv_path_GREP="$ac_path_GREP"
  3929. ac_path_GREP_max=$ac_count
  3930. fi
  3931. # 10*(2^10) chars as input seems more than enough
  3932. test $ac_count -gt 10 && break
  3933. done
  3934. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3935. esac
  3936. $ac_path_GREP_found && break 3
  3937. done
  3938. done
  3939. done
  3940. IFS=$as_save_IFS
  3941. if test -z "$ac_cv_path_GREP"; then
  3942. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3943. fi
  3944. else
  3945. ac_cv_path_GREP=$GREP
  3946. fi
  3947. fi
  3948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3949. $as_echo "$ac_cv_path_GREP" >&6; }
  3950. GREP="$ac_cv_path_GREP"
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3952. $as_echo_n "checking for egrep... " >&6; }
  3953. if ${ac_cv_path_EGREP+:} false; then :
  3954. $as_echo_n "(cached) " >&6
  3955. else
  3956. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3957. then ac_cv_path_EGREP="$GREP -E"
  3958. else
  3959. if test -z "$EGREP"; then
  3960. ac_path_EGREP_found=false
  3961. # Loop through the user's path and test for each of PROGNAME-LIST
  3962. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3963. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3964. do
  3965. IFS=$as_save_IFS
  3966. test -z "$as_dir" && as_dir=.
  3967. for ac_prog in egrep; do
  3968. for ac_exec_ext in '' $ac_executable_extensions; do
  3969. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3970. as_fn_executable_p "$ac_path_EGREP" || continue
  3971. # Check for GNU ac_path_EGREP and select it if it is found.
  3972. # Check for GNU $ac_path_EGREP
  3973. case `"$ac_path_EGREP" --version 2>&1` in
  3974. *GNU*)
  3975. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3976. *)
  3977. ac_count=0
  3978. $as_echo_n 0123456789 >"conftest.in"
  3979. while :
  3980. do
  3981. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3982. mv "conftest.tmp" "conftest.in"
  3983. cp "conftest.in" "conftest.nl"
  3984. $as_echo 'EGREP' >> "conftest.nl"
  3985. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3986. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3987. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3988. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3989. # Best one so far, save it but keep looking for a better one
  3990. ac_cv_path_EGREP="$ac_path_EGREP"
  3991. ac_path_EGREP_max=$ac_count
  3992. fi
  3993. # 10*(2^10) chars as input seems more than enough
  3994. test $ac_count -gt 10 && break
  3995. done
  3996. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3997. esac
  3998. $ac_path_EGREP_found && break 3
  3999. done
  4000. done
  4001. done
  4002. IFS=$as_save_IFS
  4003. if test -z "$ac_cv_path_EGREP"; then
  4004. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4005. fi
  4006. else
  4007. ac_cv_path_EGREP=$EGREP
  4008. fi
  4009. fi
  4010. fi
  4011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4012. $as_echo "$ac_cv_path_EGREP" >&6; }
  4013. EGREP="$ac_cv_path_EGREP"
  4014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4015. $as_echo_n "checking for fgrep... " >&6; }
  4016. if ${ac_cv_path_FGREP+:} false; then :
  4017. $as_echo_n "(cached) " >&6
  4018. else
  4019. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4020. then ac_cv_path_FGREP="$GREP -F"
  4021. else
  4022. if test -z "$FGREP"; then
  4023. ac_path_FGREP_found=false
  4024. # Loop through the user's path and test for each of PROGNAME-LIST
  4025. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4026. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4027. do
  4028. IFS=$as_save_IFS
  4029. test -z "$as_dir" && as_dir=.
  4030. for ac_prog in fgrep; do
  4031. for ac_exec_ext in '' $ac_executable_extensions; do
  4032. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4033. as_fn_executable_p "$ac_path_FGREP" || continue
  4034. # Check for GNU ac_path_FGREP and select it if it is found.
  4035. # Check for GNU $ac_path_FGREP
  4036. case `"$ac_path_FGREP" --version 2>&1` in
  4037. *GNU*)
  4038. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4039. *)
  4040. ac_count=0
  4041. $as_echo_n 0123456789 >"conftest.in"
  4042. while :
  4043. do
  4044. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4045. mv "conftest.tmp" "conftest.in"
  4046. cp "conftest.in" "conftest.nl"
  4047. $as_echo 'FGREP' >> "conftest.nl"
  4048. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4049. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4050. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4051. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4052. # Best one so far, save it but keep looking for a better one
  4053. ac_cv_path_FGREP="$ac_path_FGREP"
  4054. ac_path_FGREP_max=$ac_count
  4055. fi
  4056. # 10*(2^10) chars as input seems more than enough
  4057. test $ac_count -gt 10 && break
  4058. done
  4059. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4060. esac
  4061. $ac_path_FGREP_found && break 3
  4062. done
  4063. done
  4064. done
  4065. IFS=$as_save_IFS
  4066. if test -z "$ac_cv_path_FGREP"; then
  4067. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4068. fi
  4069. else
  4070. ac_cv_path_FGREP=$FGREP
  4071. fi
  4072. fi
  4073. fi
  4074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4075. $as_echo "$ac_cv_path_FGREP" >&6; }
  4076. FGREP="$ac_cv_path_FGREP"
  4077. test -z "$GREP" && GREP=grep
  4078. # Check whether --with-gnu-ld was given.
  4079. if test "${with_gnu_ld+set}" = set; then :
  4080. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4081. else
  4082. with_gnu_ld=no
  4083. fi
  4084. ac_prog=ld
  4085. if test "$GCC" = yes; then
  4086. # Check if gcc -print-prog-name=ld gives a path.
  4087. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4088. $as_echo_n "checking for ld used by $CC... " >&6; }
  4089. case $host in
  4090. *-*-mingw*)
  4091. # gcc leaves a trailing carriage return which upsets mingw
  4092. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4093. *)
  4094. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4095. esac
  4096. case $ac_prog in
  4097. # Accept absolute paths.
  4098. [\\/]* | ?:[\\/]*)
  4099. re_direlt='/[^/][^/]*/\.\./'
  4100. # Canonicalize the pathname of ld
  4101. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4102. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4103. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4104. done
  4105. test -z "$LD" && LD="$ac_prog"
  4106. ;;
  4107. "")
  4108. # If it fails, then pretend we aren't using GCC.
  4109. ac_prog=ld
  4110. ;;
  4111. *)
  4112. # If it is relative, then search for the first ld in PATH.
  4113. with_gnu_ld=unknown
  4114. ;;
  4115. esac
  4116. elif test "$with_gnu_ld" = yes; then
  4117. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4118. $as_echo_n "checking for GNU ld... " >&6; }
  4119. else
  4120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4121. $as_echo_n "checking for non-GNU ld... " >&6; }
  4122. fi
  4123. if ${lt_cv_path_LD+:} false; then :
  4124. $as_echo_n "(cached) " >&6
  4125. else
  4126. if test -z "$LD"; then
  4127. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4128. for ac_dir in $PATH; do
  4129. IFS="$lt_save_ifs"
  4130. test -z "$ac_dir" && ac_dir=.
  4131. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4132. lt_cv_path_LD="$ac_dir/$ac_prog"
  4133. # Check to see if the program is GNU ld. I'd rather use --version,
  4134. # but apparently some variants of GNU ld only accept -v.
  4135. # Break only if it was the GNU/non-GNU ld that we prefer.
  4136. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4137. *GNU* | *'with BFD'*)
  4138. test "$with_gnu_ld" != no && break
  4139. ;;
  4140. *)
  4141. test "$with_gnu_ld" != yes && break
  4142. ;;
  4143. esac
  4144. fi
  4145. done
  4146. IFS="$lt_save_ifs"
  4147. else
  4148. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4149. fi
  4150. fi
  4151. LD="$lt_cv_path_LD"
  4152. if test -n "$LD"; then
  4153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4154. $as_echo "$LD" >&6; }
  4155. else
  4156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4157. $as_echo "no" >&6; }
  4158. fi
  4159. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4161. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4162. if ${lt_cv_prog_gnu_ld+:} false; then :
  4163. $as_echo_n "(cached) " >&6
  4164. else
  4165. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4166. case `$LD -v 2>&1 </dev/null` in
  4167. *GNU* | *'with BFD'*)
  4168. lt_cv_prog_gnu_ld=yes
  4169. ;;
  4170. *)
  4171. lt_cv_prog_gnu_ld=no
  4172. ;;
  4173. esac
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4176. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4177. with_gnu_ld=$lt_cv_prog_gnu_ld
  4178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4179. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4180. if ${lt_cv_path_NM+:} false; then :
  4181. $as_echo_n "(cached) " >&6
  4182. else
  4183. if test -n "$NM"; then
  4184. # Let the user override the nm to test.
  4185. lt_nm_to_check="$NM"
  4186. else
  4187. lt_nm_to_check="${ac_tool_prefix}nm"
  4188. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4189. lt_nm_to_check="$lt_nm_to_check nm"
  4190. fi
  4191. fi
  4192. for lt_tmp_nm in "$lt_nm_to_check"; do
  4193. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4194. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4195. IFS="$lt_save_ifs"
  4196. test -z "$ac_dir" && ac_dir=.
  4197. # Strip out any user-provided options from the nm to test twice,
  4198. # the first time to test to see if nm (rather than its options) has
  4199. # an explicit path, the second time to yield a file which can be
  4200. # nm'ed itself.
  4201. tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
  4202. case "$tmp_nm_path" in
  4203. */*|*\\*) tmp_nm="$lt_tmp_nm";;
  4204. *) tmp_nm="$ac_dir/$lt_tmp_nm";;
  4205. esac
  4206. tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
  4207. if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
  4208. # Check to see if the nm accepts a BSD-compat flag.
  4209. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4210. # nm: unknown option "B" ignored
  4211. case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4212. *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
  4213. break
  4214. ;;
  4215. *)
  4216. case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
  4217. *$tmp_nm*)
  4218. lt_cv_path_NM="$tmp_nm -p"
  4219. break
  4220. ;;
  4221. *)
  4222. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4223. continue # so that we can try to find one that supports BSD flags
  4224. ;;
  4225. esac
  4226. ;;
  4227. esac
  4228. fi
  4229. done
  4230. IFS="$lt_save_ifs"
  4231. done
  4232. : ${lt_cv_path_NM=no}
  4233. fi
  4234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4235. $as_echo "$lt_cv_path_NM" >&6; }
  4236. if test "$lt_cv_path_NM" != "no"; then
  4237. NM="$lt_cv_path_NM"
  4238. else
  4239. # Didn't find any BSD compatible name lister, look for dumpbin.
  4240. if test -n "$DUMPBIN"; then :
  4241. # Let the user override the test.
  4242. else
  4243. if test -n "$ac_tool_prefix"; then
  4244. for ac_prog in dumpbin "link -dump"
  4245. do
  4246. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4247. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4249. $as_echo_n "checking for $ac_word... " >&6; }
  4250. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4251. $as_echo_n "(cached) " >&6
  4252. else
  4253. if test -n "$DUMPBIN"; then
  4254. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4255. else
  4256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4257. for as_dir in $PATH
  4258. do
  4259. IFS=$as_save_IFS
  4260. test -z "$as_dir" && as_dir=.
  4261. for ac_exec_ext in '' $ac_executable_extensions; do
  4262. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4263. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4264. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4265. break 2
  4266. fi
  4267. done
  4268. done
  4269. IFS=$as_save_IFS
  4270. fi
  4271. fi
  4272. DUMPBIN=$ac_cv_prog_DUMPBIN
  4273. if test -n "$DUMPBIN"; then
  4274. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4275. $as_echo "$DUMPBIN" >&6; }
  4276. else
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4278. $as_echo "no" >&6; }
  4279. fi
  4280. test -n "$DUMPBIN" && break
  4281. done
  4282. fi
  4283. if test -z "$DUMPBIN"; then
  4284. ac_ct_DUMPBIN=$DUMPBIN
  4285. for ac_prog in dumpbin "link -dump"
  4286. do
  4287. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4288. set dummy $ac_prog; ac_word=$2
  4289. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4290. $as_echo_n "checking for $ac_word... " >&6; }
  4291. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4292. $as_echo_n "(cached) " >&6
  4293. else
  4294. if test -n "$ac_ct_DUMPBIN"; then
  4295. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4296. else
  4297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4298. for as_dir in $PATH
  4299. do
  4300. IFS=$as_save_IFS
  4301. test -z "$as_dir" && as_dir=.
  4302. for ac_exec_ext in '' $ac_executable_extensions; do
  4303. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4304. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4305. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4306. break 2
  4307. fi
  4308. done
  4309. done
  4310. IFS=$as_save_IFS
  4311. fi
  4312. fi
  4313. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4314. if test -n "$ac_ct_DUMPBIN"; then
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4316. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4317. else
  4318. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4319. $as_echo "no" >&6; }
  4320. fi
  4321. test -n "$ac_ct_DUMPBIN" && break
  4322. done
  4323. if test "x$ac_ct_DUMPBIN" = x; then
  4324. DUMPBIN=":"
  4325. else
  4326. case $cross_compiling:$ac_tool_warned in
  4327. yes:)
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4329. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4330. ac_tool_warned=yes ;;
  4331. esac
  4332. DUMPBIN=$ac_ct_DUMPBIN
  4333. fi
  4334. fi
  4335. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4336. *COFF*)
  4337. DUMPBIN="$DUMPBIN -symbols"
  4338. ;;
  4339. *)
  4340. DUMPBIN=:
  4341. ;;
  4342. esac
  4343. fi
  4344. if test "$DUMPBIN" != ":"; then
  4345. NM="$DUMPBIN"
  4346. fi
  4347. fi
  4348. test -z "$NM" && NM=nm
  4349. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4350. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4351. if ${lt_cv_nm_interface+:} false; then :
  4352. $as_echo_n "(cached) " >&6
  4353. else
  4354. lt_cv_nm_interface="BSD nm"
  4355. echo "int some_variable = 0;" > conftest.$ac_ext
  4356. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4357. (eval "$ac_compile" 2>conftest.err)
  4358. cat conftest.err >&5
  4359. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4360. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4361. cat conftest.err >&5
  4362. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4363. cat conftest.out >&5
  4364. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4365. lt_cv_nm_interface="MS dumpbin"
  4366. fi
  4367. rm -f conftest*
  4368. fi
  4369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4370. $as_echo "$lt_cv_nm_interface" >&6; }
  4371. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4372. $as_echo_n "checking whether ln -s works... " >&6; }
  4373. LN_S=$as_ln_s
  4374. if test "$LN_S" = "ln -s"; then
  4375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4376. $as_echo "yes" >&6; }
  4377. else
  4378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4379. $as_echo "no, using $LN_S" >&6; }
  4380. fi
  4381. # find the maximum length of command line arguments
  4382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4383. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4384. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4385. $as_echo_n "(cached) " >&6
  4386. else
  4387. i=0
  4388. teststring="ABCD"
  4389. case $build_os in
  4390. msdosdjgpp*)
  4391. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4392. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4393. # during glob expansion). Even if it were fixed, the result of this
  4394. # check would be larger than it should be.
  4395. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4396. ;;
  4397. gnu*)
  4398. # Under GNU Hurd, this test is not required because there is
  4399. # no limit to the length of command line arguments.
  4400. # Libtool will interpret -1 as no limit whatsoever
  4401. lt_cv_sys_max_cmd_len=-1;
  4402. ;;
  4403. cygwin* | mingw* | cegcc*)
  4404. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4405. # about 5 minutes as the teststring grows exponentially.
  4406. # Worse, since 9x/ME are not pre-emptively multitasking,
  4407. # you end up with a "frozen" computer, even though with patience
  4408. # the test eventually succeeds (with a max line length of 256k).
  4409. # Instead, let's just punt: use the minimum linelength reported by
  4410. # all of the supported platforms: 8192 (on NT/2K/XP).
  4411. lt_cv_sys_max_cmd_len=8192;
  4412. ;;
  4413. mint*)
  4414. # On MiNT this can take a long time and run out of memory.
  4415. lt_cv_sys_max_cmd_len=8192;
  4416. ;;
  4417. amigaos*)
  4418. # On AmigaOS with pdksh, this test takes hours, literally.
  4419. # So we just punt and use a minimum line length of 8192.
  4420. lt_cv_sys_max_cmd_len=8192;
  4421. ;;
  4422. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4423. # This has been around since 386BSD, at least. Likely further.
  4424. if test -x /sbin/sysctl; then
  4425. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4426. elif test -x /usr/sbin/sysctl; then
  4427. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4428. else
  4429. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4430. fi
  4431. # And add a safety zone
  4432. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4433. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4434. ;;
  4435. interix*)
  4436. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4437. lt_cv_sys_max_cmd_len=196608
  4438. ;;
  4439. osf*)
  4440. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4441. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4442. # nice to cause kernel panics so lets avoid the loop below.
  4443. # First set a reasonable default.
  4444. lt_cv_sys_max_cmd_len=16384
  4445. #
  4446. if test -x /sbin/sysconfig; then
  4447. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4448. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4449. esac
  4450. fi
  4451. ;;
  4452. sco3.2v5*)
  4453. lt_cv_sys_max_cmd_len=102400
  4454. ;;
  4455. sysv5* | sco5v6* | sysv4.2uw2*)
  4456. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4457. if test -n "$kargmax"; then
  4458. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4459. else
  4460. lt_cv_sys_max_cmd_len=32768
  4461. fi
  4462. ;;
  4463. *)
  4464. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4465. if test -n "$lt_cv_sys_max_cmd_len"; then
  4466. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4467. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4468. else
  4469. # Make teststring a little bigger before we do anything with it.
  4470. # a 1K string should be a reasonable start.
  4471. for i in 1 2 3 4 5 6 7 8 ; do
  4472. teststring=$teststring$teststring
  4473. done
  4474. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4475. # If test is not a shell built-in, we'll probably end up computing a
  4476. # maximum length that is only half of the actual maximum length, but
  4477. # we can't tell.
  4478. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  4479. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4480. test $i != 17 # 1/2 MB should be enough
  4481. do
  4482. i=`expr $i + 1`
  4483. teststring=$teststring$teststring
  4484. done
  4485. # Only check the string length outside the loop.
  4486. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4487. teststring=
  4488. # Add a significant safety factor because C++ compilers can tack on
  4489. # massive amounts of additional arguments before passing them to the
  4490. # linker. It appears as though 1/2 is a usable value.
  4491. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4492. fi
  4493. ;;
  4494. esac
  4495. fi
  4496. if test -n $lt_cv_sys_max_cmd_len ; then
  4497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4498. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4499. else
  4500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4501. $as_echo "none" >&6; }
  4502. fi
  4503. max_cmd_len=$lt_cv_sys_max_cmd_len
  4504. : ${CP="cp -f"}
  4505. : ${MV="mv -f"}
  4506. : ${RM="rm -f"}
  4507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4508. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4509. # Try some XSI features
  4510. xsi_shell=no
  4511. ( _lt_dummy="a/b/c"
  4512. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  4513. = c,a/b,, \
  4514. && eval 'test $(( 1 + 1 )) -eq 2 \
  4515. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4516. && xsi_shell=yes
  4517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4518. $as_echo "$xsi_shell" >&6; }
  4519. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4520. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4521. lt_shell_append=no
  4522. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4523. >/dev/null 2>&1 \
  4524. && lt_shell_append=yes
  4525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4526. $as_echo "$lt_shell_append" >&6; }
  4527. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4528. lt_unset=unset
  4529. else
  4530. lt_unset=false
  4531. fi
  4532. # test EBCDIC or ASCII
  4533. case `echo X|tr X '\101'` in
  4534. A) # ASCII based system
  4535. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4536. lt_SP2NL='tr \040 \012'
  4537. lt_NL2SP='tr \015\012 \040\040'
  4538. ;;
  4539. *) # EBCDIC based system
  4540. lt_SP2NL='tr \100 \n'
  4541. lt_NL2SP='tr \r\n \100\100'
  4542. ;;
  4543. esac
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4545. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4546. if ${lt_cv_ld_reload_flag+:} false; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. lt_cv_ld_reload_flag='-r'
  4550. fi
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4552. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4553. reload_flag=$lt_cv_ld_reload_flag
  4554. case $reload_flag in
  4555. "" | " "*) ;;
  4556. *) reload_flag=" $reload_flag" ;;
  4557. esac
  4558. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4559. case $host_os in
  4560. darwin*)
  4561. if test "$GCC" = yes; then
  4562. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4563. else
  4564. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4565. fi
  4566. ;;
  4567. esac
  4568. if test -n "$ac_tool_prefix"; then
  4569. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4570. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4572. $as_echo_n "checking for $ac_word... " >&6; }
  4573. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4574. $as_echo_n "(cached) " >&6
  4575. else
  4576. if test -n "$OBJDUMP"; then
  4577. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4578. else
  4579. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4580. for as_dir in $PATH
  4581. do
  4582. IFS=$as_save_IFS
  4583. test -z "$as_dir" && as_dir=.
  4584. for ac_exec_ext in '' $ac_executable_extensions; do
  4585. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4586. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4587. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4588. break 2
  4589. fi
  4590. done
  4591. done
  4592. IFS=$as_save_IFS
  4593. fi
  4594. fi
  4595. OBJDUMP=$ac_cv_prog_OBJDUMP
  4596. if test -n "$OBJDUMP"; then
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4598. $as_echo "$OBJDUMP" >&6; }
  4599. else
  4600. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4601. $as_echo "no" >&6; }
  4602. fi
  4603. fi
  4604. if test -z "$ac_cv_prog_OBJDUMP"; then
  4605. ac_ct_OBJDUMP=$OBJDUMP
  4606. # Extract the first word of "objdump", so it can be a program name with args.
  4607. set dummy objdump; ac_word=$2
  4608. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4609. $as_echo_n "checking for $ac_word... " >&6; }
  4610. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4611. $as_echo_n "(cached) " >&6
  4612. else
  4613. if test -n "$ac_ct_OBJDUMP"; then
  4614. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4615. else
  4616. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4617. for as_dir in $PATH
  4618. do
  4619. IFS=$as_save_IFS
  4620. test -z "$as_dir" && as_dir=.
  4621. for ac_exec_ext in '' $ac_executable_extensions; do
  4622. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4623. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4624. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4625. break 2
  4626. fi
  4627. done
  4628. done
  4629. IFS=$as_save_IFS
  4630. fi
  4631. fi
  4632. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4633. if test -n "$ac_ct_OBJDUMP"; then
  4634. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4635. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4636. else
  4637. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4638. $as_echo "no" >&6; }
  4639. fi
  4640. if test "x$ac_ct_OBJDUMP" = x; then
  4641. OBJDUMP="false"
  4642. else
  4643. case $cross_compiling:$ac_tool_warned in
  4644. yes:)
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4646. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4647. ac_tool_warned=yes ;;
  4648. esac
  4649. OBJDUMP=$ac_ct_OBJDUMP
  4650. fi
  4651. else
  4652. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4653. fi
  4654. test -z "$OBJDUMP" && OBJDUMP=objdump
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4656. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4657. if ${lt_cv_deplibs_check_method+:} false; then :
  4658. $as_echo_n "(cached) " >&6
  4659. else
  4660. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4661. lt_cv_file_magic_test_file=
  4662. lt_cv_deplibs_check_method='unknown'
  4663. # Need to set the preceding variable on all platforms that support
  4664. # interlibrary dependencies.
  4665. # 'none' -- dependencies not supported.
  4666. # `unknown' -- same as none, but documents that we really don't know.
  4667. # 'pass_all' -- all dependencies passed with no checks.
  4668. # 'test_compile' -- check by making test program.
  4669. # 'file_magic [[regex]]' -- check by looking for files in library path
  4670. # which responds to the $file_magic_cmd with a given extended regex.
  4671. # If you have `file' or equivalent on your system and you're not sure
  4672. # whether `pass_all' will *always* work, you probably want this one.
  4673. case $host_os in
  4674. aix[4-9]*)
  4675. lt_cv_deplibs_check_method=pass_all
  4676. ;;
  4677. beos*)
  4678. lt_cv_deplibs_check_method=pass_all
  4679. ;;
  4680. bsdi[45]*)
  4681. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4682. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4683. lt_cv_file_magic_test_file=/shlib/libc.so
  4684. ;;
  4685. cygwin*)
  4686. # func_win32_libid is a shell function defined in ltmain.sh
  4687. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4688. lt_cv_file_magic_cmd='func_win32_libid'
  4689. ;;
  4690. mingw* | pw32*)
  4691. # Base MSYS/MinGW do not provide the 'file' command needed by
  4692. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4693. # unless we find 'file', for example because we are cross-compiling.
  4694. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4695. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4696. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4697. lt_cv_file_magic_cmd='func_win32_libid'
  4698. else
  4699. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4700. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4701. fi
  4702. ;;
  4703. cegcc*)
  4704. # use the weaker test based on 'objdump'. See mingw*.
  4705. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4706. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4707. ;;
  4708. darwin* | rhapsody*)
  4709. lt_cv_deplibs_check_method=pass_all
  4710. ;;
  4711. freebsd* | dragonfly*)
  4712. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4713. case $host_cpu in
  4714. i*86 )
  4715. # Not sure whether the presence of OpenBSD here was a mistake.
  4716. # Let's accept both of them until this is cleared up.
  4717. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4718. lt_cv_file_magic_cmd=/usr/bin/file
  4719. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4720. ;;
  4721. esac
  4722. else
  4723. lt_cv_deplibs_check_method=pass_all
  4724. fi
  4725. ;;
  4726. gnu*)
  4727. lt_cv_deplibs_check_method=pass_all
  4728. ;;
  4729. haiku*)
  4730. lt_cv_deplibs_check_method=pass_all
  4731. ;;
  4732. hpux10.20* | hpux11*)
  4733. lt_cv_file_magic_cmd=/usr/bin/file
  4734. case $host_cpu in
  4735. ia64*)
  4736. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4737. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4738. ;;
  4739. hppa*64*)
  4740. 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]'
  4741. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4742. ;;
  4743. *)
  4744. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4745. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4746. ;;
  4747. esac
  4748. ;;
  4749. interix[3-9]*)
  4750. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4751. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4752. ;;
  4753. irix5* | irix6* | nonstopux*)
  4754. case $LD in
  4755. *-32|*"-32 ") libmagic=32-bit;;
  4756. *-n32|*"-n32 ") libmagic=N32;;
  4757. *-64|*"-64 ") libmagic=64-bit;;
  4758. *) libmagic=never-match;;
  4759. esac
  4760. lt_cv_deplibs_check_method=pass_all
  4761. ;;
  4762. # This must be Linux ELF.
  4763. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4764. lt_cv_deplibs_check_method=pass_all
  4765. ;;
  4766. netbsd*)
  4767. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4768. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4769. else
  4770. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4771. fi
  4772. ;;
  4773. newos6*)
  4774. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4775. lt_cv_file_magic_cmd=/usr/bin/file
  4776. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4777. ;;
  4778. *nto* | *qnx*)
  4779. lt_cv_deplibs_check_method=pass_all
  4780. ;;
  4781. openbsd*)
  4782. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4783. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4784. else
  4785. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4786. fi
  4787. ;;
  4788. osf3* | osf4* | osf5*)
  4789. lt_cv_deplibs_check_method=pass_all
  4790. ;;
  4791. rdos*)
  4792. lt_cv_deplibs_check_method=pass_all
  4793. ;;
  4794. solaris*)
  4795. lt_cv_deplibs_check_method=pass_all
  4796. ;;
  4797. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4798. lt_cv_deplibs_check_method=pass_all
  4799. ;;
  4800. sysv4 | sysv4.3*)
  4801. case $host_vendor in
  4802. motorola)
  4803. 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]'
  4804. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4805. ;;
  4806. ncr)
  4807. lt_cv_deplibs_check_method=pass_all
  4808. ;;
  4809. sequent)
  4810. lt_cv_file_magic_cmd='/bin/file'
  4811. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4812. ;;
  4813. sni)
  4814. lt_cv_file_magic_cmd='/bin/file'
  4815. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4816. lt_cv_file_magic_test_file=/lib/libc.so
  4817. ;;
  4818. siemens)
  4819. lt_cv_deplibs_check_method=pass_all
  4820. ;;
  4821. pc)
  4822. lt_cv_deplibs_check_method=pass_all
  4823. ;;
  4824. esac
  4825. ;;
  4826. tpf*)
  4827. lt_cv_deplibs_check_method=pass_all
  4828. ;;
  4829. esac
  4830. fi
  4831. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4832. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4833. file_magic_cmd=$lt_cv_file_magic_cmd
  4834. deplibs_check_method=$lt_cv_deplibs_check_method
  4835. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4836. plugin_option=
  4837. plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
  4838. for plugin in $plugin_names; do
  4839. plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
  4840. if test x$plugin_so = x$plugin; then
  4841. plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
  4842. fi
  4843. if test x$plugin_so != x$plugin; then
  4844. plugin_option="--plugin $plugin_so"
  4845. break
  4846. fi
  4847. done
  4848. if test -n "$ac_tool_prefix"; then
  4849. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  4850. set dummy ${ac_tool_prefix}ar; ac_word=$2
  4851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4852. $as_echo_n "checking for $ac_word... " >&6; }
  4853. if ${ac_cv_prog_AR+:} false; then :
  4854. $as_echo_n "(cached) " >&6
  4855. else
  4856. if test -n "$AR"; then
  4857. ac_cv_prog_AR="$AR" # Let the user override the test.
  4858. else
  4859. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4860. for as_dir in $PATH
  4861. do
  4862. IFS=$as_save_IFS
  4863. test -z "$as_dir" && as_dir=.
  4864. for ac_exec_ext in '' $ac_executable_extensions; do
  4865. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4866. ac_cv_prog_AR="${ac_tool_prefix}ar"
  4867. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4868. break 2
  4869. fi
  4870. done
  4871. done
  4872. IFS=$as_save_IFS
  4873. fi
  4874. fi
  4875. AR=$ac_cv_prog_AR
  4876. if test -n "$AR"; then
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4878. $as_echo "$AR" >&6; }
  4879. else
  4880. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4881. $as_echo "no" >&6; }
  4882. fi
  4883. fi
  4884. if test -z "$ac_cv_prog_AR"; then
  4885. ac_ct_AR=$AR
  4886. # Extract the first word of "ar", so it can be a program name with args.
  4887. set dummy ar; ac_word=$2
  4888. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4889. $as_echo_n "checking for $ac_word... " >&6; }
  4890. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4891. $as_echo_n "(cached) " >&6
  4892. else
  4893. if test -n "$ac_ct_AR"; then
  4894. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4895. else
  4896. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4897. for as_dir in $PATH
  4898. do
  4899. IFS=$as_save_IFS
  4900. test -z "$as_dir" && as_dir=.
  4901. for ac_exec_ext in '' $ac_executable_extensions; do
  4902. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4903. ac_cv_prog_ac_ct_AR="ar"
  4904. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4905. break 2
  4906. fi
  4907. done
  4908. done
  4909. IFS=$as_save_IFS
  4910. fi
  4911. fi
  4912. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4913. if test -n "$ac_ct_AR"; then
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4915. $as_echo "$ac_ct_AR" >&6; }
  4916. else
  4917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4918. $as_echo "no" >&6; }
  4919. fi
  4920. if test "x$ac_ct_AR" = x; then
  4921. AR="false"
  4922. else
  4923. case $cross_compiling:$ac_tool_warned in
  4924. yes:)
  4925. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4926. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4927. ac_tool_warned=yes ;;
  4928. esac
  4929. AR=$ac_ct_AR
  4930. fi
  4931. else
  4932. AR="$ac_cv_prog_AR"
  4933. fi
  4934. test -z "$AR" && AR=ar
  4935. if test -n "$plugin_option"; then
  4936. if $AR --help 2>&1 | grep -q "\--plugin"; then
  4937. touch conftest.c
  4938. $AR $plugin_option rc conftest.a conftest.c
  4939. if test "$?" != 0; then
  4940. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
  4941. $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
  4942. else
  4943. AR="$AR $plugin_option"
  4944. fi
  4945. rm -f conftest.*
  4946. fi
  4947. fi
  4948. test -z "$AR_FLAGS" && AR_FLAGS=cru
  4949. if test -n "$ac_tool_prefix"; then
  4950. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4951. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4952. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4953. $as_echo_n "checking for $ac_word... " >&6; }
  4954. if ${ac_cv_prog_STRIP+:} false; then :
  4955. $as_echo_n "(cached) " >&6
  4956. else
  4957. if test -n "$STRIP"; then
  4958. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4959. else
  4960. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4961. for as_dir in $PATH
  4962. do
  4963. IFS=$as_save_IFS
  4964. test -z "$as_dir" && as_dir=.
  4965. for ac_exec_ext in '' $ac_executable_extensions; do
  4966. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4967. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4968. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4969. break 2
  4970. fi
  4971. done
  4972. done
  4973. IFS=$as_save_IFS
  4974. fi
  4975. fi
  4976. STRIP=$ac_cv_prog_STRIP
  4977. if test -n "$STRIP"; then
  4978. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4979. $as_echo "$STRIP" >&6; }
  4980. else
  4981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4982. $as_echo "no" >&6; }
  4983. fi
  4984. fi
  4985. if test -z "$ac_cv_prog_STRIP"; then
  4986. ac_ct_STRIP=$STRIP
  4987. # Extract the first word of "strip", so it can be a program name with args.
  4988. set dummy strip; ac_word=$2
  4989. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4990. $as_echo_n "checking for $ac_word... " >&6; }
  4991. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4992. $as_echo_n "(cached) " >&6
  4993. else
  4994. if test -n "$ac_ct_STRIP"; then
  4995. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4996. else
  4997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4998. for as_dir in $PATH
  4999. do
  5000. IFS=$as_save_IFS
  5001. test -z "$as_dir" && as_dir=.
  5002. for ac_exec_ext in '' $ac_executable_extensions; do
  5003. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5004. ac_cv_prog_ac_ct_STRIP="strip"
  5005. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5006. break 2
  5007. fi
  5008. done
  5009. done
  5010. IFS=$as_save_IFS
  5011. fi
  5012. fi
  5013. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5014. if test -n "$ac_ct_STRIP"; then
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5016. $as_echo "$ac_ct_STRIP" >&6; }
  5017. else
  5018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5019. $as_echo "no" >&6; }
  5020. fi
  5021. if test "x$ac_ct_STRIP" = x; then
  5022. STRIP=":"
  5023. else
  5024. case $cross_compiling:$ac_tool_warned in
  5025. yes:)
  5026. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5027. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5028. ac_tool_warned=yes ;;
  5029. esac
  5030. STRIP=$ac_ct_STRIP
  5031. fi
  5032. else
  5033. STRIP="$ac_cv_prog_STRIP"
  5034. fi
  5035. test -z "$STRIP" && STRIP=:
  5036. if test -n "$ac_tool_prefix"; then
  5037. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5038. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5039. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5040. $as_echo_n "checking for $ac_word... " >&6; }
  5041. if ${ac_cv_prog_RANLIB+:} false; then :
  5042. $as_echo_n "(cached) " >&6
  5043. else
  5044. if test -n "$RANLIB"; then
  5045. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5046. else
  5047. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5048. for as_dir in $PATH
  5049. do
  5050. IFS=$as_save_IFS
  5051. test -z "$as_dir" && as_dir=.
  5052. for ac_exec_ext in '' $ac_executable_extensions; do
  5053. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5054. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5055. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5056. break 2
  5057. fi
  5058. done
  5059. done
  5060. IFS=$as_save_IFS
  5061. fi
  5062. fi
  5063. RANLIB=$ac_cv_prog_RANLIB
  5064. if test -n "$RANLIB"; then
  5065. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5066. $as_echo "$RANLIB" >&6; }
  5067. else
  5068. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5069. $as_echo "no" >&6; }
  5070. fi
  5071. fi
  5072. if test -z "$ac_cv_prog_RANLIB"; then
  5073. ac_ct_RANLIB=$RANLIB
  5074. # Extract the first word of "ranlib", so it can be a program name with args.
  5075. set dummy ranlib; ac_word=$2
  5076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5077. $as_echo_n "checking for $ac_word... " >&6; }
  5078. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5079. $as_echo_n "(cached) " >&6
  5080. else
  5081. if test -n "$ac_ct_RANLIB"; then
  5082. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5083. else
  5084. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5085. for as_dir in $PATH
  5086. do
  5087. IFS=$as_save_IFS
  5088. test -z "$as_dir" && as_dir=.
  5089. for ac_exec_ext in '' $ac_executable_extensions; do
  5090. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5091. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5092. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5093. break 2
  5094. fi
  5095. done
  5096. done
  5097. IFS=$as_save_IFS
  5098. fi
  5099. fi
  5100. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5101. if test -n "$ac_ct_RANLIB"; then
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5103. $as_echo "$ac_ct_RANLIB" >&6; }
  5104. else
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5106. $as_echo "no" >&6; }
  5107. fi
  5108. if test "x$ac_ct_RANLIB" = x; then
  5109. RANLIB=":"
  5110. else
  5111. case $cross_compiling:$ac_tool_warned in
  5112. yes:)
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5114. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5115. ac_tool_warned=yes ;;
  5116. esac
  5117. RANLIB=$ac_ct_RANLIB
  5118. fi
  5119. else
  5120. RANLIB="$ac_cv_prog_RANLIB"
  5121. fi
  5122. test -z "$RANLIB" && RANLIB=:
  5123. if test -n "$plugin_option" && test "$RANLIB" != ":"; then
  5124. if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
  5125. RANLIB="$RANLIB $plugin_option"
  5126. fi
  5127. fi
  5128. # Determine commands to create old-style static archives.
  5129. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5130. old_postinstall_cmds='chmod 644 $oldlib'
  5131. old_postuninstall_cmds=
  5132. if test -n "$RANLIB"; then
  5133. case $host_os in
  5134. openbsd*)
  5135. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  5136. ;;
  5137. *)
  5138. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  5139. ;;
  5140. esac
  5141. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  5142. fi
  5143. case $host_os in
  5144. darwin*)
  5145. lock_old_archive_extraction=yes ;;
  5146. *)
  5147. lock_old_archive_extraction=no ;;
  5148. esac
  5149. # If no C compiler was specified, use CC.
  5150. LTCC=${LTCC-"$CC"}
  5151. # If no C compiler flags were specified, use CFLAGS.
  5152. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5153. # Allow CC to be a program name with arguments.
  5154. compiler=$CC
  5155. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5157. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5158. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5159. $as_echo_n "(cached) " >&6
  5160. else
  5161. # These are sane defaults that work on at least a few old systems.
  5162. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5163. # Character class describing NM global symbol codes.
  5164. symcode='[BCDEGRST]'
  5165. # Regexp to match symbols that can be accessed directly from C.
  5166. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5167. # Define system-specific variables.
  5168. case $host_os in
  5169. aix*)
  5170. symcode='[BCDT]'
  5171. ;;
  5172. cygwin* | mingw* | pw32* | cegcc*)
  5173. symcode='[ABCDGISTW]'
  5174. ;;
  5175. hpux*)
  5176. if test "$host_cpu" = ia64; then
  5177. symcode='[ABCDEGRST]'
  5178. fi
  5179. ;;
  5180. irix* | nonstopux*)
  5181. symcode='[BCDEGRST]'
  5182. ;;
  5183. osf*)
  5184. symcode='[BCDEGQRST]'
  5185. ;;
  5186. solaris*)
  5187. symcode='[BCDRT]'
  5188. ;;
  5189. sco3.2v5*)
  5190. symcode='[DT]'
  5191. ;;
  5192. sysv4.2uw2*)
  5193. symcode='[DT]'
  5194. ;;
  5195. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5196. symcode='[ABDT]'
  5197. ;;
  5198. sysv4)
  5199. symcode='[DFNSTU]'
  5200. ;;
  5201. esac
  5202. # If we're using GNU nm, then use its standard symbol codes.
  5203. case `$NM -V 2>&1` in
  5204. *GNU* | *'with BFD'*)
  5205. symcode='[ABCDGIRSTW]' ;;
  5206. esac
  5207. # Transform an extracted symbol line into a proper C declaration.
  5208. # Some systems (esp. on ia64) link data and code symbols differently,
  5209. # so use this general approach.
  5210. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5211. # Transform an extracted symbol line into symbol name and symbol address
  5212. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5213. 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'"
  5214. # Handle CRLF in mingw tool chain
  5215. opt_cr=
  5216. case $build_os in
  5217. mingw*)
  5218. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5219. ;;
  5220. esac
  5221. # Try without a prefix underscore, then with it.
  5222. for ac_symprfx in "" "_"; do
  5223. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5224. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5225. # Write the raw and C identifiers.
  5226. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5227. # Fake it for dumpbin and say T for any non-static function
  5228. # and D for any global variable.
  5229. # Also find C++ and __fastcall symbols from MSVC++,
  5230. # which start with @ or ?.
  5231. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5232. " {last_section=section; section=\$ 3};"\
  5233. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5234. " \$ 0!~/External *\|/{next};"\
  5235. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5236. " {if(hide[section]) next};"\
  5237. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5238. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5239. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5240. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5241. " ' prfx=^$ac_symprfx"
  5242. else
  5243. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5244. fi
  5245. # Check to see that the pipe works correctly.
  5246. pipe_works=no
  5247. rm -f conftest*
  5248. cat > conftest.$ac_ext <<_LT_EOF
  5249. #ifdef __cplusplus
  5250. extern "C" {
  5251. #endif
  5252. char nm_test_var;
  5253. void nm_test_func(void);
  5254. void nm_test_func(void){}
  5255. #ifdef __cplusplus
  5256. }
  5257. #endif
  5258. int main(){nm_test_var='a';nm_test_func();return(0);}
  5259. _LT_EOF
  5260. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5261. (eval $ac_compile) 2>&5
  5262. ac_status=$?
  5263. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5264. test $ac_status = 0; }; then
  5265. # Now try to grab the symbols.
  5266. nlist=conftest.nm
  5267. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5268. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5269. ac_status=$?
  5270. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5271. test $ac_status = 0; } && test -s "$nlist"; then
  5272. # Try sorting and uniquifying the output.
  5273. if sort "$nlist" | uniq > "$nlist"T; then
  5274. mv -f "$nlist"T "$nlist"
  5275. else
  5276. rm -f "$nlist"T
  5277. fi
  5278. # Make sure that we snagged all the symbols we need.
  5279. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5280. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5281. cat <<_LT_EOF > conftest.$ac_ext
  5282. #ifdef __cplusplus
  5283. extern "C" {
  5284. #endif
  5285. _LT_EOF
  5286. # Now generate the symbol file.
  5287. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5288. cat <<_LT_EOF >> conftest.$ac_ext
  5289. /* The mapping between symbol names and symbols. */
  5290. const struct {
  5291. const char *name;
  5292. void *address;
  5293. }
  5294. lt__PROGRAM__LTX_preloaded_symbols[] =
  5295. {
  5296. { "@PROGRAM@", (void *) 0 },
  5297. _LT_EOF
  5298. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5299. cat <<\_LT_EOF >> conftest.$ac_ext
  5300. {0, (void *) 0}
  5301. };
  5302. /* This works around a problem in FreeBSD linker */
  5303. #ifdef FREEBSD_WORKAROUND
  5304. static const void *lt_preloaded_setup() {
  5305. return lt__PROGRAM__LTX_preloaded_symbols;
  5306. }
  5307. #endif
  5308. #ifdef __cplusplus
  5309. }
  5310. #endif
  5311. _LT_EOF
  5312. # Now try linking the two files.
  5313. mv conftest.$ac_objext conftstm.$ac_objext
  5314. lt_save_LIBS="$LIBS"
  5315. lt_save_CFLAGS="$CFLAGS"
  5316. LIBS="conftstm.$ac_objext"
  5317. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5318. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5319. (eval $ac_link) 2>&5
  5320. ac_status=$?
  5321. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5322. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5323. pipe_works=yes
  5324. fi
  5325. LIBS="$lt_save_LIBS"
  5326. CFLAGS="$lt_save_CFLAGS"
  5327. else
  5328. echo "cannot find nm_test_func in $nlist" >&5
  5329. fi
  5330. else
  5331. echo "cannot find nm_test_var in $nlist" >&5
  5332. fi
  5333. else
  5334. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5335. fi
  5336. else
  5337. echo "$progname: failed program was:" >&5
  5338. cat conftest.$ac_ext >&5
  5339. fi
  5340. rm -rf conftest* conftst*
  5341. # Do not use the global_symbol_pipe unless it works.
  5342. if test "$pipe_works" = yes; then
  5343. break
  5344. else
  5345. lt_cv_sys_global_symbol_pipe=
  5346. fi
  5347. done
  5348. fi
  5349. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5350. lt_cv_sys_global_symbol_to_cdecl=
  5351. fi
  5352. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5354. $as_echo "failed" >&6; }
  5355. else
  5356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5357. $as_echo "ok" >&6; }
  5358. fi
  5359. # Check whether --enable-libtool-lock was given.
  5360. if test "${enable_libtool_lock+set}" = set; then :
  5361. enableval=$enable_libtool_lock;
  5362. fi
  5363. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5364. # Some flags need to be propagated to the compiler or linker for good
  5365. # libtool support.
  5366. case $host in
  5367. ia64-*-hpux*)
  5368. # Find out which ABI we are using.
  5369. echo 'int i;' > conftest.$ac_ext
  5370. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5371. (eval $ac_compile) 2>&5
  5372. ac_status=$?
  5373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5374. test $ac_status = 0; }; then
  5375. case `/usr/bin/file conftest.$ac_objext` in
  5376. *ELF-32*)
  5377. HPUX_IA64_MODE="32"
  5378. ;;
  5379. *ELF-64*)
  5380. HPUX_IA64_MODE="64"
  5381. ;;
  5382. esac
  5383. fi
  5384. rm -rf conftest*
  5385. ;;
  5386. *-*-irix6*)
  5387. # Find out which ABI we are using.
  5388. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5389. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5390. (eval $ac_compile) 2>&5
  5391. ac_status=$?
  5392. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5393. test $ac_status = 0; }; then
  5394. if test "$lt_cv_prog_gnu_ld" = yes; then
  5395. case `/usr/bin/file conftest.$ac_objext` in
  5396. *32-bit*)
  5397. LD="${LD-ld} -melf32bsmip"
  5398. ;;
  5399. *N32*)
  5400. LD="${LD-ld} -melf32bmipn32"
  5401. ;;
  5402. *64-bit*)
  5403. LD="${LD-ld} -melf64bmip"
  5404. ;;
  5405. esac
  5406. else
  5407. case `/usr/bin/file conftest.$ac_objext` in
  5408. *32-bit*)
  5409. LD="${LD-ld} -32"
  5410. ;;
  5411. *N32*)
  5412. LD="${LD-ld} -n32"
  5413. ;;
  5414. *64-bit*)
  5415. LD="${LD-ld} -64"
  5416. ;;
  5417. esac
  5418. fi
  5419. fi
  5420. rm -rf conftest*
  5421. ;;
  5422. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  5423. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5424. # Find out which ABI we are using.
  5425. echo 'int i;' > conftest.$ac_ext
  5426. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5427. (eval $ac_compile) 2>&5
  5428. ac_status=$?
  5429. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5430. test $ac_status = 0; }; then
  5431. case `/usr/bin/file conftest.o` in
  5432. *32-bit*)
  5433. case $host in
  5434. x86_64-*kfreebsd*-gnu)
  5435. LD="${LD-ld} -m elf_i386_fbsd"
  5436. ;;
  5437. x86_64-*linux*)
  5438. case `/usr/bin/file conftest.o` in
  5439. *x86-64*)
  5440. LD="${LD-ld} -m elf32_x86_64"
  5441. ;;
  5442. *)
  5443. LD="${LD-ld} -m elf_i386"
  5444. ;;
  5445. esac
  5446. ;;
  5447. powerpc64le-*linux*)
  5448. LD="${LD-ld} -m elf32lppclinux"
  5449. ;;
  5450. powerpc64-*linux*)
  5451. LD="${LD-ld} -m elf32ppclinux"
  5452. ;;
  5453. s390x-*linux*)
  5454. LD="${LD-ld} -m elf_s390"
  5455. ;;
  5456. sparc64-*linux*)
  5457. LD="${LD-ld} -m elf32_sparc"
  5458. ;;
  5459. esac
  5460. ;;
  5461. *64-bit*)
  5462. case $host in
  5463. x86_64-*kfreebsd*-gnu)
  5464. LD="${LD-ld} -m elf_x86_64_fbsd"
  5465. ;;
  5466. x86_64-*linux*)
  5467. LD="${LD-ld} -m elf_x86_64"
  5468. ;;
  5469. powerpcle-*linux*)
  5470. LD="${LD-ld} -m elf64lppc"
  5471. ;;
  5472. powerpc-*linux*)
  5473. LD="${LD-ld} -m elf64ppc"
  5474. ;;
  5475. s390*-*linux*|s390*-*tpf*)
  5476. LD="${LD-ld} -m elf64_s390"
  5477. ;;
  5478. sparc*-*linux*)
  5479. LD="${LD-ld} -m elf64_sparc"
  5480. ;;
  5481. esac
  5482. ;;
  5483. esac
  5484. fi
  5485. rm -rf conftest*
  5486. ;;
  5487. *-*-sco3.2v5*)
  5488. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5489. SAVE_CFLAGS="$CFLAGS"
  5490. CFLAGS="$CFLAGS -belf"
  5491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5492. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5493. if ${lt_cv_cc_needs_belf+:} false; then :
  5494. $as_echo_n "(cached) " >&6
  5495. else
  5496. ac_ext=c
  5497. ac_cpp='$CPP $CPPFLAGS'
  5498. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5499. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5500. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5501. if test x$gcc_no_link = xyes; then
  5502. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  5503. fi
  5504. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5505. /* end confdefs.h. */
  5506. int
  5507. main ()
  5508. {
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. if ac_fn_c_try_link "$LINENO"; then :
  5514. lt_cv_cc_needs_belf=yes
  5515. else
  5516. lt_cv_cc_needs_belf=no
  5517. fi
  5518. rm -f core conftest.err conftest.$ac_objext \
  5519. conftest$ac_exeext conftest.$ac_ext
  5520. ac_ext=c
  5521. ac_cpp='$CPP $CPPFLAGS'
  5522. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5523. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5524. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5525. fi
  5526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5527. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5528. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5529. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5530. CFLAGS="$SAVE_CFLAGS"
  5531. fi
  5532. ;;
  5533. sparc*-*solaris*)
  5534. # Find out which ABI we are using.
  5535. echo 'int i;' > conftest.$ac_ext
  5536. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5537. (eval $ac_compile) 2>&5
  5538. ac_status=$?
  5539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5540. test $ac_status = 0; }; then
  5541. case `/usr/bin/file conftest.o` in
  5542. *64-bit*)
  5543. case $lt_cv_prog_gnu_ld in
  5544. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  5545. *)
  5546. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5547. LD="${LD-ld} -64"
  5548. fi
  5549. ;;
  5550. esac
  5551. ;;
  5552. esac
  5553. fi
  5554. rm -rf conftest*
  5555. ;;
  5556. esac
  5557. need_locks="$enable_libtool_lock"
  5558. case $host_os in
  5559. rhapsody* | darwin*)
  5560. if test -n "$ac_tool_prefix"; then
  5561. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5562. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5564. $as_echo_n "checking for $ac_word... " >&6; }
  5565. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if test -n "$DSYMUTIL"; then
  5569. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5570. else
  5571. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5572. for as_dir in $PATH
  5573. do
  5574. IFS=$as_save_IFS
  5575. test -z "$as_dir" && as_dir=.
  5576. for ac_exec_ext in '' $ac_executable_extensions; do
  5577. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5578. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5579. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5580. break 2
  5581. fi
  5582. done
  5583. done
  5584. IFS=$as_save_IFS
  5585. fi
  5586. fi
  5587. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5588. if test -n "$DSYMUTIL"; then
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5590. $as_echo "$DSYMUTIL" >&6; }
  5591. else
  5592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5593. $as_echo "no" >&6; }
  5594. fi
  5595. fi
  5596. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5597. ac_ct_DSYMUTIL=$DSYMUTIL
  5598. # Extract the first word of "dsymutil", so it can be a program name with args.
  5599. set dummy dsymutil; ac_word=$2
  5600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5601. $as_echo_n "checking for $ac_word... " >&6; }
  5602. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5603. $as_echo_n "(cached) " >&6
  5604. else
  5605. if test -n "$ac_ct_DSYMUTIL"; then
  5606. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5607. else
  5608. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5609. for as_dir in $PATH
  5610. do
  5611. IFS=$as_save_IFS
  5612. test -z "$as_dir" && as_dir=.
  5613. for ac_exec_ext in '' $ac_executable_extensions; do
  5614. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5615. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5617. break 2
  5618. fi
  5619. done
  5620. done
  5621. IFS=$as_save_IFS
  5622. fi
  5623. fi
  5624. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5625. if test -n "$ac_ct_DSYMUTIL"; then
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5627. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5628. else
  5629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5630. $as_echo "no" >&6; }
  5631. fi
  5632. if test "x$ac_ct_DSYMUTIL" = x; then
  5633. DSYMUTIL=":"
  5634. else
  5635. case $cross_compiling:$ac_tool_warned in
  5636. yes:)
  5637. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5638. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5639. ac_tool_warned=yes ;;
  5640. esac
  5641. DSYMUTIL=$ac_ct_DSYMUTIL
  5642. fi
  5643. else
  5644. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5645. fi
  5646. if test -n "$ac_tool_prefix"; then
  5647. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5648. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5649. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5650. $as_echo_n "checking for $ac_word... " >&6; }
  5651. if ${ac_cv_prog_NMEDIT+:} false; then :
  5652. $as_echo_n "(cached) " >&6
  5653. else
  5654. if test -n "$NMEDIT"; then
  5655. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5656. else
  5657. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5658. for as_dir in $PATH
  5659. do
  5660. IFS=$as_save_IFS
  5661. test -z "$as_dir" && as_dir=.
  5662. for ac_exec_ext in '' $ac_executable_extensions; do
  5663. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5664. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5665. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5666. break 2
  5667. fi
  5668. done
  5669. done
  5670. IFS=$as_save_IFS
  5671. fi
  5672. fi
  5673. NMEDIT=$ac_cv_prog_NMEDIT
  5674. if test -n "$NMEDIT"; then
  5675. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5676. $as_echo "$NMEDIT" >&6; }
  5677. else
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5679. $as_echo "no" >&6; }
  5680. fi
  5681. fi
  5682. if test -z "$ac_cv_prog_NMEDIT"; then
  5683. ac_ct_NMEDIT=$NMEDIT
  5684. # Extract the first word of "nmedit", so it can be a program name with args.
  5685. set dummy nmedit; ac_word=$2
  5686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5687. $as_echo_n "checking for $ac_word... " >&6; }
  5688. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5689. $as_echo_n "(cached) " >&6
  5690. else
  5691. if test -n "$ac_ct_NMEDIT"; then
  5692. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5693. else
  5694. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5695. for as_dir in $PATH
  5696. do
  5697. IFS=$as_save_IFS
  5698. test -z "$as_dir" && as_dir=.
  5699. for ac_exec_ext in '' $ac_executable_extensions; do
  5700. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5701. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5702. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5703. break 2
  5704. fi
  5705. done
  5706. done
  5707. IFS=$as_save_IFS
  5708. fi
  5709. fi
  5710. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5711. if test -n "$ac_ct_NMEDIT"; then
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5713. $as_echo "$ac_ct_NMEDIT" >&6; }
  5714. else
  5715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5716. $as_echo "no" >&6; }
  5717. fi
  5718. if test "x$ac_ct_NMEDIT" = x; then
  5719. NMEDIT=":"
  5720. else
  5721. case $cross_compiling:$ac_tool_warned in
  5722. yes:)
  5723. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5724. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5725. ac_tool_warned=yes ;;
  5726. esac
  5727. NMEDIT=$ac_ct_NMEDIT
  5728. fi
  5729. else
  5730. NMEDIT="$ac_cv_prog_NMEDIT"
  5731. fi
  5732. if test -n "$ac_tool_prefix"; then
  5733. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5734. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5735. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5736. $as_echo_n "checking for $ac_word... " >&6; }
  5737. if ${ac_cv_prog_LIPO+:} false; then :
  5738. $as_echo_n "(cached) " >&6
  5739. else
  5740. if test -n "$LIPO"; then
  5741. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5742. else
  5743. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5744. for as_dir in $PATH
  5745. do
  5746. IFS=$as_save_IFS
  5747. test -z "$as_dir" && as_dir=.
  5748. for ac_exec_ext in '' $ac_executable_extensions; do
  5749. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5750. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5751. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5752. break 2
  5753. fi
  5754. done
  5755. done
  5756. IFS=$as_save_IFS
  5757. fi
  5758. fi
  5759. LIPO=$ac_cv_prog_LIPO
  5760. if test -n "$LIPO"; then
  5761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5762. $as_echo "$LIPO" >&6; }
  5763. else
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5765. $as_echo "no" >&6; }
  5766. fi
  5767. fi
  5768. if test -z "$ac_cv_prog_LIPO"; then
  5769. ac_ct_LIPO=$LIPO
  5770. # Extract the first word of "lipo", so it can be a program name with args.
  5771. set dummy lipo; ac_word=$2
  5772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5773. $as_echo_n "checking for $ac_word... " >&6; }
  5774. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5775. $as_echo_n "(cached) " >&6
  5776. else
  5777. if test -n "$ac_ct_LIPO"; then
  5778. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5779. else
  5780. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5781. for as_dir in $PATH
  5782. do
  5783. IFS=$as_save_IFS
  5784. test -z "$as_dir" && as_dir=.
  5785. for ac_exec_ext in '' $ac_executable_extensions; do
  5786. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5787. ac_cv_prog_ac_ct_LIPO="lipo"
  5788. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5789. break 2
  5790. fi
  5791. done
  5792. done
  5793. IFS=$as_save_IFS
  5794. fi
  5795. fi
  5796. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5797. if test -n "$ac_ct_LIPO"; then
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5799. $as_echo "$ac_ct_LIPO" >&6; }
  5800. else
  5801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5802. $as_echo "no" >&6; }
  5803. fi
  5804. if test "x$ac_ct_LIPO" = x; then
  5805. LIPO=":"
  5806. else
  5807. case $cross_compiling:$ac_tool_warned in
  5808. yes:)
  5809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5810. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5811. ac_tool_warned=yes ;;
  5812. esac
  5813. LIPO=$ac_ct_LIPO
  5814. fi
  5815. else
  5816. LIPO="$ac_cv_prog_LIPO"
  5817. fi
  5818. if test -n "$ac_tool_prefix"; then
  5819. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5820. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5821. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5822. $as_echo_n "checking for $ac_word... " >&6; }
  5823. if ${ac_cv_prog_OTOOL+:} false; then :
  5824. $as_echo_n "(cached) " >&6
  5825. else
  5826. if test -n "$OTOOL"; then
  5827. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5828. else
  5829. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5830. for as_dir in $PATH
  5831. do
  5832. IFS=$as_save_IFS
  5833. test -z "$as_dir" && as_dir=.
  5834. for ac_exec_ext in '' $ac_executable_extensions; do
  5835. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5836. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5837. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5838. break 2
  5839. fi
  5840. done
  5841. done
  5842. IFS=$as_save_IFS
  5843. fi
  5844. fi
  5845. OTOOL=$ac_cv_prog_OTOOL
  5846. if test -n "$OTOOL"; then
  5847. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5848. $as_echo "$OTOOL" >&6; }
  5849. else
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5851. $as_echo "no" >&6; }
  5852. fi
  5853. fi
  5854. if test -z "$ac_cv_prog_OTOOL"; then
  5855. ac_ct_OTOOL=$OTOOL
  5856. # Extract the first word of "otool", so it can be a program name with args.
  5857. set dummy otool; ac_word=$2
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5859. $as_echo_n "checking for $ac_word... " >&6; }
  5860. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5861. $as_echo_n "(cached) " >&6
  5862. else
  5863. if test -n "$ac_ct_OTOOL"; then
  5864. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5865. else
  5866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5867. for as_dir in $PATH
  5868. do
  5869. IFS=$as_save_IFS
  5870. test -z "$as_dir" && as_dir=.
  5871. for ac_exec_ext in '' $ac_executable_extensions; do
  5872. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5873. ac_cv_prog_ac_ct_OTOOL="otool"
  5874. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5875. break 2
  5876. fi
  5877. done
  5878. done
  5879. IFS=$as_save_IFS
  5880. fi
  5881. fi
  5882. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5883. if test -n "$ac_ct_OTOOL"; then
  5884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5885. $as_echo "$ac_ct_OTOOL" >&6; }
  5886. else
  5887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5888. $as_echo "no" >&6; }
  5889. fi
  5890. if test "x$ac_ct_OTOOL" = x; then
  5891. OTOOL=":"
  5892. else
  5893. case $cross_compiling:$ac_tool_warned in
  5894. yes:)
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5896. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5897. ac_tool_warned=yes ;;
  5898. esac
  5899. OTOOL=$ac_ct_OTOOL
  5900. fi
  5901. else
  5902. OTOOL="$ac_cv_prog_OTOOL"
  5903. fi
  5904. if test -n "$ac_tool_prefix"; then
  5905. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5906. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5908. $as_echo_n "checking for $ac_word... " >&6; }
  5909. if ${ac_cv_prog_OTOOL64+:} false; then :
  5910. $as_echo_n "(cached) " >&6
  5911. else
  5912. if test -n "$OTOOL64"; then
  5913. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5914. else
  5915. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5916. for as_dir in $PATH
  5917. do
  5918. IFS=$as_save_IFS
  5919. test -z "$as_dir" && as_dir=.
  5920. for ac_exec_ext in '' $ac_executable_extensions; do
  5921. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5922. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5923. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5924. break 2
  5925. fi
  5926. done
  5927. done
  5928. IFS=$as_save_IFS
  5929. fi
  5930. fi
  5931. OTOOL64=$ac_cv_prog_OTOOL64
  5932. if test -n "$OTOOL64"; then
  5933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5934. $as_echo "$OTOOL64" >&6; }
  5935. else
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5937. $as_echo "no" >&6; }
  5938. fi
  5939. fi
  5940. if test -z "$ac_cv_prog_OTOOL64"; then
  5941. ac_ct_OTOOL64=$OTOOL64
  5942. # Extract the first word of "otool64", so it can be a program name with args.
  5943. set dummy otool64; ac_word=$2
  5944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5945. $as_echo_n "checking for $ac_word... " >&6; }
  5946. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5947. $as_echo_n "(cached) " >&6
  5948. else
  5949. if test -n "$ac_ct_OTOOL64"; then
  5950. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5951. else
  5952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5953. for as_dir in $PATH
  5954. do
  5955. IFS=$as_save_IFS
  5956. test -z "$as_dir" && as_dir=.
  5957. for ac_exec_ext in '' $ac_executable_extensions; do
  5958. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5959. ac_cv_prog_ac_ct_OTOOL64="otool64"
  5960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5961. break 2
  5962. fi
  5963. done
  5964. done
  5965. IFS=$as_save_IFS
  5966. fi
  5967. fi
  5968. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  5969. if test -n "$ac_ct_OTOOL64"; then
  5970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  5971. $as_echo "$ac_ct_OTOOL64" >&6; }
  5972. else
  5973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5974. $as_echo "no" >&6; }
  5975. fi
  5976. if test "x$ac_ct_OTOOL64" = x; then
  5977. OTOOL64=":"
  5978. else
  5979. case $cross_compiling:$ac_tool_warned in
  5980. yes:)
  5981. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5982. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5983. ac_tool_warned=yes ;;
  5984. esac
  5985. OTOOL64=$ac_ct_OTOOL64
  5986. fi
  5987. else
  5988. OTOOL64="$ac_cv_prog_OTOOL64"
  5989. fi
  5990. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  5991. $as_echo_n "checking for -single_module linker flag... " >&6; }
  5992. if ${lt_cv_apple_cc_single_mod+:} false; then :
  5993. $as_echo_n "(cached) " >&6
  5994. else
  5995. lt_cv_apple_cc_single_mod=no
  5996. if test -z "${LT_MULTI_MODULE}"; then
  5997. # By default we will add the -single_module flag. You can override
  5998. # by either setting the environment variable LT_MULTI_MODULE
  5999. # non-empty at configure time, or by adding -multi_module to the
  6000. # link flags.
  6001. rm -rf libconftest.dylib*
  6002. echo "int foo(void){return 1;}" > conftest.c
  6003. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6004. -dynamiclib -Wl,-single_module conftest.c" >&5
  6005. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6006. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6007. _lt_result=$?
  6008. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  6009. lt_cv_apple_cc_single_mod=yes
  6010. else
  6011. cat conftest.err >&5
  6012. fi
  6013. rm -rf libconftest.dylib*
  6014. rm -f conftest.*
  6015. fi
  6016. fi
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6018. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6020. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6021. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6022. $as_echo_n "(cached) " >&6
  6023. else
  6024. lt_cv_ld_exported_symbols_list=no
  6025. save_LDFLAGS=$LDFLAGS
  6026. echo "_main" > conftest.sym
  6027. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6028. if test x$gcc_no_link = xyes; then
  6029. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  6030. fi
  6031. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6032. /* end confdefs.h. */
  6033. int
  6034. main ()
  6035. {
  6036. ;
  6037. return 0;
  6038. }
  6039. _ACEOF
  6040. if ac_fn_c_try_link "$LINENO"; then :
  6041. lt_cv_ld_exported_symbols_list=yes
  6042. else
  6043. lt_cv_ld_exported_symbols_list=no
  6044. fi
  6045. rm -f core conftest.err conftest.$ac_objext \
  6046. conftest$ac_exeext conftest.$ac_ext
  6047. LDFLAGS="$save_LDFLAGS"
  6048. fi
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6050. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6051. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6052. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6053. if ${lt_cv_ld_force_load+:} false; then :
  6054. $as_echo_n "(cached) " >&6
  6055. else
  6056. lt_cv_ld_force_load=no
  6057. cat > conftest.c << _LT_EOF
  6058. int forced_loaded() { return 2;}
  6059. _LT_EOF
  6060. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6061. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6062. echo "$AR cru libconftest.a conftest.o" >&5
  6063. $AR cru libconftest.a conftest.o 2>&5
  6064. cat > conftest.c << _LT_EOF
  6065. int main() { return 0;}
  6066. _LT_EOF
  6067. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6068. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6069. _lt_result=$?
  6070. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  6071. lt_cv_ld_force_load=yes
  6072. else
  6073. cat conftest.err >&5
  6074. fi
  6075. rm -f conftest.err libconftest.a conftest conftest.c
  6076. rm -rf conftest.dSYM
  6077. fi
  6078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6079. $as_echo "$lt_cv_ld_force_load" >&6; }
  6080. case $host_os in
  6081. rhapsody* | darwin1.[012])
  6082. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6083. darwin1.*)
  6084. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6085. darwin*) # darwin 5.x on
  6086. # if running on 10.5 or later, the deployment target defaults
  6087. # to the OS version, if on x86, and 10.4, the deployment
  6088. # target defaults to 10.4. Don't you love it?
  6089. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6090. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6091. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6092. 10.[012][,.]*)
  6093. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6094. 10.*)
  6095. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6096. esac
  6097. ;;
  6098. esac
  6099. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6100. _lt_dar_single_mod='$single_module'
  6101. fi
  6102. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6103. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6104. else
  6105. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6106. fi
  6107. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6108. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6109. else
  6110. _lt_dsymutil=
  6111. fi
  6112. ;;
  6113. esac
  6114. ac_ext=c
  6115. ac_cpp='$CPP $CPPFLAGS'
  6116. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6117. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6118. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6119. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6120. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6121. # On Suns, sometimes $CPP names a directory.
  6122. if test -n "$CPP" && test -d "$CPP"; then
  6123. CPP=
  6124. fi
  6125. if test -z "$CPP"; then
  6126. if ${ac_cv_prog_CPP+:} false; then :
  6127. $as_echo_n "(cached) " >&6
  6128. else
  6129. # Double quotes because CPP needs to be expanded
  6130. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6131. do
  6132. ac_preproc_ok=false
  6133. for ac_c_preproc_warn_flag in '' yes
  6134. do
  6135. # Use a header file that comes with gcc, so configuring glibc
  6136. # with a fresh cross-compiler works.
  6137. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6138. # <limits.h> exists even on freestanding compilers.
  6139. # On the NeXT, cc -E runs the code through the compiler's parser,
  6140. # not just through cpp. "Syntax error" is here to catch this case.
  6141. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6142. /* end confdefs.h. */
  6143. #ifdef __STDC__
  6144. # include <limits.h>
  6145. #else
  6146. # include <assert.h>
  6147. #endif
  6148. Syntax error
  6149. _ACEOF
  6150. if ac_fn_c_try_cpp "$LINENO"; then :
  6151. else
  6152. # Broken: fails on valid input.
  6153. continue
  6154. fi
  6155. rm -f conftest.err conftest.i conftest.$ac_ext
  6156. # OK, works on sane cases. Now check whether nonexistent headers
  6157. # can be detected and how.
  6158. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6159. /* end confdefs.h. */
  6160. #include <ac_nonexistent.h>
  6161. _ACEOF
  6162. if ac_fn_c_try_cpp "$LINENO"; then :
  6163. # Broken: success on invalid input.
  6164. continue
  6165. else
  6166. # Passes both tests.
  6167. ac_preproc_ok=:
  6168. break
  6169. fi
  6170. rm -f conftest.err conftest.i conftest.$ac_ext
  6171. done
  6172. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6173. rm -f conftest.i conftest.err conftest.$ac_ext
  6174. if $ac_preproc_ok; then :
  6175. break
  6176. fi
  6177. done
  6178. ac_cv_prog_CPP=$CPP
  6179. fi
  6180. CPP=$ac_cv_prog_CPP
  6181. else
  6182. ac_cv_prog_CPP=$CPP
  6183. fi
  6184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6185. $as_echo "$CPP" >&6; }
  6186. ac_preproc_ok=false
  6187. for ac_c_preproc_warn_flag in '' yes
  6188. do
  6189. # Use a header file that comes with gcc, so configuring glibc
  6190. # with a fresh cross-compiler works.
  6191. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6192. # <limits.h> exists even on freestanding compilers.
  6193. # On the NeXT, cc -E runs the code through the compiler's parser,
  6194. # not just through cpp. "Syntax error" is here to catch this case.
  6195. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6196. /* end confdefs.h. */
  6197. #ifdef __STDC__
  6198. # include <limits.h>
  6199. #else
  6200. # include <assert.h>
  6201. #endif
  6202. Syntax error
  6203. _ACEOF
  6204. if ac_fn_c_try_cpp "$LINENO"; then :
  6205. else
  6206. # Broken: fails on valid input.
  6207. continue
  6208. fi
  6209. rm -f conftest.err conftest.i conftest.$ac_ext
  6210. # OK, works on sane cases. Now check whether nonexistent headers
  6211. # can be detected and how.
  6212. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6213. /* end confdefs.h. */
  6214. #include <ac_nonexistent.h>
  6215. _ACEOF
  6216. if ac_fn_c_try_cpp "$LINENO"; then :
  6217. # Broken: success on invalid input.
  6218. continue
  6219. else
  6220. # Passes both tests.
  6221. ac_preproc_ok=:
  6222. break
  6223. fi
  6224. rm -f conftest.err conftest.i conftest.$ac_ext
  6225. done
  6226. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6227. rm -f conftest.i conftest.err conftest.$ac_ext
  6228. if $ac_preproc_ok; then :
  6229. else
  6230. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6231. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6232. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6233. See \`config.log' for more details" "$LINENO" 5; }
  6234. fi
  6235. ac_ext=c
  6236. ac_cpp='$CPP $CPPFLAGS'
  6237. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6238. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6239. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6240. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6241. $as_echo_n "checking for ANSI C header files... " >&6; }
  6242. if ${ac_cv_header_stdc+:} false; then :
  6243. $as_echo_n "(cached) " >&6
  6244. else
  6245. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6246. /* end confdefs.h. */
  6247. #include <stdlib.h>
  6248. #include <stdarg.h>
  6249. #include <string.h>
  6250. #include <float.h>
  6251. int
  6252. main ()
  6253. {
  6254. ;
  6255. return 0;
  6256. }
  6257. _ACEOF
  6258. if ac_fn_c_try_compile "$LINENO"; then :
  6259. ac_cv_header_stdc=yes
  6260. else
  6261. ac_cv_header_stdc=no
  6262. fi
  6263. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6264. if test $ac_cv_header_stdc = yes; then
  6265. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6266. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6267. /* end confdefs.h. */
  6268. #include <string.h>
  6269. _ACEOF
  6270. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6271. $EGREP "memchr" >/dev/null 2>&1; then :
  6272. else
  6273. ac_cv_header_stdc=no
  6274. fi
  6275. rm -f conftest*
  6276. fi
  6277. if test $ac_cv_header_stdc = yes; then
  6278. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6280. /* end confdefs.h. */
  6281. #include <stdlib.h>
  6282. _ACEOF
  6283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6284. $EGREP "free" >/dev/null 2>&1; then :
  6285. else
  6286. ac_cv_header_stdc=no
  6287. fi
  6288. rm -f conftest*
  6289. fi
  6290. if test $ac_cv_header_stdc = yes; then
  6291. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6292. if test "$cross_compiling" = yes; then :
  6293. :
  6294. else
  6295. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6296. /* end confdefs.h. */
  6297. #include <ctype.h>
  6298. #include <stdlib.h>
  6299. #if ((' ' & 0x0FF) == 0x020)
  6300. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6301. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6302. #else
  6303. # define ISLOWER(c) \
  6304. (('a' <= (c) && (c) <= 'i') \
  6305. || ('j' <= (c) && (c) <= 'r') \
  6306. || ('s' <= (c) && (c) <= 'z'))
  6307. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6308. #endif
  6309. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6310. int
  6311. main ()
  6312. {
  6313. int i;
  6314. for (i = 0; i < 256; i++)
  6315. if (XOR (islower (i), ISLOWER (i))
  6316. || toupper (i) != TOUPPER (i))
  6317. return 2;
  6318. return 0;
  6319. }
  6320. _ACEOF
  6321. if ac_fn_c_try_run "$LINENO"; then :
  6322. else
  6323. ac_cv_header_stdc=no
  6324. fi
  6325. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6326. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6327. fi
  6328. fi
  6329. fi
  6330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6331. $as_echo "$ac_cv_header_stdc" >&6; }
  6332. if test $ac_cv_header_stdc = yes; then
  6333. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6334. fi
  6335. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6336. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6337. inttypes.h stdint.h unistd.h
  6338. do :
  6339. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6340. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6341. "
  6342. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6343. cat >>confdefs.h <<_ACEOF
  6344. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6345. _ACEOF
  6346. fi
  6347. done
  6348. for ac_header in dlfcn.h
  6349. do :
  6350. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6351. "
  6352. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6353. cat >>confdefs.h <<_ACEOF
  6354. #define HAVE_DLFCN_H 1
  6355. _ACEOF
  6356. fi
  6357. done
  6358. # Set options
  6359. enable_dlopen=no
  6360. enable_win32_dll=no
  6361. # Check whether --enable-shared was given.
  6362. if test "${enable_shared+set}" = set; then :
  6363. enableval=$enable_shared; p=${PACKAGE-default}
  6364. case $enableval in
  6365. yes) enable_shared=yes ;;
  6366. no) enable_shared=no ;;
  6367. *)
  6368. enable_shared=no
  6369. # Look at the argument we got. We use all the common list separators.
  6370. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6371. for pkg in $enableval; do
  6372. IFS="$lt_save_ifs"
  6373. if test "X$pkg" = "X$p"; then
  6374. enable_shared=yes
  6375. fi
  6376. done
  6377. IFS="$lt_save_ifs"
  6378. ;;
  6379. esac
  6380. else
  6381. enable_shared=yes
  6382. fi
  6383. # Check whether --enable-static was given.
  6384. if test "${enable_static+set}" = set; then :
  6385. enableval=$enable_static; p=${PACKAGE-default}
  6386. case $enableval in
  6387. yes) enable_static=yes ;;
  6388. no) enable_static=no ;;
  6389. *)
  6390. enable_static=no
  6391. # Look at the argument we got. We use all the common list separators.
  6392. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6393. for pkg in $enableval; do
  6394. IFS="$lt_save_ifs"
  6395. if test "X$pkg" = "X$p"; then
  6396. enable_static=yes
  6397. fi
  6398. done
  6399. IFS="$lt_save_ifs"
  6400. ;;
  6401. esac
  6402. else
  6403. enable_static=yes
  6404. fi
  6405. # Check whether --with-pic was given.
  6406. if test "${with_pic+set}" = set; then :
  6407. withval=$with_pic; pic_mode="$withval"
  6408. else
  6409. pic_mode=default
  6410. fi
  6411. test -z "$pic_mode" && pic_mode=default
  6412. # Check whether --enable-fast-install was given.
  6413. if test "${enable_fast_install+set}" = set; then :
  6414. enableval=$enable_fast_install; p=${PACKAGE-default}
  6415. case $enableval in
  6416. yes) enable_fast_install=yes ;;
  6417. no) enable_fast_install=no ;;
  6418. *)
  6419. enable_fast_install=no
  6420. # Look at the argument we got. We use all the common list separators.
  6421. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6422. for pkg in $enableval; do
  6423. IFS="$lt_save_ifs"
  6424. if test "X$pkg" = "X$p"; then
  6425. enable_fast_install=yes
  6426. fi
  6427. done
  6428. IFS="$lt_save_ifs"
  6429. ;;
  6430. esac
  6431. else
  6432. enable_fast_install=yes
  6433. fi
  6434. # This can be used to rebuild libtool when needed
  6435. LIBTOOL_DEPS="$ltmain"
  6436. # Always use our own libtool.
  6437. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6438. test -z "$LN_S" && LN_S="ln -s"
  6439. if test -n "${ZSH_VERSION+set}" ; then
  6440. setopt NO_GLOB_SUBST
  6441. fi
  6442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6443. $as_echo_n "checking for objdir... " >&6; }
  6444. if ${lt_cv_objdir+:} false; then :
  6445. $as_echo_n "(cached) " >&6
  6446. else
  6447. rm -f .libs 2>/dev/null
  6448. mkdir .libs 2>/dev/null
  6449. if test -d .libs; then
  6450. lt_cv_objdir=.libs
  6451. else
  6452. # MS-DOS does not allow filenames that begin with a dot.
  6453. lt_cv_objdir=_libs
  6454. fi
  6455. rmdir .libs 2>/dev/null
  6456. fi
  6457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6458. $as_echo "$lt_cv_objdir" >&6; }
  6459. objdir=$lt_cv_objdir
  6460. cat >>confdefs.h <<_ACEOF
  6461. #define LT_OBJDIR "$lt_cv_objdir/"
  6462. _ACEOF
  6463. case $host_os in
  6464. aix3*)
  6465. # AIX sometimes has problems with the GCC collect2 program. For some
  6466. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6467. # vanish in a puff of smoke.
  6468. if test "X${COLLECT_NAMES+set}" != Xset; then
  6469. COLLECT_NAMES=
  6470. export COLLECT_NAMES
  6471. fi
  6472. ;;
  6473. esac
  6474. # Global variables:
  6475. ofile=libtool
  6476. can_build_shared=yes
  6477. # All known linkers require a `.a' archive for static linking (except MSVC,
  6478. # which needs '.lib').
  6479. libext=a
  6480. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6481. old_CC="$CC"
  6482. old_CFLAGS="$CFLAGS"
  6483. # Set sane defaults for various variables
  6484. test -z "$CC" && CC=cc
  6485. test -z "$LTCC" && LTCC=$CC
  6486. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6487. test -z "$LD" && LD=ld
  6488. test -z "$ac_objext" && ac_objext=o
  6489. for cc_temp in $compiler""; do
  6490. case $cc_temp in
  6491. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6492. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6493. \-*) ;;
  6494. *) break;;
  6495. esac
  6496. done
  6497. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6498. # Only perform the check for file, if the check method requires it
  6499. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6500. case $deplibs_check_method in
  6501. file_magic*)
  6502. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6503. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6504. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6505. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6506. $as_echo_n "(cached) " >&6
  6507. else
  6508. case $MAGIC_CMD in
  6509. [\\/*] | ?:[\\/]*)
  6510. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6511. ;;
  6512. *)
  6513. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6514. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6515. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6516. for ac_dir in $ac_dummy; do
  6517. IFS="$lt_save_ifs"
  6518. test -z "$ac_dir" && ac_dir=.
  6519. if test -f $ac_dir/${ac_tool_prefix}file; then
  6520. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6521. if test -n "$file_magic_test_file"; then
  6522. case $deplibs_check_method in
  6523. "file_magic "*)
  6524. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6525. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6526. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6527. $EGREP "$file_magic_regex" > /dev/null; then
  6528. :
  6529. else
  6530. cat <<_LT_EOF 1>&2
  6531. *** Warning: the command libtool uses to detect shared libraries,
  6532. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6533. *** The result is that libtool may fail to recognize shared libraries
  6534. *** as such. This will affect the creation of libtool libraries that
  6535. *** depend on shared libraries, but programs linked with such libtool
  6536. *** libraries will work regardless of this problem. Nevertheless, you
  6537. *** may want to report the problem to your system manager and/or to
  6538. *** bug-libtool@gnu.org
  6539. _LT_EOF
  6540. fi ;;
  6541. esac
  6542. fi
  6543. break
  6544. fi
  6545. done
  6546. IFS="$lt_save_ifs"
  6547. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6548. ;;
  6549. esac
  6550. fi
  6551. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6552. if test -n "$MAGIC_CMD"; then
  6553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6554. $as_echo "$MAGIC_CMD" >&6; }
  6555. else
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6557. $as_echo "no" >&6; }
  6558. fi
  6559. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6560. if test -n "$ac_tool_prefix"; then
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6562. $as_echo_n "checking for file... " >&6; }
  6563. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6564. $as_echo_n "(cached) " >&6
  6565. else
  6566. case $MAGIC_CMD in
  6567. [\\/*] | ?:[\\/]*)
  6568. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6569. ;;
  6570. *)
  6571. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6572. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6573. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6574. for ac_dir in $ac_dummy; do
  6575. IFS="$lt_save_ifs"
  6576. test -z "$ac_dir" && ac_dir=.
  6577. if test -f $ac_dir/file; then
  6578. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6579. if test -n "$file_magic_test_file"; then
  6580. case $deplibs_check_method in
  6581. "file_magic "*)
  6582. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6583. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6584. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6585. $EGREP "$file_magic_regex" > /dev/null; then
  6586. :
  6587. else
  6588. cat <<_LT_EOF 1>&2
  6589. *** Warning: the command libtool uses to detect shared libraries,
  6590. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6591. *** The result is that libtool may fail to recognize shared libraries
  6592. *** as such. This will affect the creation of libtool libraries that
  6593. *** depend on shared libraries, but programs linked with such libtool
  6594. *** libraries will work regardless of this problem. Nevertheless, you
  6595. *** may want to report the problem to your system manager and/or to
  6596. *** bug-libtool@gnu.org
  6597. _LT_EOF
  6598. fi ;;
  6599. esac
  6600. fi
  6601. break
  6602. fi
  6603. done
  6604. IFS="$lt_save_ifs"
  6605. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6606. ;;
  6607. esac
  6608. fi
  6609. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6610. if test -n "$MAGIC_CMD"; then
  6611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6612. $as_echo "$MAGIC_CMD" >&6; }
  6613. else
  6614. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6615. $as_echo "no" >&6; }
  6616. fi
  6617. else
  6618. MAGIC_CMD=:
  6619. fi
  6620. fi
  6621. fi
  6622. ;;
  6623. esac
  6624. # Use C for the default configuration in the libtool script
  6625. lt_save_CC="$CC"
  6626. ac_ext=c
  6627. ac_cpp='$CPP $CPPFLAGS'
  6628. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6629. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6630. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6631. # Source file extension for C test sources.
  6632. ac_ext=c
  6633. # Object file extension for compiled C test sources.
  6634. objext=o
  6635. objext=$objext
  6636. # Code to be used in simple compile tests
  6637. lt_simple_compile_test_code="int some_variable = 0;"
  6638. # Code to be used in simple link tests
  6639. lt_simple_link_test_code='int main(){return(0);}'
  6640. # If no C compiler was specified, use CC.
  6641. LTCC=${LTCC-"$CC"}
  6642. # If no C compiler flags were specified, use CFLAGS.
  6643. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6644. # Allow CC to be a program name with arguments.
  6645. compiler=$CC
  6646. # Save the default compiler, since it gets overwritten when the other
  6647. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6648. compiler_DEFAULT=$CC
  6649. # save warnings/boilerplate of simple test code
  6650. ac_outfile=conftest.$ac_objext
  6651. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6652. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6653. _lt_compiler_boilerplate=`cat conftest.err`
  6654. $RM conftest*
  6655. ac_outfile=conftest.$ac_objext
  6656. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6657. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6658. _lt_linker_boilerplate=`cat conftest.err`
  6659. $RM -r conftest*
  6660. ## CAVEAT EMPTOR:
  6661. ## There is no encapsulation within the following macros, do not change
  6662. ## the running order or otherwise move them around unless you know exactly
  6663. ## what you are doing...
  6664. if test -n "$compiler"; then
  6665. lt_prog_compiler_no_builtin_flag=
  6666. if test "$GCC" = yes; then
  6667. case $cc_basename in
  6668. nvcc*)
  6669. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6670. *)
  6671. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6672. esac
  6673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6674. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6675. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6676. $as_echo_n "(cached) " >&6
  6677. else
  6678. lt_cv_prog_compiler_rtti_exceptions=no
  6679. ac_outfile=conftest.$ac_objext
  6680. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6681. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6682. # Insert the option either (1) after the last *FLAGS variable, or
  6683. # (2) before a word containing "conftest.", or (3) at the end.
  6684. # Note that $ac_compile itself does not contain backslashes and begins
  6685. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6686. # The option is referenced via a variable to avoid confusing sed.
  6687. lt_compile=`echo "$ac_compile" | $SED \
  6688. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6689. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6690. -e 's:$: $lt_compiler_flag:'`
  6691. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6692. (eval "$lt_compile" 2>conftest.err)
  6693. ac_status=$?
  6694. cat conftest.err >&5
  6695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6696. if (exit $ac_status) && test -s "$ac_outfile"; then
  6697. # The compiler can only warn and ignore the option if not recognized
  6698. # So say no if there are warnings other than the usual output.
  6699. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6700. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6701. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6702. lt_cv_prog_compiler_rtti_exceptions=yes
  6703. fi
  6704. fi
  6705. $RM conftest*
  6706. fi
  6707. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6708. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6709. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6710. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6711. else
  6712. :
  6713. fi
  6714. fi
  6715. lt_prog_compiler_wl=
  6716. lt_prog_compiler_pic=
  6717. lt_prog_compiler_static=
  6718. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  6719. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  6720. if test "$GCC" = yes; then
  6721. lt_prog_compiler_wl='-Wl,'
  6722. lt_prog_compiler_static='-static'
  6723. case $host_os in
  6724. aix*)
  6725. # All AIX code is PIC.
  6726. if test "$host_cpu" = ia64; then
  6727. # AIX 5 now supports IA64 processor
  6728. lt_prog_compiler_static='-Bstatic'
  6729. fi
  6730. lt_prog_compiler_pic='-fPIC'
  6731. ;;
  6732. amigaos*)
  6733. case $host_cpu in
  6734. powerpc)
  6735. # see comment about AmigaOS4 .so support
  6736. lt_prog_compiler_pic='-fPIC'
  6737. ;;
  6738. m68k)
  6739. # FIXME: we need at least 68020 code to build shared libraries, but
  6740. # adding the `-m68020' flag to GCC prevents building anything better,
  6741. # like `-m68040'.
  6742. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6743. ;;
  6744. esac
  6745. ;;
  6746. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6747. # PIC is the default for these OSes.
  6748. ;;
  6749. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6750. # This hack is so that the source file can tell whether it is being
  6751. # built for inclusion in a dll (and should export symbols for example).
  6752. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6753. # (--disable-auto-import) libraries
  6754. lt_prog_compiler_pic='-DDLL_EXPORT'
  6755. ;;
  6756. darwin* | rhapsody*)
  6757. # PIC is the default on this platform
  6758. # Common symbols not allowed in MH_DYLIB files
  6759. lt_prog_compiler_pic='-fno-common'
  6760. ;;
  6761. haiku*)
  6762. # PIC is the default for Haiku.
  6763. # The "-static" flag exists, but is broken.
  6764. lt_prog_compiler_static=
  6765. ;;
  6766. hpux*)
  6767. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6768. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6769. # sets the default TLS model and affects inlining.
  6770. case $host_cpu in
  6771. hppa*64*)
  6772. # +Z the default
  6773. ;;
  6774. *)
  6775. lt_prog_compiler_pic='-fPIC'
  6776. ;;
  6777. esac
  6778. ;;
  6779. interix[3-9]*)
  6780. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6781. # Instead, we relocate shared libraries at runtime.
  6782. ;;
  6783. msdosdjgpp*)
  6784. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6785. # on systems that don't support them.
  6786. lt_prog_compiler_can_build_shared=no
  6787. enable_shared=no
  6788. ;;
  6789. *nto* | *qnx*)
  6790. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6791. # it will coredump.
  6792. lt_prog_compiler_pic='-fPIC -shared'
  6793. ;;
  6794. sysv4*MP*)
  6795. if test -d /usr/nec; then
  6796. lt_prog_compiler_pic=-Kconform_pic
  6797. fi
  6798. ;;
  6799. *)
  6800. lt_prog_compiler_pic='-fPIC'
  6801. ;;
  6802. esac
  6803. case $cc_basename in
  6804. nvcc*) # Cuda Compiler Driver 2.2
  6805. lt_prog_compiler_wl='-Xlinker '
  6806. lt_prog_compiler_pic='-Xcompiler -fPIC'
  6807. ;;
  6808. esac
  6809. else
  6810. # PORTME Check for flag to pass linker flags through the system compiler.
  6811. case $host_os in
  6812. aix*)
  6813. lt_prog_compiler_wl='-Wl,'
  6814. if test "$host_cpu" = ia64; then
  6815. # AIX 5 now supports IA64 processor
  6816. lt_prog_compiler_static='-Bstatic'
  6817. else
  6818. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6819. fi
  6820. ;;
  6821. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6822. # This hack is so that the source file can tell whether it is being
  6823. # built for inclusion in a dll (and should export symbols for example).
  6824. lt_prog_compiler_pic='-DDLL_EXPORT'
  6825. ;;
  6826. hpux9* | hpux10* | hpux11*)
  6827. lt_prog_compiler_wl='-Wl,'
  6828. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6829. # not for PA HP-UX.
  6830. case $host_cpu in
  6831. hppa*64*|ia64*)
  6832. # +Z the default
  6833. ;;
  6834. *)
  6835. lt_prog_compiler_pic='+Z'
  6836. ;;
  6837. esac
  6838. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6839. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6840. ;;
  6841. irix5* | irix6* | nonstopux*)
  6842. lt_prog_compiler_wl='-Wl,'
  6843. # PIC (with -KPIC) is the default.
  6844. lt_prog_compiler_static='-non_shared'
  6845. ;;
  6846. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  6847. case $cc_basename in
  6848. # old Intel for x86_64 which still supported -KPIC.
  6849. ecc*)
  6850. lt_prog_compiler_wl='-Wl,'
  6851. lt_prog_compiler_pic='-KPIC'
  6852. lt_prog_compiler_static='-static'
  6853. ;;
  6854. # icc used to be incompatible with GCC.
  6855. # ICC 10 doesn't accept -KPIC any more.
  6856. icc* | ifort*)
  6857. lt_prog_compiler_wl='-Wl,'
  6858. lt_prog_compiler_pic='-fPIC'
  6859. lt_prog_compiler_static='-static'
  6860. ;;
  6861. # Lahey Fortran 8.1.
  6862. lf95*)
  6863. lt_prog_compiler_wl='-Wl,'
  6864. lt_prog_compiler_pic='--shared'
  6865. lt_prog_compiler_static='--static'
  6866. ;;
  6867. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6868. # Portland Group compilers (*not* the Pentium gcc compiler,
  6869. # which looks to be a dead project)
  6870. lt_prog_compiler_wl='-Wl,'
  6871. lt_prog_compiler_pic='-fpic'
  6872. lt_prog_compiler_static='-Bstatic'
  6873. ;;
  6874. ccc*)
  6875. lt_prog_compiler_wl='-Wl,'
  6876. # All Alpha code is PIC.
  6877. lt_prog_compiler_static='-non_shared'
  6878. ;;
  6879. xl* | bgxl* | bgf* | mpixl*)
  6880. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6881. lt_prog_compiler_wl='-Wl,'
  6882. lt_prog_compiler_pic='-qpic'
  6883. lt_prog_compiler_static='-qstaticlink'
  6884. ;;
  6885. *)
  6886. case `$CC -V 2>&1 | sed 5q` in
  6887. *Sun\ F* | *Sun*Fortran*)
  6888. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6889. lt_prog_compiler_pic='-KPIC'
  6890. lt_prog_compiler_static='-Bstatic'
  6891. lt_prog_compiler_wl=''
  6892. ;;
  6893. *Sun\ C*)
  6894. # Sun C 5.9
  6895. lt_prog_compiler_pic='-KPIC'
  6896. lt_prog_compiler_static='-Bstatic'
  6897. lt_prog_compiler_wl='-Wl,'
  6898. ;;
  6899. esac
  6900. ;;
  6901. esac
  6902. ;;
  6903. newsos6)
  6904. lt_prog_compiler_pic='-KPIC'
  6905. lt_prog_compiler_static='-Bstatic'
  6906. ;;
  6907. *nto* | *qnx*)
  6908. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6909. # it will coredump.
  6910. lt_prog_compiler_pic='-fPIC -shared'
  6911. ;;
  6912. osf3* | osf4* | osf5*)
  6913. lt_prog_compiler_wl='-Wl,'
  6914. # All OSF/1 code is PIC.
  6915. lt_prog_compiler_static='-non_shared'
  6916. ;;
  6917. rdos*)
  6918. lt_prog_compiler_static='-non_shared'
  6919. ;;
  6920. solaris*)
  6921. lt_prog_compiler_pic='-KPIC'
  6922. lt_prog_compiler_static='-Bstatic'
  6923. case $cc_basename in
  6924. f77* | f90* | f95*)
  6925. lt_prog_compiler_wl='-Qoption ld ';;
  6926. *)
  6927. lt_prog_compiler_wl='-Wl,';;
  6928. esac
  6929. ;;
  6930. sunos4*)
  6931. lt_prog_compiler_wl='-Qoption ld '
  6932. lt_prog_compiler_pic='-PIC'
  6933. lt_prog_compiler_static='-Bstatic'
  6934. ;;
  6935. sysv4 | sysv4.2uw2* | sysv4.3*)
  6936. lt_prog_compiler_wl='-Wl,'
  6937. lt_prog_compiler_pic='-KPIC'
  6938. lt_prog_compiler_static='-Bstatic'
  6939. ;;
  6940. sysv4*MP*)
  6941. if test -d /usr/nec ;then
  6942. lt_prog_compiler_pic='-Kconform_pic'
  6943. lt_prog_compiler_static='-Bstatic'
  6944. fi
  6945. ;;
  6946. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  6947. lt_prog_compiler_wl='-Wl,'
  6948. lt_prog_compiler_pic='-KPIC'
  6949. lt_prog_compiler_static='-Bstatic'
  6950. ;;
  6951. unicos*)
  6952. lt_prog_compiler_wl='-Wl,'
  6953. lt_prog_compiler_can_build_shared=no
  6954. ;;
  6955. uts4*)
  6956. lt_prog_compiler_pic='-pic'
  6957. lt_prog_compiler_static='-Bstatic'
  6958. ;;
  6959. *)
  6960. lt_prog_compiler_can_build_shared=no
  6961. ;;
  6962. esac
  6963. fi
  6964. case $host_os in
  6965. # For platforms which do not support PIC, -DPIC is meaningless:
  6966. *djgpp*)
  6967. lt_prog_compiler_pic=
  6968. ;;
  6969. *)
  6970. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  6971. ;;
  6972. esac
  6973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  6974. $as_echo "$lt_prog_compiler_pic" >&6; }
  6975. #
  6976. # Check to make sure the PIC flag actually works.
  6977. #
  6978. if test -n "$lt_prog_compiler_pic"; then
  6979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  6980. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  6981. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  6982. $as_echo_n "(cached) " >&6
  6983. else
  6984. lt_cv_prog_compiler_pic_works=no
  6985. ac_outfile=conftest.$ac_objext
  6986. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6987. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  6988. # Insert the option either (1) after the last *FLAGS variable, or
  6989. # (2) before a word containing "conftest.", or (3) at the end.
  6990. # Note that $ac_compile itself does not contain backslashes and begins
  6991. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6992. # The option is referenced via a variable to avoid confusing sed.
  6993. lt_compile=`echo "$ac_compile" | $SED \
  6994. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6995. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6996. -e 's:$: $lt_compiler_flag:'`
  6997. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6998. (eval "$lt_compile" 2>conftest.err)
  6999. ac_status=$?
  7000. cat conftest.err >&5
  7001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7002. if (exit $ac_status) && test -s "$ac_outfile"; then
  7003. # The compiler can only warn and ignore the option if not recognized
  7004. # So say no if there are warnings other than the usual output.
  7005. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7006. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7007. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7008. lt_cv_prog_compiler_pic_works=yes
  7009. fi
  7010. fi
  7011. $RM conftest*
  7012. fi
  7013. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7014. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7015. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7016. case $lt_prog_compiler_pic in
  7017. "" | " "*) ;;
  7018. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7019. esac
  7020. else
  7021. lt_prog_compiler_pic=
  7022. lt_prog_compiler_can_build_shared=no
  7023. fi
  7024. fi
  7025. #
  7026. # Check to make sure the static flag actually works.
  7027. #
  7028. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7030. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7031. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. lt_cv_prog_compiler_static_works=no
  7035. save_LDFLAGS="$LDFLAGS"
  7036. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7037. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7038. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7039. # The linker can only warn and ignore the option if not recognized
  7040. # So say no if there are warnings
  7041. if test -s conftest.err; then
  7042. # Append any errors to the config.log.
  7043. cat conftest.err 1>&5
  7044. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7045. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7046. if diff conftest.exp conftest.er2 >/dev/null; then
  7047. lt_cv_prog_compiler_static_works=yes
  7048. fi
  7049. else
  7050. lt_cv_prog_compiler_static_works=yes
  7051. fi
  7052. fi
  7053. $RM -r conftest*
  7054. LDFLAGS="$save_LDFLAGS"
  7055. fi
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7057. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7058. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7059. :
  7060. else
  7061. lt_prog_compiler_static=
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7064. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7065. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7066. $as_echo_n "(cached) " >&6
  7067. else
  7068. lt_cv_prog_compiler_c_o=no
  7069. $RM -r conftest 2>/dev/null
  7070. mkdir conftest
  7071. cd conftest
  7072. mkdir out
  7073. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7074. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7075. # Insert the option either (1) after the last *FLAGS variable, or
  7076. # (2) before a word containing "conftest.", or (3) at the end.
  7077. # Note that $ac_compile itself does not contain backslashes and begins
  7078. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7079. lt_compile=`echo "$ac_compile" | $SED \
  7080. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7081. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7082. -e 's:$: $lt_compiler_flag:'`
  7083. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7084. (eval "$lt_compile" 2>out/conftest.err)
  7085. ac_status=$?
  7086. cat out/conftest.err >&5
  7087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7088. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7089. then
  7090. # The compiler can only warn and ignore the option if not recognized
  7091. # So say no if there are warnings
  7092. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7093. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7094. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7095. lt_cv_prog_compiler_c_o=yes
  7096. fi
  7097. fi
  7098. chmod u+w . 2>&5
  7099. $RM conftest*
  7100. # SGI C++ compiler will create directory out/ii_files/ for
  7101. # template instantiation
  7102. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7103. $RM out/* && rmdir out
  7104. cd ..
  7105. $RM -r conftest
  7106. $RM conftest*
  7107. fi
  7108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7109. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7111. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7112. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7113. $as_echo_n "(cached) " >&6
  7114. else
  7115. lt_cv_prog_compiler_c_o=no
  7116. $RM -r conftest 2>/dev/null
  7117. mkdir conftest
  7118. cd conftest
  7119. mkdir out
  7120. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7121. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7122. # Insert the option either (1) after the last *FLAGS variable, or
  7123. # (2) before a word containing "conftest.", or (3) at the end.
  7124. # Note that $ac_compile itself does not contain backslashes and begins
  7125. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7126. lt_compile=`echo "$ac_compile" | $SED \
  7127. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7128. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7129. -e 's:$: $lt_compiler_flag:'`
  7130. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7131. (eval "$lt_compile" 2>out/conftest.err)
  7132. ac_status=$?
  7133. cat out/conftest.err >&5
  7134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7135. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7136. then
  7137. # The compiler can only warn and ignore the option if not recognized
  7138. # So say no if there are warnings
  7139. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7140. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7141. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7142. lt_cv_prog_compiler_c_o=yes
  7143. fi
  7144. fi
  7145. chmod u+w . 2>&5
  7146. $RM conftest*
  7147. # SGI C++ compiler will create directory out/ii_files/ for
  7148. # template instantiation
  7149. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7150. $RM out/* && rmdir out
  7151. cd ..
  7152. $RM -r conftest
  7153. $RM conftest*
  7154. fi
  7155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7156. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7157. hard_links="nottested"
  7158. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7159. # do not overwrite the value of need_locks provided by the user
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7161. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7162. hard_links=yes
  7163. $RM conftest*
  7164. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7165. touch conftest.a
  7166. ln conftest.a conftest.b 2>&5 || hard_links=no
  7167. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7168. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7169. $as_echo "$hard_links" >&6; }
  7170. if test "$hard_links" = no; then
  7171. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7172. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7173. need_locks=warn
  7174. fi
  7175. else
  7176. need_locks=no
  7177. fi
  7178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7179. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7180. runpath_var=
  7181. allow_undefined_flag=
  7182. always_export_symbols=no
  7183. archive_cmds=
  7184. archive_expsym_cmds=
  7185. compiler_needs_object=no
  7186. enable_shared_with_static_runtimes=no
  7187. export_dynamic_flag_spec=
  7188. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7189. hardcode_automatic=no
  7190. hardcode_direct=no
  7191. hardcode_direct_absolute=no
  7192. hardcode_libdir_flag_spec=
  7193. hardcode_libdir_flag_spec_ld=
  7194. hardcode_libdir_separator=
  7195. hardcode_minus_L=no
  7196. hardcode_shlibpath_var=unsupported
  7197. inherit_rpath=no
  7198. link_all_deplibs=unknown
  7199. module_cmds=
  7200. module_expsym_cmds=
  7201. old_archive_from_new_cmds=
  7202. old_archive_from_expsyms_cmds=
  7203. thread_safe_flag_spec=
  7204. whole_archive_flag_spec=
  7205. # include_expsyms should be a list of space-separated symbols to be *always*
  7206. # included in the symbol list
  7207. include_expsyms=
  7208. # exclude_expsyms can be an extended regexp of symbols to exclude
  7209. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7210. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7211. # as well as any symbol that contains `d'.
  7212. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7213. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7214. # platforms (ab)use it in PIC code, but their linkers get confused if
  7215. # the symbol is explicitly referenced. Since portable code cannot
  7216. # rely on this symbol name, it's probably fine to never include it in
  7217. # preloaded symbol tables.
  7218. # Exclude shared library initialization/finalization symbols.
  7219. extract_expsyms_cmds=
  7220. case $host_os in
  7221. cygwin* | mingw* | pw32* | cegcc*)
  7222. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7223. # When not using gcc, we currently assume that we are using
  7224. # Microsoft Visual C++.
  7225. if test "$GCC" != yes; then
  7226. with_gnu_ld=no
  7227. fi
  7228. ;;
  7229. interix*)
  7230. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7231. with_gnu_ld=yes
  7232. ;;
  7233. openbsd*)
  7234. with_gnu_ld=no
  7235. ;;
  7236. esac
  7237. ld_shlibs=yes
  7238. # On some targets, GNU ld is compatible enough with the native linker
  7239. # that we're better off using the native interface for both.
  7240. lt_use_gnu_ld_interface=no
  7241. if test "$with_gnu_ld" = yes; then
  7242. case $host_os in
  7243. aix*)
  7244. # The AIX port of GNU ld has always aspired to compatibility
  7245. # with the native linker. However, as the warning in the GNU ld
  7246. # block says, versions before 2.19.5* couldn't really create working
  7247. # shared libraries, regardless of the interface used.
  7248. case `$LD -v 2>&1` in
  7249. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7250. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7251. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7252. *)
  7253. lt_use_gnu_ld_interface=yes
  7254. ;;
  7255. esac
  7256. ;;
  7257. *)
  7258. lt_use_gnu_ld_interface=yes
  7259. ;;
  7260. esac
  7261. fi
  7262. if test "$lt_use_gnu_ld_interface" = yes; then
  7263. # If archive_cmds runs LD, not CC, wlarc should be empty
  7264. wlarc='${wl}'
  7265. # Set some defaults for GNU ld with shared library support. These
  7266. # are reset later if shared libraries are not supported. Putting them
  7267. # here allows them to be overridden if necessary.
  7268. runpath_var=LD_RUN_PATH
  7269. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7270. export_dynamic_flag_spec='${wl}--export-dynamic'
  7271. # ancient GNU ld didn't support --whole-archive et. al.
  7272. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7273. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7274. else
  7275. whole_archive_flag_spec=
  7276. fi
  7277. supports_anon_versioning=no
  7278. case `$LD -v 2>&1` in
  7279. *GNU\ gold*) supports_anon_versioning=yes ;;
  7280. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7281. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7282. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7283. *\ 2.11.*) ;; # other 2.11 versions
  7284. *) supports_anon_versioning=yes ;;
  7285. esac
  7286. # See if GNU ld supports shared libraries.
  7287. case $host_os in
  7288. aix[3-9]*)
  7289. # On AIX/PPC, the GNU linker is very broken
  7290. if test "$host_cpu" != ia64; then
  7291. ld_shlibs=no
  7292. cat <<_LT_EOF 1>&2
  7293. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7294. *** to be unable to reliably create shared libraries on AIX.
  7295. *** Therefore, libtool is disabling shared libraries support. If you
  7296. *** really care for shared libraries, you may want to install binutils
  7297. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7298. *** You will then need to restart the configuration process.
  7299. _LT_EOF
  7300. fi
  7301. ;;
  7302. amigaos*)
  7303. case $host_cpu in
  7304. powerpc)
  7305. # see comment about AmigaOS4 .so support
  7306. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7307. archive_expsym_cmds=''
  7308. ;;
  7309. m68k)
  7310. 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)'
  7311. hardcode_libdir_flag_spec='-L$libdir'
  7312. hardcode_minus_L=yes
  7313. ;;
  7314. esac
  7315. ;;
  7316. beos*)
  7317. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7318. allow_undefined_flag=unsupported
  7319. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7320. # support --undefined. This deserves some investigation. FIXME
  7321. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7322. else
  7323. ld_shlibs=no
  7324. fi
  7325. ;;
  7326. cygwin* | mingw* | pw32* | cegcc*)
  7327. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7328. # as there is no search path for DLLs.
  7329. hardcode_libdir_flag_spec='-L$libdir'
  7330. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7331. allow_undefined_flag=unsupported
  7332. always_export_symbols=no
  7333. enable_shared_with_static_runtimes=yes
  7334. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7335. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7336. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7337. # If the export-symbols file already is a .def file (1st line
  7338. # is EXPORTS), use it as is; otherwise, prepend...
  7339. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7340. cp $export_symbols $output_objdir/$soname.def;
  7341. else
  7342. echo EXPORTS > $output_objdir/$soname.def;
  7343. cat $export_symbols >> $output_objdir/$soname.def;
  7344. fi~
  7345. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7346. else
  7347. ld_shlibs=no
  7348. fi
  7349. ;;
  7350. haiku*)
  7351. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7352. link_all_deplibs=yes
  7353. ;;
  7354. interix[3-9]*)
  7355. hardcode_direct=no
  7356. hardcode_shlibpath_var=no
  7357. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7358. export_dynamic_flag_spec='${wl}-E'
  7359. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7360. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7361. # default) and relocated if they conflict, which is a slow very memory
  7362. # consuming and fragmenting process. To avoid this, we pick a random,
  7363. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7364. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7365. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7366. 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'
  7367. ;;
  7368. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7369. tmp_diet=no
  7370. if test "$host_os" = linux-dietlibc; then
  7371. case $cc_basename in
  7372. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7373. esac
  7374. fi
  7375. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7376. && test "$tmp_diet" = no
  7377. then
  7378. tmp_addflag=' $pic_flag'
  7379. tmp_sharedflag='-shared'
  7380. case $cc_basename,$host_cpu in
  7381. pgcc*) # Portland Group C compiler
  7382. 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'
  7383. tmp_addflag=' $pic_flag'
  7384. ;;
  7385. pgf77* | pgf90* | pgf95* | pgfortran*)
  7386. # Portland Group f77 and f90 compilers
  7387. 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'
  7388. tmp_addflag=' $pic_flag -Mnomain' ;;
  7389. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7390. tmp_addflag=' -i_dynamic' ;;
  7391. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7392. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7393. ifc* | ifort*) # Intel Fortran compiler
  7394. tmp_addflag=' -nofor_main' ;;
  7395. lf95*) # Lahey Fortran 8.1
  7396. whole_archive_flag_spec=
  7397. tmp_sharedflag='--shared' ;;
  7398. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7399. tmp_sharedflag='-qmkshrobj'
  7400. tmp_addflag= ;;
  7401. nvcc*) # Cuda Compiler Driver 2.2
  7402. 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'
  7403. compiler_needs_object=yes
  7404. ;;
  7405. esac
  7406. case `$CC -V 2>&1 | sed 5q` in
  7407. *Sun\ C*) # Sun C 5.9
  7408. 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'
  7409. compiler_needs_object=yes
  7410. tmp_sharedflag='-G' ;;
  7411. *Sun\ F*) # Sun Fortran 8.3
  7412. tmp_sharedflag='-G' ;;
  7413. esac
  7414. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7415. if test "x$supports_anon_versioning" = xyes; then
  7416. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7417. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7418. echo "local: *; };" >> $output_objdir/$libname.ver~
  7419. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7420. fi
  7421. case $cc_basename in
  7422. xlf* | bgf* | bgxlf* | mpixlf*)
  7423. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7424. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7425. hardcode_libdir_flag_spec=
  7426. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  7427. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7428. if test "x$supports_anon_versioning" = xyes; then
  7429. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7430. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7431. echo "local: *; };" >> $output_objdir/$libname.ver~
  7432. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7433. fi
  7434. ;;
  7435. esac
  7436. else
  7437. ld_shlibs=no
  7438. fi
  7439. ;;
  7440. netbsd*)
  7441. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7442. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7443. wlarc=
  7444. else
  7445. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7446. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7447. fi
  7448. ;;
  7449. solaris*)
  7450. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7451. ld_shlibs=no
  7452. cat <<_LT_EOF 1>&2
  7453. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7454. *** create shared libraries on Solaris systems. Therefore, libtool
  7455. *** is disabling shared libraries support. We urge you to upgrade GNU
  7456. *** binutils to release 2.9.1 or newer. Another option is to modify
  7457. *** your PATH or compiler configuration so that the native linker is
  7458. *** used, and then restart.
  7459. _LT_EOF
  7460. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7461. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7462. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7463. else
  7464. ld_shlibs=no
  7465. fi
  7466. ;;
  7467. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7468. case `$LD -v 2>&1` in
  7469. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7470. ld_shlibs=no
  7471. cat <<_LT_EOF 1>&2
  7472. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7473. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7474. *** is disabling shared libraries support. We urge you to upgrade GNU
  7475. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7476. *** your PATH or compiler configuration so that the native linker is
  7477. *** used, and then restart.
  7478. _LT_EOF
  7479. ;;
  7480. *)
  7481. # For security reasons, it is highly recommended that you always
  7482. # use absolute paths for naming shared libraries, and exclude the
  7483. # DT_RUNPATH tag from executables and libraries. But doing so
  7484. # requires that you compile everything twice, which is a pain.
  7485. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7486. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7487. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7488. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7489. else
  7490. ld_shlibs=no
  7491. fi
  7492. ;;
  7493. esac
  7494. ;;
  7495. sunos4*)
  7496. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7497. wlarc=
  7498. hardcode_direct=yes
  7499. hardcode_shlibpath_var=no
  7500. ;;
  7501. *)
  7502. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7503. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7504. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7505. else
  7506. ld_shlibs=no
  7507. fi
  7508. ;;
  7509. esac
  7510. if test "$ld_shlibs" = no; then
  7511. runpath_var=
  7512. hardcode_libdir_flag_spec=
  7513. export_dynamic_flag_spec=
  7514. whole_archive_flag_spec=
  7515. fi
  7516. else
  7517. # PORTME fill in a description of your system's linker (not GNU ld)
  7518. case $host_os in
  7519. aix3*)
  7520. allow_undefined_flag=unsupported
  7521. always_export_symbols=yes
  7522. 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'
  7523. # Note: this linker hardcodes the directories in LIBPATH if there
  7524. # are no directories specified by -L.
  7525. hardcode_minus_L=yes
  7526. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7527. # Neither direct hardcoding nor static linking is supported with a
  7528. # broken collect2.
  7529. hardcode_direct=unsupported
  7530. fi
  7531. ;;
  7532. aix[4-9]*)
  7533. if test "$host_cpu" = ia64; then
  7534. # On IA64, the linker does run time linking by default, so we don't
  7535. # have to do anything special.
  7536. aix_use_runtimelinking=no
  7537. exp_sym_flag='-Bexport'
  7538. no_entry_flag=""
  7539. else
  7540. # If we're using GNU nm, then we don't want the "-C" option.
  7541. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7542. # Also, AIX nm treats weak defined symbols like other global
  7543. # defined symbols, whereas GNU nm marks them as "W".
  7544. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7545. 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'
  7546. else
  7547. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7548. fi
  7549. aix_use_runtimelinking=no
  7550. # Test if we are trying to use run time linking or normal
  7551. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7552. # need to do runtime linking.
  7553. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7554. for ld_flag in $LDFLAGS; do
  7555. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7556. aix_use_runtimelinking=yes
  7557. break
  7558. fi
  7559. done
  7560. ;;
  7561. esac
  7562. exp_sym_flag='-bexport'
  7563. no_entry_flag='-bnoentry'
  7564. fi
  7565. # When large executables or shared objects are built, AIX ld can
  7566. # have problems creating the table of contents. If linking a library
  7567. # or program results in "error TOC overflow" add -mminimal-toc to
  7568. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7569. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7570. archive_cmds=''
  7571. hardcode_direct=yes
  7572. hardcode_direct_absolute=yes
  7573. hardcode_libdir_separator=':'
  7574. link_all_deplibs=yes
  7575. file_list_spec='${wl}-f,'
  7576. if test "$GCC" = yes; then
  7577. case $host_os in aix4.[012]|aix4.[012].*)
  7578. # We only want to do this on AIX 4.2 and lower, the check
  7579. # below for broken collect2 doesn't work under 4.3+
  7580. collect2name=`${CC} -print-prog-name=collect2`
  7581. if test -f "$collect2name" &&
  7582. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7583. then
  7584. # We have reworked collect2
  7585. :
  7586. else
  7587. # We have old collect2
  7588. hardcode_direct=unsupported
  7589. # It fails to find uninstalled libraries when the uninstalled
  7590. # path is not listed in the libpath. Setting hardcode_minus_L
  7591. # to unsupported forces relinking
  7592. hardcode_minus_L=yes
  7593. hardcode_libdir_flag_spec='-L$libdir'
  7594. hardcode_libdir_separator=
  7595. fi
  7596. ;;
  7597. esac
  7598. shared_flag='-shared'
  7599. if test "$aix_use_runtimelinking" = yes; then
  7600. shared_flag="$shared_flag "'${wl}-G'
  7601. fi
  7602. else
  7603. # not using gcc
  7604. if test "$host_cpu" = ia64; then
  7605. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7606. # chokes on -Wl,-G. The following line is correct:
  7607. shared_flag='-G'
  7608. else
  7609. if test "$aix_use_runtimelinking" = yes; then
  7610. shared_flag='${wl}-G'
  7611. else
  7612. shared_flag='${wl}-bM:SRE'
  7613. fi
  7614. fi
  7615. fi
  7616. export_dynamic_flag_spec='${wl}-bexpall'
  7617. # It seems that -bexpall does not export symbols beginning with
  7618. # underscore (_), so it is better to generate a list of symbols to export.
  7619. always_export_symbols=yes
  7620. if test "$aix_use_runtimelinking" = yes; then
  7621. # Warning - without using the other runtime loading flags (-brtl),
  7622. # -berok will link without error, but may produce a broken library.
  7623. allow_undefined_flag='-berok'
  7624. # Determine the default libpath from the value encoded in an
  7625. # empty executable.
  7626. if test x$gcc_no_link = xyes; then
  7627. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7628. fi
  7629. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7630. /* end confdefs.h. */
  7631. int
  7632. main ()
  7633. {
  7634. ;
  7635. return 0;
  7636. }
  7637. _ACEOF
  7638. if ac_fn_c_try_link "$LINENO"; then :
  7639. lt_aix_libpath_sed='
  7640. /Import File Strings/,/^$/ {
  7641. /^0/ {
  7642. s/^0 *\(.*\)$/\1/
  7643. p
  7644. }
  7645. }'
  7646. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7647. # Check for a 64-bit object if we didn't find anything.
  7648. if test -z "$aix_libpath"; then
  7649. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7650. fi
  7651. fi
  7652. rm -f core conftest.err conftest.$ac_objext \
  7653. conftest$ac_exeext conftest.$ac_ext
  7654. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7655. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7656. 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"
  7657. else
  7658. if test "$host_cpu" = ia64; then
  7659. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7660. allow_undefined_flag="-z nodefs"
  7661. 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"
  7662. else
  7663. # Determine the default libpath from the value encoded in an
  7664. # empty executable.
  7665. if test x$gcc_no_link = xyes; then
  7666. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7667. fi
  7668. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7669. /* end confdefs.h. */
  7670. int
  7671. main ()
  7672. {
  7673. ;
  7674. return 0;
  7675. }
  7676. _ACEOF
  7677. if ac_fn_c_try_link "$LINENO"; then :
  7678. lt_aix_libpath_sed='
  7679. /Import File Strings/,/^$/ {
  7680. /^0/ {
  7681. s/^0 *\(.*\)$/\1/
  7682. p
  7683. }
  7684. }'
  7685. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7686. # Check for a 64-bit object if we didn't find anything.
  7687. if test -z "$aix_libpath"; then
  7688. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7689. fi
  7690. fi
  7691. rm -f core conftest.err conftest.$ac_objext \
  7692. conftest$ac_exeext conftest.$ac_ext
  7693. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  7694. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7695. # Warning - without using the other run time loading flags,
  7696. # -berok will link without error, but may produce a broken library.
  7697. no_undefined_flag=' ${wl}-bernotok'
  7698. allow_undefined_flag=' ${wl}-berok'
  7699. if test "$with_gnu_ld" = yes; then
  7700. # We only use this code for GNU lds that support --whole-archive.
  7701. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7702. else
  7703. # Exported symbols can be pulled into shared objects from archives
  7704. whole_archive_flag_spec='$convenience'
  7705. fi
  7706. archive_cmds_need_lc=yes
  7707. # This is similar to how AIX traditionally builds its shared libraries.
  7708. 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'
  7709. fi
  7710. fi
  7711. ;;
  7712. amigaos*)
  7713. case $host_cpu in
  7714. powerpc)
  7715. # see comment about AmigaOS4 .so support
  7716. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7717. archive_expsym_cmds=''
  7718. ;;
  7719. m68k)
  7720. 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)'
  7721. hardcode_libdir_flag_spec='-L$libdir'
  7722. hardcode_minus_L=yes
  7723. ;;
  7724. esac
  7725. ;;
  7726. bsdi[45]*)
  7727. export_dynamic_flag_spec=-rdynamic
  7728. ;;
  7729. cygwin* | mingw* | pw32* | cegcc*)
  7730. # When not using gcc, we currently assume that we are using
  7731. # Microsoft Visual C++.
  7732. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7733. # no search path for DLLs.
  7734. hardcode_libdir_flag_spec=' '
  7735. allow_undefined_flag=unsupported
  7736. # Tell ltmain to make .lib files, not .a files.
  7737. libext=lib
  7738. # Tell ltmain to make .dll files, not .so files.
  7739. shrext_cmds=".dll"
  7740. # FIXME: Setting linknames here is a bad hack.
  7741. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7742. # The linker will automatically build a .lib file if we build a DLL.
  7743. old_archive_from_new_cmds='true'
  7744. # FIXME: Should let the user specify the lib program.
  7745. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7746. fix_srcfile_path='`cygpath -w "$srcfile"`'
  7747. enable_shared_with_static_runtimes=yes
  7748. ;;
  7749. darwin* | rhapsody*)
  7750. archive_cmds_need_lc=no
  7751. hardcode_direct=no
  7752. hardcode_automatic=yes
  7753. hardcode_shlibpath_var=unsupported
  7754. if test "$lt_cv_ld_force_load" = "yes"; then
  7755. 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\"`'
  7756. else
  7757. whole_archive_flag_spec=''
  7758. fi
  7759. link_all_deplibs=yes
  7760. allow_undefined_flag="$_lt_dar_allow_undefined"
  7761. case $cc_basename in
  7762. ifort*) _lt_dar_can_shared=yes ;;
  7763. *) _lt_dar_can_shared=$GCC ;;
  7764. esac
  7765. if test "$_lt_dar_can_shared" = "yes"; then
  7766. output_verbose_link_cmd=func_echo_all
  7767. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7768. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7769. 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}"
  7770. 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}"
  7771. else
  7772. ld_shlibs=no
  7773. fi
  7774. ;;
  7775. dgux*)
  7776. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7777. hardcode_libdir_flag_spec='-L$libdir'
  7778. hardcode_shlibpath_var=no
  7779. ;;
  7780. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7781. # support. Future versions do this automatically, but an explicit c++rt0.o
  7782. # does not break anything, and helps significantly (at the cost of a little
  7783. # extra space).
  7784. freebsd2.2*)
  7785. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7786. hardcode_libdir_flag_spec='-R$libdir'
  7787. hardcode_direct=yes
  7788. hardcode_shlibpath_var=no
  7789. ;;
  7790. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7791. freebsd2.*)
  7792. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7793. hardcode_direct=yes
  7794. hardcode_minus_L=yes
  7795. hardcode_shlibpath_var=no
  7796. ;;
  7797. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7798. freebsd* | dragonfly*)
  7799. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  7800. hardcode_libdir_flag_spec='-R$libdir'
  7801. hardcode_direct=yes
  7802. hardcode_shlibpath_var=no
  7803. ;;
  7804. hpux9*)
  7805. if test "$GCC" = yes; then
  7806. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  7807. else
  7808. 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'
  7809. fi
  7810. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7811. hardcode_libdir_separator=:
  7812. hardcode_direct=yes
  7813. # hardcode_minus_L: Not really in the search PATH,
  7814. # but as the default location of the library.
  7815. hardcode_minus_L=yes
  7816. export_dynamic_flag_spec='${wl}-E'
  7817. ;;
  7818. hpux10*)
  7819. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7820. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7821. else
  7822. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7823. fi
  7824. if test "$with_gnu_ld" = no; then
  7825. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7826. hardcode_libdir_flag_spec_ld='+b $libdir'
  7827. hardcode_libdir_separator=:
  7828. hardcode_direct=yes
  7829. hardcode_direct_absolute=yes
  7830. export_dynamic_flag_spec='${wl}-E'
  7831. # hardcode_minus_L: Not really in the search PATH,
  7832. # but as the default location of the library.
  7833. hardcode_minus_L=yes
  7834. fi
  7835. ;;
  7836. hpux11*)
  7837. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7838. case $host_cpu in
  7839. hppa*64*)
  7840. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7841. ;;
  7842. ia64*)
  7843. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7844. ;;
  7845. *)
  7846. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7847. ;;
  7848. esac
  7849. else
  7850. case $host_cpu in
  7851. hppa*64*)
  7852. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7853. ;;
  7854. ia64*)
  7855. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7856. ;;
  7857. *)
  7858. # Older versions of the 11.00 compiler do not understand -b yet
  7859. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  7860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  7861. $as_echo_n "checking if $CC understands -b... " >&6; }
  7862. if ${lt_cv_prog_compiler__b+:} false; then :
  7863. $as_echo_n "(cached) " >&6
  7864. else
  7865. lt_cv_prog_compiler__b=no
  7866. save_LDFLAGS="$LDFLAGS"
  7867. LDFLAGS="$LDFLAGS -b"
  7868. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7869. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7870. # The linker can only warn and ignore the option if not recognized
  7871. # So say no if there are warnings
  7872. if test -s conftest.err; then
  7873. # Append any errors to the config.log.
  7874. cat conftest.err 1>&5
  7875. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7876. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7877. if diff conftest.exp conftest.er2 >/dev/null; then
  7878. lt_cv_prog_compiler__b=yes
  7879. fi
  7880. else
  7881. lt_cv_prog_compiler__b=yes
  7882. fi
  7883. fi
  7884. $RM -r conftest*
  7885. LDFLAGS="$save_LDFLAGS"
  7886. fi
  7887. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  7888. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  7889. if test x"$lt_cv_prog_compiler__b" = xyes; then
  7890. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7891. else
  7892. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7893. fi
  7894. ;;
  7895. esac
  7896. fi
  7897. if test "$with_gnu_ld" = no; then
  7898. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7899. hardcode_libdir_separator=:
  7900. case $host_cpu in
  7901. hppa*64*|ia64*)
  7902. hardcode_direct=no
  7903. hardcode_shlibpath_var=no
  7904. ;;
  7905. *)
  7906. hardcode_direct=yes
  7907. hardcode_direct_absolute=yes
  7908. export_dynamic_flag_spec='${wl}-E'
  7909. # hardcode_minus_L: Not really in the search PATH,
  7910. # but as the default location of the library.
  7911. hardcode_minus_L=yes
  7912. ;;
  7913. esac
  7914. fi
  7915. ;;
  7916. irix5* | irix6* | nonstopux*)
  7917. if test "$GCC" = yes; then
  7918. archive_cmds='$CC -shared $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'
  7919. # Try to use the -exported_symbol ld option, if it does not
  7920. # work, assume that -exports_file does not work either and
  7921. # implicitly export all symbols.
  7922. save_LDFLAGS="$LDFLAGS"
  7923. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  7924. if test x$gcc_no_link = xyes; then
  7925. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  7926. fi
  7927. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7928. /* end confdefs.h. */
  7929. int foo(void) {}
  7930. _ACEOF
  7931. if ac_fn_c_try_link "$LINENO"; then :
  7932. archive_expsym_cmds='$CC -shared $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'
  7933. fi
  7934. rm -f core conftest.err conftest.$ac_objext \
  7935. conftest$ac_exeext conftest.$ac_ext
  7936. LDFLAGS="$save_LDFLAGS"
  7937. else
  7938. 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'
  7939. 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'
  7940. fi
  7941. archive_cmds_need_lc='no'
  7942. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7943. hardcode_libdir_separator=:
  7944. inherit_rpath=yes
  7945. link_all_deplibs=yes
  7946. ;;
  7947. netbsd*)
  7948. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7949. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  7950. else
  7951. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  7952. fi
  7953. hardcode_libdir_flag_spec='-R$libdir'
  7954. hardcode_direct=yes
  7955. hardcode_shlibpath_var=no
  7956. ;;
  7957. newsos6)
  7958. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7959. hardcode_direct=yes
  7960. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7961. hardcode_libdir_separator=:
  7962. hardcode_shlibpath_var=no
  7963. ;;
  7964. *nto* | *qnx*)
  7965. ;;
  7966. openbsd*)
  7967. if test -f /usr/libexec/ld.so; then
  7968. hardcode_direct=yes
  7969. hardcode_shlibpath_var=no
  7970. hardcode_direct_absolute=yes
  7971. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  7972. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7973. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  7974. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7975. export_dynamic_flag_spec='${wl}-E'
  7976. else
  7977. case $host_os in
  7978. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  7979. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7980. hardcode_libdir_flag_spec='-R$libdir'
  7981. ;;
  7982. *)
  7983. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7984. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7985. ;;
  7986. esac
  7987. fi
  7988. else
  7989. ld_shlibs=no
  7990. fi
  7991. ;;
  7992. os2*)
  7993. hardcode_libdir_flag_spec='-L$libdir'
  7994. hardcode_minus_L=yes
  7995. allow_undefined_flag=unsupported
  7996. 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'
  7997. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  7998. ;;
  7999. osf3*)
  8000. if test "$GCC" = yes; then
  8001. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8002. 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'
  8003. else
  8004. allow_undefined_flag=' -expect_unresolved \*'
  8005. 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'
  8006. fi
  8007. archive_cmds_need_lc='no'
  8008. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8009. hardcode_libdir_separator=:
  8010. ;;
  8011. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8012. if test "$GCC" = yes; then
  8013. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8014. archive_cmds='$CC -shared${allow_undefined_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'
  8015. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8016. else
  8017. allow_undefined_flag=' -expect_unresolved \*'
  8018. 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'
  8019. 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~
  8020. $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'
  8021. # Both c and cxx compiler support -rpath directly
  8022. hardcode_libdir_flag_spec='-rpath $libdir'
  8023. fi
  8024. archive_cmds_need_lc='no'
  8025. hardcode_libdir_separator=:
  8026. ;;
  8027. solaris*)
  8028. no_undefined_flag=' -z defs'
  8029. if test "$GCC" = yes; then
  8030. wlarc='${wl}'
  8031. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8032. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8033. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8034. else
  8035. case `$CC -V 2>&1` in
  8036. *"Compilers 5.0"*)
  8037. wlarc=''
  8038. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8039. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8040. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8041. ;;
  8042. *)
  8043. wlarc='${wl}'
  8044. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8045. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8046. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8047. ;;
  8048. esac
  8049. fi
  8050. hardcode_libdir_flag_spec='-R$libdir'
  8051. hardcode_shlibpath_var=no
  8052. case $host_os in
  8053. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8054. *)
  8055. # The compiler driver will combine and reorder linker options,
  8056. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8057. # but is careful enough not to reorder.
  8058. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8059. if test "$GCC" = yes; then
  8060. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8061. else
  8062. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8063. fi
  8064. ;;
  8065. esac
  8066. link_all_deplibs=yes
  8067. ;;
  8068. sunos4*)
  8069. if test "x$host_vendor" = xsequent; then
  8070. # Use $CC to link under sequent, because it throws in some extra .o
  8071. # files that make .init and .fini sections work.
  8072. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8073. else
  8074. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8075. fi
  8076. hardcode_libdir_flag_spec='-L$libdir'
  8077. hardcode_direct=yes
  8078. hardcode_minus_L=yes
  8079. hardcode_shlibpath_var=no
  8080. ;;
  8081. sysv4)
  8082. case $host_vendor in
  8083. sni)
  8084. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8085. hardcode_direct=yes # is this really true???
  8086. ;;
  8087. siemens)
  8088. ## LD is ld it makes a PLAMLIB
  8089. ## CC just makes a GrossModule.
  8090. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8091. reload_cmds='$CC -r -o $output$reload_objs'
  8092. hardcode_direct=no
  8093. ;;
  8094. motorola)
  8095. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8096. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8097. ;;
  8098. esac
  8099. runpath_var='LD_RUN_PATH'
  8100. hardcode_shlibpath_var=no
  8101. ;;
  8102. sysv4.3*)
  8103. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8104. hardcode_shlibpath_var=no
  8105. export_dynamic_flag_spec='-Bexport'
  8106. ;;
  8107. sysv4*MP*)
  8108. if test -d /usr/nec; then
  8109. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8110. hardcode_shlibpath_var=no
  8111. runpath_var=LD_RUN_PATH
  8112. hardcode_runpath_var=yes
  8113. ld_shlibs=yes
  8114. fi
  8115. ;;
  8116. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8117. no_undefined_flag='${wl}-z,text'
  8118. archive_cmds_need_lc=no
  8119. hardcode_shlibpath_var=no
  8120. runpath_var='LD_RUN_PATH'
  8121. if test "$GCC" = yes; then
  8122. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8123. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8124. else
  8125. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8126. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8127. fi
  8128. ;;
  8129. sysv5* | sco3.2v5* | sco5v6*)
  8130. # Note: We can NOT use -z defs as we might desire, because we do not
  8131. # link with -lc, and that would cause any symbols used from libc to
  8132. # always be unresolved, which means just about no library would
  8133. # ever link correctly. If we're not using GNU ld we use -z text
  8134. # though, which does catch some bad symbols but isn't as heavy-handed
  8135. # as -z defs.
  8136. no_undefined_flag='${wl}-z,text'
  8137. allow_undefined_flag='${wl}-z,nodefs'
  8138. archive_cmds_need_lc=no
  8139. hardcode_shlibpath_var=no
  8140. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8141. hardcode_libdir_separator=':'
  8142. link_all_deplibs=yes
  8143. export_dynamic_flag_spec='${wl}-Bexport'
  8144. runpath_var='LD_RUN_PATH'
  8145. if test "$GCC" = yes; then
  8146. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8147. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8148. else
  8149. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8150. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8151. fi
  8152. ;;
  8153. uts4*)
  8154. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8155. hardcode_libdir_flag_spec='-L$libdir'
  8156. hardcode_shlibpath_var=no
  8157. ;;
  8158. *)
  8159. ld_shlibs=no
  8160. ;;
  8161. esac
  8162. if test x$host_vendor = xsni; then
  8163. case $host in
  8164. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8165. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8166. ;;
  8167. esac
  8168. fi
  8169. fi
  8170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8171. $as_echo "$ld_shlibs" >&6; }
  8172. test "$ld_shlibs" = no && can_build_shared=no
  8173. with_gnu_ld=$with_gnu_ld
  8174. #
  8175. # Do we need to explicitly link libc?
  8176. #
  8177. case "x$archive_cmds_need_lc" in
  8178. x|xyes)
  8179. # Assume -lc should be added
  8180. archive_cmds_need_lc=yes
  8181. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8182. case $archive_cmds in
  8183. *'~'*)
  8184. # FIXME: we may have to deal with multi-command sequences.
  8185. ;;
  8186. '$CC '*)
  8187. # Test whether the compiler implicitly links with -lc since on some
  8188. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8189. # to ld, don't add -lc before -lgcc.
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8191. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8192. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8193. $as_echo_n "(cached) " >&6
  8194. else
  8195. $RM conftest*
  8196. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8197. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8198. (eval $ac_compile) 2>&5
  8199. ac_status=$?
  8200. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8201. test $ac_status = 0; } 2>conftest.err; then
  8202. soname=conftest
  8203. lib=conftest
  8204. libobjs=conftest.$ac_objext
  8205. deplibs=
  8206. wl=$lt_prog_compiler_wl
  8207. pic_flag=$lt_prog_compiler_pic
  8208. compiler_flags=-v
  8209. linker_flags=-v
  8210. verstring=
  8211. output_objdir=.
  8212. libname=conftest
  8213. lt_save_allow_undefined_flag=$allow_undefined_flag
  8214. allow_undefined_flag=
  8215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8216. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8217. ac_status=$?
  8218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8219. test $ac_status = 0; }
  8220. then
  8221. lt_cv_archive_cmds_need_lc=no
  8222. else
  8223. lt_cv_archive_cmds_need_lc=yes
  8224. fi
  8225. allow_undefined_flag=$lt_save_allow_undefined_flag
  8226. else
  8227. cat conftest.err 1>&5
  8228. fi
  8229. $RM conftest*
  8230. fi
  8231. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8232. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8233. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8234. ;;
  8235. esac
  8236. fi
  8237. ;;
  8238. esac
  8239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8240. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8241. if test "$GCC" = yes; then
  8242. case $host_os in
  8243. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8244. *) lt_awk_arg="/^libraries:/" ;;
  8245. esac
  8246. case $host_os in
  8247. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8248. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8249. esac
  8250. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8251. case $lt_search_path_spec in
  8252. *\;*)
  8253. # if the path contains ";" then we assume it to be the separator
  8254. # otherwise default to the standard path separator (i.e. ":") - it is
  8255. # assumed that no part of a normal pathname contains ";" but that should
  8256. # okay in the real world where ";" in dirpaths is itself problematic.
  8257. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8258. ;;
  8259. *)
  8260. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8261. ;;
  8262. esac
  8263. # Ok, now we have the path, separated by spaces, we can step through it
  8264. # and add multilib dir if necessary.
  8265. lt_tmp_lt_search_path_spec=
  8266. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8267. for lt_sys_path in $lt_search_path_spec; do
  8268. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8269. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8270. else
  8271. test -d "$lt_sys_path" && \
  8272. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8273. fi
  8274. done
  8275. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8276. BEGIN {RS=" "; FS="/|\n";} {
  8277. lt_foo="";
  8278. lt_count=0;
  8279. for (lt_i = NF; lt_i > 0; lt_i--) {
  8280. if ($lt_i != "" && $lt_i != ".") {
  8281. if ($lt_i == "..") {
  8282. lt_count++;
  8283. } else {
  8284. if (lt_count == 0) {
  8285. lt_foo="/" $lt_i lt_foo;
  8286. } else {
  8287. lt_count--;
  8288. }
  8289. }
  8290. }
  8291. }
  8292. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8293. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8294. }'`
  8295. # AWK program above erroneously prepends '/' to C:/dos/paths
  8296. # for these hosts.
  8297. case $host_os in
  8298. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8299. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8300. esac
  8301. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8302. else
  8303. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8304. fi
  8305. library_names_spec=
  8306. libname_spec='lib$name'
  8307. soname_spec=
  8308. shrext_cmds=".so"
  8309. postinstall_cmds=
  8310. postuninstall_cmds=
  8311. finish_cmds=
  8312. finish_eval=
  8313. shlibpath_var=
  8314. shlibpath_overrides_runpath=unknown
  8315. version_type=none
  8316. dynamic_linker="$host_os ld.so"
  8317. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8318. need_lib_prefix=unknown
  8319. hardcode_into_libs=no
  8320. # when you set need_version to no, make sure it does not cause -set_version
  8321. # flags to be left without arguments
  8322. need_version=unknown
  8323. case $host_os in
  8324. aix3*)
  8325. version_type=linux
  8326. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8327. shlibpath_var=LIBPATH
  8328. # AIX 3 has no versioning support, so we append a major version to the name.
  8329. soname_spec='${libname}${release}${shared_ext}$major'
  8330. ;;
  8331. aix[4-9]*)
  8332. version_type=linux
  8333. need_lib_prefix=no
  8334. need_version=no
  8335. hardcode_into_libs=yes
  8336. if test "$host_cpu" = ia64; then
  8337. # AIX 5 supports IA64
  8338. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8339. shlibpath_var=LD_LIBRARY_PATH
  8340. else
  8341. # With GCC up to 2.95.x, collect2 would create an import file
  8342. # for dependence libraries. The import file would start with
  8343. # the line `#! .'. This would cause the generated library to
  8344. # depend on `.', always an invalid library. This was fixed in
  8345. # development snapshots of GCC prior to 3.0.
  8346. case $host_os in
  8347. aix4 | aix4.[01] | aix4.[01].*)
  8348. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8349. echo ' yes '
  8350. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8351. :
  8352. else
  8353. can_build_shared=no
  8354. fi
  8355. ;;
  8356. esac
  8357. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8358. # soname into executable. Probably we can add versioning support to
  8359. # collect2, so additional links can be useful in future.
  8360. if test "$aix_use_runtimelinking" = yes; then
  8361. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8362. # instead of lib<name>.a to let people know that these are not
  8363. # typical AIX shared libraries.
  8364. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8365. else
  8366. # We preserve .a as extension for shared libraries through AIX4.2
  8367. # and later when we are not doing run time linking.
  8368. library_names_spec='${libname}${release}.a $libname.a'
  8369. soname_spec='${libname}${release}${shared_ext}$major'
  8370. fi
  8371. shlibpath_var=LIBPATH
  8372. fi
  8373. ;;
  8374. amigaos*)
  8375. case $host_cpu in
  8376. powerpc)
  8377. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8378. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8379. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8380. ;;
  8381. m68k)
  8382. library_names_spec='$libname.ixlibrary $libname.a'
  8383. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8384. 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'
  8385. ;;
  8386. esac
  8387. ;;
  8388. beos*)
  8389. library_names_spec='${libname}${shared_ext}'
  8390. dynamic_linker="$host_os ld.so"
  8391. shlibpath_var=LIBRARY_PATH
  8392. ;;
  8393. bsdi[45]*)
  8394. version_type=linux
  8395. need_version=no
  8396. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8397. soname_spec='${libname}${release}${shared_ext}$major'
  8398. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8399. shlibpath_var=LD_LIBRARY_PATH
  8400. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8401. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8402. # the default ld.so.conf also contains /usr/contrib/lib and
  8403. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8404. # libtool to hard-code these into programs
  8405. ;;
  8406. cygwin* | mingw* | pw32* | cegcc*)
  8407. version_type=windows
  8408. shrext_cmds=".dll"
  8409. need_version=no
  8410. need_lib_prefix=no
  8411. case $GCC,$host_os in
  8412. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  8413. library_names_spec='$libname.dll.a'
  8414. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8415. postinstall_cmds='base_file=`basename \${file}`~
  8416. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8417. dldir=$destdir/`dirname \$dlpath`~
  8418. test -d \$dldir || mkdir -p \$dldir~
  8419. $install_prog $dir/$dlname \$dldir/$dlname~
  8420. chmod a+x \$dldir/$dlname~
  8421. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8422. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8423. fi'
  8424. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8425. dlpath=$dir/\$dldll~
  8426. $RM \$dlpath'
  8427. shlibpath_overrides_runpath=yes
  8428. case $host_os in
  8429. cygwin*)
  8430. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8431. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8432. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8433. ;;
  8434. mingw* | cegcc*)
  8435. # MinGW DLLs use traditional 'lib' prefix
  8436. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8437. ;;
  8438. pw32*)
  8439. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8440. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8441. ;;
  8442. esac
  8443. ;;
  8444. *)
  8445. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8446. ;;
  8447. esac
  8448. dynamic_linker='Win32 ld.exe'
  8449. # FIXME: first we should search . and the directory the executable is in
  8450. shlibpath_var=PATH
  8451. ;;
  8452. darwin* | rhapsody*)
  8453. dynamic_linker="$host_os dyld"
  8454. version_type=darwin
  8455. need_lib_prefix=no
  8456. need_version=no
  8457. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8458. soname_spec='${libname}${release}${major}$shared_ext'
  8459. shlibpath_overrides_runpath=yes
  8460. shlibpath_var=DYLD_LIBRARY_PATH
  8461. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8462. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8463. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8464. ;;
  8465. dgux*)
  8466. version_type=linux
  8467. need_lib_prefix=no
  8468. need_version=no
  8469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8470. soname_spec='${libname}${release}${shared_ext}$major'
  8471. shlibpath_var=LD_LIBRARY_PATH
  8472. ;;
  8473. freebsd* | dragonfly*)
  8474. # DragonFly does not have aout. When/if they implement a new
  8475. # versioning mechanism, adjust this.
  8476. if test -x /usr/bin/objformat; then
  8477. objformat=`/usr/bin/objformat`
  8478. else
  8479. case $host_os in
  8480. freebsd[23].*) objformat=aout ;;
  8481. *) objformat=elf ;;
  8482. esac
  8483. fi
  8484. version_type=freebsd-$objformat
  8485. case $version_type in
  8486. freebsd-elf*)
  8487. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8488. need_version=no
  8489. need_lib_prefix=no
  8490. ;;
  8491. freebsd-*)
  8492. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8493. need_version=yes
  8494. ;;
  8495. esac
  8496. shlibpath_var=LD_LIBRARY_PATH
  8497. case $host_os in
  8498. freebsd2.*)
  8499. shlibpath_overrides_runpath=yes
  8500. ;;
  8501. freebsd3.[01]* | freebsdelf3.[01]*)
  8502. shlibpath_overrides_runpath=yes
  8503. hardcode_into_libs=yes
  8504. ;;
  8505. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8506. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8507. shlibpath_overrides_runpath=no
  8508. hardcode_into_libs=yes
  8509. ;;
  8510. *) # from 4.6 on, and DragonFly
  8511. shlibpath_overrides_runpath=yes
  8512. hardcode_into_libs=yes
  8513. ;;
  8514. esac
  8515. ;;
  8516. haiku*)
  8517. version_type=linux
  8518. need_lib_prefix=no
  8519. need_version=no
  8520. dynamic_linker="$host_os runtime_loader"
  8521. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8522. soname_spec='${libname}${release}${shared_ext}$major'
  8523. shlibpath_var=LIBRARY_PATH
  8524. shlibpath_overrides_runpath=yes
  8525. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8526. hardcode_into_libs=yes
  8527. ;;
  8528. hpux9* | hpux10* | hpux11*)
  8529. # Give a soname corresponding to the major version so that dld.sl refuses to
  8530. # link against other versions.
  8531. version_type=sunos
  8532. need_lib_prefix=no
  8533. need_version=no
  8534. case $host_cpu in
  8535. ia64*)
  8536. shrext_cmds='.so'
  8537. hardcode_into_libs=yes
  8538. dynamic_linker="$host_os dld.so"
  8539. shlibpath_var=LD_LIBRARY_PATH
  8540. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8541. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8542. soname_spec='${libname}${release}${shared_ext}$major'
  8543. if test "X$HPUX_IA64_MODE" = X32; then
  8544. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8545. else
  8546. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8547. fi
  8548. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8549. ;;
  8550. hppa*64*)
  8551. shrext_cmds='.sl'
  8552. hardcode_into_libs=yes
  8553. dynamic_linker="$host_os dld.sl"
  8554. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8555. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8556. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8557. soname_spec='${libname}${release}${shared_ext}$major'
  8558. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8559. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8560. ;;
  8561. *)
  8562. shrext_cmds='.sl'
  8563. dynamic_linker="$host_os dld.sl"
  8564. shlibpath_var=SHLIB_PATH
  8565. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8566. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8567. soname_spec='${libname}${release}${shared_ext}$major'
  8568. ;;
  8569. esac
  8570. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8571. postinstall_cmds='chmod 555 $lib'
  8572. # or fails outright, so override atomically:
  8573. install_override_mode=555
  8574. ;;
  8575. interix[3-9]*)
  8576. version_type=linux
  8577. need_lib_prefix=no
  8578. need_version=no
  8579. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8580. soname_spec='${libname}${release}${shared_ext}$major'
  8581. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8582. shlibpath_var=LD_LIBRARY_PATH
  8583. shlibpath_overrides_runpath=no
  8584. hardcode_into_libs=yes
  8585. ;;
  8586. irix5* | irix6* | nonstopux*)
  8587. case $host_os in
  8588. nonstopux*) version_type=nonstopux ;;
  8589. *)
  8590. if test "$lt_cv_prog_gnu_ld" = yes; then
  8591. version_type=linux
  8592. else
  8593. version_type=irix
  8594. fi ;;
  8595. esac
  8596. need_lib_prefix=no
  8597. need_version=no
  8598. soname_spec='${libname}${release}${shared_ext}$major'
  8599. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8600. case $host_os in
  8601. irix5* | nonstopux*)
  8602. libsuff= shlibsuff=
  8603. ;;
  8604. *)
  8605. case $LD in # libtool.m4 will add one of these switches to LD
  8606. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8607. libsuff= shlibsuff= libmagic=32-bit;;
  8608. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8609. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8610. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8611. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8612. *) libsuff= shlibsuff= libmagic=never-match;;
  8613. esac
  8614. ;;
  8615. esac
  8616. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8617. shlibpath_overrides_runpath=no
  8618. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8619. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8620. hardcode_into_libs=yes
  8621. ;;
  8622. # No shared lib support for Linux oldld, aout, or coff.
  8623. linux*oldld* | linux*aout* | linux*coff*)
  8624. dynamic_linker=no
  8625. ;;
  8626. # This must be Linux ELF.
  8627. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8628. version_type=linux
  8629. need_lib_prefix=no
  8630. need_version=no
  8631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8632. soname_spec='${libname}${release}${shared_ext}$major'
  8633. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8634. shlibpath_var=LD_LIBRARY_PATH
  8635. shlibpath_overrides_runpath=no
  8636. # Some binutils ld are patched to set DT_RUNPATH
  8637. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8638. $as_echo_n "(cached) " >&6
  8639. else
  8640. lt_cv_shlibpath_overrides_runpath=no
  8641. save_LDFLAGS=$LDFLAGS
  8642. save_libdir=$libdir
  8643. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8644. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8645. if test x$gcc_no_link = xyes; then
  8646. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8647. fi
  8648. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8649. /* end confdefs.h. */
  8650. int
  8651. main ()
  8652. {
  8653. ;
  8654. return 0;
  8655. }
  8656. _ACEOF
  8657. if ac_fn_c_try_link "$LINENO"; then :
  8658. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8659. lt_cv_shlibpath_overrides_runpath=yes
  8660. fi
  8661. fi
  8662. rm -f core conftest.err conftest.$ac_objext \
  8663. conftest$ac_exeext conftest.$ac_ext
  8664. LDFLAGS=$save_LDFLAGS
  8665. libdir=$save_libdir
  8666. fi
  8667. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8668. # This implies no fast_install, which is unacceptable.
  8669. # Some rework will be needed to allow for fast_install
  8670. # before this can be enabled.
  8671. hardcode_into_libs=yes
  8672. # Append ld.so.conf contents to the search path
  8673. if test -f /etc/ld.so.conf; then
  8674. 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' ' '`
  8675. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8676. fi
  8677. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8678. # powerpc, because MkLinux only supported shared libraries with the
  8679. # GNU dynamic linker. Since this was broken with cross compilers,
  8680. # most powerpc-linux boxes support dynamic linking these days and
  8681. # people can always --disable-shared, the test was removed, and we
  8682. # assume the GNU/Linux dynamic linker is in use.
  8683. dynamic_linker='GNU/Linux ld.so'
  8684. ;;
  8685. netbsd*)
  8686. version_type=sunos
  8687. need_lib_prefix=no
  8688. need_version=no
  8689. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8690. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8691. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8692. dynamic_linker='NetBSD (a.out) ld.so'
  8693. else
  8694. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8695. soname_spec='${libname}${release}${shared_ext}$major'
  8696. dynamic_linker='NetBSD ld.elf_so'
  8697. fi
  8698. shlibpath_var=LD_LIBRARY_PATH
  8699. shlibpath_overrides_runpath=yes
  8700. hardcode_into_libs=yes
  8701. ;;
  8702. newsos6)
  8703. version_type=linux
  8704. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8705. shlibpath_var=LD_LIBRARY_PATH
  8706. shlibpath_overrides_runpath=yes
  8707. ;;
  8708. *nto* | *qnx*)
  8709. version_type=qnx
  8710. need_lib_prefix=no
  8711. need_version=no
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8713. soname_spec='${libname}${release}${shared_ext}$major'
  8714. shlibpath_var=LD_LIBRARY_PATH
  8715. shlibpath_overrides_runpath=no
  8716. hardcode_into_libs=yes
  8717. dynamic_linker='ldqnx.so'
  8718. ;;
  8719. openbsd*)
  8720. version_type=sunos
  8721. sys_lib_dlsearch_path_spec="/usr/lib"
  8722. need_lib_prefix=no
  8723. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8724. case $host_os in
  8725. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8726. *) need_version=no ;;
  8727. esac
  8728. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8729. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8730. shlibpath_var=LD_LIBRARY_PATH
  8731. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8732. case $host_os in
  8733. openbsd2.[89] | openbsd2.[89].*)
  8734. shlibpath_overrides_runpath=no
  8735. ;;
  8736. *)
  8737. shlibpath_overrides_runpath=yes
  8738. ;;
  8739. esac
  8740. else
  8741. shlibpath_overrides_runpath=yes
  8742. fi
  8743. ;;
  8744. os2*)
  8745. libname_spec='$name'
  8746. shrext_cmds=".dll"
  8747. need_lib_prefix=no
  8748. library_names_spec='$libname${shared_ext} $libname.a'
  8749. dynamic_linker='OS/2 ld.exe'
  8750. shlibpath_var=LIBPATH
  8751. ;;
  8752. osf3* | osf4* | osf5*)
  8753. version_type=osf
  8754. need_lib_prefix=no
  8755. need_version=no
  8756. soname_spec='${libname}${release}${shared_ext}$major'
  8757. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8758. shlibpath_var=LD_LIBRARY_PATH
  8759. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8760. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8761. ;;
  8762. rdos*)
  8763. dynamic_linker=no
  8764. ;;
  8765. solaris*)
  8766. version_type=linux
  8767. need_lib_prefix=no
  8768. need_version=no
  8769. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8770. soname_spec='${libname}${release}${shared_ext}$major'
  8771. shlibpath_var=LD_LIBRARY_PATH
  8772. shlibpath_overrides_runpath=yes
  8773. hardcode_into_libs=yes
  8774. # ldd complains unless libraries are executable
  8775. postinstall_cmds='chmod +x $lib'
  8776. ;;
  8777. sunos4*)
  8778. version_type=sunos
  8779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8780. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  8781. shlibpath_var=LD_LIBRARY_PATH
  8782. shlibpath_overrides_runpath=yes
  8783. if test "$with_gnu_ld" = yes; then
  8784. need_lib_prefix=no
  8785. fi
  8786. need_version=yes
  8787. ;;
  8788. sysv4 | sysv4.3*)
  8789. version_type=linux
  8790. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8791. soname_spec='${libname}${release}${shared_ext}$major'
  8792. shlibpath_var=LD_LIBRARY_PATH
  8793. case $host_vendor in
  8794. sni)
  8795. shlibpath_overrides_runpath=no
  8796. need_lib_prefix=no
  8797. runpath_var=LD_RUN_PATH
  8798. ;;
  8799. siemens)
  8800. need_lib_prefix=no
  8801. ;;
  8802. motorola)
  8803. need_lib_prefix=no
  8804. need_version=no
  8805. shlibpath_overrides_runpath=no
  8806. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  8807. ;;
  8808. esac
  8809. ;;
  8810. sysv4*MP*)
  8811. if test -d /usr/nec ;then
  8812. version_type=linux
  8813. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  8814. soname_spec='$libname${shared_ext}.$major'
  8815. shlibpath_var=LD_LIBRARY_PATH
  8816. fi
  8817. ;;
  8818. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  8819. version_type=freebsd-elf
  8820. need_lib_prefix=no
  8821. need_version=no
  8822. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8823. soname_spec='${libname}${release}${shared_ext}$major'
  8824. shlibpath_var=LD_LIBRARY_PATH
  8825. shlibpath_overrides_runpath=yes
  8826. hardcode_into_libs=yes
  8827. if test "$with_gnu_ld" = yes; then
  8828. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  8829. else
  8830. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  8831. case $host_os in
  8832. sco3.2v5*)
  8833. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  8834. ;;
  8835. esac
  8836. fi
  8837. sys_lib_dlsearch_path_spec='/usr/lib'
  8838. ;;
  8839. tpf*)
  8840. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  8841. version_type=linux
  8842. need_lib_prefix=no
  8843. need_version=no
  8844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8845. shlibpath_var=LD_LIBRARY_PATH
  8846. shlibpath_overrides_runpath=no
  8847. hardcode_into_libs=yes
  8848. ;;
  8849. uts4*)
  8850. version_type=linux
  8851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8852. soname_spec='${libname}${release}${shared_ext}$major'
  8853. shlibpath_var=LD_LIBRARY_PATH
  8854. ;;
  8855. *)
  8856. dynamic_linker=no
  8857. ;;
  8858. esac
  8859. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  8860. $as_echo "$dynamic_linker" >&6; }
  8861. test "$dynamic_linker" = no && can_build_shared=no
  8862. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8863. if test "$GCC" = yes; then
  8864. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8865. fi
  8866. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  8867. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  8868. fi
  8869. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  8870. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  8871. fi
  8872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  8873. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  8874. hardcode_action=
  8875. if test -n "$hardcode_libdir_flag_spec" ||
  8876. test -n "$runpath_var" ||
  8877. test "X$hardcode_automatic" = "Xyes" ; then
  8878. # We can hardcode non-existent directories.
  8879. if test "$hardcode_direct" != no &&
  8880. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  8881. # have to relink, otherwise we might link with an installed library
  8882. # when we should be linking with a yet-to-be-installed one
  8883. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  8884. test "$hardcode_minus_L" != no; then
  8885. # Linking always hardcodes the temporary library directory.
  8886. hardcode_action=relink
  8887. else
  8888. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  8889. hardcode_action=immediate
  8890. fi
  8891. else
  8892. # We cannot hardcode anything, or else we can only hardcode existing
  8893. # directories.
  8894. hardcode_action=unsupported
  8895. fi
  8896. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  8897. $as_echo "$hardcode_action" >&6; }
  8898. if test "$hardcode_action" = relink ||
  8899. test "$inherit_rpath" = yes; then
  8900. # Fast installation is not supported
  8901. enable_fast_install=no
  8902. elif test "$shlibpath_overrides_runpath" = yes ||
  8903. test "$enable_shared" = no; then
  8904. # Fast installation is not necessary
  8905. enable_fast_install=needless
  8906. fi
  8907. if test "x$enable_dlopen" != xyes; then
  8908. enable_dlopen=unknown
  8909. enable_dlopen_self=unknown
  8910. enable_dlopen_self_static=unknown
  8911. else
  8912. lt_cv_dlopen=no
  8913. lt_cv_dlopen_libs=
  8914. case $host_os in
  8915. beos*)
  8916. lt_cv_dlopen="load_add_on"
  8917. lt_cv_dlopen_libs=
  8918. lt_cv_dlopen_self=yes
  8919. ;;
  8920. mingw* | pw32* | cegcc*)
  8921. lt_cv_dlopen="LoadLibrary"
  8922. lt_cv_dlopen_libs=
  8923. ;;
  8924. cygwin*)
  8925. lt_cv_dlopen="dlopen"
  8926. lt_cv_dlopen_libs=
  8927. ;;
  8928. darwin*)
  8929. # if libdl is installed we need to link against it
  8930. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  8931. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  8932. if ${ac_cv_lib_dl_dlopen+:} false; then :
  8933. $as_echo_n "(cached) " >&6
  8934. else
  8935. ac_check_lib_save_LIBS=$LIBS
  8936. LIBS="-ldl $LIBS"
  8937. if test x$gcc_no_link = xyes; then
  8938. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8939. fi
  8940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8941. /* end confdefs.h. */
  8942. /* Override any GCC internal prototype to avoid an error.
  8943. Use char because int might match the return type of a GCC
  8944. builtin and then its argument prototype would still apply. */
  8945. #ifdef __cplusplus
  8946. extern "C"
  8947. #endif
  8948. char dlopen ();
  8949. int
  8950. main ()
  8951. {
  8952. return dlopen ();
  8953. ;
  8954. return 0;
  8955. }
  8956. _ACEOF
  8957. if ac_fn_c_try_link "$LINENO"; then :
  8958. ac_cv_lib_dl_dlopen=yes
  8959. else
  8960. ac_cv_lib_dl_dlopen=no
  8961. fi
  8962. rm -f core conftest.err conftest.$ac_objext \
  8963. conftest$ac_exeext conftest.$ac_ext
  8964. LIBS=$ac_check_lib_save_LIBS
  8965. fi
  8966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  8967. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  8968. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  8969. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  8970. else
  8971. lt_cv_dlopen="dyld"
  8972. lt_cv_dlopen_libs=
  8973. lt_cv_dlopen_self=yes
  8974. fi
  8975. ;;
  8976. *)
  8977. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  8978. if test "x$ac_cv_func_shl_load" = xyes; then :
  8979. lt_cv_dlopen="shl_load"
  8980. else
  8981. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  8982. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  8983. if ${ac_cv_lib_dld_shl_load+:} false; then :
  8984. $as_echo_n "(cached) " >&6
  8985. else
  8986. ac_check_lib_save_LIBS=$LIBS
  8987. LIBS="-ldld $LIBS"
  8988. if test x$gcc_no_link = xyes; then
  8989. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  8990. fi
  8991. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8992. /* end confdefs.h. */
  8993. /* Override any GCC internal prototype to avoid an error.
  8994. Use char because int might match the return type of a GCC
  8995. builtin and then its argument prototype would still apply. */
  8996. #ifdef __cplusplus
  8997. extern "C"
  8998. #endif
  8999. char shl_load ();
  9000. int
  9001. main ()
  9002. {
  9003. return shl_load ();
  9004. ;
  9005. return 0;
  9006. }
  9007. _ACEOF
  9008. if ac_fn_c_try_link "$LINENO"; then :
  9009. ac_cv_lib_dld_shl_load=yes
  9010. else
  9011. ac_cv_lib_dld_shl_load=no
  9012. fi
  9013. rm -f core conftest.err conftest.$ac_objext \
  9014. conftest$ac_exeext conftest.$ac_ext
  9015. LIBS=$ac_check_lib_save_LIBS
  9016. fi
  9017. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9018. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9019. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9020. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9021. else
  9022. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9023. if test "x$ac_cv_func_dlopen" = xyes; then :
  9024. lt_cv_dlopen="dlopen"
  9025. else
  9026. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9027. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9028. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9029. $as_echo_n "(cached) " >&6
  9030. else
  9031. ac_check_lib_save_LIBS=$LIBS
  9032. LIBS="-ldl $LIBS"
  9033. if test x$gcc_no_link = xyes; then
  9034. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9035. fi
  9036. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9037. /* end confdefs.h. */
  9038. /* Override any GCC internal prototype to avoid an error.
  9039. Use char because int might match the return type of a GCC
  9040. builtin and then its argument prototype would still apply. */
  9041. #ifdef __cplusplus
  9042. extern "C"
  9043. #endif
  9044. char dlopen ();
  9045. int
  9046. main ()
  9047. {
  9048. return dlopen ();
  9049. ;
  9050. return 0;
  9051. }
  9052. _ACEOF
  9053. if ac_fn_c_try_link "$LINENO"; then :
  9054. ac_cv_lib_dl_dlopen=yes
  9055. else
  9056. ac_cv_lib_dl_dlopen=no
  9057. fi
  9058. rm -f core conftest.err conftest.$ac_objext \
  9059. conftest$ac_exeext conftest.$ac_ext
  9060. LIBS=$ac_check_lib_save_LIBS
  9061. fi
  9062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9063. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9064. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9065. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9066. else
  9067. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9068. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9069. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9070. $as_echo_n "(cached) " >&6
  9071. else
  9072. ac_check_lib_save_LIBS=$LIBS
  9073. LIBS="-lsvld $LIBS"
  9074. if test x$gcc_no_link = xyes; then
  9075. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9076. fi
  9077. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9078. /* end confdefs.h. */
  9079. /* Override any GCC internal prototype to avoid an error.
  9080. Use char because int might match the return type of a GCC
  9081. builtin and then its argument prototype would still apply. */
  9082. #ifdef __cplusplus
  9083. extern "C"
  9084. #endif
  9085. char dlopen ();
  9086. int
  9087. main ()
  9088. {
  9089. return dlopen ();
  9090. ;
  9091. return 0;
  9092. }
  9093. _ACEOF
  9094. if ac_fn_c_try_link "$LINENO"; then :
  9095. ac_cv_lib_svld_dlopen=yes
  9096. else
  9097. ac_cv_lib_svld_dlopen=no
  9098. fi
  9099. rm -f core conftest.err conftest.$ac_objext \
  9100. conftest$ac_exeext conftest.$ac_ext
  9101. LIBS=$ac_check_lib_save_LIBS
  9102. fi
  9103. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9104. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9105. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9106. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9107. else
  9108. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9109. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9110. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9111. $as_echo_n "(cached) " >&6
  9112. else
  9113. ac_check_lib_save_LIBS=$LIBS
  9114. LIBS="-ldld $LIBS"
  9115. if test x$gcc_no_link = xyes; then
  9116. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9117. fi
  9118. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9119. /* end confdefs.h. */
  9120. /* Override any GCC internal prototype to avoid an error.
  9121. Use char because int might match the return type of a GCC
  9122. builtin and then its argument prototype would still apply. */
  9123. #ifdef __cplusplus
  9124. extern "C"
  9125. #endif
  9126. char dld_link ();
  9127. int
  9128. main ()
  9129. {
  9130. return dld_link ();
  9131. ;
  9132. return 0;
  9133. }
  9134. _ACEOF
  9135. if ac_fn_c_try_link "$LINENO"; then :
  9136. ac_cv_lib_dld_dld_link=yes
  9137. else
  9138. ac_cv_lib_dld_dld_link=no
  9139. fi
  9140. rm -f core conftest.err conftest.$ac_objext \
  9141. conftest$ac_exeext conftest.$ac_ext
  9142. LIBS=$ac_check_lib_save_LIBS
  9143. fi
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9145. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9146. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9147. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9148. fi
  9149. fi
  9150. fi
  9151. fi
  9152. fi
  9153. fi
  9154. ;;
  9155. esac
  9156. if test "x$lt_cv_dlopen" != xno; then
  9157. enable_dlopen=yes
  9158. else
  9159. enable_dlopen=no
  9160. fi
  9161. case $lt_cv_dlopen in
  9162. dlopen)
  9163. save_CPPFLAGS="$CPPFLAGS"
  9164. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9165. save_LDFLAGS="$LDFLAGS"
  9166. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9167. save_LIBS="$LIBS"
  9168. LIBS="$lt_cv_dlopen_libs $LIBS"
  9169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9170. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9171. if ${lt_cv_dlopen_self+:} false; then :
  9172. $as_echo_n "(cached) " >&6
  9173. else
  9174. if test "$cross_compiling" = yes; then :
  9175. lt_cv_dlopen_self=cross
  9176. else
  9177. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9178. lt_status=$lt_dlunknown
  9179. cat > conftest.$ac_ext <<_LT_EOF
  9180. #line 10714 "configure"
  9181. #include "confdefs.h"
  9182. #if HAVE_DLFCN_H
  9183. #include <dlfcn.h>
  9184. #endif
  9185. #include <stdio.h>
  9186. #ifdef RTLD_GLOBAL
  9187. # define LT_DLGLOBAL RTLD_GLOBAL
  9188. #else
  9189. # ifdef DL_GLOBAL
  9190. # define LT_DLGLOBAL DL_GLOBAL
  9191. # else
  9192. # define LT_DLGLOBAL 0
  9193. # endif
  9194. #endif
  9195. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9196. find out it does not work in some platform. */
  9197. #ifndef LT_DLLAZY_OR_NOW
  9198. # ifdef RTLD_LAZY
  9199. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9200. # else
  9201. # ifdef DL_LAZY
  9202. # define LT_DLLAZY_OR_NOW DL_LAZY
  9203. # else
  9204. # ifdef RTLD_NOW
  9205. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9206. # else
  9207. # ifdef DL_NOW
  9208. # define LT_DLLAZY_OR_NOW DL_NOW
  9209. # else
  9210. # define LT_DLLAZY_OR_NOW 0
  9211. # endif
  9212. # endif
  9213. # endif
  9214. # endif
  9215. #endif
  9216. /* When -fvisbility=hidden is used, assume the code has been annotated
  9217. correspondingly for the symbols needed. */
  9218. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9219. void fnord () __attribute__((visibility("default")));
  9220. #endif
  9221. void fnord () { int i=42; }
  9222. int main ()
  9223. {
  9224. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9225. int status = $lt_dlunknown;
  9226. if (self)
  9227. {
  9228. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9229. else
  9230. {
  9231. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9232. else puts (dlerror ());
  9233. }
  9234. /* dlclose (self); */
  9235. }
  9236. else
  9237. puts (dlerror ());
  9238. return status;
  9239. }
  9240. _LT_EOF
  9241. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9242. (eval $ac_link) 2>&5
  9243. ac_status=$?
  9244. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9245. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9246. (./conftest; exit; ) >&5 2>/dev/null
  9247. lt_status=$?
  9248. case x$lt_status in
  9249. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9250. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9251. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9252. esac
  9253. else :
  9254. # compilation failed
  9255. lt_cv_dlopen_self=no
  9256. fi
  9257. fi
  9258. rm -fr conftest*
  9259. fi
  9260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9261. $as_echo "$lt_cv_dlopen_self" >&6; }
  9262. if test "x$lt_cv_dlopen_self" = xyes; then
  9263. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9265. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9266. if ${lt_cv_dlopen_self_static+:} false; then :
  9267. $as_echo_n "(cached) " >&6
  9268. else
  9269. if test "$cross_compiling" = yes; then :
  9270. lt_cv_dlopen_self_static=cross
  9271. else
  9272. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9273. lt_status=$lt_dlunknown
  9274. cat > conftest.$ac_ext <<_LT_EOF
  9275. #line 10820 "configure"
  9276. #include "confdefs.h"
  9277. #if HAVE_DLFCN_H
  9278. #include <dlfcn.h>
  9279. #endif
  9280. #include <stdio.h>
  9281. #ifdef RTLD_GLOBAL
  9282. # define LT_DLGLOBAL RTLD_GLOBAL
  9283. #else
  9284. # ifdef DL_GLOBAL
  9285. # define LT_DLGLOBAL DL_GLOBAL
  9286. # else
  9287. # define LT_DLGLOBAL 0
  9288. # endif
  9289. #endif
  9290. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9291. find out it does not work in some platform. */
  9292. #ifndef LT_DLLAZY_OR_NOW
  9293. # ifdef RTLD_LAZY
  9294. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9295. # else
  9296. # ifdef DL_LAZY
  9297. # define LT_DLLAZY_OR_NOW DL_LAZY
  9298. # else
  9299. # ifdef RTLD_NOW
  9300. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9301. # else
  9302. # ifdef DL_NOW
  9303. # define LT_DLLAZY_OR_NOW DL_NOW
  9304. # else
  9305. # define LT_DLLAZY_OR_NOW 0
  9306. # endif
  9307. # endif
  9308. # endif
  9309. # endif
  9310. #endif
  9311. /* When -fvisbility=hidden is used, assume the code has been annotated
  9312. correspondingly for the symbols needed. */
  9313. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9314. void fnord () __attribute__((visibility("default")));
  9315. #endif
  9316. void fnord () { int i=42; }
  9317. int main ()
  9318. {
  9319. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9320. int status = $lt_dlunknown;
  9321. if (self)
  9322. {
  9323. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9324. else
  9325. {
  9326. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9327. else puts (dlerror ());
  9328. }
  9329. /* dlclose (self); */
  9330. }
  9331. else
  9332. puts (dlerror ());
  9333. return status;
  9334. }
  9335. _LT_EOF
  9336. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9337. (eval $ac_link) 2>&5
  9338. ac_status=$?
  9339. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9340. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9341. (./conftest; exit; ) >&5 2>/dev/null
  9342. lt_status=$?
  9343. case x$lt_status in
  9344. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9345. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9346. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9347. esac
  9348. else :
  9349. # compilation failed
  9350. lt_cv_dlopen_self_static=no
  9351. fi
  9352. fi
  9353. rm -fr conftest*
  9354. fi
  9355. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9356. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9357. fi
  9358. CPPFLAGS="$save_CPPFLAGS"
  9359. LDFLAGS="$save_LDFLAGS"
  9360. LIBS="$save_LIBS"
  9361. ;;
  9362. esac
  9363. case $lt_cv_dlopen_self in
  9364. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9365. *) enable_dlopen_self=unknown ;;
  9366. esac
  9367. case $lt_cv_dlopen_self_static in
  9368. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9369. *) enable_dlopen_self_static=unknown ;;
  9370. esac
  9371. fi
  9372. striplib=
  9373. old_striplib=
  9374. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9375. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9376. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9377. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9378. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9380. $as_echo "yes" >&6; }
  9381. else
  9382. # FIXME - insert some real tests, host_os isn't really good enough
  9383. case $host_os in
  9384. darwin*)
  9385. if test -n "$STRIP" ; then
  9386. striplib="$STRIP -x"
  9387. old_striplib="$STRIP -S"
  9388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9389. $as_echo "yes" >&6; }
  9390. else
  9391. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9392. $as_echo "no" >&6; }
  9393. fi
  9394. ;;
  9395. *)
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9397. $as_echo "no" >&6; }
  9398. ;;
  9399. esac
  9400. fi
  9401. # Report which library types will actually be built
  9402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9403. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9405. $as_echo "$can_build_shared" >&6; }
  9406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9407. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9408. test "$can_build_shared" = "no" && enable_shared=no
  9409. # On AIX, shared libraries and static libraries use the same namespace, and
  9410. # are all built from PIC.
  9411. case $host_os in
  9412. aix3*)
  9413. test "$enable_shared" = yes && enable_static=no
  9414. if test -n "$RANLIB"; then
  9415. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9416. postinstall_cmds='$RANLIB $lib'
  9417. fi
  9418. ;;
  9419. aix[4-9]*)
  9420. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9421. test "$enable_shared" = yes && enable_static=no
  9422. fi
  9423. ;;
  9424. esac
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9426. $as_echo "$enable_shared" >&6; }
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9428. $as_echo_n "checking whether to build static libraries... " >&6; }
  9429. # Make sure either enable_shared or enable_static is yes.
  9430. test "$enable_shared" = yes || enable_static=yes
  9431. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9432. $as_echo "$enable_static" >&6; }
  9433. fi
  9434. ac_ext=c
  9435. ac_cpp='$CPP $CPPFLAGS'
  9436. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9437. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9438. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9439. CC="$lt_save_CC"
  9440. ac_config_commands="$ac_config_commands libtool"
  9441. # Only expand once:
  9442. # Find CPP now so that any conditional tests below won't do it and
  9443. # thereby make the resulting definitions conditional.
  9444. ac_ext=c
  9445. ac_cpp='$CPP $CPPFLAGS'
  9446. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9447. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9448. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9449. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  9450. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  9451. # On Suns, sometimes $CPP names a directory.
  9452. if test -n "$CPP" && test -d "$CPP"; then
  9453. CPP=
  9454. fi
  9455. if test -z "$CPP"; then
  9456. if ${ac_cv_prog_CPP+:} false; then :
  9457. $as_echo_n "(cached) " >&6
  9458. else
  9459. # Double quotes because CPP needs to be expanded
  9460. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  9461. do
  9462. ac_preproc_ok=false
  9463. for ac_c_preproc_warn_flag in '' yes
  9464. do
  9465. # Use a header file that comes with gcc, so configuring glibc
  9466. # with a fresh cross-compiler works.
  9467. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9468. # <limits.h> exists even on freestanding compilers.
  9469. # On the NeXT, cc -E runs the code through the compiler's parser,
  9470. # not just through cpp. "Syntax error" is here to catch this case.
  9471. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9472. /* end confdefs.h. */
  9473. #ifdef __STDC__
  9474. # include <limits.h>
  9475. #else
  9476. # include <assert.h>
  9477. #endif
  9478. Syntax error
  9479. _ACEOF
  9480. if ac_fn_c_try_cpp "$LINENO"; then :
  9481. else
  9482. # Broken: fails on valid input.
  9483. continue
  9484. fi
  9485. rm -f conftest.err conftest.i conftest.$ac_ext
  9486. # OK, works on sane cases. Now check whether nonexistent headers
  9487. # can be detected and how.
  9488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9489. /* end confdefs.h. */
  9490. #include <ac_nonexistent.h>
  9491. _ACEOF
  9492. if ac_fn_c_try_cpp "$LINENO"; then :
  9493. # Broken: success on invalid input.
  9494. continue
  9495. else
  9496. # Passes both tests.
  9497. ac_preproc_ok=:
  9498. break
  9499. fi
  9500. rm -f conftest.err conftest.i conftest.$ac_ext
  9501. done
  9502. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9503. rm -f conftest.i conftest.err conftest.$ac_ext
  9504. if $ac_preproc_ok; then :
  9505. break
  9506. fi
  9507. done
  9508. ac_cv_prog_CPP=$CPP
  9509. fi
  9510. CPP=$ac_cv_prog_CPP
  9511. else
  9512. ac_cv_prog_CPP=$CPP
  9513. fi
  9514. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  9515. $as_echo "$CPP" >&6; }
  9516. ac_preproc_ok=false
  9517. for ac_c_preproc_warn_flag in '' yes
  9518. do
  9519. # Use a header file that comes with gcc, so configuring glibc
  9520. # with a fresh cross-compiler works.
  9521. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9522. # <limits.h> exists even on freestanding compilers.
  9523. # On the NeXT, cc -E runs the code through the compiler's parser,
  9524. # not just through cpp. "Syntax error" is here to catch this case.
  9525. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9526. /* end confdefs.h. */
  9527. #ifdef __STDC__
  9528. # include <limits.h>
  9529. #else
  9530. # include <assert.h>
  9531. #endif
  9532. Syntax error
  9533. _ACEOF
  9534. if ac_fn_c_try_cpp "$LINENO"; then :
  9535. else
  9536. # Broken: fails on valid input.
  9537. continue
  9538. fi
  9539. rm -f conftest.err conftest.i conftest.$ac_ext
  9540. # OK, works on sane cases. Now check whether nonexistent headers
  9541. # can be detected and how.
  9542. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9543. /* end confdefs.h. */
  9544. #include <ac_nonexistent.h>
  9545. _ACEOF
  9546. if ac_fn_c_try_cpp "$LINENO"; then :
  9547. # Broken: success on invalid input.
  9548. continue
  9549. else
  9550. # Passes both tests.
  9551. ac_preproc_ok=:
  9552. break
  9553. fi
  9554. rm -f conftest.err conftest.i conftest.$ac_ext
  9555. done
  9556. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  9557. rm -f conftest.i conftest.err conftest.$ac_ext
  9558. if $ac_preproc_ok; then :
  9559. else
  9560. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  9561. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  9562. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  9563. See \`config.log' for more details" "$LINENO" 5; }
  9564. fi
  9565. ac_ext=c
  9566. ac_cpp='$CPP $CPPFLAGS'
  9567. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9568. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9569. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9570. if test -n "$with_cross_host"; then
  9571. # We are being configured with a cross compiler. AC_REPLACE_FUNCS
  9572. # may not work correctly, because the compiler may not be able to
  9573. # link executables.
  9574. # We assume newlib. This lets us hard-code the functions we know
  9575. # we'll have.
  9576. $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
  9577. $as_echo "#define HAVE_STRERROR 1" >>confdefs.h
  9578. # We ignore --with-system-zlib in this case.
  9579. target_all=libzgcj.la
  9580. else
  9581. if test x$gcc_no_link = xyes; then
  9582. if test "x${ac_cv_func_mmap_fixed_mapped+set}" != xset; then
  9583. ac_cv_func_mmap_fixed_mapped=no
  9584. fi
  9585. fi
  9586. if test "x${ac_cv_func_mmap_fixed_mapped}" != xno; then
  9587. for ac_header in $ac_header_list
  9588. do :
  9589. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9590. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  9591. "
  9592. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  9593. cat >>confdefs.h <<_ACEOF
  9594. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9595. _ACEOF
  9596. fi
  9597. done
  9598. for ac_func in getpagesize
  9599. do :
  9600. ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
  9601. if test "x$ac_cv_func_getpagesize" = xyes; then :
  9602. cat >>confdefs.h <<_ACEOF
  9603. #define HAVE_GETPAGESIZE 1
  9604. _ACEOF
  9605. fi
  9606. done
  9607. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
  9608. $as_echo_n "checking for working mmap... " >&6; }
  9609. if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
  9610. $as_echo_n "(cached) " >&6
  9611. else
  9612. if test "$cross_compiling" = yes; then :
  9613. ac_cv_func_mmap_fixed_mapped=no
  9614. else
  9615. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9616. /* end confdefs.h. */
  9617. $ac_includes_default
  9618. /* malloc might have been renamed as rpl_malloc. */
  9619. #undef malloc
  9620. /* Thanks to Mike Haertel and Jim Avera for this test.
  9621. Here is a matrix of mmap possibilities:
  9622. mmap private not fixed
  9623. mmap private fixed at somewhere currently unmapped
  9624. mmap private fixed at somewhere already mapped
  9625. mmap shared not fixed
  9626. mmap shared fixed at somewhere currently unmapped
  9627. mmap shared fixed at somewhere already mapped
  9628. For private mappings, we should verify that changes cannot be read()
  9629. back from the file, nor mmap's back from the file at a different
  9630. address. (There have been systems where private was not correctly
  9631. implemented like the infamous i386 svr4.0, and systems where the
  9632. VM page cache was not coherent with the file system buffer cache
  9633. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9634. For shared mappings, we should conversely verify that changes get
  9635. propagated back to all the places they're supposed to be.
  9636. Grep wants private fixed already mapped.
  9637. The main things grep needs to know about mmap are:
  9638. * does it exist and is it safe to write into the mmap'd area
  9639. * how to use it (BSD variants) */
  9640. #include <fcntl.h>
  9641. #include <sys/mman.h>
  9642. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9643. char *malloc ();
  9644. #endif
  9645. /* This mess was copied from the GNU getpagesize.h. */
  9646. #ifndef HAVE_GETPAGESIZE
  9647. # ifdef _SC_PAGESIZE
  9648. # define getpagesize() sysconf(_SC_PAGESIZE)
  9649. # else /* no _SC_PAGESIZE */
  9650. # ifdef HAVE_SYS_PARAM_H
  9651. # include <sys/param.h>
  9652. # ifdef EXEC_PAGESIZE
  9653. # define getpagesize() EXEC_PAGESIZE
  9654. # else /* no EXEC_PAGESIZE */
  9655. # ifdef NBPG
  9656. # define getpagesize() NBPG * CLSIZE
  9657. # ifndef CLSIZE
  9658. # define CLSIZE 1
  9659. # endif /* no CLSIZE */
  9660. # else /* no NBPG */
  9661. # ifdef NBPC
  9662. # define getpagesize() NBPC
  9663. # else /* no NBPC */
  9664. # ifdef PAGESIZE
  9665. # define getpagesize() PAGESIZE
  9666. # endif /* PAGESIZE */
  9667. # endif /* no NBPC */
  9668. # endif /* no NBPG */
  9669. # endif /* no EXEC_PAGESIZE */
  9670. # else /* no HAVE_SYS_PARAM_H */
  9671. # define getpagesize() 8192 /* punt totally */
  9672. # endif /* no HAVE_SYS_PARAM_H */
  9673. # endif /* no _SC_PAGESIZE */
  9674. #endif /* no HAVE_GETPAGESIZE */
  9675. int
  9676. main ()
  9677. {
  9678. char *data, *data2, *data3;
  9679. const char *cdata2;
  9680. int i, pagesize;
  9681. int fd, fd2;
  9682. pagesize = getpagesize ();
  9683. /* First, make a file with some known garbage in it. */
  9684. data = (char *) malloc (pagesize);
  9685. if (!data)
  9686. return 1;
  9687. for (i = 0; i < pagesize; ++i)
  9688. *(data + i) = rand ();
  9689. umask (0);
  9690. fd = creat ("conftest.mmap", 0600);
  9691. if (fd < 0)
  9692. return 2;
  9693. if (write (fd, data, pagesize) != pagesize)
  9694. return 3;
  9695. close (fd);
  9696. /* Next, check that the tail of a page is zero-filled. File must have
  9697. non-zero length, otherwise we risk SIGBUS for entire page. */
  9698. fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
  9699. if (fd2 < 0)
  9700. return 4;
  9701. cdata2 = "";
  9702. if (write (fd2, cdata2, 1) != 1)
  9703. return 5;
  9704. data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
  9705. if (data2 == MAP_FAILED)
  9706. return 6;
  9707. for (i = 0; i < pagesize; ++i)
  9708. if (*(data2 + i))
  9709. return 7;
  9710. close (fd2);
  9711. if (munmap (data2, pagesize))
  9712. return 8;
  9713. /* Next, try to mmap the file at a fixed address which already has
  9714. something else allocated at it. If we can, also make sure that
  9715. we see the same garbage. */
  9716. fd = open ("conftest.mmap", O_RDWR);
  9717. if (fd < 0)
  9718. return 9;
  9719. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9720. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9721. return 10;
  9722. for (i = 0; i < pagesize; ++i)
  9723. if (*(data + i) != *(data2 + i))
  9724. return 11;
  9725. /* Finally, make sure that changes to the mapped area do not
  9726. percolate back to the file as seen by read(). (This is a bug on
  9727. some variants of i386 svr4.0.) */
  9728. for (i = 0; i < pagesize; ++i)
  9729. *(data2 + i) = *(data2 + i) + 1;
  9730. data3 = (char *) malloc (pagesize);
  9731. if (!data3)
  9732. return 12;
  9733. if (read (fd, data3, pagesize) != pagesize)
  9734. return 13;
  9735. for (i = 0; i < pagesize; ++i)
  9736. if (*(data + i) != *(data3 + i))
  9737. return 14;
  9738. close (fd);
  9739. return 0;
  9740. }
  9741. _ACEOF
  9742. if ac_fn_c_try_run "$LINENO"; then :
  9743. ac_cv_func_mmap_fixed_mapped=yes
  9744. else
  9745. ac_cv_func_mmap_fixed_mapped=no
  9746. fi
  9747. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  9748. conftest.$ac_objext conftest.beam conftest.$ac_ext
  9749. fi
  9750. fi
  9751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9752. $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
  9753. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9754. $as_echo "#define HAVE_MMAP 1" >>confdefs.h
  9755. fi
  9756. rm -f conftest.mmap conftest.txt
  9757. fi
  9758. for ac_func in memcpy strerror
  9759. do :
  9760. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9761. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  9762. if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
  9763. cat >>confdefs.h <<_ACEOF
  9764. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9765. _ACEOF
  9766. fi
  9767. done
  9768. if test "$with_system_zlib" = yes; then
  9769. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  9770. $as_echo_n "checking for deflate in -lz... " >&6; }
  9771. if ${ac_cv_lib_z_deflate+:} false; then :
  9772. $as_echo_n "(cached) " >&6
  9773. else
  9774. ac_check_lib_save_LIBS=$LIBS
  9775. LIBS="-lz $LIBS"
  9776. if test x$gcc_no_link = xyes; then
  9777. as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
  9778. fi
  9779. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9780. /* end confdefs.h. */
  9781. /* Override any GCC internal prototype to avoid an error.
  9782. Use char because int might match the return type of a GCC
  9783. builtin and then its argument prototype would still apply. */
  9784. #ifdef __cplusplus
  9785. extern "C"
  9786. #endif
  9787. char deflate ();
  9788. int
  9789. main ()
  9790. {
  9791. return deflate ();
  9792. ;
  9793. return 0;
  9794. }
  9795. _ACEOF
  9796. if ac_fn_c_try_link "$LINENO"; then :
  9797. ac_cv_lib_z_deflate=yes
  9798. else
  9799. ac_cv_lib_z_deflate=no
  9800. fi
  9801. rm -f core conftest.err conftest.$ac_objext \
  9802. conftest$ac_exeext conftest.$ac_ext
  9803. LIBS=$ac_check_lib_save_LIBS
  9804. fi
  9805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  9806. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  9807. if test "x$ac_cv_lib_z_deflate" = xyes; then :
  9808. target_all=
  9809. else
  9810. target_all=libzgcj.la
  9811. fi
  9812. else
  9813. target_all=libzgcj.la
  9814. fi
  9815. fi
  9816. for ac_header in unistd.h
  9817. do :
  9818. ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
  9819. if test "x$ac_cv_header_unistd_h" = xyes; then :
  9820. cat >>confdefs.h <<_ACEOF
  9821. #define HAVE_UNISTD_H 1
  9822. _ACEOF
  9823. fi
  9824. done
  9825. if test -n "$with_cross_host" &&
  9826. test x"$with_cross_host" != x"no"; then
  9827. toolexecdir='$(exec_prefix)/$(target_alias)'
  9828. toolexeclibdir='$(toolexecdir)/lib'
  9829. else
  9830. toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
  9831. toolexeclibdir='$(libdir)'
  9832. fi
  9833. if test "$GCC" = yes && $CC -print-multi-os-directory > /dev/null 2>&1; then
  9834. multiosdir=/`$CC -print-multi-os-directory`
  9835. case $multiosdir in
  9836. /.) multiosdir= ;; # Avoid trailing /.
  9837. esac
  9838. else
  9839. multiosdir=
  9840. fi
  9841. toolexeclibdir=${toolexeclibdir}${multiosdir}
  9842. if test -n "$with_target_subdir"; then
  9843. TARGET_LIBRARY_TRUE=
  9844. TARGET_LIBRARY_FALSE='#'
  9845. else
  9846. TARGET_LIBRARY_TRUE='#'
  9847. TARGET_LIBRARY_FALSE=
  9848. fi
  9849. if test "${multilib}" = "yes"; then
  9850. multilib_arg="--enable-multilib"
  9851. else
  9852. multilib_arg=
  9853. fi
  9854. # Check whether --enable-host-shared was given.
  9855. if test "${enable_host_shared+set}" = set; then :
  9856. enableval=$enable_host_shared; PICFLAG=-fPIC
  9857. else
  9858. PICFLAG=
  9859. fi
  9860. ac_config_files="$ac_config_files Makefile"
  9861. cat >confcache <<\_ACEOF
  9862. # This file is a shell script that caches the results of configure
  9863. # tests run on this system so they can be shared between configure
  9864. # scripts and configure runs, see configure's option --config-cache.
  9865. # It is not useful on other systems. If it contains results you don't
  9866. # want to keep, you may remove or edit it.
  9867. #
  9868. # config.status only pays attention to the cache file if you give it
  9869. # the --recheck option to rerun configure.
  9870. #
  9871. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9872. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9873. # following values.
  9874. _ACEOF
  9875. # The following way of writing the cache mishandles newlines in values,
  9876. # but we know of no workaround that is simple, portable, and efficient.
  9877. # So, we kill variables containing newlines.
  9878. # Ultrix sh set writes to stderr and can't be redirected directly,
  9879. # and sets the high bit in the cache file unless we assign to the vars.
  9880. (
  9881. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9882. eval ac_val=\$$ac_var
  9883. case $ac_val in #(
  9884. *${as_nl}*)
  9885. case $ac_var in #(
  9886. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9887. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9888. esac
  9889. case $ac_var in #(
  9890. _ | IFS | as_nl) ;; #(
  9891. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9892. *) { eval $ac_var=; unset $ac_var;} ;;
  9893. esac ;;
  9894. esac
  9895. done
  9896. (set) 2>&1 |
  9897. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9898. *${as_nl}ac_space=\ *)
  9899. # `set' does not quote correctly, so add quotes: double-quote
  9900. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9901. sed -n \
  9902. "s/'/'\\\\''/g;
  9903. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9904. ;; #(
  9905. *)
  9906. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9907. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9908. ;;
  9909. esac |
  9910. sort
  9911. ) |
  9912. sed '
  9913. /^ac_cv_env_/b end
  9914. t clear
  9915. :clear
  9916. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9917. t end
  9918. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9919. :end' >>confcache
  9920. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9921. if test -w "$cache_file"; then
  9922. if test "x$cache_file" != "x/dev/null"; then
  9923. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9924. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9925. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9926. cat confcache >"$cache_file"
  9927. else
  9928. case $cache_file in #(
  9929. */* | ?:*)
  9930. mv -f confcache "$cache_file"$$ &&
  9931. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9932. *)
  9933. mv -f confcache "$cache_file" ;;
  9934. esac
  9935. fi
  9936. fi
  9937. else
  9938. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9939. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9940. fi
  9941. fi
  9942. rm -f confcache
  9943. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9944. # Let make expand exec_prefix.
  9945. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9946. # Transform confdefs.h into DEFS.
  9947. # Protect against shell expansion while executing Makefile rules.
  9948. # Protect against Makefile macro expansion.
  9949. #
  9950. # If the first sed substitution is executed (which looks for macros that
  9951. # take arguments), then branch to the quote section. Otherwise,
  9952. # look for a macro that doesn't take arguments.
  9953. ac_script='
  9954. :mline
  9955. /\\$/{
  9956. N
  9957. s,\\\n,,
  9958. b mline
  9959. }
  9960. t clear
  9961. :clear
  9962. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9963. t quote
  9964. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9965. t quote
  9966. b any
  9967. :quote
  9968. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9969. s/\[/\\&/g
  9970. s/\]/\\&/g
  9971. s/\$/$$/g
  9972. H
  9973. :any
  9974. ${
  9975. g
  9976. s/^\n//
  9977. s/\n/ /g
  9978. p
  9979. }
  9980. '
  9981. DEFS=`sed -n "$ac_script" confdefs.h`
  9982. ac_libobjs=
  9983. ac_ltlibobjs=
  9984. U=
  9985. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9986. # 1. Remove the extension, and $U if already installed.
  9987. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9988. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9989. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9990. # will be set to the directory where LIBOBJS objects are built.
  9991. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9992. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9993. done
  9994. LIBOBJS=$ac_libobjs
  9995. LTLIBOBJS=$ac_ltlibobjs
  9996. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  9997. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  9998. if test -n "$am_sleep_pid"; then
  9999. # Hide warnings about reused PIDs.
  10000. wait $am_sleep_pid 2>/dev/null
  10001. fi
  10002. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10003. $as_echo "done" >&6; }
  10004. if test -n "$EXEEXT"; then
  10005. am__EXEEXT_TRUE=
  10006. am__EXEEXT_FALSE='#'
  10007. else
  10008. am__EXEEXT_TRUE='#'
  10009. am__EXEEXT_FALSE=
  10010. fi
  10011. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10012. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10013. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10014. fi
  10015. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10016. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10017. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10018. fi
  10019. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10020. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10021. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10022. fi
  10023. if test -z "${TARGET_LIBRARY_TRUE}" && test -z "${TARGET_LIBRARY_FALSE}"; then
  10024. as_fn_error $? "conditional \"TARGET_LIBRARY\" was never defined.
  10025. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10026. fi
  10027. : "${CONFIG_STATUS=./config.status}"
  10028. ac_write_fail=0
  10029. ac_clean_files_save=$ac_clean_files
  10030. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10031. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10032. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10033. as_write_fail=0
  10034. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10035. #! $SHELL
  10036. # Generated by $as_me.
  10037. # Run this file to recreate the current configuration.
  10038. # Compiler output produced by configure, useful for debugging
  10039. # configure, is in config.log if it exists.
  10040. debug=false
  10041. ac_cs_recheck=false
  10042. ac_cs_silent=false
  10043. SHELL=\${CONFIG_SHELL-$SHELL}
  10044. export SHELL
  10045. _ASEOF
  10046. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10047. ## -------------------- ##
  10048. ## M4sh Initialization. ##
  10049. ## -------------------- ##
  10050. # Be more Bourne compatible
  10051. DUALCASE=1; export DUALCASE # for MKS sh
  10052. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10053. emulate sh
  10054. NULLCMD=:
  10055. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10056. # is contrary to our usage. Disable this feature.
  10057. alias -g '${1+"$@"}'='"$@"'
  10058. setopt NO_GLOB_SUBST
  10059. else
  10060. case `(set -o) 2>/dev/null` in #(
  10061. *posix*) :
  10062. set -o posix ;; #(
  10063. *) :
  10064. ;;
  10065. esac
  10066. fi
  10067. as_nl='
  10068. '
  10069. export as_nl
  10070. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10071. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10072. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10073. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10074. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10075. # but without wasting forks for bash or zsh.
  10076. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10077. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10078. as_echo='print -r --'
  10079. as_echo_n='print -rn --'
  10080. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10081. as_echo='printf %s\n'
  10082. as_echo_n='printf %s'
  10083. else
  10084. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10085. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10086. as_echo_n='/usr/ucb/echo -n'
  10087. else
  10088. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10089. as_echo_n_body='eval
  10090. arg=$1;
  10091. case $arg in #(
  10092. *"$as_nl"*)
  10093. expr "X$arg" : "X\\(.*\\)$as_nl";
  10094. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10095. esac;
  10096. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10097. '
  10098. export as_echo_n_body
  10099. as_echo_n='sh -c $as_echo_n_body as_echo'
  10100. fi
  10101. export as_echo_body
  10102. as_echo='sh -c $as_echo_body as_echo'
  10103. fi
  10104. # The user is always right.
  10105. if test "${PATH_SEPARATOR+set}" != set; then
  10106. PATH_SEPARATOR=:
  10107. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10108. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10109. PATH_SEPARATOR=';'
  10110. }
  10111. fi
  10112. # IFS
  10113. # We need space, tab and new line, in precisely that order. Quoting is
  10114. # there to prevent editors from complaining about space-tab.
  10115. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10116. # splitting by setting IFS to empty value.)
  10117. IFS=" "" $as_nl"
  10118. # Find who we are. Look in the path if we contain no directory separator.
  10119. as_myself=
  10120. case $0 in #((
  10121. *[\\/]* ) as_myself=$0 ;;
  10122. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10123. for as_dir in $PATH
  10124. do
  10125. IFS=$as_save_IFS
  10126. test -z "$as_dir" && as_dir=.
  10127. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10128. done
  10129. IFS=$as_save_IFS
  10130. ;;
  10131. esac
  10132. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10133. # in which case we are not to be found in the path.
  10134. if test "x$as_myself" = x; then
  10135. as_myself=$0
  10136. fi
  10137. if test ! -f "$as_myself"; then
  10138. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10139. exit 1
  10140. fi
  10141. # Unset variables that we do not need and which cause bugs (e.g. in
  10142. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  10143. # suppresses any "Segmentation fault" message there. '((' could
  10144. # trigger a bug in pdksh 5.2.14.
  10145. for as_var in BASH_ENV ENV MAIL MAILPATH
  10146. do eval test x\${$as_var+set} = xset \
  10147. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  10148. done
  10149. PS1='$ '
  10150. PS2='> '
  10151. PS4='+ '
  10152. # NLS nuisances.
  10153. LC_ALL=C
  10154. export LC_ALL
  10155. LANGUAGE=C
  10156. export LANGUAGE
  10157. # CDPATH.
  10158. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10159. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  10160. # ----------------------------------------
  10161. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  10162. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  10163. # script with STATUS, using 1 if that was 0.
  10164. as_fn_error ()
  10165. {
  10166. as_status=$1; test $as_status -eq 0 && as_status=1
  10167. if test "$4"; then
  10168. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10169. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10170. fi
  10171. $as_echo "$as_me: error: $2" >&2
  10172. as_fn_exit $as_status
  10173. } # as_fn_error
  10174. # as_fn_set_status STATUS
  10175. # -----------------------
  10176. # Set $? to STATUS, without forking.
  10177. as_fn_set_status ()
  10178. {
  10179. return $1
  10180. } # as_fn_set_status
  10181. # as_fn_exit STATUS
  10182. # -----------------
  10183. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10184. as_fn_exit ()
  10185. {
  10186. set +e
  10187. as_fn_set_status $1
  10188. exit $1
  10189. } # as_fn_exit
  10190. # as_fn_unset VAR
  10191. # ---------------
  10192. # Portably unset VAR.
  10193. as_fn_unset ()
  10194. {
  10195. { eval $1=; unset $1;}
  10196. }
  10197. as_unset=as_fn_unset
  10198. # as_fn_append VAR VALUE
  10199. # ----------------------
  10200. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10201. # advantage of any shell optimizations that allow amortized linear growth over
  10202. # repeated appends, instead of the typical quadratic growth present in naive
  10203. # implementations.
  10204. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10205. eval 'as_fn_append ()
  10206. {
  10207. eval $1+=\$2
  10208. }'
  10209. else
  10210. as_fn_append ()
  10211. {
  10212. eval $1=\$$1\$2
  10213. }
  10214. fi # as_fn_append
  10215. # as_fn_arith ARG...
  10216. # ------------------
  10217. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10218. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10219. # must be portable across $(()) and expr.
  10220. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10221. eval 'as_fn_arith ()
  10222. {
  10223. as_val=$(( $* ))
  10224. }'
  10225. else
  10226. as_fn_arith ()
  10227. {
  10228. as_val=`expr "$@" || test $? -eq 1`
  10229. }
  10230. fi # as_fn_arith
  10231. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10232. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10233. as_expr=expr
  10234. else
  10235. as_expr=false
  10236. fi
  10237. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10238. as_basename=basename
  10239. else
  10240. as_basename=false
  10241. fi
  10242. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10243. as_dirname=dirname
  10244. else
  10245. as_dirname=false
  10246. fi
  10247. as_me=`$as_basename -- "$0" ||
  10248. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10249. X"$0" : 'X\(//\)$' \| \
  10250. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10251. $as_echo X/"$0" |
  10252. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10253. s//\1/
  10254. q
  10255. }
  10256. /^X\/\(\/\/\)$/{
  10257. s//\1/
  10258. q
  10259. }
  10260. /^X\/\(\/\).*/{
  10261. s//\1/
  10262. q
  10263. }
  10264. s/.*/./; q'`
  10265. # Avoid depending upon Character Ranges.
  10266. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10267. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10268. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10269. as_cr_digits='0123456789'
  10270. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10271. ECHO_C= ECHO_N= ECHO_T=
  10272. case `echo -n x` in #(((((
  10273. -n*)
  10274. case `echo 'xy\c'` in
  10275. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10276. xy) ECHO_C='\c';;
  10277. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10278. ECHO_T=' ';;
  10279. esac;;
  10280. *)
  10281. ECHO_N='-n';;
  10282. esac
  10283. rm -f conf$$ conf$$.exe conf$$.file
  10284. if test -d conf$$.dir; then
  10285. rm -f conf$$.dir/conf$$.file
  10286. else
  10287. rm -f conf$$.dir
  10288. mkdir conf$$.dir 2>/dev/null
  10289. fi
  10290. if (echo >conf$$.file) 2>/dev/null; then
  10291. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10292. as_ln_s='ln -s'
  10293. # ... but there are two gotchas:
  10294. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10295. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10296. # In both cases, we have to default to `cp -pR'.
  10297. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10298. as_ln_s='cp -pR'
  10299. elif ln conf$$.file conf$$ 2>/dev/null; then
  10300. as_ln_s=ln
  10301. else
  10302. as_ln_s='cp -pR'
  10303. fi
  10304. else
  10305. as_ln_s='cp -pR'
  10306. fi
  10307. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10308. rmdir conf$$.dir 2>/dev/null
  10309. # as_fn_mkdir_p
  10310. # -------------
  10311. # Create "$as_dir" as a directory, including parents if necessary.
  10312. as_fn_mkdir_p ()
  10313. {
  10314. case $as_dir in #(
  10315. -*) as_dir=./$as_dir;;
  10316. esac
  10317. test -d "$as_dir" || eval $as_mkdir_p || {
  10318. as_dirs=
  10319. while :; do
  10320. case $as_dir in #(
  10321. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10322. *) as_qdir=$as_dir;;
  10323. esac
  10324. as_dirs="'$as_qdir' $as_dirs"
  10325. as_dir=`$as_dirname -- "$as_dir" ||
  10326. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10327. X"$as_dir" : 'X\(//\)[^/]' \| \
  10328. X"$as_dir" : 'X\(//\)$' \| \
  10329. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10330. $as_echo X"$as_dir" |
  10331. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10332. s//\1/
  10333. q
  10334. }
  10335. /^X\(\/\/\)[^/].*/{
  10336. s//\1/
  10337. q
  10338. }
  10339. /^X\(\/\/\)$/{
  10340. s//\1/
  10341. q
  10342. }
  10343. /^X\(\/\).*/{
  10344. s//\1/
  10345. q
  10346. }
  10347. s/.*/./; q'`
  10348. test -d "$as_dir" && break
  10349. done
  10350. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10351. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10352. } # as_fn_mkdir_p
  10353. if mkdir -p . 2>/dev/null; then
  10354. as_mkdir_p='mkdir -p "$as_dir"'
  10355. else
  10356. test -d ./-p && rmdir ./-p
  10357. as_mkdir_p=false
  10358. fi
  10359. # as_fn_executable_p FILE
  10360. # -----------------------
  10361. # Test if FILE is an executable regular file.
  10362. as_fn_executable_p ()
  10363. {
  10364. test -f "$1" && test -x "$1"
  10365. } # as_fn_executable_p
  10366. as_test_x='test -x'
  10367. as_executable_p=as_fn_executable_p
  10368. # Sed expression to map a string onto a valid CPP name.
  10369. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10370. # Sed expression to map a string onto a valid variable name.
  10371. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10372. exec 6>&1
  10373. ## ----------------------------------- ##
  10374. ## Main body of $CONFIG_STATUS script. ##
  10375. ## ----------------------------------- ##
  10376. _ASEOF
  10377. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10378. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10379. # Save the log message, to keep $0 and so on meaningful, and to
  10380. # report actual input values of CONFIG_FILES etc. instead of their
  10381. # values after options handling.
  10382. ac_log="
  10383. This file was extended by zlib $as_me 1.1.4, which was
  10384. generated by GNU Autoconf 2.69. Invocation command line was
  10385. CONFIG_FILES = $CONFIG_FILES
  10386. CONFIG_HEADERS = $CONFIG_HEADERS
  10387. CONFIG_LINKS = $CONFIG_LINKS
  10388. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10389. $ $0 $@
  10390. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10391. "
  10392. _ACEOF
  10393. case $ac_config_files in *"
  10394. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10395. esac
  10396. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10397. # Files that config.status was made for.
  10398. config_files="$ac_config_files"
  10399. config_commands="$ac_config_commands"
  10400. _ACEOF
  10401. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10402. ac_cs_usage="\
  10403. \`$as_me' instantiates files and other configuration actions
  10404. from templates according to the current configuration. Unless the files
  10405. and actions are specified as TAGs, all are instantiated by default.
  10406. Usage: $0 [OPTION]... [TAG]...
  10407. -h, --help print this help, then exit
  10408. -V, --version print version number and configuration settings, then exit
  10409. --config print configuration, then exit
  10410. -q, --quiet, --silent
  10411. do not print progress messages
  10412. -d, --debug don't remove temporary files
  10413. --recheck update $as_me by reconfiguring in the same conditions
  10414. --file=FILE[:TEMPLATE]
  10415. instantiate the configuration file FILE
  10416. Configuration files:
  10417. $config_files
  10418. Configuration commands:
  10419. $config_commands
  10420. Report bugs to the package provider."
  10421. _ACEOF
  10422. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10423. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10424. ac_cs_version="\\
  10425. zlib config.status 1.1.4
  10426. configured by $0, generated by GNU Autoconf 2.69,
  10427. with options \\"\$ac_cs_config\\"
  10428. Copyright (C) 2012 Free Software Foundation, Inc.
  10429. This config.status script is free software; the Free Software Foundation
  10430. gives unlimited permission to copy, distribute and modify it."
  10431. ac_pwd='$ac_pwd'
  10432. srcdir='$srcdir'
  10433. INSTALL='$INSTALL'
  10434. MKDIR_P='$MKDIR_P'
  10435. AWK='$AWK'
  10436. test -n "\$AWK" || AWK=awk
  10437. _ACEOF
  10438. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10439. # The default lists apply if the user does not specify any file.
  10440. ac_need_defaults=:
  10441. while test $# != 0
  10442. do
  10443. case $1 in
  10444. --*=?*)
  10445. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10446. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10447. ac_shift=:
  10448. ;;
  10449. --*=)
  10450. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10451. ac_optarg=
  10452. ac_shift=:
  10453. ;;
  10454. *)
  10455. ac_option=$1
  10456. ac_optarg=$2
  10457. ac_shift=shift
  10458. ;;
  10459. esac
  10460. case $ac_option in
  10461. # Handling of the options.
  10462. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10463. ac_cs_recheck=: ;;
  10464. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10465. $as_echo "$ac_cs_version"; exit ;;
  10466. --config | --confi | --conf | --con | --co | --c )
  10467. $as_echo "$ac_cs_config"; exit ;;
  10468. --debug | --debu | --deb | --de | --d | -d )
  10469. debug=: ;;
  10470. --file | --fil | --fi | --f )
  10471. $ac_shift
  10472. case $ac_optarg in
  10473. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10474. '') as_fn_error $? "missing file argument" ;;
  10475. esac
  10476. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10477. ac_need_defaults=false;;
  10478. --he | --h | --help | --hel | -h )
  10479. $as_echo "$ac_cs_usage"; exit ;;
  10480. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10481. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10482. ac_cs_silent=: ;;
  10483. # This is an error.
  10484. -*) as_fn_error $? "unrecognized option: \`$1'
  10485. Try \`$0 --help' for more information." ;;
  10486. *) as_fn_append ac_config_targets " $1"
  10487. ac_need_defaults=false ;;
  10488. esac
  10489. shift
  10490. done
  10491. ac_configure_extra_args=
  10492. if $ac_cs_silent; then
  10493. exec 6>/dev/null
  10494. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10495. fi
  10496. _ACEOF
  10497. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10498. if \$ac_cs_recheck; then
  10499. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10500. shift
  10501. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10502. CONFIG_SHELL='$SHELL'
  10503. export CONFIG_SHELL
  10504. exec "\$@"
  10505. fi
  10506. _ACEOF
  10507. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10508. exec 5>>config.log
  10509. {
  10510. echo
  10511. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10512. ## Running $as_me. ##
  10513. _ASBOX
  10514. $as_echo "$ac_log"
  10515. } >&5
  10516. _ACEOF
  10517. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10518. #
  10519. # INIT-COMMANDS
  10520. #
  10521. srcdir="$srcdir"
  10522. host="$host"
  10523. target="$target"
  10524. with_multisubdir="$with_multisubdir"
  10525. with_multisrctop="$with_multisrctop"
  10526. with_target_subdir="$with_target_subdir"
  10527. ac_configure_args="${multilib_arg} ${ac_configure_args}"
  10528. multi_basedir="$multi_basedir"
  10529. CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  10530. CC="$CC"
  10531. CXX="$CXX"
  10532. GFORTRAN="$GFORTRAN"
  10533. GDC="$GDC"
  10534. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10535. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10536. # if CDPATH is set.
  10537. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10538. sed_quote_subst='$sed_quote_subst'
  10539. double_quote_subst='$double_quote_subst'
  10540. delay_variable_subst='$delay_variable_subst'
  10541. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10542. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10543. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10544. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10545. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10546. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10547. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10548. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10549. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10550. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10551. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10552. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10553. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10554. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10555. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10556. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10557. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10558. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10559. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10560. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10561. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10562. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10563. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10564. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10565. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10566. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10567. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10568. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10569. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10570. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10571. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10572. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10573. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10574. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10575. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10576. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10577. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10578. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10579. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10580. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10581. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10582. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10583. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10584. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10585. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10586. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10587. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10588. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10589. 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"`'
  10590. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10591. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10592. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10593. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10594. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10595. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10596. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10597. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10598. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10599. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10600. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10601. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10602. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10603. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10604. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10605. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10606. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10607. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10608. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10609. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10610. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10611. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10612. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10613. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10614. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10615. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10616. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10617. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10618. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10619. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10620. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10621. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  10622. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10623. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10624. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10625. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10626. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10627. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10628. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10629. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10630. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  10631. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10632. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10633. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10634. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10635. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10636. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10637. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10638. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10639. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10640. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10641. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10642. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10643. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10644. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10645. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10646. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10647. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10648. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10649. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10650. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10651. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10652. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10653. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10654. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10655. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10656. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10657. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10658. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10659. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10660. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10661. LTCC='$LTCC'
  10662. LTCFLAGS='$LTCFLAGS'
  10663. compiler='$compiler_DEFAULT'
  10664. # A function that is used when there is no print builtin or printf.
  10665. func_fallback_echo ()
  10666. {
  10667. eval 'cat <<_LTECHO_EOF
  10668. \$1
  10669. _LTECHO_EOF'
  10670. }
  10671. # Quote evaled strings.
  10672. for var in SHELL \
  10673. ECHO \
  10674. SED \
  10675. GREP \
  10676. EGREP \
  10677. FGREP \
  10678. LD \
  10679. NM \
  10680. LN_S \
  10681. lt_SP2NL \
  10682. lt_NL2SP \
  10683. reload_flag \
  10684. OBJDUMP \
  10685. deplibs_check_method \
  10686. file_magic_cmd \
  10687. AR \
  10688. AR_FLAGS \
  10689. STRIP \
  10690. RANLIB \
  10691. CC \
  10692. CFLAGS \
  10693. compiler \
  10694. lt_cv_sys_global_symbol_pipe \
  10695. lt_cv_sys_global_symbol_to_cdecl \
  10696. lt_cv_sys_global_symbol_to_c_name_address \
  10697. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10698. lt_prog_compiler_no_builtin_flag \
  10699. lt_prog_compiler_wl \
  10700. lt_prog_compiler_pic \
  10701. lt_prog_compiler_static \
  10702. lt_cv_prog_compiler_c_o \
  10703. need_locks \
  10704. DSYMUTIL \
  10705. NMEDIT \
  10706. LIPO \
  10707. OTOOL \
  10708. OTOOL64 \
  10709. shrext_cmds \
  10710. export_dynamic_flag_spec \
  10711. whole_archive_flag_spec \
  10712. compiler_needs_object \
  10713. with_gnu_ld \
  10714. allow_undefined_flag \
  10715. no_undefined_flag \
  10716. hardcode_libdir_flag_spec \
  10717. hardcode_libdir_flag_spec_ld \
  10718. hardcode_libdir_separator \
  10719. fix_srcfile_path \
  10720. exclude_expsyms \
  10721. include_expsyms \
  10722. file_list_spec \
  10723. variables_saved_for_relink \
  10724. libname_spec \
  10725. library_names_spec \
  10726. soname_spec \
  10727. install_override_mode \
  10728. finish_eval \
  10729. old_striplib \
  10730. striplib; do
  10731. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10732. *[\\\\\\\`\\"\\\$]*)
  10733. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10734. ;;
  10735. *)
  10736. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10737. ;;
  10738. esac
  10739. done
  10740. # Double-quote double-evaled strings.
  10741. for var in reload_cmds \
  10742. old_postinstall_cmds \
  10743. old_postuninstall_cmds \
  10744. old_archive_cmds \
  10745. extract_expsyms_cmds \
  10746. old_archive_from_new_cmds \
  10747. old_archive_from_expsyms_cmds \
  10748. archive_cmds \
  10749. archive_expsym_cmds \
  10750. module_cmds \
  10751. module_expsym_cmds \
  10752. export_symbols_cmds \
  10753. prelink_cmds \
  10754. postinstall_cmds \
  10755. postuninstall_cmds \
  10756. finish_cmds \
  10757. sys_lib_search_path_spec \
  10758. sys_lib_dlsearch_path_spec; do
  10759. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10760. *[\\\\\\\`\\"\\\$]*)
  10761. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10762. ;;
  10763. *)
  10764. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10765. ;;
  10766. esac
  10767. done
  10768. ac_aux_dir='$ac_aux_dir'
  10769. xsi_shell='$xsi_shell'
  10770. lt_shell_append='$lt_shell_append'
  10771. # See if we are running on zsh, and set the options which allow our
  10772. # commands through without removal of \ escapes INIT.
  10773. if test -n "\${ZSH_VERSION+set}" ; then
  10774. setopt NO_GLOB_SUBST
  10775. fi
  10776. PACKAGE='$PACKAGE'
  10777. VERSION='$VERSION'
  10778. TIMESTAMP='$TIMESTAMP'
  10779. RM='$RM'
  10780. ofile='$ofile'
  10781. _ACEOF
  10782. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10783. # Handling of arguments.
  10784. for ac_config_target in $ac_config_targets
  10785. do
  10786. case $ac_config_target in
  10787. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  10788. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10789. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10790. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10791. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10792. esac
  10793. done
  10794. # If the user did not use the arguments to specify the items to instantiate,
  10795. # then the envvar interface is used. Set only those that are not.
  10796. # We use the long form for the default assignment because of an extremely
  10797. # bizarre bug on SunOS 4.1.3.
  10798. if $ac_need_defaults; then
  10799. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10800. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10801. fi
  10802. # Have a temporary directory for convenience. Make it in the build tree
  10803. # simply because there is no reason against having it here, and in addition,
  10804. # creating and moving files from /tmp can sometimes cause problems.
  10805. # Hook for its removal unless debugging.
  10806. # Note that there is a small window in which the directory will not be cleaned:
  10807. # after its creation but before its name has been assigned to `$tmp'.
  10808. $debug ||
  10809. {
  10810. tmp= ac_tmp=
  10811. trap 'exit_status=$?
  10812. : "${ac_tmp:=$tmp}"
  10813. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10814. ' 0
  10815. trap 'as_fn_exit 1' 1 2 13 15
  10816. }
  10817. # Create a (secure) tmp directory for tmp files.
  10818. {
  10819. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10820. test -d "$tmp"
  10821. } ||
  10822. {
  10823. tmp=./conf$$-$RANDOM
  10824. (umask 077 && mkdir "$tmp")
  10825. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10826. ac_tmp=$tmp
  10827. # Set up the scripts for CONFIG_FILES section.
  10828. # No need to generate them if there are no CONFIG_FILES.
  10829. # This happens for instance with `./config.status config.h'.
  10830. if test -n "$CONFIG_FILES"; then
  10831. ac_cr=`echo X | tr X '\015'`
  10832. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10833. # But we know of no other shell where ac_cr would be empty at this
  10834. # point, so we can use a bashism as a fallback.
  10835. if test "x$ac_cr" = x; then
  10836. eval ac_cr=\$\'\\r\'
  10837. fi
  10838. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10839. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10840. ac_cs_awk_cr='\\r'
  10841. else
  10842. ac_cs_awk_cr=$ac_cr
  10843. fi
  10844. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10845. _ACEOF
  10846. {
  10847. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10848. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10849. echo "_ACEOF"
  10850. } >conf$$subs.sh ||
  10851. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10852. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10853. ac_delim='%!_!# '
  10854. for ac_last_try in false false false false false :; do
  10855. . ./conf$$subs.sh ||
  10856. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10857. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10858. if test $ac_delim_n = $ac_delim_num; then
  10859. break
  10860. elif $ac_last_try; then
  10861. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10862. else
  10863. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10864. fi
  10865. done
  10866. rm -f conf$$subs.sh
  10867. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10868. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10869. _ACEOF
  10870. sed -n '
  10871. h
  10872. s/^/S["/; s/!.*/"]=/
  10873. p
  10874. g
  10875. s/^[^!]*!//
  10876. :repl
  10877. t repl
  10878. s/'"$ac_delim"'$//
  10879. t delim
  10880. :nl
  10881. h
  10882. s/\(.\{148\}\)..*/\1/
  10883. t more1
  10884. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10885. p
  10886. n
  10887. b repl
  10888. :more1
  10889. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10890. p
  10891. g
  10892. s/.\{148\}//
  10893. t nl
  10894. :delim
  10895. h
  10896. s/\(.\{148\}\)..*/\1/
  10897. t more2
  10898. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10899. p
  10900. b
  10901. :more2
  10902. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10903. p
  10904. g
  10905. s/.\{148\}//
  10906. t delim
  10907. ' <conf$$subs.awk | sed '
  10908. /^[^""]/{
  10909. N
  10910. s/\n//
  10911. }
  10912. ' >>$CONFIG_STATUS || ac_write_fail=1
  10913. rm -f conf$$subs.awk
  10914. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10915. _ACAWK
  10916. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10917. for (key in S) S_is_set[key] = 1
  10918. FS = ""
  10919. }
  10920. {
  10921. line = $ 0
  10922. nfields = split(line, field, "@")
  10923. substed = 0
  10924. len = length(field[1])
  10925. for (i = 2; i < nfields; i++) {
  10926. key = field[i]
  10927. keylen = length(key)
  10928. if (S_is_set[key]) {
  10929. value = S[key]
  10930. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10931. len += length(value) + length(field[++i])
  10932. substed = 1
  10933. } else
  10934. len += 1 + keylen
  10935. }
  10936. print line
  10937. }
  10938. _ACAWK
  10939. _ACEOF
  10940. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10941. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10942. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10943. else
  10944. cat
  10945. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10946. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10947. _ACEOF
  10948. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10949. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10950. # trailing colons and then remove the whole line if VPATH becomes empty
  10951. # (actually we leave an empty line to preserve line numbers).
  10952. if test "x$srcdir" = x.; then
  10953. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10954. h
  10955. s///
  10956. s/^/:/
  10957. s/[ ]*$/:/
  10958. s/:\$(srcdir):/:/g
  10959. s/:\${srcdir}:/:/g
  10960. s/:@srcdir@:/:/g
  10961. s/^:*//
  10962. s/:*$//
  10963. x
  10964. s/\(=[ ]*\).*/\1/
  10965. G
  10966. s/\n//
  10967. s/^[^=]*=[ ]*$//
  10968. }'
  10969. fi
  10970. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10971. fi # test -n "$CONFIG_FILES"
  10972. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10973. shift
  10974. for ac_tag
  10975. do
  10976. case $ac_tag in
  10977. :[FHLC]) ac_mode=$ac_tag; continue;;
  10978. esac
  10979. case $ac_mode$ac_tag in
  10980. :[FHL]*:*);;
  10981. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10982. :[FH]-) ac_tag=-:-;;
  10983. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10984. esac
  10985. ac_save_IFS=$IFS
  10986. IFS=:
  10987. set x $ac_tag
  10988. IFS=$ac_save_IFS
  10989. shift
  10990. ac_file=$1
  10991. shift
  10992. case $ac_mode in
  10993. :L) ac_source=$1;;
  10994. :[FH])
  10995. ac_file_inputs=
  10996. for ac_f
  10997. do
  10998. case $ac_f in
  10999. -) ac_f="$ac_tmp/stdin";;
  11000. *) # Look for the file first in the build tree, then in the source tree
  11001. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11002. # because $ac_f cannot contain `:'.
  11003. test -f "$ac_f" ||
  11004. case $ac_f in
  11005. [\\/$]*) false;;
  11006. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11007. esac ||
  11008. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  11009. esac
  11010. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  11011. as_fn_append ac_file_inputs " '$ac_f'"
  11012. done
  11013. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11014. # use $as_me), people would be surprised to read:
  11015. # /* config.h. Generated by config.status. */
  11016. configure_input='Generated from '`
  11017. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  11018. `' by configure.'
  11019. if test x"$ac_file" != x-; then
  11020. configure_input="$ac_file. $configure_input"
  11021. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  11022. $as_echo "$as_me: creating $ac_file" >&6;}
  11023. fi
  11024. # Neutralize special characters interpreted by sed in replacement strings.
  11025. case $configure_input in #(
  11026. *\&* | *\|* | *\\* )
  11027. ac_sed_conf_input=`$as_echo "$configure_input" |
  11028. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  11029. *) ac_sed_conf_input=$configure_input;;
  11030. esac
  11031. case $ac_tag in
  11032. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  11033. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  11034. esac
  11035. ;;
  11036. esac
  11037. ac_dir=`$as_dirname -- "$ac_file" ||
  11038. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11039. X"$ac_file" : 'X\(//\)[^/]' \| \
  11040. X"$ac_file" : 'X\(//\)$' \| \
  11041. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11042. $as_echo X"$ac_file" |
  11043. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11044. s//\1/
  11045. q
  11046. }
  11047. /^X\(\/\/\)[^/].*/{
  11048. s//\1/
  11049. q
  11050. }
  11051. /^X\(\/\/\)$/{
  11052. s//\1/
  11053. q
  11054. }
  11055. /^X\(\/\).*/{
  11056. s//\1/
  11057. q
  11058. }
  11059. s/.*/./; q'`
  11060. as_dir="$ac_dir"; as_fn_mkdir_p
  11061. ac_builddir=.
  11062. case "$ac_dir" in
  11063. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11064. *)
  11065. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  11066. # A ".." for each directory in $ac_dir_suffix.
  11067. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  11068. case $ac_top_builddir_sub in
  11069. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11070. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11071. esac ;;
  11072. esac
  11073. ac_abs_top_builddir=$ac_pwd
  11074. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11075. # for backward compatibility:
  11076. ac_top_builddir=$ac_top_build_prefix
  11077. case $srcdir in
  11078. .) # We are building in place.
  11079. ac_srcdir=.
  11080. ac_top_srcdir=$ac_top_builddir_sub
  11081. ac_abs_top_srcdir=$ac_pwd ;;
  11082. [\\/]* | ?:[\\/]* ) # Absolute name.
  11083. ac_srcdir=$srcdir$ac_dir_suffix;
  11084. ac_top_srcdir=$srcdir
  11085. ac_abs_top_srcdir=$srcdir ;;
  11086. *) # Relative name.
  11087. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11088. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11089. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11090. esac
  11091. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11092. case $ac_mode in
  11093. :F)
  11094. #
  11095. # CONFIG_FILE
  11096. #
  11097. case $INSTALL in
  11098. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  11099. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  11100. esac
  11101. ac_MKDIR_P=$MKDIR_P
  11102. case $MKDIR_P in
  11103. [\\/$]* | ?:[\\/]* ) ;;
  11104. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  11105. esac
  11106. _ACEOF
  11107. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11108. # If the template does not know about datarootdir, expand it.
  11109. # FIXME: This hack should be removed a few years after 2.60.
  11110. ac_datarootdir_hack=; ac_datarootdir_seen=
  11111. ac_sed_dataroot='
  11112. /datarootdir/ {
  11113. p
  11114. q
  11115. }
  11116. /@datadir@/p
  11117. /@docdir@/p
  11118. /@infodir@/p
  11119. /@localedir@/p
  11120. /@mandir@/p'
  11121. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  11122. *datarootdir*) ac_datarootdir_seen=yes;;
  11123. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11124. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11125. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11126. _ACEOF
  11127. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11128. ac_datarootdir_hack='
  11129. s&@datadir@&$datadir&g
  11130. s&@docdir@&$docdir&g
  11131. s&@infodir@&$infodir&g
  11132. s&@localedir@&$localedir&g
  11133. s&@mandir@&$mandir&g
  11134. s&\\\${datarootdir}&$datarootdir&g' ;;
  11135. esac
  11136. _ACEOF
  11137. # Neutralize VPATH when `$srcdir' = `.'.
  11138. # Shell code in configure.ac might set extrasub.
  11139. # FIXME: do we really want to maintain this feature?
  11140. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11141. ac_sed_extra="$ac_vpsub
  11142. $extrasub
  11143. _ACEOF
  11144. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11145. :t
  11146. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11147. s|@configure_input@|$ac_sed_conf_input|;t t
  11148. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11149. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  11150. s&@srcdir@&$ac_srcdir&;t t
  11151. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11152. s&@top_srcdir@&$ac_top_srcdir&;t t
  11153. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11154. s&@builddir@&$ac_builddir&;t t
  11155. s&@abs_builddir@&$ac_abs_builddir&;t t
  11156. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11157. s&@INSTALL@&$ac_INSTALL&;t t
  11158. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  11159. $ac_datarootdir_hack
  11160. "
  11161. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11162. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11163. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11164. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11165. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11166. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11168. which seems to be undefined. Please make sure it is defined" >&5
  11169. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11170. which seems to be undefined. Please make sure it is defined" >&2;}
  11171. rm -f "$ac_tmp/stdin"
  11172. case $ac_file in
  11173. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11174. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11175. esac \
  11176. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11177. ;;
  11178. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11179. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11180. ;;
  11181. esac
  11182. case $ac_file$ac_mode in
  11183. "default-1":C)
  11184. # Only add multilib support code if we just rebuilt the top-level
  11185. # Makefile.
  11186. case " $CONFIG_FILES " in
  11187. *" Makefile "*)
  11188. ac_file=Makefile . ${multi_basedir}/config-ml.in
  11189. ;;
  11190. esac ;;
  11191. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11192. # Older Autoconf quotes --file arguments for eval, but not when files
  11193. # are listed without --file. Let's play safe and only enable the eval
  11194. # if we detect the quoting.
  11195. case $CONFIG_FILES in
  11196. *\'*) eval set x "$CONFIG_FILES" ;;
  11197. *) set x $CONFIG_FILES ;;
  11198. esac
  11199. shift
  11200. for mf
  11201. do
  11202. # Strip MF so we end up with the name of the file.
  11203. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11204. # Check whether this is an Automake generated Makefile or not.
  11205. # We used to match only the files named 'Makefile.in', but
  11206. # some people rename them; so instead we look at the file content.
  11207. # Grep'ing the first line is not enough: some people post-process
  11208. # each Makefile.in and add a new line on top of each file to say so.
  11209. # Grep'ing the whole file is not good either: AIX grep has a line
  11210. # limit of 2048, but all sed's we know have understand at least 4000.
  11211. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11212. dirpart=`$as_dirname -- "$mf" ||
  11213. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11214. X"$mf" : 'X\(//\)[^/]' \| \
  11215. X"$mf" : 'X\(//\)$' \| \
  11216. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11217. $as_echo X"$mf" |
  11218. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11219. s//\1/
  11220. q
  11221. }
  11222. /^X\(\/\/\)[^/].*/{
  11223. s//\1/
  11224. q
  11225. }
  11226. /^X\(\/\/\)$/{
  11227. s//\1/
  11228. q
  11229. }
  11230. /^X\(\/\).*/{
  11231. s//\1/
  11232. q
  11233. }
  11234. s/.*/./; q'`
  11235. else
  11236. continue
  11237. fi
  11238. # Extract the definition of DEPDIR, am__include, and am__quote
  11239. # from the Makefile without running 'make'.
  11240. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11241. test -z "$DEPDIR" && continue
  11242. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11243. test -z "$am__include" && continue
  11244. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11245. # Find all dependency output files, they are included files with
  11246. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11247. # simplest approach to changing $(DEPDIR) to its actual value in the
  11248. # expansion.
  11249. for file in `sed -n "
  11250. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11251. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  11252. # Make sure the directory exists.
  11253. test -f "$dirpart/$file" && continue
  11254. fdir=`$as_dirname -- "$file" ||
  11255. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11256. X"$file" : 'X\(//\)[^/]' \| \
  11257. X"$file" : 'X\(//\)$' \| \
  11258. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11259. $as_echo X"$file" |
  11260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11261. s//\1/
  11262. q
  11263. }
  11264. /^X\(\/\/\)[^/].*/{
  11265. s//\1/
  11266. q
  11267. }
  11268. /^X\(\/\/\)$/{
  11269. s//\1/
  11270. q
  11271. }
  11272. /^X\(\/\).*/{
  11273. s//\1/
  11274. q
  11275. }
  11276. s/.*/./; q'`
  11277. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11278. # echo "creating $dirpart/$file"
  11279. echo '# dummy' > "$dirpart/$file"
  11280. done
  11281. done
  11282. }
  11283. ;;
  11284. "libtool":C)
  11285. # See if we are running on zsh, and set the options which allow our
  11286. # commands through without removal of \ escapes.
  11287. if test -n "${ZSH_VERSION+set}" ; then
  11288. setopt NO_GLOB_SUBST
  11289. fi
  11290. cfgfile="${ofile}T"
  11291. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11292. $RM "$cfgfile"
  11293. cat <<_LT_EOF >> "$cfgfile"
  11294. #! $SHELL
  11295. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11296. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11297. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11298. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11299. #
  11300. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11301. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  11302. # Written by Gordon Matzigkeit, 1996
  11303. #
  11304. # This file is part of GNU Libtool.
  11305. #
  11306. # GNU Libtool is free software; you can redistribute it and/or
  11307. # modify it under the terms of the GNU General Public License as
  11308. # published by the Free Software Foundation; either version 2 of
  11309. # the License, or (at your option) any later version.
  11310. #
  11311. # As a special exception to the GNU General Public License,
  11312. # if you distribute this file as part of a program or library that
  11313. # is built using GNU Libtool, you may include this file under the
  11314. # same distribution terms that you use for the rest of that program.
  11315. #
  11316. # GNU Libtool is distributed in the hope that it will be useful,
  11317. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11318. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11319. # GNU General Public License for more details.
  11320. #
  11321. # You should have received a copy of the GNU General Public License
  11322. # along with GNU Libtool; see the file COPYING. If not, a copy
  11323. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11324. # obtained by writing to the Free Software Foundation, Inc.,
  11325. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11326. # The names of the tagged configurations supported by this script.
  11327. available_tags=""
  11328. # ### BEGIN LIBTOOL CONFIG
  11329. # Which release of libtool.m4 was used?
  11330. macro_version=$macro_version
  11331. macro_revision=$macro_revision
  11332. # Whether or not to build shared libraries.
  11333. build_libtool_libs=$enable_shared
  11334. # Whether or not to build static libraries.
  11335. build_old_libs=$enable_static
  11336. # What type of objects to build.
  11337. pic_mode=$pic_mode
  11338. # Whether or not to optimize for fast installation.
  11339. fast_install=$enable_fast_install
  11340. # Shell to use when invoking shell scripts.
  11341. SHELL=$lt_SHELL
  11342. # An echo program that protects backslashes.
  11343. ECHO=$lt_ECHO
  11344. # The host system.
  11345. host_alias=$host_alias
  11346. host=$host
  11347. host_os=$host_os
  11348. # The build system.
  11349. build_alias=$build_alias
  11350. build=$build
  11351. build_os=$build_os
  11352. # A sed program that does not truncate output.
  11353. SED=$lt_SED
  11354. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11355. Xsed="\$SED -e 1s/^X//"
  11356. # A grep program that handles long lines.
  11357. GREP=$lt_GREP
  11358. # An ERE matcher.
  11359. EGREP=$lt_EGREP
  11360. # A literal string matcher.
  11361. FGREP=$lt_FGREP
  11362. # A BSD- or MS-compatible name lister.
  11363. NM=$lt_NM
  11364. # Whether we need soft or hard links.
  11365. LN_S=$lt_LN_S
  11366. # What is the maximum length of a command?
  11367. max_cmd_len=$max_cmd_len
  11368. # Object file suffix (normally "o").
  11369. objext=$ac_objext
  11370. # Executable file suffix (normally "").
  11371. exeext=$exeext
  11372. # whether the shell understands "unset".
  11373. lt_unset=$lt_unset
  11374. # turn spaces into newlines.
  11375. SP2NL=$lt_lt_SP2NL
  11376. # turn newlines into spaces.
  11377. NL2SP=$lt_lt_NL2SP
  11378. # An object symbol dumper.
  11379. OBJDUMP=$lt_OBJDUMP
  11380. # Method to check whether dependent libraries are shared objects.
  11381. deplibs_check_method=$lt_deplibs_check_method
  11382. # Command to use when deplibs_check_method == "file_magic".
  11383. file_magic_cmd=$lt_file_magic_cmd
  11384. # The archiver.
  11385. AR=$lt_AR
  11386. AR_FLAGS=$lt_AR_FLAGS
  11387. # A symbol stripping program.
  11388. STRIP=$lt_STRIP
  11389. # Commands used to install an old-style archive.
  11390. RANLIB=$lt_RANLIB
  11391. old_postinstall_cmds=$lt_old_postinstall_cmds
  11392. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11393. # Whether to use a lock for old archive extraction.
  11394. lock_old_archive_extraction=$lock_old_archive_extraction
  11395. # A C compiler.
  11396. LTCC=$lt_CC
  11397. # LTCC compiler flags.
  11398. LTCFLAGS=$lt_CFLAGS
  11399. # Take the output of nm and produce a listing of raw symbols and C names.
  11400. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11401. # Transform the output of nm in a proper C declaration.
  11402. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11403. # Transform the output of nm in a C name address pair.
  11404. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11405. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11406. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11407. # The name of the directory that contains temporary libtool files.
  11408. objdir=$objdir
  11409. # Used to examine libraries when file_magic_cmd begins with "file".
  11410. MAGIC_CMD=$MAGIC_CMD
  11411. # Must we lock files when doing compilation?
  11412. need_locks=$lt_need_locks
  11413. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11414. DSYMUTIL=$lt_DSYMUTIL
  11415. # Tool to change global to local symbols on Mac OS X.
  11416. NMEDIT=$lt_NMEDIT
  11417. # Tool to manipulate fat objects and archives on Mac OS X.
  11418. LIPO=$lt_LIPO
  11419. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11420. OTOOL=$lt_OTOOL
  11421. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11422. OTOOL64=$lt_OTOOL64
  11423. # Old archive suffix (normally "a").
  11424. libext=$libext
  11425. # Shared library suffix (normally ".so").
  11426. shrext_cmds=$lt_shrext_cmds
  11427. # The commands to extract the exported symbol list from a shared archive.
  11428. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11429. # Variables whose values should be saved in libtool wrapper scripts and
  11430. # restored at link time.
  11431. variables_saved_for_relink=$lt_variables_saved_for_relink
  11432. # Do we need the "lib" prefix for modules?
  11433. need_lib_prefix=$need_lib_prefix
  11434. # Do we need a version for libraries?
  11435. need_version=$need_version
  11436. # Library versioning type.
  11437. version_type=$version_type
  11438. # Shared library runtime path variable.
  11439. runpath_var=$runpath_var
  11440. # Shared library path variable.
  11441. shlibpath_var=$shlibpath_var
  11442. # Is shlibpath searched before the hard-coded library search path?
  11443. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11444. # Format of library name prefix.
  11445. libname_spec=$lt_libname_spec
  11446. # List of archive names. First name is the real one, the rest are links.
  11447. # The last name is the one that the linker finds with -lNAME
  11448. library_names_spec=$lt_library_names_spec
  11449. # The coded name of the library, if different from the real name.
  11450. soname_spec=$lt_soname_spec
  11451. # Permission mode override for installation of shared libraries.
  11452. install_override_mode=$lt_install_override_mode
  11453. # Command to use after installation of a shared archive.
  11454. postinstall_cmds=$lt_postinstall_cmds
  11455. # Command to use after uninstallation of a shared archive.
  11456. postuninstall_cmds=$lt_postuninstall_cmds
  11457. # Commands used to finish a libtool library installation in a directory.
  11458. finish_cmds=$lt_finish_cmds
  11459. # As "finish_cmds", except a single script fragment to be evaled but
  11460. # not shown.
  11461. finish_eval=$lt_finish_eval
  11462. # Whether we should hardcode library paths into libraries.
  11463. hardcode_into_libs=$hardcode_into_libs
  11464. # Compile-time system search path for libraries.
  11465. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11466. # Run-time system search path for libraries.
  11467. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11468. # Whether dlopen is supported.
  11469. dlopen_support=$enable_dlopen
  11470. # Whether dlopen of programs is supported.
  11471. dlopen_self=$enable_dlopen_self
  11472. # Whether dlopen of statically linked programs is supported.
  11473. dlopen_self_static=$enable_dlopen_self_static
  11474. # Commands to strip libraries.
  11475. old_striplib=$lt_old_striplib
  11476. striplib=$lt_striplib
  11477. # The linker used to build libraries.
  11478. LD=$lt_LD
  11479. # How to create reloadable object files.
  11480. reload_flag=$lt_reload_flag
  11481. reload_cmds=$lt_reload_cmds
  11482. # Commands used to build an old-style archive.
  11483. old_archive_cmds=$lt_old_archive_cmds
  11484. # A language specific compiler.
  11485. CC=$lt_compiler
  11486. # Is the compiler the GNU compiler?
  11487. with_gcc=$GCC
  11488. # Compiler flag to turn off builtin functions.
  11489. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11490. # How to pass a linker flag through the compiler.
  11491. wl=$lt_lt_prog_compiler_wl
  11492. # Additional compiler flags for building library objects.
  11493. pic_flag=$lt_lt_prog_compiler_pic
  11494. # Compiler flag to prevent dynamic linking.
  11495. link_static_flag=$lt_lt_prog_compiler_static
  11496. # Does compiler simultaneously support -c and -o options?
  11497. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11498. # Whether or not to add -lc for building shared libraries.
  11499. build_libtool_need_lc=$archive_cmds_need_lc
  11500. # Whether or not to disallow shared libs when runtime libs are static.
  11501. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11502. # Compiler flag to allow reflexive dlopens.
  11503. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11504. # Compiler flag to generate shared objects directly from archives.
  11505. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11506. # Whether the compiler copes with passing no objects directly.
  11507. compiler_needs_object=$lt_compiler_needs_object
  11508. # Create an old-style archive from a shared archive.
  11509. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11510. # Create a temporary old-style archive to link instead of a shared archive.
  11511. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11512. # Commands used to build a shared archive.
  11513. archive_cmds=$lt_archive_cmds
  11514. archive_expsym_cmds=$lt_archive_expsym_cmds
  11515. # Commands used to build a loadable module if different from building
  11516. # a shared archive.
  11517. module_cmds=$lt_module_cmds
  11518. module_expsym_cmds=$lt_module_expsym_cmds
  11519. # Whether we are building with GNU ld or not.
  11520. with_gnu_ld=$lt_with_gnu_ld
  11521. # Flag that allows shared libraries with undefined symbols to be built.
  11522. allow_undefined_flag=$lt_allow_undefined_flag
  11523. # Flag that enforces no undefined symbols.
  11524. no_undefined_flag=$lt_no_undefined_flag
  11525. # Flag to hardcode \$libdir into a binary during linking.
  11526. # This must work even if \$libdir does not exist
  11527. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11528. # If ld is used when linking, flag to hardcode \$libdir into a binary
  11529. # during linking. This must work even if \$libdir does not exist.
  11530. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  11531. # Whether we need a single "-rpath" flag with a separated argument.
  11532. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11533. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11534. # DIR into the resulting binary.
  11535. hardcode_direct=$hardcode_direct
  11536. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11537. # DIR into the resulting binary and the resulting library dependency is
  11538. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11539. # library is relocated.
  11540. hardcode_direct_absolute=$hardcode_direct_absolute
  11541. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11542. # into the resulting binary.
  11543. hardcode_minus_L=$hardcode_minus_L
  11544. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11545. # into the resulting binary.
  11546. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11547. # Set to "yes" if building a shared library automatically hardcodes DIR
  11548. # into the library and all subsequent libraries and executables linked
  11549. # against it.
  11550. hardcode_automatic=$hardcode_automatic
  11551. # Set to yes if linker adds runtime paths of dependent libraries
  11552. # to runtime path list.
  11553. inherit_rpath=$inherit_rpath
  11554. # Whether libtool must link a program against all its dependency libraries.
  11555. link_all_deplibs=$link_all_deplibs
  11556. # Fix the shell variable \$srcfile for the compiler.
  11557. fix_srcfile_path=$lt_fix_srcfile_path
  11558. # Set to "yes" if exported symbols are required.
  11559. always_export_symbols=$always_export_symbols
  11560. # The commands to list exported symbols.
  11561. export_symbols_cmds=$lt_export_symbols_cmds
  11562. # Symbols that should not be listed in the preloaded symbols.
  11563. exclude_expsyms=$lt_exclude_expsyms
  11564. # Symbols that must always be exported.
  11565. include_expsyms=$lt_include_expsyms
  11566. # Commands necessary for linking programs (against libraries) with templates.
  11567. prelink_cmds=$lt_prelink_cmds
  11568. # Specify filename containing input files.
  11569. file_list_spec=$lt_file_list_spec
  11570. # How to hardcode a shared library path into an executable.
  11571. hardcode_action=$hardcode_action
  11572. # ### END LIBTOOL CONFIG
  11573. _LT_EOF
  11574. case $host_os in
  11575. aix3*)
  11576. cat <<\_LT_EOF >> "$cfgfile"
  11577. # AIX sometimes has problems with the GCC collect2 program. For some
  11578. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11579. # vanish in a puff of smoke.
  11580. if test "X${COLLECT_NAMES+set}" != Xset; then
  11581. COLLECT_NAMES=
  11582. export COLLECT_NAMES
  11583. fi
  11584. _LT_EOF
  11585. ;;
  11586. esac
  11587. ltmain="$ac_aux_dir/ltmain.sh"
  11588. # We use sed instead of cat because bash on DJGPP gets confused if
  11589. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11590. # text mode, it properly converts lines to CR/LF. This bash problem
  11591. # is reportedly fixed, but why not run on old versions too?
  11592. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  11593. || (rm -f "$cfgfile"; exit 1)
  11594. case $xsi_shell in
  11595. yes)
  11596. cat << \_LT_EOF >> "$cfgfile"
  11597. # func_dirname file append nondir_replacement
  11598. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11599. # otherwise set result to NONDIR_REPLACEMENT.
  11600. func_dirname ()
  11601. {
  11602. case ${1} in
  11603. */*) func_dirname_result="${1%/*}${2}" ;;
  11604. * ) func_dirname_result="${3}" ;;
  11605. esac
  11606. }
  11607. # func_basename file
  11608. func_basename ()
  11609. {
  11610. func_basename_result="${1##*/}"
  11611. }
  11612. # func_dirname_and_basename file append nondir_replacement
  11613. # perform func_basename and func_dirname in a single function
  11614. # call:
  11615. # dirname: Compute the dirname of FILE. If nonempty,
  11616. # add APPEND to the result, otherwise set result
  11617. # to NONDIR_REPLACEMENT.
  11618. # value returned in "$func_dirname_result"
  11619. # basename: Compute filename of FILE.
  11620. # value retuned in "$func_basename_result"
  11621. # Implementation must be kept synchronized with func_dirname
  11622. # and func_basename. For efficiency, we do not delegate to
  11623. # those functions but instead duplicate the functionality here.
  11624. func_dirname_and_basename ()
  11625. {
  11626. case ${1} in
  11627. */*) func_dirname_result="${1%/*}${2}" ;;
  11628. * ) func_dirname_result="${3}" ;;
  11629. esac
  11630. func_basename_result="${1##*/}"
  11631. }
  11632. # func_stripname prefix suffix name
  11633. # strip PREFIX and SUFFIX off of NAME.
  11634. # PREFIX and SUFFIX must not contain globbing or regex special
  11635. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11636. # dot (in which case that matches only a dot).
  11637. func_stripname ()
  11638. {
  11639. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11640. # positional parameters, so assign one to ordinary parameter first.
  11641. func_stripname_result=${3}
  11642. func_stripname_result=${func_stripname_result#"${1}"}
  11643. func_stripname_result=${func_stripname_result%"${2}"}
  11644. }
  11645. # func_opt_split
  11646. func_opt_split ()
  11647. {
  11648. func_opt_split_opt=${1%%=*}
  11649. func_opt_split_arg=${1#*=}
  11650. }
  11651. # func_lo2o object
  11652. func_lo2o ()
  11653. {
  11654. case ${1} in
  11655. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11656. *) func_lo2o_result=${1} ;;
  11657. esac
  11658. }
  11659. # func_xform libobj-or-source
  11660. func_xform ()
  11661. {
  11662. func_xform_result=${1%.*}.lo
  11663. }
  11664. # func_arith arithmetic-term...
  11665. func_arith ()
  11666. {
  11667. func_arith_result=$(( $* ))
  11668. }
  11669. # func_len string
  11670. # STRING may not start with a hyphen.
  11671. func_len ()
  11672. {
  11673. func_len_result=${#1}
  11674. }
  11675. _LT_EOF
  11676. ;;
  11677. *) # Bourne compatible functions.
  11678. cat << \_LT_EOF >> "$cfgfile"
  11679. # func_dirname file append nondir_replacement
  11680. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11681. # otherwise set result to NONDIR_REPLACEMENT.
  11682. func_dirname ()
  11683. {
  11684. # Extract subdirectory from the argument.
  11685. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  11686. if test "X$func_dirname_result" = "X${1}"; then
  11687. func_dirname_result="${3}"
  11688. else
  11689. func_dirname_result="$func_dirname_result${2}"
  11690. fi
  11691. }
  11692. # func_basename file
  11693. func_basename ()
  11694. {
  11695. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  11696. }
  11697. # func_stripname prefix suffix name
  11698. # strip PREFIX and SUFFIX off of NAME.
  11699. # PREFIX and SUFFIX must not contain globbing or regex special
  11700. # characters, hashes, percent signs, but SUFFIX may contain a leading
  11701. # dot (in which case that matches only a dot).
  11702. # func_strip_suffix prefix name
  11703. func_stripname ()
  11704. {
  11705. case ${2} in
  11706. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  11707. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  11708. esac
  11709. }
  11710. # sed scripts:
  11711. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  11712. my_sed_long_arg='1s/^-[^=]*=//'
  11713. # func_opt_split
  11714. func_opt_split ()
  11715. {
  11716. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  11717. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  11718. }
  11719. # func_lo2o object
  11720. func_lo2o ()
  11721. {
  11722. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  11723. }
  11724. # func_xform libobj-or-source
  11725. func_xform ()
  11726. {
  11727. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  11728. }
  11729. # func_arith arithmetic-term...
  11730. func_arith ()
  11731. {
  11732. func_arith_result=`expr "$@"`
  11733. }
  11734. # func_len string
  11735. # STRING may not start with a hyphen.
  11736. func_len ()
  11737. {
  11738. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  11739. }
  11740. _LT_EOF
  11741. esac
  11742. case $lt_shell_append in
  11743. yes)
  11744. cat << \_LT_EOF >> "$cfgfile"
  11745. # func_append var value
  11746. # Append VALUE to the end of shell variable VAR.
  11747. func_append ()
  11748. {
  11749. eval "$1+=\$2"
  11750. }
  11751. _LT_EOF
  11752. ;;
  11753. *)
  11754. cat << \_LT_EOF >> "$cfgfile"
  11755. # func_append var value
  11756. # Append VALUE to the end of shell variable VAR.
  11757. func_append ()
  11758. {
  11759. eval "$1=\$$1\$2"
  11760. }
  11761. _LT_EOF
  11762. ;;
  11763. esac
  11764. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  11765. || (rm -f "$cfgfile"; exit 1)
  11766. mv -f "$cfgfile" "$ofile" ||
  11767. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11768. chmod +x "$ofile"
  11769. ;;
  11770. esac
  11771. done # for ac_tag
  11772. as_fn_exit 0
  11773. _ACEOF
  11774. ac_clean_files=$ac_clean_files_save
  11775. test $ac_write_fail = 0 ||
  11776. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11777. # configure is writing to config.log, and then calls config.status.
  11778. # config.status does its own redirection, appending to config.log.
  11779. # Unfortunately, on DOS this fails, as config.log is still kept open
  11780. # by configure, so config.status won't be able to write to it; its
  11781. # output is simply discarded. So we exec the FD to /dev/null,
  11782. # effectively closing config.log, so it can be properly (re)opened and
  11783. # appended to by config.status. When coming back to configure, we
  11784. # need to make the FD available again.
  11785. if test "$no_create" != yes; then
  11786. ac_cs_success=:
  11787. ac_config_status_args=
  11788. test "$silent" = yes &&
  11789. ac_config_status_args="$ac_config_status_args --quiet"
  11790. exec 5>/dev/null
  11791. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11792. exec 5>>config.log
  11793. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11794. # would make configure fail if this is the last instruction.
  11795. $ac_cs_success || as_fn_exit 1
  11796. fi
  11797. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11798. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11799. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11800. fi