configure 422 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.61 for aria2c 0.11.1+1.
  4. #
  5. # Report bugs to <t-tujikawa@users.sourceforge.net>.
  6. #
  7. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  8. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  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. # Zsh 3.x and 4.x performs 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*) set -o posix ;;
  26. esac
  27. fi
  28. # PATH needs CR
  29. # Avoid depending upon Character Ranges.
  30. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  31. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  32. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  33. as_cr_digits='0123456789'
  34. as_cr_alnum=$as_cr_Letters$as_cr_digits
  35. # The user is always right.
  36. if test "${PATH_SEPARATOR+set}" != set; then
  37. echo "#! /bin/sh" >conf$$.sh
  38. echo "exit 0" >>conf$$.sh
  39. chmod +x conf$$.sh
  40. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  41. PATH_SEPARATOR=';'
  42. else
  43. PATH_SEPARATOR=:
  44. fi
  45. rm -f conf$$.sh
  46. fi
  47. # Support unset when possible.
  48. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  49. as_unset=unset
  50. else
  51. as_unset=false
  52. fi
  53. # IFS
  54. # We need space, tab and new line, in precisely that order. Quoting is
  55. # there to prevent editors from complaining about space-tab.
  56. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  57. # splitting by setting IFS to empty value.)
  58. as_nl='
  59. '
  60. IFS=" "" $as_nl"
  61. # Find who we are. Look in the path if we contain no directory separator.
  62. case $0 in
  63. *[\\/]* ) as_myself=$0 ;;
  64. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  65. for as_dir in $PATH
  66. do
  67. IFS=$as_save_IFS
  68. test -z "$as_dir" && as_dir=.
  69. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  70. done
  71. IFS=$as_save_IFS
  72. ;;
  73. esac
  74. # We did not find ourselves, most probably we were run as `sh COMMAND'
  75. # in which case we are not to be found in the path.
  76. if test "x$as_myself" = x; then
  77. as_myself=$0
  78. fi
  79. if test ! -f "$as_myself"; then
  80. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  81. { (exit 1); exit 1; }
  82. fi
  83. # Work around bugs in pre-3.0 UWIN ksh.
  84. for as_var in ENV MAIL MAILPATH
  85. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  86. done
  87. PS1='$ '
  88. PS2='> '
  89. PS4='+ '
  90. # NLS nuisances.
  91. for as_var in \
  92. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  93. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  94. LC_TELEPHONE LC_TIME
  95. do
  96. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  97. eval $as_var=C; export $as_var
  98. else
  99. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  100. fi
  101. done
  102. # Required to use basename.
  103. if expr a : '\(a\)' >/dev/null 2>&1 &&
  104. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  105. as_expr=expr
  106. else
  107. as_expr=false
  108. fi
  109. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  110. as_basename=basename
  111. else
  112. as_basename=false
  113. fi
  114. # Name of the executable.
  115. as_me=`$as_basename -- "$0" ||
  116. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  117. X"$0" : 'X\(//\)$' \| \
  118. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  119. echo X/"$0" |
  120. sed '/^.*\/\([^/][^/]*\)\/*$/{
  121. s//\1/
  122. q
  123. }
  124. /^X\/\(\/\/\)$/{
  125. s//\1/
  126. q
  127. }
  128. /^X\/\(\/\).*/{
  129. s//\1/
  130. q
  131. }
  132. s/.*/./; q'`
  133. # CDPATH.
  134. $as_unset CDPATH
  135. if test "x$CONFIG_SHELL" = x; then
  136. if (eval ":") 2>/dev/null; then
  137. as_have_required=yes
  138. else
  139. as_have_required=no
  140. fi
  141. if test $as_have_required = yes && (eval ":
  142. (as_func_return () {
  143. (exit \$1)
  144. }
  145. as_func_success () {
  146. as_func_return 0
  147. }
  148. as_func_failure () {
  149. as_func_return 1
  150. }
  151. as_func_ret_success () {
  152. return 0
  153. }
  154. as_func_ret_failure () {
  155. return 1
  156. }
  157. exitcode=0
  158. if as_func_success; then
  159. :
  160. else
  161. exitcode=1
  162. echo as_func_success failed.
  163. fi
  164. if as_func_failure; then
  165. exitcode=1
  166. echo as_func_failure succeeded.
  167. fi
  168. if as_func_ret_success; then
  169. :
  170. else
  171. exitcode=1
  172. echo as_func_ret_success failed.
  173. fi
  174. if as_func_ret_failure; then
  175. exitcode=1
  176. echo as_func_ret_failure succeeded.
  177. fi
  178. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  179. :
  180. else
  181. exitcode=1
  182. echo positional parameters were not saved.
  183. fi
  184. test \$exitcode = 0) || { (exit 1); exit 1; }
  185. (
  186. as_lineno_1=\$LINENO
  187. as_lineno_2=\$LINENO
  188. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  189. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  190. ") 2> /dev/null; then
  191. :
  192. else
  193. as_candidate_shells=
  194. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  195. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  196. do
  197. IFS=$as_save_IFS
  198. test -z "$as_dir" && as_dir=.
  199. case $as_dir in
  200. /*)
  201. for as_base in sh bash ksh sh5; do
  202. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  203. done;;
  204. esac
  205. done
  206. IFS=$as_save_IFS
  207. for as_shell in $as_candidate_shells $SHELL; do
  208. # Try only shells that exist, to save several forks.
  209. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  210. { ("$as_shell") 2> /dev/null <<\_ASEOF
  211. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  212. emulate sh
  213. NULLCMD=:
  214. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  215. # is contrary to our usage. Disable this feature.
  216. alias -g '${1+"$@"}'='"$@"'
  217. setopt NO_GLOB_SUBST
  218. else
  219. case `(set -o) 2>/dev/null` in
  220. *posix*) set -o posix ;;
  221. esac
  222. fi
  223. :
  224. _ASEOF
  225. }; then
  226. CONFIG_SHELL=$as_shell
  227. as_have_required=yes
  228. if { "$as_shell" 2> /dev/null <<\_ASEOF
  229. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  230. emulate sh
  231. NULLCMD=:
  232. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  233. # is contrary to our usage. Disable this feature.
  234. alias -g '${1+"$@"}'='"$@"'
  235. setopt NO_GLOB_SUBST
  236. else
  237. case `(set -o) 2>/dev/null` in
  238. *posix*) set -o posix ;;
  239. esac
  240. fi
  241. :
  242. (as_func_return () {
  243. (exit $1)
  244. }
  245. as_func_success () {
  246. as_func_return 0
  247. }
  248. as_func_failure () {
  249. as_func_return 1
  250. }
  251. as_func_ret_success () {
  252. return 0
  253. }
  254. as_func_ret_failure () {
  255. return 1
  256. }
  257. exitcode=0
  258. if as_func_success; then
  259. :
  260. else
  261. exitcode=1
  262. echo as_func_success failed.
  263. fi
  264. if as_func_failure; then
  265. exitcode=1
  266. echo as_func_failure succeeded.
  267. fi
  268. if as_func_ret_success; then
  269. :
  270. else
  271. exitcode=1
  272. echo as_func_ret_success failed.
  273. fi
  274. if as_func_ret_failure; then
  275. exitcode=1
  276. echo as_func_ret_failure succeeded.
  277. fi
  278. if ( set x; as_func_ret_success y && test x = "$1" ); then
  279. :
  280. else
  281. exitcode=1
  282. echo positional parameters were not saved.
  283. fi
  284. test $exitcode = 0) || { (exit 1); exit 1; }
  285. (
  286. as_lineno_1=$LINENO
  287. as_lineno_2=$LINENO
  288. test "x$as_lineno_1" != "x$as_lineno_2" &&
  289. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  290. _ASEOF
  291. }; then
  292. break
  293. fi
  294. fi
  295. done
  296. if test "x$CONFIG_SHELL" != x; then
  297. for as_var in BASH_ENV ENV
  298. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  299. done
  300. export CONFIG_SHELL
  301. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  302. fi
  303. if test $as_have_required = no; then
  304. echo This script requires a shell more modern than all the
  305. echo shells that I found on your system. Please install a
  306. echo modern shell, or manually run the script under such a
  307. echo shell if you do have one.
  308. { (exit 1); exit 1; }
  309. fi
  310. fi
  311. fi
  312. (eval "as_func_return () {
  313. (exit \$1)
  314. }
  315. as_func_success () {
  316. as_func_return 0
  317. }
  318. as_func_failure () {
  319. as_func_return 1
  320. }
  321. as_func_ret_success () {
  322. return 0
  323. }
  324. as_func_ret_failure () {
  325. return 1
  326. }
  327. exitcode=0
  328. if as_func_success; then
  329. :
  330. else
  331. exitcode=1
  332. echo as_func_success failed.
  333. fi
  334. if as_func_failure; then
  335. exitcode=1
  336. echo as_func_failure succeeded.
  337. fi
  338. if as_func_ret_success; then
  339. :
  340. else
  341. exitcode=1
  342. echo as_func_ret_success failed.
  343. fi
  344. if as_func_ret_failure; then
  345. exitcode=1
  346. echo as_func_ret_failure succeeded.
  347. fi
  348. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  349. :
  350. else
  351. exitcode=1
  352. echo positional parameters were not saved.
  353. fi
  354. test \$exitcode = 0") || {
  355. echo No shell found that supports shell functions.
  356. echo Please tell autoconf@gnu.org about your system,
  357. echo including any error possibly output before this
  358. echo message
  359. }
  360. as_lineno_1=$LINENO
  361. as_lineno_2=$LINENO
  362. test "x$as_lineno_1" != "x$as_lineno_2" &&
  363. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  364. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  365. # uniformly replaced by the line number. The first 'sed' inserts a
  366. # line-number line after each line using $LINENO; the second 'sed'
  367. # does the real work. The second script uses 'N' to pair each
  368. # line-number line with the line containing $LINENO, and appends
  369. # trailing '-' during substitution so that $LINENO is not a special
  370. # case at line end.
  371. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  372. # scripts with optimization help from Paolo Bonzini. Blame Lee
  373. # E. McMahon (1931-1989) for sed's syntax. :-)
  374. sed -n '
  375. p
  376. /[$]LINENO/=
  377. ' <$as_myself |
  378. sed '
  379. s/[$]LINENO.*/&-/
  380. t lineno
  381. b
  382. :lineno
  383. N
  384. :loop
  385. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  386. t loop
  387. s/-\n.*//
  388. ' >$as_me.lineno &&
  389. chmod +x "$as_me.lineno" ||
  390. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  391. { (exit 1); exit 1; }; }
  392. # Don't try to exec as it changes $[0], causing all sort of problems
  393. # (the dirname of $[0] is not the place where we might find the
  394. # original and so on. Autoconf is especially sensitive to this).
  395. . "./$as_me.lineno"
  396. # Exit status is that of the last command.
  397. exit
  398. }
  399. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  400. as_dirname=dirname
  401. else
  402. as_dirname=false
  403. fi
  404. ECHO_C= ECHO_N= ECHO_T=
  405. case `echo -n x` in
  406. -n*)
  407. case `echo 'x\c'` in
  408. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  409. *) ECHO_C='\c';;
  410. esac;;
  411. *)
  412. ECHO_N='-n';;
  413. esac
  414. if expr a : '\(a\)' >/dev/null 2>&1 &&
  415. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  416. as_expr=expr
  417. else
  418. as_expr=false
  419. fi
  420. rm -f conf$$ conf$$.exe conf$$.file
  421. if test -d conf$$.dir; then
  422. rm -f conf$$.dir/conf$$.file
  423. else
  424. rm -f conf$$.dir
  425. mkdir conf$$.dir
  426. fi
  427. echo >conf$$.file
  428. if ln -s conf$$.file conf$$ 2>/dev/null; then
  429. as_ln_s='ln -s'
  430. # ... but there are two gotchas:
  431. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  432. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  433. # In both cases, we have to default to `cp -p'.
  434. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  435. as_ln_s='cp -p'
  436. elif ln conf$$.file conf$$ 2>/dev/null; then
  437. as_ln_s=ln
  438. else
  439. as_ln_s='cp -p'
  440. fi
  441. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  442. rmdir conf$$.dir 2>/dev/null
  443. if mkdir -p . 2>/dev/null; then
  444. as_mkdir_p=:
  445. else
  446. test -d ./-p && rmdir ./-p
  447. as_mkdir_p=false
  448. fi
  449. if test -x / >/dev/null 2>&1; then
  450. as_test_x='test -x'
  451. else
  452. if ls -dL / >/dev/null 2>&1; then
  453. as_ls_L_option=L
  454. else
  455. as_ls_L_option=
  456. fi
  457. as_test_x='
  458. eval sh -c '\''
  459. if test -d "$1"; then
  460. test -d "$1/.";
  461. else
  462. case $1 in
  463. -*)set "./$1";;
  464. esac;
  465. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  466. ???[sx]*):;;*)false;;esac;fi
  467. '\'' sh
  468. '
  469. fi
  470. as_executable_p=$as_test_x
  471. # Sed expression to map a string onto a valid CPP name.
  472. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  473. # Sed expression to map a string onto a valid variable name.
  474. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  475. exec 7<&0 </dev/null 6>&1
  476. # Name of the host.
  477. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  478. # so uname gets run too.
  479. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  480. #
  481. # Initializations.
  482. #
  483. ac_default_prefix=/usr/local
  484. ac_clean_files=
  485. ac_config_libobj_dir=.
  486. LIBOBJS=
  487. cross_compiling=no
  488. subdirs=
  489. MFLAGS=
  490. MAKEFLAGS=
  491. SHELL=${CONFIG_SHELL-/bin/sh}
  492. # Identity of this package.
  493. PACKAGE_NAME='aria2c'
  494. PACKAGE_TARNAME='aria2c'
  495. PACKAGE_VERSION='0.11.1+1'
  496. PACKAGE_STRING='aria2c 0.11.1+1'
  497. PACKAGE_BUGREPORT='t-tujikawa@users.sourceforge.net'
  498. ac_unique_file="src/Socket.h"
  499. # Factoring default headers for most tests.
  500. ac_includes_default="\
  501. #include <stdio.h>
  502. #ifdef HAVE_SYS_TYPES_H
  503. # include <sys/types.h>
  504. #endif
  505. #ifdef HAVE_SYS_STAT_H
  506. # include <sys/stat.h>
  507. #endif
  508. #ifdef STDC_HEADERS
  509. # include <stdlib.h>
  510. # include <stddef.h>
  511. #else
  512. # ifdef HAVE_STDLIB_H
  513. # include <stdlib.h>
  514. # endif
  515. #endif
  516. #ifdef HAVE_STRING_H
  517. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  518. # include <memory.h>
  519. # endif
  520. # include <string.h>
  521. #endif
  522. #ifdef HAVE_STRINGS_H
  523. # include <strings.h>
  524. #endif
  525. #ifdef HAVE_INTTYPES_H
  526. # include <inttypes.h>
  527. #endif
  528. #ifdef HAVE_STDINT_H
  529. # include <stdint.h>
  530. #endif
  531. #ifdef HAVE_UNISTD_H
  532. # include <unistd.h>
  533. #endif"
  534. ac_subst_vars='SHELL
  535. PATH_SEPARATOR
  536. PACKAGE_NAME
  537. PACKAGE_TARNAME
  538. PACKAGE_VERSION
  539. PACKAGE_STRING
  540. PACKAGE_BUGREPORT
  541. exec_prefix
  542. prefix
  543. program_transform_name
  544. bindir
  545. sbindir
  546. libexecdir
  547. datarootdir
  548. datadir
  549. sysconfdir
  550. sharedstatedir
  551. localstatedir
  552. includedir
  553. oldincludedir
  554. docdir
  555. infodir
  556. htmldir
  557. dvidir
  558. pdfdir
  559. psdir
  560. libdir
  561. localedir
  562. mandir
  563. DEFS
  564. ECHO_C
  565. ECHO_N
  566. ECHO_T
  567. LIBS
  568. build_alias
  569. host_alias
  570. target_alias
  571. build
  572. build_cpu
  573. build_vendor
  574. build_os
  575. host
  576. host_cpu
  577. host_vendor
  578. host_os
  579. target
  580. target_cpu
  581. target_vendor
  582. target_os
  583. INSTALL_PROGRAM
  584. INSTALL_SCRIPT
  585. INSTALL_DATA
  586. CYGPATH_W
  587. PACKAGE
  588. VERSION
  589. ACLOCAL
  590. AUTOCONF
  591. AUTOMAKE
  592. AUTOHEADER
  593. MAKEINFO
  594. install_sh
  595. STRIP
  596. INSTALL_STRIP_PROGRAM
  597. mkdir_p
  598. AWK
  599. SET_MAKE
  600. am__leading_dot
  601. AMTAR
  602. am__tar
  603. am__untar
  604. CPPUNIT_CONFIG
  605. CPPUNIT_CFLAGS
  606. CPPUNIT_LIBS
  607. WINSOCK_LIBS
  608. CXX
  609. CXXFLAGS
  610. LDFLAGS
  611. CPPFLAGS
  612. ac_ct_CXX
  613. EXEEXT
  614. OBJEXT
  615. DEPDIR
  616. am__include
  617. am__quote
  618. AMDEP_TRUE
  619. AMDEP_FALSE
  620. AMDEPBACKSLASH
  621. CXXDEPMODE
  622. am__fastdepCXX_TRUE
  623. am__fastdepCXX_FALSE
  624. CC
  625. CFLAGS
  626. ac_ct_CC
  627. CCDEPMODE
  628. am__fastdepCC_TRUE
  629. am__fastdepCC_FALSE
  630. RANLIB
  631. YACC
  632. YFLAGS
  633. XML2_CONFIG
  634. XML_CPPFLAGS
  635. XML_LIBS
  636. LIBGNUTLS_CONFIG
  637. LIBGNUTLS_CFLAGS
  638. LIBGNUTLS_LIBS
  639. LIBGCRYPT_CONFIG
  640. LIBGCRYPT_CFLAGS
  641. LIBGCRYPT_LIBS
  642. OPENSSL_LIBS
  643. OPENSSL_CFLAGS
  644. LIBCARES_LIBS
  645. LIBCARES_CPPFLAGS
  646. LIBARES_LIBS
  647. LIBARES_CPPFLAGS
  648. ENABLE_MESSAGE_DIGEST_TRUE
  649. ENABLE_MESSAGE_DIGEST_FALSE
  650. ENABLE_BITTORRENT_TRUE
  651. ENABLE_BITTORRENT_FALSE
  652. ENABLE_METALINK_TRUE
  653. ENABLE_METALINK_FALSE
  654. ENABLE_ASYNC_DNS_TRUE
  655. ENABLE_ASYNC_DNS_FALSE
  656. ALLOCA
  657. CPP
  658. GREP
  659. EGREP
  660. MKINSTALLDIRS
  661. USE_NLS
  662. MSGFMT
  663. GMSGFMT
  664. XGETTEXT
  665. MSGMERGE
  666. GLIBC21
  667. LIBICONV
  668. LTLIBICONV
  669. INTLBISON
  670. BUILD_INCLUDED_LIBINTL
  671. USE_INCLUDED_LIBINTL
  672. CATOBJEXT
  673. DATADIRNAME
  674. INSTOBJEXT
  675. GENCAT
  676. INTLOBJS
  677. INTL_LIBTOOL_SUFFIX_PREFIX
  678. INTLLIBS
  679. LIBINTL
  680. LTLIBINTL
  681. POSUB
  682. LIBOBJS
  683. HAVE_BASENAME_TRUE
  684. HAVE_BASENAME_FALSE
  685. HAVE_GETADDRINFO_TRUE
  686. HAVE_GETADDRINFO_FALSE
  687. HAVE_INET_ATON_TRUE
  688. HAVE_INET_ATON_FALSE
  689. HAVE_LOCALTIME_R_TRUE
  690. HAVE_LOCALTIME_R_FALSE
  691. HAVE_STRPTIME_TRUE
  692. HAVE_STRPTIME_FALSE
  693. LTLIBOBJS'
  694. ac_subst_files=''
  695. ac_precious_vars='build_alias
  696. host_alias
  697. target_alias
  698. CXX
  699. CXXFLAGS
  700. LDFLAGS
  701. LIBS
  702. CPPFLAGS
  703. CCC
  704. CC
  705. CFLAGS
  706. YACC
  707. YFLAGS
  708. CPP'
  709. # Initialize some variables set by options.
  710. ac_init_help=
  711. ac_init_version=false
  712. # The variables have the same names as the options, with
  713. # dashes changed to underlines.
  714. cache_file=/dev/null
  715. exec_prefix=NONE
  716. no_create=
  717. no_recursion=
  718. prefix=NONE
  719. program_prefix=NONE
  720. program_suffix=NONE
  721. program_transform_name=s,x,x,
  722. silent=
  723. site=
  724. srcdir=
  725. verbose=
  726. x_includes=NONE
  727. x_libraries=NONE
  728. # Installation directory options.
  729. # These are left unexpanded so users can "make install exec_prefix=/foo"
  730. # and all the variables that are supposed to be based on exec_prefix
  731. # by default will actually change.
  732. # Use braces instead of parens because sh, perl, etc. also accept them.
  733. # (The list follows the same order as the GNU Coding Standards.)
  734. bindir='${exec_prefix}/bin'
  735. sbindir='${exec_prefix}/sbin'
  736. libexecdir='${exec_prefix}/libexec'
  737. datarootdir='${prefix}/share'
  738. datadir='${datarootdir}'
  739. sysconfdir='${prefix}/etc'
  740. sharedstatedir='${prefix}/com'
  741. localstatedir='${prefix}/var'
  742. includedir='${prefix}/include'
  743. oldincludedir='/usr/include'
  744. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  745. infodir='${datarootdir}/info'
  746. htmldir='${docdir}'
  747. dvidir='${docdir}'
  748. pdfdir='${docdir}'
  749. psdir='${docdir}'
  750. libdir='${exec_prefix}/lib'
  751. localedir='${datarootdir}/locale'
  752. mandir='${datarootdir}/man'
  753. ac_prev=
  754. ac_dashdash=
  755. for ac_option
  756. do
  757. # If the previous option needs an argument, assign it.
  758. if test -n "$ac_prev"; then
  759. eval $ac_prev=\$ac_option
  760. ac_prev=
  761. continue
  762. fi
  763. case $ac_option in
  764. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  765. *) ac_optarg=yes ;;
  766. esac
  767. # Accept the important Cygnus configure options, so we can diagnose typos.
  768. case $ac_dashdash$ac_option in
  769. --)
  770. ac_dashdash=yes ;;
  771. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  772. ac_prev=bindir ;;
  773. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  774. bindir=$ac_optarg ;;
  775. -build | --build | --buil | --bui | --bu)
  776. ac_prev=build_alias ;;
  777. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  778. build_alias=$ac_optarg ;;
  779. -cache-file | --cache-file | --cache-fil | --cache-fi \
  780. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  781. ac_prev=cache_file ;;
  782. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  783. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  784. cache_file=$ac_optarg ;;
  785. --config-cache | -C)
  786. cache_file=config.cache ;;
  787. -datadir | --datadir | --datadi | --datad)
  788. ac_prev=datadir ;;
  789. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  790. datadir=$ac_optarg ;;
  791. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  792. | --dataroo | --dataro | --datar)
  793. ac_prev=datarootdir ;;
  794. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  795. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  796. datarootdir=$ac_optarg ;;
  797. -disable-* | --disable-*)
  798. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  799. # Reject names that are not valid shell variable names.
  800. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  801. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  802. { (exit 1); exit 1; }; }
  803. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  804. eval enable_$ac_feature=no ;;
  805. -docdir | --docdir | --docdi | --doc | --do)
  806. ac_prev=docdir ;;
  807. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  808. docdir=$ac_optarg ;;
  809. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  810. ac_prev=dvidir ;;
  811. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  812. dvidir=$ac_optarg ;;
  813. -enable-* | --enable-*)
  814. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  815. # Reject names that are not valid shell variable names.
  816. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  817. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  818. { (exit 1); exit 1; }; }
  819. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  820. eval enable_$ac_feature=\$ac_optarg ;;
  821. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  822. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  823. | --exec | --exe | --ex)
  824. ac_prev=exec_prefix ;;
  825. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  826. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  827. | --exec=* | --exe=* | --ex=*)
  828. exec_prefix=$ac_optarg ;;
  829. -gas | --gas | --ga | --g)
  830. # Obsolete; use --with-gas.
  831. with_gas=yes ;;
  832. -help | --help | --hel | --he | -h)
  833. ac_init_help=long ;;
  834. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  835. ac_init_help=recursive ;;
  836. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  837. ac_init_help=short ;;
  838. -host | --host | --hos | --ho)
  839. ac_prev=host_alias ;;
  840. -host=* | --host=* | --hos=* | --ho=*)
  841. host_alias=$ac_optarg ;;
  842. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  843. ac_prev=htmldir ;;
  844. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  845. | --ht=*)
  846. htmldir=$ac_optarg ;;
  847. -includedir | --includedir | --includedi | --included | --include \
  848. | --includ | --inclu | --incl | --inc)
  849. ac_prev=includedir ;;
  850. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  851. | --includ=* | --inclu=* | --incl=* | --inc=*)
  852. includedir=$ac_optarg ;;
  853. -infodir | --infodir | --infodi | --infod | --info | --inf)
  854. ac_prev=infodir ;;
  855. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  856. infodir=$ac_optarg ;;
  857. -libdir | --libdir | --libdi | --libd)
  858. ac_prev=libdir ;;
  859. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  860. libdir=$ac_optarg ;;
  861. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  862. | --libexe | --libex | --libe)
  863. ac_prev=libexecdir ;;
  864. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  865. | --libexe=* | --libex=* | --libe=*)
  866. libexecdir=$ac_optarg ;;
  867. -localedir | --localedir | --localedi | --localed | --locale)
  868. ac_prev=localedir ;;
  869. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  870. localedir=$ac_optarg ;;
  871. -localstatedir | --localstatedir | --localstatedi | --localstated \
  872. | --localstate | --localstat | --localsta | --localst | --locals)
  873. ac_prev=localstatedir ;;
  874. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  875. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  876. localstatedir=$ac_optarg ;;
  877. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  878. ac_prev=mandir ;;
  879. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  880. mandir=$ac_optarg ;;
  881. -nfp | --nfp | --nf)
  882. # Obsolete; use --without-fp.
  883. with_fp=no ;;
  884. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  885. | --no-cr | --no-c | -n)
  886. no_create=yes ;;
  887. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  888. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  889. no_recursion=yes ;;
  890. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  891. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  892. | --oldin | --oldi | --old | --ol | --o)
  893. ac_prev=oldincludedir ;;
  894. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  895. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  896. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  897. oldincludedir=$ac_optarg ;;
  898. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  899. ac_prev=prefix ;;
  900. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  901. prefix=$ac_optarg ;;
  902. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  903. | --program-pre | --program-pr | --program-p)
  904. ac_prev=program_prefix ;;
  905. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  906. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  907. program_prefix=$ac_optarg ;;
  908. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  909. | --program-suf | --program-su | --program-s)
  910. ac_prev=program_suffix ;;
  911. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  912. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  913. program_suffix=$ac_optarg ;;
  914. -program-transform-name | --program-transform-name \
  915. | --program-transform-nam | --program-transform-na \
  916. | --program-transform-n | --program-transform- \
  917. | --program-transform | --program-transfor \
  918. | --program-transfo | --program-transf \
  919. | --program-trans | --program-tran \
  920. | --progr-tra | --program-tr | --program-t)
  921. ac_prev=program_transform_name ;;
  922. -program-transform-name=* | --program-transform-name=* \
  923. | --program-transform-nam=* | --program-transform-na=* \
  924. | --program-transform-n=* | --program-transform-=* \
  925. | --program-transform=* | --program-transfor=* \
  926. | --program-transfo=* | --program-transf=* \
  927. | --program-trans=* | --program-tran=* \
  928. | --progr-tra=* | --program-tr=* | --program-t=*)
  929. program_transform_name=$ac_optarg ;;
  930. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  931. ac_prev=pdfdir ;;
  932. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  933. pdfdir=$ac_optarg ;;
  934. -psdir | --psdir | --psdi | --psd | --ps)
  935. ac_prev=psdir ;;
  936. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  937. psdir=$ac_optarg ;;
  938. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  939. | -silent | --silent | --silen | --sile | --sil)
  940. silent=yes ;;
  941. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  942. ac_prev=sbindir ;;
  943. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  944. | --sbi=* | --sb=*)
  945. sbindir=$ac_optarg ;;
  946. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  947. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  948. | --sharedst | --shareds | --shared | --share | --shar \
  949. | --sha | --sh)
  950. ac_prev=sharedstatedir ;;
  951. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  952. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  953. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  954. | --sha=* | --sh=*)
  955. sharedstatedir=$ac_optarg ;;
  956. -site | --site | --sit)
  957. ac_prev=site ;;
  958. -site=* | --site=* | --sit=*)
  959. site=$ac_optarg ;;
  960. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  961. ac_prev=srcdir ;;
  962. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  963. srcdir=$ac_optarg ;;
  964. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  965. | --syscon | --sysco | --sysc | --sys | --sy)
  966. ac_prev=sysconfdir ;;
  967. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  968. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  969. sysconfdir=$ac_optarg ;;
  970. -target | --target | --targe | --targ | --tar | --ta | --t)
  971. ac_prev=target_alias ;;
  972. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  973. target_alias=$ac_optarg ;;
  974. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  975. verbose=yes ;;
  976. -version | --version | --versio | --versi | --vers | -V)
  977. ac_init_version=: ;;
  978. -with-* | --with-*)
  979. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  980. # Reject names that are not valid shell variable names.
  981. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  982. { echo "$as_me: error: invalid package name: $ac_package" >&2
  983. { (exit 1); exit 1; }; }
  984. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  985. eval with_$ac_package=\$ac_optarg ;;
  986. -without-* | --without-*)
  987. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  988. # Reject names that are not valid shell variable names.
  989. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  990. { echo "$as_me: error: invalid package name: $ac_package" >&2
  991. { (exit 1); exit 1; }; }
  992. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  993. eval with_$ac_package=no ;;
  994. --x)
  995. # Obsolete; use --with-x.
  996. with_x=yes ;;
  997. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  998. | --x-incl | --x-inc | --x-in | --x-i)
  999. ac_prev=x_includes ;;
  1000. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1001. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1002. x_includes=$ac_optarg ;;
  1003. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1004. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1005. ac_prev=x_libraries ;;
  1006. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1007. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1008. x_libraries=$ac_optarg ;;
  1009. -*) { echo "$as_me: error: unrecognized option: $ac_option
  1010. Try \`$0 --help' for more information." >&2
  1011. { (exit 1); exit 1; }; }
  1012. ;;
  1013. *=*)
  1014. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1015. # Reject names that are not valid shell variable names.
  1016. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  1017. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  1018. { (exit 1); exit 1; }; }
  1019. eval $ac_envvar=\$ac_optarg
  1020. export $ac_envvar ;;
  1021. *)
  1022. # FIXME: should be removed in autoconf 3.0.
  1023. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1024. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1025. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1026. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1027. ;;
  1028. esac
  1029. done
  1030. if test -n "$ac_prev"; then
  1031. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1032. { echo "$as_me: error: missing argument to $ac_option" >&2
  1033. { (exit 1); exit 1; }; }
  1034. fi
  1035. # Be sure to have absolute directory names.
  1036. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1037. datadir sysconfdir sharedstatedir localstatedir includedir \
  1038. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1039. libdir localedir mandir
  1040. do
  1041. eval ac_val=\$$ac_var
  1042. case $ac_val in
  1043. [\\/$]* | ?:[\\/]* ) continue;;
  1044. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1045. esac
  1046. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  1047. { (exit 1); exit 1; }; }
  1048. done
  1049. # There might be people who depend on the old broken behavior: `$host'
  1050. # used to hold the argument of --host etc.
  1051. # FIXME: To remove some day.
  1052. build=$build_alias
  1053. host=$host_alias
  1054. target=$target_alias
  1055. # FIXME: To remove some day.
  1056. if test "x$host_alias" != x; then
  1057. if test "x$build_alias" = x; then
  1058. cross_compiling=maybe
  1059. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1060. If a cross compiler is detected then cross compile mode will be used." >&2
  1061. elif test "x$build_alias" != "x$host_alias"; then
  1062. cross_compiling=yes
  1063. fi
  1064. fi
  1065. ac_tool_prefix=
  1066. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1067. test "$silent" = yes && exec 6>/dev/null
  1068. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1069. ac_ls_di=`ls -di .` &&
  1070. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1071. { echo "$as_me: error: Working directory cannot be determined" >&2
  1072. { (exit 1); exit 1; }; }
  1073. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1074. { echo "$as_me: error: pwd does not report name of working directory" >&2
  1075. { (exit 1); exit 1; }; }
  1076. # Find the source files, if location was not specified.
  1077. if test -z "$srcdir"; then
  1078. ac_srcdir_defaulted=yes
  1079. # Try the directory containing this script, then the parent directory.
  1080. ac_confdir=`$as_dirname -- "$0" ||
  1081. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1082. X"$0" : 'X\(//\)[^/]' \| \
  1083. X"$0" : 'X\(//\)$' \| \
  1084. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  1085. echo X"$0" |
  1086. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1087. s//\1/
  1088. q
  1089. }
  1090. /^X\(\/\/\)[^/].*/{
  1091. s//\1/
  1092. q
  1093. }
  1094. /^X\(\/\/\)$/{
  1095. s//\1/
  1096. q
  1097. }
  1098. /^X\(\/\).*/{
  1099. s//\1/
  1100. q
  1101. }
  1102. s/.*/./; q'`
  1103. srcdir=$ac_confdir
  1104. if test ! -r "$srcdir/$ac_unique_file"; then
  1105. srcdir=..
  1106. fi
  1107. else
  1108. ac_srcdir_defaulted=no
  1109. fi
  1110. if test ! -r "$srcdir/$ac_unique_file"; then
  1111. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1112. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1113. { (exit 1); exit 1; }; }
  1114. fi
  1115. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1116. ac_abs_confdir=`(
  1117. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1118. { (exit 1); exit 1; }; }
  1119. pwd)`
  1120. # When building in place, set srcdir=.
  1121. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1122. srcdir=.
  1123. fi
  1124. # Remove unnecessary trailing slashes from srcdir.
  1125. # Double slashes in file names in object file debugging info
  1126. # mess up M-x gdb in Emacs.
  1127. case $srcdir in
  1128. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1129. esac
  1130. for ac_var in $ac_precious_vars; do
  1131. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1132. eval ac_env_${ac_var}_value=\$${ac_var}
  1133. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1134. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1135. done
  1136. #
  1137. # Report the --help message.
  1138. #
  1139. if test "$ac_init_help" = "long"; then
  1140. # Omit some internal or obsolete options to make the list less imposing.
  1141. # This message is too long to be a string in the A/UX 3.1 sh.
  1142. cat <<_ACEOF
  1143. \`configure' configures aria2c 0.11.1+1 to adapt to many kinds of systems.
  1144. Usage: $0 [OPTION]... [VAR=VALUE]...
  1145. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1146. VAR=VALUE. See below for descriptions of some of the useful variables.
  1147. Defaults for the options are specified in brackets.
  1148. Configuration:
  1149. -h, --help display this help and exit
  1150. --help=short display options specific to this package
  1151. --help=recursive display the short help of all the included packages
  1152. -V, --version display version information and exit
  1153. -q, --quiet, --silent do not print \`checking...' messages
  1154. --cache-file=FILE cache test results in FILE [disabled]
  1155. -C, --config-cache alias for \`--cache-file=config.cache'
  1156. -n, --no-create do not create output files
  1157. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1158. Installation directories:
  1159. --prefix=PREFIX install architecture-independent files in PREFIX
  1160. [$ac_default_prefix]
  1161. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1162. [PREFIX]
  1163. By default, \`make install' will install all the files in
  1164. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1165. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1166. for instance \`--prefix=\$HOME'.
  1167. For better control, use the options below.
  1168. Fine tuning of the installation directories:
  1169. --bindir=DIR user executables [EPREFIX/bin]
  1170. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1171. --libexecdir=DIR program executables [EPREFIX/libexec]
  1172. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1173. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1174. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1175. --libdir=DIR object code libraries [EPREFIX/lib]
  1176. --includedir=DIR C header files [PREFIX/include]
  1177. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1178. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1179. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1180. --infodir=DIR info documentation [DATAROOTDIR/info]
  1181. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1182. --mandir=DIR man documentation [DATAROOTDIR/man]
  1183. --docdir=DIR documentation root [DATAROOTDIR/doc/aria2c]
  1184. --htmldir=DIR html documentation [DOCDIR]
  1185. --dvidir=DIR dvi documentation [DOCDIR]
  1186. --pdfdir=DIR pdf documentation [DOCDIR]
  1187. --psdir=DIR ps documentation [DOCDIR]
  1188. _ACEOF
  1189. cat <<\_ACEOF
  1190. Program names:
  1191. --program-prefix=PREFIX prepend PREFIX to installed program names
  1192. --program-suffix=SUFFIX append SUFFIX to installed program names
  1193. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1194. System types:
  1195. --build=BUILD configure for building on BUILD [guessed]
  1196. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1197. --target=TARGET configure for building compilers for TARGET [HOST]
  1198. _ACEOF
  1199. fi
  1200. if test -n "$ac_init_help"; then
  1201. case $ac_init_help in
  1202. short | recursive ) echo "Configuration of aria2c 0.11.1+1:";;
  1203. esac
  1204. cat <<\_ACEOF
  1205. Optional Features:
  1206. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1207. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1208. --enable-bittorrent enable BitTorrent support. Default: yes
  1209. --enable-metalink enable Metalink support. Default: yes
  1210. --disable-dependency-tracking speeds up one-time build
  1211. --enable-dependency-tracking do not reject slow dependency extractors
  1212. --disable-xmltest Do not try to compile and run a test LIBXML program
  1213. --disable-nls do not use Native Language Support
  1214. --disable-rpath do not hardcode runtime library paths
  1215. Optional Packages:
  1216. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1217. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1218. --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional)
  1219. --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional)
  1220. --with-gnutls use gnutls library if installed. Default: yes
  1221. --with-openssl use openssl library if installed. Default: yes
  1222. --with-libxml2 use libxml2 library if installed. Default: yes
  1223. --with-libares use ares library if installed. Default: yes
  1224. --with-libcares use c-ares library if installed. Default: yes
  1225. --with-xml-prefix=PFX Prefix where libxml is installed (optional)
  1226. --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional)
  1227. --with-libgnutls-prefix=PFX Prefix where libgnutls is installed (optional)
  1228. --with-libgcrypt-prefix=PFX
  1229. prefix where LIBGCRYPT is installed (optional)
  1230. --with-openssl-prefix=PREFIX Prefix where OpenSSL installed (optional)
  1231. --with-libcares-prefix=PREFIX Prefix where libcares installed (optional)
  1232. --with-libares-prefix=PREFIX Prefix where libares installed (optional)
  1233. --with-gnu-ld assume the C compiler uses GNU ld default=no
  1234. --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
  1235. --without-libiconv-prefix don't search for libiconv in includedir and libdir
  1236. --with-included-gettext use the GNU gettext library included here
  1237. --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
  1238. --without-libintl-prefix don't search for libintl in includedir and libdir
  1239. Some influential environment variables:
  1240. CXX C++ compiler command
  1241. CXXFLAGS C++ compiler flags
  1242. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1243. nonstandard directory <lib dir>
  1244. LIBS libraries to pass to the linker, e.g. -l<library>
  1245. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1246. you have headers in a nonstandard directory <include dir>
  1247. CC C compiler command
  1248. CFLAGS C compiler flags
  1249. YACC The `Yet Another C Compiler' implementation to use. Defaults to
  1250. the first program found out of: `bison -y', `byacc', `yacc'.
  1251. YFLAGS The list of arguments that will be passed by default to $YACC.
  1252. This script will default YFLAGS to the empty string to avoid a
  1253. default value of `-d' given by some make applications.
  1254. CPP C preprocessor
  1255. Use these variables to override the choices made by `configure' or to help
  1256. it to find libraries and programs with nonstandard names/locations.
  1257. Report bugs to <t-tujikawa@users.sourceforge.net>.
  1258. _ACEOF
  1259. ac_status=$?
  1260. fi
  1261. if test "$ac_init_help" = "recursive"; then
  1262. # If there are subdirs, report their specific --help.
  1263. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1264. test -d "$ac_dir" || continue
  1265. ac_builddir=.
  1266. case "$ac_dir" in
  1267. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1268. *)
  1269. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1270. # A ".." for each directory in $ac_dir_suffix.
  1271. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1272. case $ac_top_builddir_sub in
  1273. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1274. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1275. esac ;;
  1276. esac
  1277. ac_abs_top_builddir=$ac_pwd
  1278. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1279. # for backward compatibility:
  1280. ac_top_builddir=$ac_top_build_prefix
  1281. case $srcdir in
  1282. .) # We are building in place.
  1283. ac_srcdir=.
  1284. ac_top_srcdir=$ac_top_builddir_sub
  1285. ac_abs_top_srcdir=$ac_pwd ;;
  1286. [\\/]* | ?:[\\/]* ) # Absolute name.
  1287. ac_srcdir=$srcdir$ac_dir_suffix;
  1288. ac_top_srcdir=$srcdir
  1289. ac_abs_top_srcdir=$srcdir ;;
  1290. *) # Relative name.
  1291. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1292. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1293. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1294. esac
  1295. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1296. cd "$ac_dir" || { ac_status=$?; continue; }
  1297. # Check for guested configure.
  1298. if test -f "$ac_srcdir/configure.gnu"; then
  1299. echo &&
  1300. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1301. elif test -f "$ac_srcdir/configure"; then
  1302. echo &&
  1303. $SHELL "$ac_srcdir/configure" --help=recursive
  1304. else
  1305. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1306. fi || ac_status=$?
  1307. cd "$ac_pwd" || { ac_status=$?; break; }
  1308. done
  1309. fi
  1310. test -n "$ac_init_help" && exit $ac_status
  1311. if $ac_init_version; then
  1312. cat <<\_ACEOF
  1313. aria2c configure 0.11.1+1
  1314. generated by GNU Autoconf 2.61
  1315. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1316. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1317. This configure script is free software; the Free Software Foundation
  1318. gives unlimited permission to copy, distribute and modify it.
  1319. _ACEOF
  1320. exit
  1321. fi
  1322. cat >config.log <<_ACEOF
  1323. This file contains any messages produced by compilers while
  1324. running configure, to aid debugging if configure makes a mistake.
  1325. It was created by aria2c $as_me 0.11.1+1, which was
  1326. generated by GNU Autoconf 2.61. Invocation command line was
  1327. $ $0 $@
  1328. _ACEOF
  1329. exec 5>>config.log
  1330. {
  1331. cat <<_ASUNAME
  1332. ## --------- ##
  1333. ## Platform. ##
  1334. ## --------- ##
  1335. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1336. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1337. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1338. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1339. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1340. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1341. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1342. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1343. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1344. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1345. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1346. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1347. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1348. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1349. _ASUNAME
  1350. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1351. for as_dir in $PATH
  1352. do
  1353. IFS=$as_save_IFS
  1354. test -z "$as_dir" && as_dir=.
  1355. echo "PATH: $as_dir"
  1356. done
  1357. IFS=$as_save_IFS
  1358. } >&5
  1359. cat >&5 <<_ACEOF
  1360. ## ----------- ##
  1361. ## Core tests. ##
  1362. ## ----------- ##
  1363. _ACEOF
  1364. # Keep a trace of the command line.
  1365. # Strip out --no-create and --no-recursion so they do not pile up.
  1366. # Strip out --silent because we don't want to record it for future runs.
  1367. # Also quote any args containing shell meta-characters.
  1368. # Make two passes to allow for proper duplicate-argument suppression.
  1369. ac_configure_args=
  1370. ac_configure_args0=
  1371. ac_configure_args1=
  1372. ac_must_keep_next=false
  1373. for ac_pass in 1 2
  1374. do
  1375. for ac_arg
  1376. do
  1377. case $ac_arg in
  1378. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1379. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1380. | -silent | --silent | --silen | --sile | --sil)
  1381. continue ;;
  1382. *\'*)
  1383. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1384. esac
  1385. case $ac_pass in
  1386. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1387. 2)
  1388. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1389. if test $ac_must_keep_next = true; then
  1390. ac_must_keep_next=false # Got value, back to normal.
  1391. else
  1392. case $ac_arg in
  1393. *=* | --config-cache | -C | -disable-* | --disable-* \
  1394. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1395. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1396. | -with-* | --with-* | -without-* | --without-* | --x)
  1397. case "$ac_configure_args0 " in
  1398. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1399. esac
  1400. ;;
  1401. -* ) ac_must_keep_next=true ;;
  1402. esac
  1403. fi
  1404. ac_configure_args="$ac_configure_args '$ac_arg'"
  1405. ;;
  1406. esac
  1407. done
  1408. done
  1409. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1410. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1411. # When interrupted or exit'd, cleanup temporary files, and complete
  1412. # config.log. We remove comments because anyway the quotes in there
  1413. # would cause problems or look ugly.
  1414. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1415. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1416. trap 'exit_status=$?
  1417. # Save into config.log some information that might help in debugging.
  1418. {
  1419. echo
  1420. cat <<\_ASBOX
  1421. ## ---------------- ##
  1422. ## Cache variables. ##
  1423. ## ---------------- ##
  1424. _ASBOX
  1425. echo
  1426. # The following way of writing the cache mishandles newlines in values,
  1427. (
  1428. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1429. eval ac_val=\$$ac_var
  1430. case $ac_val in #(
  1431. *${as_nl}*)
  1432. case $ac_var in #(
  1433. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1434. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1435. esac
  1436. case $ac_var in #(
  1437. _ | IFS | as_nl) ;; #(
  1438. *) $as_unset $ac_var ;;
  1439. esac ;;
  1440. esac
  1441. done
  1442. (set) 2>&1 |
  1443. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1444. *${as_nl}ac_space=\ *)
  1445. sed -n \
  1446. "s/'\''/'\''\\\\'\'''\''/g;
  1447. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1448. ;; #(
  1449. *)
  1450. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1451. ;;
  1452. esac |
  1453. sort
  1454. )
  1455. echo
  1456. cat <<\_ASBOX
  1457. ## ----------------- ##
  1458. ## Output variables. ##
  1459. ## ----------------- ##
  1460. _ASBOX
  1461. echo
  1462. for ac_var in $ac_subst_vars
  1463. do
  1464. eval ac_val=\$$ac_var
  1465. case $ac_val in
  1466. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1467. esac
  1468. echo "$ac_var='\''$ac_val'\''"
  1469. done | sort
  1470. echo
  1471. if test -n "$ac_subst_files"; then
  1472. cat <<\_ASBOX
  1473. ## ------------------- ##
  1474. ## File substitutions. ##
  1475. ## ------------------- ##
  1476. _ASBOX
  1477. echo
  1478. for ac_var in $ac_subst_files
  1479. do
  1480. eval ac_val=\$$ac_var
  1481. case $ac_val in
  1482. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1483. esac
  1484. echo "$ac_var='\''$ac_val'\''"
  1485. done | sort
  1486. echo
  1487. fi
  1488. if test -s confdefs.h; then
  1489. cat <<\_ASBOX
  1490. ## ----------- ##
  1491. ## confdefs.h. ##
  1492. ## ----------- ##
  1493. _ASBOX
  1494. echo
  1495. cat confdefs.h
  1496. echo
  1497. fi
  1498. test "$ac_signal" != 0 &&
  1499. echo "$as_me: caught signal $ac_signal"
  1500. echo "$as_me: exit $exit_status"
  1501. } >&5
  1502. rm -f core *.core core.conftest.* &&
  1503. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1504. exit $exit_status
  1505. ' 0
  1506. for ac_signal in 1 2 13 15; do
  1507. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1508. done
  1509. ac_signal=0
  1510. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1511. rm -f -r conftest* confdefs.h
  1512. # Predefined preprocessor variables.
  1513. cat >>confdefs.h <<_ACEOF
  1514. #define PACKAGE_NAME "$PACKAGE_NAME"
  1515. _ACEOF
  1516. cat >>confdefs.h <<_ACEOF
  1517. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1518. _ACEOF
  1519. cat >>confdefs.h <<_ACEOF
  1520. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1521. _ACEOF
  1522. cat >>confdefs.h <<_ACEOF
  1523. #define PACKAGE_STRING "$PACKAGE_STRING"
  1524. _ACEOF
  1525. cat >>confdefs.h <<_ACEOF
  1526. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1527. _ACEOF
  1528. # Let the site file select an alternate cache file if it wants to.
  1529. # Prefer explicitly selected file to automatically selected ones.
  1530. if test -n "$CONFIG_SITE"; then
  1531. set x "$CONFIG_SITE"
  1532. elif test "x$prefix" != xNONE; then
  1533. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1534. else
  1535. set x "$ac_default_prefix/share/config.site" \
  1536. "$ac_default_prefix/etc/config.site"
  1537. fi
  1538. shift
  1539. for ac_site_file
  1540. do
  1541. if test -r "$ac_site_file"; then
  1542. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1543. echo "$as_me: loading site script $ac_site_file" >&6;}
  1544. sed 's/^/| /' "$ac_site_file" >&5
  1545. . "$ac_site_file"
  1546. fi
  1547. done
  1548. if test -r "$cache_file"; then
  1549. # Some versions of bash will fail to source /dev/null (special
  1550. # files actually), so we avoid doing that.
  1551. if test -f "$cache_file"; then
  1552. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1553. echo "$as_me: loading cache $cache_file" >&6;}
  1554. case $cache_file in
  1555. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1556. *) . "./$cache_file";;
  1557. esac
  1558. fi
  1559. else
  1560. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1561. echo "$as_me: creating cache $cache_file" >&6;}
  1562. >$cache_file
  1563. fi
  1564. # Check that the precious variables saved in the cache have kept the same
  1565. # value.
  1566. ac_cache_corrupted=false
  1567. for ac_var in $ac_precious_vars; do
  1568. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1569. eval ac_new_set=\$ac_env_${ac_var}_set
  1570. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1571. eval ac_new_val=\$ac_env_${ac_var}_value
  1572. case $ac_old_set,$ac_new_set in
  1573. set,)
  1574. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1575. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1576. ac_cache_corrupted=: ;;
  1577. ,set)
  1578. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1579. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1580. ac_cache_corrupted=: ;;
  1581. ,);;
  1582. *)
  1583. if test "x$ac_old_val" != "x$ac_new_val"; then
  1584. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1585. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1586. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1587. echo "$as_me: former value: $ac_old_val" >&2;}
  1588. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1589. echo "$as_me: current value: $ac_new_val" >&2;}
  1590. ac_cache_corrupted=:
  1591. fi;;
  1592. esac
  1593. # Pass precious variables to config.status.
  1594. if test "$ac_new_set" = set; then
  1595. case $ac_new_val in
  1596. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1597. *) ac_arg=$ac_var=$ac_new_val ;;
  1598. esac
  1599. case " $ac_configure_args " in
  1600. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1601. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1602. esac
  1603. fi
  1604. done
  1605. if $ac_cache_corrupted; then
  1606. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1607. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1608. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1609. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1610. { (exit 1); exit 1; }; }
  1611. fi
  1612. ac_ext=c
  1613. ac_cpp='$CPP $CPPFLAGS'
  1614. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1615. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1616. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1617. ac_aux_dir=
  1618. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  1619. if test -f "$ac_dir/install-sh"; then
  1620. ac_aux_dir=$ac_dir
  1621. ac_install_sh="$ac_aux_dir/install-sh -c"
  1622. break
  1623. elif test -f "$ac_dir/install.sh"; then
  1624. ac_aux_dir=$ac_dir
  1625. ac_install_sh="$ac_aux_dir/install.sh -c"
  1626. break
  1627. elif test -f "$ac_dir/shtool"; then
  1628. ac_aux_dir=$ac_dir
  1629. ac_install_sh="$ac_aux_dir/shtool install -c"
  1630. break
  1631. fi
  1632. done
  1633. if test -z "$ac_aux_dir"; then
  1634. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
  1635. echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
  1636. { (exit 1); exit 1; }; }
  1637. fi
  1638. # These three variables are undocumented and unsupported,
  1639. # and are intended to be withdrawn in a future Autoconf release.
  1640. # They can cause serious problems if a builder's source tree is in a directory
  1641. # whose full name contains unusual characters.
  1642. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1643. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1644. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1645. # Make sure we can run config.sub.
  1646. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  1647. { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
  1648. echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
  1649. { (exit 1); exit 1; }; }
  1650. { echo "$as_me:$LINENO: checking build system type" >&5
  1651. echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
  1652. if test "${ac_cv_build+set}" = set; then
  1653. echo $ECHO_N "(cached) $ECHO_C" >&6
  1654. else
  1655. ac_build_alias=$build_alias
  1656. test "x$ac_build_alias" = x &&
  1657. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  1658. test "x$ac_build_alias" = x &&
  1659. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1660. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1661. { (exit 1); exit 1; }; }
  1662. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  1663. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
  1664. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
  1665. { (exit 1); exit 1; }; }
  1666. fi
  1667. { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1668. echo "${ECHO_T}$ac_cv_build" >&6; }
  1669. case $ac_cv_build in
  1670. *-*-*) ;;
  1671. *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
  1672. echo "$as_me: error: invalid value of canonical build" >&2;}
  1673. { (exit 1); exit 1; }; };;
  1674. esac
  1675. build=$ac_cv_build
  1676. ac_save_IFS=$IFS; IFS='-'
  1677. set x $ac_cv_build
  1678. shift
  1679. build_cpu=$1
  1680. build_vendor=$2
  1681. shift; shift
  1682. # Remember, the first character of IFS is used to create $*,
  1683. # except with old shells:
  1684. build_os=$*
  1685. IFS=$ac_save_IFS
  1686. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  1687. { echo "$as_me:$LINENO: checking host system type" >&5
  1688. echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
  1689. if test "${ac_cv_host+set}" = set; then
  1690. echo $ECHO_N "(cached) $ECHO_C" >&6
  1691. else
  1692. if test "x$host_alias" = x; then
  1693. ac_cv_host=$ac_cv_build
  1694. else
  1695. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  1696. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
  1697. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
  1698. { (exit 1); exit 1; }; }
  1699. fi
  1700. fi
  1701. { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1702. echo "${ECHO_T}$ac_cv_host" >&6; }
  1703. case $ac_cv_host in
  1704. *-*-*) ;;
  1705. *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
  1706. echo "$as_me: error: invalid value of canonical host" >&2;}
  1707. { (exit 1); exit 1; }; };;
  1708. esac
  1709. host=$ac_cv_host
  1710. ac_save_IFS=$IFS; IFS='-'
  1711. set x $ac_cv_host
  1712. shift
  1713. host_cpu=$1
  1714. host_vendor=$2
  1715. shift; shift
  1716. # Remember, the first character of IFS is used to create $*,
  1717. # except with old shells:
  1718. host_os=$*
  1719. IFS=$ac_save_IFS
  1720. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  1721. { echo "$as_me:$LINENO: checking target system type" >&5
  1722. echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
  1723. if test "${ac_cv_target+set}" = set; then
  1724. echo $ECHO_N "(cached) $ECHO_C" >&6
  1725. else
  1726. if test "x$target_alias" = x; then
  1727. ac_cv_target=$ac_cv_host
  1728. else
  1729. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  1730. { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
  1731. echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
  1732. { (exit 1); exit 1; }; }
  1733. fi
  1734. fi
  1735. { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1736. echo "${ECHO_T}$ac_cv_target" >&6; }
  1737. case $ac_cv_target in
  1738. *-*-*) ;;
  1739. *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
  1740. echo "$as_me: error: invalid value of canonical target" >&2;}
  1741. { (exit 1); exit 1; }; };;
  1742. esac
  1743. target=$ac_cv_target
  1744. ac_save_IFS=$IFS; IFS='-'
  1745. set x $ac_cv_target
  1746. shift
  1747. target_cpu=$1
  1748. target_vendor=$2
  1749. shift; shift
  1750. # Remember, the first character of IFS is used to create $*,
  1751. # except with old shells:
  1752. target_os=$*
  1753. IFS=$ac_save_IFS
  1754. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  1755. # The aliases save the names the user supplied, while $host etc.
  1756. # will get canonicalized.
  1757. test -n "$target_alias" &&
  1758. test "$program_prefix$program_suffix$program_transform_name" = \
  1759. NONENONEs,x,x, &&
  1760. program_prefix=${target_alias}-
  1761. am__api_version="1.9"
  1762. # Find a good install program. We prefer a C program (faster),
  1763. # so one script is as good as another. But avoid the broken or
  1764. # incompatible versions:
  1765. # SysV /etc/install, /usr/sbin/install
  1766. # SunOS /usr/etc/install
  1767. # IRIX /sbin/install
  1768. # AIX /bin/install
  1769. # AmigaOS /C/install, which installs bootblocks on floppy discs
  1770. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  1771. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  1772. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  1773. # OS/2's system install, which has a completely different semantic
  1774. # ./install, which can be erroneously created by make from ./install.sh.
  1775. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  1776. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  1777. if test -z "$INSTALL"; then
  1778. if test "${ac_cv_path_install+set}" = set; then
  1779. echo $ECHO_N "(cached) $ECHO_C" >&6
  1780. else
  1781. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1782. for as_dir in $PATH
  1783. do
  1784. IFS=$as_save_IFS
  1785. test -z "$as_dir" && as_dir=.
  1786. # Account for people who put trailing slashes in PATH elements.
  1787. case $as_dir/ in
  1788. ./ | .// | /cC/* | \
  1789. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  1790. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  1791. /usr/ucb/* ) ;;
  1792. *)
  1793. # OSF1 and SCO ODT 3.0 have their own names for install.
  1794. # Don't use installbsd from OSF since it installs stuff as root
  1795. # by default.
  1796. for ac_prog in ginstall scoinst install; do
  1797. for ac_exec_ext in '' $ac_executable_extensions; do
  1798. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  1799. if test $ac_prog = install &&
  1800. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1801. # AIX install. It has an incompatible calling convention.
  1802. :
  1803. elif test $ac_prog = install &&
  1804. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  1805. # program-specific install script used by HP pwplus--don't use.
  1806. :
  1807. else
  1808. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  1809. break 3
  1810. fi
  1811. fi
  1812. done
  1813. done
  1814. ;;
  1815. esac
  1816. done
  1817. IFS=$as_save_IFS
  1818. fi
  1819. if test "${ac_cv_path_install+set}" = set; then
  1820. INSTALL=$ac_cv_path_install
  1821. else
  1822. # As a last resort, use the slow shell script. Don't cache a
  1823. # value for INSTALL within a source directory, because that will
  1824. # break other packages using the cache if that directory is
  1825. # removed, or if the value is a relative name.
  1826. INSTALL=$ac_install_sh
  1827. fi
  1828. fi
  1829. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  1830. echo "${ECHO_T}$INSTALL" >&6; }
  1831. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  1832. # It thinks the first close brace ends the variable substitution.
  1833. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  1834. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  1835. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  1836. { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  1837. echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
  1838. # Just in case
  1839. sleep 1
  1840. echo timestamp > conftest.file
  1841. # Do `set' in a subshell so we don't clobber the current shell's
  1842. # arguments. Must try -L first in case configure is actually a
  1843. # symlink; some systems play weird games with the mod time of symlinks
  1844. # (eg FreeBSD returns the mod time of the symlink's containing
  1845. # directory).
  1846. if (
  1847. set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  1848. if test "$*" = "X"; then
  1849. # -L didn't work.
  1850. set X `ls -t $srcdir/configure conftest.file`
  1851. fi
  1852. rm -f conftest.file
  1853. if test "$*" != "X $srcdir/configure conftest.file" \
  1854. && test "$*" != "X conftest.file $srcdir/configure"; then
  1855. # If neither matched, then we have a broken ls. This can happen
  1856. # if, for instance, CONFIG_SHELL is bash and it inherits a
  1857. # broken ls alias from the environment. This has actually
  1858. # happened. Such a system could not be considered "sane".
  1859. { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  1860. alias in your environment" >&5
  1861. echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  1862. alias in your environment" >&2;}
  1863. { (exit 1); exit 1; }; }
  1864. fi
  1865. test "$2" = conftest.file
  1866. )
  1867. then
  1868. # Ok.
  1869. :
  1870. else
  1871. { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  1872. Check your system clock" >&5
  1873. echo "$as_me: error: newly created file is older than distributed files!
  1874. Check your system clock" >&2;}
  1875. { (exit 1); exit 1; }; }
  1876. fi
  1877. { echo "$as_me:$LINENO: result: yes" >&5
  1878. echo "${ECHO_T}yes" >&6; }
  1879. test "$program_prefix" != NONE &&
  1880. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  1881. # Use a double $ so make ignores it.
  1882. test "$program_suffix" != NONE &&
  1883. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  1884. # Double any \ or $. echo might interpret backslashes.
  1885. # By default was `s,x,x', remove it if useless.
  1886. cat <<\_ACEOF >conftest.sed
  1887. s/[\\$]/&&/g;s/;s,x,x,$//
  1888. _ACEOF
  1889. program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  1890. rm -f conftest.sed
  1891. # expand $ac_aux_dir to an absolute path
  1892. am_aux_dir=`cd $ac_aux_dir && pwd`
  1893. test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  1894. # Use eval to expand $SHELL
  1895. if eval "$MISSING --run true"; then
  1896. am_missing_run="$MISSING --run "
  1897. else
  1898. am_missing_run=
  1899. { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  1900. echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  1901. fi
  1902. if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  1903. # We used to keeping the `.' as first argument, in order to
  1904. # allow $(mkdir_p) to be used without argument. As in
  1905. # $(mkdir_p) $(somedir)
  1906. # where $(somedir) is conditionally defined. However this is wrong
  1907. # for two reasons:
  1908. # 1. if the package is installed by a user who cannot write `.'
  1909. # make install will fail,
  1910. # 2. the above comment should most certainly read
  1911. # $(mkdir_p) $(DESTDIR)$(somedir)
  1912. # so it does not work when $(somedir) is undefined and
  1913. # $(DESTDIR) is not.
  1914. # To support the latter case, we have to write
  1915. # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  1916. # so the `.' trick is pointless.
  1917. mkdir_p='mkdir -p --'
  1918. else
  1919. # On NextStep and OpenStep, the `mkdir' command does not
  1920. # recognize any option. It will interpret all options as
  1921. # directories to create, and then abort because `.' already
  1922. # exists.
  1923. for d in ./-p ./--version;
  1924. do
  1925. test -d $d && rmdir $d
  1926. done
  1927. # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  1928. if test -f "$ac_aux_dir/mkinstalldirs"; then
  1929. mkdir_p='$(mkinstalldirs)'
  1930. else
  1931. mkdir_p='$(install_sh) -d'
  1932. fi
  1933. fi
  1934. for ac_prog in gawk mawk nawk awk
  1935. do
  1936. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1937. set dummy $ac_prog; ac_word=$2
  1938. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1939. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1940. if test "${ac_cv_prog_AWK+set}" = set; then
  1941. echo $ECHO_N "(cached) $ECHO_C" >&6
  1942. else
  1943. if test -n "$AWK"; then
  1944. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  1945. else
  1946. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1947. for as_dir in $PATH
  1948. do
  1949. IFS=$as_save_IFS
  1950. test -z "$as_dir" && as_dir=.
  1951. for ac_exec_ext in '' $ac_executable_extensions; do
  1952. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1953. ac_cv_prog_AWK="$ac_prog"
  1954. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1955. break 2
  1956. fi
  1957. done
  1958. done
  1959. IFS=$as_save_IFS
  1960. fi
  1961. fi
  1962. AWK=$ac_cv_prog_AWK
  1963. if test -n "$AWK"; then
  1964. { echo "$as_me:$LINENO: result: $AWK" >&5
  1965. echo "${ECHO_T}$AWK" >&6; }
  1966. else
  1967. { echo "$as_me:$LINENO: result: no" >&5
  1968. echo "${ECHO_T}no" >&6; }
  1969. fi
  1970. test -n "$AWK" && break
  1971. done
  1972. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1973. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  1974. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  1975. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  1976. echo $ECHO_N "(cached) $ECHO_C" >&6
  1977. else
  1978. cat >conftest.make <<\_ACEOF
  1979. SHELL = /bin/sh
  1980. all:
  1981. @echo '@@@%%%=$(MAKE)=@@@%%%'
  1982. _ACEOF
  1983. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1984. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  1985. *@@@%%%=?*=@@@%%%*)
  1986. eval ac_cv_prog_make_${ac_make}_set=yes;;
  1987. *)
  1988. eval ac_cv_prog_make_${ac_make}_set=no;;
  1989. esac
  1990. rm -f conftest.make
  1991. fi
  1992. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  1993. { echo "$as_me:$LINENO: result: yes" >&5
  1994. echo "${ECHO_T}yes" >&6; }
  1995. SET_MAKE=
  1996. else
  1997. { echo "$as_me:$LINENO: result: no" >&5
  1998. echo "${ECHO_T}no" >&6; }
  1999. SET_MAKE="MAKE=${MAKE-make}"
  2000. fi
  2001. rm -rf .tst 2>/dev/null
  2002. mkdir .tst 2>/dev/null
  2003. if test -d .tst; then
  2004. am__leading_dot=.
  2005. else
  2006. am__leading_dot=_
  2007. fi
  2008. rmdir .tst 2>/dev/null
  2009. # test to see if srcdir already configured
  2010. if test "`cd $srcdir && pwd`" != "`pwd`" &&
  2011. test -f $srcdir/config.status; then
  2012. { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  2013. echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  2014. { (exit 1); exit 1; }; }
  2015. fi
  2016. # test whether we have cygpath
  2017. if test -z "$CYGPATH_W"; then
  2018. if (cygpath --version) >/dev/null 2>/dev/null; then
  2019. CYGPATH_W='cygpath -w'
  2020. else
  2021. CYGPATH_W=echo
  2022. fi
  2023. fi
  2024. # Define the identity of the package.
  2025. PACKAGE='aria2c'
  2026. VERSION='0.11.1+1'
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE "$PACKAGE"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define VERSION "$VERSION"
  2032. _ACEOF
  2033. # Some tools Automake needs.
  2034. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2035. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2036. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2037. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2038. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2039. install_sh=${install_sh-"$am_aux_dir/install-sh"}
  2040. # Installed binaries are usually stripped using `strip' when the user
  2041. # run `make install-strip'. However `strip' might not be the right
  2042. # tool to use in cross-compilation environments, therefore Automake
  2043. # will honor the `STRIP' environment variable to overrule this program.
  2044. if test "$cross_compiling" != no; then
  2045. if test -n "$ac_tool_prefix"; then
  2046. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2047. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2048. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2049. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2050. if test "${ac_cv_prog_STRIP+set}" = set; then
  2051. echo $ECHO_N "(cached) $ECHO_C" >&6
  2052. else
  2053. if test -n "$STRIP"; then
  2054. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2055. else
  2056. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2057. for as_dir in $PATH
  2058. do
  2059. IFS=$as_save_IFS
  2060. test -z "$as_dir" && as_dir=.
  2061. for ac_exec_ext in '' $ac_executable_extensions; do
  2062. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2063. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2064. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2065. break 2
  2066. fi
  2067. done
  2068. done
  2069. IFS=$as_save_IFS
  2070. fi
  2071. fi
  2072. STRIP=$ac_cv_prog_STRIP
  2073. if test -n "$STRIP"; then
  2074. { echo "$as_me:$LINENO: result: $STRIP" >&5
  2075. echo "${ECHO_T}$STRIP" >&6; }
  2076. else
  2077. { echo "$as_me:$LINENO: result: no" >&5
  2078. echo "${ECHO_T}no" >&6; }
  2079. fi
  2080. fi
  2081. if test -z "$ac_cv_prog_STRIP"; then
  2082. ac_ct_STRIP=$STRIP
  2083. # Extract the first word of "strip", so it can be a program name with args.
  2084. set dummy strip; ac_word=$2
  2085. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2086. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2087. if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  2088. echo $ECHO_N "(cached) $ECHO_C" >&6
  2089. else
  2090. if test -n "$ac_ct_STRIP"; then
  2091. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2092. else
  2093. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2094. for as_dir in $PATH
  2095. do
  2096. IFS=$as_save_IFS
  2097. test -z "$as_dir" && as_dir=.
  2098. for ac_exec_ext in '' $ac_executable_extensions; do
  2099. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2100. ac_cv_prog_ac_ct_STRIP="strip"
  2101. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2102. break 2
  2103. fi
  2104. done
  2105. done
  2106. IFS=$as_save_IFS
  2107. fi
  2108. fi
  2109. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2110. if test -n "$ac_ct_STRIP"; then
  2111. { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  2112. echo "${ECHO_T}$ac_ct_STRIP" >&6; }
  2113. else
  2114. { echo "$as_me:$LINENO: result: no" >&5
  2115. echo "${ECHO_T}no" >&6; }
  2116. fi
  2117. if test "x$ac_ct_STRIP" = x; then
  2118. STRIP=":"
  2119. else
  2120. case $cross_compiling:$ac_tool_warned in
  2121. yes:)
  2122. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2123. whose name does not start with the host triplet. If you think this
  2124. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2125. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2126. whose name does not start with the host triplet. If you think this
  2127. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2128. ac_tool_warned=yes ;;
  2129. esac
  2130. STRIP=$ac_ct_STRIP
  2131. fi
  2132. else
  2133. STRIP="$ac_cv_prog_STRIP"
  2134. fi
  2135. fi
  2136. INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  2137. # We need awk for the "check" target. The system "awk" is bad on
  2138. # some platforms.
  2139. # Always define AMTAR for backward compatibility.
  2140. AMTAR=${AMTAR-"${am_missing_run}tar"}
  2141. am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
  2142. # Check whether --with-cppunit-prefix was given.
  2143. if test "${with_cppunit_prefix+set}" = set; then
  2144. withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
  2145. else
  2146. cppunit_config_prefix=""
  2147. fi
  2148. # Check whether --with-cppunit-exec-prefix was given.
  2149. if test "${with_cppunit_exec_prefix+set}" = set; then
  2150. withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
  2151. else
  2152. cppunit_config_exec_prefix=""
  2153. fi
  2154. if test x$cppunit_config_exec_prefix != x ; then
  2155. cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
  2156. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2157. CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
  2158. fi
  2159. fi
  2160. if test x$cppunit_config_prefix != x ; then
  2161. cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
  2162. if test x${CPPUNIT_CONFIG+set} != xset ; then
  2163. CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
  2164. fi
  2165. fi
  2166. # Extract the first word of "cppunit-config", so it can be a program name with args.
  2167. set dummy cppunit-config; ac_word=$2
  2168. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2169. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2170. if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
  2171. echo $ECHO_N "(cached) $ECHO_C" >&6
  2172. else
  2173. case $CPPUNIT_CONFIG in
  2174. [\\/]* | ?:[\\/]*)
  2175. ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
  2176. ;;
  2177. *)
  2178. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2179. for as_dir in $PATH
  2180. do
  2181. IFS=$as_save_IFS
  2182. test -z "$as_dir" && as_dir=.
  2183. for ac_exec_ext in '' $ac_executable_extensions; do
  2184. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2185. ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  2186. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2187. break 2
  2188. fi
  2189. done
  2190. done
  2191. IFS=$as_save_IFS
  2192. test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
  2193. ;;
  2194. esac
  2195. fi
  2196. CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
  2197. if test -n "$CPPUNIT_CONFIG"; then
  2198. { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
  2199. echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
  2200. else
  2201. { echo "$as_me:$LINENO: result: no" >&5
  2202. echo "${ECHO_T}no" >&6; }
  2203. fi
  2204. cppunit_version_min=1.10.2
  2205. { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
  2206. echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
  2207. no_cppunit=""
  2208. if test "$CPPUNIT_CONFIG" = "no" ; then
  2209. { echo "$as_me:$LINENO: result: no" >&5
  2210. echo "${ECHO_T}no" >&6; }
  2211. no_cppunit=yes
  2212. else
  2213. CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
  2214. CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
  2215. cppunit_version=`$CPPUNIT_CONFIG --version`
  2216. cppunit_major_version=`echo $cppunit_version | \
  2217. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2218. cppunit_minor_version=`echo $cppunit_version | \
  2219. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2220. cppunit_micro_version=`echo $cppunit_version | \
  2221. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2222. cppunit_major_min=`echo $cppunit_version_min | \
  2223. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  2224. if test "x${cppunit_major_min}" = "x" ; then
  2225. cppunit_major_min=0
  2226. fi
  2227. cppunit_minor_min=`echo $cppunit_version_min | \
  2228. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  2229. if test "x${cppunit_minor_min}" = "x" ; then
  2230. cppunit_minor_min=0
  2231. fi
  2232. cppunit_micro_min=`echo $cppunit_version_min | \
  2233. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  2234. if test "x${cppunit_micro_min}" = "x" ; then
  2235. cppunit_micro_min=0
  2236. fi
  2237. cppunit_version_proper=`expr \
  2238. $cppunit_major_version \> $cppunit_major_min \| \
  2239. $cppunit_major_version \= $cppunit_major_min \& \
  2240. $cppunit_minor_version \> $cppunit_minor_min \| \
  2241. $cppunit_major_version \= $cppunit_major_min \& \
  2242. $cppunit_minor_version \= $cppunit_minor_min \& \
  2243. $cppunit_micro_version \>= $cppunit_micro_min `
  2244. if test "$cppunit_version_proper" = "1" ; then
  2245. { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
  2246. echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
  2247. else
  2248. { echo "$as_me:$LINENO: result: no" >&5
  2249. echo "${ECHO_T}no" >&6; }
  2250. no_cppunit=yes
  2251. fi
  2252. fi
  2253. if test "x$no_cppunit" = x ; then
  2254. :
  2255. else
  2256. CPPUNIT_CFLAGS=""
  2257. CPPUNIT_LIBS=""
  2258. :
  2259. fi
  2260. ac_config_headers="$ac_config_headers config.h"
  2261. case "$target" in
  2262. *mingw*|*cygwin*)
  2263. WINSOCK_LIBS="-lws2_32"
  2264. ;;
  2265. esac
  2266. # Set localedir
  2267. localedir=${datadir}/locale
  2268. # Checks for arguments.
  2269. # Check whether --with-gnutls was given.
  2270. if test "${with_gnutls+set}" = set; then
  2271. withval=$with_gnutls; with_gnutls=$withval
  2272. else
  2273. with_gnutls=yes
  2274. fi
  2275. # Check whether --with-openssl was given.
  2276. if test "${with_openssl+set}" = set; then
  2277. withval=$with_openssl; with_openssl=$withval
  2278. else
  2279. with_openssl=yes
  2280. fi
  2281. # Check whether --with-libxml2 was given.
  2282. if test "${with_libxml2+set}" = set; then
  2283. withval=$with_libxml2; with_libxml2=$withval
  2284. else
  2285. with_libxml2=yes
  2286. fi
  2287. # Check whether --with-libares was given.
  2288. if test "${with_libares+set}" = set; then
  2289. withval=$with_libares; with_libares=$withval
  2290. else
  2291. with_libares=yes
  2292. fi
  2293. # Check whether --with-libcares was given.
  2294. if test "${with_libcares+set}" = set; then
  2295. withval=$with_libcares; with_libcares=$withval
  2296. else
  2297. with_libcares=yes
  2298. fi
  2299. # Check whether --enable-bittorrent was given.
  2300. if test "${enable_bittorrent+set}" = set; then
  2301. enableval=$enable_bittorrent; enable_bittorrent=$enableval
  2302. else
  2303. enable_bittorrent=yes
  2304. fi
  2305. # Check whether --enable-metalink was given.
  2306. if test "${enable_metalink+set}" = set; then
  2307. enableval=$enable_metalink; enable_metalink=$enableval
  2308. else
  2309. enable_metalink=yes
  2310. fi
  2311. # Checks for programs.
  2312. ac_ext=cpp
  2313. ac_cpp='$CXXCPP $CPPFLAGS'
  2314. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2315. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2316. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2317. if test -z "$CXX"; then
  2318. if test -n "$CCC"; then
  2319. CXX=$CCC
  2320. else
  2321. if test -n "$ac_tool_prefix"; then
  2322. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2323. do
  2324. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2325. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2326. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2327. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2328. if test "${ac_cv_prog_CXX+set}" = set; then
  2329. echo $ECHO_N "(cached) $ECHO_C" >&6
  2330. else
  2331. if test -n "$CXX"; then
  2332. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  2333. else
  2334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2335. for as_dir in $PATH
  2336. do
  2337. IFS=$as_save_IFS
  2338. test -z "$as_dir" && as_dir=.
  2339. for ac_exec_ext in '' $ac_executable_extensions; do
  2340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2341. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  2342. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2343. break 2
  2344. fi
  2345. done
  2346. done
  2347. IFS=$as_save_IFS
  2348. fi
  2349. fi
  2350. CXX=$ac_cv_prog_CXX
  2351. if test -n "$CXX"; then
  2352. { echo "$as_me:$LINENO: result: $CXX" >&5
  2353. echo "${ECHO_T}$CXX" >&6; }
  2354. else
  2355. { echo "$as_me:$LINENO: result: no" >&5
  2356. echo "${ECHO_T}no" >&6; }
  2357. fi
  2358. test -n "$CXX" && break
  2359. done
  2360. fi
  2361. if test -z "$CXX"; then
  2362. ac_ct_CXX=$CXX
  2363. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  2364. do
  2365. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2366. set dummy $ac_prog; ac_word=$2
  2367. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  2368. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  2369. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  2370. echo $ECHO_N "(cached) $ECHO_C" >&6
  2371. else
  2372. if test -n "$ac_ct_CXX"; then
  2373. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  2374. else
  2375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2376. for as_dir in $PATH
  2377. do
  2378. IFS=$as_save_IFS
  2379. test -z "$as_dir" && as_dir=.
  2380. for ac_exec_ext in '' $ac_executable_extensions; do
  2381. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  2382. ac_cv_prog_ac_ct_CXX="$ac_prog"
  2383. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2384. break 2
  2385. fi
  2386. done
  2387. done
  2388. IFS=$as_save_IFS
  2389. fi
  2390. fi
  2391. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  2392. if test -n "$ac_ct_CXX"; then
  2393. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  2394. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  2395. else
  2396. { echo "$as_me:$LINENO: result: no" >&5
  2397. echo "${ECHO_T}no" >&6; }
  2398. fi
  2399. test -n "$ac_ct_CXX" && break
  2400. done
  2401. if test "x$ac_ct_CXX" = x; then
  2402. CXX="g++"
  2403. else
  2404. case $cross_compiling:$ac_tool_warned in
  2405. yes:)
  2406. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  2407. whose name does not start with the host triplet. If you think this
  2408. configuration is useful to you, please write to autoconf@gnu.org." >&5
  2409. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  2410. whose name does not start with the host triplet. If you think this
  2411. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  2412. ac_tool_warned=yes ;;
  2413. esac
  2414. CXX=$ac_ct_CXX
  2415. fi
  2416. fi
  2417. fi
  2418. fi
  2419. # Provide some information about the compiler.
  2420. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  2421. ac_compiler=`set X $ac_compile; echo $2`
  2422. { (ac_try="$ac_compiler --version >&5"
  2423. case "(($ac_try" in
  2424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2425. *) ac_try_echo=$ac_try;;
  2426. esac
  2427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2428. (eval "$ac_compiler --version >&5") 2>&5
  2429. ac_status=$?
  2430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2431. (exit $ac_status); }
  2432. { (ac_try="$ac_compiler -v >&5"
  2433. case "(($ac_try" in
  2434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2435. *) ac_try_echo=$ac_try;;
  2436. esac
  2437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2438. (eval "$ac_compiler -v >&5") 2>&5
  2439. ac_status=$?
  2440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2441. (exit $ac_status); }
  2442. { (ac_try="$ac_compiler -V >&5"
  2443. case "(($ac_try" in
  2444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2445. *) ac_try_echo=$ac_try;;
  2446. esac
  2447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2448. (eval "$ac_compiler -V >&5") 2>&5
  2449. ac_status=$?
  2450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2451. (exit $ac_status); }
  2452. cat >conftest.$ac_ext <<_ACEOF
  2453. /* confdefs.h. */
  2454. _ACEOF
  2455. cat confdefs.h >>conftest.$ac_ext
  2456. cat >>conftest.$ac_ext <<_ACEOF
  2457. /* end confdefs.h. */
  2458. int
  2459. main ()
  2460. {
  2461. ;
  2462. return 0;
  2463. }
  2464. _ACEOF
  2465. ac_clean_files_save=$ac_clean_files
  2466. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  2467. # Try to create an executable without -o first, disregard a.out.
  2468. # It will help us diagnose broken compilers, and finding out an intuition
  2469. # of exeext.
  2470. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  2471. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  2472. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2473. #
  2474. # List of possible output files, starting from the most likely.
  2475. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  2476. # only as a last resort. b.out is created by i960 compilers.
  2477. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  2478. #
  2479. # The IRIX 6 linker writes into existing files which may not be
  2480. # executable, retaining their permissions. Remove them first so a
  2481. # subsequent execution test works.
  2482. ac_rmfiles=
  2483. for ac_file in $ac_files
  2484. do
  2485. case $ac_file in
  2486. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2487. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2488. esac
  2489. done
  2490. rm -f $ac_rmfiles
  2491. if { (ac_try="$ac_link_default"
  2492. case "(($ac_try" in
  2493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2494. *) ac_try_echo=$ac_try;;
  2495. esac
  2496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2497. (eval "$ac_link_default") 2>&5
  2498. ac_status=$?
  2499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2500. (exit $ac_status); }; then
  2501. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2502. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2503. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2504. # so that the user can short-circuit this test for compilers unknown to
  2505. # Autoconf.
  2506. for ac_file in $ac_files ''
  2507. do
  2508. test -f "$ac_file" || continue
  2509. case $ac_file in
  2510. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  2511. ;;
  2512. [ab].out )
  2513. # We found the default executable, but exeext='' is most
  2514. # certainly right.
  2515. break;;
  2516. *.* )
  2517. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2518. then :; else
  2519. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2520. fi
  2521. # We set ac_cv_exeext here because the later test for it is not
  2522. # safe: cross compilers may not add the suffix if given an `-o'
  2523. # argument, so we may need to know it at that point already.
  2524. # Even if this section looks crufty: it has the advantage of
  2525. # actually working.
  2526. break;;
  2527. * )
  2528. break;;
  2529. esac
  2530. done
  2531. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2532. else
  2533. ac_file=''
  2534. fi
  2535. { echo "$as_me:$LINENO: result: $ac_file" >&5
  2536. echo "${ECHO_T}$ac_file" >&6; }
  2537. if test -z "$ac_file"; then
  2538. echo "$as_me: failed program was:" >&5
  2539. sed 's/^/| /' conftest.$ac_ext >&5
  2540. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  2541. See \`config.log' for more details." >&5
  2542. echo "$as_me: error: C++ compiler cannot create executables
  2543. See \`config.log' for more details." >&2;}
  2544. { (exit 77); exit 77; }; }
  2545. fi
  2546. ac_exeext=$ac_cv_exeext
  2547. # Check that the compiler produces executables we can run. If not, either
  2548. # the compiler is broken, or we cross compile.
  2549. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  2550. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  2551. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  2552. # If not cross compiling, check that we can run a simple program.
  2553. if test "$cross_compiling" != yes; then
  2554. if { ac_try='./$ac_file'
  2555. { (case "(($ac_try" in
  2556. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2557. *) ac_try_echo=$ac_try;;
  2558. esac
  2559. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2560. (eval "$ac_try") 2>&5
  2561. ac_status=$?
  2562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2563. (exit $ac_status); }; }; then
  2564. cross_compiling=no
  2565. else
  2566. if test "$cross_compiling" = maybe; then
  2567. cross_compiling=yes
  2568. else
  2569. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  2570. If you meant to cross compile, use \`--host'.
  2571. See \`config.log' for more details." >&5
  2572. echo "$as_me: error: cannot run C++ compiled programs.
  2573. If you meant to cross compile, use \`--host'.
  2574. See \`config.log' for more details." >&2;}
  2575. { (exit 1); exit 1; }; }
  2576. fi
  2577. fi
  2578. fi
  2579. { echo "$as_me:$LINENO: result: yes" >&5
  2580. echo "${ECHO_T}yes" >&6; }
  2581. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  2582. ac_clean_files=$ac_clean_files_save
  2583. # Check that the compiler produces executables we can run. If not, either
  2584. # the compiler is broken, or we cross compile.
  2585. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  2586. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  2587. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  2588. echo "${ECHO_T}$cross_compiling" >&6; }
  2589. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  2590. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  2591. if { (ac_try="$ac_link"
  2592. case "(($ac_try" in
  2593. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2594. *) ac_try_echo=$ac_try;;
  2595. esac
  2596. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2597. (eval "$ac_link") 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; then
  2601. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2602. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2603. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2604. # `rm'.
  2605. for ac_file in conftest.exe conftest conftest.*; do
  2606. test -f "$ac_file" || continue
  2607. case $ac_file in
  2608. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  2609. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2610. break;;
  2611. * ) break;;
  2612. esac
  2613. done
  2614. else
  2615. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  2616. See \`config.log' for more details." >&5
  2617. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  2618. See \`config.log' for more details." >&2;}
  2619. { (exit 1); exit 1; }; }
  2620. fi
  2621. rm -f conftest$ac_cv_exeext
  2622. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  2623. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  2624. rm -f conftest.$ac_ext
  2625. EXEEXT=$ac_cv_exeext
  2626. ac_exeext=$EXEEXT
  2627. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  2628. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  2629. if test "${ac_cv_objext+set}" = set; then
  2630. echo $ECHO_N "(cached) $ECHO_C" >&6
  2631. else
  2632. cat >conftest.$ac_ext <<_ACEOF
  2633. /* confdefs.h. */
  2634. _ACEOF
  2635. cat confdefs.h >>conftest.$ac_ext
  2636. cat >>conftest.$ac_ext <<_ACEOF
  2637. /* end confdefs.h. */
  2638. int
  2639. main ()
  2640. {
  2641. ;
  2642. return 0;
  2643. }
  2644. _ACEOF
  2645. rm -f conftest.o conftest.obj
  2646. if { (ac_try="$ac_compile"
  2647. case "(($ac_try" in
  2648. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2649. *) ac_try_echo=$ac_try;;
  2650. esac
  2651. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2652. (eval "$ac_compile") 2>&5
  2653. ac_status=$?
  2654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2655. (exit $ac_status); }; then
  2656. for ac_file in conftest.o conftest.obj conftest.*; do
  2657. test -f "$ac_file" || continue;
  2658. case $ac_file in
  2659. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  2660. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2661. break;;
  2662. esac
  2663. done
  2664. else
  2665. echo "$as_me: failed program was:" >&5
  2666. sed 's/^/| /' conftest.$ac_ext >&5
  2667. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  2668. See \`config.log' for more details." >&5
  2669. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  2670. See \`config.log' for more details." >&2;}
  2671. { (exit 1); exit 1; }; }
  2672. fi
  2673. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2674. fi
  2675. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  2676. echo "${ECHO_T}$ac_cv_objext" >&6; }
  2677. OBJEXT=$ac_cv_objext
  2678. ac_objext=$OBJEXT
  2679. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  2680. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  2681. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  2682. echo $ECHO_N "(cached) $ECHO_C" >&6
  2683. else
  2684. cat >conftest.$ac_ext <<_ACEOF
  2685. /* confdefs.h. */
  2686. _ACEOF
  2687. cat confdefs.h >>conftest.$ac_ext
  2688. cat >>conftest.$ac_ext <<_ACEOF
  2689. /* end confdefs.h. */
  2690. int
  2691. main ()
  2692. {
  2693. #ifndef __GNUC__
  2694. choke me
  2695. #endif
  2696. ;
  2697. return 0;
  2698. }
  2699. _ACEOF
  2700. rm -f conftest.$ac_objext
  2701. if { (ac_try="$ac_compile"
  2702. case "(($ac_try" in
  2703. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2704. *) ac_try_echo=$ac_try;;
  2705. esac
  2706. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2707. (eval "$ac_compile") 2>conftest.er1
  2708. ac_status=$?
  2709. grep -v '^ *+' conftest.er1 >conftest.err
  2710. rm -f conftest.er1
  2711. cat conftest.err >&5
  2712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2713. (exit $ac_status); } && {
  2714. test -z "$ac_cxx_werror_flag" ||
  2715. test ! -s conftest.err
  2716. } && test -s conftest.$ac_objext; then
  2717. ac_compiler_gnu=yes
  2718. else
  2719. echo "$as_me: failed program was:" >&5
  2720. sed 's/^/| /' conftest.$ac_ext >&5
  2721. ac_compiler_gnu=no
  2722. fi
  2723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2724. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  2725. fi
  2726. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  2727. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  2728. GXX=`test $ac_compiler_gnu = yes && echo yes`
  2729. ac_test_CXXFLAGS=${CXXFLAGS+set}
  2730. ac_save_CXXFLAGS=$CXXFLAGS
  2731. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  2732. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  2733. if test "${ac_cv_prog_cxx_g+set}" = set; then
  2734. echo $ECHO_N "(cached) $ECHO_C" >&6
  2735. else
  2736. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  2737. ac_cxx_werror_flag=yes
  2738. ac_cv_prog_cxx_g=no
  2739. CXXFLAGS="-g"
  2740. cat >conftest.$ac_ext <<_ACEOF
  2741. /* confdefs.h. */
  2742. _ACEOF
  2743. cat confdefs.h >>conftest.$ac_ext
  2744. cat >>conftest.$ac_ext <<_ACEOF
  2745. /* end confdefs.h. */
  2746. int
  2747. main ()
  2748. {
  2749. ;
  2750. return 0;
  2751. }
  2752. _ACEOF
  2753. rm -f conftest.$ac_objext
  2754. if { (ac_try="$ac_compile"
  2755. case "(($ac_try" in
  2756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2757. *) ac_try_echo=$ac_try;;
  2758. esac
  2759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2760. (eval "$ac_compile") 2>conftest.er1
  2761. ac_status=$?
  2762. grep -v '^ *+' conftest.er1 >conftest.err
  2763. rm -f conftest.er1
  2764. cat conftest.err >&5
  2765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2766. (exit $ac_status); } && {
  2767. test -z "$ac_cxx_werror_flag" ||
  2768. test ! -s conftest.err
  2769. } && test -s conftest.$ac_objext; then
  2770. ac_cv_prog_cxx_g=yes
  2771. else
  2772. echo "$as_me: failed program was:" >&5
  2773. sed 's/^/| /' conftest.$ac_ext >&5
  2774. CXXFLAGS=""
  2775. cat >conftest.$ac_ext <<_ACEOF
  2776. /* confdefs.h. */
  2777. _ACEOF
  2778. cat confdefs.h >>conftest.$ac_ext
  2779. cat >>conftest.$ac_ext <<_ACEOF
  2780. /* end confdefs.h. */
  2781. int
  2782. main ()
  2783. {
  2784. ;
  2785. return 0;
  2786. }
  2787. _ACEOF
  2788. rm -f conftest.$ac_objext
  2789. if { (ac_try="$ac_compile"
  2790. case "(($ac_try" in
  2791. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2792. *) ac_try_echo=$ac_try;;
  2793. esac
  2794. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2795. (eval "$ac_compile") 2>conftest.er1
  2796. ac_status=$?
  2797. grep -v '^ *+' conftest.er1 >conftest.err
  2798. rm -f conftest.er1
  2799. cat conftest.err >&5
  2800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2801. (exit $ac_status); } && {
  2802. test -z "$ac_cxx_werror_flag" ||
  2803. test ! -s conftest.err
  2804. } && test -s conftest.$ac_objext; then
  2805. :
  2806. else
  2807. echo "$as_me: failed program was:" >&5
  2808. sed 's/^/| /' conftest.$ac_ext >&5
  2809. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2810. CXXFLAGS="-g"
  2811. cat >conftest.$ac_ext <<_ACEOF
  2812. /* confdefs.h. */
  2813. _ACEOF
  2814. cat confdefs.h >>conftest.$ac_ext
  2815. cat >>conftest.$ac_ext <<_ACEOF
  2816. /* end confdefs.h. */
  2817. int
  2818. main ()
  2819. {
  2820. ;
  2821. return 0;
  2822. }
  2823. _ACEOF
  2824. rm -f conftest.$ac_objext
  2825. if { (ac_try="$ac_compile"
  2826. case "(($ac_try" in
  2827. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2828. *) ac_try_echo=$ac_try;;
  2829. esac
  2830. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2831. (eval "$ac_compile") 2>conftest.er1
  2832. ac_status=$?
  2833. grep -v '^ *+' conftest.er1 >conftest.err
  2834. rm -f conftest.er1
  2835. cat conftest.err >&5
  2836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2837. (exit $ac_status); } && {
  2838. test -z "$ac_cxx_werror_flag" ||
  2839. test ! -s conftest.err
  2840. } && test -s conftest.$ac_objext; then
  2841. ac_cv_prog_cxx_g=yes
  2842. else
  2843. echo "$as_me: failed program was:" >&5
  2844. sed 's/^/| /' conftest.$ac_ext >&5
  2845. fi
  2846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2847. fi
  2848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2849. fi
  2850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2851. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2852. fi
  2853. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2854. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2855. if test "$ac_test_CXXFLAGS" = set; then
  2856. CXXFLAGS=$ac_save_CXXFLAGS
  2857. elif test $ac_cv_prog_cxx_g = yes; then
  2858. if test "$GXX" = yes; then
  2859. CXXFLAGS="-g -O2"
  2860. else
  2861. CXXFLAGS="-g"
  2862. fi
  2863. else
  2864. if test "$GXX" = yes; then
  2865. CXXFLAGS="-O2"
  2866. else
  2867. CXXFLAGS=
  2868. fi
  2869. fi
  2870. ac_ext=c
  2871. ac_cpp='$CPP $CPPFLAGS'
  2872. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2873. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2874. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2875. DEPDIR="${am__leading_dot}deps"
  2876. ac_config_commands="$ac_config_commands depfiles"
  2877. am_make=${MAKE-make}
  2878. cat > confinc << 'END'
  2879. am__doit:
  2880. @echo done
  2881. .PHONY: am__doit
  2882. END
  2883. # If we don't find an include directive, just comment out the code.
  2884. { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  2885. echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
  2886. am__include="#"
  2887. am__quote=
  2888. _am_result=none
  2889. # First try GNU make style include.
  2890. echo "include confinc" > confmf
  2891. # We grep out `Entering directory' and `Leaving directory'
  2892. # messages which can occur if `w' ends up in MAKEFLAGS.
  2893. # In particular we don't look at `^make:' because GNU make might
  2894. # be invoked under some other name (usually "gmake"), in which
  2895. # case it prints its new name instead of `make'.
  2896. if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  2897. am__include=include
  2898. am__quote=
  2899. _am_result=GNU
  2900. fi
  2901. # Now try BSD make style include.
  2902. if test "$am__include" = "#"; then
  2903. echo '.include "confinc"' > confmf
  2904. if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  2905. am__include=.include
  2906. am__quote="\""
  2907. _am_result=BSD
  2908. fi
  2909. fi
  2910. { echo "$as_me:$LINENO: result: $_am_result" >&5
  2911. echo "${ECHO_T}$_am_result" >&6; }
  2912. rm -f confinc confmf
  2913. # Check whether --enable-dependency-tracking was given.
  2914. if test "${enable_dependency_tracking+set}" = set; then
  2915. enableval=$enable_dependency_tracking;
  2916. fi
  2917. if test "x$enable_dependency_tracking" != xno; then
  2918. am_depcomp="$ac_aux_dir/depcomp"
  2919. AMDEPBACKSLASH='\'
  2920. fi
  2921. if test "x$enable_dependency_tracking" != xno; then
  2922. AMDEP_TRUE=
  2923. AMDEP_FALSE='#'
  2924. else
  2925. AMDEP_TRUE='#'
  2926. AMDEP_FALSE=
  2927. fi
  2928. depcc="$CXX" am_compiler_list=
  2929. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  2930. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  2931. if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  2932. echo $ECHO_N "(cached) $ECHO_C" >&6
  2933. else
  2934. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  2935. # We make a subdir and do the tests there. Otherwise we can end up
  2936. # making bogus files that we don't know about and never remove. For
  2937. # instance it was reported that on HP-UX the gcc test will end up
  2938. # making a dummy file named `D' -- because `-MD' means `put the output
  2939. # in D'.
  2940. mkdir conftest.dir
  2941. # Copy depcomp to subdir because otherwise we won't find it if we're
  2942. # using a relative directory.
  2943. cp "$am_depcomp" conftest.dir
  2944. cd conftest.dir
  2945. # We will build objects and dependencies in a subdirectory because
  2946. # it helps to detect inapplicable dependency modes. For instance
  2947. # both Tru64's cc and ICC support -MD to output dependencies as a
  2948. # side effect of compilation, but ICC will put the dependencies in
  2949. # the current directory while Tru64 will put them in the object
  2950. # directory.
  2951. mkdir sub
  2952. am_cv_CXX_dependencies_compiler_type=none
  2953. if test "$am_compiler_list" = ""; then
  2954. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  2955. fi
  2956. for depmode in $am_compiler_list; do
  2957. # Setup a source with many dependencies, because some compilers
  2958. # like to wrap large dependency lists on column 80 (with \), and
  2959. # we should not choose a depcomp mode which is confused by this.
  2960. #
  2961. # We need to recreate these files for each test, as the compiler may
  2962. # overwrite some of them when testing with obscure command lines.
  2963. # This happens at least with the AIX C compiler.
  2964. : > sub/conftest.c
  2965. for i in 1 2 3 4 5 6; do
  2966. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  2967. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  2968. # Solaris 8's {/usr,}/bin/sh.
  2969. touch sub/conftst$i.h
  2970. done
  2971. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  2972. case $depmode in
  2973. nosideeffect)
  2974. # after this tag, mechanisms are not by side-effect, so they'll
  2975. # only be used when explicitly requested
  2976. if test "x$enable_dependency_tracking" = xyes; then
  2977. continue
  2978. else
  2979. break
  2980. fi
  2981. ;;
  2982. none) break ;;
  2983. esac
  2984. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  2985. # mode. It turns out that the SunPro C++ compiler does not properly
  2986. # handle `-M -o', and we need to detect this.
  2987. if depmode=$depmode \
  2988. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  2989. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  2990. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  2991. >/dev/null 2>conftest.err &&
  2992. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  2993. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  2994. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  2995. # icc doesn't choke on unknown options, it will just issue warnings
  2996. # or remarks (even with -Werror). So we grep stderr for any message
  2997. # that says an option was ignored or not supported.
  2998. # When given -MP, icc 7.0 and 7.1 complain thusly:
  2999. # icc: Command line warning: ignoring option '-M'; no argument required
  3000. # The diagnosis changed in icc 8.0:
  3001. # icc: Command line remark: option '-MP' not supported
  3002. if (grep 'ignoring option' conftest.err ||
  3003. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3004. am_cv_CXX_dependencies_compiler_type=$depmode
  3005. break
  3006. fi
  3007. fi
  3008. done
  3009. cd ..
  3010. rm -rf conftest.dir
  3011. else
  3012. am_cv_CXX_dependencies_compiler_type=none
  3013. fi
  3014. fi
  3015. { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  3016. echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
  3017. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  3018. if
  3019. test "x$enable_dependency_tracking" != xno \
  3020. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  3021. am__fastdepCXX_TRUE=
  3022. am__fastdepCXX_FALSE='#'
  3023. else
  3024. am__fastdepCXX_TRUE='#'
  3025. am__fastdepCXX_FALSE=
  3026. fi
  3027. ac_ext=c
  3028. ac_cpp='$CPP $CPPFLAGS'
  3029. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3030. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3031. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3032. if test -n "$ac_tool_prefix"; then
  3033. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3034. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3035. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3036. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3037. if test "${ac_cv_prog_CC+set}" = set; then
  3038. echo $ECHO_N "(cached) $ECHO_C" >&6
  3039. else
  3040. if test -n "$CC"; then
  3041. ac_cv_prog_CC="$CC" # Let the user override the test.
  3042. else
  3043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3044. for as_dir in $PATH
  3045. do
  3046. IFS=$as_save_IFS
  3047. test -z "$as_dir" && as_dir=.
  3048. for ac_exec_ext in '' $ac_executable_extensions; do
  3049. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3050. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3051. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3052. break 2
  3053. fi
  3054. done
  3055. done
  3056. IFS=$as_save_IFS
  3057. fi
  3058. fi
  3059. CC=$ac_cv_prog_CC
  3060. if test -n "$CC"; then
  3061. { echo "$as_me:$LINENO: result: $CC" >&5
  3062. echo "${ECHO_T}$CC" >&6; }
  3063. else
  3064. { echo "$as_me:$LINENO: result: no" >&5
  3065. echo "${ECHO_T}no" >&6; }
  3066. fi
  3067. fi
  3068. if test -z "$ac_cv_prog_CC"; then
  3069. ac_ct_CC=$CC
  3070. # Extract the first word of "gcc", so it can be a program name with args.
  3071. set dummy gcc; ac_word=$2
  3072. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3073. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3074. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3075. echo $ECHO_N "(cached) $ECHO_C" >&6
  3076. else
  3077. if test -n "$ac_ct_CC"; then
  3078. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3079. else
  3080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3081. for as_dir in $PATH
  3082. do
  3083. IFS=$as_save_IFS
  3084. test -z "$as_dir" && as_dir=.
  3085. for ac_exec_ext in '' $ac_executable_extensions; do
  3086. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3087. ac_cv_prog_ac_ct_CC="gcc"
  3088. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3089. break 2
  3090. fi
  3091. done
  3092. done
  3093. IFS=$as_save_IFS
  3094. fi
  3095. fi
  3096. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3097. if test -n "$ac_ct_CC"; then
  3098. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3099. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3100. else
  3101. { echo "$as_me:$LINENO: result: no" >&5
  3102. echo "${ECHO_T}no" >&6; }
  3103. fi
  3104. if test "x$ac_ct_CC" = x; then
  3105. CC=""
  3106. else
  3107. case $cross_compiling:$ac_tool_warned in
  3108. yes:)
  3109. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3110. whose name does not start with the host triplet. If you think this
  3111. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3112. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3113. whose name does not start with the host triplet. If you think this
  3114. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3115. ac_tool_warned=yes ;;
  3116. esac
  3117. CC=$ac_ct_CC
  3118. fi
  3119. else
  3120. CC="$ac_cv_prog_CC"
  3121. fi
  3122. if test -z "$CC"; then
  3123. if test -n "$ac_tool_prefix"; then
  3124. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3125. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3126. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3127. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3128. if test "${ac_cv_prog_CC+set}" = set; then
  3129. echo $ECHO_N "(cached) $ECHO_C" >&6
  3130. else
  3131. if test -n "$CC"; then
  3132. ac_cv_prog_CC="$CC" # Let the user override the test.
  3133. else
  3134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3135. for as_dir in $PATH
  3136. do
  3137. IFS=$as_save_IFS
  3138. test -z "$as_dir" && as_dir=.
  3139. for ac_exec_ext in '' $ac_executable_extensions; do
  3140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3141. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3142. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3143. break 2
  3144. fi
  3145. done
  3146. done
  3147. IFS=$as_save_IFS
  3148. fi
  3149. fi
  3150. CC=$ac_cv_prog_CC
  3151. if test -n "$CC"; then
  3152. { echo "$as_me:$LINENO: result: $CC" >&5
  3153. echo "${ECHO_T}$CC" >&6; }
  3154. else
  3155. { echo "$as_me:$LINENO: result: no" >&5
  3156. echo "${ECHO_T}no" >&6; }
  3157. fi
  3158. fi
  3159. fi
  3160. if test -z "$CC"; then
  3161. # Extract the first word of "cc", so it can be a program name with args.
  3162. set dummy cc; ac_word=$2
  3163. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3164. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3165. if test "${ac_cv_prog_CC+set}" = set; then
  3166. echo $ECHO_N "(cached) $ECHO_C" >&6
  3167. else
  3168. if test -n "$CC"; then
  3169. ac_cv_prog_CC="$CC" # Let the user override the test.
  3170. else
  3171. ac_prog_rejected=no
  3172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3173. for as_dir in $PATH
  3174. do
  3175. IFS=$as_save_IFS
  3176. test -z "$as_dir" && as_dir=.
  3177. for ac_exec_ext in '' $ac_executable_extensions; do
  3178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3179. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3180. ac_prog_rejected=yes
  3181. continue
  3182. fi
  3183. ac_cv_prog_CC="cc"
  3184. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3185. break 2
  3186. fi
  3187. done
  3188. done
  3189. IFS=$as_save_IFS
  3190. if test $ac_prog_rejected = yes; then
  3191. # We found a bogon in the path, so make sure we never use it.
  3192. set dummy $ac_cv_prog_CC
  3193. shift
  3194. if test $# != 0; then
  3195. # We chose a different compiler from the bogus one.
  3196. # However, it has the same basename, so the bogon will be chosen
  3197. # first if we set CC to just the basename; use the full file name.
  3198. shift
  3199. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3200. fi
  3201. fi
  3202. fi
  3203. fi
  3204. CC=$ac_cv_prog_CC
  3205. if test -n "$CC"; then
  3206. { echo "$as_me:$LINENO: result: $CC" >&5
  3207. echo "${ECHO_T}$CC" >&6; }
  3208. else
  3209. { echo "$as_me:$LINENO: result: no" >&5
  3210. echo "${ECHO_T}no" >&6; }
  3211. fi
  3212. fi
  3213. if test -z "$CC"; then
  3214. if test -n "$ac_tool_prefix"; then
  3215. for ac_prog in cl.exe
  3216. do
  3217. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3218. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3219. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3220. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3221. if test "${ac_cv_prog_CC+set}" = set; then
  3222. echo $ECHO_N "(cached) $ECHO_C" >&6
  3223. else
  3224. if test -n "$CC"; then
  3225. ac_cv_prog_CC="$CC" # Let the user override the test.
  3226. else
  3227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3228. for as_dir in $PATH
  3229. do
  3230. IFS=$as_save_IFS
  3231. test -z "$as_dir" && as_dir=.
  3232. for ac_exec_ext in '' $ac_executable_extensions; do
  3233. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3234. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3235. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3236. break 2
  3237. fi
  3238. done
  3239. done
  3240. IFS=$as_save_IFS
  3241. fi
  3242. fi
  3243. CC=$ac_cv_prog_CC
  3244. if test -n "$CC"; then
  3245. { echo "$as_me:$LINENO: result: $CC" >&5
  3246. echo "${ECHO_T}$CC" >&6; }
  3247. else
  3248. { echo "$as_me:$LINENO: result: no" >&5
  3249. echo "${ECHO_T}no" >&6; }
  3250. fi
  3251. test -n "$CC" && break
  3252. done
  3253. fi
  3254. if test -z "$CC"; then
  3255. ac_ct_CC=$CC
  3256. for ac_prog in cl.exe
  3257. do
  3258. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3259. set dummy $ac_prog; ac_word=$2
  3260. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3261. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3262. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  3263. echo $ECHO_N "(cached) $ECHO_C" >&6
  3264. else
  3265. if test -n "$ac_ct_CC"; then
  3266. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3267. else
  3268. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3269. for as_dir in $PATH
  3270. do
  3271. IFS=$as_save_IFS
  3272. test -z "$as_dir" && as_dir=.
  3273. for ac_exec_ext in '' $ac_executable_extensions; do
  3274. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3275. ac_cv_prog_ac_ct_CC="$ac_prog"
  3276. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3277. break 2
  3278. fi
  3279. done
  3280. done
  3281. IFS=$as_save_IFS
  3282. fi
  3283. fi
  3284. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3285. if test -n "$ac_ct_CC"; then
  3286. { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  3287. echo "${ECHO_T}$ac_ct_CC" >&6; }
  3288. else
  3289. { echo "$as_me:$LINENO: result: no" >&5
  3290. echo "${ECHO_T}no" >&6; }
  3291. fi
  3292. test -n "$ac_ct_CC" && break
  3293. done
  3294. if test "x$ac_ct_CC" = x; then
  3295. CC=""
  3296. else
  3297. case $cross_compiling:$ac_tool_warned in
  3298. yes:)
  3299. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3300. whose name does not start with the host triplet. If you think this
  3301. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3302. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3303. whose name does not start with the host triplet. If you think this
  3304. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3305. ac_tool_warned=yes ;;
  3306. esac
  3307. CC=$ac_ct_CC
  3308. fi
  3309. fi
  3310. fi
  3311. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  3312. See \`config.log' for more details." >&5
  3313. echo "$as_me: error: no acceptable C compiler found in \$PATH
  3314. See \`config.log' for more details." >&2;}
  3315. { (exit 1); exit 1; }; }
  3316. # Provide some information about the compiler.
  3317. echo "$as_me:$LINENO: checking for C compiler version" >&5
  3318. ac_compiler=`set X $ac_compile; echo $2`
  3319. { (ac_try="$ac_compiler --version >&5"
  3320. case "(($ac_try" in
  3321. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3322. *) ac_try_echo=$ac_try;;
  3323. esac
  3324. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3325. (eval "$ac_compiler --version >&5") 2>&5
  3326. ac_status=$?
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); }
  3329. { (ac_try="$ac_compiler -v >&5"
  3330. case "(($ac_try" in
  3331. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3332. *) ac_try_echo=$ac_try;;
  3333. esac
  3334. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3335. (eval "$ac_compiler -v >&5") 2>&5
  3336. ac_status=$?
  3337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. (exit $ac_status); }
  3339. { (ac_try="$ac_compiler -V >&5"
  3340. case "(($ac_try" in
  3341. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3342. *) ac_try_echo=$ac_try;;
  3343. esac
  3344. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3345. (eval "$ac_compiler -V >&5") 2>&5
  3346. ac_status=$?
  3347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3348. (exit $ac_status); }
  3349. { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  3350. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
  3351. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  3352. echo $ECHO_N "(cached) $ECHO_C" >&6
  3353. else
  3354. cat >conftest.$ac_ext <<_ACEOF
  3355. /* confdefs.h. */
  3356. _ACEOF
  3357. cat confdefs.h >>conftest.$ac_ext
  3358. cat >>conftest.$ac_ext <<_ACEOF
  3359. /* end confdefs.h. */
  3360. int
  3361. main ()
  3362. {
  3363. #ifndef __GNUC__
  3364. choke me
  3365. #endif
  3366. ;
  3367. return 0;
  3368. }
  3369. _ACEOF
  3370. rm -f conftest.$ac_objext
  3371. if { (ac_try="$ac_compile"
  3372. case "(($ac_try" in
  3373. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3374. *) ac_try_echo=$ac_try;;
  3375. esac
  3376. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3377. (eval "$ac_compile") 2>conftest.er1
  3378. ac_status=$?
  3379. grep -v '^ *+' conftest.er1 >conftest.err
  3380. rm -f conftest.er1
  3381. cat conftest.err >&5
  3382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3383. (exit $ac_status); } && {
  3384. test -z "$ac_c_werror_flag" ||
  3385. test ! -s conftest.err
  3386. } && test -s conftest.$ac_objext; then
  3387. ac_compiler_gnu=yes
  3388. else
  3389. echo "$as_me: failed program was:" >&5
  3390. sed 's/^/| /' conftest.$ac_ext >&5
  3391. ac_compiler_gnu=no
  3392. fi
  3393. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3394. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3395. fi
  3396. { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  3397. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
  3398. GCC=`test $ac_compiler_gnu = yes && echo yes`
  3399. ac_test_CFLAGS=${CFLAGS+set}
  3400. ac_save_CFLAGS=$CFLAGS
  3401. { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  3402. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
  3403. if test "${ac_cv_prog_cc_g+set}" = set; then
  3404. echo $ECHO_N "(cached) $ECHO_C" >&6
  3405. else
  3406. ac_save_c_werror_flag=$ac_c_werror_flag
  3407. ac_c_werror_flag=yes
  3408. ac_cv_prog_cc_g=no
  3409. CFLAGS="-g"
  3410. cat >conftest.$ac_ext <<_ACEOF
  3411. /* confdefs.h. */
  3412. _ACEOF
  3413. cat confdefs.h >>conftest.$ac_ext
  3414. cat >>conftest.$ac_ext <<_ACEOF
  3415. /* end confdefs.h. */
  3416. int
  3417. main ()
  3418. {
  3419. ;
  3420. return 0;
  3421. }
  3422. _ACEOF
  3423. rm -f conftest.$ac_objext
  3424. if { (ac_try="$ac_compile"
  3425. case "(($ac_try" in
  3426. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3427. *) ac_try_echo=$ac_try;;
  3428. esac
  3429. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3430. (eval "$ac_compile") 2>conftest.er1
  3431. ac_status=$?
  3432. grep -v '^ *+' conftest.er1 >conftest.err
  3433. rm -f conftest.er1
  3434. cat conftest.err >&5
  3435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3436. (exit $ac_status); } && {
  3437. test -z "$ac_c_werror_flag" ||
  3438. test ! -s conftest.err
  3439. } && test -s conftest.$ac_objext; then
  3440. ac_cv_prog_cc_g=yes
  3441. else
  3442. echo "$as_me: failed program was:" >&5
  3443. sed 's/^/| /' conftest.$ac_ext >&5
  3444. CFLAGS=""
  3445. cat >conftest.$ac_ext <<_ACEOF
  3446. /* confdefs.h. */
  3447. _ACEOF
  3448. cat confdefs.h >>conftest.$ac_ext
  3449. cat >>conftest.$ac_ext <<_ACEOF
  3450. /* end confdefs.h. */
  3451. int
  3452. main ()
  3453. {
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. rm -f conftest.$ac_objext
  3459. if { (ac_try="$ac_compile"
  3460. case "(($ac_try" in
  3461. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3462. *) ac_try_echo=$ac_try;;
  3463. esac
  3464. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3465. (eval "$ac_compile") 2>conftest.er1
  3466. ac_status=$?
  3467. grep -v '^ *+' conftest.er1 >conftest.err
  3468. rm -f conftest.er1
  3469. cat conftest.err >&5
  3470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3471. (exit $ac_status); } && {
  3472. test -z "$ac_c_werror_flag" ||
  3473. test ! -s conftest.err
  3474. } && test -s conftest.$ac_objext; then
  3475. :
  3476. else
  3477. echo "$as_me: failed program was:" >&5
  3478. sed 's/^/| /' conftest.$ac_ext >&5
  3479. ac_c_werror_flag=$ac_save_c_werror_flag
  3480. CFLAGS="-g"
  3481. cat >conftest.$ac_ext <<_ACEOF
  3482. /* confdefs.h. */
  3483. _ACEOF
  3484. cat confdefs.h >>conftest.$ac_ext
  3485. cat >>conftest.$ac_ext <<_ACEOF
  3486. /* end confdefs.h. */
  3487. int
  3488. main ()
  3489. {
  3490. ;
  3491. return 0;
  3492. }
  3493. _ACEOF
  3494. rm -f conftest.$ac_objext
  3495. if { (ac_try="$ac_compile"
  3496. case "(($ac_try" in
  3497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3498. *) ac_try_echo=$ac_try;;
  3499. esac
  3500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3501. (eval "$ac_compile") 2>conftest.er1
  3502. ac_status=$?
  3503. grep -v '^ *+' conftest.er1 >conftest.err
  3504. rm -f conftest.er1
  3505. cat conftest.err >&5
  3506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3507. (exit $ac_status); } && {
  3508. test -z "$ac_c_werror_flag" ||
  3509. test ! -s conftest.err
  3510. } && test -s conftest.$ac_objext; then
  3511. ac_cv_prog_cc_g=yes
  3512. else
  3513. echo "$as_me: failed program was:" >&5
  3514. sed 's/^/| /' conftest.$ac_ext >&5
  3515. fi
  3516. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3517. fi
  3518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3519. fi
  3520. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3521. ac_c_werror_flag=$ac_save_c_werror_flag
  3522. fi
  3523. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  3524. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
  3525. if test "$ac_test_CFLAGS" = set; then
  3526. CFLAGS=$ac_save_CFLAGS
  3527. elif test $ac_cv_prog_cc_g = yes; then
  3528. if test "$GCC" = yes; then
  3529. CFLAGS="-g -O2"
  3530. else
  3531. CFLAGS="-g"
  3532. fi
  3533. else
  3534. if test "$GCC" = yes; then
  3535. CFLAGS="-O2"
  3536. else
  3537. CFLAGS=
  3538. fi
  3539. fi
  3540. { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
  3541. echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
  3542. if test "${ac_cv_prog_cc_c89+set}" = set; then
  3543. echo $ECHO_N "(cached) $ECHO_C" >&6
  3544. else
  3545. ac_cv_prog_cc_c89=no
  3546. ac_save_CC=$CC
  3547. cat >conftest.$ac_ext <<_ACEOF
  3548. /* confdefs.h. */
  3549. _ACEOF
  3550. cat confdefs.h >>conftest.$ac_ext
  3551. cat >>conftest.$ac_ext <<_ACEOF
  3552. /* end confdefs.h. */
  3553. #include <stdarg.h>
  3554. #include <stdio.h>
  3555. #include <sys/types.h>
  3556. #include <sys/stat.h>
  3557. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3558. struct buf { int x; };
  3559. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3560. static char *e (p, i)
  3561. char **p;
  3562. int i;
  3563. {
  3564. return p[i];
  3565. }
  3566. static char *f (char * (*g) (char **, int), char **p, ...)
  3567. {
  3568. char *s;
  3569. va_list v;
  3570. va_start (v,p);
  3571. s = g (p, va_arg (v,int));
  3572. va_end (v);
  3573. return s;
  3574. }
  3575. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3576. function prototypes and stuff, but not '\xHH' hex character constants.
  3577. These don't provoke an error unfortunately, instead are silently treated
  3578. as 'x'. The following induces an error, until -std is added to get
  3579. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3580. array size at least. It's necessary to write '\x00'==0 to get something
  3581. that's true only with -std. */
  3582. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3583. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3584. inside strings and character constants. */
  3585. #define FOO(x) 'x'
  3586. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3587. int test (int i, double x);
  3588. struct s1 {int (*f) (int a);};
  3589. struct s2 {int (*f) (double a);};
  3590. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3591. int argc;
  3592. char **argv;
  3593. int
  3594. main ()
  3595. {
  3596. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3602. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3603. do
  3604. CC="$ac_save_CC $ac_arg"
  3605. rm -f conftest.$ac_objext
  3606. if { (ac_try="$ac_compile"
  3607. case "(($ac_try" in
  3608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3609. *) ac_try_echo=$ac_try;;
  3610. esac
  3611. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3612. (eval "$ac_compile") 2>conftest.er1
  3613. ac_status=$?
  3614. grep -v '^ *+' conftest.er1 >conftest.err
  3615. rm -f conftest.er1
  3616. cat conftest.err >&5
  3617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3618. (exit $ac_status); } && {
  3619. test -z "$ac_c_werror_flag" ||
  3620. test ! -s conftest.err
  3621. } && test -s conftest.$ac_objext; then
  3622. ac_cv_prog_cc_c89=$ac_arg
  3623. else
  3624. echo "$as_me: failed program was:" >&5
  3625. sed 's/^/| /' conftest.$ac_ext >&5
  3626. fi
  3627. rm -f core conftest.err conftest.$ac_objext
  3628. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3629. done
  3630. rm -f conftest.$ac_ext
  3631. CC=$ac_save_CC
  3632. fi
  3633. # AC_CACHE_VAL
  3634. case "x$ac_cv_prog_cc_c89" in
  3635. x)
  3636. { echo "$as_me:$LINENO: result: none needed" >&5
  3637. echo "${ECHO_T}none needed" >&6; } ;;
  3638. xno)
  3639. { echo "$as_me:$LINENO: result: unsupported" >&5
  3640. echo "${ECHO_T}unsupported" >&6; } ;;
  3641. *)
  3642. CC="$CC $ac_cv_prog_cc_c89"
  3643. { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
  3644. echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
  3645. esac
  3646. ac_ext=c
  3647. ac_cpp='$CPP $CPPFLAGS'
  3648. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3649. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3650. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3651. depcc="$CC" am_compiler_list=
  3652. { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  3653. echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
  3654. if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  3655. echo $ECHO_N "(cached) $ECHO_C" >&6
  3656. else
  3657. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3658. # We make a subdir and do the tests there. Otherwise we can end up
  3659. # making bogus files that we don't know about and never remove. For
  3660. # instance it was reported that on HP-UX the gcc test will end up
  3661. # making a dummy file named `D' -- because `-MD' means `put the output
  3662. # in D'.
  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. for depmode in $am_compiler_list; do
  3680. # Setup a source with many dependencies, because some compilers
  3681. # like to wrap large dependency lists on column 80 (with \), and
  3682. # we should not choose a depcomp mode which is confused by this.
  3683. #
  3684. # We need to recreate these files for each test, as the compiler may
  3685. # overwrite some of them when testing with obscure command lines.
  3686. # This happens at least with the AIX C compiler.
  3687. : > sub/conftest.c
  3688. for i in 1 2 3 4 5 6; do
  3689. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3690. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3691. # Solaris 8's {/usr,}/bin/sh.
  3692. touch sub/conftst$i.h
  3693. done
  3694. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3695. case $depmode in
  3696. nosideeffect)
  3697. # after this tag, mechanisms are not by side-effect, so they'll
  3698. # only be used when explicitly requested
  3699. if test "x$enable_dependency_tracking" = xyes; then
  3700. continue
  3701. else
  3702. break
  3703. fi
  3704. ;;
  3705. none) break ;;
  3706. esac
  3707. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3708. # mode. It turns out that the SunPro C++ compiler does not properly
  3709. # handle `-M -o', and we need to detect this.
  3710. if depmode=$depmode \
  3711. source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  3712. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3713. $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  3714. >/dev/null 2>conftest.err &&
  3715. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3716. grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  3717. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3718. # icc doesn't choke on unknown options, it will just issue warnings
  3719. # or remarks (even with -Werror). So we grep stderr for any message
  3720. # that says an option was ignored or not supported.
  3721. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3722. # icc: Command line warning: ignoring option '-M'; no argument required
  3723. # The diagnosis changed in icc 8.0:
  3724. # icc: Command line remark: option '-MP' not supported
  3725. if (grep 'ignoring option' conftest.err ||
  3726. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3727. am_cv_CC_dependencies_compiler_type=$depmode
  3728. break
  3729. fi
  3730. fi
  3731. done
  3732. cd ..
  3733. rm -rf conftest.dir
  3734. else
  3735. am_cv_CC_dependencies_compiler_type=none
  3736. fi
  3737. fi
  3738. { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  3739. echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
  3740. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3741. if
  3742. test "x$enable_dependency_tracking" != xno \
  3743. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3744. am__fastdepCC_TRUE=
  3745. am__fastdepCC_FALSE='#'
  3746. else
  3747. am__fastdepCC_TRUE='#'
  3748. am__fastdepCC_FALSE=
  3749. fi
  3750. # Find a good install program. We prefer a C program (faster),
  3751. # so one script is as good as another. But avoid the broken or
  3752. # incompatible versions:
  3753. # SysV /etc/install, /usr/sbin/install
  3754. # SunOS /usr/etc/install
  3755. # IRIX /sbin/install
  3756. # AIX /bin/install
  3757. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3758. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3759. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3760. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3761. # OS/2's system install, which has a completely different semantic
  3762. # ./install, which can be erroneously created by make from ./install.sh.
  3763. { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3764. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
  3765. if test -z "$INSTALL"; then
  3766. if test "${ac_cv_path_install+set}" = set; then
  3767. echo $ECHO_N "(cached) $ECHO_C" >&6
  3768. else
  3769. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3770. for as_dir in $PATH
  3771. do
  3772. IFS=$as_save_IFS
  3773. test -z "$as_dir" && as_dir=.
  3774. # Account for people who put trailing slashes in PATH elements.
  3775. case $as_dir/ in
  3776. ./ | .// | /cC/* | \
  3777. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3778. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3779. /usr/ucb/* ) ;;
  3780. *)
  3781. # OSF1 and SCO ODT 3.0 have their own names for install.
  3782. # Don't use installbsd from OSF since it installs stuff as root
  3783. # by default.
  3784. for ac_prog in ginstall scoinst install; do
  3785. for ac_exec_ext in '' $ac_executable_extensions; do
  3786. if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  3787. if test $ac_prog = install &&
  3788. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3789. # AIX install. It has an incompatible calling convention.
  3790. :
  3791. elif test $ac_prog = install &&
  3792. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3793. # program-specific install script used by HP pwplus--don't use.
  3794. :
  3795. else
  3796. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3797. break 3
  3798. fi
  3799. fi
  3800. done
  3801. done
  3802. ;;
  3803. esac
  3804. done
  3805. IFS=$as_save_IFS
  3806. fi
  3807. if test "${ac_cv_path_install+set}" = set; then
  3808. INSTALL=$ac_cv_path_install
  3809. else
  3810. # As a last resort, use the slow shell script. Don't cache a
  3811. # value for INSTALL within a source directory, because that will
  3812. # break other packages using the cache if that directory is
  3813. # removed, or if the value is a relative name.
  3814. INSTALL=$ac_install_sh
  3815. fi
  3816. fi
  3817. { echo "$as_me:$LINENO: result: $INSTALL" >&5
  3818. echo "${ECHO_T}$INSTALL" >&6; }
  3819. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3820. # It thinks the first close brace ends the variable substitution.
  3821. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3822. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3823. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3824. if test -n "$ac_tool_prefix"; then
  3825. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3826. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3827. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3828. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3829. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3830. echo $ECHO_N "(cached) $ECHO_C" >&6
  3831. else
  3832. if test -n "$RANLIB"; then
  3833. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3834. else
  3835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3836. for as_dir in $PATH
  3837. do
  3838. IFS=$as_save_IFS
  3839. test -z "$as_dir" && as_dir=.
  3840. for ac_exec_ext in '' $ac_executable_extensions; do
  3841. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3842. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3843. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3844. break 2
  3845. fi
  3846. done
  3847. done
  3848. IFS=$as_save_IFS
  3849. fi
  3850. fi
  3851. RANLIB=$ac_cv_prog_RANLIB
  3852. if test -n "$RANLIB"; then
  3853. { echo "$as_me:$LINENO: result: $RANLIB" >&5
  3854. echo "${ECHO_T}$RANLIB" >&6; }
  3855. else
  3856. { echo "$as_me:$LINENO: result: no" >&5
  3857. echo "${ECHO_T}no" >&6; }
  3858. fi
  3859. fi
  3860. if test -z "$ac_cv_prog_RANLIB"; then
  3861. ac_ct_RANLIB=$RANLIB
  3862. # Extract the first word of "ranlib", so it can be a program name with args.
  3863. set dummy ranlib; ac_word=$2
  3864. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3865. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3866. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3867. echo $ECHO_N "(cached) $ECHO_C" >&6
  3868. else
  3869. if test -n "$ac_ct_RANLIB"; then
  3870. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3871. else
  3872. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3873. for as_dir in $PATH
  3874. do
  3875. IFS=$as_save_IFS
  3876. test -z "$as_dir" && as_dir=.
  3877. for ac_exec_ext in '' $ac_executable_extensions; do
  3878. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3879. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3880. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3881. break 2
  3882. fi
  3883. done
  3884. done
  3885. IFS=$as_save_IFS
  3886. fi
  3887. fi
  3888. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3889. if test -n "$ac_ct_RANLIB"; then
  3890. { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3891. echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
  3892. else
  3893. { echo "$as_me:$LINENO: result: no" >&5
  3894. echo "${ECHO_T}no" >&6; }
  3895. fi
  3896. if test "x$ac_ct_RANLIB" = x; then
  3897. RANLIB=":"
  3898. else
  3899. case $cross_compiling:$ac_tool_warned in
  3900. yes:)
  3901. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  3902. whose name does not start with the host triplet. If you think this
  3903. configuration is useful to you, please write to autoconf@gnu.org." >&5
  3904. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  3905. whose name does not start with the host triplet. If you think this
  3906. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  3907. ac_tool_warned=yes ;;
  3908. esac
  3909. RANLIB=$ac_ct_RANLIB
  3910. fi
  3911. else
  3912. RANLIB="$ac_cv_prog_RANLIB"
  3913. fi
  3914. for ac_prog in 'bison -y' byacc
  3915. do
  3916. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3917. set dummy $ac_prog; ac_word=$2
  3918. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3919. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3920. if test "${ac_cv_prog_YACC+set}" = set; then
  3921. echo $ECHO_N "(cached) $ECHO_C" >&6
  3922. else
  3923. if test -n "$YACC"; then
  3924. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  3925. else
  3926. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3927. for as_dir in $PATH
  3928. do
  3929. IFS=$as_save_IFS
  3930. test -z "$as_dir" && as_dir=.
  3931. for ac_exec_ext in '' $ac_executable_extensions; do
  3932. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3933. ac_cv_prog_YACC="$ac_prog"
  3934. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3935. break 2
  3936. fi
  3937. done
  3938. done
  3939. IFS=$as_save_IFS
  3940. fi
  3941. fi
  3942. YACC=$ac_cv_prog_YACC
  3943. if test -n "$YACC"; then
  3944. { echo "$as_me:$LINENO: result: $YACC" >&5
  3945. echo "${ECHO_T}$YACC" >&6; }
  3946. else
  3947. { echo "$as_me:$LINENO: result: no" >&5
  3948. echo "${ECHO_T}no" >&6; }
  3949. fi
  3950. test -n "$YACC" && break
  3951. done
  3952. test -n "$YACC" || YACC="yacc"
  3953. # Checks for libraries.
  3954. if test "x$with_libxml2" = "xyes"; then
  3955. # Check whether --with-xml-prefix was given.
  3956. if test "${with_xml_prefix+set}" = set; then
  3957. withval=$with_xml_prefix; xml_config_prefix="$withval"
  3958. else
  3959. xml_config_prefix=""
  3960. fi
  3961. # Check whether --with-xml-exec-prefix was given.
  3962. if test "${with_xml_exec_prefix+set}" = set; then
  3963. withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval"
  3964. else
  3965. xml_config_exec_prefix=""
  3966. fi
  3967. # Check whether --enable-xmltest was given.
  3968. if test "${enable_xmltest+set}" = set; then
  3969. enableval=$enable_xmltest;
  3970. else
  3971. enable_xmltest=yes
  3972. fi
  3973. if test x$xml_config_exec_prefix != x ; then
  3974. xml_config_args="$xml_config_args"
  3975. if test x${XML2_CONFIG+set} != xset ; then
  3976. XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config
  3977. fi
  3978. fi
  3979. if test x$xml_config_prefix != x ; then
  3980. xml_config_args="$xml_config_args --prefix=$xml_config_prefix"
  3981. if test x${XML2_CONFIG+set} != xset ; then
  3982. XML2_CONFIG=$xml_config_prefix/bin/xml2-config
  3983. fi
  3984. fi
  3985. # Extract the first word of "xml2-config", so it can be a program name with args.
  3986. set dummy xml2-config; ac_word=$2
  3987. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3988. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3989. if test "${ac_cv_path_XML2_CONFIG+set}" = set; then
  3990. echo $ECHO_N "(cached) $ECHO_C" >&6
  3991. else
  3992. case $XML2_CONFIG in
  3993. [\\/]* | ?:[\\/]*)
  3994. ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path.
  3995. ;;
  3996. *)
  3997. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3998. for as_dir in $PATH
  3999. do
  4000. IFS=$as_save_IFS
  4001. test -z "$as_dir" && as_dir=.
  4002. for ac_exec_ext in '' $ac_executable_extensions; do
  4003. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4004. ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4005. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4006. break 2
  4007. fi
  4008. done
  4009. done
  4010. IFS=$as_save_IFS
  4011. test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no"
  4012. ;;
  4013. esac
  4014. fi
  4015. XML2_CONFIG=$ac_cv_path_XML2_CONFIG
  4016. if test -n "$XML2_CONFIG"; then
  4017. { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5
  4018. echo "${ECHO_T}$XML2_CONFIG" >&6; }
  4019. else
  4020. { echo "$as_me:$LINENO: result: no" >&5
  4021. echo "${ECHO_T}no" >&6; }
  4022. fi
  4023. min_xml_version=2.6.24
  4024. { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5
  4025. echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; }
  4026. no_xml=""
  4027. if test "$XML2_CONFIG" = "no" ; then
  4028. no_xml=yes
  4029. else
  4030. XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags`
  4031. XML_LIBS=`$XML2_CONFIG $xml_config_args --libs`
  4032. xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \
  4033. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  4034. xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \
  4035. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  4036. xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \
  4037. sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  4038. if test "x$enable_xmltest" = "xyes" ; then
  4039. ac_save_CPPFLAGS="$CPPFLAGS"
  4040. ac_save_LIBS="$LIBS"
  4041. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4042. LIBS="$XML_LIBS $LIBS"
  4043. rm -f conf.xmltest
  4044. if test "$cross_compiling" = yes; then
  4045. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4046. else
  4047. cat >conftest.$ac_ext <<_ACEOF
  4048. /* confdefs.h. */
  4049. _ACEOF
  4050. cat confdefs.h >>conftest.$ac_ext
  4051. cat >>conftest.$ac_ext <<_ACEOF
  4052. /* end confdefs.h. */
  4053. #include <stdlib.h>
  4054. #include <stdio.h>
  4055. #include <string.h>
  4056. #include <libxml/xmlversion.h>
  4057. int
  4058. main()
  4059. {
  4060. int xml_major_version, xml_minor_version, xml_micro_version;
  4061. int major, minor, micro;
  4062. char *tmp_version;
  4063. system("touch conf.xmltest");
  4064. /* Capture xml2-config output via autoconf/configure variables */
  4065. /* HP/UX 9 (%@#!) writes to sscanf strings */
  4066. tmp_version = (char *)strdup("$min_xml_version");
  4067. if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
  4068. printf("%s, bad version string from xml2-config\n", "$min_xml_version");
  4069. exit(1);
  4070. }
  4071. free(tmp_version);
  4072. /* Capture the version information from the header files */
  4073. tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION);
  4074. if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) {
  4075. printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION");
  4076. exit(1);
  4077. }
  4078. free(tmp_version);
  4079. /* Compare xml2-config output to the libxml headers */
  4080. if ((xml_major_version != $xml_config_major_version) ||
  4081. (xml_minor_version != $xml_config_minor_version) ||
  4082. (xml_micro_version != $xml_config_micro_version))
  4083. {
  4084. printf("*** libxml header files (version %d.%d.%d) do not match\n",
  4085. xml_major_version, xml_minor_version, xml_micro_version);
  4086. printf("*** xml2-config (version %d.%d.%d)\n",
  4087. $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version);
  4088. return 1;
  4089. }
  4090. /* Compare the headers to the library to make sure we match */
  4091. /* Less than ideal -- doesn't provide us with return value feedback,
  4092. * only exits if there's a serious mismatch between header and library.
  4093. */
  4094. LIBXML_TEST_VERSION;
  4095. /* Test that the library is greater than our minimum version */
  4096. if ((xml_major_version > major) ||
  4097. ((xml_major_version == major) && (xml_minor_version > minor)) ||
  4098. ((xml_major_version == major) && (xml_minor_version == minor) &&
  4099. (xml_micro_version >= micro)))
  4100. {
  4101. return 0;
  4102. }
  4103. else
  4104. {
  4105. printf("\n*** An old version of libxml (%d.%d.%d) was found.\n",
  4106. xml_major_version, xml_minor_version, xml_micro_version);
  4107. printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n",
  4108. major, minor, micro);
  4109. printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n");
  4110. printf("***\n");
  4111. printf("*** If you have already installed a sufficiently new version, this error\n");
  4112. printf("*** probably means that the wrong copy of the xml2-config shell script is\n");
  4113. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4114. printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n");
  4115. printf("*** correct copy of xml2-config. (In this case, you will have to\n");
  4116. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4117. printf("*** so that the correct libraries are found at run-time))\n");
  4118. }
  4119. return 1;
  4120. }
  4121. _ACEOF
  4122. rm -f conftest$ac_exeext
  4123. if { (ac_try="$ac_link"
  4124. case "(($ac_try" in
  4125. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4126. *) ac_try_echo=$ac_try;;
  4127. esac
  4128. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4129. (eval "$ac_link") 2>&5
  4130. ac_status=$?
  4131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4132. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4133. { (case "(($ac_try" in
  4134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4135. *) ac_try_echo=$ac_try;;
  4136. esac
  4137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4138. (eval "$ac_try") 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; }; then
  4142. :
  4143. else
  4144. echo "$as_me: program exited with status $ac_status" >&5
  4145. echo "$as_me: failed program was:" >&5
  4146. sed 's/^/| /' conftest.$ac_ext >&5
  4147. ( exit $ac_status )
  4148. no_xml=yes
  4149. fi
  4150. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4151. fi
  4152. CPPFLAGS="$ac_save_CPPFLAGS"
  4153. LIBS="$ac_save_LIBS"
  4154. fi
  4155. fi
  4156. if test "x$no_xml" = x ; then
  4157. { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5
  4158. echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; }
  4159. have_libxml2=yes
  4160. else
  4161. { echo "$as_me:$LINENO: result: no" >&5
  4162. echo "${ECHO_T}no" >&6; }
  4163. if test "$XML2_CONFIG" = "no" ; then
  4164. echo "*** The xml2-config script installed by LIBXML could not be found"
  4165. echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in"
  4166. echo "*** your path, or set the XML2_CONFIG environment variable to the"
  4167. echo "*** full path to xml2-config."
  4168. else
  4169. if test -f conf.xmltest ; then
  4170. :
  4171. else
  4172. echo "*** Could not run libxml test program, checking why..."
  4173. CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS"
  4174. LIBS="$LIBS $XML_LIBS"
  4175. cat >conftest.$ac_ext <<_ACEOF
  4176. /* confdefs.h. */
  4177. _ACEOF
  4178. cat confdefs.h >>conftest.$ac_ext
  4179. cat >>conftest.$ac_ext <<_ACEOF
  4180. /* end confdefs.h. */
  4181. #include <libxml/xmlversion.h>
  4182. #include <stdio.h>
  4183. int
  4184. main ()
  4185. {
  4186. LIBXML_TEST_VERSION; return 0;
  4187. ;
  4188. return 0;
  4189. }
  4190. _ACEOF
  4191. rm -f conftest.$ac_objext conftest$ac_exeext
  4192. if { (ac_try="$ac_link"
  4193. case "(($ac_try" in
  4194. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4195. *) ac_try_echo=$ac_try;;
  4196. esac
  4197. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4198. (eval "$ac_link") 2>conftest.er1
  4199. ac_status=$?
  4200. grep -v '^ *+' conftest.er1 >conftest.err
  4201. rm -f conftest.er1
  4202. cat conftest.err >&5
  4203. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4204. (exit $ac_status); } && {
  4205. test -z "$ac_c_werror_flag" ||
  4206. test ! -s conftest.err
  4207. } && test -s conftest$ac_exeext &&
  4208. $as_test_x conftest$ac_exeext; then
  4209. echo "*** The test program compiled, but did not run. This usually means"
  4210. echo "*** that the run-time linker is not finding LIBXML or finding the wrong"
  4211. echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your"
  4212. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4213. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4214. echo "*** is required on your system"
  4215. echo "***"
  4216. echo "*** If you have an old version installed, it is best to remove it, although"
  4217. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4218. else
  4219. echo "$as_me: failed program was:" >&5
  4220. sed 's/^/| /' conftest.$ac_ext >&5
  4221. echo "*** The test program failed to compile or link. See the file config.log for the"
  4222. echo "*** exact error that occured. This usually means LIBXML was incorrectly installed"
  4223. echo "*** or that you have moved LIBXML since it was installed. In the latter case, you"
  4224. echo "*** may want to edit the xml2-config script: $XML2_CONFIG"
  4225. fi
  4226. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4227. conftest$ac_exeext conftest.$ac_ext
  4228. CPPFLAGS="$ac_save_CPPFLAGS"
  4229. LIBS="$ac_save_LIBS"
  4230. fi
  4231. fi
  4232. XML_CPPFLAGS=""
  4233. XML_LIBS=""
  4234. :
  4235. fi
  4236. rm -f conf.xmltest
  4237. if test "x$have_libxml2" = "xyes"; then
  4238. cat >>confdefs.h <<\_ACEOF
  4239. #define HAVE_LIBXML2 1
  4240. _ACEOF
  4241. fi
  4242. fi
  4243. if test "x$with_gnutls" = "xyes"; then
  4244. # Check whether --with-libgnutls-prefix was given.
  4245. if test "${with_libgnutls_prefix+set}" = set; then
  4246. withval=$with_libgnutls_prefix; libgnutls_config_prefix="$withval"
  4247. else
  4248. libgnutls_config_prefix=""
  4249. fi
  4250. if test x$libgnutls_config_prefix != x ; then
  4251. if test x${LIBGNUTLS_CONFIG+set} != xset ; then
  4252. LIBGNUTLS_CONFIG=$libgnutls_config_prefix/bin/libgnutls-config
  4253. fi
  4254. fi
  4255. # Extract the first word of "libgnutls-config", so it can be a program name with args.
  4256. set dummy libgnutls-config; ac_word=$2
  4257. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4258. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4259. if test "${ac_cv_path_LIBGNUTLS_CONFIG+set}" = set; then
  4260. echo $ECHO_N "(cached) $ECHO_C" >&6
  4261. else
  4262. case $LIBGNUTLS_CONFIG in
  4263. [\\/]* | ?:[\\/]*)
  4264. ac_cv_path_LIBGNUTLS_CONFIG="$LIBGNUTLS_CONFIG" # Let the user override the test with a path.
  4265. ;;
  4266. *)
  4267. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4268. for as_dir in $PATH
  4269. do
  4270. IFS=$as_save_IFS
  4271. test -z "$as_dir" && as_dir=.
  4272. for ac_exec_ext in '' $ac_executable_extensions; do
  4273. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4274. ac_cv_path_LIBGNUTLS_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4275. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4276. break 2
  4277. fi
  4278. done
  4279. done
  4280. IFS=$as_save_IFS
  4281. test -z "$ac_cv_path_LIBGNUTLS_CONFIG" && ac_cv_path_LIBGNUTLS_CONFIG="no"
  4282. ;;
  4283. esac
  4284. fi
  4285. LIBGNUTLS_CONFIG=$ac_cv_path_LIBGNUTLS_CONFIG
  4286. if test -n "$LIBGNUTLS_CONFIG"; then
  4287. { echo "$as_me:$LINENO: result: $LIBGNUTLS_CONFIG" >&5
  4288. echo "${ECHO_T}$LIBGNUTLS_CONFIG" >&6; }
  4289. else
  4290. { echo "$as_me:$LINENO: result: no" >&5
  4291. echo "${ECHO_T}no" >&6; }
  4292. fi
  4293. min_libgnutls_version=1.2.9
  4294. { echo "$as_me:$LINENO: checking for libgnutls - version >= $min_libgnutls_version" >&5
  4295. echo $ECHO_N "checking for libgnutls - version >= $min_libgnutls_version... $ECHO_C" >&6; }
  4296. no_libgnutls=""
  4297. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4298. no_libgnutls=yes
  4299. else
  4300. LIBGNUTLS_CFLAGS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --cflags`
  4301. LIBGNUTLS_LIBS=`$LIBGNUTLS_CONFIG $libgnutls_config_args --libs`
  4302. libgnutls_config_version=`$LIBGNUTLS_CONFIG $libgnutls_config_args --version`
  4303. ac_save_CFLAGS="$CFLAGS"
  4304. ac_save_LIBS="$LIBS"
  4305. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4306. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4307. rm -f conf.libgnutlstest
  4308. if test "$cross_compiling" = yes; then
  4309. echo $ac_n "cross compiling; assumed OK... $ac_c"
  4310. else
  4311. cat >conftest.$ac_ext <<_ACEOF
  4312. /* confdefs.h. */
  4313. _ACEOF
  4314. cat confdefs.h >>conftest.$ac_ext
  4315. cat >>conftest.$ac_ext <<_ACEOF
  4316. /* end confdefs.h. */
  4317. #include <stdio.h>
  4318. #include <stdlib.h>
  4319. #include <string.h>
  4320. #include <gnutls/gnutls.h>
  4321. int
  4322. main ()
  4323. {
  4324. system ("touch conf.libgnutlstest");
  4325. if( strcmp( gnutls_check_version(NULL), "$libgnutls_config_version" ) )
  4326. {
  4327. printf("\n*** 'libgnutls-config --version' returned %s, but LIBGNUTLS (%s)\n",
  4328. "$libgnutls_config_version", gnutls_check_version(NULL) );
  4329. printf("*** was found! If libgnutls-config was correct, then it is best\n");
  4330. printf("*** to remove the old version of LIBGNUTLS. You may also be able to fix the error\n");
  4331. printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  4332. printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  4333. printf("*** required on your system.\n");
  4334. printf("*** If libgnutls-config was wrong, set the environment variable LIBGNUTLS_CONFIG\n");
  4335. printf("*** to point to the correct copy of libgnutls-config, and remove the file config.cache\n");
  4336. printf("*** before re-running configure\n");
  4337. }
  4338. else if ( strcmp(gnutls_check_version(NULL), LIBGNUTLS_VERSION ) )
  4339. {
  4340. printf("\n*** LIBGNUTLS header file (version %s) does not match\n", LIBGNUTLS_VERSION);
  4341. printf("*** library (version %s)\n", gnutls_check_version(NULL) );
  4342. }
  4343. else
  4344. {
  4345. if ( gnutls_check_version( "$min_libgnutls_version" ) )
  4346. {
  4347. return 0;
  4348. }
  4349. else
  4350. {
  4351. printf("no\n*** An old version of LIBGNUTLS (%s) was found.\n",
  4352. gnutls_check_version(NULL) );
  4353. printf("*** You need a version of LIBGNUTLS newer than %s. The latest version of\n",
  4354. "$min_libgnutls_version" );
  4355. printf("*** LIBGNUTLS is always available from ftp://gnutls.hellug.gr/pub/gnutls.\n");
  4356. printf("*** \n");
  4357. printf("*** If you have already installed a sufficiently new version, this error\n");
  4358. printf("*** probably means that the wrong copy of the libgnutls-config shell script is\n");
  4359. printf("*** being found. The easiest way to fix this is to remove the old version\n");
  4360. printf("*** of LIBGNUTLS, but you can also set the LIBGNUTLS_CONFIG environment to point to the\n");
  4361. printf("*** correct copy of libgnutls-config. (In this case, you will have to\n");
  4362. printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  4363. printf("*** so that the correct libraries are found at run-time))\n");
  4364. }
  4365. }
  4366. return 1;
  4367. }
  4368. _ACEOF
  4369. rm -f conftest$ac_exeext
  4370. if { (ac_try="$ac_link"
  4371. case "(($ac_try" in
  4372. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4373. *) ac_try_echo=$ac_try;;
  4374. esac
  4375. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4376. (eval "$ac_link") 2>&5
  4377. ac_status=$?
  4378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4379. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4380. { (case "(($ac_try" in
  4381. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4382. *) ac_try_echo=$ac_try;;
  4383. esac
  4384. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4385. (eval "$ac_try") 2>&5
  4386. ac_status=$?
  4387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4388. (exit $ac_status); }; }; then
  4389. :
  4390. else
  4391. echo "$as_me: program exited with status $ac_status" >&5
  4392. echo "$as_me: failed program was:" >&5
  4393. sed 's/^/| /' conftest.$ac_ext >&5
  4394. ( exit $ac_status )
  4395. no_libgnutls=yes
  4396. fi
  4397. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4398. fi
  4399. CFLAGS="$ac_save_CFLAGS"
  4400. LIBS="$ac_save_LIBS"
  4401. fi
  4402. if test "x$no_libgnutls" = x ; then
  4403. { echo "$as_me:$LINENO: result: yes" >&5
  4404. echo "${ECHO_T}yes" >&6; }
  4405. have_libgnutls=yes
  4406. else
  4407. if test -f conf.libgnutlstest ; then
  4408. :
  4409. else
  4410. { echo "$as_me:$LINENO: result: no" >&5
  4411. echo "${ECHO_T}no" >&6; }
  4412. fi
  4413. if test "$LIBGNUTLS_CONFIG" = "no" ; then
  4414. echo "*** The libgnutls-config script installed by LIBGNUTLS could not be found"
  4415. echo "*** If LIBGNUTLS was installed in PREFIX, make sure PREFIX/bin is in"
  4416. echo "*** your path, or set the LIBGNUTLS_CONFIG environment variable to the"
  4417. echo "*** full path to libgnutls-config."
  4418. else
  4419. if test -f conf.libgnutlstest ; then
  4420. :
  4421. else
  4422. echo "*** Could not run libgnutls test program, checking why..."
  4423. CFLAGS="$CFLAGS $LIBGNUTLS_CFLAGS"
  4424. LIBS="$LIBS $LIBGNUTLS_LIBS"
  4425. cat >conftest.$ac_ext <<_ACEOF
  4426. /* confdefs.h. */
  4427. _ACEOF
  4428. cat confdefs.h >>conftest.$ac_ext
  4429. cat >>conftest.$ac_ext <<_ACEOF
  4430. /* end confdefs.h. */
  4431. #include <stdio.h>
  4432. #include <stdlib.h>
  4433. #include <string.h>
  4434. #include <gnutls/gnutls.h>
  4435. int
  4436. main ()
  4437. {
  4438. return !!gnutls_check_version(NULL);
  4439. ;
  4440. return 0;
  4441. }
  4442. _ACEOF
  4443. rm -f conftest.$ac_objext conftest$ac_exeext
  4444. if { (ac_try="$ac_link"
  4445. case "(($ac_try" in
  4446. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4447. *) ac_try_echo=$ac_try;;
  4448. esac
  4449. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4450. (eval "$ac_link") 2>conftest.er1
  4451. ac_status=$?
  4452. grep -v '^ *+' conftest.er1 >conftest.err
  4453. rm -f conftest.er1
  4454. cat conftest.err >&5
  4455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4456. (exit $ac_status); } && {
  4457. test -z "$ac_c_werror_flag" ||
  4458. test ! -s conftest.err
  4459. } && test -s conftest$ac_exeext &&
  4460. $as_test_x conftest$ac_exeext; then
  4461. echo "*** The test program compiled, but did not run. This usually means"
  4462. echo "*** that the run-time linker is not finding LIBGNUTLS or finding the wrong"
  4463. echo "*** version of LIBGNUTLS. If it is not finding LIBGNUTLS, you'll need to set your"
  4464. echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  4465. echo "*** to the installed location Also, make sure you have run ldconfig if that"
  4466. echo "*** is required on your system"
  4467. echo "***"
  4468. echo "*** If you have an old version installed, it is best to remove it, although"
  4469. echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  4470. echo "***"
  4471. else
  4472. echo "$as_me: failed program was:" >&5
  4473. sed 's/^/| /' conftest.$ac_ext >&5
  4474. echo "*** The test program failed to compile or link. See the file config.log for the"
  4475. echo "*** exact error that occured. This usually means LIBGNUTLS was incorrectly installed"
  4476. echo "*** or that you have moved LIBGNUTLS since it was installed. In the latter case, you"
  4477. echo "*** may want to edit the libgnutls-config script: $LIBGNUTLS_CONFIG"
  4478. fi
  4479. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4480. conftest$ac_exeext conftest.$ac_ext
  4481. CFLAGS="$ac_save_CFLAGS"
  4482. LIBS="$ac_save_LIBS"
  4483. fi
  4484. fi
  4485. LIBGNUTLS_CFLAGS=""
  4486. LIBGNUTLS_LIBS=""
  4487. :
  4488. fi
  4489. rm -f conf.libgnutlstest
  4490. if test "x$have_libgnutls" = "xyes"; then
  4491. cat >>confdefs.h <<\_ACEOF
  4492. #define HAVE_LIBGNUTLS 1
  4493. _ACEOF
  4494. fi
  4495. fi
  4496. if test "x$have_libgnutls" = "xyes"; then
  4497. # Check whether --with-libgcrypt-prefix was given.
  4498. if test "${with_libgcrypt_prefix+set}" = set; then
  4499. withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
  4500. else
  4501. libgcrypt_config_prefix=""
  4502. fi
  4503. if test x$libgcrypt_config_prefix != x ; then
  4504. if test x${LIBGCRYPT_CONFIG+set} != xset ; then
  4505. LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
  4506. fi
  4507. fi
  4508. # Extract the first word of "libgcrypt-config", so it can be a program name with args.
  4509. set dummy libgcrypt-config; ac_word=$2
  4510. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  4511. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  4512. if test "${ac_cv_path_LIBGCRYPT_CONFIG+set}" = set; then
  4513. echo $ECHO_N "(cached) $ECHO_C" >&6
  4514. else
  4515. case $LIBGCRYPT_CONFIG in
  4516. [\\/]* | ?:[\\/]*)
  4517. ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
  4518. ;;
  4519. *)
  4520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4521. for as_dir in $PATH
  4522. do
  4523. IFS=$as_save_IFS
  4524. test -z "$as_dir" && as_dir=.
  4525. for ac_exec_ext in '' $ac_executable_extensions; do
  4526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4527. ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  4528. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4529. break 2
  4530. fi
  4531. done
  4532. done
  4533. IFS=$as_save_IFS
  4534. test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
  4535. ;;
  4536. esac
  4537. fi
  4538. LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
  4539. if test -n "$LIBGCRYPT_CONFIG"; then
  4540. { echo "$as_me:$LINENO: result: $LIBGCRYPT_CONFIG" >&5
  4541. echo "${ECHO_T}$LIBGCRYPT_CONFIG" >&6; }
  4542. else
  4543. { echo "$as_me:$LINENO: result: no" >&5
  4544. echo "${ECHO_T}no" >&6; }
  4545. fi
  4546. tmp=1.2.2
  4547. if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
  4548. req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
  4549. min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
  4550. else
  4551. req_libgcrypt_api=0
  4552. min_libgcrypt_version="$tmp"
  4553. fi
  4554. { echo "$as_me:$LINENO: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
  4555. echo $ECHO_N "checking for LIBGCRYPT - version >= $min_libgcrypt_version... $ECHO_C" >&6; }
  4556. ok=no
  4557. if test "$LIBGCRYPT_CONFIG" != "no" ; then
  4558. req_major=`echo $min_libgcrypt_version | \
  4559. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
  4560. req_minor=`echo $min_libgcrypt_version | \
  4561. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
  4562. req_micro=`echo $min_libgcrypt_version | \
  4563. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
  4564. libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
  4565. major=`echo $libgcrypt_config_version | \
  4566. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
  4567. minor=`echo $libgcrypt_config_version | \
  4568. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
  4569. micro=`echo $libgcrypt_config_version | \
  4570. sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
  4571. if test "$major" -gt "$req_major"; then
  4572. ok=yes
  4573. else
  4574. if test "$major" -eq "$req_major"; then
  4575. if test "$minor" -gt "$req_minor"; then
  4576. ok=yes
  4577. else
  4578. if test "$minor" -eq "$req_minor"; then
  4579. if test "$micro" -ge "$req_micro"; then
  4580. ok=yes
  4581. fi
  4582. fi
  4583. fi
  4584. fi
  4585. fi
  4586. fi
  4587. if test $ok = yes; then
  4588. { echo "$as_me:$LINENO: result: yes" >&5
  4589. echo "${ECHO_T}yes" >&6; }
  4590. else
  4591. { echo "$as_me:$LINENO: result: no" >&5
  4592. echo "${ECHO_T}no" >&6; }
  4593. fi
  4594. if test $ok = yes; then
  4595. # If we have a recent libgcrypt, we should also check that the
  4596. # API is compatible
  4597. if test "$req_libgcrypt_api" -gt 0 ; then
  4598. tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
  4599. if test "$tmp" -gt 0 ; then
  4600. { echo "$as_me:$LINENO: checking LIBGCRYPT API version" >&5
  4601. echo $ECHO_N "checking LIBGCRYPT API version... $ECHO_C" >&6; }
  4602. if test "$req_libgcrypt_api" -eq "$tmp" ; then
  4603. { echo "$as_me:$LINENO: result: okay" >&5
  4604. echo "${ECHO_T}okay" >&6; }
  4605. else
  4606. ok=no
  4607. { echo "$as_me:$LINENO: result: does not match (want=$req_libgcrypt_api got=$tmp)" >&5
  4608. echo "${ECHO_T}does not match (want=$req_libgcrypt_api got=$tmp)" >&6; }
  4609. fi
  4610. fi
  4611. fi
  4612. fi
  4613. if test $ok = yes; then
  4614. LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
  4615. LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
  4616. have_libgcrypt=yes
  4617. else
  4618. LIBGCRYPT_CFLAGS=""
  4619. LIBGCRYPT_LIBS=""
  4620. :
  4621. fi
  4622. if test "x$have_libgcrypt" = "xyes"; then
  4623. cat >>confdefs.h <<\_ACEOF
  4624. #define HAVE_LIBGCRYPT 1
  4625. _ACEOF
  4626. fi
  4627. fi
  4628. if test "x$with_openssl" = "xyes" && test "x$have_libgnutls" != "xyes"; then
  4629. # Check whether --with-openssl-prefix was given.
  4630. if test "${with_openssl_prefix+set}" = set; then
  4631. withval=$with_openssl_prefix; openssl_prefix=$withval
  4632. else
  4633. openssl_prefix=""
  4634. fi
  4635. if test "x$openssl_prefix" = "x"; then
  4636. openssl_prefix="/usr/local"
  4637. fi
  4638. openssl_prefix_lib=$openssl_prefix/lib
  4639. openssl_prefix_include=$openssl_prefix/include
  4640. LIBS_save=$LIBS
  4641. CPPFLAGS_save=$CPPFLAGS
  4642. LIBS="-L$openssl_prefix_lib $LIBS"
  4643. CPPFLAGS="-I$openssl_prefix_include $CPPFLAGS"
  4644. { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
  4645. echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
  4646. if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
  4647. echo $ECHO_N "(cached) $ECHO_C" >&6
  4648. else
  4649. ac_check_lib_save_LIBS=$LIBS
  4650. LIBS="-lssl $LIBS"
  4651. cat >conftest.$ac_ext <<_ACEOF
  4652. /* confdefs.h. */
  4653. _ACEOF
  4654. cat confdefs.h >>conftest.$ac_ext
  4655. cat >>conftest.$ac_ext <<_ACEOF
  4656. /* end confdefs.h. */
  4657. /* Override any GCC internal prototype to avoid an error.
  4658. Use char because int might match the return type of a GCC
  4659. builtin and then its argument prototype would still apply. */
  4660. #ifdef __cplusplus
  4661. extern "C"
  4662. #endif
  4663. char SSL_library_init ();
  4664. int
  4665. main ()
  4666. {
  4667. return SSL_library_init ();
  4668. ;
  4669. return 0;
  4670. }
  4671. _ACEOF
  4672. rm -f conftest.$ac_objext conftest$ac_exeext
  4673. if { (ac_try="$ac_link"
  4674. case "(($ac_try" in
  4675. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4676. *) ac_try_echo=$ac_try;;
  4677. esac
  4678. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4679. (eval "$ac_link") 2>conftest.er1
  4680. ac_status=$?
  4681. grep -v '^ *+' conftest.er1 >conftest.err
  4682. rm -f conftest.er1
  4683. cat conftest.err >&5
  4684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4685. (exit $ac_status); } && {
  4686. test -z "$ac_c_werror_flag" ||
  4687. test ! -s conftest.err
  4688. } && test -s conftest$ac_exeext &&
  4689. $as_test_x conftest$ac_exeext; then
  4690. ac_cv_lib_ssl_SSL_library_init=yes
  4691. else
  4692. echo "$as_me: failed program was:" >&5
  4693. sed 's/^/| /' conftest.$ac_ext >&5
  4694. ac_cv_lib_ssl_SSL_library_init=no
  4695. fi
  4696. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4697. conftest$ac_exeext conftest.$ac_ext
  4698. LIBS=$ac_check_lib_save_LIBS
  4699. fi
  4700. { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
  4701. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
  4702. if test $ac_cv_lib_ssl_SSL_library_init = yes; then
  4703. have_openssl=yes
  4704. fi
  4705. if test "x$have_openssl" = "xyes"; then
  4706. have_openssl=no
  4707. { echo "$as_me:$LINENO: checking for main in -lcrypto" >&5
  4708. echo $ECHO_N "checking for main in -lcrypto... $ECHO_C" >&6; }
  4709. if test "${ac_cv_lib_crypto_main+set}" = set; then
  4710. echo $ECHO_N "(cached) $ECHO_C" >&6
  4711. else
  4712. ac_check_lib_save_LIBS=$LIBS
  4713. LIBS="-lcrypto $LIBS"
  4714. cat >conftest.$ac_ext <<_ACEOF
  4715. /* confdefs.h. */
  4716. _ACEOF
  4717. cat confdefs.h >>conftest.$ac_ext
  4718. cat >>conftest.$ac_ext <<_ACEOF
  4719. /* end confdefs.h. */
  4720. int
  4721. main ()
  4722. {
  4723. return main ();
  4724. ;
  4725. return 0;
  4726. }
  4727. _ACEOF
  4728. rm -f conftest.$ac_objext conftest$ac_exeext
  4729. if { (ac_try="$ac_link"
  4730. case "(($ac_try" in
  4731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4732. *) ac_try_echo=$ac_try;;
  4733. esac
  4734. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4735. (eval "$ac_link") 2>conftest.er1
  4736. ac_status=$?
  4737. grep -v '^ *+' conftest.er1 >conftest.err
  4738. rm -f conftest.er1
  4739. cat conftest.err >&5
  4740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4741. (exit $ac_status); } && {
  4742. test -z "$ac_c_werror_flag" ||
  4743. test ! -s conftest.err
  4744. } && test -s conftest$ac_exeext &&
  4745. $as_test_x conftest$ac_exeext; then
  4746. ac_cv_lib_crypto_main=yes
  4747. else
  4748. echo "$as_me: failed program was:" >&5
  4749. sed 's/^/| /' conftest.$ac_ext >&5
  4750. ac_cv_lib_crypto_main=no
  4751. fi
  4752. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4753. conftest$ac_exeext conftest.$ac_ext
  4754. LIBS=$ac_check_lib_save_LIBS
  4755. fi
  4756. { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_main" >&5
  4757. echo "${ECHO_T}$ac_cv_lib_crypto_main" >&6; }
  4758. if test $ac_cv_lib_crypto_main = yes; then
  4759. have_openssl=yes
  4760. fi
  4761. if test "x$have_openssl" = "xyes"; then
  4762. cat >>confdefs.h <<\_ACEOF
  4763. #define HAVE_LIBSSL 1
  4764. _ACEOF
  4765. OPENSSL_LIBS="-L$openssl_prefix_lib -lssl -lcrypto"
  4766. OPENSSL_CFLAGS="-I$openssl_prefix_include"
  4767. fi
  4768. fi
  4769. LIBS=$LIBS_save
  4770. CPPFLAGS=$CPPFLAGS_save
  4771. fi
  4772. if test "x$with_libcares" = "xyes"; then
  4773. # Check whether --with-libcares-prefix was given.
  4774. if test "${with_libcares_prefix+set}" = set; then
  4775. withval=$with_libcares_prefix; libcares_prefix=$withval
  4776. else
  4777. libcares_prefix=""
  4778. fi
  4779. if test "x$libcares_prefix" = "x"; then
  4780. libcares_prefix="/usr"
  4781. fi
  4782. libcares_prefix_lib=$libcares_prefix/lib
  4783. libcares_prefix_include=$libcares_prefix/include
  4784. LIBS_save=$LIBS
  4785. CPPFLAGS_save=$CPPFLAGS
  4786. LIBS="-L$libcares_prefix_lib $LIBS"
  4787. CPPFLAGS="-I$libcares_prefix_include $CPPFLAGS"
  4788. { echo "$as_me:$LINENO: checking for ares_init in -lcares" >&5
  4789. echo $ECHO_N "checking for ares_init in -lcares... $ECHO_C" >&6; }
  4790. if test "${ac_cv_lib_cares_ares_init+set}" = set; then
  4791. echo $ECHO_N "(cached) $ECHO_C" >&6
  4792. else
  4793. ac_check_lib_save_LIBS=$LIBS
  4794. LIBS="-lcares $LIBS"
  4795. cat >conftest.$ac_ext <<_ACEOF
  4796. /* confdefs.h. */
  4797. _ACEOF
  4798. cat confdefs.h >>conftest.$ac_ext
  4799. cat >>conftest.$ac_ext <<_ACEOF
  4800. /* end confdefs.h. */
  4801. /* Override any GCC internal prototype to avoid an error.
  4802. Use char because int might match the return type of a GCC
  4803. builtin and then its argument prototype would still apply. */
  4804. #ifdef __cplusplus
  4805. extern "C"
  4806. #endif
  4807. char ares_init ();
  4808. int
  4809. main ()
  4810. {
  4811. return ares_init ();
  4812. ;
  4813. return 0;
  4814. }
  4815. _ACEOF
  4816. rm -f conftest.$ac_objext conftest$ac_exeext
  4817. if { (ac_try="$ac_link"
  4818. case "(($ac_try" in
  4819. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4820. *) ac_try_echo=$ac_try;;
  4821. esac
  4822. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4823. (eval "$ac_link") 2>conftest.er1
  4824. ac_status=$?
  4825. grep -v '^ *+' conftest.er1 >conftest.err
  4826. rm -f conftest.er1
  4827. cat conftest.err >&5
  4828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4829. (exit $ac_status); } && {
  4830. test -z "$ac_c_werror_flag" ||
  4831. test ! -s conftest.err
  4832. } && test -s conftest$ac_exeext &&
  4833. $as_test_x conftest$ac_exeext; then
  4834. ac_cv_lib_cares_ares_init=yes
  4835. else
  4836. echo "$as_me: failed program was:" >&5
  4837. sed 's/^/| /' conftest.$ac_ext >&5
  4838. ac_cv_lib_cares_ares_init=no
  4839. fi
  4840. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4841. conftest$ac_exeext conftest.$ac_ext
  4842. LIBS=$ac_check_lib_save_LIBS
  4843. fi
  4844. { echo "$as_me:$LINENO: result: $ac_cv_lib_cares_ares_init" >&5
  4845. echo "${ECHO_T}$ac_cv_lib_cares_ares_init" >&6; }
  4846. if test $ac_cv_lib_cares_ares_init = yes; then
  4847. have_libcares=yes
  4848. fi
  4849. if test "x$have_libcares" = "xyes"; then
  4850. cat >>confdefs.h <<\_ACEOF
  4851. #define HAVE_LIBCARES 1
  4852. _ACEOF
  4853. LIBCARES_LIBS="-L$libcares_prefix_lib -lcares"
  4854. LIBCARES_CPPFLAGS="-I$libcares_prefix_include"
  4855. fi
  4856. LIBS=$LIBS_save
  4857. CPPFLAGS=$CPPFLAGS_save
  4858. fi
  4859. if test "x$have_libcares" = "x"; then
  4860. if test "x$with_libares" = "xyes"; then
  4861. # Check whether --with-libares-prefix was given.
  4862. if test "${with_libares_prefix+set}" = set; then
  4863. withval=$with_libares_prefix; libares_prefix=$withval
  4864. else
  4865. libares_prefix=""
  4866. fi
  4867. if test "x$libares_prefix" = "x"; then
  4868. libares_prefix="/usr"
  4869. fi
  4870. libares_prefix_lib=$libares_prefix/lib
  4871. libares_prefix_include=$libares_prefix/include
  4872. LIBS_save=$LIBS
  4873. CPPFLAGS_save=$CPPFLAGS
  4874. LIBS="-L$libares_prefix_lib $LIBS"
  4875. CPPFLAGS="-I$libares_prefix_include $CPPFLAGS"
  4876. { echo "$as_me:$LINENO: checking for ares_init in -lares" >&5
  4877. echo $ECHO_N "checking for ares_init in -lares... $ECHO_C" >&6; }
  4878. if test "${ac_cv_lib_ares_ares_init+set}" = set; then
  4879. echo $ECHO_N "(cached) $ECHO_C" >&6
  4880. else
  4881. ac_check_lib_save_LIBS=$LIBS
  4882. LIBS="-lares $LIBS"
  4883. cat >conftest.$ac_ext <<_ACEOF
  4884. /* confdefs.h. */
  4885. _ACEOF
  4886. cat confdefs.h >>conftest.$ac_ext
  4887. cat >>conftest.$ac_ext <<_ACEOF
  4888. /* end confdefs.h. */
  4889. /* Override any GCC internal prototype to avoid an error.
  4890. Use char because int might match the return type of a GCC
  4891. builtin and then its argument prototype would still apply. */
  4892. #ifdef __cplusplus
  4893. extern "C"
  4894. #endif
  4895. char ares_init ();
  4896. int
  4897. main ()
  4898. {
  4899. return ares_init ();
  4900. ;
  4901. return 0;
  4902. }
  4903. _ACEOF
  4904. rm -f conftest.$ac_objext conftest$ac_exeext
  4905. if { (ac_try="$ac_link"
  4906. case "(($ac_try" in
  4907. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4908. *) ac_try_echo=$ac_try;;
  4909. esac
  4910. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4911. (eval "$ac_link") 2>conftest.er1
  4912. ac_status=$?
  4913. grep -v '^ *+' conftest.er1 >conftest.err
  4914. rm -f conftest.er1
  4915. cat conftest.err >&5
  4916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4917. (exit $ac_status); } && {
  4918. test -z "$ac_c_werror_flag" ||
  4919. test ! -s conftest.err
  4920. } && test -s conftest$ac_exeext &&
  4921. $as_test_x conftest$ac_exeext; then
  4922. ac_cv_lib_ares_ares_init=yes
  4923. else
  4924. echo "$as_me: failed program was:" >&5
  4925. sed 's/^/| /' conftest.$ac_ext >&5
  4926. ac_cv_lib_ares_ares_init=no
  4927. fi
  4928. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4929. conftest$ac_exeext conftest.$ac_ext
  4930. LIBS=$ac_check_lib_save_LIBS
  4931. fi
  4932. { echo "$as_me:$LINENO: result: $ac_cv_lib_ares_ares_init" >&5
  4933. echo "${ECHO_T}$ac_cv_lib_ares_ares_init" >&6; }
  4934. if test $ac_cv_lib_ares_ares_init = yes; then
  4935. have_libares=yes
  4936. fi
  4937. if test "x$have_libares" = "xyes"; then
  4938. cat >>confdefs.h <<\_ACEOF
  4939. #define HAVE_LIBARES 1
  4940. _ACEOF
  4941. LIBARES_LIBS="-L$libares_prefix_lib -lares"
  4942. LIBARES_CPPFLAGS="-I$libares_prefix_include"
  4943. fi
  4944. LIBS=$LIBS_save
  4945. CPPFLAGS=$CPPFLAGS_save
  4946. fi
  4947. fi
  4948. # Define variables based on the result of the checks for libraries.
  4949. if test "x$have_libgnutls" = "xyes" || test "x$have_openssl" = "xyes"; then
  4950. cat >>confdefs.h <<\_ACEOF
  4951. #define ENABLE_SSL 1
  4952. _ACEOF
  4953. fi
  4954. if test "x$have_libgcrypt" = "xyes" || test "x$have_openssl" = "xyes"; then
  4955. cat >>confdefs.h <<\_ACEOF
  4956. #define ENABLE_MESSAGE_DIGEST 1
  4957. _ACEOF
  4958. if true; then
  4959. ENABLE_MESSAGE_DIGEST_TRUE=
  4960. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4961. else
  4962. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4963. ENABLE_MESSAGE_DIGEST_FALSE=
  4964. fi
  4965. enable_message_digest=yes
  4966. else
  4967. if false; then
  4968. ENABLE_MESSAGE_DIGEST_TRUE=
  4969. ENABLE_MESSAGE_DIGEST_FALSE='#'
  4970. else
  4971. ENABLE_MESSAGE_DIGEST_TRUE='#'
  4972. ENABLE_MESSAGE_DIGEST_FALSE=
  4973. fi
  4974. fi
  4975. if test "x$enable_bittorrent" = "xyes" && test "x$enable_message_digest" = "xyes"; then
  4976. cat >>confdefs.h <<\_ACEOF
  4977. #define ENABLE_BITTORRENT 1
  4978. _ACEOF
  4979. if true; then
  4980. ENABLE_BITTORRENT_TRUE=
  4981. ENABLE_BITTORRENT_FALSE='#'
  4982. else
  4983. ENABLE_BITTORRENT_TRUE='#'
  4984. ENABLE_BITTORRENT_FALSE=
  4985. fi
  4986. else
  4987. if false; then
  4988. ENABLE_BITTORRENT_TRUE=
  4989. ENABLE_BITTORRENT_FALSE='#'
  4990. else
  4991. ENABLE_BITTORRENT_TRUE='#'
  4992. ENABLE_BITTORRENT_FALSE=
  4993. fi
  4994. fi
  4995. if test "x$have_libxml2" = "xyes" && test "x$enable_metalink" = "xyes"; then
  4996. cat >>confdefs.h <<\_ACEOF
  4997. #define ENABLE_METALINK 1
  4998. _ACEOF
  4999. if true; then
  5000. ENABLE_METALINK_TRUE=
  5001. ENABLE_METALINK_FALSE='#'
  5002. else
  5003. ENABLE_METALINK_TRUE='#'
  5004. ENABLE_METALINK_FALSE=
  5005. fi
  5006. else
  5007. if false; then
  5008. ENABLE_METALINK_TRUE=
  5009. ENABLE_METALINK_FALSE='#'
  5010. else
  5011. ENABLE_METALINK_TRUE='#'
  5012. ENABLE_METALINK_FALSE=
  5013. fi
  5014. fi
  5015. if test "x$have_libcares" = "xyes" || test "x$have_libares" = "xyes"; then
  5016. cat >>confdefs.h <<\_ACEOF
  5017. #define ENABLE_ASYNC_DNS 1
  5018. _ACEOF
  5019. if true; then
  5020. ENABLE_ASYNC_DNS_TRUE=
  5021. ENABLE_ASYNC_DNS_FALSE='#'
  5022. else
  5023. ENABLE_ASYNC_DNS_TRUE='#'
  5024. ENABLE_ASYNC_DNS_FALSE=
  5025. fi
  5026. else
  5027. if false; then
  5028. ENABLE_ASYNC_DNS_TRUE=
  5029. ENABLE_ASYNC_DNS_FALSE='#'
  5030. else
  5031. ENABLE_ASYNC_DNS_TRUE='#'
  5032. ENABLE_ASYNC_DNS_FALSE=
  5033. fi
  5034. fi
  5035. # Checks for header files.
  5036. ac_ext=c
  5037. ac_cpp='$CPP $CPPFLAGS'
  5038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5041. { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  5042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
  5043. # On Suns, sometimes $CPP names a directory.
  5044. if test -n "$CPP" && test -d "$CPP"; then
  5045. CPP=
  5046. fi
  5047. if test -z "$CPP"; then
  5048. if test "${ac_cv_prog_CPP+set}" = set; then
  5049. echo $ECHO_N "(cached) $ECHO_C" >&6
  5050. else
  5051. # Double quotes because CPP needs to be expanded
  5052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  5053. do
  5054. ac_preproc_ok=false
  5055. for ac_c_preproc_warn_flag in '' yes
  5056. do
  5057. # Use a header file that comes with gcc, so configuring glibc
  5058. # with a fresh cross-compiler works.
  5059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5060. # <limits.h> exists even on freestanding compilers.
  5061. # On the NeXT, cc -E runs the code through the compiler's parser,
  5062. # not just through cpp. "Syntax error" is here to catch this case.
  5063. cat >conftest.$ac_ext <<_ACEOF
  5064. /* confdefs.h. */
  5065. _ACEOF
  5066. cat confdefs.h >>conftest.$ac_ext
  5067. cat >>conftest.$ac_ext <<_ACEOF
  5068. /* end confdefs.h. */
  5069. #ifdef __STDC__
  5070. # include <limits.h>
  5071. #else
  5072. # include <assert.h>
  5073. #endif
  5074. Syntax error
  5075. _ACEOF
  5076. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5077. case "(($ac_try" in
  5078. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5079. *) ac_try_echo=$ac_try;;
  5080. esac
  5081. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5082. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5083. ac_status=$?
  5084. grep -v '^ *+' conftest.er1 >conftest.err
  5085. rm -f conftest.er1
  5086. cat conftest.err >&5
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); } >/dev/null && {
  5089. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5090. test ! -s conftest.err
  5091. }; then
  5092. :
  5093. else
  5094. echo "$as_me: failed program was:" >&5
  5095. sed 's/^/| /' conftest.$ac_ext >&5
  5096. # Broken: fails on valid input.
  5097. continue
  5098. fi
  5099. rm -f conftest.err conftest.$ac_ext
  5100. # OK, works on sane cases. Now check whether nonexistent headers
  5101. # can be detected and how.
  5102. cat >conftest.$ac_ext <<_ACEOF
  5103. /* confdefs.h. */
  5104. _ACEOF
  5105. cat confdefs.h >>conftest.$ac_ext
  5106. cat >>conftest.$ac_ext <<_ACEOF
  5107. /* end confdefs.h. */
  5108. #include <ac_nonexistent.h>
  5109. _ACEOF
  5110. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5111. case "(($ac_try" in
  5112. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5113. *) ac_try_echo=$ac_try;;
  5114. esac
  5115. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5116. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5117. ac_status=$?
  5118. grep -v '^ *+' conftest.er1 >conftest.err
  5119. rm -f conftest.er1
  5120. cat conftest.err >&5
  5121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5122. (exit $ac_status); } >/dev/null && {
  5123. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5124. test ! -s conftest.err
  5125. }; then
  5126. # Broken: success on invalid input.
  5127. continue
  5128. else
  5129. echo "$as_me: failed program was:" >&5
  5130. sed 's/^/| /' conftest.$ac_ext >&5
  5131. # Passes both tests.
  5132. ac_preproc_ok=:
  5133. break
  5134. fi
  5135. rm -f conftest.err conftest.$ac_ext
  5136. done
  5137. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5138. rm -f conftest.err conftest.$ac_ext
  5139. if $ac_preproc_ok; then
  5140. break
  5141. fi
  5142. done
  5143. ac_cv_prog_CPP=$CPP
  5144. fi
  5145. CPP=$ac_cv_prog_CPP
  5146. else
  5147. ac_cv_prog_CPP=$CPP
  5148. fi
  5149. { echo "$as_me:$LINENO: result: $CPP" >&5
  5150. echo "${ECHO_T}$CPP" >&6; }
  5151. ac_preproc_ok=false
  5152. for ac_c_preproc_warn_flag in '' yes
  5153. do
  5154. # Use a header file that comes with gcc, so configuring glibc
  5155. # with a fresh cross-compiler works.
  5156. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5157. # <limits.h> exists even on freestanding compilers.
  5158. # On the NeXT, cc -E runs the code through the compiler's parser,
  5159. # not just through cpp. "Syntax error" is here to catch this case.
  5160. cat >conftest.$ac_ext <<_ACEOF
  5161. /* confdefs.h. */
  5162. _ACEOF
  5163. cat confdefs.h >>conftest.$ac_ext
  5164. cat >>conftest.$ac_ext <<_ACEOF
  5165. /* end confdefs.h. */
  5166. #ifdef __STDC__
  5167. # include <limits.h>
  5168. #else
  5169. # include <assert.h>
  5170. #endif
  5171. Syntax error
  5172. _ACEOF
  5173. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5174. case "(($ac_try" in
  5175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5176. *) ac_try_echo=$ac_try;;
  5177. esac
  5178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5179. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5180. ac_status=$?
  5181. grep -v '^ *+' conftest.er1 >conftest.err
  5182. rm -f conftest.er1
  5183. cat conftest.err >&5
  5184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5185. (exit $ac_status); } >/dev/null && {
  5186. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5187. test ! -s conftest.err
  5188. }; then
  5189. :
  5190. else
  5191. echo "$as_me: failed program was:" >&5
  5192. sed 's/^/| /' conftest.$ac_ext >&5
  5193. # Broken: fails on valid input.
  5194. continue
  5195. fi
  5196. rm -f conftest.err conftest.$ac_ext
  5197. # OK, works on sane cases. Now check whether nonexistent headers
  5198. # can be detected and how.
  5199. cat >conftest.$ac_ext <<_ACEOF
  5200. /* confdefs.h. */
  5201. _ACEOF
  5202. cat confdefs.h >>conftest.$ac_ext
  5203. cat >>conftest.$ac_ext <<_ACEOF
  5204. /* end confdefs.h. */
  5205. #include <ac_nonexistent.h>
  5206. _ACEOF
  5207. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5208. case "(($ac_try" in
  5209. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5210. *) ac_try_echo=$ac_try;;
  5211. esac
  5212. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5213. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5214. ac_status=$?
  5215. grep -v '^ *+' conftest.er1 >conftest.err
  5216. rm -f conftest.er1
  5217. cat conftest.err >&5
  5218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5219. (exit $ac_status); } >/dev/null && {
  5220. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5221. test ! -s conftest.err
  5222. }; then
  5223. # Broken: success on invalid input.
  5224. continue
  5225. else
  5226. echo "$as_me: failed program was:" >&5
  5227. sed 's/^/| /' conftest.$ac_ext >&5
  5228. # Passes both tests.
  5229. ac_preproc_ok=:
  5230. break
  5231. fi
  5232. rm -f conftest.err conftest.$ac_ext
  5233. done
  5234. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  5235. rm -f conftest.err conftest.$ac_ext
  5236. if $ac_preproc_ok; then
  5237. :
  5238. else
  5239. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  5240. See \`config.log' for more details." >&5
  5241. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  5242. See \`config.log' for more details." >&2;}
  5243. { (exit 1); exit 1; }; }
  5244. fi
  5245. ac_ext=c
  5246. ac_cpp='$CPP $CPPFLAGS'
  5247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5250. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  5251. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  5252. if test "${ac_cv_path_GREP+set}" = set; then
  5253. echo $ECHO_N "(cached) $ECHO_C" >&6
  5254. else
  5255. # Extract the first word of "grep ggrep" to use in msg output
  5256. if test -z "$GREP"; then
  5257. set dummy grep ggrep; ac_prog_name=$2
  5258. if test "${ac_cv_path_GREP+set}" = set; then
  5259. echo $ECHO_N "(cached) $ECHO_C" >&6
  5260. else
  5261. ac_path_GREP_found=false
  5262. # Loop through the user's path and test for each of PROGNAME-LIST
  5263. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5264. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5265. do
  5266. IFS=$as_save_IFS
  5267. test -z "$as_dir" && as_dir=.
  5268. for ac_prog in grep ggrep; do
  5269. for ac_exec_ext in '' $ac_executable_extensions; do
  5270. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  5271. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  5272. # Check for GNU ac_path_GREP and select it if it is found.
  5273. # Check for GNU $ac_path_GREP
  5274. case `"$ac_path_GREP" --version 2>&1` in
  5275. *GNU*)
  5276. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  5277. *)
  5278. ac_count=0
  5279. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5280. while :
  5281. do
  5282. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5283. mv "conftest.tmp" "conftest.in"
  5284. cp "conftest.in" "conftest.nl"
  5285. echo 'GREP' >> "conftest.nl"
  5286. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5287. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5288. ac_count=`expr $ac_count + 1`
  5289. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  5290. # Best one so far, save it but keep looking for a better one
  5291. ac_cv_path_GREP="$ac_path_GREP"
  5292. ac_path_GREP_max=$ac_count
  5293. fi
  5294. # 10*(2^10) chars as input seems more than enough
  5295. test $ac_count -gt 10 && break
  5296. done
  5297. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5298. esac
  5299. $ac_path_GREP_found && break 3
  5300. done
  5301. done
  5302. done
  5303. IFS=$as_save_IFS
  5304. fi
  5305. GREP="$ac_cv_path_GREP"
  5306. if test -z "$GREP"; then
  5307. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5308. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5309. { (exit 1); exit 1; }; }
  5310. fi
  5311. else
  5312. ac_cv_path_GREP=$GREP
  5313. fi
  5314. fi
  5315. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  5316. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  5317. GREP="$ac_cv_path_GREP"
  5318. { echo "$as_me:$LINENO: checking for egrep" >&5
  5319. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  5320. if test "${ac_cv_path_EGREP+set}" = set; then
  5321. echo $ECHO_N "(cached) $ECHO_C" >&6
  5322. else
  5323. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  5324. then ac_cv_path_EGREP="$GREP -E"
  5325. else
  5326. # Extract the first word of "egrep" to use in msg output
  5327. if test -z "$EGREP"; then
  5328. set dummy egrep; ac_prog_name=$2
  5329. if test "${ac_cv_path_EGREP+set}" = set; then
  5330. echo $ECHO_N "(cached) $ECHO_C" >&6
  5331. else
  5332. ac_path_EGREP_found=false
  5333. # Loop through the user's path and test for each of PROGNAME-LIST
  5334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5335. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5336. do
  5337. IFS=$as_save_IFS
  5338. test -z "$as_dir" && as_dir=.
  5339. for ac_prog in egrep; do
  5340. for ac_exec_ext in '' $ac_executable_extensions; do
  5341. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  5342. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  5343. # Check for GNU ac_path_EGREP and select it if it is found.
  5344. # Check for GNU $ac_path_EGREP
  5345. case `"$ac_path_EGREP" --version 2>&1` in
  5346. *GNU*)
  5347. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  5348. *)
  5349. ac_count=0
  5350. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  5351. while :
  5352. do
  5353. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5354. mv "conftest.tmp" "conftest.in"
  5355. cp "conftest.in" "conftest.nl"
  5356. echo 'EGREP' >> "conftest.nl"
  5357. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5358. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5359. ac_count=`expr $ac_count + 1`
  5360. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  5361. # Best one so far, save it but keep looking for a better one
  5362. ac_cv_path_EGREP="$ac_path_EGREP"
  5363. ac_path_EGREP_max=$ac_count
  5364. fi
  5365. # 10*(2^10) chars as input seems more than enough
  5366. test $ac_count -gt 10 && break
  5367. done
  5368. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5369. esac
  5370. $ac_path_EGREP_found && break 3
  5371. done
  5372. done
  5373. done
  5374. IFS=$as_save_IFS
  5375. fi
  5376. EGREP="$ac_cv_path_EGREP"
  5377. if test -z "$EGREP"; then
  5378. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  5379. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  5380. { (exit 1); exit 1; }; }
  5381. fi
  5382. else
  5383. ac_cv_path_EGREP=$EGREP
  5384. fi
  5385. fi
  5386. fi
  5387. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  5388. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  5389. EGREP="$ac_cv_path_EGREP"
  5390. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  5391. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  5392. if test "${ac_cv_header_stdc+set}" = set; then
  5393. echo $ECHO_N "(cached) $ECHO_C" >&6
  5394. else
  5395. cat >conftest.$ac_ext <<_ACEOF
  5396. /* confdefs.h. */
  5397. _ACEOF
  5398. cat confdefs.h >>conftest.$ac_ext
  5399. cat >>conftest.$ac_ext <<_ACEOF
  5400. /* end confdefs.h. */
  5401. #include <stdlib.h>
  5402. #include <stdarg.h>
  5403. #include <string.h>
  5404. #include <float.h>
  5405. int
  5406. main ()
  5407. {
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. rm -f conftest.$ac_objext
  5413. if { (ac_try="$ac_compile"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_compile") 2>conftest.er1
  5420. ac_status=$?
  5421. grep -v '^ *+' conftest.er1 >conftest.err
  5422. rm -f conftest.er1
  5423. cat conftest.err >&5
  5424. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5425. (exit $ac_status); } && {
  5426. test -z "$ac_c_werror_flag" ||
  5427. test ! -s conftest.err
  5428. } && test -s conftest.$ac_objext; then
  5429. ac_cv_header_stdc=yes
  5430. else
  5431. echo "$as_me: failed program was:" >&5
  5432. sed 's/^/| /' conftest.$ac_ext >&5
  5433. ac_cv_header_stdc=no
  5434. fi
  5435. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5436. if test $ac_cv_header_stdc = yes; then
  5437. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  5438. cat >conftest.$ac_ext <<_ACEOF
  5439. /* confdefs.h. */
  5440. _ACEOF
  5441. cat confdefs.h >>conftest.$ac_ext
  5442. cat >>conftest.$ac_ext <<_ACEOF
  5443. /* end confdefs.h. */
  5444. #include <string.h>
  5445. _ACEOF
  5446. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5447. $EGREP "memchr" >/dev/null 2>&1; then
  5448. :
  5449. else
  5450. ac_cv_header_stdc=no
  5451. fi
  5452. rm -f conftest*
  5453. fi
  5454. if test $ac_cv_header_stdc = yes; then
  5455. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  5456. cat >conftest.$ac_ext <<_ACEOF
  5457. /* confdefs.h. */
  5458. _ACEOF
  5459. cat confdefs.h >>conftest.$ac_ext
  5460. cat >>conftest.$ac_ext <<_ACEOF
  5461. /* end confdefs.h. */
  5462. #include <stdlib.h>
  5463. _ACEOF
  5464. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5465. $EGREP "free" >/dev/null 2>&1; then
  5466. :
  5467. else
  5468. ac_cv_header_stdc=no
  5469. fi
  5470. rm -f conftest*
  5471. fi
  5472. if test $ac_cv_header_stdc = yes; then
  5473. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  5474. if test "$cross_compiling" = yes; then
  5475. :
  5476. else
  5477. cat >conftest.$ac_ext <<_ACEOF
  5478. /* confdefs.h. */
  5479. _ACEOF
  5480. cat confdefs.h >>conftest.$ac_ext
  5481. cat >>conftest.$ac_ext <<_ACEOF
  5482. /* end confdefs.h. */
  5483. #include <ctype.h>
  5484. #include <stdlib.h>
  5485. #if ((' ' & 0x0FF) == 0x020)
  5486. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  5487. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  5488. #else
  5489. # define ISLOWER(c) \
  5490. (('a' <= (c) && (c) <= 'i') \
  5491. || ('j' <= (c) && (c) <= 'r') \
  5492. || ('s' <= (c) && (c) <= 'z'))
  5493. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  5494. #endif
  5495. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  5496. int
  5497. main ()
  5498. {
  5499. int i;
  5500. for (i = 0; i < 256; i++)
  5501. if (XOR (islower (i), ISLOWER (i))
  5502. || toupper (i) != TOUPPER (i))
  5503. return 2;
  5504. return 0;
  5505. }
  5506. _ACEOF
  5507. rm -f conftest$ac_exeext
  5508. if { (ac_try="$ac_link"
  5509. case "(($ac_try" in
  5510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5511. *) ac_try_echo=$ac_try;;
  5512. esac
  5513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5514. (eval "$ac_link") 2>&5
  5515. ac_status=$?
  5516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5517. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5518. { (case "(($ac_try" in
  5519. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5520. *) ac_try_echo=$ac_try;;
  5521. esac
  5522. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5523. (eval "$ac_try") 2>&5
  5524. ac_status=$?
  5525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5526. (exit $ac_status); }; }; then
  5527. :
  5528. else
  5529. echo "$as_me: program exited with status $ac_status" >&5
  5530. echo "$as_me: failed program was:" >&5
  5531. sed 's/^/| /' conftest.$ac_ext >&5
  5532. ( exit $ac_status )
  5533. ac_cv_header_stdc=no
  5534. fi
  5535. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5536. fi
  5537. fi
  5538. fi
  5539. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  5540. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  5541. if test $ac_cv_header_stdc = yes; then
  5542. cat >>confdefs.h <<\_ACEOF
  5543. #define STDC_HEADERS 1
  5544. _ACEOF
  5545. fi
  5546. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  5547. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  5548. inttypes.h stdint.h unistd.h
  5549. do
  5550. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5551. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5552. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5553. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5554. echo $ECHO_N "(cached) $ECHO_C" >&6
  5555. else
  5556. cat >conftest.$ac_ext <<_ACEOF
  5557. /* confdefs.h. */
  5558. _ACEOF
  5559. cat confdefs.h >>conftest.$ac_ext
  5560. cat >>conftest.$ac_ext <<_ACEOF
  5561. /* end confdefs.h. */
  5562. $ac_includes_default
  5563. #include <$ac_header>
  5564. _ACEOF
  5565. rm -f conftest.$ac_objext
  5566. if { (ac_try="$ac_compile"
  5567. case "(($ac_try" in
  5568. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5569. *) ac_try_echo=$ac_try;;
  5570. esac
  5571. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5572. (eval "$ac_compile") 2>conftest.er1
  5573. ac_status=$?
  5574. grep -v '^ *+' conftest.er1 >conftest.err
  5575. rm -f conftest.er1
  5576. cat conftest.err >&5
  5577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5578. (exit $ac_status); } && {
  5579. test -z "$ac_c_werror_flag" ||
  5580. test ! -s conftest.err
  5581. } && test -s conftest.$ac_objext; then
  5582. eval "$as_ac_Header=yes"
  5583. else
  5584. echo "$as_me: failed program was:" >&5
  5585. sed 's/^/| /' conftest.$ac_ext >&5
  5586. eval "$as_ac_Header=no"
  5587. fi
  5588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5589. fi
  5590. ac_res=`eval echo '${'$as_ac_Header'}'`
  5591. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5592. echo "${ECHO_T}$ac_res" >&6; }
  5593. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5594. cat >>confdefs.h <<_ACEOF
  5595. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5596. _ACEOF
  5597. fi
  5598. done
  5599. # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
  5600. # for constant arguments. Useless!
  5601. { echo "$as_me:$LINENO: checking for working alloca.h" >&5
  5602. echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
  5603. if test "${ac_cv_working_alloca_h+set}" = set; then
  5604. echo $ECHO_N "(cached) $ECHO_C" >&6
  5605. else
  5606. cat >conftest.$ac_ext <<_ACEOF
  5607. /* confdefs.h. */
  5608. _ACEOF
  5609. cat confdefs.h >>conftest.$ac_ext
  5610. cat >>conftest.$ac_ext <<_ACEOF
  5611. /* end confdefs.h. */
  5612. #include <alloca.h>
  5613. int
  5614. main ()
  5615. {
  5616. char *p = (char *) alloca (2 * sizeof (int));
  5617. if (p) return 0;
  5618. ;
  5619. return 0;
  5620. }
  5621. _ACEOF
  5622. rm -f conftest.$ac_objext conftest$ac_exeext
  5623. if { (ac_try="$ac_link"
  5624. case "(($ac_try" in
  5625. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5626. *) ac_try_echo=$ac_try;;
  5627. esac
  5628. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5629. (eval "$ac_link") 2>conftest.er1
  5630. ac_status=$?
  5631. grep -v '^ *+' conftest.er1 >conftest.err
  5632. rm -f conftest.er1
  5633. cat conftest.err >&5
  5634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); } && {
  5636. test -z "$ac_c_werror_flag" ||
  5637. test ! -s conftest.err
  5638. } && test -s conftest$ac_exeext &&
  5639. $as_test_x conftest$ac_exeext; then
  5640. ac_cv_working_alloca_h=yes
  5641. else
  5642. echo "$as_me: failed program was:" >&5
  5643. sed 's/^/| /' conftest.$ac_ext >&5
  5644. ac_cv_working_alloca_h=no
  5645. fi
  5646. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5647. conftest$ac_exeext conftest.$ac_ext
  5648. fi
  5649. { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
  5650. echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
  5651. if test $ac_cv_working_alloca_h = yes; then
  5652. cat >>confdefs.h <<\_ACEOF
  5653. #define HAVE_ALLOCA_H 1
  5654. _ACEOF
  5655. fi
  5656. { echo "$as_me:$LINENO: checking for alloca" >&5
  5657. echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
  5658. if test "${ac_cv_func_alloca_works+set}" = set; then
  5659. echo $ECHO_N "(cached) $ECHO_C" >&6
  5660. else
  5661. cat >conftest.$ac_ext <<_ACEOF
  5662. /* confdefs.h. */
  5663. _ACEOF
  5664. cat confdefs.h >>conftest.$ac_ext
  5665. cat >>conftest.$ac_ext <<_ACEOF
  5666. /* end confdefs.h. */
  5667. #ifdef __GNUC__
  5668. # define alloca __builtin_alloca
  5669. #else
  5670. # ifdef _MSC_VER
  5671. # include <malloc.h>
  5672. # define alloca _alloca
  5673. # else
  5674. # ifdef HAVE_ALLOCA_H
  5675. # include <alloca.h>
  5676. # else
  5677. # ifdef _AIX
  5678. #pragma alloca
  5679. # else
  5680. # ifndef alloca /* predefined by HP cc +Olibcalls */
  5681. char *alloca ();
  5682. # endif
  5683. # endif
  5684. # endif
  5685. # endif
  5686. #endif
  5687. int
  5688. main ()
  5689. {
  5690. char *p = (char *) alloca (1);
  5691. if (p) return 0;
  5692. ;
  5693. return 0;
  5694. }
  5695. _ACEOF
  5696. rm -f conftest.$ac_objext conftest$ac_exeext
  5697. if { (ac_try="$ac_link"
  5698. case "(($ac_try" in
  5699. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5700. *) ac_try_echo=$ac_try;;
  5701. esac
  5702. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5703. (eval "$ac_link") 2>conftest.er1
  5704. ac_status=$?
  5705. grep -v '^ *+' conftest.er1 >conftest.err
  5706. rm -f conftest.er1
  5707. cat conftest.err >&5
  5708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5709. (exit $ac_status); } && {
  5710. test -z "$ac_c_werror_flag" ||
  5711. test ! -s conftest.err
  5712. } && test -s conftest$ac_exeext &&
  5713. $as_test_x conftest$ac_exeext; then
  5714. ac_cv_func_alloca_works=yes
  5715. else
  5716. echo "$as_me: failed program was:" >&5
  5717. sed 's/^/| /' conftest.$ac_ext >&5
  5718. ac_cv_func_alloca_works=no
  5719. fi
  5720. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5721. conftest$ac_exeext conftest.$ac_ext
  5722. fi
  5723. { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
  5724. echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
  5725. if test $ac_cv_func_alloca_works = yes; then
  5726. cat >>confdefs.h <<\_ACEOF
  5727. #define HAVE_ALLOCA 1
  5728. _ACEOF
  5729. else
  5730. # The SVR3 libPW and SVR4 libucb both contain incompatible functions
  5731. # that cause trouble. Some versions do not even contain alloca or
  5732. # contain a buggy version. If you still want to use their alloca,
  5733. # use ar to extract alloca.o from them instead of compiling alloca.c.
  5734. ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
  5735. cat >>confdefs.h <<\_ACEOF
  5736. #define C_ALLOCA 1
  5737. _ACEOF
  5738. { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
  5739. echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
  5740. if test "${ac_cv_os_cray+set}" = set; then
  5741. echo $ECHO_N "(cached) $ECHO_C" >&6
  5742. else
  5743. cat >conftest.$ac_ext <<_ACEOF
  5744. /* confdefs.h. */
  5745. _ACEOF
  5746. cat confdefs.h >>conftest.$ac_ext
  5747. cat >>conftest.$ac_ext <<_ACEOF
  5748. /* end confdefs.h. */
  5749. #if defined CRAY && ! defined CRAY2
  5750. webecray
  5751. #else
  5752. wenotbecray
  5753. #endif
  5754. _ACEOF
  5755. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5756. $EGREP "webecray" >/dev/null 2>&1; then
  5757. ac_cv_os_cray=yes
  5758. else
  5759. ac_cv_os_cray=no
  5760. fi
  5761. rm -f conftest*
  5762. fi
  5763. { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
  5764. echo "${ECHO_T}$ac_cv_os_cray" >&6; }
  5765. if test $ac_cv_os_cray = yes; then
  5766. for ac_func in _getb67 GETB67 getb67; do
  5767. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5768. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  5769. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  5770. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  5771. echo $ECHO_N "(cached) $ECHO_C" >&6
  5772. else
  5773. cat >conftest.$ac_ext <<_ACEOF
  5774. /* confdefs.h. */
  5775. _ACEOF
  5776. cat confdefs.h >>conftest.$ac_ext
  5777. cat >>conftest.$ac_ext <<_ACEOF
  5778. /* end confdefs.h. */
  5779. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5781. #define $ac_func innocuous_$ac_func
  5782. /* System header to define __stub macros and hopefully few prototypes,
  5783. which can conflict with char $ac_func (); below.
  5784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5785. <limits.h> exists even on freestanding compilers. */
  5786. #ifdef __STDC__
  5787. # include <limits.h>
  5788. #else
  5789. # include <assert.h>
  5790. #endif
  5791. #undef $ac_func
  5792. /* Override any GCC internal prototype to avoid an error.
  5793. Use char because int might match the return type of a GCC
  5794. builtin and then its argument prototype would still apply. */
  5795. #ifdef __cplusplus
  5796. extern "C"
  5797. #endif
  5798. char $ac_func ();
  5799. /* The GNU C library defines this for functions which it implements
  5800. to always fail with ENOSYS. Some functions are actually named
  5801. something starting with __ and the normal name is an alias. */
  5802. #if defined __stub_$ac_func || defined __stub___$ac_func
  5803. choke me
  5804. #endif
  5805. int
  5806. main ()
  5807. {
  5808. return $ac_func ();
  5809. ;
  5810. return 0;
  5811. }
  5812. _ACEOF
  5813. rm -f conftest.$ac_objext conftest$ac_exeext
  5814. if { (ac_try="$ac_link"
  5815. case "(($ac_try" in
  5816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5817. *) ac_try_echo=$ac_try;;
  5818. esac
  5819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5820. (eval "$ac_link") 2>conftest.er1
  5821. ac_status=$?
  5822. grep -v '^ *+' conftest.er1 >conftest.err
  5823. rm -f conftest.er1
  5824. cat conftest.err >&5
  5825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5826. (exit $ac_status); } && {
  5827. test -z "$ac_c_werror_flag" ||
  5828. test ! -s conftest.err
  5829. } && test -s conftest$ac_exeext &&
  5830. $as_test_x conftest$ac_exeext; then
  5831. eval "$as_ac_var=yes"
  5832. else
  5833. echo "$as_me: failed program was:" >&5
  5834. sed 's/^/| /' conftest.$ac_ext >&5
  5835. eval "$as_ac_var=no"
  5836. fi
  5837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  5838. conftest$ac_exeext conftest.$ac_ext
  5839. fi
  5840. ac_res=`eval echo '${'$as_ac_var'}'`
  5841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5842. echo "${ECHO_T}$ac_res" >&6; }
  5843. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5844. cat >>confdefs.h <<_ACEOF
  5845. #define CRAY_STACKSEG_END $ac_func
  5846. _ACEOF
  5847. break
  5848. fi
  5849. done
  5850. fi
  5851. { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
  5852. echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
  5853. if test "${ac_cv_c_stack_direction+set}" = set; then
  5854. echo $ECHO_N "(cached) $ECHO_C" >&6
  5855. else
  5856. if test "$cross_compiling" = yes; then
  5857. ac_cv_c_stack_direction=0
  5858. else
  5859. cat >conftest.$ac_ext <<_ACEOF
  5860. /* confdefs.h. */
  5861. _ACEOF
  5862. cat confdefs.h >>conftest.$ac_ext
  5863. cat >>conftest.$ac_ext <<_ACEOF
  5864. /* end confdefs.h. */
  5865. $ac_includes_default
  5866. int
  5867. find_stack_direction ()
  5868. {
  5869. static char *addr = 0;
  5870. auto char dummy;
  5871. if (addr == 0)
  5872. {
  5873. addr = &dummy;
  5874. return find_stack_direction ();
  5875. }
  5876. else
  5877. return (&dummy > addr) ? 1 : -1;
  5878. }
  5879. int
  5880. main ()
  5881. {
  5882. return find_stack_direction () < 0;
  5883. }
  5884. _ACEOF
  5885. rm -f conftest$ac_exeext
  5886. if { (ac_try="$ac_link"
  5887. case "(($ac_try" in
  5888. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5889. *) ac_try_echo=$ac_try;;
  5890. esac
  5891. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5892. (eval "$ac_link") 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5896. { (case "(($ac_try" in
  5897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5898. *) ac_try_echo=$ac_try;;
  5899. esac
  5900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5901. (eval "$ac_try") 2>&5
  5902. ac_status=$?
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); }; }; then
  5905. ac_cv_c_stack_direction=1
  5906. else
  5907. echo "$as_me: program exited with status $ac_status" >&5
  5908. echo "$as_me: failed program was:" >&5
  5909. sed 's/^/| /' conftest.$ac_ext >&5
  5910. ( exit $ac_status )
  5911. ac_cv_c_stack_direction=-1
  5912. fi
  5913. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5914. fi
  5915. fi
  5916. { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
  5917. echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
  5918. cat >>confdefs.h <<_ACEOF
  5919. #define STACK_DIRECTION $ac_cv_c_stack_direction
  5920. _ACEOF
  5921. fi
  5922. #AC_HEADER_STDC
  5923. for ac_header in winsock2.h ws2tcpip.h argz.h arpa/inet.h fcntl.h inttypes.h io.h langinfo.h libgen.h libintl.h limits.h locale.h malloc.h netdb.h netinet/in.h stddef.h stdint.h stdio_ext.h stdlib.h string.h strings.h sys/param.h sys/socket.h sys/time.h unistd.h
  5924. do
  5925. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5926. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5927. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  5928. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  5929. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  5930. echo $ECHO_N "(cached) $ECHO_C" >&6
  5931. fi
  5932. ac_res=`eval echo '${'$as_ac_Header'}'`
  5933. { echo "$as_me:$LINENO: result: $ac_res" >&5
  5934. echo "${ECHO_T}$ac_res" >&6; }
  5935. else
  5936. # Is the header compilable?
  5937. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5938. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  5939. cat >conftest.$ac_ext <<_ACEOF
  5940. /* confdefs.h. */
  5941. _ACEOF
  5942. cat confdefs.h >>conftest.$ac_ext
  5943. cat >>conftest.$ac_ext <<_ACEOF
  5944. /* end confdefs.h. */
  5945. $ac_includes_default
  5946. #include <$ac_header>
  5947. _ACEOF
  5948. rm -f conftest.$ac_objext
  5949. if { (ac_try="$ac_compile"
  5950. case "(($ac_try" in
  5951. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5952. *) ac_try_echo=$ac_try;;
  5953. esac
  5954. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5955. (eval "$ac_compile") 2>conftest.er1
  5956. ac_status=$?
  5957. grep -v '^ *+' conftest.er1 >conftest.err
  5958. rm -f conftest.er1
  5959. cat conftest.err >&5
  5960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5961. (exit $ac_status); } && {
  5962. test -z "$ac_c_werror_flag" ||
  5963. test ! -s conftest.err
  5964. } && test -s conftest.$ac_objext; then
  5965. ac_header_compiler=yes
  5966. else
  5967. echo "$as_me: failed program was:" >&5
  5968. sed 's/^/| /' conftest.$ac_ext >&5
  5969. ac_header_compiler=no
  5970. fi
  5971. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5972. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5973. echo "${ECHO_T}$ac_header_compiler" >&6; }
  5974. # Is the header present?
  5975. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5976. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  5977. cat >conftest.$ac_ext <<_ACEOF
  5978. /* confdefs.h. */
  5979. _ACEOF
  5980. cat confdefs.h >>conftest.$ac_ext
  5981. cat >>conftest.$ac_ext <<_ACEOF
  5982. /* end confdefs.h. */
  5983. #include <$ac_header>
  5984. _ACEOF
  5985. if { (ac_try="$ac_cpp conftest.$ac_ext"
  5986. case "(($ac_try" in
  5987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5988. *) ac_try_echo=$ac_try;;
  5989. esac
  5990. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5991. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  5992. ac_status=$?
  5993. grep -v '^ *+' conftest.er1 >conftest.err
  5994. rm -f conftest.er1
  5995. cat conftest.err >&5
  5996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5997. (exit $ac_status); } >/dev/null && {
  5998. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  5999. test ! -s conftest.err
  6000. }; then
  6001. ac_header_preproc=yes
  6002. else
  6003. echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. ac_header_preproc=no
  6006. fi
  6007. rm -f conftest.err conftest.$ac_ext
  6008. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6009. echo "${ECHO_T}$ac_header_preproc" >&6; }
  6010. # So? What about this header?
  6011. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6012. yes:no: )
  6013. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6014. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6015. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6016. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6017. ac_header_preproc=yes
  6018. ;;
  6019. no:yes:* )
  6020. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6021. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6022. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6023. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6024. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6025. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6026. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6027. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6028. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6029. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6030. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6031. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6032. ( cat <<\_ASBOX
  6033. ## ----------------------------------------------- ##
  6034. ## Report this to t-tujikawa@users.sourceforge.net ##
  6035. ## ----------------------------------------------- ##
  6036. _ASBOX
  6037. ) | sed "s/^/$as_me: WARNING: /" >&2
  6038. ;;
  6039. esac
  6040. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  6041. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  6042. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  6043. echo $ECHO_N "(cached) $ECHO_C" >&6
  6044. else
  6045. eval "$as_ac_Header=\$ac_header_preproc"
  6046. fi
  6047. ac_res=`eval echo '${'$as_ac_Header'}'`
  6048. { echo "$as_me:$LINENO: result: $ac_res" >&5
  6049. echo "${ECHO_T}$ac_res" >&6; }
  6050. fi
  6051. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6052. cat >>confdefs.h <<_ACEOF
  6053. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6054. _ACEOF
  6055. fi
  6056. done
  6057. # Checks for typedefs, structures, and compiler characteristics.
  6058. { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
  6059. echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
  6060. if test "${ac_cv_header_stdbool_h+set}" = set; then
  6061. echo $ECHO_N "(cached) $ECHO_C" >&6
  6062. else
  6063. cat >conftest.$ac_ext <<_ACEOF
  6064. /* confdefs.h. */
  6065. _ACEOF
  6066. cat confdefs.h >>conftest.$ac_ext
  6067. cat >>conftest.$ac_ext <<_ACEOF
  6068. /* end confdefs.h. */
  6069. #include <stdbool.h>
  6070. #ifndef bool
  6071. "error: bool is not defined"
  6072. #endif
  6073. #ifndef false
  6074. "error: false is not defined"
  6075. #endif
  6076. #if false
  6077. "error: false is not 0"
  6078. #endif
  6079. #ifndef true
  6080. "error: true is not defined"
  6081. #endif
  6082. #if true != 1
  6083. "error: true is not 1"
  6084. #endif
  6085. #ifndef __bool_true_false_are_defined
  6086. "error: __bool_true_false_are_defined is not defined"
  6087. #endif
  6088. struct s { _Bool s: 1; _Bool t; } s;
  6089. char a[true == 1 ? 1 : -1];
  6090. char b[false == 0 ? 1 : -1];
  6091. char c[__bool_true_false_are_defined == 1 ? 1 : -1];
  6092. char d[(bool) 0.5 == true ? 1 : -1];
  6093. bool e = &s;
  6094. char f[(_Bool) 0.0 == false ? 1 : -1];
  6095. char g[true];
  6096. char h[sizeof (_Bool)];
  6097. char i[sizeof s.t];
  6098. enum { j = false, k = true, l = false * true, m = true * 256 };
  6099. _Bool n[m];
  6100. char o[sizeof n == m * sizeof n[0] ? 1 : -1];
  6101. char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
  6102. # if defined __xlc__ || defined __GNUC__
  6103. /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
  6104. reported by James Lemley on 2005-10-05; see
  6105. http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
  6106. This test is not quite right, since xlc is allowed to
  6107. reject this program, as the initializer for xlcbug is
  6108. not one of the forms that C requires support for.
  6109. However, doing the test right would require a runtime
  6110. test, and that would make cross-compilation harder.
  6111. Let us hope that IBM fixes the xlc bug, and also adds
  6112. support for this kind of constant expression. In the
  6113. meantime, this test will reject xlc, which is OK, since
  6114. our stdbool.h substitute should suffice. We also test
  6115. this with GCC, where it should work, to detect more
  6116. quickly whether someone messes up the test in the
  6117. future. */
  6118. char digs[] = "0123456789";
  6119. int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
  6120. # endif
  6121. /* Catch a bug in an HP-UX C compiler. See
  6122. http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
  6123. http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
  6124. */
  6125. _Bool q = true;
  6126. _Bool *pq = &q;
  6127. int
  6128. main ()
  6129. {
  6130. *pq |= q;
  6131. *pq |= ! q;
  6132. /* Refer to every declared value, to avoid compiler optimizations. */
  6133. return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
  6134. + !m + !n + !o + !p + !q + !pq);
  6135. ;
  6136. return 0;
  6137. }
  6138. _ACEOF
  6139. rm -f conftest.$ac_objext
  6140. if { (ac_try="$ac_compile"
  6141. case "(($ac_try" in
  6142. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6143. *) ac_try_echo=$ac_try;;
  6144. esac
  6145. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6146. (eval "$ac_compile") 2>conftest.er1
  6147. ac_status=$?
  6148. grep -v '^ *+' conftest.er1 >conftest.err
  6149. rm -f conftest.er1
  6150. cat conftest.err >&5
  6151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6152. (exit $ac_status); } && {
  6153. test -z "$ac_c_werror_flag" ||
  6154. test ! -s conftest.err
  6155. } && test -s conftest.$ac_objext; then
  6156. ac_cv_header_stdbool_h=yes
  6157. else
  6158. echo "$as_me: failed program was:" >&5
  6159. sed 's/^/| /' conftest.$ac_ext >&5
  6160. ac_cv_header_stdbool_h=no
  6161. fi
  6162. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6163. fi
  6164. { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
  6165. echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
  6166. { echo "$as_me:$LINENO: checking for _Bool" >&5
  6167. echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
  6168. if test "${ac_cv_type__Bool+set}" = set; then
  6169. echo $ECHO_N "(cached) $ECHO_C" >&6
  6170. else
  6171. cat >conftest.$ac_ext <<_ACEOF
  6172. /* confdefs.h. */
  6173. _ACEOF
  6174. cat confdefs.h >>conftest.$ac_ext
  6175. cat >>conftest.$ac_ext <<_ACEOF
  6176. /* end confdefs.h. */
  6177. $ac_includes_default
  6178. typedef _Bool ac__type_new_;
  6179. int
  6180. main ()
  6181. {
  6182. if ((ac__type_new_ *) 0)
  6183. return 0;
  6184. if (sizeof (ac__type_new_))
  6185. return 0;
  6186. ;
  6187. return 0;
  6188. }
  6189. _ACEOF
  6190. rm -f conftest.$ac_objext
  6191. if { (ac_try="$ac_compile"
  6192. case "(($ac_try" in
  6193. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6194. *) ac_try_echo=$ac_try;;
  6195. esac
  6196. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6197. (eval "$ac_compile") 2>conftest.er1
  6198. ac_status=$?
  6199. grep -v '^ *+' conftest.er1 >conftest.err
  6200. rm -f conftest.er1
  6201. cat conftest.err >&5
  6202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6203. (exit $ac_status); } && {
  6204. test -z "$ac_c_werror_flag" ||
  6205. test ! -s conftest.err
  6206. } && test -s conftest.$ac_objext; then
  6207. ac_cv_type__Bool=yes
  6208. else
  6209. echo "$as_me: failed program was:" >&5
  6210. sed 's/^/| /' conftest.$ac_ext >&5
  6211. ac_cv_type__Bool=no
  6212. fi
  6213. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6214. fi
  6215. { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
  6216. echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
  6217. if test $ac_cv_type__Bool = yes; then
  6218. cat >>confdefs.h <<_ACEOF
  6219. #define HAVE__BOOL 1
  6220. _ACEOF
  6221. fi
  6222. if test $ac_cv_header_stdbool_h = yes; then
  6223. cat >>confdefs.h <<\_ACEOF
  6224. #define HAVE_STDBOOL_H 1
  6225. _ACEOF
  6226. fi
  6227. { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6228. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
  6229. if test "${ac_cv_c_const+set}" = set; then
  6230. echo $ECHO_N "(cached) $ECHO_C" >&6
  6231. else
  6232. cat >conftest.$ac_ext <<_ACEOF
  6233. /* confdefs.h. */
  6234. _ACEOF
  6235. cat confdefs.h >>conftest.$ac_ext
  6236. cat >>conftest.$ac_ext <<_ACEOF
  6237. /* end confdefs.h. */
  6238. int
  6239. main ()
  6240. {
  6241. /* FIXME: Include the comments suggested by Paul. */
  6242. #ifndef __cplusplus
  6243. /* Ultrix mips cc rejects this. */
  6244. typedef int charset[2];
  6245. const charset cs;
  6246. /* SunOS 4.1.1 cc rejects this. */
  6247. char const *const *pcpcc;
  6248. char **ppc;
  6249. /* NEC SVR4.0.2 mips cc rejects this. */
  6250. struct point {int x, y;};
  6251. static struct point const zero = {0,0};
  6252. /* AIX XL C 1.02.0.0 rejects this.
  6253. It does not let you subtract one const X* pointer from another in
  6254. an arm of an if-expression whose if-part is not a constant
  6255. expression */
  6256. const char *g = "string";
  6257. pcpcc = &g + (g ? g-g : 0);
  6258. /* HPUX 7.0 cc rejects these. */
  6259. ++pcpcc;
  6260. ppc = (char**) pcpcc;
  6261. pcpcc = (char const *const *) ppc;
  6262. { /* SCO 3.2v4 cc rejects this. */
  6263. char *t;
  6264. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6265. *t++ = 0;
  6266. if (s) return 0;
  6267. }
  6268. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6269. int x[] = {25, 17};
  6270. const int *foo = &x[0];
  6271. ++foo;
  6272. }
  6273. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6274. typedef const int *iptr;
  6275. iptr p = 0;
  6276. ++p;
  6277. }
  6278. { /* AIX XL C 1.02.0.0 rejects this saying
  6279. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6280. struct s { int j; const int *ap[3]; };
  6281. struct s *b; b->j = 5;
  6282. }
  6283. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6284. const int foo = 10;
  6285. if (!foo) return 0;
  6286. }
  6287. return !cs[0] && !zero.x;
  6288. #endif
  6289. ;
  6290. return 0;
  6291. }
  6292. _ACEOF
  6293. rm -f conftest.$ac_objext
  6294. if { (ac_try="$ac_compile"
  6295. case "(($ac_try" in
  6296. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6297. *) ac_try_echo=$ac_try;;
  6298. esac
  6299. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6300. (eval "$ac_compile") 2>conftest.er1
  6301. ac_status=$?
  6302. grep -v '^ *+' conftest.er1 >conftest.err
  6303. rm -f conftest.er1
  6304. cat conftest.err >&5
  6305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6306. (exit $ac_status); } && {
  6307. test -z "$ac_c_werror_flag" ||
  6308. test ! -s conftest.err
  6309. } && test -s conftest.$ac_objext; then
  6310. ac_cv_c_const=yes
  6311. else
  6312. echo "$as_me: failed program was:" >&5
  6313. sed 's/^/| /' conftest.$ac_ext >&5
  6314. ac_cv_c_const=no
  6315. fi
  6316. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6317. fi
  6318. { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6319. echo "${ECHO_T}$ac_cv_c_const" >&6; }
  6320. if test $ac_cv_c_const = no; then
  6321. cat >>confdefs.h <<\_ACEOF
  6322. #define const
  6323. _ACEOF
  6324. fi
  6325. { echo "$as_me:$LINENO: checking for inline" >&5
  6326. echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
  6327. if test "${ac_cv_c_inline+set}" = set; then
  6328. echo $ECHO_N "(cached) $ECHO_C" >&6
  6329. else
  6330. ac_cv_c_inline=no
  6331. for ac_kw in inline __inline__ __inline; do
  6332. cat >conftest.$ac_ext <<_ACEOF
  6333. /* confdefs.h. */
  6334. _ACEOF
  6335. cat confdefs.h >>conftest.$ac_ext
  6336. cat >>conftest.$ac_ext <<_ACEOF
  6337. /* end confdefs.h. */
  6338. #ifndef __cplusplus
  6339. typedef int foo_t;
  6340. static $ac_kw foo_t static_foo () {return 0; }
  6341. $ac_kw foo_t foo () {return 0; }
  6342. #endif
  6343. _ACEOF
  6344. rm -f conftest.$ac_objext
  6345. if { (ac_try="$ac_compile"
  6346. case "(($ac_try" in
  6347. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6348. *) ac_try_echo=$ac_try;;
  6349. esac
  6350. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6351. (eval "$ac_compile") 2>conftest.er1
  6352. ac_status=$?
  6353. grep -v '^ *+' conftest.er1 >conftest.err
  6354. rm -f conftest.er1
  6355. cat conftest.err >&5
  6356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6357. (exit $ac_status); } && {
  6358. test -z "$ac_c_werror_flag" ||
  6359. test ! -s conftest.err
  6360. } && test -s conftest.$ac_objext; then
  6361. ac_cv_c_inline=$ac_kw
  6362. else
  6363. echo "$as_me: failed program was:" >&5
  6364. sed 's/^/| /' conftest.$ac_ext >&5
  6365. fi
  6366. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6367. test "$ac_cv_c_inline" != no && break
  6368. done
  6369. fi
  6370. { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6371. echo "${ECHO_T}$ac_cv_c_inline" >&6; }
  6372. case $ac_cv_c_inline in
  6373. inline | yes) ;;
  6374. *)
  6375. case $ac_cv_c_inline in
  6376. no) ac_val=;;
  6377. *) ac_val=$ac_cv_c_inline;;
  6378. esac
  6379. cat >>confdefs.h <<_ACEOF
  6380. #ifndef __cplusplus
  6381. #define inline $ac_val
  6382. #endif
  6383. _ACEOF
  6384. ;;
  6385. esac
  6386. { echo "$as_me:$LINENO: checking for size_t" >&5
  6387. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  6388. if test "${ac_cv_type_size_t+set}" = set; then
  6389. echo $ECHO_N "(cached) $ECHO_C" >&6
  6390. else
  6391. cat >conftest.$ac_ext <<_ACEOF
  6392. /* confdefs.h. */
  6393. _ACEOF
  6394. cat confdefs.h >>conftest.$ac_ext
  6395. cat >>conftest.$ac_ext <<_ACEOF
  6396. /* end confdefs.h. */
  6397. $ac_includes_default
  6398. typedef size_t ac__type_new_;
  6399. int
  6400. main ()
  6401. {
  6402. if ((ac__type_new_ *) 0)
  6403. return 0;
  6404. if (sizeof (ac__type_new_))
  6405. return 0;
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. rm -f conftest.$ac_objext
  6411. if { (ac_try="$ac_compile"
  6412. case "(($ac_try" in
  6413. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6414. *) ac_try_echo=$ac_try;;
  6415. esac
  6416. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6417. (eval "$ac_compile") 2>conftest.er1
  6418. ac_status=$?
  6419. grep -v '^ *+' conftest.er1 >conftest.err
  6420. rm -f conftest.er1
  6421. cat conftest.err >&5
  6422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6423. (exit $ac_status); } && {
  6424. test -z "$ac_c_werror_flag" ||
  6425. test ! -s conftest.err
  6426. } && test -s conftest.$ac_objext; then
  6427. ac_cv_type_size_t=yes
  6428. else
  6429. echo "$as_me: failed program was:" >&5
  6430. sed 's/^/| /' conftest.$ac_ext >&5
  6431. ac_cv_type_size_t=no
  6432. fi
  6433. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6434. fi
  6435. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6436. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  6437. if test $ac_cv_type_size_t = yes; then
  6438. :
  6439. else
  6440. cat >>confdefs.h <<_ACEOF
  6441. #define size_t unsigned int
  6442. _ACEOF
  6443. fi
  6444. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  6445. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  6446. if test "${ac_cv_header_time+set}" = set; then
  6447. echo $ECHO_N "(cached) $ECHO_C" >&6
  6448. else
  6449. cat >conftest.$ac_ext <<_ACEOF
  6450. /* confdefs.h. */
  6451. _ACEOF
  6452. cat confdefs.h >>conftest.$ac_ext
  6453. cat >>conftest.$ac_ext <<_ACEOF
  6454. /* end confdefs.h. */
  6455. #include <sys/types.h>
  6456. #include <sys/time.h>
  6457. #include <time.h>
  6458. int
  6459. main ()
  6460. {
  6461. if ((struct tm *) 0)
  6462. return 0;
  6463. ;
  6464. return 0;
  6465. }
  6466. _ACEOF
  6467. rm -f conftest.$ac_objext
  6468. if { (ac_try="$ac_compile"
  6469. case "(($ac_try" in
  6470. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6471. *) ac_try_echo=$ac_try;;
  6472. esac
  6473. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6474. (eval "$ac_compile") 2>conftest.er1
  6475. ac_status=$?
  6476. grep -v '^ *+' conftest.er1 >conftest.err
  6477. rm -f conftest.er1
  6478. cat conftest.err >&5
  6479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6480. (exit $ac_status); } && {
  6481. test -z "$ac_c_werror_flag" ||
  6482. test ! -s conftest.err
  6483. } && test -s conftest.$ac_objext; then
  6484. ac_cv_header_time=yes
  6485. else
  6486. echo "$as_me: failed program was:" >&5
  6487. sed 's/^/| /' conftest.$ac_ext >&5
  6488. ac_cv_header_time=no
  6489. fi
  6490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6491. fi
  6492. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  6493. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  6494. if test $ac_cv_header_time = yes; then
  6495. cat >>confdefs.h <<\_ACEOF
  6496. #define TIME_WITH_SYS_TIME 1
  6497. _ACEOF
  6498. fi
  6499. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6500. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  6501. if test "${ac_cv_struct_tm+set}" = set; then
  6502. echo $ECHO_N "(cached) $ECHO_C" >&6
  6503. else
  6504. cat >conftest.$ac_ext <<_ACEOF
  6505. /* confdefs.h. */
  6506. _ACEOF
  6507. cat confdefs.h >>conftest.$ac_ext
  6508. cat >>conftest.$ac_ext <<_ACEOF
  6509. /* end confdefs.h. */
  6510. #include <sys/types.h>
  6511. #include <time.h>
  6512. int
  6513. main ()
  6514. {
  6515. struct tm tm;
  6516. int *p = &tm.tm_sec;
  6517. return !p;
  6518. ;
  6519. return 0;
  6520. }
  6521. _ACEOF
  6522. rm -f conftest.$ac_objext
  6523. if { (ac_try="$ac_compile"
  6524. case "(($ac_try" in
  6525. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6526. *) ac_try_echo=$ac_try;;
  6527. esac
  6528. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6529. (eval "$ac_compile") 2>conftest.er1
  6530. ac_status=$?
  6531. grep -v '^ *+' conftest.er1 >conftest.err
  6532. rm -f conftest.er1
  6533. cat conftest.err >&5
  6534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6535. (exit $ac_status); } && {
  6536. test -z "$ac_c_werror_flag" ||
  6537. test ! -s conftest.err
  6538. } && test -s conftest.$ac_objext; then
  6539. ac_cv_struct_tm=time.h
  6540. else
  6541. echo "$as_me: failed program was:" >&5
  6542. sed 's/^/| /' conftest.$ac_ext >&5
  6543. ac_cv_struct_tm=sys/time.h
  6544. fi
  6545. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6546. fi
  6547. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6548. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  6549. if test $ac_cv_struct_tm = sys/time.h; then
  6550. cat >>confdefs.h <<\_ACEOF
  6551. #define TM_IN_SYS_TIME 1
  6552. _ACEOF
  6553. fi
  6554. { echo "$as_me:$LINENO: checking for working volatile" >&5
  6555. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  6556. if test "${ac_cv_c_volatile+set}" = set; then
  6557. echo $ECHO_N "(cached) $ECHO_C" >&6
  6558. else
  6559. cat >conftest.$ac_ext <<_ACEOF
  6560. /* confdefs.h. */
  6561. _ACEOF
  6562. cat confdefs.h >>conftest.$ac_ext
  6563. cat >>conftest.$ac_ext <<_ACEOF
  6564. /* end confdefs.h. */
  6565. int
  6566. main ()
  6567. {
  6568. volatile int x;
  6569. int * volatile y = (int *) 0;
  6570. return !x && !y;
  6571. ;
  6572. return 0;
  6573. }
  6574. _ACEOF
  6575. rm -f conftest.$ac_objext
  6576. if { (ac_try="$ac_compile"
  6577. case "(($ac_try" in
  6578. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6579. *) ac_try_echo=$ac_try;;
  6580. esac
  6581. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6582. (eval "$ac_compile") 2>conftest.er1
  6583. ac_status=$?
  6584. grep -v '^ *+' conftest.er1 >conftest.err
  6585. rm -f conftest.er1
  6586. cat conftest.err >&5
  6587. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6588. (exit $ac_status); } && {
  6589. test -z "$ac_c_werror_flag" ||
  6590. test ! -s conftest.err
  6591. } && test -s conftest.$ac_objext; then
  6592. ac_cv_c_volatile=yes
  6593. else
  6594. echo "$as_me: failed program was:" >&5
  6595. sed 's/^/| /' conftest.$ac_ext >&5
  6596. ac_cv_c_volatile=no
  6597. fi
  6598. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6599. fi
  6600. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6601. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  6602. if test $ac_cv_c_volatile = no; then
  6603. cat >>confdefs.h <<\_ACEOF
  6604. #define volatile
  6605. _ACEOF
  6606. fi
  6607. # Checks for library functions.
  6608. MKINSTALLDIRS=
  6609. if test -n "$ac_aux_dir"; then
  6610. case "$ac_aux_dir" in
  6611. /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
  6612. *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
  6613. esac
  6614. fi
  6615. if test -z "$MKINSTALLDIRS"; then
  6616. MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
  6617. fi
  6618. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  6619. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  6620. # Check whether --enable-nls was given.
  6621. if test "${enable_nls+set}" = set; then
  6622. enableval=$enable_nls; USE_NLS=$enableval
  6623. else
  6624. USE_NLS=yes
  6625. fi
  6626. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  6627. echo "${ECHO_T}$USE_NLS" >&6; }
  6628. # Prepare PATH_SEPARATOR.
  6629. # The user is always right.
  6630. if test "${PATH_SEPARATOR+set}" != set; then
  6631. echo "#! /bin/sh" >conf$$.sh
  6632. echo "exit 0" >>conf$$.sh
  6633. chmod +x conf$$.sh
  6634. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6635. PATH_SEPARATOR=';'
  6636. else
  6637. PATH_SEPARATOR=:
  6638. fi
  6639. rm -f conf$$.sh
  6640. fi
  6641. # Find out how to test for executable files. Don't use a zero-byte file,
  6642. # as systems may use methods other than mode bits to determine executability.
  6643. cat >conf$$.file <<_ASEOF
  6644. #! /bin/sh
  6645. exit 0
  6646. _ASEOF
  6647. chmod +x conf$$.file
  6648. if test -x conf$$.file >/dev/null 2>&1; then
  6649. ac_executable_p="test -x"
  6650. else
  6651. ac_executable_p="test -f"
  6652. fi
  6653. rm -f conf$$.file
  6654. # Extract the first word of "msgfmt", so it can be a program name with args.
  6655. set dummy msgfmt; ac_word=$2
  6656. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6657. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6658. if test "${ac_cv_path_MSGFMT+set}" = set; then
  6659. echo $ECHO_N "(cached) $ECHO_C" >&6
  6660. else
  6661. case "$MSGFMT" in
  6662. [\\/]* | ?:[\\/]*)
  6663. ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
  6664. ;;
  6665. *)
  6666. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6667. for ac_dir in $PATH; do
  6668. IFS="$ac_save_IFS"
  6669. test -z "$ac_dir" && ac_dir=.
  6670. for ac_exec_ext in '' $ac_executable_extensions; do
  6671. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6672. if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
  6673. (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6674. ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
  6675. break 2
  6676. fi
  6677. fi
  6678. done
  6679. done
  6680. IFS="$ac_save_IFS"
  6681. test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
  6682. ;;
  6683. esac
  6684. fi
  6685. MSGFMT="$ac_cv_path_MSGFMT"
  6686. if test "$MSGFMT" != ":"; then
  6687. { echo "$as_me:$LINENO: result: $MSGFMT" >&5
  6688. echo "${ECHO_T}$MSGFMT" >&6; }
  6689. else
  6690. { echo "$as_me:$LINENO: result: no" >&5
  6691. echo "${ECHO_T}no" >&6; }
  6692. fi
  6693. # Extract the first word of "gmsgfmt", so it can be a program name with args.
  6694. set dummy gmsgfmt; ac_word=$2
  6695. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6696. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6697. if test "${ac_cv_path_GMSGFMT+set}" = set; then
  6698. echo $ECHO_N "(cached) $ECHO_C" >&6
  6699. else
  6700. case $GMSGFMT in
  6701. [\\/]* | ?:[\\/]*)
  6702. ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
  6703. ;;
  6704. *)
  6705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6706. for as_dir in $PATH
  6707. do
  6708. IFS=$as_save_IFS
  6709. test -z "$as_dir" && as_dir=.
  6710. for ac_exec_ext in '' $ac_executable_extensions; do
  6711. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6712. ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
  6713. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6714. break 2
  6715. fi
  6716. done
  6717. done
  6718. IFS=$as_save_IFS
  6719. test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
  6720. ;;
  6721. esac
  6722. fi
  6723. GMSGFMT=$ac_cv_path_GMSGFMT
  6724. if test -n "$GMSGFMT"; then
  6725. { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
  6726. echo "${ECHO_T}$GMSGFMT" >&6; }
  6727. else
  6728. { echo "$as_me:$LINENO: result: no" >&5
  6729. echo "${ECHO_T}no" >&6; }
  6730. fi
  6731. # Prepare PATH_SEPARATOR.
  6732. # The user is always right.
  6733. if test "${PATH_SEPARATOR+set}" != set; then
  6734. echo "#! /bin/sh" >conf$$.sh
  6735. echo "exit 0" >>conf$$.sh
  6736. chmod +x conf$$.sh
  6737. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6738. PATH_SEPARATOR=';'
  6739. else
  6740. PATH_SEPARATOR=:
  6741. fi
  6742. rm -f conf$$.sh
  6743. fi
  6744. # Find out how to test for executable files. Don't use a zero-byte file,
  6745. # as systems may use methods other than mode bits to determine executability.
  6746. cat >conf$$.file <<_ASEOF
  6747. #! /bin/sh
  6748. exit 0
  6749. _ASEOF
  6750. chmod +x conf$$.file
  6751. if test -x conf$$.file >/dev/null 2>&1; then
  6752. ac_executable_p="test -x"
  6753. else
  6754. ac_executable_p="test -f"
  6755. fi
  6756. rm -f conf$$.file
  6757. # Extract the first word of "xgettext", so it can be a program name with args.
  6758. set dummy xgettext; ac_word=$2
  6759. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6760. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6761. if test "${ac_cv_path_XGETTEXT+set}" = set; then
  6762. echo $ECHO_N "(cached) $ECHO_C" >&6
  6763. else
  6764. case "$XGETTEXT" in
  6765. [\\/]* | ?:[\\/]*)
  6766. ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
  6767. ;;
  6768. *)
  6769. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6770. for ac_dir in $PATH; do
  6771. IFS="$ac_save_IFS"
  6772. test -z "$ac_dir" && ac_dir=.
  6773. for ac_exec_ext in '' $ac_executable_extensions; do
  6774. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6775. if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6776. (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6777. ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
  6778. break 2
  6779. fi
  6780. fi
  6781. done
  6782. done
  6783. IFS="$ac_save_IFS"
  6784. test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
  6785. ;;
  6786. esac
  6787. fi
  6788. XGETTEXT="$ac_cv_path_XGETTEXT"
  6789. if test "$XGETTEXT" != ":"; then
  6790. { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
  6791. echo "${ECHO_T}$XGETTEXT" >&6; }
  6792. else
  6793. { echo "$as_me:$LINENO: result: no" >&5
  6794. echo "${ECHO_T}no" >&6; }
  6795. fi
  6796. rm -f messages.po
  6797. # Prepare PATH_SEPARATOR.
  6798. # The user is always right.
  6799. if test "${PATH_SEPARATOR+set}" != set; then
  6800. echo "#! /bin/sh" >conf$$.sh
  6801. echo "exit 0" >>conf$$.sh
  6802. chmod +x conf$$.sh
  6803. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  6804. PATH_SEPARATOR=';'
  6805. else
  6806. PATH_SEPARATOR=:
  6807. fi
  6808. rm -f conf$$.sh
  6809. fi
  6810. # Find out how to test for executable files. Don't use a zero-byte file,
  6811. # as systems may use methods other than mode bits to determine executability.
  6812. cat >conf$$.file <<_ASEOF
  6813. #! /bin/sh
  6814. exit 0
  6815. _ASEOF
  6816. chmod +x conf$$.file
  6817. if test -x conf$$.file >/dev/null 2>&1; then
  6818. ac_executable_p="test -x"
  6819. else
  6820. ac_executable_p="test -f"
  6821. fi
  6822. rm -f conf$$.file
  6823. # Extract the first word of "msgmerge", so it can be a program name with args.
  6824. set dummy msgmerge; ac_word=$2
  6825. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  6826. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  6827. if test "${ac_cv_path_MSGMERGE+set}" = set; then
  6828. echo $ECHO_N "(cached) $ECHO_C" >&6
  6829. else
  6830. case "$MSGMERGE" in
  6831. [\\/]* | ?:[\\/]*)
  6832. ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
  6833. ;;
  6834. *)
  6835. ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
  6836. for ac_dir in $PATH; do
  6837. IFS="$ac_save_IFS"
  6838. test -z "$ac_dir" && ac_dir=.
  6839. for ac_exec_ext in '' $ac_executable_extensions; do
  6840. if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
  6841. if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
  6842. ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
  6843. break 2
  6844. fi
  6845. fi
  6846. done
  6847. done
  6848. IFS="$ac_save_IFS"
  6849. test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
  6850. ;;
  6851. esac
  6852. fi
  6853. MSGMERGE="$ac_cv_path_MSGMERGE"
  6854. if test "$MSGMERGE" != ":"; then
  6855. { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
  6856. echo "${ECHO_T}$MSGMERGE" >&6; }
  6857. else
  6858. { echo "$as_me:$LINENO: result: no" >&5
  6859. echo "${ECHO_T}no" >&6; }
  6860. fi
  6861. if test "$GMSGFMT" != ":"; then
  6862. if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
  6863. (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6864. : ;
  6865. else
  6866. GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
  6867. { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
  6868. echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
  6869. GMSGFMT=":"
  6870. fi
  6871. fi
  6872. if test "$XGETTEXT" != ":"; then
  6873. if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
  6874. (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
  6875. : ;
  6876. else
  6877. { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
  6878. echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
  6879. XGETTEXT=":"
  6880. fi
  6881. rm -f messages.po
  6882. fi
  6883. ac_config_commands="$ac_config_commands default-1"
  6884. { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  6885. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
  6886. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  6887. echo $ECHO_N "(cached) $ECHO_C" >&6
  6888. else
  6889. ac_check_lib_save_LIBS=$LIBS
  6890. LIBS="-lcposix $LIBS"
  6891. cat >conftest.$ac_ext <<_ACEOF
  6892. /* confdefs.h. */
  6893. _ACEOF
  6894. cat confdefs.h >>conftest.$ac_ext
  6895. cat >>conftest.$ac_ext <<_ACEOF
  6896. /* end confdefs.h. */
  6897. /* Override any GCC internal prototype to avoid an error.
  6898. Use char because int might match the return type of a GCC
  6899. builtin and then its argument prototype would still apply. */
  6900. #ifdef __cplusplus
  6901. extern "C"
  6902. #endif
  6903. char strerror ();
  6904. int
  6905. main ()
  6906. {
  6907. return strerror ();
  6908. ;
  6909. return 0;
  6910. }
  6911. _ACEOF
  6912. rm -f conftest.$ac_objext conftest$ac_exeext
  6913. if { (ac_try="$ac_link"
  6914. case "(($ac_try" in
  6915. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6916. *) ac_try_echo=$ac_try;;
  6917. esac
  6918. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6919. (eval "$ac_link") 2>conftest.er1
  6920. ac_status=$?
  6921. grep -v '^ *+' conftest.er1 >conftest.err
  6922. rm -f conftest.er1
  6923. cat conftest.err >&5
  6924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6925. (exit $ac_status); } && {
  6926. test -z "$ac_c_werror_flag" ||
  6927. test ! -s conftest.err
  6928. } && test -s conftest$ac_exeext &&
  6929. $as_test_x conftest$ac_exeext; then
  6930. ac_cv_lib_cposix_strerror=yes
  6931. else
  6932. echo "$as_me: failed program was:" >&5
  6933. sed 's/^/| /' conftest.$ac_ext >&5
  6934. ac_cv_lib_cposix_strerror=no
  6935. fi
  6936. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  6937. conftest$ac_exeext conftest.$ac_ext
  6938. LIBS=$ac_check_lib_save_LIBS
  6939. fi
  6940. { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  6941. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
  6942. if test $ac_cv_lib_cposix_strerror = yes; then
  6943. LIBS="$LIBS -lcposix"
  6944. fi
  6945. { echo "$as_me:$LINENO: checking for off_t" >&5
  6946. echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
  6947. if test "${ac_cv_type_off_t+set}" = set; then
  6948. echo $ECHO_N "(cached) $ECHO_C" >&6
  6949. else
  6950. cat >conftest.$ac_ext <<_ACEOF
  6951. /* confdefs.h. */
  6952. _ACEOF
  6953. cat confdefs.h >>conftest.$ac_ext
  6954. cat >>conftest.$ac_ext <<_ACEOF
  6955. /* end confdefs.h. */
  6956. $ac_includes_default
  6957. typedef off_t ac__type_new_;
  6958. int
  6959. main ()
  6960. {
  6961. if ((ac__type_new_ *) 0)
  6962. return 0;
  6963. if (sizeof (ac__type_new_))
  6964. return 0;
  6965. ;
  6966. return 0;
  6967. }
  6968. _ACEOF
  6969. rm -f conftest.$ac_objext
  6970. if { (ac_try="$ac_compile"
  6971. case "(($ac_try" in
  6972. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6973. *) ac_try_echo=$ac_try;;
  6974. esac
  6975. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6976. (eval "$ac_compile") 2>conftest.er1
  6977. ac_status=$?
  6978. grep -v '^ *+' conftest.er1 >conftest.err
  6979. rm -f conftest.er1
  6980. cat conftest.err >&5
  6981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6982. (exit $ac_status); } && {
  6983. test -z "$ac_c_werror_flag" ||
  6984. test ! -s conftest.err
  6985. } && test -s conftest.$ac_objext; then
  6986. ac_cv_type_off_t=yes
  6987. else
  6988. echo "$as_me: failed program was:" >&5
  6989. sed 's/^/| /' conftest.$ac_ext >&5
  6990. ac_cv_type_off_t=no
  6991. fi
  6992. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6993. fi
  6994. { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
  6995. echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
  6996. if test $ac_cv_type_off_t = yes; then
  6997. :
  6998. else
  6999. cat >>confdefs.h <<_ACEOF
  7000. #define off_t long int
  7001. _ACEOF
  7002. fi
  7003. for ac_header in stdlib.h unistd.h
  7004. do
  7005. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7006. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7007. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7008. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7009. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7010. echo $ECHO_N "(cached) $ECHO_C" >&6
  7011. fi
  7012. ac_res=`eval echo '${'$as_ac_Header'}'`
  7013. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7014. echo "${ECHO_T}$ac_res" >&6; }
  7015. else
  7016. # Is the header compilable?
  7017. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7018. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7019. cat >conftest.$ac_ext <<_ACEOF
  7020. /* confdefs.h. */
  7021. _ACEOF
  7022. cat confdefs.h >>conftest.$ac_ext
  7023. cat >>conftest.$ac_ext <<_ACEOF
  7024. /* end confdefs.h. */
  7025. $ac_includes_default
  7026. #include <$ac_header>
  7027. _ACEOF
  7028. rm -f conftest.$ac_objext
  7029. if { (ac_try="$ac_compile"
  7030. case "(($ac_try" in
  7031. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7032. *) ac_try_echo=$ac_try;;
  7033. esac
  7034. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7035. (eval "$ac_compile") 2>conftest.er1
  7036. ac_status=$?
  7037. grep -v '^ *+' conftest.er1 >conftest.err
  7038. rm -f conftest.er1
  7039. cat conftest.err >&5
  7040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7041. (exit $ac_status); } && {
  7042. test -z "$ac_c_werror_flag" ||
  7043. test ! -s conftest.err
  7044. } && test -s conftest.$ac_objext; then
  7045. ac_header_compiler=yes
  7046. else
  7047. echo "$as_me: failed program was:" >&5
  7048. sed 's/^/| /' conftest.$ac_ext >&5
  7049. ac_header_compiler=no
  7050. fi
  7051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7052. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7053. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7054. # Is the header present?
  7055. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7056. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. #include <$ac_header>
  7064. _ACEOF
  7065. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7066. case "(($ac_try" in
  7067. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7068. *) ac_try_echo=$ac_try;;
  7069. esac
  7070. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7071. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7072. ac_status=$?
  7073. grep -v '^ *+' conftest.er1 >conftest.err
  7074. rm -f conftest.er1
  7075. cat conftest.err >&5
  7076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7077. (exit $ac_status); } >/dev/null && {
  7078. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  7079. test ! -s conftest.err
  7080. }; then
  7081. ac_header_preproc=yes
  7082. else
  7083. echo "$as_me: failed program was:" >&5
  7084. sed 's/^/| /' conftest.$ac_ext >&5
  7085. ac_header_preproc=no
  7086. fi
  7087. rm -f conftest.err conftest.$ac_ext
  7088. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7089. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7090. # So? What about this header?
  7091. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7092. yes:no: )
  7093. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7094. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7095. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7096. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7097. ac_header_preproc=yes
  7098. ;;
  7099. no:yes:* )
  7100. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7101. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7102. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7103. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7104. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7105. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7106. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7107. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7108. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7109. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7110. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7111. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7112. ( cat <<\_ASBOX
  7113. ## ----------------------------------------------- ##
  7114. ## Report this to t-tujikawa@users.sourceforge.net ##
  7115. ## ----------------------------------------------- ##
  7116. _ASBOX
  7117. ) | sed "s/^/$as_me: WARNING: /" >&2
  7118. ;;
  7119. esac
  7120. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7121. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7122. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7123. echo $ECHO_N "(cached) $ECHO_C" >&6
  7124. else
  7125. eval "$as_ac_Header=\$ac_header_preproc"
  7126. fi
  7127. ac_res=`eval echo '${'$as_ac_Header'}'`
  7128. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7129. echo "${ECHO_T}$ac_res" >&6; }
  7130. fi
  7131. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7132. cat >>confdefs.h <<_ACEOF
  7133. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7134. _ACEOF
  7135. fi
  7136. done
  7137. for ac_func in getpagesize
  7138. do
  7139. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7140. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7141. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7142. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7143. echo $ECHO_N "(cached) $ECHO_C" >&6
  7144. else
  7145. cat >conftest.$ac_ext <<_ACEOF
  7146. /* confdefs.h. */
  7147. _ACEOF
  7148. cat confdefs.h >>conftest.$ac_ext
  7149. cat >>conftest.$ac_ext <<_ACEOF
  7150. /* end confdefs.h. */
  7151. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7152. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7153. #define $ac_func innocuous_$ac_func
  7154. /* System header to define __stub macros and hopefully few prototypes,
  7155. which can conflict with char $ac_func (); below.
  7156. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7157. <limits.h> exists even on freestanding compilers. */
  7158. #ifdef __STDC__
  7159. # include <limits.h>
  7160. #else
  7161. # include <assert.h>
  7162. #endif
  7163. #undef $ac_func
  7164. /* Override any GCC internal prototype to avoid an error.
  7165. Use char because int might match the return type of a GCC
  7166. builtin and then its argument prototype would still apply. */
  7167. #ifdef __cplusplus
  7168. extern "C"
  7169. #endif
  7170. char $ac_func ();
  7171. /* The GNU C library defines this for functions which it implements
  7172. to always fail with ENOSYS. Some functions are actually named
  7173. something starting with __ and the normal name is an alias. */
  7174. #if defined __stub_$ac_func || defined __stub___$ac_func
  7175. choke me
  7176. #endif
  7177. int
  7178. main ()
  7179. {
  7180. return $ac_func ();
  7181. ;
  7182. return 0;
  7183. }
  7184. _ACEOF
  7185. rm -f conftest.$ac_objext conftest$ac_exeext
  7186. if { (ac_try="$ac_link"
  7187. case "(($ac_try" in
  7188. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7189. *) ac_try_echo=$ac_try;;
  7190. esac
  7191. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7192. (eval "$ac_link") 2>conftest.er1
  7193. ac_status=$?
  7194. grep -v '^ *+' conftest.er1 >conftest.err
  7195. rm -f conftest.er1
  7196. cat conftest.err >&5
  7197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7198. (exit $ac_status); } && {
  7199. test -z "$ac_c_werror_flag" ||
  7200. test ! -s conftest.err
  7201. } && test -s conftest$ac_exeext &&
  7202. $as_test_x conftest$ac_exeext; then
  7203. eval "$as_ac_var=yes"
  7204. else
  7205. echo "$as_me: failed program was:" >&5
  7206. sed 's/^/| /' conftest.$ac_ext >&5
  7207. eval "$as_ac_var=no"
  7208. fi
  7209. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7210. conftest$ac_exeext conftest.$ac_ext
  7211. fi
  7212. ac_res=`eval echo '${'$as_ac_var'}'`
  7213. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7214. echo "${ECHO_T}$ac_res" >&6; }
  7215. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7216. cat >>confdefs.h <<_ACEOF
  7217. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7218. _ACEOF
  7219. fi
  7220. done
  7221. { echo "$as_me:$LINENO: checking for working mmap" >&5
  7222. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  7223. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  7224. echo $ECHO_N "(cached) $ECHO_C" >&6
  7225. else
  7226. if test "$cross_compiling" = yes; then
  7227. ac_cv_func_mmap_fixed_mapped=no
  7228. else
  7229. cat >conftest.$ac_ext <<_ACEOF
  7230. /* confdefs.h. */
  7231. _ACEOF
  7232. cat confdefs.h >>conftest.$ac_ext
  7233. cat >>conftest.$ac_ext <<_ACEOF
  7234. /* end confdefs.h. */
  7235. $ac_includes_default
  7236. /* malloc might have been renamed as rpl_malloc. */
  7237. #undef malloc
  7238. /* Thanks to Mike Haertel and Jim Avera for this test.
  7239. Here is a matrix of mmap possibilities:
  7240. mmap private not fixed
  7241. mmap private fixed at somewhere currently unmapped
  7242. mmap private fixed at somewhere already mapped
  7243. mmap shared not fixed
  7244. mmap shared fixed at somewhere currently unmapped
  7245. mmap shared fixed at somewhere already mapped
  7246. For private mappings, we should verify that changes cannot be read()
  7247. back from the file, nor mmap's back from the file at a different
  7248. address. (There have been systems where private was not correctly
  7249. implemented like the infamous i386 svr4.0, and systems where the
  7250. VM page cache was not coherent with the file system buffer cache
  7251. like early versions of FreeBSD and possibly contemporary NetBSD.)
  7252. For shared mappings, we should conversely verify that changes get
  7253. propagated back to all the places they're supposed to be.
  7254. Grep wants private fixed already mapped.
  7255. The main things grep needs to know about mmap are:
  7256. * does it exist and is it safe to write into the mmap'd area
  7257. * how to use it (BSD variants) */
  7258. #include <fcntl.h>
  7259. #include <sys/mman.h>
  7260. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  7261. char *malloc ();
  7262. #endif
  7263. /* This mess was copied from the GNU getpagesize.h. */
  7264. #ifndef HAVE_GETPAGESIZE
  7265. /* Assume that all systems that can run configure have sys/param.h. */
  7266. # ifndef HAVE_SYS_PARAM_H
  7267. # define HAVE_SYS_PARAM_H 1
  7268. # endif
  7269. # ifdef _SC_PAGESIZE
  7270. # define getpagesize() sysconf(_SC_PAGESIZE)
  7271. # else /* no _SC_PAGESIZE */
  7272. # ifdef HAVE_SYS_PARAM_H
  7273. # include <sys/param.h>
  7274. # ifdef EXEC_PAGESIZE
  7275. # define getpagesize() EXEC_PAGESIZE
  7276. # else /* no EXEC_PAGESIZE */
  7277. # ifdef NBPG
  7278. # define getpagesize() NBPG * CLSIZE
  7279. # ifndef CLSIZE
  7280. # define CLSIZE 1
  7281. # endif /* no CLSIZE */
  7282. # else /* no NBPG */
  7283. # ifdef NBPC
  7284. # define getpagesize() NBPC
  7285. # else /* no NBPC */
  7286. # ifdef PAGESIZE
  7287. # define getpagesize() PAGESIZE
  7288. # endif /* PAGESIZE */
  7289. # endif /* no NBPC */
  7290. # endif /* no NBPG */
  7291. # endif /* no EXEC_PAGESIZE */
  7292. # else /* no HAVE_SYS_PARAM_H */
  7293. # define getpagesize() 8192 /* punt totally */
  7294. # endif /* no HAVE_SYS_PARAM_H */
  7295. # endif /* no _SC_PAGESIZE */
  7296. #endif /* no HAVE_GETPAGESIZE */
  7297. int
  7298. main ()
  7299. {
  7300. char *data, *data2, *data3;
  7301. int i, pagesize;
  7302. int fd;
  7303. pagesize = getpagesize ();
  7304. /* First, make a file with some known garbage in it. */
  7305. data = (char *) malloc (pagesize);
  7306. if (!data)
  7307. return 1;
  7308. for (i = 0; i < pagesize; ++i)
  7309. *(data + i) = rand ();
  7310. umask (0);
  7311. fd = creat ("conftest.mmap", 0600);
  7312. if (fd < 0)
  7313. return 1;
  7314. if (write (fd, data, pagesize) != pagesize)
  7315. return 1;
  7316. close (fd);
  7317. /* Next, try to mmap the file at a fixed address which already has
  7318. something else allocated at it. If we can, also make sure that
  7319. we see the same garbage. */
  7320. fd = open ("conftest.mmap", O_RDWR);
  7321. if (fd < 0)
  7322. return 1;
  7323. data2 = (char *) malloc (2 * pagesize);
  7324. if (!data2)
  7325. return 1;
  7326. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  7327. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  7328. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  7329. return 1;
  7330. for (i = 0; i < pagesize; ++i)
  7331. if (*(data + i) != *(data2 + i))
  7332. return 1;
  7333. /* Finally, make sure that changes to the mapped area do not
  7334. percolate back to the file as seen by read(). (This is a bug on
  7335. some variants of i386 svr4.0.) */
  7336. for (i = 0; i < pagesize; ++i)
  7337. *(data2 + i) = *(data2 + i) + 1;
  7338. data3 = (char *) malloc (pagesize);
  7339. if (!data3)
  7340. return 1;
  7341. if (read (fd, data3, pagesize) != pagesize)
  7342. return 1;
  7343. for (i = 0; i < pagesize; ++i)
  7344. if (*(data + i) != *(data3 + i))
  7345. return 1;
  7346. close (fd);
  7347. return 0;
  7348. }
  7349. _ACEOF
  7350. rm -f conftest$ac_exeext
  7351. if { (ac_try="$ac_link"
  7352. case "(($ac_try" in
  7353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7354. *) ac_try_echo=$ac_try;;
  7355. esac
  7356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7357. (eval "$ac_link") 2>&5
  7358. ac_status=$?
  7359. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7360. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7361. { (case "(($ac_try" in
  7362. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7363. *) ac_try_echo=$ac_try;;
  7364. esac
  7365. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7366. (eval "$ac_try") 2>&5
  7367. ac_status=$?
  7368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7369. (exit $ac_status); }; }; then
  7370. ac_cv_func_mmap_fixed_mapped=yes
  7371. else
  7372. echo "$as_me: program exited with status $ac_status" >&5
  7373. echo "$as_me: failed program was:" >&5
  7374. sed 's/^/| /' conftest.$ac_ext >&5
  7375. ( exit $ac_status )
  7376. ac_cv_func_mmap_fixed_mapped=no
  7377. fi
  7378. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7379. fi
  7380. fi
  7381. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  7382. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  7383. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  7384. cat >>confdefs.h <<\_ACEOF
  7385. #define HAVE_MMAP 1
  7386. _ACEOF
  7387. fi
  7388. rm -f conftest.mmap
  7389. { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
  7390. echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
  7391. if test "${ac_cv_gnu_library_2_1+set}" = set; then
  7392. echo $ECHO_N "(cached) $ECHO_C" >&6
  7393. else
  7394. cat >conftest.$ac_ext <<_ACEOF
  7395. /* confdefs.h. */
  7396. _ACEOF
  7397. cat confdefs.h >>conftest.$ac_ext
  7398. cat >>conftest.$ac_ext <<_ACEOF
  7399. /* end confdefs.h. */
  7400. #include <features.h>
  7401. #ifdef __GNU_LIBRARY__
  7402. #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
  7403. Lucky GNU user
  7404. #endif
  7405. #endif
  7406. _ACEOF
  7407. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7408. $EGREP "Lucky GNU user" >/dev/null 2>&1; then
  7409. ac_cv_gnu_library_2_1=yes
  7410. else
  7411. ac_cv_gnu_library_2_1=no
  7412. fi
  7413. rm -f conftest*
  7414. fi
  7415. { echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
  7416. echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
  7417. GLIBC21="$ac_cv_gnu_library_2_1"
  7418. { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
  7419. echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
  7420. if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
  7421. echo $ECHO_N "(cached) $ECHO_C" >&6
  7422. else
  7423. if test "$cross_compiling" = yes; then
  7424. # Guess based on the CPU.
  7425. case "$host_cpu" in
  7426. alpha* | i3456786 | m68k | s390*)
  7427. gt_cv_int_divbyzero_sigfpe="guessing yes";;
  7428. *)
  7429. gt_cv_int_divbyzero_sigfpe="guessing no";;
  7430. esac
  7431. else
  7432. cat >conftest.$ac_ext <<_ACEOF
  7433. /* confdefs.h. */
  7434. _ACEOF
  7435. cat confdefs.h >>conftest.$ac_ext
  7436. cat >>conftest.$ac_ext <<_ACEOF
  7437. /* end confdefs.h. */
  7438. #include <stdlib.h>
  7439. #include <signal.h>
  7440. static void
  7441. #ifdef __cplusplus
  7442. sigfpe_handler (int sig)
  7443. #else
  7444. sigfpe_handler (sig) int sig;
  7445. #endif
  7446. {
  7447. /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
  7448. exit (sig != SIGFPE);
  7449. }
  7450. int x = 1;
  7451. int y = 0;
  7452. int z;
  7453. int nan;
  7454. int main ()
  7455. {
  7456. signal (SIGFPE, sigfpe_handler);
  7457. /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
  7458. #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
  7459. signal (SIGTRAP, sigfpe_handler);
  7460. #endif
  7461. /* Linux/SPARC yields signal SIGILL. */
  7462. #if defined (__sparc__) && defined (__linux__)
  7463. signal (SIGILL, sigfpe_handler);
  7464. #endif
  7465. z = x / y;
  7466. nan = y / y;
  7467. exit (1);
  7468. }
  7469. _ACEOF
  7470. rm -f conftest$ac_exeext
  7471. if { (ac_try="$ac_link"
  7472. case "(($ac_try" in
  7473. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7474. *) ac_try_echo=$ac_try;;
  7475. esac
  7476. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7477. (eval "$ac_link") 2>&5
  7478. ac_status=$?
  7479. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7480. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7481. { (case "(($ac_try" in
  7482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7483. *) ac_try_echo=$ac_try;;
  7484. esac
  7485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7486. (eval "$ac_try") 2>&5
  7487. ac_status=$?
  7488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7489. (exit $ac_status); }; }; then
  7490. gt_cv_int_divbyzero_sigfpe=yes
  7491. else
  7492. echo "$as_me: program exited with status $ac_status" >&5
  7493. echo "$as_me: failed program was:" >&5
  7494. sed 's/^/| /' conftest.$ac_ext >&5
  7495. ( exit $ac_status )
  7496. gt_cv_int_divbyzero_sigfpe=no
  7497. fi
  7498. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7499. fi
  7500. fi
  7501. { echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
  7502. echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
  7503. case "$gt_cv_int_divbyzero_sigfpe" in
  7504. *yes) value=1;;
  7505. *) value=0;;
  7506. esac
  7507. cat >>confdefs.h <<_ACEOF
  7508. #define INTDIV0_RAISES_SIGFPE $value
  7509. _ACEOF
  7510. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7511. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7512. if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
  7513. echo $ECHO_N "(cached) $ECHO_C" >&6
  7514. else
  7515. cat >conftest.$ac_ext <<_ACEOF
  7516. /* confdefs.h. */
  7517. _ACEOF
  7518. cat confdefs.h >>conftest.$ac_ext
  7519. cat >>conftest.$ac_ext <<_ACEOF
  7520. /* end confdefs.h. */
  7521. #include <sys/types.h>
  7522. #include <inttypes.h>
  7523. int
  7524. main ()
  7525. {
  7526. uintmax_t i = (uintmax_t) -1;
  7527. ;
  7528. return 0;
  7529. }
  7530. _ACEOF
  7531. rm -f conftest.$ac_objext
  7532. if { (ac_try="$ac_compile"
  7533. case "(($ac_try" in
  7534. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7535. *) ac_try_echo=$ac_try;;
  7536. esac
  7537. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7538. (eval "$ac_compile") 2>conftest.er1
  7539. ac_status=$?
  7540. grep -v '^ *+' conftest.er1 >conftest.err
  7541. rm -f conftest.er1
  7542. cat conftest.err >&5
  7543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7544. (exit $ac_status); } && {
  7545. test -z "$ac_c_werror_flag" ||
  7546. test ! -s conftest.err
  7547. } && test -s conftest.$ac_objext; then
  7548. jm_ac_cv_header_inttypes_h=yes
  7549. else
  7550. echo "$as_me: failed program was:" >&5
  7551. sed 's/^/| /' conftest.$ac_ext >&5
  7552. jm_ac_cv_header_inttypes_h=no
  7553. fi
  7554. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7555. fi
  7556. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
  7557. echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
  7558. if test $jm_ac_cv_header_inttypes_h = yes; then
  7559. cat >>confdefs.h <<_ACEOF
  7560. #define HAVE_INTTYPES_H_WITH_UINTMAX 1
  7561. _ACEOF
  7562. fi
  7563. { echo "$as_me:$LINENO: checking for stdint.h" >&5
  7564. echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
  7565. if test "${jm_ac_cv_header_stdint_h+set}" = set; then
  7566. echo $ECHO_N "(cached) $ECHO_C" >&6
  7567. else
  7568. cat >conftest.$ac_ext <<_ACEOF
  7569. /* confdefs.h. */
  7570. _ACEOF
  7571. cat confdefs.h >>conftest.$ac_ext
  7572. cat >>conftest.$ac_ext <<_ACEOF
  7573. /* end confdefs.h. */
  7574. #include <sys/types.h>
  7575. #include <stdint.h>
  7576. int
  7577. main ()
  7578. {
  7579. uintmax_t i = (uintmax_t) -1;
  7580. ;
  7581. return 0;
  7582. }
  7583. _ACEOF
  7584. rm -f conftest.$ac_objext
  7585. if { (ac_try="$ac_compile"
  7586. case "(($ac_try" in
  7587. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7588. *) ac_try_echo=$ac_try;;
  7589. esac
  7590. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7591. (eval "$ac_compile") 2>conftest.er1
  7592. ac_status=$?
  7593. grep -v '^ *+' conftest.er1 >conftest.err
  7594. rm -f conftest.er1
  7595. cat conftest.err >&5
  7596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7597. (exit $ac_status); } && {
  7598. test -z "$ac_c_werror_flag" ||
  7599. test ! -s conftest.err
  7600. } && test -s conftest.$ac_objext; then
  7601. jm_ac_cv_header_stdint_h=yes
  7602. else
  7603. echo "$as_me: failed program was:" >&5
  7604. sed 's/^/| /' conftest.$ac_ext >&5
  7605. jm_ac_cv_header_stdint_h=no
  7606. fi
  7607. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7608. fi
  7609. { echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
  7610. echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
  7611. if test $jm_ac_cv_header_stdint_h = yes; then
  7612. cat >>confdefs.h <<_ACEOF
  7613. #define HAVE_STDINT_H_WITH_UINTMAX 1
  7614. _ACEOF
  7615. fi
  7616. { echo "$as_me:$LINENO: checking for unsigned long long" >&5
  7617. echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
  7618. if test "${ac_cv_type_unsigned_long_long+set}" = set; then
  7619. echo $ECHO_N "(cached) $ECHO_C" >&6
  7620. else
  7621. cat >conftest.$ac_ext <<_ACEOF
  7622. /* confdefs.h. */
  7623. _ACEOF
  7624. cat confdefs.h >>conftest.$ac_ext
  7625. cat >>conftest.$ac_ext <<_ACEOF
  7626. /* end confdefs.h. */
  7627. unsigned long long ull = 1; int i = 63;
  7628. int
  7629. main ()
  7630. {
  7631. unsigned long long ullmax = (unsigned long long) -1;
  7632. return ull << i | ull >> i | ullmax / ull | ullmax % ull;
  7633. ;
  7634. return 0;
  7635. }
  7636. _ACEOF
  7637. rm -f conftest.$ac_objext conftest$ac_exeext
  7638. if { (ac_try="$ac_link"
  7639. case "(($ac_try" in
  7640. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7641. *) ac_try_echo=$ac_try;;
  7642. esac
  7643. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7644. (eval "$ac_link") 2>conftest.er1
  7645. ac_status=$?
  7646. grep -v '^ *+' conftest.er1 >conftest.err
  7647. rm -f conftest.er1
  7648. cat conftest.err >&5
  7649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7650. (exit $ac_status); } && {
  7651. test -z "$ac_c_werror_flag" ||
  7652. test ! -s conftest.err
  7653. } && test -s conftest$ac_exeext &&
  7654. $as_test_x conftest$ac_exeext; then
  7655. ac_cv_type_unsigned_long_long=yes
  7656. else
  7657. echo "$as_me: failed program was:" >&5
  7658. sed 's/^/| /' conftest.$ac_ext >&5
  7659. ac_cv_type_unsigned_long_long=no
  7660. fi
  7661. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7662. conftest$ac_exeext conftest.$ac_ext
  7663. fi
  7664. { echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
  7665. echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
  7666. if test $ac_cv_type_unsigned_long_long = yes; then
  7667. cat >>confdefs.h <<\_ACEOF
  7668. #define HAVE_UNSIGNED_LONG_LONG 1
  7669. _ACEOF
  7670. fi
  7671. if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
  7672. test $ac_cv_type_unsigned_long_long = yes \
  7673. && ac_type='unsigned long long' \
  7674. || ac_type='unsigned long'
  7675. cat >>confdefs.h <<_ACEOF
  7676. #define uintmax_t $ac_type
  7677. _ACEOF
  7678. else
  7679. cat >>confdefs.h <<\_ACEOF
  7680. #define HAVE_UINTMAX_T 1
  7681. _ACEOF
  7682. fi
  7683. { echo "$as_me:$LINENO: checking for inttypes.h" >&5
  7684. echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
  7685. if test "${gt_cv_header_inttypes_h+set}" = set; then
  7686. echo $ECHO_N "(cached) $ECHO_C" >&6
  7687. else
  7688. cat >conftest.$ac_ext <<_ACEOF
  7689. /* confdefs.h. */
  7690. _ACEOF
  7691. cat confdefs.h >>conftest.$ac_ext
  7692. cat >>conftest.$ac_ext <<_ACEOF
  7693. /* end confdefs.h. */
  7694. #include <sys/types.h>
  7695. #include <inttypes.h>
  7696. int
  7697. main ()
  7698. {
  7699. ;
  7700. return 0;
  7701. }
  7702. _ACEOF
  7703. rm -f conftest.$ac_objext
  7704. if { (ac_try="$ac_compile"
  7705. case "(($ac_try" in
  7706. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7707. *) ac_try_echo=$ac_try;;
  7708. esac
  7709. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7710. (eval "$ac_compile") 2>conftest.er1
  7711. ac_status=$?
  7712. grep -v '^ *+' conftest.er1 >conftest.err
  7713. rm -f conftest.er1
  7714. cat conftest.err >&5
  7715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7716. (exit $ac_status); } && {
  7717. test -z "$ac_c_werror_flag" ||
  7718. test ! -s conftest.err
  7719. } && test -s conftest.$ac_objext; then
  7720. gt_cv_header_inttypes_h=yes
  7721. else
  7722. echo "$as_me: failed program was:" >&5
  7723. sed 's/^/| /' conftest.$ac_ext >&5
  7724. gt_cv_header_inttypes_h=no
  7725. fi
  7726. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7727. fi
  7728. { echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
  7729. echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
  7730. if test $gt_cv_header_inttypes_h = yes; then
  7731. cat >>confdefs.h <<_ACEOF
  7732. #define HAVE_INTTYPES_H 1
  7733. _ACEOF
  7734. fi
  7735. if test $gt_cv_header_inttypes_h = yes; then
  7736. { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
  7737. echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
  7738. if test "${gt_cv_inttypes_pri_broken+set}" = set; then
  7739. echo $ECHO_N "(cached) $ECHO_C" >&6
  7740. else
  7741. cat >conftest.$ac_ext <<_ACEOF
  7742. /* confdefs.h. */
  7743. _ACEOF
  7744. cat confdefs.h >>conftest.$ac_ext
  7745. cat >>conftest.$ac_ext <<_ACEOF
  7746. /* end confdefs.h. */
  7747. #include <inttypes.h>
  7748. #ifdef PRId32
  7749. char *p = PRId32;
  7750. #endif
  7751. int
  7752. main ()
  7753. {
  7754. ;
  7755. return 0;
  7756. }
  7757. _ACEOF
  7758. rm -f conftest.$ac_objext
  7759. if { (ac_try="$ac_compile"
  7760. case "(($ac_try" in
  7761. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7762. *) ac_try_echo=$ac_try;;
  7763. esac
  7764. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7765. (eval "$ac_compile") 2>conftest.er1
  7766. ac_status=$?
  7767. grep -v '^ *+' conftest.er1 >conftest.err
  7768. rm -f conftest.er1
  7769. cat conftest.err >&5
  7770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7771. (exit $ac_status); } && {
  7772. test -z "$ac_c_werror_flag" ||
  7773. test ! -s conftest.err
  7774. } && test -s conftest.$ac_objext; then
  7775. gt_cv_inttypes_pri_broken=no
  7776. else
  7777. echo "$as_me: failed program was:" >&5
  7778. sed 's/^/| /' conftest.$ac_ext >&5
  7779. gt_cv_inttypes_pri_broken=yes
  7780. fi
  7781. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7782. fi
  7783. { echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
  7784. echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
  7785. fi
  7786. if test "$gt_cv_inttypes_pri_broken" = yes; then
  7787. cat >>confdefs.h <<_ACEOF
  7788. #define PRI_MACROS_BROKEN 1
  7789. _ACEOF
  7790. fi
  7791. if test "X$prefix" = "XNONE"; then
  7792. acl_final_prefix="$ac_default_prefix"
  7793. else
  7794. acl_final_prefix="$prefix"
  7795. fi
  7796. if test "X$exec_prefix" = "XNONE"; then
  7797. acl_final_exec_prefix='${prefix}'
  7798. else
  7799. acl_final_exec_prefix="$exec_prefix"
  7800. fi
  7801. acl_save_prefix="$prefix"
  7802. prefix="$acl_final_prefix"
  7803. eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  7804. prefix="$acl_save_prefix"
  7805. # Check whether --with-gnu-ld was given.
  7806. if test "${with_gnu_ld+set}" = set; then
  7807. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  7808. else
  7809. with_gnu_ld=no
  7810. fi
  7811. # Prepare PATH_SEPARATOR.
  7812. # The user is always right.
  7813. if test "${PATH_SEPARATOR+set}" != set; then
  7814. echo "#! /bin/sh" >conf$$.sh
  7815. echo "exit 0" >>conf$$.sh
  7816. chmod +x conf$$.sh
  7817. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7818. PATH_SEPARATOR=';'
  7819. else
  7820. PATH_SEPARATOR=:
  7821. fi
  7822. rm -f conf$$.sh
  7823. fi
  7824. ac_prog=ld
  7825. if test "$GCC" = yes; then
  7826. # Check if gcc -print-prog-name=ld gives a path.
  7827. { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  7828. echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
  7829. case $host in
  7830. *-*-mingw*)
  7831. # gcc leaves a trailing carriage return which upsets mingw
  7832. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  7833. *)
  7834. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  7835. esac
  7836. case $ac_prog in
  7837. # Accept absolute paths.
  7838. [\\/]* | [A-Za-z]:[\\/]*)
  7839. re_direlt='/[^/][^/]*/\.\./'
  7840. # Canonicalize the path of ld
  7841. ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  7842. while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  7843. ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  7844. done
  7845. test -z "$LD" && LD="$ac_prog"
  7846. ;;
  7847. "")
  7848. # If it fails, then pretend we aren't using GCC.
  7849. ac_prog=ld
  7850. ;;
  7851. *)
  7852. # If it is relative, then search for the first ld in PATH.
  7853. with_gnu_ld=unknown
  7854. ;;
  7855. esac
  7856. elif test "$with_gnu_ld" = yes; then
  7857. { echo "$as_me:$LINENO: checking for GNU ld" >&5
  7858. echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
  7859. else
  7860. { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  7861. echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
  7862. fi
  7863. if test "${acl_cv_path_LD+set}" = set; then
  7864. echo $ECHO_N "(cached) $ECHO_C" >&6
  7865. else
  7866. if test -z "$LD"; then
  7867. IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  7868. for ac_dir in $PATH; do
  7869. test -z "$ac_dir" && ac_dir=.
  7870. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  7871. acl_cv_path_LD="$ac_dir/$ac_prog"
  7872. # Check to see if the program is GNU ld. I'd rather use --version,
  7873. # but apparently some GNU ld's only accept -v.
  7874. # Break only if it was the GNU/non-GNU ld that we prefer.
  7875. if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  7876. test "$with_gnu_ld" != no && break
  7877. else
  7878. test "$with_gnu_ld" != yes && break
  7879. fi
  7880. fi
  7881. done
  7882. IFS="$ac_save_ifs"
  7883. else
  7884. acl_cv_path_LD="$LD" # Let the user override the test with a path.
  7885. fi
  7886. fi
  7887. LD="$acl_cv_path_LD"
  7888. if test -n "$LD"; then
  7889. { echo "$as_me:$LINENO: result: $LD" >&5
  7890. echo "${ECHO_T}$LD" >&6; }
  7891. else
  7892. { echo "$as_me:$LINENO: result: no" >&5
  7893. echo "${ECHO_T}no" >&6; }
  7894. fi
  7895. test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  7896. echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  7897. { (exit 1); exit 1; }; }
  7898. { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  7899. echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
  7900. if test "${acl_cv_prog_gnu_ld+set}" = set; then
  7901. echo $ECHO_N "(cached) $ECHO_C" >&6
  7902. else
  7903. # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  7904. if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  7905. acl_cv_prog_gnu_ld=yes
  7906. else
  7907. acl_cv_prog_gnu_ld=no
  7908. fi
  7909. fi
  7910. { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
  7911. echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
  7912. with_gnu_ld=$acl_cv_prog_gnu_ld
  7913. { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
  7914. echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
  7915. if test "${acl_cv_rpath+set}" = set; then
  7916. echo $ECHO_N "(cached) $ECHO_C" >&6
  7917. else
  7918. CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  7919. ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  7920. . ./conftest.sh
  7921. rm -f ./conftest.sh
  7922. acl_cv_rpath=done
  7923. fi
  7924. { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
  7925. echo "${ECHO_T}$acl_cv_rpath" >&6; }
  7926. wl="$acl_cv_wl"
  7927. libext="$acl_cv_libext"
  7928. shlibext="$acl_cv_shlibext"
  7929. hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  7930. hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  7931. hardcode_direct="$acl_cv_hardcode_direct"
  7932. hardcode_minus_L="$acl_cv_hardcode_minus_L"
  7933. # Check whether --enable-rpath was given.
  7934. if test "${enable_rpath+set}" = set; then
  7935. enableval=$enable_rpath; :
  7936. else
  7937. enable_rpath=yes
  7938. fi
  7939. use_additional=yes
  7940. acl_save_prefix="$prefix"
  7941. prefix="$acl_final_prefix"
  7942. acl_save_exec_prefix="$exec_prefix"
  7943. exec_prefix="$acl_final_exec_prefix"
  7944. eval additional_includedir=\"$includedir\"
  7945. eval additional_libdir=\"$libdir\"
  7946. exec_prefix="$acl_save_exec_prefix"
  7947. prefix="$acl_save_prefix"
  7948. # Check whether --with-libiconv-prefix was given.
  7949. if test "${with_libiconv_prefix+set}" = set; then
  7950. withval=$with_libiconv_prefix;
  7951. if test "X$withval" = "Xno"; then
  7952. use_additional=no
  7953. else
  7954. if test "X$withval" = "X"; then
  7955. acl_save_prefix="$prefix"
  7956. prefix="$acl_final_prefix"
  7957. acl_save_exec_prefix="$exec_prefix"
  7958. exec_prefix="$acl_final_exec_prefix"
  7959. eval additional_includedir=\"$includedir\"
  7960. eval additional_libdir=\"$libdir\"
  7961. exec_prefix="$acl_save_exec_prefix"
  7962. prefix="$acl_save_prefix"
  7963. else
  7964. additional_includedir="$withval/include"
  7965. additional_libdir="$withval/lib"
  7966. fi
  7967. fi
  7968. fi
  7969. LIBICONV=
  7970. LTLIBICONV=
  7971. INCICONV=
  7972. rpathdirs=
  7973. ltrpathdirs=
  7974. names_already_handled=
  7975. names_next_round='iconv '
  7976. while test -n "$names_next_round"; do
  7977. names_this_round="$names_next_round"
  7978. names_next_round=
  7979. for name in $names_this_round; do
  7980. already_handled=
  7981. for n in $names_already_handled; do
  7982. if test "$n" = "$name"; then
  7983. already_handled=yes
  7984. break
  7985. fi
  7986. done
  7987. if test -z "$already_handled"; then
  7988. names_already_handled="$names_already_handled $name"
  7989. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  7990. eval value=\"\$HAVE_LIB$uppername\"
  7991. if test -n "$value"; then
  7992. if test "$value" = yes; then
  7993. eval value=\"\$LIB$uppername\"
  7994. test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
  7995. eval value=\"\$LTLIB$uppername\"
  7996. test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
  7997. else
  7998. :
  7999. fi
  8000. else
  8001. found_dir=
  8002. found_la=
  8003. found_so=
  8004. found_a=
  8005. if test $use_additional = yes; then
  8006. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  8007. found_dir="$additional_libdir"
  8008. found_so="$additional_libdir/lib$name.$shlibext"
  8009. if test -f "$additional_libdir/lib$name.la"; then
  8010. found_la="$additional_libdir/lib$name.la"
  8011. fi
  8012. else
  8013. if test -f "$additional_libdir/lib$name.$libext"; then
  8014. found_dir="$additional_libdir"
  8015. found_a="$additional_libdir/lib$name.$libext"
  8016. if test -f "$additional_libdir/lib$name.la"; then
  8017. found_la="$additional_libdir/lib$name.la"
  8018. fi
  8019. fi
  8020. fi
  8021. fi
  8022. if test "X$found_dir" = "X"; then
  8023. for x in $LDFLAGS $LTLIBICONV; do
  8024. acl_save_prefix="$prefix"
  8025. prefix="$acl_final_prefix"
  8026. acl_save_exec_prefix="$exec_prefix"
  8027. exec_prefix="$acl_final_exec_prefix"
  8028. eval x=\"$x\"
  8029. exec_prefix="$acl_save_exec_prefix"
  8030. prefix="$acl_save_prefix"
  8031. case "$x" in
  8032. -L*)
  8033. dir=`echo "X$x" | sed -e 's/^X-L//'`
  8034. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  8035. found_dir="$dir"
  8036. found_so="$dir/lib$name.$shlibext"
  8037. if test -f "$dir/lib$name.la"; then
  8038. found_la="$dir/lib$name.la"
  8039. fi
  8040. else
  8041. if test -f "$dir/lib$name.$libext"; then
  8042. found_dir="$dir"
  8043. found_a="$dir/lib$name.$libext"
  8044. if test -f "$dir/lib$name.la"; then
  8045. found_la="$dir/lib$name.la"
  8046. fi
  8047. fi
  8048. fi
  8049. ;;
  8050. esac
  8051. if test "X$found_dir" != "X"; then
  8052. break
  8053. fi
  8054. done
  8055. fi
  8056. if test "X$found_dir" != "X"; then
  8057. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
  8058. if test "X$found_so" != "X"; then
  8059. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  8060. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8061. else
  8062. haveit=
  8063. for x in $ltrpathdirs; do
  8064. if test "X$x" = "X$found_dir"; then
  8065. haveit=yes
  8066. break
  8067. fi
  8068. done
  8069. if test -z "$haveit"; then
  8070. ltrpathdirs="$ltrpathdirs $found_dir"
  8071. fi
  8072. if test "$hardcode_direct" = yes; then
  8073. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8074. else
  8075. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  8076. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8077. haveit=
  8078. for x in $rpathdirs; do
  8079. if test "X$x" = "X$found_dir"; then
  8080. haveit=yes
  8081. break
  8082. fi
  8083. done
  8084. if test -z "$haveit"; then
  8085. rpathdirs="$rpathdirs $found_dir"
  8086. fi
  8087. else
  8088. haveit=
  8089. for x in $LDFLAGS $LIBICONV; do
  8090. acl_save_prefix="$prefix"
  8091. prefix="$acl_final_prefix"
  8092. acl_save_exec_prefix="$exec_prefix"
  8093. exec_prefix="$acl_final_exec_prefix"
  8094. eval x=\"$x\"
  8095. exec_prefix="$acl_save_exec_prefix"
  8096. prefix="$acl_save_prefix"
  8097. if test "X$x" = "X-L$found_dir"; then
  8098. haveit=yes
  8099. break
  8100. fi
  8101. done
  8102. if test -z "$haveit"; then
  8103. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
  8104. fi
  8105. if test "$hardcode_minus_L" != no; then
  8106. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
  8107. else
  8108. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8109. fi
  8110. fi
  8111. fi
  8112. fi
  8113. else
  8114. if test "X$found_a" != "X"; then
  8115. LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
  8116. else
  8117. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
  8118. fi
  8119. fi
  8120. additional_includedir=
  8121. case "$found_dir" in
  8122. */lib | */lib/)
  8123. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  8124. additional_includedir="$basedir/include"
  8125. ;;
  8126. esac
  8127. if test "X$additional_includedir" != "X"; then
  8128. if test "X$additional_includedir" != "X/usr/include"; then
  8129. haveit=
  8130. if test "X$additional_includedir" = "X/usr/local/include"; then
  8131. if test -n "$GCC"; then
  8132. case $host_os in
  8133. linux*) haveit=yes;;
  8134. esac
  8135. fi
  8136. fi
  8137. if test -z "$haveit"; then
  8138. for x in $CPPFLAGS $INCICONV; do
  8139. acl_save_prefix="$prefix"
  8140. prefix="$acl_final_prefix"
  8141. acl_save_exec_prefix="$exec_prefix"
  8142. exec_prefix="$acl_final_exec_prefix"
  8143. eval x=\"$x\"
  8144. exec_prefix="$acl_save_exec_prefix"
  8145. prefix="$acl_save_prefix"
  8146. if test "X$x" = "X-I$additional_includedir"; then
  8147. haveit=yes
  8148. break
  8149. fi
  8150. done
  8151. if test -z "$haveit"; then
  8152. if test -d "$additional_includedir"; then
  8153. INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
  8154. fi
  8155. fi
  8156. fi
  8157. fi
  8158. fi
  8159. if test -n "$found_la"; then
  8160. save_libdir="$libdir"
  8161. case "$found_la" in
  8162. */* | *\\*) . "$found_la" ;;
  8163. *) . "./$found_la" ;;
  8164. esac
  8165. libdir="$save_libdir"
  8166. for dep in $dependency_libs; do
  8167. case "$dep" in
  8168. -L*)
  8169. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  8170. if test "X$additional_libdir" != "X/usr/lib"; then
  8171. haveit=
  8172. if test "X$additional_libdir" = "X/usr/local/lib"; then
  8173. if test -n "$GCC"; then
  8174. case $host_os in
  8175. linux*) haveit=yes;;
  8176. esac
  8177. fi
  8178. fi
  8179. if test -z "$haveit"; then
  8180. haveit=
  8181. for x in $LDFLAGS $LIBICONV; do
  8182. acl_save_prefix="$prefix"
  8183. prefix="$acl_final_prefix"
  8184. acl_save_exec_prefix="$exec_prefix"
  8185. exec_prefix="$acl_final_exec_prefix"
  8186. eval x=\"$x\"
  8187. exec_prefix="$acl_save_exec_prefix"
  8188. prefix="$acl_save_prefix"
  8189. if test "X$x" = "X-L$additional_libdir"; then
  8190. haveit=yes
  8191. break
  8192. fi
  8193. done
  8194. if test -z "$haveit"; then
  8195. if test -d "$additional_libdir"; then
  8196. LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
  8197. fi
  8198. fi
  8199. haveit=
  8200. for x in $LDFLAGS $LTLIBICONV; do
  8201. acl_save_prefix="$prefix"
  8202. prefix="$acl_final_prefix"
  8203. acl_save_exec_prefix="$exec_prefix"
  8204. exec_prefix="$acl_final_exec_prefix"
  8205. eval x=\"$x\"
  8206. exec_prefix="$acl_save_exec_prefix"
  8207. prefix="$acl_save_prefix"
  8208. if test "X$x" = "X-L$additional_libdir"; then
  8209. haveit=yes
  8210. break
  8211. fi
  8212. done
  8213. if test -z "$haveit"; then
  8214. if test -d "$additional_libdir"; then
  8215. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
  8216. fi
  8217. fi
  8218. fi
  8219. fi
  8220. ;;
  8221. -R*)
  8222. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  8223. if test "$enable_rpath" != no; then
  8224. haveit=
  8225. for x in $rpathdirs; do
  8226. if test "X$x" = "X$dir"; then
  8227. haveit=yes
  8228. break
  8229. fi
  8230. done
  8231. if test -z "$haveit"; then
  8232. rpathdirs="$rpathdirs $dir"
  8233. fi
  8234. haveit=
  8235. for x in $ltrpathdirs; do
  8236. if test "X$x" = "X$dir"; then
  8237. haveit=yes
  8238. break
  8239. fi
  8240. done
  8241. if test -z "$haveit"; then
  8242. ltrpathdirs="$ltrpathdirs $dir"
  8243. fi
  8244. fi
  8245. ;;
  8246. -l*)
  8247. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  8248. ;;
  8249. *.la)
  8250. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  8251. ;;
  8252. *)
  8253. LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
  8254. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
  8255. ;;
  8256. esac
  8257. done
  8258. fi
  8259. else
  8260. LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
  8261. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
  8262. fi
  8263. fi
  8264. fi
  8265. done
  8266. done
  8267. if test "X$rpathdirs" != "X"; then
  8268. if test -n "$hardcode_libdir_separator"; then
  8269. alldirs=
  8270. for found_dir in $rpathdirs; do
  8271. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  8272. done
  8273. acl_save_libdir="$libdir"
  8274. libdir="$alldirs"
  8275. eval flag=\"$hardcode_libdir_flag_spec\"
  8276. libdir="$acl_save_libdir"
  8277. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8278. else
  8279. for found_dir in $rpathdirs; do
  8280. acl_save_libdir="$libdir"
  8281. libdir="$found_dir"
  8282. eval flag=\"$hardcode_libdir_flag_spec\"
  8283. libdir="$acl_save_libdir"
  8284. LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
  8285. done
  8286. fi
  8287. fi
  8288. if test "X$ltrpathdirs" != "X"; then
  8289. for found_dir in $ltrpathdirs; do
  8290. LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
  8291. done
  8292. fi
  8293. for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
  8294. stdlib.h string.h unistd.h sys/param.h
  8295. do
  8296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8297. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8298. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8300. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8301. echo $ECHO_N "(cached) $ECHO_C" >&6
  8302. fi
  8303. ac_res=`eval echo '${'$as_ac_Header'}'`
  8304. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8305. echo "${ECHO_T}$ac_res" >&6; }
  8306. else
  8307. # Is the header compilable?
  8308. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8309. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8310. cat >conftest.$ac_ext <<_ACEOF
  8311. /* confdefs.h. */
  8312. _ACEOF
  8313. cat confdefs.h >>conftest.$ac_ext
  8314. cat >>conftest.$ac_ext <<_ACEOF
  8315. /* end confdefs.h. */
  8316. $ac_includes_default
  8317. #include <$ac_header>
  8318. _ACEOF
  8319. rm -f conftest.$ac_objext
  8320. if { (ac_try="$ac_compile"
  8321. case "(($ac_try" in
  8322. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8323. *) ac_try_echo=$ac_try;;
  8324. esac
  8325. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8326. (eval "$ac_compile") 2>conftest.er1
  8327. ac_status=$?
  8328. grep -v '^ *+' conftest.er1 >conftest.err
  8329. rm -f conftest.er1
  8330. cat conftest.err >&5
  8331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8332. (exit $ac_status); } && {
  8333. test -z "$ac_c_werror_flag" ||
  8334. test ! -s conftest.err
  8335. } && test -s conftest.$ac_objext; then
  8336. ac_header_compiler=yes
  8337. else
  8338. echo "$as_me: failed program was:" >&5
  8339. sed 's/^/| /' conftest.$ac_ext >&5
  8340. ac_header_compiler=no
  8341. fi
  8342. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8343. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8344. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8345. # Is the header present?
  8346. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8347. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8348. cat >conftest.$ac_ext <<_ACEOF
  8349. /* confdefs.h. */
  8350. _ACEOF
  8351. cat confdefs.h >>conftest.$ac_ext
  8352. cat >>conftest.$ac_ext <<_ACEOF
  8353. /* end confdefs.h. */
  8354. #include <$ac_header>
  8355. _ACEOF
  8356. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8357. case "(($ac_try" in
  8358. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8359. *) ac_try_echo=$ac_try;;
  8360. esac
  8361. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8362. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8363. ac_status=$?
  8364. grep -v '^ *+' conftest.er1 >conftest.err
  8365. rm -f conftest.er1
  8366. cat conftest.err >&5
  8367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8368. (exit $ac_status); } >/dev/null && {
  8369. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  8370. test ! -s conftest.err
  8371. }; then
  8372. ac_header_preproc=yes
  8373. else
  8374. echo "$as_me: failed program was:" >&5
  8375. sed 's/^/| /' conftest.$ac_ext >&5
  8376. ac_header_preproc=no
  8377. fi
  8378. rm -f conftest.err conftest.$ac_ext
  8379. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8380. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8381. # So? What about this header?
  8382. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8383. yes:no: )
  8384. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8385. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8386. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8387. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8388. ac_header_preproc=yes
  8389. ;;
  8390. no:yes:* )
  8391. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8392. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8393. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8394. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8395. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8396. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8397. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8398. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8399. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8400. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8401. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8402. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8403. ( cat <<\_ASBOX
  8404. ## ----------------------------------------------- ##
  8405. ## Report this to t-tujikawa@users.sourceforge.net ##
  8406. ## ----------------------------------------------- ##
  8407. _ASBOX
  8408. ) | sed "s/^/$as_me: WARNING: /" >&2
  8409. ;;
  8410. esac
  8411. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8412. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8413. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8414. echo $ECHO_N "(cached) $ECHO_C" >&6
  8415. else
  8416. eval "$as_ac_Header=\$ac_header_preproc"
  8417. fi
  8418. ac_res=`eval echo '${'$as_ac_Header'}'`
  8419. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8420. echo "${ECHO_T}$ac_res" >&6; }
  8421. fi
  8422. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8423. cat >>confdefs.h <<_ACEOF
  8424. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8425. _ACEOF
  8426. fi
  8427. done
  8428. for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
  8429. geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
  8430. strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next \
  8431. __fsetlocking
  8432. do
  8433. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8434. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8435. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8436. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8437. echo $ECHO_N "(cached) $ECHO_C" >&6
  8438. else
  8439. cat >conftest.$ac_ext <<_ACEOF
  8440. /* confdefs.h. */
  8441. _ACEOF
  8442. cat confdefs.h >>conftest.$ac_ext
  8443. cat >>conftest.$ac_ext <<_ACEOF
  8444. /* end confdefs.h. */
  8445. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8446. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8447. #define $ac_func innocuous_$ac_func
  8448. /* System header to define __stub macros and hopefully few prototypes,
  8449. which can conflict with char $ac_func (); below.
  8450. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8451. <limits.h> exists even on freestanding compilers. */
  8452. #ifdef __STDC__
  8453. # include <limits.h>
  8454. #else
  8455. # include <assert.h>
  8456. #endif
  8457. #undef $ac_func
  8458. /* Override any GCC internal prototype to avoid an error.
  8459. Use char because int might match the return type of a GCC
  8460. builtin and then its argument prototype would still apply. */
  8461. #ifdef __cplusplus
  8462. extern "C"
  8463. #endif
  8464. char $ac_func ();
  8465. /* The GNU C library defines this for functions which it implements
  8466. to always fail with ENOSYS. Some functions are actually named
  8467. something starting with __ and the normal name is an alias. */
  8468. #if defined __stub_$ac_func || defined __stub___$ac_func
  8469. choke me
  8470. #endif
  8471. int
  8472. main ()
  8473. {
  8474. return $ac_func ();
  8475. ;
  8476. return 0;
  8477. }
  8478. _ACEOF
  8479. rm -f conftest.$ac_objext conftest$ac_exeext
  8480. if { (ac_try="$ac_link"
  8481. case "(($ac_try" in
  8482. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8483. *) ac_try_echo=$ac_try;;
  8484. esac
  8485. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8486. (eval "$ac_link") 2>conftest.er1
  8487. ac_status=$?
  8488. grep -v '^ *+' conftest.er1 >conftest.err
  8489. rm -f conftest.er1
  8490. cat conftest.err >&5
  8491. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8492. (exit $ac_status); } && {
  8493. test -z "$ac_c_werror_flag" ||
  8494. test ! -s conftest.err
  8495. } && test -s conftest$ac_exeext &&
  8496. $as_test_x conftest$ac_exeext; then
  8497. eval "$as_ac_var=yes"
  8498. else
  8499. echo "$as_me: failed program was:" >&5
  8500. sed 's/^/| /' conftest.$ac_ext >&5
  8501. eval "$as_ac_var=no"
  8502. fi
  8503. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8504. conftest$ac_exeext conftest.$ac_ext
  8505. fi
  8506. ac_res=`eval echo '${'$as_ac_var'}'`
  8507. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8508. echo "${ECHO_T}$ac_res" >&6; }
  8509. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8510. cat >>confdefs.h <<_ACEOF
  8511. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8512. _ACEOF
  8513. fi
  8514. done
  8515. am_save_CPPFLAGS="$CPPFLAGS"
  8516. for element in $INCICONV; do
  8517. haveit=
  8518. for x in $CPPFLAGS; do
  8519. acl_save_prefix="$prefix"
  8520. prefix="$acl_final_prefix"
  8521. acl_save_exec_prefix="$exec_prefix"
  8522. exec_prefix="$acl_final_exec_prefix"
  8523. eval x=\"$x\"
  8524. exec_prefix="$acl_save_exec_prefix"
  8525. prefix="$acl_save_prefix"
  8526. if test "X$x" = "X$element"; then
  8527. haveit=yes
  8528. break
  8529. fi
  8530. done
  8531. if test -z "$haveit"; then
  8532. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  8533. fi
  8534. done
  8535. { echo "$as_me:$LINENO: checking for iconv" >&5
  8536. echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
  8537. if test "${am_cv_func_iconv+set}" = set; then
  8538. echo $ECHO_N "(cached) $ECHO_C" >&6
  8539. else
  8540. am_cv_func_iconv="no, consider installing GNU libiconv"
  8541. am_cv_lib_iconv=no
  8542. cat >conftest.$ac_ext <<_ACEOF
  8543. /* confdefs.h. */
  8544. _ACEOF
  8545. cat confdefs.h >>conftest.$ac_ext
  8546. cat >>conftest.$ac_ext <<_ACEOF
  8547. /* end confdefs.h. */
  8548. #include <stdlib.h>
  8549. #include <iconv.h>
  8550. int
  8551. main ()
  8552. {
  8553. iconv_t cd = iconv_open("","");
  8554. iconv(cd,NULL,NULL,NULL,NULL);
  8555. iconv_close(cd);
  8556. ;
  8557. return 0;
  8558. }
  8559. _ACEOF
  8560. rm -f conftest.$ac_objext conftest$ac_exeext
  8561. if { (ac_try="$ac_link"
  8562. case "(($ac_try" in
  8563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8564. *) ac_try_echo=$ac_try;;
  8565. esac
  8566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8567. (eval "$ac_link") 2>conftest.er1
  8568. ac_status=$?
  8569. grep -v '^ *+' conftest.er1 >conftest.err
  8570. rm -f conftest.er1
  8571. cat conftest.err >&5
  8572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8573. (exit $ac_status); } && {
  8574. test -z "$ac_c_werror_flag" ||
  8575. test ! -s conftest.err
  8576. } && test -s conftest$ac_exeext &&
  8577. $as_test_x conftest$ac_exeext; then
  8578. am_cv_func_iconv=yes
  8579. else
  8580. echo "$as_me: failed program was:" >&5
  8581. sed 's/^/| /' conftest.$ac_ext >&5
  8582. fi
  8583. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8584. conftest$ac_exeext conftest.$ac_ext
  8585. if test "$am_cv_func_iconv" != yes; then
  8586. am_save_LIBS="$LIBS"
  8587. LIBS="$LIBS $LIBICONV"
  8588. cat >conftest.$ac_ext <<_ACEOF
  8589. /* confdefs.h. */
  8590. _ACEOF
  8591. cat confdefs.h >>conftest.$ac_ext
  8592. cat >>conftest.$ac_ext <<_ACEOF
  8593. /* end confdefs.h. */
  8594. #include <stdlib.h>
  8595. #include <iconv.h>
  8596. int
  8597. main ()
  8598. {
  8599. iconv_t cd = iconv_open("","");
  8600. iconv(cd,NULL,NULL,NULL,NULL);
  8601. iconv_close(cd);
  8602. ;
  8603. return 0;
  8604. }
  8605. _ACEOF
  8606. rm -f conftest.$ac_objext conftest$ac_exeext
  8607. if { (ac_try="$ac_link"
  8608. case "(($ac_try" in
  8609. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8610. *) ac_try_echo=$ac_try;;
  8611. esac
  8612. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8613. (eval "$ac_link") 2>conftest.er1
  8614. ac_status=$?
  8615. grep -v '^ *+' conftest.er1 >conftest.err
  8616. rm -f conftest.er1
  8617. cat conftest.err >&5
  8618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8619. (exit $ac_status); } && {
  8620. test -z "$ac_c_werror_flag" ||
  8621. test ! -s conftest.err
  8622. } && test -s conftest$ac_exeext &&
  8623. $as_test_x conftest$ac_exeext; then
  8624. am_cv_lib_iconv=yes
  8625. am_cv_func_iconv=yes
  8626. else
  8627. echo "$as_me: failed program was:" >&5
  8628. sed 's/^/| /' conftest.$ac_ext >&5
  8629. fi
  8630. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8631. conftest$ac_exeext conftest.$ac_ext
  8632. LIBS="$am_save_LIBS"
  8633. fi
  8634. fi
  8635. { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
  8636. echo "${ECHO_T}$am_cv_func_iconv" >&6; }
  8637. if test "$am_cv_func_iconv" = yes; then
  8638. cat >>confdefs.h <<\_ACEOF
  8639. #define HAVE_ICONV 1
  8640. _ACEOF
  8641. fi
  8642. if test "$am_cv_lib_iconv" = yes; then
  8643. { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
  8644. echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
  8645. { echo "$as_me:$LINENO: result: $LIBICONV" >&5
  8646. echo "${ECHO_T}$LIBICONV" >&6; }
  8647. else
  8648. CPPFLAGS="$am_save_CPPFLAGS"
  8649. LIBICONV=
  8650. LTLIBICONV=
  8651. fi
  8652. if test "$am_cv_func_iconv" = yes; then
  8653. { echo "$as_me:$LINENO: checking for iconv declaration" >&5
  8654. echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
  8655. if test "${am_cv_proto_iconv+set}" = set; then
  8656. echo $ECHO_N "(cached) $ECHO_C" >&6
  8657. else
  8658. cat >conftest.$ac_ext <<_ACEOF
  8659. /* confdefs.h. */
  8660. _ACEOF
  8661. cat confdefs.h >>conftest.$ac_ext
  8662. cat >>conftest.$ac_ext <<_ACEOF
  8663. /* end confdefs.h. */
  8664. #include <stdlib.h>
  8665. #include <iconv.h>
  8666. extern
  8667. #ifdef __cplusplus
  8668. "C"
  8669. #endif
  8670. #if defined(__STDC__) || defined(__cplusplus)
  8671. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  8672. #else
  8673. size_t iconv();
  8674. #endif
  8675. int
  8676. main ()
  8677. {
  8678. ;
  8679. return 0;
  8680. }
  8681. _ACEOF
  8682. rm -f conftest.$ac_objext
  8683. if { (ac_try="$ac_compile"
  8684. case "(($ac_try" in
  8685. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8686. *) ac_try_echo=$ac_try;;
  8687. esac
  8688. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8689. (eval "$ac_compile") 2>conftest.er1
  8690. ac_status=$?
  8691. grep -v '^ *+' conftest.er1 >conftest.err
  8692. rm -f conftest.er1
  8693. cat conftest.err >&5
  8694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8695. (exit $ac_status); } && {
  8696. test -z "$ac_c_werror_flag" ||
  8697. test ! -s conftest.err
  8698. } && test -s conftest.$ac_objext; then
  8699. am_cv_proto_iconv_arg1=""
  8700. else
  8701. echo "$as_me: failed program was:" >&5
  8702. sed 's/^/| /' conftest.$ac_ext >&5
  8703. am_cv_proto_iconv_arg1="const"
  8704. fi
  8705. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8706. am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
  8707. fi
  8708. am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
  8709. { echo "$as_me:$LINENO: result: ${ac_t:-
  8710. }$am_cv_proto_iconv" >&5
  8711. echo "${ECHO_T}${ac_t:-
  8712. }$am_cv_proto_iconv" >&6; }
  8713. cat >>confdefs.h <<_ACEOF
  8714. #define ICONV_CONST $am_cv_proto_iconv_arg1
  8715. _ACEOF
  8716. fi
  8717. { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
  8718. echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
  8719. if test "${am_cv_langinfo_codeset+set}" = set; then
  8720. echo $ECHO_N "(cached) $ECHO_C" >&6
  8721. else
  8722. cat >conftest.$ac_ext <<_ACEOF
  8723. /* confdefs.h. */
  8724. _ACEOF
  8725. cat confdefs.h >>conftest.$ac_ext
  8726. cat >>conftest.$ac_ext <<_ACEOF
  8727. /* end confdefs.h. */
  8728. #include <langinfo.h>
  8729. int
  8730. main ()
  8731. {
  8732. char* cs = nl_langinfo(CODESET);
  8733. ;
  8734. return 0;
  8735. }
  8736. _ACEOF
  8737. rm -f conftest.$ac_objext conftest$ac_exeext
  8738. if { (ac_try="$ac_link"
  8739. case "(($ac_try" in
  8740. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8741. *) ac_try_echo=$ac_try;;
  8742. esac
  8743. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8744. (eval "$ac_link") 2>conftest.er1
  8745. ac_status=$?
  8746. grep -v '^ *+' conftest.er1 >conftest.err
  8747. rm -f conftest.er1
  8748. cat conftest.err >&5
  8749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8750. (exit $ac_status); } && {
  8751. test -z "$ac_c_werror_flag" ||
  8752. test ! -s conftest.err
  8753. } && test -s conftest$ac_exeext &&
  8754. $as_test_x conftest$ac_exeext; then
  8755. am_cv_langinfo_codeset=yes
  8756. else
  8757. echo "$as_me: failed program was:" >&5
  8758. sed 's/^/| /' conftest.$ac_ext >&5
  8759. am_cv_langinfo_codeset=no
  8760. fi
  8761. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8762. conftest$ac_exeext conftest.$ac_ext
  8763. fi
  8764. { echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
  8765. echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
  8766. if test $am_cv_langinfo_codeset = yes; then
  8767. cat >>confdefs.h <<\_ACEOF
  8768. #define HAVE_LANGINFO_CODESET 1
  8769. _ACEOF
  8770. fi
  8771. if test $ac_cv_header_locale_h = yes; then
  8772. { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
  8773. echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
  8774. if test "${am_cv_val_LC_MESSAGES+set}" = set; then
  8775. echo $ECHO_N "(cached) $ECHO_C" >&6
  8776. else
  8777. cat >conftest.$ac_ext <<_ACEOF
  8778. /* confdefs.h. */
  8779. _ACEOF
  8780. cat confdefs.h >>conftest.$ac_ext
  8781. cat >>conftest.$ac_ext <<_ACEOF
  8782. /* end confdefs.h. */
  8783. #include <locale.h>
  8784. int
  8785. main ()
  8786. {
  8787. return LC_MESSAGES
  8788. ;
  8789. return 0;
  8790. }
  8791. _ACEOF
  8792. rm -f conftest.$ac_objext conftest$ac_exeext
  8793. if { (ac_try="$ac_link"
  8794. case "(($ac_try" in
  8795. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8796. *) ac_try_echo=$ac_try;;
  8797. esac
  8798. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8799. (eval "$ac_link") 2>conftest.er1
  8800. ac_status=$?
  8801. grep -v '^ *+' conftest.er1 >conftest.err
  8802. rm -f conftest.er1
  8803. cat conftest.err >&5
  8804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8805. (exit $ac_status); } && {
  8806. test -z "$ac_c_werror_flag" ||
  8807. test ! -s conftest.err
  8808. } && test -s conftest$ac_exeext &&
  8809. $as_test_x conftest$ac_exeext; then
  8810. am_cv_val_LC_MESSAGES=yes
  8811. else
  8812. echo "$as_me: failed program was:" >&5
  8813. sed 's/^/| /' conftest.$ac_ext >&5
  8814. am_cv_val_LC_MESSAGES=no
  8815. fi
  8816. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8817. conftest$ac_exeext conftest.$ac_ext
  8818. fi
  8819. { echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
  8820. echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
  8821. if test $am_cv_val_LC_MESSAGES = yes; then
  8822. cat >>confdefs.h <<\_ACEOF
  8823. #define HAVE_LC_MESSAGES 1
  8824. _ACEOF
  8825. fi
  8826. fi
  8827. for ac_prog in bison
  8828. do
  8829. # Extract the first word of "$ac_prog", so it can be a program name with args.
  8830. set dummy $ac_prog; ac_word=$2
  8831. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  8832. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  8833. if test "${ac_cv_prog_INTLBISON+set}" = set; then
  8834. echo $ECHO_N "(cached) $ECHO_C" >&6
  8835. else
  8836. if test -n "$INTLBISON"; then
  8837. ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
  8838. else
  8839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8840. for as_dir in $PATH
  8841. do
  8842. IFS=$as_save_IFS
  8843. test -z "$as_dir" && as_dir=.
  8844. for ac_exec_ext in '' $ac_executable_extensions; do
  8845. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8846. ac_cv_prog_INTLBISON="$ac_prog"
  8847. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  8848. break 2
  8849. fi
  8850. done
  8851. done
  8852. IFS=$as_save_IFS
  8853. fi
  8854. fi
  8855. INTLBISON=$ac_cv_prog_INTLBISON
  8856. if test -n "$INTLBISON"; then
  8857. { echo "$as_me:$LINENO: result: $INTLBISON" >&5
  8858. echo "${ECHO_T}$INTLBISON" >&6; }
  8859. else
  8860. { echo "$as_me:$LINENO: result: no" >&5
  8861. echo "${ECHO_T}no" >&6; }
  8862. fi
  8863. test -n "$INTLBISON" && break
  8864. done
  8865. if test -z "$INTLBISON"; then
  8866. ac_verc_fail=yes
  8867. else
  8868. { echo "$as_me:$LINENO: checking version of bison" >&5
  8869. echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
  8870. ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
  8871. case $ac_prog_version in
  8872. '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
  8873. 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
  8874. ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
  8875. *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
  8876. esac
  8877. { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
  8878. echo "${ECHO_T}$ac_prog_version" >&6; }
  8879. fi
  8880. if test $ac_verc_fail = yes; then
  8881. INTLBISON=:
  8882. fi
  8883. { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
  8884. echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
  8885. # Check whether --enable-nls was given.
  8886. if test "${enable_nls+set}" = set; then
  8887. enableval=$enable_nls; USE_NLS=$enableval
  8888. else
  8889. USE_NLS=yes
  8890. fi
  8891. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  8892. echo "${ECHO_T}$USE_NLS" >&6; }
  8893. BUILD_INCLUDED_LIBINTL=no
  8894. USE_INCLUDED_LIBINTL=no
  8895. LIBINTL=
  8896. LTLIBINTL=
  8897. POSUB=
  8898. if test "$USE_NLS" = "yes"; then
  8899. gt_use_preinstalled_gnugettext=no
  8900. { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
  8901. echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
  8902. # Check whether --with-included-gettext was given.
  8903. if test "${with_included_gettext+set}" = set; then
  8904. withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
  8905. else
  8906. nls_cv_force_use_gnu_gettext=no
  8907. fi
  8908. { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
  8909. echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
  8910. nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
  8911. if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
  8912. { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
  8913. echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
  8914. if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
  8915. echo $ECHO_N "(cached) $ECHO_C" >&6
  8916. else
  8917. cat >conftest.$ac_ext <<_ACEOF
  8918. /* confdefs.h. */
  8919. _ACEOF
  8920. cat confdefs.h >>conftest.$ac_ext
  8921. cat >>conftest.$ac_ext <<_ACEOF
  8922. /* end confdefs.h. */
  8923. #include <libintl.h>
  8924. extern int _nl_msg_cat_cntr;
  8925. extern int *_nl_domain_bindings;
  8926. int
  8927. main ()
  8928. {
  8929. bindtextdomain ("", "");
  8930. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
  8931. ;
  8932. return 0;
  8933. }
  8934. _ACEOF
  8935. rm -f conftest.$ac_objext conftest$ac_exeext
  8936. if { (ac_try="$ac_link"
  8937. case "(($ac_try" in
  8938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8939. *) ac_try_echo=$ac_try;;
  8940. esac
  8941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8942. (eval "$ac_link") 2>conftest.er1
  8943. ac_status=$?
  8944. grep -v '^ *+' conftest.er1 >conftest.err
  8945. rm -f conftest.er1
  8946. cat conftest.err >&5
  8947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8948. (exit $ac_status); } && {
  8949. test -z "$ac_c_werror_flag" ||
  8950. test ! -s conftest.err
  8951. } && test -s conftest$ac_exeext &&
  8952. $as_test_x conftest$ac_exeext; then
  8953. gt_cv_func_gnugettext1_libc=yes
  8954. else
  8955. echo "$as_me: failed program was:" >&5
  8956. sed 's/^/| /' conftest.$ac_ext >&5
  8957. gt_cv_func_gnugettext1_libc=no
  8958. fi
  8959. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8960. conftest$ac_exeext conftest.$ac_ext
  8961. fi
  8962. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
  8963. echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
  8964. if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
  8965. use_additional=yes
  8966. acl_save_prefix="$prefix"
  8967. prefix="$acl_final_prefix"
  8968. acl_save_exec_prefix="$exec_prefix"
  8969. exec_prefix="$acl_final_exec_prefix"
  8970. eval additional_includedir=\"$includedir\"
  8971. eval additional_libdir=\"$libdir\"
  8972. exec_prefix="$acl_save_exec_prefix"
  8973. prefix="$acl_save_prefix"
  8974. # Check whether --with-libintl-prefix was given.
  8975. if test "${with_libintl_prefix+set}" = set; then
  8976. withval=$with_libintl_prefix;
  8977. if test "X$withval" = "Xno"; then
  8978. use_additional=no
  8979. else
  8980. if test "X$withval" = "X"; then
  8981. acl_save_prefix="$prefix"
  8982. prefix="$acl_final_prefix"
  8983. acl_save_exec_prefix="$exec_prefix"
  8984. exec_prefix="$acl_final_exec_prefix"
  8985. eval additional_includedir=\"$includedir\"
  8986. eval additional_libdir=\"$libdir\"
  8987. exec_prefix="$acl_save_exec_prefix"
  8988. prefix="$acl_save_prefix"
  8989. else
  8990. additional_includedir="$withval/include"
  8991. additional_libdir="$withval/lib"
  8992. fi
  8993. fi
  8994. fi
  8995. LIBINTL=
  8996. LTLIBINTL=
  8997. INCINTL=
  8998. rpathdirs=
  8999. ltrpathdirs=
  9000. names_already_handled=
  9001. names_next_round='intl '
  9002. while test -n "$names_next_round"; do
  9003. names_this_round="$names_next_round"
  9004. names_next_round=
  9005. for name in $names_this_round; do
  9006. already_handled=
  9007. for n in $names_already_handled; do
  9008. if test "$n" = "$name"; then
  9009. already_handled=yes
  9010. break
  9011. fi
  9012. done
  9013. if test -z "$already_handled"; then
  9014. names_already_handled="$names_already_handled $name"
  9015. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  9016. eval value=\"\$HAVE_LIB$uppername\"
  9017. if test -n "$value"; then
  9018. if test "$value" = yes; then
  9019. eval value=\"\$LIB$uppername\"
  9020. test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
  9021. eval value=\"\$LTLIB$uppername\"
  9022. test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
  9023. else
  9024. :
  9025. fi
  9026. else
  9027. found_dir=
  9028. found_la=
  9029. found_so=
  9030. found_a=
  9031. if test $use_additional = yes; then
  9032. if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  9033. found_dir="$additional_libdir"
  9034. found_so="$additional_libdir/lib$name.$shlibext"
  9035. if test -f "$additional_libdir/lib$name.la"; then
  9036. found_la="$additional_libdir/lib$name.la"
  9037. fi
  9038. else
  9039. if test -f "$additional_libdir/lib$name.$libext"; then
  9040. found_dir="$additional_libdir"
  9041. found_a="$additional_libdir/lib$name.$libext"
  9042. if test -f "$additional_libdir/lib$name.la"; then
  9043. found_la="$additional_libdir/lib$name.la"
  9044. fi
  9045. fi
  9046. fi
  9047. fi
  9048. if test "X$found_dir" = "X"; then
  9049. for x in $LDFLAGS $LTLIBINTL; do
  9050. acl_save_prefix="$prefix"
  9051. prefix="$acl_final_prefix"
  9052. acl_save_exec_prefix="$exec_prefix"
  9053. exec_prefix="$acl_final_exec_prefix"
  9054. eval x=\"$x\"
  9055. exec_prefix="$acl_save_exec_prefix"
  9056. prefix="$acl_save_prefix"
  9057. case "$x" in
  9058. -L*)
  9059. dir=`echo "X$x" | sed -e 's/^X-L//'`
  9060. if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  9061. found_dir="$dir"
  9062. found_so="$dir/lib$name.$shlibext"
  9063. if test -f "$dir/lib$name.la"; then
  9064. found_la="$dir/lib$name.la"
  9065. fi
  9066. else
  9067. if test -f "$dir/lib$name.$libext"; then
  9068. found_dir="$dir"
  9069. found_a="$dir/lib$name.$libext"
  9070. if test -f "$dir/lib$name.la"; then
  9071. found_la="$dir/lib$name.la"
  9072. fi
  9073. fi
  9074. fi
  9075. ;;
  9076. esac
  9077. if test "X$found_dir" != "X"; then
  9078. break
  9079. fi
  9080. done
  9081. fi
  9082. if test "X$found_dir" != "X"; then
  9083. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
  9084. if test "X$found_so" != "X"; then
  9085. if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  9086. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9087. else
  9088. haveit=
  9089. for x in $ltrpathdirs; do
  9090. if test "X$x" = "X$found_dir"; then
  9091. haveit=yes
  9092. break
  9093. fi
  9094. done
  9095. if test -z "$haveit"; then
  9096. ltrpathdirs="$ltrpathdirs $found_dir"
  9097. fi
  9098. if test "$hardcode_direct" = yes; then
  9099. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9100. else
  9101. if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  9102. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9103. haveit=
  9104. for x in $rpathdirs; do
  9105. if test "X$x" = "X$found_dir"; then
  9106. haveit=yes
  9107. break
  9108. fi
  9109. done
  9110. if test -z "$haveit"; then
  9111. rpathdirs="$rpathdirs $found_dir"
  9112. fi
  9113. else
  9114. haveit=
  9115. for x in $LDFLAGS $LIBINTL; do
  9116. acl_save_prefix="$prefix"
  9117. prefix="$acl_final_prefix"
  9118. acl_save_exec_prefix="$exec_prefix"
  9119. exec_prefix="$acl_final_exec_prefix"
  9120. eval x=\"$x\"
  9121. exec_prefix="$acl_save_exec_prefix"
  9122. prefix="$acl_save_prefix"
  9123. if test "X$x" = "X-L$found_dir"; then
  9124. haveit=yes
  9125. break
  9126. fi
  9127. done
  9128. if test -z "$haveit"; then
  9129. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
  9130. fi
  9131. if test "$hardcode_minus_L" != no; then
  9132. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
  9133. else
  9134. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9135. fi
  9136. fi
  9137. fi
  9138. fi
  9139. else
  9140. if test "X$found_a" != "X"; then
  9141. LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
  9142. else
  9143. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
  9144. fi
  9145. fi
  9146. additional_includedir=
  9147. case "$found_dir" in
  9148. */lib | */lib/)
  9149. basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  9150. additional_includedir="$basedir/include"
  9151. ;;
  9152. esac
  9153. if test "X$additional_includedir" != "X"; then
  9154. if test "X$additional_includedir" != "X/usr/include"; then
  9155. haveit=
  9156. if test "X$additional_includedir" = "X/usr/local/include"; then
  9157. if test -n "$GCC"; then
  9158. case $host_os in
  9159. linux*) haveit=yes;;
  9160. esac
  9161. fi
  9162. fi
  9163. if test -z "$haveit"; then
  9164. for x in $CPPFLAGS $INCINTL; do
  9165. acl_save_prefix="$prefix"
  9166. prefix="$acl_final_prefix"
  9167. acl_save_exec_prefix="$exec_prefix"
  9168. exec_prefix="$acl_final_exec_prefix"
  9169. eval x=\"$x\"
  9170. exec_prefix="$acl_save_exec_prefix"
  9171. prefix="$acl_save_prefix"
  9172. if test "X$x" = "X-I$additional_includedir"; then
  9173. haveit=yes
  9174. break
  9175. fi
  9176. done
  9177. if test -z "$haveit"; then
  9178. if test -d "$additional_includedir"; then
  9179. INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
  9180. fi
  9181. fi
  9182. fi
  9183. fi
  9184. fi
  9185. if test -n "$found_la"; then
  9186. save_libdir="$libdir"
  9187. case "$found_la" in
  9188. */* | *\\*) . "$found_la" ;;
  9189. *) . "./$found_la" ;;
  9190. esac
  9191. libdir="$save_libdir"
  9192. for dep in $dependency_libs; do
  9193. case "$dep" in
  9194. -L*)
  9195. additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  9196. if test "X$additional_libdir" != "X/usr/lib"; then
  9197. haveit=
  9198. if test "X$additional_libdir" = "X/usr/local/lib"; then
  9199. if test -n "$GCC"; then
  9200. case $host_os in
  9201. linux*) haveit=yes;;
  9202. esac
  9203. fi
  9204. fi
  9205. if test -z "$haveit"; then
  9206. haveit=
  9207. for x in $LDFLAGS $LIBINTL; do
  9208. acl_save_prefix="$prefix"
  9209. prefix="$acl_final_prefix"
  9210. acl_save_exec_prefix="$exec_prefix"
  9211. exec_prefix="$acl_final_exec_prefix"
  9212. eval x=\"$x\"
  9213. exec_prefix="$acl_save_exec_prefix"
  9214. prefix="$acl_save_prefix"
  9215. if test "X$x" = "X-L$additional_libdir"; then
  9216. haveit=yes
  9217. break
  9218. fi
  9219. done
  9220. if test -z "$haveit"; then
  9221. if test -d "$additional_libdir"; then
  9222. LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
  9223. fi
  9224. fi
  9225. haveit=
  9226. for x in $LDFLAGS $LTLIBINTL; do
  9227. acl_save_prefix="$prefix"
  9228. prefix="$acl_final_prefix"
  9229. acl_save_exec_prefix="$exec_prefix"
  9230. exec_prefix="$acl_final_exec_prefix"
  9231. eval x=\"$x\"
  9232. exec_prefix="$acl_save_exec_prefix"
  9233. prefix="$acl_save_prefix"
  9234. if test "X$x" = "X-L$additional_libdir"; then
  9235. haveit=yes
  9236. break
  9237. fi
  9238. done
  9239. if test -z "$haveit"; then
  9240. if test -d "$additional_libdir"; then
  9241. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
  9242. fi
  9243. fi
  9244. fi
  9245. fi
  9246. ;;
  9247. -R*)
  9248. dir=`echo "X$dep" | sed -e 's/^X-R//'`
  9249. if test "$enable_rpath" != no; then
  9250. haveit=
  9251. for x in $rpathdirs; do
  9252. if test "X$x" = "X$dir"; then
  9253. haveit=yes
  9254. break
  9255. fi
  9256. done
  9257. if test -z "$haveit"; then
  9258. rpathdirs="$rpathdirs $dir"
  9259. fi
  9260. haveit=
  9261. for x in $ltrpathdirs; do
  9262. if test "X$x" = "X$dir"; then
  9263. haveit=yes
  9264. break
  9265. fi
  9266. done
  9267. if test -z "$haveit"; then
  9268. ltrpathdirs="$ltrpathdirs $dir"
  9269. fi
  9270. fi
  9271. ;;
  9272. -l*)
  9273. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  9274. ;;
  9275. *.la)
  9276. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  9277. ;;
  9278. *)
  9279. LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
  9280. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
  9281. ;;
  9282. esac
  9283. done
  9284. fi
  9285. else
  9286. LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
  9287. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
  9288. fi
  9289. fi
  9290. fi
  9291. done
  9292. done
  9293. if test "X$rpathdirs" != "X"; then
  9294. if test -n "$hardcode_libdir_separator"; then
  9295. alldirs=
  9296. for found_dir in $rpathdirs; do
  9297. alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  9298. done
  9299. acl_save_libdir="$libdir"
  9300. libdir="$alldirs"
  9301. eval flag=\"$hardcode_libdir_flag_spec\"
  9302. libdir="$acl_save_libdir"
  9303. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9304. else
  9305. for found_dir in $rpathdirs; do
  9306. acl_save_libdir="$libdir"
  9307. libdir="$found_dir"
  9308. eval flag=\"$hardcode_libdir_flag_spec\"
  9309. libdir="$acl_save_libdir"
  9310. LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
  9311. done
  9312. fi
  9313. fi
  9314. if test "X$ltrpathdirs" != "X"; then
  9315. for found_dir in $ltrpathdirs; do
  9316. LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
  9317. done
  9318. fi
  9319. { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
  9320. echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
  9321. if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
  9322. echo $ECHO_N "(cached) $ECHO_C" >&6
  9323. else
  9324. gt_save_CPPFLAGS="$CPPFLAGS"
  9325. CPPFLAGS="$CPPFLAGS $INCINTL"
  9326. gt_save_LIBS="$LIBS"
  9327. LIBS="$LIBS $LIBINTL"
  9328. cat >conftest.$ac_ext <<_ACEOF
  9329. /* confdefs.h. */
  9330. _ACEOF
  9331. cat confdefs.h >>conftest.$ac_ext
  9332. cat >>conftest.$ac_ext <<_ACEOF
  9333. /* end confdefs.h. */
  9334. #include <libintl.h>
  9335. extern int _nl_msg_cat_cntr;
  9336. extern
  9337. #ifdef __cplusplus
  9338. "C"
  9339. #endif
  9340. const char *_nl_expand_alias ();
  9341. int
  9342. main ()
  9343. {
  9344. bindtextdomain ("", "");
  9345. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9346. ;
  9347. return 0;
  9348. }
  9349. _ACEOF
  9350. rm -f conftest.$ac_objext conftest$ac_exeext
  9351. if { (ac_try="$ac_link"
  9352. case "(($ac_try" in
  9353. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9354. *) ac_try_echo=$ac_try;;
  9355. esac
  9356. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9357. (eval "$ac_link") 2>conftest.er1
  9358. ac_status=$?
  9359. grep -v '^ *+' conftest.er1 >conftest.err
  9360. rm -f conftest.er1
  9361. cat conftest.err >&5
  9362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9363. (exit $ac_status); } && {
  9364. test -z "$ac_c_werror_flag" ||
  9365. test ! -s conftest.err
  9366. } && test -s conftest$ac_exeext &&
  9367. $as_test_x conftest$ac_exeext; then
  9368. gt_cv_func_gnugettext1_libintl=yes
  9369. else
  9370. echo "$as_me: failed program was:" >&5
  9371. sed 's/^/| /' conftest.$ac_ext >&5
  9372. gt_cv_func_gnugettext1_libintl=no
  9373. fi
  9374. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9375. conftest$ac_exeext conftest.$ac_ext
  9376. if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
  9377. LIBS="$LIBS $LIBICONV"
  9378. cat >conftest.$ac_ext <<_ACEOF
  9379. /* confdefs.h. */
  9380. _ACEOF
  9381. cat confdefs.h >>conftest.$ac_ext
  9382. cat >>conftest.$ac_ext <<_ACEOF
  9383. /* end confdefs.h. */
  9384. #include <libintl.h>
  9385. extern int _nl_msg_cat_cntr;
  9386. extern
  9387. #ifdef __cplusplus
  9388. "C"
  9389. #endif
  9390. const char *_nl_expand_alias ();
  9391. int
  9392. main ()
  9393. {
  9394. bindtextdomain ("", "");
  9395. return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
  9396. ;
  9397. return 0;
  9398. }
  9399. _ACEOF
  9400. rm -f conftest.$ac_objext conftest$ac_exeext
  9401. if { (ac_try="$ac_link"
  9402. case "(($ac_try" in
  9403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9404. *) ac_try_echo=$ac_try;;
  9405. esac
  9406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9407. (eval "$ac_link") 2>conftest.er1
  9408. ac_status=$?
  9409. grep -v '^ *+' conftest.er1 >conftest.err
  9410. rm -f conftest.er1
  9411. cat conftest.err >&5
  9412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9413. (exit $ac_status); } && {
  9414. test -z "$ac_c_werror_flag" ||
  9415. test ! -s conftest.err
  9416. } && test -s conftest$ac_exeext &&
  9417. $as_test_x conftest$ac_exeext; then
  9418. LIBINTL="$LIBINTL $LIBICONV"
  9419. LTLIBINTL="$LTLIBINTL $LTLIBICONV"
  9420. gt_cv_func_gnugettext1_libintl=yes
  9421. else
  9422. echo "$as_me: failed program was:" >&5
  9423. sed 's/^/| /' conftest.$ac_ext >&5
  9424. fi
  9425. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9426. conftest$ac_exeext conftest.$ac_ext
  9427. fi
  9428. CPPFLAGS="$gt_save_CPPFLAGS"
  9429. LIBS="$gt_save_LIBS"
  9430. fi
  9431. { echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
  9432. echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
  9433. fi
  9434. if test "$gt_cv_func_gnugettext1_libc" = "yes" \
  9435. || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
  9436. && test "$PACKAGE" != gettext-runtime \
  9437. && test "$PACKAGE" != gettext-tools; }; then
  9438. gt_use_preinstalled_gnugettext=yes
  9439. else
  9440. LIBINTL=
  9441. LTLIBINTL=
  9442. INCINTL=
  9443. fi
  9444. if test "$gt_use_preinstalled_gnugettext" != "yes"; then
  9445. nls_cv_use_gnu_gettext=yes
  9446. fi
  9447. fi
  9448. if test "$nls_cv_use_gnu_gettext" = "yes"; then
  9449. BUILD_INCLUDED_LIBINTL=yes
  9450. USE_INCLUDED_LIBINTL=yes
  9451. LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
  9452. LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
  9453. LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
  9454. fi
  9455. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9456. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9457. CATOBJEXT=.gmo
  9458. fi
  9459. if test "$gt_use_preinstalled_gnugettext" = "yes" \
  9460. || test "$nls_cv_use_gnu_gettext" = "yes"; then
  9461. cat >>confdefs.h <<\_ACEOF
  9462. #define ENABLE_NLS 1
  9463. _ACEOF
  9464. else
  9465. USE_NLS=no
  9466. fi
  9467. fi
  9468. { echo "$as_me:$LINENO: checking whether to use NLS" >&5
  9469. echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
  9470. { echo "$as_me:$LINENO: result: $USE_NLS" >&5
  9471. echo "${ECHO_T}$USE_NLS" >&6; }
  9472. if test "$USE_NLS" = "yes"; then
  9473. { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
  9474. echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
  9475. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9476. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9477. gt_source="external libintl"
  9478. else
  9479. gt_source="libc"
  9480. fi
  9481. else
  9482. gt_source="included intl directory"
  9483. fi
  9484. { echo "$as_me:$LINENO: result: $gt_source" >&5
  9485. echo "${ECHO_T}$gt_source" >&6; }
  9486. fi
  9487. if test "$USE_NLS" = "yes"; then
  9488. if test "$gt_use_preinstalled_gnugettext" = "yes"; then
  9489. if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
  9490. { echo "$as_me:$LINENO: checking how to link with libintl" >&5
  9491. echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
  9492. { echo "$as_me:$LINENO: result: $LIBINTL" >&5
  9493. echo "${ECHO_T}$LIBINTL" >&6; }
  9494. for element in $INCINTL; do
  9495. haveit=
  9496. for x in $CPPFLAGS; do
  9497. acl_save_prefix="$prefix"
  9498. prefix="$acl_final_prefix"
  9499. acl_save_exec_prefix="$exec_prefix"
  9500. exec_prefix="$acl_final_exec_prefix"
  9501. eval x=\"$x\"
  9502. exec_prefix="$acl_save_exec_prefix"
  9503. prefix="$acl_save_prefix"
  9504. if test "X$x" = "X$element"; then
  9505. haveit=yes
  9506. break
  9507. fi
  9508. done
  9509. if test -z "$haveit"; then
  9510. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
  9511. fi
  9512. done
  9513. fi
  9514. cat >>confdefs.h <<\_ACEOF
  9515. #define HAVE_GETTEXT 1
  9516. _ACEOF
  9517. cat >>confdefs.h <<\_ACEOF
  9518. #define HAVE_DCGETTEXT 1
  9519. _ACEOF
  9520. fi
  9521. POSUB=po
  9522. fi
  9523. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
  9524. BUILD_INCLUDED_LIBINTL=yes
  9525. fi
  9526. nls_cv_header_intl=
  9527. nls_cv_header_libgt=
  9528. DATADIRNAME=share
  9529. INSTOBJEXT=.mo
  9530. GENCAT=gencat
  9531. if test "$USE_INCLUDED_LIBINTL" = yes; then
  9532. INTLOBJS="\$(GETTOBJS)"
  9533. fi
  9534. INTL_LIBTOOL_SUFFIX_PREFIX=
  9535. INTLLIBS="$LIBINTL"
  9536. { echo "$as_me:$LINENO: checking for error_at_line" >&5
  9537. echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
  9538. if test "${ac_cv_lib_error_at_line+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. cat >conftest.$ac_ext <<_ACEOF
  9542. /* confdefs.h. */
  9543. _ACEOF
  9544. cat confdefs.h >>conftest.$ac_ext
  9545. cat >>conftest.$ac_ext <<_ACEOF
  9546. /* end confdefs.h. */
  9547. #include <error.h>
  9548. int
  9549. main ()
  9550. {
  9551. error_at_line (0, 0, "", 0, "an error occurred");
  9552. ;
  9553. return 0;
  9554. }
  9555. _ACEOF
  9556. rm -f conftest.$ac_objext conftest$ac_exeext
  9557. if { (ac_try="$ac_link"
  9558. case "(($ac_try" in
  9559. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9560. *) ac_try_echo=$ac_try;;
  9561. esac
  9562. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9563. (eval "$ac_link") 2>conftest.er1
  9564. ac_status=$?
  9565. grep -v '^ *+' conftest.er1 >conftest.err
  9566. rm -f conftest.er1
  9567. cat conftest.err >&5
  9568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9569. (exit $ac_status); } && {
  9570. test -z "$ac_c_werror_flag" ||
  9571. test ! -s conftest.err
  9572. } && test -s conftest$ac_exeext &&
  9573. $as_test_x conftest$ac_exeext; then
  9574. ac_cv_lib_error_at_line=yes
  9575. else
  9576. echo "$as_me: failed program was:" >&5
  9577. sed 's/^/| /' conftest.$ac_ext >&5
  9578. ac_cv_lib_error_at_line=no
  9579. fi
  9580. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9581. conftest$ac_exeext conftest.$ac_ext
  9582. fi
  9583. { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
  9584. echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
  9585. if test $ac_cv_lib_error_at_line = no; then
  9586. case " $LIBOBJS " in
  9587. *" error.$ac_objext "* ) ;;
  9588. *) LIBOBJS="$LIBOBJS error.$ac_objext"
  9589. ;;
  9590. esac
  9591. fi
  9592. for ac_header in stdlib.h
  9593. do
  9594. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9595. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9596. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9597. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9598. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9599. echo $ECHO_N "(cached) $ECHO_C" >&6
  9600. fi
  9601. ac_res=`eval echo '${'$as_ac_Header'}'`
  9602. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9603. echo "${ECHO_T}$ac_res" >&6; }
  9604. else
  9605. # Is the header compilable?
  9606. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9607. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9608. cat >conftest.$ac_ext <<_ACEOF
  9609. /* confdefs.h. */
  9610. _ACEOF
  9611. cat confdefs.h >>conftest.$ac_ext
  9612. cat >>conftest.$ac_ext <<_ACEOF
  9613. /* end confdefs.h. */
  9614. $ac_includes_default
  9615. #include <$ac_header>
  9616. _ACEOF
  9617. rm -f conftest.$ac_objext
  9618. if { (ac_try="$ac_compile"
  9619. case "(($ac_try" in
  9620. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9621. *) ac_try_echo=$ac_try;;
  9622. esac
  9623. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9624. (eval "$ac_compile") 2>conftest.er1
  9625. ac_status=$?
  9626. grep -v '^ *+' conftest.er1 >conftest.err
  9627. rm -f conftest.er1
  9628. cat conftest.err >&5
  9629. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9630. (exit $ac_status); } && {
  9631. test -z "$ac_c_werror_flag" ||
  9632. test ! -s conftest.err
  9633. } && test -s conftest.$ac_objext; then
  9634. ac_header_compiler=yes
  9635. else
  9636. echo "$as_me: failed program was:" >&5
  9637. sed 's/^/| /' conftest.$ac_ext >&5
  9638. ac_header_compiler=no
  9639. fi
  9640. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9641. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9642. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9643. # Is the header present?
  9644. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9645. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9646. cat >conftest.$ac_ext <<_ACEOF
  9647. /* confdefs.h. */
  9648. _ACEOF
  9649. cat confdefs.h >>conftest.$ac_ext
  9650. cat >>conftest.$ac_ext <<_ACEOF
  9651. /* end confdefs.h. */
  9652. #include <$ac_header>
  9653. _ACEOF
  9654. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9655. case "(($ac_try" in
  9656. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9657. *) ac_try_echo=$ac_try;;
  9658. esac
  9659. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9660. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9661. ac_status=$?
  9662. grep -v '^ *+' conftest.er1 >conftest.err
  9663. rm -f conftest.er1
  9664. cat conftest.err >&5
  9665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9666. (exit $ac_status); } >/dev/null && {
  9667. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9668. test ! -s conftest.err
  9669. }; then
  9670. ac_header_preproc=yes
  9671. else
  9672. echo "$as_me: failed program was:" >&5
  9673. sed 's/^/| /' conftest.$ac_ext >&5
  9674. ac_header_preproc=no
  9675. fi
  9676. rm -f conftest.err conftest.$ac_ext
  9677. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9678. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9679. # So? What about this header?
  9680. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9681. yes:no: )
  9682. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9683. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9684. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9685. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9686. ac_header_preproc=yes
  9687. ;;
  9688. no:yes:* )
  9689. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9690. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9691. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9692. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9693. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9694. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9695. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9696. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9697. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9698. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9699. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9700. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9701. ( cat <<\_ASBOX
  9702. ## ----------------------------------------------- ##
  9703. ## Report this to t-tujikawa@users.sourceforge.net ##
  9704. ## ----------------------------------------------- ##
  9705. _ASBOX
  9706. ) | sed "s/^/$as_me: WARNING: /" >&2
  9707. ;;
  9708. esac
  9709. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9710. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9711. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9712. echo $ECHO_N "(cached) $ECHO_C" >&6
  9713. else
  9714. eval "$as_ac_Header=\$ac_header_preproc"
  9715. fi
  9716. ac_res=`eval echo '${'$as_ac_Header'}'`
  9717. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9718. echo "${ECHO_T}$ac_res" >&6; }
  9719. fi
  9720. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9721. cat >>confdefs.h <<_ACEOF
  9722. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9723. _ACEOF
  9724. fi
  9725. done
  9726. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9727. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  9728. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9729. echo $ECHO_N "(cached) $ECHO_C" >&6
  9730. else
  9731. if test "$cross_compiling" = yes; then
  9732. ac_cv_func_malloc_0_nonnull=no
  9733. else
  9734. cat >conftest.$ac_ext <<_ACEOF
  9735. /* confdefs.h. */
  9736. _ACEOF
  9737. cat confdefs.h >>conftest.$ac_ext
  9738. cat >>conftest.$ac_ext <<_ACEOF
  9739. /* end confdefs.h. */
  9740. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9741. # include <stdlib.h>
  9742. #else
  9743. char *malloc ();
  9744. #endif
  9745. int
  9746. main ()
  9747. {
  9748. return ! malloc (0);
  9749. ;
  9750. return 0;
  9751. }
  9752. _ACEOF
  9753. rm -f conftest$ac_exeext
  9754. if { (ac_try="$ac_link"
  9755. case "(($ac_try" in
  9756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9757. *) ac_try_echo=$ac_try;;
  9758. esac
  9759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9760. (eval "$ac_link") 2>&5
  9761. ac_status=$?
  9762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9763. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9764. { (case "(($ac_try" in
  9765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9766. *) ac_try_echo=$ac_try;;
  9767. esac
  9768. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9769. (eval "$ac_try") 2>&5
  9770. ac_status=$?
  9771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9772. (exit $ac_status); }; }; then
  9773. ac_cv_func_malloc_0_nonnull=yes
  9774. else
  9775. echo "$as_me: program exited with status $ac_status" >&5
  9776. echo "$as_me: failed program was:" >&5
  9777. sed 's/^/| /' conftest.$ac_ext >&5
  9778. ( exit $ac_status )
  9779. ac_cv_func_malloc_0_nonnull=no
  9780. fi
  9781. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9782. fi
  9783. fi
  9784. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9785. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  9786. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9787. cat >>confdefs.h <<\_ACEOF
  9788. #define HAVE_MALLOC 1
  9789. _ACEOF
  9790. else
  9791. cat >>confdefs.h <<\_ACEOF
  9792. #define HAVE_MALLOC 0
  9793. _ACEOF
  9794. case " $LIBOBJS " in
  9795. *" malloc.$ac_objext "* ) ;;
  9796. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  9797. ;;
  9798. esac
  9799. cat >>confdefs.h <<\_ACEOF
  9800. #define malloc rpl_malloc
  9801. _ACEOF
  9802. fi
  9803. { echo "$as_me:$LINENO: checking for working memcmp" >&5
  9804. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
  9805. if test "${ac_cv_func_memcmp_working+set}" = set; then
  9806. echo $ECHO_N "(cached) $ECHO_C" >&6
  9807. else
  9808. if test "$cross_compiling" = yes; then
  9809. ac_cv_func_memcmp_working=no
  9810. else
  9811. cat >conftest.$ac_ext <<_ACEOF
  9812. /* confdefs.h. */
  9813. _ACEOF
  9814. cat confdefs.h >>conftest.$ac_ext
  9815. cat >>conftest.$ac_ext <<_ACEOF
  9816. /* end confdefs.h. */
  9817. $ac_includes_default
  9818. int
  9819. main ()
  9820. {
  9821. /* Some versions of memcmp are not 8-bit clean. */
  9822. char c0 = '\100', c1 = '\200', c2 = '\201';
  9823. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  9824. return 1;
  9825. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  9826. or more and with at least one buffer not starting on a 4-byte boundary.
  9827. William Lewis provided this test program. */
  9828. {
  9829. char foo[21];
  9830. char bar[21];
  9831. int i;
  9832. for (i = 0; i < 4; i++)
  9833. {
  9834. char *a = foo + i;
  9835. char *b = bar + i;
  9836. strcpy (a, "--------01111111");
  9837. strcpy (b, "--------10000000");
  9838. if (memcmp (a, b, 16) >= 0)
  9839. return 1;
  9840. }
  9841. return 0;
  9842. }
  9843. ;
  9844. return 0;
  9845. }
  9846. _ACEOF
  9847. rm -f conftest$ac_exeext
  9848. if { (ac_try="$ac_link"
  9849. case "(($ac_try" in
  9850. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9851. *) ac_try_echo=$ac_try;;
  9852. esac
  9853. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9854. (eval "$ac_link") 2>&5
  9855. ac_status=$?
  9856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9857. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9858. { (case "(($ac_try" in
  9859. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9860. *) ac_try_echo=$ac_try;;
  9861. esac
  9862. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9863. (eval "$ac_try") 2>&5
  9864. ac_status=$?
  9865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9866. (exit $ac_status); }; }; then
  9867. ac_cv_func_memcmp_working=yes
  9868. else
  9869. echo "$as_me: program exited with status $ac_status" >&5
  9870. echo "$as_me: failed program was:" >&5
  9871. sed 's/^/| /' conftest.$ac_ext >&5
  9872. ( exit $ac_status )
  9873. ac_cv_func_memcmp_working=no
  9874. fi
  9875. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9876. fi
  9877. fi
  9878. { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  9879. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
  9880. test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  9881. *" memcmp.$ac_objext "* ) ;;
  9882. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  9883. ;;
  9884. esac
  9885. for ac_header in stdlib.h unistd.h
  9886. do
  9887. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9888. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9889. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9890. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9891. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9892. echo $ECHO_N "(cached) $ECHO_C" >&6
  9893. fi
  9894. ac_res=`eval echo '${'$as_ac_Header'}'`
  9895. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9896. echo "${ECHO_T}$ac_res" >&6; }
  9897. else
  9898. # Is the header compilable?
  9899. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9900. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9901. cat >conftest.$ac_ext <<_ACEOF
  9902. /* confdefs.h. */
  9903. _ACEOF
  9904. cat confdefs.h >>conftest.$ac_ext
  9905. cat >>conftest.$ac_ext <<_ACEOF
  9906. /* end confdefs.h. */
  9907. $ac_includes_default
  9908. #include <$ac_header>
  9909. _ACEOF
  9910. rm -f conftest.$ac_objext
  9911. if { (ac_try="$ac_compile"
  9912. case "(($ac_try" in
  9913. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9914. *) ac_try_echo=$ac_try;;
  9915. esac
  9916. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9917. (eval "$ac_compile") 2>conftest.er1
  9918. ac_status=$?
  9919. grep -v '^ *+' conftest.er1 >conftest.err
  9920. rm -f conftest.er1
  9921. cat conftest.err >&5
  9922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9923. (exit $ac_status); } && {
  9924. test -z "$ac_c_werror_flag" ||
  9925. test ! -s conftest.err
  9926. } && test -s conftest.$ac_objext; then
  9927. ac_header_compiler=yes
  9928. else
  9929. echo "$as_me: failed program was:" >&5
  9930. sed 's/^/| /' conftest.$ac_ext >&5
  9931. ac_header_compiler=no
  9932. fi
  9933. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9934. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9935. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9936. # Is the header present?
  9937. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9938. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9939. cat >conftest.$ac_ext <<_ACEOF
  9940. /* confdefs.h. */
  9941. _ACEOF
  9942. cat confdefs.h >>conftest.$ac_ext
  9943. cat >>conftest.$ac_ext <<_ACEOF
  9944. /* end confdefs.h. */
  9945. #include <$ac_header>
  9946. _ACEOF
  9947. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9948. case "(($ac_try" in
  9949. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9950. *) ac_try_echo=$ac_try;;
  9951. esac
  9952. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9953. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9954. ac_status=$?
  9955. grep -v '^ *+' conftest.er1 >conftest.err
  9956. rm -f conftest.er1
  9957. cat conftest.err >&5
  9958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9959. (exit $ac_status); } >/dev/null && {
  9960. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  9961. test ! -s conftest.err
  9962. }; then
  9963. ac_header_preproc=yes
  9964. else
  9965. echo "$as_me: failed program was:" >&5
  9966. sed 's/^/| /' conftest.$ac_ext >&5
  9967. ac_header_preproc=no
  9968. fi
  9969. rm -f conftest.err conftest.$ac_ext
  9970. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9971. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9972. # So? What about this header?
  9973. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9974. yes:no: )
  9975. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9976. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9977. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9978. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9979. ac_header_preproc=yes
  9980. ;;
  9981. no:yes:* )
  9982. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9983. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9984. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9985. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9986. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9987. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9988. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9989. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9990. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9991. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9992. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9993. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9994. ( cat <<\_ASBOX
  9995. ## ----------------------------------------------- ##
  9996. ## Report this to t-tujikawa@users.sourceforge.net ##
  9997. ## ----------------------------------------------- ##
  9998. _ASBOX
  9999. ) | sed "s/^/$as_me: WARNING: /" >&2
  10000. ;;
  10001. esac
  10002. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10003. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10004. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10005. echo $ECHO_N "(cached) $ECHO_C" >&6
  10006. else
  10007. eval "$as_ac_Header=\$ac_header_preproc"
  10008. fi
  10009. ac_res=`eval echo '${'$as_ac_Header'}'`
  10010. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10011. echo "${ECHO_T}$ac_res" >&6; }
  10012. fi
  10013. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10014. cat >>confdefs.h <<_ACEOF
  10015. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10016. _ACEOF
  10017. fi
  10018. done
  10019. for ac_func in getpagesize
  10020. do
  10021. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10022. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10023. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10024. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10025. echo $ECHO_N "(cached) $ECHO_C" >&6
  10026. else
  10027. cat >conftest.$ac_ext <<_ACEOF
  10028. /* confdefs.h. */
  10029. _ACEOF
  10030. cat confdefs.h >>conftest.$ac_ext
  10031. cat >>conftest.$ac_ext <<_ACEOF
  10032. /* end confdefs.h. */
  10033. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10034. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10035. #define $ac_func innocuous_$ac_func
  10036. /* System header to define __stub macros and hopefully few prototypes,
  10037. which can conflict with char $ac_func (); below.
  10038. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10039. <limits.h> exists even on freestanding compilers. */
  10040. #ifdef __STDC__
  10041. # include <limits.h>
  10042. #else
  10043. # include <assert.h>
  10044. #endif
  10045. #undef $ac_func
  10046. /* Override any GCC internal prototype to avoid an error.
  10047. Use char because int might match the return type of a GCC
  10048. builtin and then its argument prototype would still apply. */
  10049. #ifdef __cplusplus
  10050. extern "C"
  10051. #endif
  10052. char $ac_func ();
  10053. /* The GNU C library defines this for functions which it implements
  10054. to always fail with ENOSYS. Some functions are actually named
  10055. something starting with __ and the normal name is an alias. */
  10056. #if defined __stub_$ac_func || defined __stub___$ac_func
  10057. choke me
  10058. #endif
  10059. int
  10060. main ()
  10061. {
  10062. return $ac_func ();
  10063. ;
  10064. return 0;
  10065. }
  10066. _ACEOF
  10067. rm -f conftest.$ac_objext conftest$ac_exeext
  10068. if { (ac_try="$ac_link"
  10069. case "(($ac_try" in
  10070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10071. *) ac_try_echo=$ac_try;;
  10072. esac
  10073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10074. (eval "$ac_link") 2>conftest.er1
  10075. ac_status=$?
  10076. grep -v '^ *+' conftest.er1 >conftest.err
  10077. rm -f conftest.er1
  10078. cat conftest.err >&5
  10079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10080. (exit $ac_status); } && {
  10081. test -z "$ac_c_werror_flag" ||
  10082. test ! -s conftest.err
  10083. } && test -s conftest$ac_exeext &&
  10084. $as_test_x conftest$ac_exeext; then
  10085. eval "$as_ac_var=yes"
  10086. else
  10087. echo "$as_me: failed program was:" >&5
  10088. sed 's/^/| /' conftest.$ac_ext >&5
  10089. eval "$as_ac_var=no"
  10090. fi
  10091. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10092. conftest$ac_exeext conftest.$ac_ext
  10093. fi
  10094. ac_res=`eval echo '${'$as_ac_var'}'`
  10095. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10096. echo "${ECHO_T}$ac_res" >&6; }
  10097. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10098. cat >>confdefs.h <<_ACEOF
  10099. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10100. _ACEOF
  10101. fi
  10102. done
  10103. { echo "$as_me:$LINENO: checking for working mmap" >&5
  10104. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  10105. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  10106. echo $ECHO_N "(cached) $ECHO_C" >&6
  10107. else
  10108. if test "$cross_compiling" = yes; then
  10109. ac_cv_func_mmap_fixed_mapped=no
  10110. else
  10111. cat >conftest.$ac_ext <<_ACEOF
  10112. /* confdefs.h. */
  10113. _ACEOF
  10114. cat confdefs.h >>conftest.$ac_ext
  10115. cat >>conftest.$ac_ext <<_ACEOF
  10116. /* end confdefs.h. */
  10117. $ac_includes_default
  10118. /* malloc might have been renamed as rpl_malloc. */
  10119. #undef malloc
  10120. /* Thanks to Mike Haertel and Jim Avera for this test.
  10121. Here is a matrix of mmap possibilities:
  10122. mmap private not fixed
  10123. mmap private fixed at somewhere currently unmapped
  10124. mmap private fixed at somewhere already mapped
  10125. mmap shared not fixed
  10126. mmap shared fixed at somewhere currently unmapped
  10127. mmap shared fixed at somewhere already mapped
  10128. For private mappings, we should verify that changes cannot be read()
  10129. back from the file, nor mmap's back from the file at a different
  10130. address. (There have been systems where private was not correctly
  10131. implemented like the infamous i386 svr4.0, and systems where the
  10132. VM page cache was not coherent with the file system buffer cache
  10133. like early versions of FreeBSD and possibly contemporary NetBSD.)
  10134. For shared mappings, we should conversely verify that changes get
  10135. propagated back to all the places they're supposed to be.
  10136. Grep wants private fixed already mapped.
  10137. The main things grep needs to know about mmap are:
  10138. * does it exist and is it safe to write into the mmap'd area
  10139. * how to use it (BSD variants) */
  10140. #include <fcntl.h>
  10141. #include <sys/mman.h>
  10142. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  10143. char *malloc ();
  10144. #endif
  10145. /* This mess was copied from the GNU getpagesize.h. */
  10146. #ifndef HAVE_GETPAGESIZE
  10147. /* Assume that all systems that can run configure have sys/param.h. */
  10148. # ifndef HAVE_SYS_PARAM_H
  10149. # define HAVE_SYS_PARAM_H 1
  10150. # endif
  10151. # ifdef _SC_PAGESIZE
  10152. # define getpagesize() sysconf(_SC_PAGESIZE)
  10153. # else /* no _SC_PAGESIZE */
  10154. # ifdef HAVE_SYS_PARAM_H
  10155. # include <sys/param.h>
  10156. # ifdef EXEC_PAGESIZE
  10157. # define getpagesize() EXEC_PAGESIZE
  10158. # else /* no EXEC_PAGESIZE */
  10159. # ifdef NBPG
  10160. # define getpagesize() NBPG * CLSIZE
  10161. # ifndef CLSIZE
  10162. # define CLSIZE 1
  10163. # endif /* no CLSIZE */
  10164. # else /* no NBPG */
  10165. # ifdef NBPC
  10166. # define getpagesize() NBPC
  10167. # else /* no NBPC */
  10168. # ifdef PAGESIZE
  10169. # define getpagesize() PAGESIZE
  10170. # endif /* PAGESIZE */
  10171. # endif /* no NBPC */
  10172. # endif /* no NBPG */
  10173. # endif /* no EXEC_PAGESIZE */
  10174. # else /* no HAVE_SYS_PARAM_H */
  10175. # define getpagesize() 8192 /* punt totally */
  10176. # endif /* no HAVE_SYS_PARAM_H */
  10177. # endif /* no _SC_PAGESIZE */
  10178. #endif /* no HAVE_GETPAGESIZE */
  10179. int
  10180. main ()
  10181. {
  10182. char *data, *data2, *data3;
  10183. int i, pagesize;
  10184. int fd;
  10185. pagesize = getpagesize ();
  10186. /* First, make a file with some known garbage in it. */
  10187. data = (char *) malloc (pagesize);
  10188. if (!data)
  10189. return 1;
  10190. for (i = 0; i < pagesize; ++i)
  10191. *(data + i) = rand ();
  10192. umask (0);
  10193. fd = creat ("conftest.mmap", 0600);
  10194. if (fd < 0)
  10195. return 1;
  10196. if (write (fd, data, pagesize) != pagesize)
  10197. return 1;
  10198. close (fd);
  10199. /* Next, try to mmap the file at a fixed address which already has
  10200. something else allocated at it. If we can, also make sure that
  10201. we see the same garbage. */
  10202. fd = open ("conftest.mmap", O_RDWR);
  10203. if (fd < 0)
  10204. return 1;
  10205. data2 = (char *) malloc (2 * pagesize);
  10206. if (!data2)
  10207. return 1;
  10208. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  10209. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10210. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10211. return 1;
  10212. for (i = 0; i < pagesize; ++i)
  10213. if (*(data + i) != *(data2 + i))
  10214. return 1;
  10215. /* Finally, make sure that changes to the mapped area do not
  10216. percolate back to the file as seen by read(). (This is a bug on
  10217. some variants of i386 svr4.0.) */
  10218. for (i = 0; i < pagesize; ++i)
  10219. *(data2 + i) = *(data2 + i) + 1;
  10220. data3 = (char *) malloc (pagesize);
  10221. if (!data3)
  10222. return 1;
  10223. if (read (fd, data3, pagesize) != pagesize)
  10224. return 1;
  10225. for (i = 0; i < pagesize; ++i)
  10226. if (*(data + i) != *(data3 + i))
  10227. return 1;
  10228. close (fd);
  10229. return 0;
  10230. }
  10231. _ACEOF
  10232. rm -f conftest$ac_exeext
  10233. if { (ac_try="$ac_link"
  10234. case "(($ac_try" in
  10235. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10236. *) ac_try_echo=$ac_try;;
  10237. esac
  10238. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10239. (eval "$ac_link") 2>&5
  10240. ac_status=$?
  10241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10242. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10243. { (case "(($ac_try" in
  10244. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10245. *) ac_try_echo=$ac_try;;
  10246. esac
  10247. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10248. (eval "$ac_try") 2>&5
  10249. ac_status=$?
  10250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10251. (exit $ac_status); }; }; then
  10252. ac_cv_func_mmap_fixed_mapped=yes
  10253. else
  10254. echo "$as_me: program exited with status $ac_status" >&5
  10255. echo "$as_me: failed program was:" >&5
  10256. sed 's/^/| /' conftest.$ac_ext >&5
  10257. ( exit $ac_status )
  10258. ac_cv_func_mmap_fixed_mapped=no
  10259. fi
  10260. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10261. fi
  10262. fi
  10263. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10264. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  10265. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10266. cat >>confdefs.h <<\_ACEOF
  10267. #define HAVE_MMAP 1
  10268. _ACEOF
  10269. fi
  10270. rm -f conftest.mmap
  10271. for ac_header in stdlib.h
  10272. do
  10273. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10274. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10275. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10276. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10277. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10278. echo $ECHO_N "(cached) $ECHO_C" >&6
  10279. fi
  10280. ac_res=`eval echo '${'$as_ac_Header'}'`
  10281. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10282. echo "${ECHO_T}$ac_res" >&6; }
  10283. else
  10284. # Is the header compilable?
  10285. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10286. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10287. cat >conftest.$ac_ext <<_ACEOF
  10288. /* confdefs.h. */
  10289. _ACEOF
  10290. cat confdefs.h >>conftest.$ac_ext
  10291. cat >>conftest.$ac_ext <<_ACEOF
  10292. /* end confdefs.h. */
  10293. $ac_includes_default
  10294. #include <$ac_header>
  10295. _ACEOF
  10296. rm -f conftest.$ac_objext
  10297. if { (ac_try="$ac_compile"
  10298. case "(($ac_try" in
  10299. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10300. *) ac_try_echo=$ac_try;;
  10301. esac
  10302. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10303. (eval "$ac_compile") 2>conftest.er1
  10304. ac_status=$?
  10305. grep -v '^ *+' conftest.er1 >conftest.err
  10306. rm -f conftest.er1
  10307. cat conftest.err >&5
  10308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10309. (exit $ac_status); } && {
  10310. test -z "$ac_c_werror_flag" ||
  10311. test ! -s conftest.err
  10312. } && test -s conftest.$ac_objext; then
  10313. ac_header_compiler=yes
  10314. else
  10315. echo "$as_me: failed program was:" >&5
  10316. sed 's/^/| /' conftest.$ac_ext >&5
  10317. ac_header_compiler=no
  10318. fi
  10319. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10320. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10321. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10322. # Is the header present?
  10323. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10324. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10325. cat >conftest.$ac_ext <<_ACEOF
  10326. /* confdefs.h. */
  10327. _ACEOF
  10328. cat confdefs.h >>conftest.$ac_ext
  10329. cat >>conftest.$ac_ext <<_ACEOF
  10330. /* end confdefs.h. */
  10331. #include <$ac_header>
  10332. _ACEOF
  10333. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10334. case "(($ac_try" in
  10335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10336. *) ac_try_echo=$ac_try;;
  10337. esac
  10338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10339. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10340. ac_status=$?
  10341. grep -v '^ *+' conftest.er1 >conftest.err
  10342. rm -f conftest.er1
  10343. cat conftest.err >&5
  10344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10345. (exit $ac_status); } >/dev/null && {
  10346. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10347. test ! -s conftest.err
  10348. }; then
  10349. ac_header_preproc=yes
  10350. else
  10351. echo "$as_me: failed program was:" >&5
  10352. sed 's/^/| /' conftest.$ac_ext >&5
  10353. ac_header_preproc=no
  10354. fi
  10355. rm -f conftest.err conftest.$ac_ext
  10356. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10357. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10358. # So? What about this header?
  10359. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10360. yes:no: )
  10361. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10362. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10363. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10364. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10365. ac_header_preproc=yes
  10366. ;;
  10367. no:yes:* )
  10368. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10369. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10370. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10371. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10372. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10373. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10374. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10375. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10377. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10378. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10379. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10380. ( cat <<\_ASBOX
  10381. ## ----------------------------------------------- ##
  10382. ## Report this to t-tujikawa@users.sourceforge.net ##
  10383. ## ----------------------------------------------- ##
  10384. _ASBOX
  10385. ) | sed "s/^/$as_me: WARNING: /" >&2
  10386. ;;
  10387. esac
  10388. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10389. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10390. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10391. echo $ECHO_N "(cached) $ECHO_C" >&6
  10392. else
  10393. eval "$as_ac_Header=\$ac_header_preproc"
  10394. fi
  10395. ac_res=`eval echo '${'$as_ac_Header'}'`
  10396. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10397. echo "${ECHO_T}$ac_res" >&6; }
  10398. fi
  10399. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10400. cat >>confdefs.h <<_ACEOF
  10401. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10402. _ACEOF
  10403. fi
  10404. done
  10405. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10406. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  10407. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10408. echo $ECHO_N "(cached) $ECHO_C" >&6
  10409. else
  10410. if test "$cross_compiling" = yes; then
  10411. ac_cv_func_realloc_0_nonnull=no
  10412. else
  10413. cat >conftest.$ac_ext <<_ACEOF
  10414. /* confdefs.h. */
  10415. _ACEOF
  10416. cat confdefs.h >>conftest.$ac_ext
  10417. cat >>conftest.$ac_ext <<_ACEOF
  10418. /* end confdefs.h. */
  10419. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  10420. # include <stdlib.h>
  10421. #else
  10422. char *realloc ();
  10423. #endif
  10424. int
  10425. main ()
  10426. {
  10427. return ! realloc (0, 0);
  10428. ;
  10429. return 0;
  10430. }
  10431. _ACEOF
  10432. rm -f conftest$ac_exeext
  10433. if { (ac_try="$ac_link"
  10434. case "(($ac_try" in
  10435. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10436. *) ac_try_echo=$ac_try;;
  10437. esac
  10438. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10439. (eval "$ac_link") 2>&5
  10440. ac_status=$?
  10441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10442. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10443. { (case "(($ac_try" in
  10444. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10445. *) ac_try_echo=$ac_try;;
  10446. esac
  10447. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10448. (eval "$ac_try") 2>&5
  10449. ac_status=$?
  10450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10451. (exit $ac_status); }; }; then
  10452. ac_cv_func_realloc_0_nonnull=yes
  10453. else
  10454. echo "$as_me: program exited with status $ac_status" >&5
  10455. echo "$as_me: failed program was:" >&5
  10456. sed 's/^/| /' conftest.$ac_ext >&5
  10457. ( exit $ac_status )
  10458. ac_cv_func_realloc_0_nonnull=no
  10459. fi
  10460. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10461. fi
  10462. fi
  10463. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10464. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  10465. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10466. cat >>confdefs.h <<\_ACEOF
  10467. #define HAVE_REALLOC 1
  10468. _ACEOF
  10469. else
  10470. cat >>confdefs.h <<\_ACEOF
  10471. #define HAVE_REALLOC 0
  10472. _ACEOF
  10473. case " $LIBOBJS " in
  10474. *" realloc.$ac_objext "* ) ;;
  10475. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  10476. ;;
  10477. esac
  10478. cat >>confdefs.h <<\_ACEOF
  10479. #define realloc rpl_realloc
  10480. _ACEOF
  10481. fi
  10482. for ac_header in sys/select.h sys/socket.h
  10483. do
  10484. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10485. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10486. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10489. echo $ECHO_N "(cached) $ECHO_C" >&6
  10490. fi
  10491. ac_res=`eval echo '${'$as_ac_Header'}'`
  10492. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10493. echo "${ECHO_T}$ac_res" >&6; }
  10494. else
  10495. # Is the header compilable?
  10496. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10497. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  10498. cat >conftest.$ac_ext <<_ACEOF
  10499. /* confdefs.h. */
  10500. _ACEOF
  10501. cat confdefs.h >>conftest.$ac_ext
  10502. cat >>conftest.$ac_ext <<_ACEOF
  10503. /* end confdefs.h. */
  10504. $ac_includes_default
  10505. #include <$ac_header>
  10506. _ACEOF
  10507. rm -f conftest.$ac_objext
  10508. if { (ac_try="$ac_compile"
  10509. case "(($ac_try" in
  10510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10511. *) ac_try_echo=$ac_try;;
  10512. esac
  10513. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10514. (eval "$ac_compile") 2>conftest.er1
  10515. ac_status=$?
  10516. grep -v '^ *+' conftest.er1 >conftest.err
  10517. rm -f conftest.er1
  10518. cat conftest.err >&5
  10519. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10520. (exit $ac_status); } && {
  10521. test -z "$ac_c_werror_flag" ||
  10522. test ! -s conftest.err
  10523. } && test -s conftest.$ac_objext; then
  10524. ac_header_compiler=yes
  10525. else
  10526. echo "$as_me: failed program was:" >&5
  10527. sed 's/^/| /' conftest.$ac_ext >&5
  10528. ac_header_compiler=no
  10529. fi
  10530. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10531. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10532. echo "${ECHO_T}$ac_header_compiler" >&6; }
  10533. # Is the header present?
  10534. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10535. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  10536. cat >conftest.$ac_ext <<_ACEOF
  10537. /* confdefs.h. */
  10538. _ACEOF
  10539. cat confdefs.h >>conftest.$ac_ext
  10540. cat >>conftest.$ac_ext <<_ACEOF
  10541. /* end confdefs.h. */
  10542. #include <$ac_header>
  10543. _ACEOF
  10544. if { (ac_try="$ac_cpp conftest.$ac_ext"
  10545. case "(($ac_try" in
  10546. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10547. *) ac_try_echo=$ac_try;;
  10548. esac
  10549. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10550. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  10551. ac_status=$?
  10552. grep -v '^ *+' conftest.er1 >conftest.err
  10553. rm -f conftest.er1
  10554. cat conftest.err >&5
  10555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10556. (exit $ac_status); } >/dev/null && {
  10557. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  10558. test ! -s conftest.err
  10559. }; then
  10560. ac_header_preproc=yes
  10561. else
  10562. echo "$as_me: failed program was:" >&5
  10563. sed 's/^/| /' conftest.$ac_ext >&5
  10564. ac_header_preproc=no
  10565. fi
  10566. rm -f conftest.err conftest.$ac_ext
  10567. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10568. echo "${ECHO_T}$ac_header_preproc" >&6; }
  10569. # So? What about this header?
  10570. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10571. yes:no: )
  10572. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10573. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10574. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10575. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10576. ac_header_preproc=yes
  10577. ;;
  10578. no:yes:* )
  10579. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10580. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10581. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10582. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10583. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10584. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10585. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10586. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10587. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10588. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10589. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10590. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10591. ( cat <<\_ASBOX
  10592. ## ----------------------------------------------- ##
  10593. ## Report this to t-tujikawa@users.sourceforge.net ##
  10594. ## ----------------------------------------------- ##
  10595. _ASBOX
  10596. ) | sed "s/^/$as_me: WARNING: /" >&2
  10597. ;;
  10598. esac
  10599. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  10600. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  10601. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  10602. echo $ECHO_N "(cached) $ECHO_C" >&6
  10603. else
  10604. eval "$as_ac_Header=\$ac_header_preproc"
  10605. fi
  10606. ac_res=`eval echo '${'$as_ac_Header'}'`
  10607. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10608. echo "${ECHO_T}$ac_res" >&6; }
  10609. fi
  10610. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10611. cat >>confdefs.h <<_ACEOF
  10612. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10613. _ACEOF
  10614. fi
  10615. done
  10616. { echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10617. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
  10618. if test "${ac_cv_func_select_args+set}" = set; then
  10619. echo $ECHO_N "(cached) $ECHO_C" >&6
  10620. else
  10621. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10622. for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  10623. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10624. cat >conftest.$ac_ext <<_ACEOF
  10625. /* confdefs.h. */
  10626. _ACEOF
  10627. cat confdefs.h >>conftest.$ac_ext
  10628. cat >>conftest.$ac_ext <<_ACEOF
  10629. /* end confdefs.h. */
  10630. $ac_includes_default
  10631. #ifdef HAVE_SYS_SELECT_H
  10632. # include <sys/select.h>
  10633. #endif
  10634. #ifdef HAVE_SYS_SOCKET_H
  10635. # include <sys/socket.h>
  10636. #endif
  10637. int
  10638. main ()
  10639. {
  10640. extern int select ($ac_arg1,
  10641. $ac_arg234, $ac_arg234, $ac_arg234,
  10642. $ac_arg5);
  10643. ;
  10644. return 0;
  10645. }
  10646. _ACEOF
  10647. rm -f conftest.$ac_objext
  10648. if { (ac_try="$ac_compile"
  10649. case "(($ac_try" in
  10650. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10651. *) ac_try_echo=$ac_try;;
  10652. esac
  10653. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10654. (eval "$ac_compile") 2>conftest.er1
  10655. ac_status=$?
  10656. grep -v '^ *+' conftest.er1 >conftest.err
  10657. rm -f conftest.er1
  10658. cat conftest.err >&5
  10659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10660. (exit $ac_status); } && {
  10661. test -z "$ac_c_werror_flag" ||
  10662. test ! -s conftest.err
  10663. } && test -s conftest.$ac_objext; then
  10664. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10665. else
  10666. echo "$as_me: failed program was:" >&5
  10667. sed 's/^/| /' conftest.$ac_ext >&5
  10668. fi
  10669. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10670. done
  10671. done
  10672. done
  10673. # Provide a safe default value.
  10674. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10675. fi
  10676. { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10677. echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
  10678. ac_save_IFS=$IFS; IFS=','
  10679. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10680. IFS=$ac_save_IFS
  10681. shift
  10682. cat >>confdefs.h <<_ACEOF
  10683. #define SELECT_TYPE_ARG1 $1
  10684. _ACEOF
  10685. cat >>confdefs.h <<_ACEOF
  10686. #define SELECT_TYPE_ARG234 ($2)
  10687. _ACEOF
  10688. cat >>confdefs.h <<_ACEOF
  10689. #define SELECT_TYPE_ARG5 ($3)
  10690. _ACEOF
  10691. rm -f conftest*
  10692. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  10693. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  10694. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  10695. echo $ECHO_N "(cached) $ECHO_C" >&6
  10696. else
  10697. rm -f conftest.sym conftest.file
  10698. echo >conftest.file
  10699. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  10700. if test "$cross_compiling" = yes; then
  10701. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10702. else
  10703. cat >conftest.$ac_ext <<_ACEOF
  10704. /* confdefs.h. */
  10705. _ACEOF
  10706. cat confdefs.h >>conftest.$ac_ext
  10707. cat >>conftest.$ac_ext <<_ACEOF
  10708. /* end confdefs.h. */
  10709. $ac_includes_default
  10710. int
  10711. main ()
  10712. {
  10713. struct stat sbuf;
  10714. /* Linux will dereference the symlink and fail.
  10715. That is better in the sense that it means we will not
  10716. have to compile and use the lstat wrapper. */
  10717. return lstat ("conftest.sym/", &sbuf) == 0;
  10718. ;
  10719. return 0;
  10720. }
  10721. _ACEOF
  10722. rm -f conftest$ac_exeext
  10723. if { (ac_try="$ac_link"
  10724. case "(($ac_try" in
  10725. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10726. *) ac_try_echo=$ac_try;;
  10727. esac
  10728. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10729. (eval "$ac_link") 2>&5
  10730. ac_status=$?
  10731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10732. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10733. { (case "(($ac_try" in
  10734. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10735. *) ac_try_echo=$ac_try;;
  10736. esac
  10737. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10738. (eval "$ac_try") 2>&5
  10739. ac_status=$?
  10740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10741. (exit $ac_status); }; }; then
  10742. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  10743. else
  10744. echo "$as_me: program exited with status $ac_status" >&5
  10745. echo "$as_me: failed program was:" >&5
  10746. sed 's/^/| /' conftest.$ac_ext >&5
  10747. ( exit $ac_status )
  10748. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10749. fi
  10750. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10751. fi
  10752. else
  10753. # If the `ln -s' command failed, then we probably don't even
  10754. # have an lstat function.
  10755. ac_cv_func_lstat_dereferences_slashed_symlink=no
  10756. fi
  10757. rm -f conftest.sym conftest.file
  10758. fi
  10759. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  10760. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  10761. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  10762. cat >>confdefs.h <<_ACEOF
  10763. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  10764. _ACEOF
  10765. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  10766. case " $LIBOBJS " in
  10767. *" lstat.$ac_objext "* ) ;;
  10768. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  10769. ;;
  10770. esac
  10771. fi
  10772. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10773. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  10774. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10775. echo $ECHO_N "(cached) $ECHO_C" >&6
  10776. else
  10777. if test "$cross_compiling" = yes; then
  10778. ac_cv_func_stat_empty_string_bug=yes
  10779. else
  10780. cat >conftest.$ac_ext <<_ACEOF
  10781. /* confdefs.h. */
  10782. _ACEOF
  10783. cat confdefs.h >>conftest.$ac_ext
  10784. cat >>conftest.$ac_ext <<_ACEOF
  10785. /* end confdefs.h. */
  10786. $ac_includes_default
  10787. int
  10788. main ()
  10789. {
  10790. struct stat sbuf;
  10791. return stat ("", &sbuf) == 0;
  10792. ;
  10793. return 0;
  10794. }
  10795. _ACEOF
  10796. rm -f conftest$ac_exeext
  10797. if { (ac_try="$ac_link"
  10798. case "(($ac_try" in
  10799. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10800. *) ac_try_echo=$ac_try;;
  10801. esac
  10802. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10803. (eval "$ac_link") 2>&5
  10804. ac_status=$?
  10805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10806. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10807. { (case "(($ac_try" in
  10808. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10809. *) ac_try_echo=$ac_try;;
  10810. esac
  10811. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10812. (eval "$ac_try") 2>&5
  10813. ac_status=$?
  10814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10815. (exit $ac_status); }; }; then
  10816. ac_cv_func_stat_empty_string_bug=no
  10817. else
  10818. echo "$as_me: program exited with status $ac_status" >&5
  10819. echo "$as_me: failed program was:" >&5
  10820. sed 's/^/| /' conftest.$ac_ext >&5
  10821. ( exit $ac_status )
  10822. ac_cv_func_stat_empty_string_bug=yes
  10823. fi
  10824. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10825. fi
  10826. fi
  10827. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10828. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  10829. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10830. case " $LIBOBJS " in
  10831. *" stat.$ac_objext "* ) ;;
  10832. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  10833. ;;
  10834. esac
  10835. cat >>confdefs.h <<_ACEOF
  10836. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10837. _ACEOF
  10838. fi
  10839. for ac_func in vprintf
  10840. do
  10841. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10842. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10843. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10844. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10845. echo $ECHO_N "(cached) $ECHO_C" >&6
  10846. else
  10847. cat >conftest.$ac_ext <<_ACEOF
  10848. /* confdefs.h. */
  10849. _ACEOF
  10850. cat confdefs.h >>conftest.$ac_ext
  10851. cat >>conftest.$ac_ext <<_ACEOF
  10852. /* end confdefs.h. */
  10853. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10854. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10855. #define $ac_func innocuous_$ac_func
  10856. /* System header to define __stub macros and hopefully few prototypes,
  10857. which can conflict with char $ac_func (); below.
  10858. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10859. <limits.h> exists even on freestanding compilers. */
  10860. #ifdef __STDC__
  10861. # include <limits.h>
  10862. #else
  10863. # include <assert.h>
  10864. #endif
  10865. #undef $ac_func
  10866. /* Override any GCC internal prototype to avoid an error.
  10867. Use char because int might match the return type of a GCC
  10868. builtin and then its argument prototype would still apply. */
  10869. #ifdef __cplusplus
  10870. extern "C"
  10871. #endif
  10872. char $ac_func ();
  10873. /* The GNU C library defines this for functions which it implements
  10874. to always fail with ENOSYS. Some functions are actually named
  10875. something starting with __ and the normal name is an alias. */
  10876. #if defined __stub_$ac_func || defined __stub___$ac_func
  10877. choke me
  10878. #endif
  10879. int
  10880. main ()
  10881. {
  10882. return $ac_func ();
  10883. ;
  10884. return 0;
  10885. }
  10886. _ACEOF
  10887. rm -f conftest.$ac_objext conftest$ac_exeext
  10888. if { (ac_try="$ac_link"
  10889. case "(($ac_try" in
  10890. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10891. *) ac_try_echo=$ac_try;;
  10892. esac
  10893. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10894. (eval "$ac_link") 2>conftest.er1
  10895. ac_status=$?
  10896. grep -v '^ *+' conftest.er1 >conftest.err
  10897. rm -f conftest.er1
  10898. cat conftest.err >&5
  10899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10900. (exit $ac_status); } && {
  10901. test -z "$ac_c_werror_flag" ||
  10902. test ! -s conftest.err
  10903. } && test -s conftest$ac_exeext &&
  10904. $as_test_x conftest$ac_exeext; then
  10905. eval "$as_ac_var=yes"
  10906. else
  10907. echo "$as_me: failed program was:" >&5
  10908. sed 's/^/| /' conftest.$ac_ext >&5
  10909. eval "$as_ac_var=no"
  10910. fi
  10911. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10912. conftest$ac_exeext conftest.$ac_ext
  10913. fi
  10914. ac_res=`eval echo '${'$as_ac_var'}'`
  10915. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10916. echo "${ECHO_T}$ac_res" >&6; }
  10917. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10918. cat >>confdefs.h <<_ACEOF
  10919. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10920. _ACEOF
  10921. { echo "$as_me:$LINENO: checking for _doprnt" >&5
  10922. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
  10923. if test "${ac_cv_func__doprnt+set}" = set; then
  10924. echo $ECHO_N "(cached) $ECHO_C" >&6
  10925. else
  10926. cat >conftest.$ac_ext <<_ACEOF
  10927. /* confdefs.h. */
  10928. _ACEOF
  10929. cat confdefs.h >>conftest.$ac_ext
  10930. cat >>conftest.$ac_ext <<_ACEOF
  10931. /* end confdefs.h. */
  10932. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  10933. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10934. #define _doprnt innocuous__doprnt
  10935. /* System header to define __stub macros and hopefully few prototypes,
  10936. which can conflict with char _doprnt (); below.
  10937. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10938. <limits.h> exists even on freestanding compilers. */
  10939. #ifdef __STDC__
  10940. # include <limits.h>
  10941. #else
  10942. # include <assert.h>
  10943. #endif
  10944. #undef _doprnt
  10945. /* Override any GCC internal prototype to avoid an error.
  10946. Use char because int might match the return type of a GCC
  10947. builtin and then its argument prototype would still apply. */
  10948. #ifdef __cplusplus
  10949. extern "C"
  10950. #endif
  10951. char _doprnt ();
  10952. /* The GNU C library defines this for functions which it implements
  10953. to always fail with ENOSYS. Some functions are actually named
  10954. something starting with __ and the normal name is an alias. */
  10955. #if defined __stub__doprnt || defined __stub____doprnt
  10956. choke me
  10957. #endif
  10958. int
  10959. main ()
  10960. {
  10961. return _doprnt ();
  10962. ;
  10963. return 0;
  10964. }
  10965. _ACEOF
  10966. rm -f conftest.$ac_objext conftest$ac_exeext
  10967. if { (ac_try="$ac_link"
  10968. case "(($ac_try" in
  10969. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10970. *) ac_try_echo=$ac_try;;
  10971. esac
  10972. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10973. (eval "$ac_link") 2>conftest.er1
  10974. ac_status=$?
  10975. grep -v '^ *+' conftest.er1 >conftest.err
  10976. rm -f conftest.er1
  10977. cat conftest.err >&5
  10978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10979. (exit $ac_status); } && {
  10980. test -z "$ac_c_werror_flag" ||
  10981. test ! -s conftest.err
  10982. } && test -s conftest$ac_exeext &&
  10983. $as_test_x conftest$ac_exeext; then
  10984. ac_cv_func__doprnt=yes
  10985. else
  10986. echo "$as_me: failed program was:" >&5
  10987. sed 's/^/| /' conftest.$ac_ext >&5
  10988. ac_cv_func__doprnt=no
  10989. fi
  10990. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10991. conftest$ac_exeext conftest.$ac_ext
  10992. fi
  10993. { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  10994. echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
  10995. if test $ac_cv_func__doprnt = yes; then
  10996. cat >>confdefs.h <<\_ACEOF
  10997. #define HAVE_DOPRNT 1
  10998. _ACEOF
  10999. fi
  11000. fi
  11001. done
  11002. for ac_func in __argz_count __argz_next __argz_stringify daemon ftruncate getcwd getpagesize gettimeofday inet_ntoa memchr mempcpy memset mkdir munmap nl_langinfo random rmdir select setlocale setmode sigaction sleep socket srandom stpcpy strcasecmp strchr strcspn strdup strerror strstr strtol strtoul timegm usleep
  11003. do
  11004. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11005. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11006. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11007. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11008. echo $ECHO_N "(cached) $ECHO_C" >&6
  11009. else
  11010. cat >conftest.$ac_ext <<_ACEOF
  11011. /* confdefs.h. */
  11012. _ACEOF
  11013. cat confdefs.h >>conftest.$ac_ext
  11014. cat >>conftest.$ac_ext <<_ACEOF
  11015. /* end confdefs.h. */
  11016. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11017. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11018. #define $ac_func innocuous_$ac_func
  11019. /* System header to define __stub macros and hopefully few prototypes,
  11020. which can conflict with char $ac_func (); below.
  11021. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11022. <limits.h> exists even on freestanding compilers. */
  11023. #ifdef __STDC__
  11024. # include <limits.h>
  11025. #else
  11026. # include <assert.h>
  11027. #endif
  11028. #undef $ac_func
  11029. /* Override any GCC internal prototype to avoid an error.
  11030. Use char because int might match the return type of a GCC
  11031. builtin and then its argument prototype would still apply. */
  11032. #ifdef __cplusplus
  11033. extern "C"
  11034. #endif
  11035. char $ac_func ();
  11036. /* The GNU C library defines this for functions which it implements
  11037. to always fail with ENOSYS. Some functions are actually named
  11038. something starting with __ and the normal name is an alias. */
  11039. #if defined __stub_$ac_func || defined __stub___$ac_func
  11040. choke me
  11041. #endif
  11042. int
  11043. main ()
  11044. {
  11045. return $ac_func ();
  11046. ;
  11047. return 0;
  11048. }
  11049. _ACEOF
  11050. rm -f conftest.$ac_objext conftest$ac_exeext
  11051. if { (ac_try="$ac_link"
  11052. case "(($ac_try" in
  11053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11054. *) ac_try_echo=$ac_try;;
  11055. esac
  11056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11057. (eval "$ac_link") 2>conftest.er1
  11058. ac_status=$?
  11059. grep -v '^ *+' conftest.er1 >conftest.err
  11060. rm -f conftest.er1
  11061. cat conftest.err >&5
  11062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11063. (exit $ac_status); } && {
  11064. test -z "$ac_c_werror_flag" ||
  11065. test ! -s conftest.err
  11066. } && test -s conftest$ac_exeext &&
  11067. $as_test_x conftest$ac_exeext; then
  11068. eval "$as_ac_var=yes"
  11069. else
  11070. echo "$as_me: failed program was:" >&5
  11071. sed 's/^/| /' conftest.$ac_ext >&5
  11072. eval "$as_ac_var=no"
  11073. fi
  11074. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11075. conftest$ac_exeext conftest.$ac_ext
  11076. fi
  11077. ac_res=`eval echo '${'$as_ac_var'}'`
  11078. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11079. echo "${ECHO_T}$ac_res" >&6; }
  11080. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11081. cat >>confdefs.h <<_ACEOF
  11082. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11083. _ACEOF
  11084. fi
  11085. done
  11086. for ac_func in basename
  11087. do
  11088. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11089. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11090. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11091. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11092. echo $ECHO_N "(cached) $ECHO_C" >&6
  11093. else
  11094. cat >conftest.$ac_ext <<_ACEOF
  11095. /* confdefs.h. */
  11096. _ACEOF
  11097. cat confdefs.h >>conftest.$ac_ext
  11098. cat >>conftest.$ac_ext <<_ACEOF
  11099. /* end confdefs.h. */
  11100. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11101. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11102. #define $ac_func innocuous_$ac_func
  11103. /* System header to define __stub macros and hopefully few prototypes,
  11104. which can conflict with char $ac_func (); below.
  11105. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11106. <limits.h> exists even on freestanding compilers. */
  11107. #ifdef __STDC__
  11108. # include <limits.h>
  11109. #else
  11110. # include <assert.h>
  11111. #endif
  11112. #undef $ac_func
  11113. /* Override any GCC internal prototype to avoid an error.
  11114. Use char because int might match the return type of a GCC
  11115. builtin and then its argument prototype would still apply. */
  11116. #ifdef __cplusplus
  11117. extern "C"
  11118. #endif
  11119. char $ac_func ();
  11120. /* The GNU C library defines this for functions which it implements
  11121. to always fail with ENOSYS. Some functions are actually named
  11122. something starting with __ and the normal name is an alias. */
  11123. #if defined __stub_$ac_func || defined __stub___$ac_func
  11124. choke me
  11125. #endif
  11126. int
  11127. main ()
  11128. {
  11129. return $ac_func ();
  11130. ;
  11131. return 0;
  11132. }
  11133. _ACEOF
  11134. rm -f conftest.$ac_objext conftest$ac_exeext
  11135. if { (ac_try="$ac_link"
  11136. case "(($ac_try" in
  11137. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11138. *) ac_try_echo=$ac_try;;
  11139. esac
  11140. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11141. (eval "$ac_link") 2>conftest.er1
  11142. ac_status=$?
  11143. grep -v '^ *+' conftest.er1 >conftest.err
  11144. rm -f conftest.er1
  11145. cat conftest.err >&5
  11146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11147. (exit $ac_status); } && {
  11148. test -z "$ac_c_werror_flag" ||
  11149. test ! -s conftest.err
  11150. } && test -s conftest$ac_exeext &&
  11151. $as_test_x conftest$ac_exeext; then
  11152. eval "$as_ac_var=yes"
  11153. else
  11154. echo "$as_me: failed program was:" >&5
  11155. sed 's/^/| /' conftest.$ac_ext >&5
  11156. eval "$as_ac_var=no"
  11157. fi
  11158. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11159. conftest$ac_exeext conftest.$ac_ext
  11160. fi
  11161. ac_res=`eval echo '${'$as_ac_var'}'`
  11162. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11163. echo "${ECHO_T}$ac_res" >&6; }
  11164. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11165. cat >>confdefs.h <<_ACEOF
  11166. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11167. _ACEOF
  11168. if true; then
  11169. HAVE_BASENAME_TRUE=
  11170. HAVE_BASENAME_FALSE='#'
  11171. else
  11172. HAVE_BASENAME_TRUE='#'
  11173. HAVE_BASENAME_FALSE=
  11174. fi
  11175. else
  11176. if false; then
  11177. HAVE_BASENAME_TRUE=
  11178. HAVE_BASENAME_FALSE='#'
  11179. else
  11180. HAVE_BASENAME_TRUE='#'
  11181. HAVE_BASENAME_FALSE=
  11182. fi
  11183. fi
  11184. done
  11185. for ac_func in getaddrinfo
  11186. do
  11187. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11188. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11189. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11190. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11191. echo $ECHO_N "(cached) $ECHO_C" >&6
  11192. else
  11193. cat >conftest.$ac_ext <<_ACEOF
  11194. /* confdefs.h. */
  11195. _ACEOF
  11196. cat confdefs.h >>conftest.$ac_ext
  11197. cat >>conftest.$ac_ext <<_ACEOF
  11198. /* end confdefs.h. */
  11199. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11200. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11201. #define $ac_func innocuous_$ac_func
  11202. /* System header to define __stub macros and hopefully few prototypes,
  11203. which can conflict with char $ac_func (); below.
  11204. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11205. <limits.h> exists even on freestanding compilers. */
  11206. #ifdef __STDC__
  11207. # include <limits.h>
  11208. #else
  11209. # include <assert.h>
  11210. #endif
  11211. #undef $ac_func
  11212. /* Override any GCC internal prototype to avoid an error.
  11213. Use char because int might match the return type of a GCC
  11214. builtin and then its argument prototype would still apply. */
  11215. #ifdef __cplusplus
  11216. extern "C"
  11217. #endif
  11218. char $ac_func ();
  11219. /* The GNU C library defines this for functions which it implements
  11220. to always fail with ENOSYS. Some functions are actually named
  11221. something starting with __ and the normal name is an alias. */
  11222. #if defined __stub_$ac_func || defined __stub___$ac_func
  11223. choke me
  11224. #endif
  11225. int
  11226. main ()
  11227. {
  11228. return $ac_func ();
  11229. ;
  11230. return 0;
  11231. }
  11232. _ACEOF
  11233. rm -f conftest.$ac_objext conftest$ac_exeext
  11234. if { (ac_try="$ac_link"
  11235. case "(($ac_try" in
  11236. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11237. *) ac_try_echo=$ac_try;;
  11238. esac
  11239. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11240. (eval "$ac_link") 2>conftest.er1
  11241. ac_status=$?
  11242. grep -v '^ *+' conftest.er1 >conftest.err
  11243. rm -f conftest.er1
  11244. cat conftest.err >&5
  11245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11246. (exit $ac_status); } && {
  11247. test -z "$ac_c_werror_flag" ||
  11248. test ! -s conftest.err
  11249. } && test -s conftest$ac_exeext &&
  11250. $as_test_x conftest$ac_exeext; then
  11251. eval "$as_ac_var=yes"
  11252. else
  11253. echo "$as_me: failed program was:" >&5
  11254. sed 's/^/| /' conftest.$ac_ext >&5
  11255. eval "$as_ac_var=no"
  11256. fi
  11257. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11258. conftest$ac_exeext conftest.$ac_ext
  11259. fi
  11260. ac_res=`eval echo '${'$as_ac_var'}'`
  11261. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11262. echo "${ECHO_T}$ac_res" >&6; }
  11263. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11264. cat >>confdefs.h <<_ACEOF
  11265. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11266. _ACEOF
  11267. if true; then
  11268. HAVE_GETADDRINFO_TRUE=
  11269. HAVE_GETADDRINFO_FALSE='#'
  11270. else
  11271. HAVE_GETADDRINFO_TRUE='#'
  11272. HAVE_GETADDRINFO_FALSE=
  11273. fi
  11274. else
  11275. if false; then
  11276. HAVE_GETADDRINFO_TRUE=
  11277. HAVE_GETADDRINFO_FALSE='#'
  11278. else
  11279. HAVE_GETADDRINFO_TRUE='#'
  11280. HAVE_GETADDRINFO_FALSE=
  11281. fi
  11282. fi
  11283. done
  11284. for ac_func in inet_aton
  11285. do
  11286. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11287. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11288. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11289. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11290. echo $ECHO_N "(cached) $ECHO_C" >&6
  11291. else
  11292. cat >conftest.$ac_ext <<_ACEOF
  11293. /* confdefs.h. */
  11294. _ACEOF
  11295. cat confdefs.h >>conftest.$ac_ext
  11296. cat >>conftest.$ac_ext <<_ACEOF
  11297. /* end confdefs.h. */
  11298. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11299. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11300. #define $ac_func innocuous_$ac_func
  11301. /* System header to define __stub macros and hopefully few prototypes,
  11302. which can conflict with char $ac_func (); below.
  11303. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11304. <limits.h> exists even on freestanding compilers. */
  11305. #ifdef __STDC__
  11306. # include <limits.h>
  11307. #else
  11308. # include <assert.h>
  11309. #endif
  11310. #undef $ac_func
  11311. /* Override any GCC internal prototype to avoid an error.
  11312. Use char because int might match the return type of a GCC
  11313. builtin and then its argument prototype would still apply. */
  11314. #ifdef __cplusplus
  11315. extern "C"
  11316. #endif
  11317. char $ac_func ();
  11318. /* The GNU C library defines this for functions which it implements
  11319. to always fail with ENOSYS. Some functions are actually named
  11320. something starting with __ and the normal name is an alias. */
  11321. #if defined __stub_$ac_func || defined __stub___$ac_func
  11322. choke me
  11323. #endif
  11324. int
  11325. main ()
  11326. {
  11327. return $ac_func ();
  11328. ;
  11329. return 0;
  11330. }
  11331. _ACEOF
  11332. rm -f conftest.$ac_objext conftest$ac_exeext
  11333. if { (ac_try="$ac_link"
  11334. case "(($ac_try" in
  11335. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11336. *) ac_try_echo=$ac_try;;
  11337. esac
  11338. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11339. (eval "$ac_link") 2>conftest.er1
  11340. ac_status=$?
  11341. grep -v '^ *+' conftest.er1 >conftest.err
  11342. rm -f conftest.er1
  11343. cat conftest.err >&5
  11344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11345. (exit $ac_status); } && {
  11346. test -z "$ac_c_werror_flag" ||
  11347. test ! -s conftest.err
  11348. } && test -s conftest$ac_exeext &&
  11349. $as_test_x conftest$ac_exeext; then
  11350. eval "$as_ac_var=yes"
  11351. else
  11352. echo "$as_me: failed program was:" >&5
  11353. sed 's/^/| /' conftest.$ac_ext >&5
  11354. eval "$as_ac_var=no"
  11355. fi
  11356. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11357. conftest$ac_exeext conftest.$ac_ext
  11358. fi
  11359. ac_res=`eval echo '${'$as_ac_var'}'`
  11360. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11361. echo "${ECHO_T}$ac_res" >&6; }
  11362. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11363. cat >>confdefs.h <<_ACEOF
  11364. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11365. _ACEOF
  11366. if true; then
  11367. HAVE_INET_ATON_TRUE=
  11368. HAVE_INET_ATON_FALSE='#'
  11369. else
  11370. HAVE_INET_ATON_TRUE='#'
  11371. HAVE_INET_ATON_FALSE=
  11372. fi
  11373. else
  11374. if false; then
  11375. HAVE_INET_ATON_TRUE=
  11376. HAVE_INET_ATON_FALSE='#'
  11377. else
  11378. HAVE_INET_ATON_TRUE='#'
  11379. HAVE_INET_ATON_FALSE=
  11380. fi
  11381. fi
  11382. done
  11383. for ac_func in localtime_r
  11384. do
  11385. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11386. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11387. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11388. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11389. echo $ECHO_N "(cached) $ECHO_C" >&6
  11390. else
  11391. cat >conftest.$ac_ext <<_ACEOF
  11392. /* confdefs.h. */
  11393. _ACEOF
  11394. cat confdefs.h >>conftest.$ac_ext
  11395. cat >>conftest.$ac_ext <<_ACEOF
  11396. /* end confdefs.h. */
  11397. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11398. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11399. #define $ac_func innocuous_$ac_func
  11400. /* System header to define __stub macros and hopefully few prototypes,
  11401. which can conflict with char $ac_func (); below.
  11402. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11403. <limits.h> exists even on freestanding compilers. */
  11404. #ifdef __STDC__
  11405. # include <limits.h>
  11406. #else
  11407. # include <assert.h>
  11408. #endif
  11409. #undef $ac_func
  11410. /* Override any GCC internal prototype to avoid an error.
  11411. Use char because int might match the return type of a GCC
  11412. builtin and then its argument prototype would still apply. */
  11413. #ifdef __cplusplus
  11414. extern "C"
  11415. #endif
  11416. char $ac_func ();
  11417. /* The GNU C library defines this for functions which it implements
  11418. to always fail with ENOSYS. Some functions are actually named
  11419. something starting with __ and the normal name is an alias. */
  11420. #if defined __stub_$ac_func || defined __stub___$ac_func
  11421. choke me
  11422. #endif
  11423. int
  11424. main ()
  11425. {
  11426. return $ac_func ();
  11427. ;
  11428. return 0;
  11429. }
  11430. _ACEOF
  11431. rm -f conftest.$ac_objext conftest$ac_exeext
  11432. if { (ac_try="$ac_link"
  11433. case "(($ac_try" in
  11434. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11435. *) ac_try_echo=$ac_try;;
  11436. esac
  11437. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11438. (eval "$ac_link") 2>conftest.er1
  11439. ac_status=$?
  11440. grep -v '^ *+' conftest.er1 >conftest.err
  11441. rm -f conftest.er1
  11442. cat conftest.err >&5
  11443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11444. (exit $ac_status); } && {
  11445. test -z "$ac_c_werror_flag" ||
  11446. test ! -s conftest.err
  11447. } && test -s conftest$ac_exeext &&
  11448. $as_test_x conftest$ac_exeext; then
  11449. eval "$as_ac_var=yes"
  11450. else
  11451. echo "$as_me: failed program was:" >&5
  11452. sed 's/^/| /' conftest.$ac_ext >&5
  11453. eval "$as_ac_var=no"
  11454. fi
  11455. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11456. conftest$ac_exeext conftest.$ac_ext
  11457. fi
  11458. ac_res=`eval echo '${'$as_ac_var'}'`
  11459. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11460. echo "${ECHO_T}$ac_res" >&6; }
  11461. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11462. cat >>confdefs.h <<_ACEOF
  11463. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11464. _ACEOF
  11465. if true; then
  11466. HAVE_LOCALTIME_R_TRUE=
  11467. HAVE_LOCALTIME_R_FALSE='#'
  11468. else
  11469. HAVE_LOCALTIME_R_TRUE='#'
  11470. HAVE_LOCALTIME_R_FALSE=
  11471. fi
  11472. else
  11473. if false; then
  11474. HAVE_LOCALTIME_R_TRUE=
  11475. HAVE_LOCALTIME_R_FALSE='#'
  11476. else
  11477. HAVE_LOCALTIME_R_TRUE='#'
  11478. HAVE_LOCALTIME_R_FALSE=
  11479. fi
  11480. fi
  11481. done
  11482. for ac_func in strptime
  11483. do
  11484. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11485. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  11486. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  11487. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  11488. echo $ECHO_N "(cached) $ECHO_C" >&6
  11489. else
  11490. cat >conftest.$ac_ext <<_ACEOF
  11491. /* confdefs.h. */
  11492. _ACEOF
  11493. cat confdefs.h >>conftest.$ac_ext
  11494. cat >>conftest.$ac_ext <<_ACEOF
  11495. /* end confdefs.h. */
  11496. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11497. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11498. #define $ac_func innocuous_$ac_func
  11499. /* System header to define __stub macros and hopefully few prototypes,
  11500. which can conflict with char $ac_func (); below.
  11501. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11502. <limits.h> exists even on freestanding compilers. */
  11503. #ifdef __STDC__
  11504. # include <limits.h>
  11505. #else
  11506. # include <assert.h>
  11507. #endif
  11508. #undef $ac_func
  11509. /* Override any GCC internal prototype to avoid an error.
  11510. Use char because int might match the return type of a GCC
  11511. builtin and then its argument prototype would still apply. */
  11512. #ifdef __cplusplus
  11513. extern "C"
  11514. #endif
  11515. char $ac_func ();
  11516. /* The GNU C library defines this for functions which it implements
  11517. to always fail with ENOSYS. Some functions are actually named
  11518. something starting with __ and the normal name is an alias. */
  11519. #if defined __stub_$ac_func || defined __stub___$ac_func
  11520. choke me
  11521. #endif
  11522. int
  11523. main ()
  11524. {
  11525. return $ac_func ();
  11526. ;
  11527. return 0;
  11528. }
  11529. _ACEOF
  11530. rm -f conftest.$ac_objext conftest$ac_exeext
  11531. if { (ac_try="$ac_link"
  11532. case "(($ac_try" in
  11533. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  11534. *) ac_try_echo=$ac_try;;
  11535. esac
  11536. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  11537. (eval "$ac_link") 2>conftest.er1
  11538. ac_status=$?
  11539. grep -v '^ *+' conftest.er1 >conftest.err
  11540. rm -f conftest.er1
  11541. cat conftest.err >&5
  11542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11543. (exit $ac_status); } && {
  11544. test -z "$ac_c_werror_flag" ||
  11545. test ! -s conftest.err
  11546. } && test -s conftest$ac_exeext &&
  11547. $as_test_x conftest$ac_exeext; then
  11548. eval "$as_ac_var=yes"
  11549. else
  11550. echo "$as_me: failed program was:" >&5
  11551. sed 's/^/| /' conftest.$ac_ext >&5
  11552. eval "$as_ac_var=no"
  11553. fi
  11554. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  11555. conftest$ac_exeext conftest.$ac_ext
  11556. fi
  11557. ac_res=`eval echo '${'$as_ac_var'}'`
  11558. { echo "$as_me:$LINENO: result: $ac_res" >&5
  11559. echo "${ECHO_T}$ac_res" >&6; }
  11560. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11561. cat >>confdefs.h <<_ACEOF
  11562. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11563. _ACEOF
  11564. if true; then
  11565. HAVE_STRPTIME_TRUE=
  11566. HAVE_STRPTIME_FALSE='#'
  11567. else
  11568. HAVE_STRPTIME_TRUE='#'
  11569. HAVE_STRPTIME_FALSE=
  11570. fi
  11571. else
  11572. if false; then
  11573. HAVE_STRPTIME_TRUE=
  11574. HAVE_STRPTIME_FALSE='#'
  11575. else
  11576. HAVE_STRPTIME_TRUE='#'
  11577. HAVE_STRPTIME_FALSE=
  11578. fi
  11579. fi
  11580. done
  11581. case "$target" in
  11582. *mingw*)
  11583. if true; then
  11584. HAVE_GETADDRINFO_TRUE=
  11585. HAVE_GETADDRINFO_FALSE='#'
  11586. else
  11587. HAVE_GETADDRINFO_TRUE='#'
  11588. HAVE_GETADDRINFO_FALSE=
  11589. fi
  11590. ;;
  11591. esac
  11592. ac_config_files="$ac_config_files Makefile src/Makefile test/Makefile po/Makefile.in m4/Makefile intl/Makefile doc/Makefile"
  11593. cat >confcache <<\_ACEOF
  11594. # This file is a shell script that caches the results of configure
  11595. # tests run on this system so they can be shared between configure
  11596. # scripts and configure runs, see configure's option --config-cache.
  11597. # It is not useful on other systems. If it contains results you don't
  11598. # want to keep, you may remove or edit it.
  11599. #
  11600. # config.status only pays attention to the cache file if you give it
  11601. # the --recheck option to rerun configure.
  11602. #
  11603. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11604. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11605. # following values.
  11606. _ACEOF
  11607. # The following way of writing the cache mishandles newlines in values,
  11608. # but we know of no workaround that is simple, portable, and efficient.
  11609. # So, we kill variables containing newlines.
  11610. # Ultrix sh set writes to stderr and can't be redirected directly,
  11611. # and sets the high bit in the cache file unless we assign to the vars.
  11612. (
  11613. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11614. eval ac_val=\$$ac_var
  11615. case $ac_val in #(
  11616. *${as_nl}*)
  11617. case $ac_var in #(
  11618. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  11619. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  11620. esac
  11621. case $ac_var in #(
  11622. _ | IFS | as_nl) ;; #(
  11623. *) $as_unset $ac_var ;;
  11624. esac ;;
  11625. esac
  11626. done
  11627. (set) 2>&1 |
  11628. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11629. *${as_nl}ac_space=\ *)
  11630. # `set' does not quote correctly, so add quotes (double-quote
  11631. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11632. sed -n \
  11633. "s/'/'\\\\''/g;
  11634. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11635. ;; #(
  11636. *)
  11637. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11638. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11639. ;;
  11640. esac |
  11641. sort
  11642. ) |
  11643. sed '
  11644. /^ac_cv_env_/b end
  11645. t clear
  11646. :clear
  11647. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11648. t end
  11649. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11650. :end' >>confcache
  11651. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11652. if test -w "$cache_file"; then
  11653. test "x$cache_file" != "x/dev/null" &&
  11654. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  11655. echo "$as_me: updating cache $cache_file" >&6;}
  11656. cat confcache >$cache_file
  11657. else
  11658. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  11659. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11660. fi
  11661. fi
  11662. rm -f confcache
  11663. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11664. # Let make expand exec_prefix.
  11665. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11666. DEFS=-DHAVE_CONFIG_H
  11667. ac_libobjs=
  11668. ac_ltlibobjs=
  11669. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11670. # 1. Remove the extension, and $U if already installed.
  11671. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11672. ac_i=`echo "$ac_i" | sed "$ac_script"`
  11673. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11674. # will be set to the directory where LIBOBJS objects are built.
  11675. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11676. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  11677. done
  11678. LIBOBJS=$ac_libobjs
  11679. LTLIBOBJS=$ac_ltlibobjs
  11680. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11681. { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  11682. Usually this means the macro was only invoked conditionally." >&5
  11683. echo "$as_me: error: conditional \"AMDEP\" was never defined.
  11684. Usually this means the macro was only invoked conditionally." >&2;}
  11685. { (exit 1); exit 1; }; }
  11686. fi
  11687. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  11688. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  11689. Usually this means the macro was only invoked conditionally." >&5
  11690. echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  11691. Usually this means the macro was only invoked conditionally." >&2;}
  11692. { (exit 1); exit 1; }; }
  11693. fi
  11694. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11695. { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  11696. Usually this means the macro was only invoked conditionally." >&5
  11697. echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  11698. Usually this means the macro was only invoked conditionally." >&2;}
  11699. { (exit 1); exit 1; }; }
  11700. fi
  11701. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11702. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11703. Usually this means the macro was only invoked conditionally." >&5
  11704. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11705. Usually this means the macro was only invoked conditionally." >&2;}
  11706. { (exit 1); exit 1; }; }
  11707. fi
  11708. if test -z "${ENABLE_MESSAGE_DIGEST_TRUE}" && test -z "${ENABLE_MESSAGE_DIGEST_FALSE}"; then
  11709. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11710. Usually this means the macro was only invoked conditionally." >&5
  11711. echo "$as_me: error: conditional \"ENABLE_MESSAGE_DIGEST\" was never defined.
  11712. Usually this means the macro was only invoked conditionally." >&2;}
  11713. { (exit 1); exit 1; }; }
  11714. fi
  11715. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11716. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11717. Usually this means the macro was only invoked conditionally." >&5
  11718. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11719. Usually this means the macro was only invoked conditionally." >&2;}
  11720. { (exit 1); exit 1; }; }
  11721. fi
  11722. if test -z "${ENABLE_BITTORRENT_TRUE}" && test -z "${ENABLE_BITTORRENT_FALSE}"; then
  11723. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11724. Usually this means the macro was only invoked conditionally." >&5
  11725. echo "$as_me: error: conditional \"ENABLE_BITTORRENT\" was never defined.
  11726. Usually this means the macro was only invoked conditionally." >&2;}
  11727. { (exit 1); exit 1; }; }
  11728. fi
  11729. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11730. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11731. Usually this means the macro was only invoked conditionally." >&5
  11732. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11733. Usually this means the macro was only invoked conditionally." >&2;}
  11734. { (exit 1); exit 1; }; }
  11735. fi
  11736. if test -z "${ENABLE_METALINK_TRUE}" && test -z "${ENABLE_METALINK_FALSE}"; then
  11737. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_METALINK\" was never defined.
  11738. Usually this means the macro was only invoked conditionally." >&5
  11739. echo "$as_me: error: conditional \"ENABLE_METALINK\" was never defined.
  11740. Usually this means the macro was only invoked conditionally." >&2;}
  11741. { (exit 1); exit 1; }; }
  11742. fi
  11743. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11744. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11745. Usually this means the macro was only invoked conditionally." >&5
  11746. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11747. Usually this means the macro was only invoked conditionally." >&2;}
  11748. { (exit 1); exit 1; }; }
  11749. fi
  11750. if test -z "${ENABLE_ASYNC_DNS_TRUE}" && test -z "${ENABLE_ASYNC_DNS_FALSE}"; then
  11751. { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11752. Usually this means the macro was only invoked conditionally." >&5
  11753. echo "$as_me: error: conditional \"ENABLE_ASYNC_DNS\" was never defined.
  11754. Usually this means the macro was only invoked conditionally." >&2;}
  11755. { (exit 1); exit 1; }; }
  11756. fi
  11757. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  11758. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  11759. Usually this means the macro was only invoked conditionally." >&5
  11760. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  11761. Usually this means the macro was only invoked conditionally." >&2;}
  11762. { (exit 1); exit 1; }; }
  11763. fi
  11764. if test -z "${HAVE_BASENAME_TRUE}" && test -z "${HAVE_BASENAME_FALSE}"; then
  11765. { { echo "$as_me:$LINENO: error: conditional \"HAVE_BASENAME\" was never defined.
  11766. Usually this means the macro was only invoked conditionally." >&5
  11767. echo "$as_me: error: conditional \"HAVE_BASENAME\" was never defined.
  11768. Usually this means the macro was only invoked conditionally." >&2;}
  11769. { (exit 1); exit 1; }; }
  11770. fi
  11771. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  11772. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11773. Usually this means the macro was only invoked conditionally." >&5
  11774. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11775. Usually this means the macro was only invoked conditionally." >&2;}
  11776. { (exit 1); exit 1; }; }
  11777. fi
  11778. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  11779. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11780. Usually this means the macro was only invoked conditionally." >&5
  11781. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11782. Usually this means the macro was only invoked conditionally." >&2;}
  11783. { (exit 1); exit 1; }; }
  11784. fi
  11785. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  11786. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  11787. Usually this means the macro was only invoked conditionally." >&5
  11788. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  11789. Usually this means the macro was only invoked conditionally." >&2;}
  11790. { (exit 1); exit 1; }; }
  11791. fi
  11792. if test -z "${HAVE_INET_ATON_TRUE}" && test -z "${HAVE_INET_ATON_FALSE}"; then
  11793. { { echo "$as_me:$LINENO: error: conditional \"HAVE_INET_ATON\" was never defined.
  11794. Usually this means the macro was only invoked conditionally." >&5
  11795. echo "$as_me: error: conditional \"HAVE_INET_ATON\" was never defined.
  11796. Usually this means the macro was only invoked conditionally." >&2;}
  11797. { (exit 1); exit 1; }; }
  11798. fi
  11799. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  11800. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  11801. Usually this means the macro was only invoked conditionally." >&5
  11802. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  11803. Usually this means the macro was only invoked conditionally." >&2;}
  11804. { (exit 1); exit 1; }; }
  11805. fi
  11806. if test -z "${HAVE_LOCALTIME_R_TRUE}" && test -z "${HAVE_LOCALTIME_R_FALSE}"; then
  11807. { { echo "$as_me:$LINENO: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  11808. Usually this means the macro was only invoked conditionally." >&5
  11809. echo "$as_me: error: conditional \"HAVE_LOCALTIME_R\" was never defined.
  11810. Usually this means the macro was only invoked conditionally." >&2;}
  11811. { (exit 1); exit 1; }; }
  11812. fi
  11813. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  11814. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  11815. Usually this means the macro was only invoked conditionally." >&5
  11816. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  11817. Usually this means the macro was only invoked conditionally." >&2;}
  11818. { (exit 1); exit 1; }; }
  11819. fi
  11820. if test -z "${HAVE_STRPTIME_TRUE}" && test -z "${HAVE_STRPTIME_FALSE}"; then
  11821. { { echo "$as_me:$LINENO: error: conditional \"HAVE_STRPTIME\" was never defined.
  11822. Usually this means the macro was only invoked conditionally." >&5
  11823. echo "$as_me: error: conditional \"HAVE_STRPTIME\" was never defined.
  11824. Usually this means the macro was only invoked conditionally." >&2;}
  11825. { (exit 1); exit 1; }; }
  11826. fi
  11827. if test -z "${HAVE_GETADDRINFO_TRUE}" && test -z "${HAVE_GETADDRINFO_FALSE}"; then
  11828. { { echo "$as_me:$LINENO: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11829. Usually this means the macro was only invoked conditionally." >&5
  11830. echo "$as_me: error: conditional \"HAVE_GETADDRINFO\" was never defined.
  11831. Usually this means the macro was only invoked conditionally." >&2;}
  11832. { (exit 1); exit 1; }; }
  11833. fi
  11834. : ${CONFIG_STATUS=./config.status}
  11835. ac_clean_files_save=$ac_clean_files
  11836. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11837. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11838. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11839. cat >$CONFIG_STATUS <<_ACEOF
  11840. #! $SHELL
  11841. # Generated by $as_me.
  11842. # Run this file to recreate the current configuration.
  11843. # Compiler output produced by configure, useful for debugging
  11844. # configure, is in config.log if it exists.
  11845. debug=false
  11846. ac_cs_recheck=false
  11847. ac_cs_silent=false
  11848. SHELL=\${CONFIG_SHELL-$SHELL}
  11849. _ACEOF
  11850. cat >>$CONFIG_STATUS <<\_ACEOF
  11851. ## --------------------- ##
  11852. ## M4sh Initialization. ##
  11853. ## --------------------- ##
  11854. # Be more Bourne compatible
  11855. DUALCASE=1; export DUALCASE # for MKS sh
  11856. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11857. emulate sh
  11858. NULLCMD=:
  11859. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11860. # is contrary to our usage. Disable this feature.
  11861. alias -g '${1+"$@"}'='"$@"'
  11862. setopt NO_GLOB_SUBST
  11863. else
  11864. case `(set -o) 2>/dev/null` in
  11865. *posix*) set -o posix ;;
  11866. esac
  11867. fi
  11868. # PATH needs CR
  11869. # Avoid depending upon Character Ranges.
  11870. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11871. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11872. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11873. as_cr_digits='0123456789'
  11874. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11875. # The user is always right.
  11876. if test "${PATH_SEPARATOR+set}" != set; then
  11877. echo "#! /bin/sh" >conf$$.sh
  11878. echo "exit 0" >>conf$$.sh
  11879. chmod +x conf$$.sh
  11880. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11881. PATH_SEPARATOR=';'
  11882. else
  11883. PATH_SEPARATOR=:
  11884. fi
  11885. rm -f conf$$.sh
  11886. fi
  11887. # Support unset when possible.
  11888. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11889. as_unset=unset
  11890. else
  11891. as_unset=false
  11892. fi
  11893. # IFS
  11894. # We need space, tab and new line, in precisely that order. Quoting is
  11895. # there to prevent editors from complaining about space-tab.
  11896. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11897. # splitting by setting IFS to empty value.)
  11898. as_nl='
  11899. '
  11900. IFS=" "" $as_nl"
  11901. # Find who we are. Look in the path if we contain no directory separator.
  11902. case $0 in
  11903. *[\\/]* ) as_myself=$0 ;;
  11904. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11905. for as_dir in $PATH
  11906. do
  11907. IFS=$as_save_IFS
  11908. test -z "$as_dir" && as_dir=.
  11909. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11910. done
  11911. IFS=$as_save_IFS
  11912. ;;
  11913. esac
  11914. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11915. # in which case we are not to be found in the path.
  11916. if test "x$as_myself" = x; then
  11917. as_myself=$0
  11918. fi
  11919. if test ! -f "$as_myself"; then
  11920. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11921. { (exit 1); exit 1; }
  11922. fi
  11923. # Work around bugs in pre-3.0 UWIN ksh.
  11924. for as_var in ENV MAIL MAILPATH
  11925. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11926. done
  11927. PS1='$ '
  11928. PS2='> '
  11929. PS4='+ '
  11930. # NLS nuisances.
  11931. for as_var in \
  11932. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11933. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11934. LC_TELEPHONE LC_TIME
  11935. do
  11936. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11937. eval $as_var=C; export $as_var
  11938. else
  11939. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  11940. fi
  11941. done
  11942. # Required to use basename.
  11943. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11944. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11945. as_expr=expr
  11946. else
  11947. as_expr=false
  11948. fi
  11949. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11950. as_basename=basename
  11951. else
  11952. as_basename=false
  11953. fi
  11954. # Name of the executable.
  11955. as_me=`$as_basename -- "$0" ||
  11956. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11957. X"$0" : 'X\(//\)$' \| \
  11958. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11959. echo X/"$0" |
  11960. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11961. s//\1/
  11962. q
  11963. }
  11964. /^X\/\(\/\/\)$/{
  11965. s//\1/
  11966. q
  11967. }
  11968. /^X\/\(\/\).*/{
  11969. s//\1/
  11970. q
  11971. }
  11972. s/.*/./; q'`
  11973. # CDPATH.
  11974. $as_unset CDPATH
  11975. as_lineno_1=$LINENO
  11976. as_lineno_2=$LINENO
  11977. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11978. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  11979. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11980. # uniformly replaced by the line number. The first 'sed' inserts a
  11981. # line-number line after each line using $LINENO; the second 'sed'
  11982. # does the real work. The second script uses 'N' to pair each
  11983. # line-number line with the line containing $LINENO, and appends
  11984. # trailing '-' during substitution so that $LINENO is not a special
  11985. # case at line end.
  11986. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11987. # scripts with optimization help from Paolo Bonzini. Blame Lee
  11988. # E. McMahon (1931-1989) for sed's syntax. :-)
  11989. sed -n '
  11990. p
  11991. /[$]LINENO/=
  11992. ' <$as_myself |
  11993. sed '
  11994. s/[$]LINENO.*/&-/
  11995. t lineno
  11996. b
  11997. :lineno
  11998. N
  11999. :loop
  12000. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  12001. t loop
  12002. s/-\n.*//
  12003. ' >$as_me.lineno &&
  12004. chmod +x "$as_me.lineno" ||
  12005. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  12006. { (exit 1); exit 1; }; }
  12007. # Don't try to exec as it changes $[0], causing all sort of problems
  12008. # (the dirname of $[0] is not the place where we might find the
  12009. # original and so on. Autoconf is especially sensitive to this).
  12010. . "./$as_me.lineno"
  12011. # Exit status is that of the last command.
  12012. exit
  12013. }
  12014. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  12015. as_dirname=dirname
  12016. else
  12017. as_dirname=false
  12018. fi
  12019. ECHO_C= ECHO_N= ECHO_T=
  12020. case `echo -n x` in
  12021. -n*)
  12022. case `echo 'x\c'` in
  12023. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  12024. *) ECHO_C='\c';;
  12025. esac;;
  12026. *)
  12027. ECHO_N='-n';;
  12028. esac
  12029. if expr a : '\(a\)' >/dev/null 2>&1 &&
  12030. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  12031. as_expr=expr
  12032. else
  12033. as_expr=false
  12034. fi
  12035. rm -f conf$$ conf$$.exe conf$$.file
  12036. if test -d conf$$.dir; then
  12037. rm -f conf$$.dir/conf$$.file
  12038. else
  12039. rm -f conf$$.dir
  12040. mkdir conf$$.dir
  12041. fi
  12042. echo >conf$$.file
  12043. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12044. as_ln_s='ln -s'
  12045. # ... but there are two gotchas:
  12046. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  12047. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  12048. # In both cases, we have to default to `cp -p'.
  12049. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  12050. as_ln_s='cp -p'
  12051. elif ln conf$$.file conf$$ 2>/dev/null; then
  12052. as_ln_s=ln
  12053. else
  12054. as_ln_s='cp -p'
  12055. fi
  12056. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  12057. rmdir conf$$.dir 2>/dev/null
  12058. if mkdir -p . 2>/dev/null; then
  12059. as_mkdir_p=:
  12060. else
  12061. test -d ./-p && rmdir ./-p
  12062. as_mkdir_p=false
  12063. fi
  12064. if test -x / >/dev/null 2>&1; then
  12065. as_test_x='test -x'
  12066. else
  12067. if ls -dL / >/dev/null 2>&1; then
  12068. as_ls_L_option=L
  12069. else
  12070. as_ls_L_option=
  12071. fi
  12072. as_test_x='
  12073. eval sh -c '\''
  12074. if test -d "$1"; then
  12075. test -d "$1/.";
  12076. else
  12077. case $1 in
  12078. -*)set "./$1";;
  12079. esac;
  12080. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  12081. ???[sx]*):;;*)false;;esac;fi
  12082. '\'' sh
  12083. '
  12084. fi
  12085. as_executable_p=$as_test_x
  12086. # Sed expression to map a string onto a valid CPP name.
  12087. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12088. # Sed expression to map a string onto a valid variable name.
  12089. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12090. exec 6>&1
  12091. # Save the log message, to keep $[0] and so on meaningful, and to
  12092. # report actual input values of CONFIG_FILES etc. instead of their
  12093. # values after options handling.
  12094. ac_log="
  12095. This file was extended by aria2c $as_me 0.11.1+1, which was
  12096. generated by GNU Autoconf 2.61. Invocation command line was
  12097. CONFIG_FILES = $CONFIG_FILES
  12098. CONFIG_HEADERS = $CONFIG_HEADERS
  12099. CONFIG_LINKS = $CONFIG_LINKS
  12100. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12101. $ $0 $@
  12102. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  12103. "
  12104. _ACEOF
  12105. cat >>$CONFIG_STATUS <<_ACEOF
  12106. # Files that config.status was made for.
  12107. config_files="$ac_config_files"
  12108. config_headers="$ac_config_headers"
  12109. config_commands="$ac_config_commands"
  12110. _ACEOF
  12111. cat >>$CONFIG_STATUS <<\_ACEOF
  12112. ac_cs_usage="\
  12113. \`$as_me' instantiates files from templates according to the
  12114. current configuration.
  12115. Usage: $0 [OPTIONS] [FILE]...
  12116. -h, --help print this help, then exit
  12117. -V, --version print version number and configuration settings, then exit
  12118. -q, --quiet do not print progress messages
  12119. -d, --debug don't remove temporary files
  12120. --recheck update $as_me by reconfiguring in the same conditions
  12121. --file=FILE[:TEMPLATE]
  12122. instantiate the configuration file FILE
  12123. --header=FILE[:TEMPLATE]
  12124. instantiate the configuration header FILE
  12125. Configuration files:
  12126. $config_files
  12127. Configuration headers:
  12128. $config_headers
  12129. Configuration commands:
  12130. $config_commands
  12131. Report bugs to <bug-autoconf@gnu.org>."
  12132. _ACEOF
  12133. cat >>$CONFIG_STATUS <<_ACEOF
  12134. ac_cs_version="\\
  12135. aria2c config.status 0.11.1+1
  12136. configured by $0, generated by GNU Autoconf 2.61,
  12137. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  12138. Copyright (C) 2006 Free Software Foundation, Inc.
  12139. This config.status script is free software; the Free Software Foundation
  12140. gives unlimited permission to copy, distribute and modify it."
  12141. ac_pwd='$ac_pwd'
  12142. srcdir='$srcdir'
  12143. INSTALL='$INSTALL'
  12144. _ACEOF
  12145. cat >>$CONFIG_STATUS <<\_ACEOF
  12146. # If no file are specified by the user, then we need to provide default
  12147. # value. By we need to know if files were specified by the user.
  12148. ac_need_defaults=:
  12149. while test $# != 0
  12150. do
  12151. case $1 in
  12152. --*=*)
  12153. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  12154. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  12155. ac_shift=:
  12156. ;;
  12157. *)
  12158. ac_option=$1
  12159. ac_optarg=$2
  12160. ac_shift=shift
  12161. ;;
  12162. esac
  12163. case $ac_option in
  12164. # Handling of the options.
  12165. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12166. ac_cs_recheck=: ;;
  12167. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  12168. echo "$ac_cs_version"; exit ;;
  12169. --debug | --debu | --deb | --de | --d | -d )
  12170. debug=: ;;
  12171. --file | --fil | --fi | --f )
  12172. $ac_shift
  12173. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12174. ac_need_defaults=false;;
  12175. --header | --heade | --head | --hea )
  12176. $ac_shift
  12177. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12178. ac_need_defaults=false;;
  12179. --he | --h)
  12180. # Conflict between --help and --header
  12181. { echo "$as_me: error: ambiguous option: $1
  12182. Try \`$0 --help' for more information." >&2
  12183. { (exit 1); exit 1; }; };;
  12184. --help | --hel | -h )
  12185. echo "$ac_cs_usage"; exit ;;
  12186. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12187. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12188. ac_cs_silent=: ;;
  12189. # This is an error.
  12190. -*) { echo "$as_me: error: unrecognized option: $1
  12191. Try \`$0 --help' for more information." >&2
  12192. { (exit 1); exit 1; }; } ;;
  12193. *) ac_config_targets="$ac_config_targets $1"
  12194. ac_need_defaults=false ;;
  12195. esac
  12196. shift
  12197. done
  12198. ac_configure_extra_args=
  12199. if $ac_cs_silent; then
  12200. exec 6>/dev/null
  12201. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12202. fi
  12203. _ACEOF
  12204. cat >>$CONFIG_STATUS <<_ACEOF
  12205. if \$ac_cs_recheck; then
  12206. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12207. CONFIG_SHELL=$SHELL
  12208. export CONFIG_SHELL
  12209. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12210. fi
  12211. _ACEOF
  12212. cat >>$CONFIG_STATUS <<\_ACEOF
  12213. exec 5>>config.log
  12214. {
  12215. echo
  12216. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12217. ## Running $as_me. ##
  12218. _ASBOX
  12219. echo "$ac_log"
  12220. } >&5
  12221. _ACEOF
  12222. cat >>$CONFIG_STATUS <<_ACEOF
  12223. #
  12224. # INIT-COMMANDS
  12225. #
  12226. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  12227. # Capture the value of obsolete ALL_LINGUAS because we need it to compute
  12228. # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
  12229. # from automake.
  12230. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
  12231. # Capture the value of LINGUAS because we need it to compute CATALOGS.
  12232. LINGUAS="${LINGUAS-%UNSET%}"
  12233. _ACEOF
  12234. cat >>$CONFIG_STATUS <<\_ACEOF
  12235. # Handling of arguments.
  12236. for ac_config_target in $ac_config_targets
  12237. do
  12238. case $ac_config_target in
  12239. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12240. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12241. "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  12242. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12243. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12244. "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  12245. "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
  12246. "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
  12247. "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
  12248. "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  12249. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12250. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12251. { (exit 1); exit 1; }; };;
  12252. esac
  12253. done
  12254. # If the user did not use the arguments to specify the items to instantiate,
  12255. # then the envvar interface is used. Set only those that are not.
  12256. # We use the long form for the default assignment because of an extremely
  12257. # bizarre bug on SunOS 4.1.3.
  12258. if $ac_need_defaults; then
  12259. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12260. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12261. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12262. fi
  12263. # Have a temporary directory for convenience. Make it in the build tree
  12264. # simply because there is no reason against having it here, and in addition,
  12265. # creating and moving files from /tmp can sometimes cause problems.
  12266. # Hook for its removal unless debugging.
  12267. # Note that there is a small window in which the directory will not be cleaned:
  12268. # after its creation but before its name has been assigned to `$tmp'.
  12269. $debug ||
  12270. {
  12271. tmp=
  12272. trap 'exit_status=$?
  12273. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  12274. ' 0
  12275. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12276. }
  12277. # Create a (secure) tmp directory for tmp files.
  12278. {
  12279. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12280. test -n "$tmp" && test -d "$tmp"
  12281. } ||
  12282. {
  12283. tmp=./conf$$-$RANDOM
  12284. (umask 077 && mkdir "$tmp")
  12285. } ||
  12286. {
  12287. echo "$me: cannot create a temporary directory in ." >&2
  12288. { (exit 1); exit 1; }
  12289. }
  12290. #
  12291. # Set up the sed scripts for CONFIG_FILES section.
  12292. #
  12293. # No need to generate the scripts if there are no CONFIG_FILES.
  12294. # This happens for instance when ./config.status config.h
  12295. if test -n "$CONFIG_FILES"; then
  12296. _ACEOF
  12297. ac_delim='%!_!# '
  12298. for ac_last_try in false false false false false :; do
  12299. cat >conf$$subs.sed <<_ACEOF
  12300. SHELL!$SHELL$ac_delim
  12301. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  12302. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  12303. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  12304. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  12305. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  12306. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  12307. exec_prefix!$exec_prefix$ac_delim
  12308. prefix!$prefix$ac_delim
  12309. program_transform_name!$program_transform_name$ac_delim
  12310. bindir!$bindir$ac_delim
  12311. sbindir!$sbindir$ac_delim
  12312. libexecdir!$libexecdir$ac_delim
  12313. datarootdir!$datarootdir$ac_delim
  12314. datadir!$datadir$ac_delim
  12315. sysconfdir!$sysconfdir$ac_delim
  12316. sharedstatedir!$sharedstatedir$ac_delim
  12317. localstatedir!$localstatedir$ac_delim
  12318. includedir!$includedir$ac_delim
  12319. oldincludedir!$oldincludedir$ac_delim
  12320. docdir!$docdir$ac_delim
  12321. infodir!$infodir$ac_delim
  12322. htmldir!$htmldir$ac_delim
  12323. dvidir!$dvidir$ac_delim
  12324. pdfdir!$pdfdir$ac_delim
  12325. psdir!$psdir$ac_delim
  12326. libdir!$libdir$ac_delim
  12327. localedir!$localedir$ac_delim
  12328. mandir!$mandir$ac_delim
  12329. DEFS!$DEFS$ac_delim
  12330. ECHO_C!$ECHO_C$ac_delim
  12331. ECHO_N!$ECHO_N$ac_delim
  12332. ECHO_T!$ECHO_T$ac_delim
  12333. LIBS!$LIBS$ac_delim
  12334. build_alias!$build_alias$ac_delim
  12335. host_alias!$host_alias$ac_delim
  12336. target_alias!$target_alias$ac_delim
  12337. build!$build$ac_delim
  12338. build_cpu!$build_cpu$ac_delim
  12339. build_vendor!$build_vendor$ac_delim
  12340. build_os!$build_os$ac_delim
  12341. host!$host$ac_delim
  12342. host_cpu!$host_cpu$ac_delim
  12343. host_vendor!$host_vendor$ac_delim
  12344. host_os!$host_os$ac_delim
  12345. target!$target$ac_delim
  12346. target_cpu!$target_cpu$ac_delim
  12347. target_vendor!$target_vendor$ac_delim
  12348. target_os!$target_os$ac_delim
  12349. INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
  12350. INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
  12351. INSTALL_DATA!$INSTALL_DATA$ac_delim
  12352. CYGPATH_W!$CYGPATH_W$ac_delim
  12353. PACKAGE!$PACKAGE$ac_delim
  12354. VERSION!$VERSION$ac_delim
  12355. ACLOCAL!$ACLOCAL$ac_delim
  12356. AUTOCONF!$AUTOCONF$ac_delim
  12357. AUTOMAKE!$AUTOMAKE$ac_delim
  12358. AUTOHEADER!$AUTOHEADER$ac_delim
  12359. MAKEINFO!$MAKEINFO$ac_delim
  12360. install_sh!$install_sh$ac_delim
  12361. STRIP!$STRIP$ac_delim
  12362. INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
  12363. mkdir_p!$mkdir_p$ac_delim
  12364. AWK!$AWK$ac_delim
  12365. SET_MAKE!$SET_MAKE$ac_delim
  12366. am__leading_dot!$am__leading_dot$ac_delim
  12367. AMTAR!$AMTAR$ac_delim
  12368. am__tar!$am__tar$ac_delim
  12369. am__untar!$am__untar$ac_delim
  12370. CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
  12371. CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
  12372. CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
  12373. WINSOCK_LIBS!$WINSOCK_LIBS$ac_delim
  12374. CXX!$CXX$ac_delim
  12375. CXXFLAGS!$CXXFLAGS$ac_delim
  12376. LDFLAGS!$LDFLAGS$ac_delim
  12377. CPPFLAGS!$CPPFLAGS$ac_delim
  12378. ac_ct_CXX!$ac_ct_CXX$ac_delim
  12379. EXEEXT!$EXEEXT$ac_delim
  12380. OBJEXT!$OBJEXT$ac_delim
  12381. DEPDIR!$DEPDIR$ac_delim
  12382. am__include!$am__include$ac_delim
  12383. am__quote!$am__quote$ac_delim
  12384. AMDEP_TRUE!$AMDEP_TRUE$ac_delim
  12385. AMDEP_FALSE!$AMDEP_FALSE$ac_delim
  12386. AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
  12387. CXXDEPMODE!$CXXDEPMODE$ac_delim
  12388. am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
  12389. am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
  12390. CC!$CC$ac_delim
  12391. CFLAGS!$CFLAGS$ac_delim
  12392. ac_ct_CC!$ac_ct_CC$ac_delim
  12393. CCDEPMODE!$CCDEPMODE$ac_delim
  12394. am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
  12395. am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
  12396. RANLIB!$RANLIB$ac_delim
  12397. _ACEOF
  12398. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
  12399. break
  12400. elif $ac_last_try; then
  12401. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12402. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12403. { (exit 1); exit 1; }; }
  12404. else
  12405. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12406. fi
  12407. done
  12408. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12409. if test -n "$ac_eof"; then
  12410. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12411. ac_eof=`expr $ac_eof + 1`
  12412. fi
  12413. cat >>$CONFIG_STATUS <<_ACEOF
  12414. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  12415. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12416. _ACEOF
  12417. sed '
  12418. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12419. s/^/s,@/; s/!/@,|#_!!_#|/
  12420. :n
  12421. t n
  12422. s/'"$ac_delim"'$/,g/; t
  12423. s/$/\\/; p
  12424. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12425. ' >>$CONFIG_STATUS <conf$$subs.sed
  12426. rm -f conf$$subs.sed
  12427. cat >>$CONFIG_STATUS <<_ACEOF
  12428. CEOF$ac_eof
  12429. _ACEOF
  12430. ac_delim='%!_!# '
  12431. for ac_last_try in false false false false false :; do
  12432. cat >conf$$subs.sed <<_ACEOF
  12433. YACC!$YACC$ac_delim
  12434. YFLAGS!$YFLAGS$ac_delim
  12435. XML2_CONFIG!$XML2_CONFIG$ac_delim
  12436. XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim
  12437. XML_LIBS!$XML_LIBS$ac_delim
  12438. LIBGNUTLS_CONFIG!$LIBGNUTLS_CONFIG$ac_delim
  12439. LIBGNUTLS_CFLAGS!$LIBGNUTLS_CFLAGS$ac_delim
  12440. LIBGNUTLS_LIBS!$LIBGNUTLS_LIBS$ac_delim
  12441. LIBGCRYPT_CONFIG!$LIBGCRYPT_CONFIG$ac_delim
  12442. LIBGCRYPT_CFLAGS!$LIBGCRYPT_CFLAGS$ac_delim
  12443. LIBGCRYPT_LIBS!$LIBGCRYPT_LIBS$ac_delim
  12444. OPENSSL_LIBS!$OPENSSL_LIBS$ac_delim
  12445. OPENSSL_CFLAGS!$OPENSSL_CFLAGS$ac_delim
  12446. LIBCARES_LIBS!$LIBCARES_LIBS$ac_delim
  12447. LIBCARES_CPPFLAGS!$LIBCARES_CPPFLAGS$ac_delim
  12448. LIBARES_LIBS!$LIBARES_LIBS$ac_delim
  12449. LIBARES_CPPFLAGS!$LIBARES_CPPFLAGS$ac_delim
  12450. ENABLE_MESSAGE_DIGEST_TRUE!$ENABLE_MESSAGE_DIGEST_TRUE$ac_delim
  12451. ENABLE_MESSAGE_DIGEST_FALSE!$ENABLE_MESSAGE_DIGEST_FALSE$ac_delim
  12452. ENABLE_BITTORRENT_TRUE!$ENABLE_BITTORRENT_TRUE$ac_delim
  12453. ENABLE_BITTORRENT_FALSE!$ENABLE_BITTORRENT_FALSE$ac_delim
  12454. ENABLE_METALINK_TRUE!$ENABLE_METALINK_TRUE$ac_delim
  12455. ENABLE_METALINK_FALSE!$ENABLE_METALINK_FALSE$ac_delim
  12456. ENABLE_ASYNC_DNS_TRUE!$ENABLE_ASYNC_DNS_TRUE$ac_delim
  12457. ENABLE_ASYNC_DNS_FALSE!$ENABLE_ASYNC_DNS_FALSE$ac_delim
  12458. ALLOCA!$ALLOCA$ac_delim
  12459. CPP!$CPP$ac_delim
  12460. GREP!$GREP$ac_delim
  12461. EGREP!$EGREP$ac_delim
  12462. MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
  12463. USE_NLS!$USE_NLS$ac_delim
  12464. MSGFMT!$MSGFMT$ac_delim
  12465. GMSGFMT!$GMSGFMT$ac_delim
  12466. XGETTEXT!$XGETTEXT$ac_delim
  12467. MSGMERGE!$MSGMERGE$ac_delim
  12468. GLIBC21!$GLIBC21$ac_delim
  12469. LIBICONV!$LIBICONV$ac_delim
  12470. LTLIBICONV!$LTLIBICONV$ac_delim
  12471. INTLBISON!$INTLBISON$ac_delim
  12472. BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
  12473. USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
  12474. CATOBJEXT!$CATOBJEXT$ac_delim
  12475. DATADIRNAME!$DATADIRNAME$ac_delim
  12476. INSTOBJEXT!$INSTOBJEXT$ac_delim
  12477. GENCAT!$GENCAT$ac_delim
  12478. INTLOBJS!$INTLOBJS$ac_delim
  12479. INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
  12480. INTLLIBS!$INTLLIBS$ac_delim
  12481. LIBINTL!$LIBINTL$ac_delim
  12482. LTLIBINTL!$LTLIBINTL$ac_delim
  12483. POSUB!$POSUB$ac_delim
  12484. LIBOBJS!$LIBOBJS$ac_delim
  12485. HAVE_BASENAME_TRUE!$HAVE_BASENAME_TRUE$ac_delim
  12486. HAVE_BASENAME_FALSE!$HAVE_BASENAME_FALSE$ac_delim
  12487. HAVE_GETADDRINFO_TRUE!$HAVE_GETADDRINFO_TRUE$ac_delim
  12488. HAVE_GETADDRINFO_FALSE!$HAVE_GETADDRINFO_FALSE$ac_delim
  12489. HAVE_INET_ATON_TRUE!$HAVE_INET_ATON_TRUE$ac_delim
  12490. HAVE_INET_ATON_FALSE!$HAVE_INET_ATON_FALSE$ac_delim
  12491. HAVE_LOCALTIME_R_TRUE!$HAVE_LOCALTIME_R_TRUE$ac_delim
  12492. HAVE_LOCALTIME_R_FALSE!$HAVE_LOCALTIME_R_FALSE$ac_delim
  12493. HAVE_STRPTIME_TRUE!$HAVE_STRPTIME_TRUE$ac_delim
  12494. HAVE_STRPTIME_FALSE!$HAVE_STRPTIME_FALSE$ac_delim
  12495. LTLIBOBJS!$LTLIBOBJS$ac_delim
  12496. _ACEOF
  12497. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
  12498. break
  12499. elif $ac_last_try; then
  12500. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  12501. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  12502. { (exit 1); exit 1; }; }
  12503. else
  12504. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12505. fi
  12506. done
  12507. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  12508. if test -n "$ac_eof"; then
  12509. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  12510. ac_eof=`expr $ac_eof + 1`
  12511. fi
  12512. cat >>$CONFIG_STATUS <<_ACEOF
  12513. cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
  12514. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  12515. _ACEOF
  12516. sed '
  12517. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  12518. s/^/s,@/; s/!/@,|#_!!_#|/
  12519. :n
  12520. t n
  12521. s/'"$ac_delim"'$/,g/; t
  12522. s/$/\\/; p
  12523. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  12524. ' >>$CONFIG_STATUS <conf$$subs.sed
  12525. rm -f conf$$subs.sed
  12526. cat >>$CONFIG_STATUS <<_ACEOF
  12527. :end
  12528. s/|#_!!_#|//g
  12529. CEOF$ac_eof
  12530. _ACEOF
  12531. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12532. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12533. # trailing colons and then remove the whole line if VPATH becomes empty
  12534. # (actually we leave an empty line to preserve line numbers).
  12535. if test "x$srcdir" = x.; then
  12536. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12537. s/:*\$(srcdir):*/:/
  12538. s/:*\${srcdir}:*/:/
  12539. s/:*@srcdir@:*/:/
  12540. s/^\([^=]*=[ ]*\):*/\1/
  12541. s/:*$//
  12542. s/^[^=]*=[ ]*$//
  12543. }'
  12544. fi
  12545. cat >>$CONFIG_STATUS <<\_ACEOF
  12546. fi # test -n "$CONFIG_FILES"
  12547. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
  12548. do
  12549. case $ac_tag in
  12550. :[FHLC]) ac_mode=$ac_tag; continue;;
  12551. esac
  12552. case $ac_mode$ac_tag in
  12553. :[FHL]*:*);;
  12554. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  12555. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  12556. { (exit 1); exit 1; }; };;
  12557. :[FH]-) ac_tag=-:-;;
  12558. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12559. esac
  12560. ac_save_IFS=$IFS
  12561. IFS=:
  12562. set x $ac_tag
  12563. IFS=$ac_save_IFS
  12564. shift
  12565. ac_file=$1
  12566. shift
  12567. case $ac_mode in
  12568. :L) ac_source=$1;;
  12569. :[FH])
  12570. ac_file_inputs=
  12571. for ac_f
  12572. do
  12573. case $ac_f in
  12574. -) ac_f="$tmp/stdin";;
  12575. *) # Look for the file first in the build tree, then in the source tree
  12576. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12577. # because $ac_f cannot contain `:'.
  12578. test -f "$ac_f" ||
  12579. case $ac_f in
  12580. [\\/$]*) false;;
  12581. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12582. esac ||
  12583. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  12584. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  12585. { (exit 1); exit 1; }; };;
  12586. esac
  12587. ac_file_inputs="$ac_file_inputs $ac_f"
  12588. done
  12589. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12590. # use $as_me), people would be surprised to read:
  12591. # /* config.h. Generated by config.status. */
  12592. configure_input="Generated from "`IFS=:
  12593. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  12594. if test x"$ac_file" != x-; then
  12595. configure_input="$ac_file. $configure_input"
  12596. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12597. echo "$as_me: creating $ac_file" >&6;}
  12598. fi
  12599. case $ac_tag in
  12600. *:-:* | *:-) cat >"$tmp/stdin";;
  12601. esac
  12602. ;;
  12603. esac
  12604. ac_dir=`$as_dirname -- "$ac_file" ||
  12605. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12606. X"$ac_file" : 'X\(//\)[^/]' \| \
  12607. X"$ac_file" : 'X\(//\)$' \| \
  12608. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12609. echo X"$ac_file" |
  12610. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12611. s//\1/
  12612. q
  12613. }
  12614. /^X\(\/\/\)[^/].*/{
  12615. s//\1/
  12616. q
  12617. }
  12618. /^X\(\/\/\)$/{
  12619. s//\1/
  12620. q
  12621. }
  12622. /^X\(\/\).*/{
  12623. s//\1/
  12624. q
  12625. }
  12626. s/.*/./; q'`
  12627. { as_dir="$ac_dir"
  12628. case $as_dir in #(
  12629. -*) as_dir=./$as_dir;;
  12630. esac
  12631. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12632. as_dirs=
  12633. while :; do
  12634. case $as_dir in #(
  12635. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12636. *) as_qdir=$as_dir;;
  12637. esac
  12638. as_dirs="'$as_qdir' $as_dirs"
  12639. as_dir=`$as_dirname -- "$as_dir" ||
  12640. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12641. X"$as_dir" : 'X\(//\)[^/]' \| \
  12642. X"$as_dir" : 'X\(//\)$' \| \
  12643. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12644. echo X"$as_dir" |
  12645. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12646. s//\1/
  12647. q
  12648. }
  12649. /^X\(\/\/\)[^/].*/{
  12650. s//\1/
  12651. q
  12652. }
  12653. /^X\(\/\/\)$/{
  12654. s//\1/
  12655. q
  12656. }
  12657. /^X\(\/\).*/{
  12658. s//\1/
  12659. q
  12660. }
  12661. s/.*/./; q'`
  12662. test -d "$as_dir" && break
  12663. done
  12664. test -z "$as_dirs" || eval "mkdir $as_dirs"
  12665. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  12666. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  12667. { (exit 1); exit 1; }; }; }
  12668. ac_builddir=.
  12669. case "$ac_dir" in
  12670. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12671. *)
  12672. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12673. # A ".." for each directory in $ac_dir_suffix.
  12674. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  12675. case $ac_top_builddir_sub in
  12676. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12677. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12678. esac ;;
  12679. esac
  12680. ac_abs_top_builddir=$ac_pwd
  12681. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12682. # for backward compatibility:
  12683. ac_top_builddir=$ac_top_build_prefix
  12684. case $srcdir in
  12685. .) # We are building in place.
  12686. ac_srcdir=.
  12687. ac_top_srcdir=$ac_top_builddir_sub
  12688. ac_abs_top_srcdir=$ac_pwd ;;
  12689. [\\/]* | ?:[\\/]* ) # Absolute name.
  12690. ac_srcdir=$srcdir$ac_dir_suffix;
  12691. ac_top_srcdir=$srcdir
  12692. ac_abs_top_srcdir=$srcdir ;;
  12693. *) # Relative name.
  12694. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12695. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12696. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12697. esac
  12698. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12699. case $ac_mode in
  12700. :F)
  12701. #
  12702. # CONFIG_FILE
  12703. #
  12704. case $INSTALL in
  12705. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12706. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12707. esac
  12708. _ACEOF
  12709. cat >>$CONFIG_STATUS <<\_ACEOF
  12710. # If the template does not know about datarootdir, expand it.
  12711. # FIXME: This hack should be removed a few years after 2.60.
  12712. ac_datarootdir_hack=; ac_datarootdir_seen=
  12713. case `sed -n '/datarootdir/ {
  12714. p
  12715. q
  12716. }
  12717. /@datadir@/p
  12718. /@docdir@/p
  12719. /@infodir@/p
  12720. /@localedir@/p
  12721. /@mandir@/p
  12722. ' $ac_file_inputs` in
  12723. *datarootdir*) ac_datarootdir_seen=yes;;
  12724. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12725. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12726. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12727. _ACEOF
  12728. cat >>$CONFIG_STATUS <<_ACEOF
  12729. ac_datarootdir_hack='
  12730. s&@datadir@&$datadir&g
  12731. s&@docdir@&$docdir&g
  12732. s&@infodir@&$infodir&g
  12733. s&@localedir@&$localedir&g
  12734. s&@mandir@&$mandir&g
  12735. s&\\\${datarootdir}&$datarootdir&g' ;;
  12736. esac
  12737. _ACEOF
  12738. # Neutralize VPATH when `$srcdir' = `.'.
  12739. # Shell code in configure.ac might set extrasub.
  12740. # FIXME: do we really want to maintain this feature?
  12741. cat >>$CONFIG_STATUS <<_ACEOF
  12742. sed "$ac_vpsub
  12743. $extrasub
  12744. _ACEOF
  12745. cat >>$CONFIG_STATUS <<\_ACEOF
  12746. :t
  12747. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12748. s&@configure_input@&$configure_input&;t t
  12749. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12750. s&@srcdir@&$ac_srcdir&;t t
  12751. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12752. s&@top_srcdir@&$ac_top_srcdir&;t t
  12753. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12754. s&@builddir@&$ac_builddir&;t t
  12755. s&@abs_builddir@&$ac_abs_builddir&;t t
  12756. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12757. s&@INSTALL@&$ac_INSTALL&;t t
  12758. $ac_datarootdir_hack
  12759. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
  12760. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12761. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  12762. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  12763. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12764. which seems to be undefined. Please make sure it is defined." >&5
  12765. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12766. which seems to be undefined. Please make sure it is defined." >&2;}
  12767. rm -f "$tmp/stdin"
  12768. case $ac_file in
  12769. -) cat "$tmp/out"; rm -f "$tmp/out";;
  12770. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  12771. esac
  12772. ;;
  12773. :H)
  12774. #
  12775. # CONFIG_HEADER
  12776. #
  12777. _ACEOF
  12778. # Transform confdefs.h into a sed script `conftest.defines', that
  12779. # substitutes the proper values into config.h.in to produce config.h.
  12780. rm -f conftest.defines conftest.tail
  12781. # First, append a space to every undef/define line, to ease matching.
  12782. echo 's/$/ /' >conftest.defines
  12783. # Then, protect against being on the right side of a sed subst, or in
  12784. # an unquoted here document, in config.status. If some macros were
  12785. # called several times there might be several #defines for the same
  12786. # symbol, which is useless. But do not sort them, since the last
  12787. # AC_DEFINE must be honored.
  12788. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12789. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  12790. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  12791. # PARAMS is the parameter list in the macro definition--in most cases, it's
  12792. # just an empty string.
  12793. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  12794. ac_dB='\\)[ (].*,\\1define\\2'
  12795. ac_dC=' '
  12796. ac_dD=' ,'
  12797. uniq confdefs.h |
  12798. sed -n '
  12799. t rset
  12800. :rset
  12801. s/^[ ]*#[ ]*define[ ][ ]*//
  12802. t ok
  12803. d
  12804. :ok
  12805. s/[\\&,]/\\&/g
  12806. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  12807. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  12808. ' >>conftest.defines
  12809. # Remove the space that was appended to ease matching.
  12810. # Then replace #undef with comments. This is necessary, for
  12811. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12812. # on some systems where configure will not decide to define it.
  12813. # (The regexp can be short, since the line contains either #define or #undef.)
  12814. echo 's/ $//
  12815. s,^[ #]*u.*,/* & */,' >>conftest.defines
  12816. # Break up conftest.defines:
  12817. ac_max_sed_lines=50
  12818. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  12819. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  12820. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  12821. # et cetera.
  12822. ac_in='$ac_file_inputs'
  12823. ac_out='"$tmp/out1"'
  12824. ac_nxt='"$tmp/out2"'
  12825. while :
  12826. do
  12827. # Write a here document:
  12828. cat >>$CONFIG_STATUS <<_ACEOF
  12829. # First, check the format of the line:
  12830. cat >"\$tmp/defines.sed" <<\\CEOF
  12831. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  12832. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  12833. b
  12834. :def
  12835. _ACEOF
  12836. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  12837. echo 'CEOF
  12838. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  12839. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  12840. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  12841. grep . conftest.tail >/dev/null || break
  12842. rm -f conftest.defines
  12843. mv conftest.tail conftest.defines
  12844. done
  12845. rm -f conftest.defines conftest.tail
  12846. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  12847. cat >>$CONFIG_STATUS <<\_ACEOF
  12848. if test x"$ac_file" != x-; then
  12849. echo "/* $configure_input */" >"$tmp/config.h"
  12850. cat "$ac_result" >>"$tmp/config.h"
  12851. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  12852. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12853. echo "$as_me: $ac_file is unchanged" >&6;}
  12854. else
  12855. rm -f $ac_file
  12856. mv "$tmp/config.h" $ac_file
  12857. fi
  12858. else
  12859. echo "/* $configure_input */"
  12860. cat "$ac_result"
  12861. fi
  12862. rm -f "$tmp/out12"
  12863. # Compute $ac_file's index in $config_headers.
  12864. _am_stamp_count=1
  12865. for _am_header in $config_headers :; do
  12866. case $_am_header in
  12867. $ac_file | $ac_file:* )
  12868. break ;;
  12869. * )
  12870. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12871. esac
  12872. done
  12873. echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
  12874. $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12875. X$ac_file : 'X\(//\)[^/]' \| \
  12876. X$ac_file : 'X\(//\)$' \| \
  12877. X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
  12878. echo X$ac_file |
  12879. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12880. s//\1/
  12881. q
  12882. }
  12883. /^X\(\/\/\)[^/].*/{
  12884. s//\1/
  12885. q
  12886. }
  12887. /^X\(\/\/\)$/{
  12888. s//\1/
  12889. q
  12890. }
  12891. /^X\(\/\).*/{
  12892. s//\1/
  12893. q
  12894. }
  12895. s/.*/./; q'`/stamp-h$_am_stamp_count
  12896. ;;
  12897. :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
  12898. echo "$as_me: executing $ac_file commands" >&6;}
  12899. ;;
  12900. esac
  12901. case $ac_file$ac_mode in
  12902. "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  12903. # Strip MF so we end up with the name of the file.
  12904. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12905. # Check whether this is an Automake generated Makefile or not.
  12906. # We used to match only the files named `Makefile.in', but
  12907. # some people rename them; so instead we look at the file content.
  12908. # Grep'ing the first line is not enough: some people post-process
  12909. # each Makefile.in and add a new line on top of each file to say so.
  12910. # So let's grep whole file.
  12911. if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  12912. dirpart=`$as_dirname -- "$mf" ||
  12913. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12914. X"$mf" : 'X\(//\)[^/]' \| \
  12915. X"$mf" : 'X\(//\)$' \| \
  12916. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12917. echo X"$mf" |
  12918. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12919. s//\1/
  12920. q
  12921. }
  12922. /^X\(\/\/\)[^/].*/{
  12923. s//\1/
  12924. q
  12925. }
  12926. /^X\(\/\/\)$/{
  12927. s//\1/
  12928. q
  12929. }
  12930. /^X\(\/\).*/{
  12931. s//\1/
  12932. q
  12933. }
  12934. s/.*/./; q'`
  12935. else
  12936. continue
  12937. fi
  12938. # Extract the definition of DEPDIR, am__include, and am__quote
  12939. # from the Makefile without running `make'.
  12940. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12941. test -z "$DEPDIR" && continue
  12942. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12943. test -z "am__include" && continue
  12944. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12945. # When using ansi2knr, U may be empty or an underscore; expand it
  12946. U=`sed -n 's/^U = //p' < "$mf"`
  12947. # Find all dependency output files, they are included files with
  12948. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12949. # simplest approach to changing $(DEPDIR) to its actual value in the
  12950. # expansion.
  12951. for file in `sed -n "
  12952. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12953. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  12954. # Make sure the directory exists.
  12955. test -f "$dirpart/$file" && continue
  12956. fdir=`$as_dirname -- "$file" ||
  12957. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12958. X"$file" : 'X\(//\)[^/]' \| \
  12959. X"$file" : 'X\(//\)$' \| \
  12960. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12961. echo X"$file" |
  12962. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12963. s//\1/
  12964. q
  12965. }
  12966. /^X\(\/\/\)[^/].*/{
  12967. s//\1/
  12968. q
  12969. }
  12970. /^X\(\/\/\)$/{
  12971. s//\1/
  12972. q
  12973. }
  12974. /^X\(\/\).*/{
  12975. s//\1/
  12976. q
  12977. }
  12978. s/.*/./; q'`
  12979. { as_dir=$dirpart/$fdir
  12980. case $as_dir in #(
  12981. -*) as_dir=./$as_dir;;
  12982. esac
  12983. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  12984. as_dirs=
  12985. while :; do
  12986. case $as_dir in #(
  12987. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  12988. *) as_qdir=$as_dir;;
  12989. esac
  12990. as_dirs="'$as_qdir' $as_dirs"
  12991. as_dir=`$as_dirname -- "$as_dir" ||
  12992. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12993. X"$as_dir" : 'X\(//\)[^/]' \| \
  12994. X"$as_dir" : 'X\(//\)$' \| \
  12995. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  12996. echo X"$as_dir" |
  12997. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12998. s//\1/
  12999. q
  13000. }
  13001. /^X\(\/\/\)[^/].*/{
  13002. s//\1/
  13003. q
  13004. }
  13005. /^X\(\/\/\)$/{
  13006. s//\1/
  13007. q
  13008. }
  13009. /^X\(\/\).*/{
  13010. s//\1/
  13011. q
  13012. }
  13013. s/.*/./; q'`
  13014. test -d "$as_dir" && break
  13015. done
  13016. test -z "$as_dirs" || eval "mkdir $as_dirs"
  13017. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  13018. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  13019. { (exit 1); exit 1; }; }; }
  13020. # echo "creating $dirpart/$file"
  13021. echo '# dummy' > "$dirpart/$file"
  13022. done
  13023. done
  13024. ;;
  13025. "default-1":C)
  13026. for ac_file in $CONFIG_FILES; do
  13027. # Support "outfile[:infile[:infile...]]"
  13028. case "$ac_file" in
  13029. *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  13030. esac
  13031. # PO directories have a Makefile.in generated from Makefile.in.in.
  13032. case "$ac_file" in */Makefile.in)
  13033. # Adjust a relative srcdir.
  13034. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
  13035. ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
  13036. ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
  13037. # In autoconf-2.13 it is called $ac_given_srcdir.
  13038. # In autoconf-2.50 it is called $srcdir.
  13039. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
  13040. case "$ac_given_srcdir" in
  13041. .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
  13042. /*) top_srcdir="$ac_given_srcdir" ;;
  13043. *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
  13044. esac
  13045. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
  13046. rm -f "$ac_dir/POTFILES"
  13047. test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
  13048. cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
  13049. POMAKEFILEDEPS="POTFILES.in"
  13050. # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
  13051. # on $ac_dir but don't depend on user-specified configuration
  13052. # parameters.
  13053. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
  13054. # The LINGUAS file contains the set of available languages.
  13055. if test -n "$OBSOLETE_ALL_LINGUAS"; then
  13056. test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
  13057. fi
  13058. ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
  13059. # Hide the ALL_LINGUAS assigment from automake.
  13060. eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
  13061. POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
  13062. else
  13063. # The set of available languages was given in configure.in.
  13064. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
  13065. fi
  13066. case "$ac_given_srcdir" in
  13067. .) srcdirpre= ;;
  13068. *) srcdirpre='$(srcdir)/' ;;
  13069. esac
  13070. POFILES=
  13071. GMOFILES=
  13072. UPDATEPOFILES=
  13073. DUMMYPOFILES=
  13074. for lang in $ALL_LINGUAS; do
  13075. POFILES="$POFILES $srcdirpre$lang.po"
  13076. GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
  13077. UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
  13078. DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
  13079. done
  13080. # CATALOGS depends on both $ac_dir and the user's LINGUAS
  13081. # environment variable.
  13082. INST_LINGUAS=
  13083. if test -n "$ALL_LINGUAS"; then
  13084. for presentlang in $ALL_LINGUAS; do
  13085. useit=no
  13086. if test "%UNSET%" != "$LINGUAS"; then
  13087. desiredlanguages="$LINGUAS"
  13088. else
  13089. desiredlanguages="$ALL_LINGUAS"
  13090. fi
  13091. for desiredlang in $desiredlanguages; do
  13092. # Use the presentlang catalog if desiredlang is
  13093. # a. equal to presentlang, or
  13094. # b. a variant of presentlang (because in this case,
  13095. # presentlang can be used as a fallback for messages
  13096. # which are not translated in the desiredlang catalog).
  13097. case "$desiredlang" in
  13098. "$presentlang"*) useit=yes;;
  13099. esac
  13100. done
  13101. if test $useit = yes; then
  13102. INST_LINGUAS="$INST_LINGUAS $presentlang"
  13103. fi
  13104. done
  13105. fi
  13106. CATALOGS=
  13107. if test -n "$INST_LINGUAS"; then
  13108. for lang in $INST_LINGUAS; do
  13109. CATALOGS="$CATALOGS $lang.gmo"
  13110. done
  13111. fi
  13112. test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
  13113. sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
  13114. for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
  13115. if test -f "$f"; then
  13116. case "$f" in
  13117. *.orig | *.bak | *~) ;;
  13118. *) cat "$f" >> "$ac_dir/Makefile" ;;
  13119. esac
  13120. fi
  13121. done
  13122. fi
  13123. ;;
  13124. esac
  13125. done ;;
  13126. esac
  13127. done # for ac_tag
  13128. { (exit 0); exit 0; }
  13129. _ACEOF
  13130. chmod +x $CONFIG_STATUS
  13131. ac_clean_files=$ac_clean_files_save
  13132. # configure is writing to config.log, and then calls config.status.
  13133. # config.status does its own redirection, appending to config.log.
  13134. # Unfortunately, on DOS this fails, as config.log is still kept open
  13135. # by configure, so config.status won't be able to write to it; its
  13136. # output is simply discarded. So we exec the FD to /dev/null,
  13137. # effectively closing config.log, so it can be properly (re)opened and
  13138. # appended to by config.status. When coming back to configure, we
  13139. # need to make the FD available again.
  13140. if test "$no_create" != yes; then
  13141. ac_cs_success=:
  13142. ac_config_status_args=
  13143. test "$silent" = yes &&
  13144. ac_config_status_args="$ac_config_status_args --quiet"
  13145. exec 5>/dev/null
  13146. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13147. exec 5>>config.log
  13148. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13149. # would make configure fail if this is the last instruction.
  13150. $ac_cs_success || { (exit 1); exit 1; }
  13151. fi