configure 361 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.18 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CC C compiler command
  742. CFLAGS C compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CPP C preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. ac_ext=c
  1152. ac_cpp='$CPP $CPPFLAGS'
  1153. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1154. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1155. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1156. if test -n "$ac_tool_prefix"; then
  1157. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1158. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1159. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1160. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1161. if test "${ac_cv_prog_CC+set}" = set; then
  1162. echo $ECHO_N "(cached) $ECHO_C" >&6
  1163. else
  1164. if test -n "$CC"; then
  1165. ac_cv_prog_CC="$CC" # Let the user override the test.
  1166. else
  1167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1168. for as_dir in $PATH
  1169. do
  1170. IFS=$as_save_IFS
  1171. test -z "$as_dir" && as_dir=.
  1172. for ac_exec_ext in '' $ac_executable_extensions; do
  1173. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1174. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1175. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1176. break 2
  1177. fi
  1178. done
  1179. done
  1180. fi
  1181. fi
  1182. CC=$ac_cv_prog_CC
  1183. if test -n "$CC"; then
  1184. echo "$as_me:$LINENO: result: $CC" >&5
  1185. echo "${ECHO_T}$CC" >&6
  1186. else
  1187. echo "$as_me:$LINENO: result: no" >&5
  1188. echo "${ECHO_T}no" >&6
  1189. fi
  1190. fi
  1191. if test -z "$ac_cv_prog_CC"; then
  1192. ac_ct_CC=$CC
  1193. # Extract the first word of "gcc", so it can be a program name with args.
  1194. set dummy gcc; ac_word=$2
  1195. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1196. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1197. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1198. echo $ECHO_N "(cached) $ECHO_C" >&6
  1199. else
  1200. if test -n "$ac_ct_CC"; then
  1201. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1202. else
  1203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1204. for as_dir in $PATH
  1205. do
  1206. IFS=$as_save_IFS
  1207. test -z "$as_dir" && as_dir=.
  1208. for ac_exec_ext in '' $ac_executable_extensions; do
  1209. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1210. ac_cv_prog_ac_ct_CC="gcc"
  1211. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1212. break 2
  1213. fi
  1214. done
  1215. done
  1216. fi
  1217. fi
  1218. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1219. if test -n "$ac_ct_CC"; then
  1220. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1221. echo "${ECHO_T}$ac_ct_CC" >&6
  1222. else
  1223. echo "$as_me:$LINENO: result: no" >&5
  1224. echo "${ECHO_T}no" >&6
  1225. fi
  1226. CC=$ac_ct_CC
  1227. else
  1228. CC="$ac_cv_prog_CC"
  1229. fi
  1230. if test -z "$CC"; then
  1231. if test -n "$ac_tool_prefix"; then
  1232. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1233. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1234. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1235. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1236. if test "${ac_cv_prog_CC+set}" = set; then
  1237. echo $ECHO_N "(cached) $ECHO_C" >&6
  1238. else
  1239. if test -n "$CC"; then
  1240. ac_cv_prog_CC="$CC" # Let the user override the test.
  1241. else
  1242. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1243. for as_dir in $PATH
  1244. do
  1245. IFS=$as_save_IFS
  1246. test -z "$as_dir" && as_dir=.
  1247. for ac_exec_ext in '' $ac_executable_extensions; do
  1248. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1249. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1250. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1251. break 2
  1252. fi
  1253. done
  1254. done
  1255. fi
  1256. fi
  1257. CC=$ac_cv_prog_CC
  1258. if test -n "$CC"; then
  1259. echo "$as_me:$LINENO: result: $CC" >&5
  1260. echo "${ECHO_T}$CC" >&6
  1261. else
  1262. echo "$as_me:$LINENO: result: no" >&5
  1263. echo "${ECHO_T}no" >&6
  1264. fi
  1265. fi
  1266. if test -z "$ac_cv_prog_CC"; then
  1267. ac_ct_CC=$CC
  1268. # Extract the first word of "cc", so it can be a program name with args.
  1269. set dummy cc; ac_word=$2
  1270. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1271. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1272. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1273. echo $ECHO_N "(cached) $ECHO_C" >&6
  1274. else
  1275. if test -n "$ac_ct_CC"; then
  1276. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1277. else
  1278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1279. for as_dir in $PATH
  1280. do
  1281. IFS=$as_save_IFS
  1282. test -z "$as_dir" && as_dir=.
  1283. for ac_exec_ext in '' $ac_executable_extensions; do
  1284. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1285. ac_cv_prog_ac_ct_CC="cc"
  1286. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1287. break 2
  1288. fi
  1289. done
  1290. done
  1291. fi
  1292. fi
  1293. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1294. if test -n "$ac_ct_CC"; then
  1295. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1296. echo "${ECHO_T}$ac_ct_CC" >&6
  1297. else
  1298. echo "$as_me:$LINENO: result: no" >&5
  1299. echo "${ECHO_T}no" >&6
  1300. fi
  1301. CC=$ac_ct_CC
  1302. else
  1303. CC="$ac_cv_prog_CC"
  1304. fi
  1305. fi
  1306. if test -z "$CC"; then
  1307. # Extract the first word of "cc", so it can be a program name with args.
  1308. set dummy cc; ac_word=$2
  1309. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1310. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1311. if test "${ac_cv_prog_CC+set}" = set; then
  1312. echo $ECHO_N "(cached) $ECHO_C" >&6
  1313. else
  1314. if test -n "$CC"; then
  1315. ac_cv_prog_CC="$CC" # Let the user override the test.
  1316. else
  1317. ac_prog_rejected=no
  1318. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1319. for as_dir in $PATH
  1320. do
  1321. IFS=$as_save_IFS
  1322. test -z "$as_dir" && as_dir=.
  1323. for ac_exec_ext in '' $ac_executable_extensions; do
  1324. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1325. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1326. ac_prog_rejected=yes
  1327. continue
  1328. fi
  1329. ac_cv_prog_CC="cc"
  1330. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1331. break 2
  1332. fi
  1333. done
  1334. done
  1335. if test $ac_prog_rejected = yes; then
  1336. # We found a bogon in the path, so make sure we never use it.
  1337. set dummy $ac_cv_prog_CC
  1338. shift
  1339. if test $# != 0; then
  1340. # We chose a different compiler from the bogus one.
  1341. # However, it has the same basename, so the bogon will be chosen
  1342. # first if we set CC to just the basename; use the full file name.
  1343. shift
  1344. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1345. fi
  1346. fi
  1347. fi
  1348. fi
  1349. CC=$ac_cv_prog_CC
  1350. if test -n "$CC"; then
  1351. echo "$as_me:$LINENO: result: $CC" >&5
  1352. echo "${ECHO_T}$CC" >&6
  1353. else
  1354. echo "$as_me:$LINENO: result: no" >&5
  1355. echo "${ECHO_T}no" >&6
  1356. fi
  1357. fi
  1358. if test -z "$CC"; then
  1359. if test -n "$ac_tool_prefix"; then
  1360. for ac_prog in cl
  1361. do
  1362. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1363. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1364. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1365. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1366. if test "${ac_cv_prog_CC+set}" = set; then
  1367. echo $ECHO_N "(cached) $ECHO_C" >&6
  1368. else
  1369. if test -n "$CC"; then
  1370. ac_cv_prog_CC="$CC" # Let the user override the test.
  1371. else
  1372. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1373. for as_dir in $PATH
  1374. do
  1375. IFS=$as_save_IFS
  1376. test -z "$as_dir" && as_dir=.
  1377. for ac_exec_ext in '' $ac_executable_extensions; do
  1378. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1379. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1380. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1381. break 2
  1382. fi
  1383. done
  1384. done
  1385. fi
  1386. fi
  1387. CC=$ac_cv_prog_CC
  1388. if test -n "$CC"; then
  1389. echo "$as_me:$LINENO: result: $CC" >&5
  1390. echo "${ECHO_T}$CC" >&6
  1391. else
  1392. echo "$as_me:$LINENO: result: no" >&5
  1393. echo "${ECHO_T}no" >&6
  1394. fi
  1395. test -n "$CC" && break
  1396. done
  1397. fi
  1398. if test -z "$CC"; then
  1399. ac_ct_CC=$CC
  1400. for ac_prog in cl
  1401. do
  1402. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1403. set dummy $ac_prog; ac_word=$2
  1404. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1405. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1406. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1407. echo $ECHO_N "(cached) $ECHO_C" >&6
  1408. else
  1409. if test -n "$ac_ct_CC"; then
  1410. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1411. else
  1412. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1413. for as_dir in $PATH
  1414. do
  1415. IFS=$as_save_IFS
  1416. test -z "$as_dir" && as_dir=.
  1417. for ac_exec_ext in '' $ac_executable_extensions; do
  1418. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1419. ac_cv_prog_ac_ct_CC="$ac_prog"
  1420. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1421. break 2
  1422. fi
  1423. done
  1424. done
  1425. fi
  1426. fi
  1427. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1428. if test -n "$ac_ct_CC"; then
  1429. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1430. echo "${ECHO_T}$ac_ct_CC" >&6
  1431. else
  1432. echo "$as_me:$LINENO: result: no" >&5
  1433. echo "${ECHO_T}no" >&6
  1434. fi
  1435. test -n "$ac_ct_CC" && break
  1436. done
  1437. CC=$ac_ct_CC
  1438. fi
  1439. fi
  1440. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1441. See \`config.log' for more details." >&5
  1442. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1443. See \`config.log' for more details." >&2;}
  1444. { (exit 1); exit 1; }; }
  1445. # Provide some information about the compiler.
  1446. echo "$as_me:$LINENO:" \
  1447. "checking for C compiler version" >&5
  1448. ac_compiler=`set X $ac_compile; echo $2`
  1449. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1450. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1451. ac_status=$?
  1452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1453. (exit $ac_status); }
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1455. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. cat >conftest.$ac_ext <<_ACEOF
  1465. /* confdefs.h. */
  1466. _ACEOF
  1467. cat confdefs.h >>conftest.$ac_ext
  1468. cat >>conftest.$ac_ext <<_ACEOF
  1469. /* end confdefs.h. */
  1470. int
  1471. main ()
  1472. {
  1473. ;
  1474. return 0;
  1475. }
  1476. _ACEOF
  1477. ac_clean_files_save=$ac_clean_files
  1478. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1479. # Try to create an executable without -o first, disregard a.out.
  1480. # It will help us diagnose broken compilers, and finding out an intuition
  1481. # of exeext.
  1482. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1483. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1484. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1485. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1486. (eval $ac_link_default) 2>&5
  1487. ac_status=$?
  1488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1489. (exit $ac_status); }; then
  1490. # Find the output, starting from the most likely. This scheme is
  1491. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1492. # resort.
  1493. # Be careful to initialize this variable, since it used to be cached.
  1494. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1495. ac_cv_exeext=
  1496. # b.out is created by i960 compilers.
  1497. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1498. do
  1499. test -f "$ac_file" || continue
  1500. case $ac_file in
  1501. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1502. ;;
  1503. conftest.$ac_ext )
  1504. # This is the source file.
  1505. ;;
  1506. [ab].out )
  1507. # We found the default executable, but exeext='' is most
  1508. # certainly right.
  1509. break;;
  1510. *.* )
  1511. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1512. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1513. # but it would be cool to find out if it's true. Does anybody
  1514. # maintain Libtool? --akim.
  1515. export ac_cv_exeext
  1516. break;;
  1517. * )
  1518. break;;
  1519. esac
  1520. done
  1521. else
  1522. echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1525. See \`config.log' for more details." >&5
  1526. echo "$as_me: error: C compiler cannot create executables
  1527. See \`config.log' for more details." >&2;}
  1528. { (exit 77); exit 77; }; }
  1529. fi
  1530. ac_exeext=$ac_cv_exeext
  1531. echo "$as_me:$LINENO: result: $ac_file" >&5
  1532. echo "${ECHO_T}$ac_file" >&6
  1533. # Check the compiler produces executables we can run. If not, either
  1534. # the compiler is broken, or we cross compile.
  1535. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1536. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1537. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1538. # If not cross compiling, check that we can run a simple program.
  1539. if test "$cross_compiling" != yes; then
  1540. if { ac_try='./$ac_file'
  1541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1542. (eval $ac_try) 2>&5
  1543. ac_status=$?
  1544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1545. (exit $ac_status); }; }; then
  1546. cross_compiling=no
  1547. else
  1548. if test "$cross_compiling" = maybe; then
  1549. cross_compiling=yes
  1550. else
  1551. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1552. If you meant to cross compile, use \`--host'.
  1553. See \`config.log' for more details." >&5
  1554. echo "$as_me: error: cannot run C compiled programs.
  1555. If you meant to cross compile, use \`--host'.
  1556. See \`config.log' for more details." >&2;}
  1557. { (exit 1); exit 1; }; }
  1558. fi
  1559. fi
  1560. fi
  1561. echo "$as_me:$LINENO: result: yes" >&5
  1562. echo "${ECHO_T}yes" >&6
  1563. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1564. ac_clean_files=$ac_clean_files_save
  1565. # Check the compiler produces executables we can run. If not, either
  1566. # the compiler is broken, or we cross compile.
  1567. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1568. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1569. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1570. echo "${ECHO_T}$cross_compiling" >&6
  1571. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1572. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1573. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1574. (eval $ac_link) 2>&5
  1575. ac_status=$?
  1576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1577. (exit $ac_status); }; then
  1578. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1579. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1580. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1581. # `rm'.
  1582. for ac_file in conftest.exe conftest conftest.*; do
  1583. test -f "$ac_file" || continue
  1584. case $ac_file in
  1585. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1586. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1587. export ac_cv_exeext
  1588. break;;
  1589. * ) break;;
  1590. esac
  1591. done
  1592. else
  1593. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1594. See \`config.log' for more details." >&5
  1595. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1596. See \`config.log' for more details." >&2;}
  1597. { (exit 1); exit 1; }; }
  1598. fi
  1599. rm -f conftest$ac_cv_exeext
  1600. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1601. echo "${ECHO_T}$ac_cv_exeext" >&6
  1602. rm -f conftest.$ac_ext
  1603. EXEEXT=$ac_cv_exeext
  1604. ac_exeext=$EXEEXT
  1605. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1606. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1607. if test "${ac_cv_objext+set}" = set; then
  1608. echo $ECHO_N "(cached) $ECHO_C" >&6
  1609. else
  1610. cat >conftest.$ac_ext <<_ACEOF
  1611. /* confdefs.h. */
  1612. _ACEOF
  1613. cat confdefs.h >>conftest.$ac_ext
  1614. cat >>conftest.$ac_ext <<_ACEOF
  1615. /* end confdefs.h. */
  1616. int
  1617. main ()
  1618. {
  1619. ;
  1620. return 0;
  1621. }
  1622. _ACEOF
  1623. rm -f conftest.o conftest.obj
  1624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1625. (eval $ac_compile) 2>&5
  1626. ac_status=$?
  1627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1628. (exit $ac_status); }; then
  1629. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1630. case $ac_file in
  1631. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1632. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1633. break;;
  1634. esac
  1635. done
  1636. else
  1637. echo "$as_me: failed program was:" >&5
  1638. sed 's/^/| /' conftest.$ac_ext >&5
  1639. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1640. See \`config.log' for more details." >&5
  1641. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1642. See \`config.log' for more details." >&2;}
  1643. { (exit 1); exit 1; }; }
  1644. fi
  1645. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1646. fi
  1647. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1648. echo "${ECHO_T}$ac_cv_objext" >&6
  1649. OBJEXT=$ac_cv_objext
  1650. ac_objext=$OBJEXT
  1651. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1652. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1653. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1654. echo $ECHO_N "(cached) $ECHO_C" >&6
  1655. else
  1656. cat >conftest.$ac_ext <<_ACEOF
  1657. /* confdefs.h. */
  1658. _ACEOF
  1659. cat confdefs.h >>conftest.$ac_ext
  1660. cat >>conftest.$ac_ext <<_ACEOF
  1661. /* end confdefs.h. */
  1662. int
  1663. main ()
  1664. {
  1665. #ifndef __GNUC__
  1666. choke me
  1667. #endif
  1668. ;
  1669. return 0;
  1670. }
  1671. _ACEOF
  1672. rm -f conftest.$ac_objext
  1673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1674. (eval $ac_compile) 2>conftest.er1
  1675. ac_status=$?
  1676. grep -v '^ *+' conftest.er1 >conftest.err
  1677. rm -f conftest.er1
  1678. cat conftest.err >&5
  1679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1680. (exit $ac_status); } &&
  1681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1683. (eval $ac_try) 2>&5
  1684. ac_status=$?
  1685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1686. (exit $ac_status); }; } &&
  1687. { ac_try='test -s conftest.$ac_objext'
  1688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1689. (eval $ac_try) 2>&5
  1690. ac_status=$?
  1691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1692. (exit $ac_status); }; }; then
  1693. ac_compiler_gnu=yes
  1694. else
  1695. echo "$as_me: failed program was:" >&5
  1696. sed 's/^/| /' conftest.$ac_ext >&5
  1697. ac_compiler_gnu=no
  1698. fi
  1699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1700. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1701. fi
  1702. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1703. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1704. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1705. ac_test_CFLAGS=${CFLAGS+set}
  1706. ac_save_CFLAGS=$CFLAGS
  1707. CFLAGS="-g"
  1708. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1709. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1710. if test "${ac_cv_prog_cc_g+set}" = set; then
  1711. echo $ECHO_N "(cached) $ECHO_C" >&6
  1712. else
  1713. cat >conftest.$ac_ext <<_ACEOF
  1714. /* confdefs.h. */
  1715. _ACEOF
  1716. cat confdefs.h >>conftest.$ac_ext
  1717. cat >>conftest.$ac_ext <<_ACEOF
  1718. /* end confdefs.h. */
  1719. int
  1720. main ()
  1721. {
  1722. ;
  1723. return 0;
  1724. }
  1725. _ACEOF
  1726. rm -f conftest.$ac_objext
  1727. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1728. (eval $ac_compile) 2>conftest.er1
  1729. ac_status=$?
  1730. grep -v '^ *+' conftest.er1 >conftest.err
  1731. rm -f conftest.er1
  1732. cat conftest.err >&5
  1733. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1734. (exit $ac_status); } &&
  1735. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1736. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1737. (eval $ac_try) 2>&5
  1738. ac_status=$?
  1739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1740. (exit $ac_status); }; } &&
  1741. { ac_try='test -s conftest.$ac_objext'
  1742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1743. (eval $ac_try) 2>&5
  1744. ac_status=$?
  1745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1746. (exit $ac_status); }; }; then
  1747. ac_cv_prog_cc_g=yes
  1748. else
  1749. echo "$as_me: failed program was:" >&5
  1750. sed 's/^/| /' conftest.$ac_ext >&5
  1751. ac_cv_prog_cc_g=no
  1752. fi
  1753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1754. fi
  1755. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1756. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1757. if test "$ac_test_CFLAGS" = set; then
  1758. CFLAGS=$ac_save_CFLAGS
  1759. elif test $ac_cv_prog_cc_g = yes; then
  1760. if test "$GCC" = yes; then
  1761. CFLAGS="-g -O2"
  1762. else
  1763. CFLAGS="-g"
  1764. fi
  1765. else
  1766. if test "$GCC" = yes; then
  1767. CFLAGS="-O2"
  1768. else
  1769. CFLAGS=
  1770. fi
  1771. fi
  1772. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1773. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1774. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1775. echo $ECHO_N "(cached) $ECHO_C" >&6
  1776. else
  1777. ac_cv_prog_cc_stdc=no
  1778. ac_save_CC=$CC
  1779. cat >conftest.$ac_ext <<_ACEOF
  1780. /* confdefs.h. */
  1781. _ACEOF
  1782. cat confdefs.h >>conftest.$ac_ext
  1783. cat >>conftest.$ac_ext <<_ACEOF
  1784. /* end confdefs.h. */
  1785. #include <stdarg.h>
  1786. #include <stdio.h>
  1787. #include <sys/types.h>
  1788. #include <sys/stat.h>
  1789. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1790. struct buf { int x; };
  1791. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1792. static char *e (p, i)
  1793. char **p;
  1794. int i;
  1795. {
  1796. return p[i];
  1797. }
  1798. static char *f (char * (*g) (char **, int), char **p, ...)
  1799. {
  1800. char *s;
  1801. va_list v;
  1802. va_start (v,p);
  1803. s = g (p, va_arg (v,int));
  1804. va_end (v);
  1805. return s;
  1806. }
  1807. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1808. function prototypes and stuff, but not '\xHH' hex character constants.
  1809. These don't provoke an error unfortunately, instead are silently treated
  1810. as 'x'. The following induces an error, until -std1 is added to get
  1811. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1812. array size at least. It's necessary to write '\x00'==0 to get something
  1813. that's true only with -std1. */
  1814. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1815. int test (int i, double x);
  1816. struct s1 {int (*f) (int a);};
  1817. struct s2 {int (*f) (double a);};
  1818. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1819. int argc;
  1820. char **argv;
  1821. int
  1822. main ()
  1823. {
  1824. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1825. ;
  1826. return 0;
  1827. }
  1828. _ACEOF
  1829. # Don't try gcc -ansi; that turns off useful extensions and
  1830. # breaks some systems' header files.
  1831. # AIX -qlanglvl=ansi
  1832. # Ultrix and OSF/1 -std1
  1833. # HP-UX 10.20 and later -Ae
  1834. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1835. # SVR4 -Xc -D__EXTENSIONS__
  1836. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1837. do
  1838. CC="$ac_save_CC $ac_arg"
  1839. rm -f conftest.$ac_objext
  1840. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1841. (eval $ac_compile) 2>conftest.er1
  1842. ac_status=$?
  1843. grep -v '^ *+' conftest.er1 >conftest.err
  1844. rm -f conftest.er1
  1845. cat conftest.err >&5
  1846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1847. (exit $ac_status); } &&
  1848. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1850. (eval $ac_try) 2>&5
  1851. ac_status=$?
  1852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1853. (exit $ac_status); }; } &&
  1854. { ac_try='test -s conftest.$ac_objext'
  1855. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1856. (eval $ac_try) 2>&5
  1857. ac_status=$?
  1858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1859. (exit $ac_status); }; }; then
  1860. ac_cv_prog_cc_stdc=$ac_arg
  1861. break
  1862. else
  1863. echo "$as_me: failed program was:" >&5
  1864. sed 's/^/| /' conftest.$ac_ext >&5
  1865. fi
  1866. rm -f conftest.err conftest.$ac_objext
  1867. done
  1868. rm -f conftest.$ac_ext conftest.$ac_objext
  1869. CC=$ac_save_CC
  1870. fi
  1871. case "x$ac_cv_prog_cc_stdc" in
  1872. x|xno)
  1873. echo "$as_me:$LINENO: result: none needed" >&5
  1874. echo "${ECHO_T}none needed" >&6 ;;
  1875. *)
  1876. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1877. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1878. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1879. esac
  1880. # Some people use a C++ compiler to compile C. Since we use `exit',
  1881. # in C++ we need to declare it. In case someone uses the same compiler
  1882. # for both compiling C and C++ we need to have the C++ compiler decide
  1883. # the declaration of exit, since it's the most demanding environment.
  1884. cat >conftest.$ac_ext <<_ACEOF
  1885. #ifndef __cplusplus
  1886. choke me
  1887. #endif
  1888. _ACEOF
  1889. rm -f conftest.$ac_objext
  1890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1891. (eval $ac_compile) 2>conftest.er1
  1892. ac_status=$?
  1893. grep -v '^ *+' conftest.er1 >conftest.err
  1894. rm -f conftest.er1
  1895. cat conftest.err >&5
  1896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1897. (exit $ac_status); } &&
  1898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1900. (eval $ac_try) 2>&5
  1901. ac_status=$?
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); }; } &&
  1904. { ac_try='test -s conftest.$ac_objext'
  1905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1906. (eval $ac_try) 2>&5
  1907. ac_status=$?
  1908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1909. (exit $ac_status); }; }; then
  1910. for ac_declaration in \
  1911. '' \
  1912. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1913. 'extern "C" void std::exit (int); using std::exit;' \
  1914. 'extern "C" void exit (int) throw ();' \
  1915. 'extern "C" void exit (int);' \
  1916. 'void exit (int);'
  1917. do
  1918. cat >conftest.$ac_ext <<_ACEOF
  1919. /* confdefs.h. */
  1920. _ACEOF
  1921. cat confdefs.h >>conftest.$ac_ext
  1922. cat >>conftest.$ac_ext <<_ACEOF
  1923. /* end confdefs.h. */
  1924. $ac_declaration
  1925. #include <stdlib.h>
  1926. int
  1927. main ()
  1928. {
  1929. exit (42);
  1930. ;
  1931. return 0;
  1932. }
  1933. _ACEOF
  1934. rm -f conftest.$ac_objext
  1935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1936. (eval $ac_compile) 2>conftest.er1
  1937. ac_status=$?
  1938. grep -v '^ *+' conftest.er1 >conftest.err
  1939. rm -f conftest.er1
  1940. cat conftest.err >&5
  1941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1942. (exit $ac_status); } &&
  1943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1945. (eval $ac_try) 2>&5
  1946. ac_status=$?
  1947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1948. (exit $ac_status); }; } &&
  1949. { ac_try='test -s conftest.$ac_objext'
  1950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1951. (eval $ac_try) 2>&5
  1952. ac_status=$?
  1953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1954. (exit $ac_status); }; }; then
  1955. :
  1956. else
  1957. echo "$as_me: failed program was:" >&5
  1958. sed 's/^/| /' conftest.$ac_ext >&5
  1959. continue
  1960. fi
  1961. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1962. cat >conftest.$ac_ext <<_ACEOF
  1963. /* confdefs.h. */
  1964. _ACEOF
  1965. cat confdefs.h >>conftest.$ac_ext
  1966. cat >>conftest.$ac_ext <<_ACEOF
  1967. /* end confdefs.h. */
  1968. $ac_declaration
  1969. int
  1970. main ()
  1971. {
  1972. exit (42);
  1973. ;
  1974. return 0;
  1975. }
  1976. _ACEOF
  1977. rm -f conftest.$ac_objext
  1978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1979. (eval $ac_compile) 2>conftest.er1
  1980. ac_status=$?
  1981. grep -v '^ *+' conftest.er1 >conftest.err
  1982. rm -f conftest.er1
  1983. cat conftest.err >&5
  1984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1985. (exit $ac_status); } &&
  1986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1988. (eval $ac_try) 2>&5
  1989. ac_status=$?
  1990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1991. (exit $ac_status); }; } &&
  1992. { ac_try='test -s conftest.$ac_objext'
  1993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1994. (eval $ac_try) 2>&5
  1995. ac_status=$?
  1996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1997. (exit $ac_status); }; }; then
  1998. break
  1999. else
  2000. echo "$as_me: failed program was:" >&5
  2001. sed 's/^/| /' conftest.$ac_ext >&5
  2002. fi
  2003. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2004. done
  2005. rm -f conftest*
  2006. if test -n "$ac_declaration"; then
  2007. echo '#ifdef __cplusplus' >>confdefs.h
  2008. echo $ac_declaration >>confdefs.h
  2009. echo '#endif' >>confdefs.h
  2010. fi
  2011. else
  2012. echo "$as_me: failed program was:" >&5
  2013. sed 's/^/| /' conftest.$ac_ext >&5
  2014. fi
  2015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2016. ac_ext=c
  2017. ac_cpp='$CPP $CPPFLAGS'
  2018. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2019. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2020. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2021. if test "${cross_compiling-x}" = "x"
  2022. then
  2023. cat << 'EOF' >&2
  2024. configure: error:
  2025. This system does not appear to have a working C compiler.
  2026. A working C compiler is required to compile Eggdrop.
  2027. EOF
  2028. exit 1
  2029. fi
  2030. # Crazy machines
  2031. ac_ext=c
  2032. ac_cpp='$CPP $CPPFLAGS'
  2033. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2034. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2035. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2036. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2037. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2038. # On Suns, sometimes $CPP names a directory.
  2039. if test -n "$CPP" && test -d "$CPP"; then
  2040. CPP=
  2041. fi
  2042. if test -z "$CPP"; then
  2043. if test "${ac_cv_prog_CPP+set}" = set; then
  2044. echo $ECHO_N "(cached) $ECHO_C" >&6
  2045. else
  2046. # Double quotes because CPP needs to be expanded
  2047. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2048. do
  2049. ac_preproc_ok=false
  2050. for ac_c_preproc_warn_flag in '' yes
  2051. do
  2052. # Use a header file that comes with gcc, so configuring glibc
  2053. # with a fresh cross-compiler works.
  2054. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2055. # <limits.h> exists even on freestanding compilers.
  2056. # On the NeXT, cc -E runs the code through the compiler's parser,
  2057. # not just through cpp. "Syntax error" is here to catch this case.
  2058. cat >conftest.$ac_ext <<_ACEOF
  2059. /* confdefs.h. */
  2060. _ACEOF
  2061. cat confdefs.h >>conftest.$ac_ext
  2062. cat >>conftest.$ac_ext <<_ACEOF
  2063. /* end confdefs.h. */
  2064. #ifdef __STDC__
  2065. # include <limits.h>
  2066. #else
  2067. # include <assert.h>
  2068. #endif
  2069. Syntax error
  2070. _ACEOF
  2071. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2072. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2073. ac_status=$?
  2074. grep -v '^ *+' conftest.er1 >conftest.err
  2075. rm -f conftest.er1
  2076. cat conftest.err >&5
  2077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2078. (exit $ac_status); } >/dev/null; then
  2079. if test -s conftest.err; then
  2080. ac_cpp_err=$ac_c_preproc_warn_flag
  2081. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2082. else
  2083. ac_cpp_err=
  2084. fi
  2085. else
  2086. ac_cpp_err=yes
  2087. fi
  2088. if test -z "$ac_cpp_err"; then
  2089. :
  2090. else
  2091. echo "$as_me: failed program was:" >&5
  2092. sed 's/^/| /' conftest.$ac_ext >&5
  2093. # Broken: fails on valid input.
  2094. continue
  2095. fi
  2096. rm -f conftest.err conftest.$ac_ext
  2097. # OK, works on sane cases. Now check whether non-existent headers
  2098. # can be detected and how.
  2099. cat >conftest.$ac_ext <<_ACEOF
  2100. /* confdefs.h. */
  2101. _ACEOF
  2102. cat confdefs.h >>conftest.$ac_ext
  2103. cat >>conftest.$ac_ext <<_ACEOF
  2104. /* end confdefs.h. */
  2105. #include <ac_nonexistent.h>
  2106. _ACEOF
  2107. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2108. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2109. ac_status=$?
  2110. grep -v '^ *+' conftest.er1 >conftest.err
  2111. rm -f conftest.er1
  2112. cat conftest.err >&5
  2113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2114. (exit $ac_status); } >/dev/null; then
  2115. if test -s conftest.err; then
  2116. ac_cpp_err=$ac_c_preproc_warn_flag
  2117. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2118. else
  2119. ac_cpp_err=
  2120. fi
  2121. else
  2122. ac_cpp_err=yes
  2123. fi
  2124. if test -z "$ac_cpp_err"; then
  2125. # Broken: success on invalid input.
  2126. continue
  2127. else
  2128. echo "$as_me: failed program was:" >&5
  2129. sed 's/^/| /' conftest.$ac_ext >&5
  2130. # Passes both tests.
  2131. ac_preproc_ok=:
  2132. break
  2133. fi
  2134. rm -f conftest.err conftest.$ac_ext
  2135. done
  2136. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2137. rm -f conftest.err conftest.$ac_ext
  2138. if $ac_preproc_ok; then
  2139. break
  2140. fi
  2141. done
  2142. ac_cv_prog_CPP=$CPP
  2143. fi
  2144. CPP=$ac_cv_prog_CPP
  2145. else
  2146. ac_cv_prog_CPP=$CPP
  2147. fi
  2148. echo "$as_me:$LINENO: result: $CPP" >&5
  2149. echo "${ECHO_T}$CPP" >&6
  2150. ac_preproc_ok=false
  2151. for ac_c_preproc_warn_flag in '' yes
  2152. do
  2153. # Use a header file that comes with gcc, so configuring glibc
  2154. # with a fresh cross-compiler works.
  2155. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2156. # <limits.h> exists even on freestanding compilers.
  2157. # On the NeXT, cc -E runs the code through the compiler's parser,
  2158. # not just through cpp. "Syntax error" is here to catch this case.
  2159. cat >conftest.$ac_ext <<_ACEOF
  2160. /* confdefs.h. */
  2161. _ACEOF
  2162. cat confdefs.h >>conftest.$ac_ext
  2163. cat >>conftest.$ac_ext <<_ACEOF
  2164. /* end confdefs.h. */
  2165. #ifdef __STDC__
  2166. # include <limits.h>
  2167. #else
  2168. # include <assert.h>
  2169. #endif
  2170. Syntax error
  2171. _ACEOF
  2172. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2173. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2174. ac_status=$?
  2175. grep -v '^ *+' conftest.er1 >conftest.err
  2176. rm -f conftest.er1
  2177. cat conftest.err >&5
  2178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2179. (exit $ac_status); } >/dev/null; then
  2180. if test -s conftest.err; then
  2181. ac_cpp_err=$ac_c_preproc_warn_flag
  2182. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2183. else
  2184. ac_cpp_err=
  2185. fi
  2186. else
  2187. ac_cpp_err=yes
  2188. fi
  2189. if test -z "$ac_cpp_err"; then
  2190. :
  2191. else
  2192. echo "$as_me: failed program was:" >&5
  2193. sed 's/^/| /' conftest.$ac_ext >&5
  2194. # Broken: fails on valid input.
  2195. continue
  2196. fi
  2197. rm -f conftest.err conftest.$ac_ext
  2198. # OK, works on sane cases. Now check whether non-existent headers
  2199. # can be detected and how.
  2200. cat >conftest.$ac_ext <<_ACEOF
  2201. /* confdefs.h. */
  2202. _ACEOF
  2203. cat confdefs.h >>conftest.$ac_ext
  2204. cat >>conftest.$ac_ext <<_ACEOF
  2205. /* end confdefs.h. */
  2206. #include <ac_nonexistent.h>
  2207. _ACEOF
  2208. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2209. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2210. ac_status=$?
  2211. grep -v '^ *+' conftest.er1 >conftest.err
  2212. rm -f conftest.er1
  2213. cat conftest.err >&5
  2214. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2215. (exit $ac_status); } >/dev/null; then
  2216. if test -s conftest.err; then
  2217. ac_cpp_err=$ac_c_preproc_warn_flag
  2218. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2219. else
  2220. ac_cpp_err=
  2221. fi
  2222. else
  2223. ac_cpp_err=yes
  2224. fi
  2225. if test -z "$ac_cpp_err"; then
  2226. # Broken: success on invalid input.
  2227. continue
  2228. else
  2229. echo "$as_me: failed program was:" >&5
  2230. sed 's/^/| /' conftest.$ac_ext >&5
  2231. # Passes both tests.
  2232. ac_preproc_ok=:
  2233. break
  2234. fi
  2235. rm -f conftest.err conftest.$ac_ext
  2236. done
  2237. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2238. rm -f conftest.err conftest.$ac_ext
  2239. if $ac_preproc_ok; then
  2240. :
  2241. else
  2242. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2243. See \`config.log' for more details." >&5
  2244. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2245. See \`config.log' for more details." >&2;}
  2246. { (exit 1); exit 1; }; }
  2247. fi
  2248. ac_ext=c
  2249. ac_cpp='$CPP $CPPFLAGS'
  2250. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2251. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2252. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2253. echo "$as_me:$LINENO: checking for egrep" >&5
  2254. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2255. if test "${ac_cv_prog_egrep+set}" = set; then
  2256. echo $ECHO_N "(cached) $ECHO_C" >&6
  2257. else
  2258. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2259. then ac_cv_prog_egrep='grep -E'
  2260. else ac_cv_prog_egrep='egrep'
  2261. fi
  2262. fi
  2263. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2264. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2265. EGREP=$ac_cv_prog_egrep
  2266. echo "$as_me:$LINENO: checking for AIX" >&5
  2267. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2268. cat >conftest.$ac_ext <<_ACEOF
  2269. /* confdefs.h. */
  2270. _ACEOF
  2271. cat confdefs.h >>conftest.$ac_ext
  2272. cat >>conftest.$ac_ext <<_ACEOF
  2273. /* end confdefs.h. */
  2274. #ifdef _AIX
  2275. yes
  2276. #endif
  2277. _ACEOF
  2278. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2279. $EGREP "yes" >/dev/null 2>&1; then
  2280. echo "$as_me:$LINENO: result: yes" >&5
  2281. echo "${ECHO_T}yes" >&6
  2282. cat >>confdefs.h <<\_ACEOF
  2283. #define _ALL_SOURCE 1
  2284. _ACEOF
  2285. else
  2286. echo "$as_me:$LINENO: result: no" >&5
  2287. echo "${ECHO_T}no" >&6
  2288. fi
  2289. rm -f conftest*
  2290. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2291. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2292. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2293. echo $ECHO_N "(cached) $ECHO_C" >&6
  2294. else
  2295. ac_check_lib_save_LIBS=$LIBS
  2296. LIBS="-lcposix $LIBS"
  2297. cat >conftest.$ac_ext <<_ACEOF
  2298. /* confdefs.h. */
  2299. _ACEOF
  2300. cat confdefs.h >>conftest.$ac_ext
  2301. cat >>conftest.$ac_ext <<_ACEOF
  2302. /* end confdefs.h. */
  2303. /* Override any gcc2 internal prototype to avoid an error. */
  2304. #ifdef __cplusplus
  2305. extern "C"
  2306. #endif
  2307. /* We use char because int might match the return type of a gcc2
  2308. builtin and then its argument prototype would still apply. */
  2309. char strerror ();
  2310. int
  2311. main ()
  2312. {
  2313. strerror ();
  2314. ;
  2315. return 0;
  2316. }
  2317. _ACEOF
  2318. rm -f conftest.$ac_objext conftest$ac_exeext
  2319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2320. (eval $ac_link) 2>conftest.er1
  2321. ac_status=$?
  2322. grep -v '^ *+' conftest.er1 >conftest.err
  2323. rm -f conftest.er1
  2324. cat conftest.err >&5
  2325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2326. (exit $ac_status); } &&
  2327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2329. (eval $ac_try) 2>&5
  2330. ac_status=$?
  2331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2332. (exit $ac_status); }; } &&
  2333. { ac_try='test -s conftest$ac_exeext'
  2334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2335. (eval $ac_try) 2>&5
  2336. ac_status=$?
  2337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2338. (exit $ac_status); }; }; then
  2339. ac_cv_lib_cposix_strerror=yes
  2340. else
  2341. echo "$as_me: failed program was:" >&5
  2342. sed 's/^/| /' conftest.$ac_ext >&5
  2343. ac_cv_lib_cposix_strerror=no
  2344. fi
  2345. rm -f conftest.err conftest.$ac_objext \
  2346. conftest$ac_exeext conftest.$ac_ext
  2347. LIBS=$ac_check_lib_save_LIBS
  2348. fi
  2349. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2350. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2351. if test $ac_cv_lib_cposix_strerror = yes; then
  2352. LIBS="$LIBS -lcposix"
  2353. fi
  2354. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2355. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2356. if test "${ac_cv_header_stdc+set}" = set; then
  2357. echo $ECHO_N "(cached) $ECHO_C" >&6
  2358. else
  2359. cat >conftest.$ac_ext <<_ACEOF
  2360. /* confdefs.h. */
  2361. _ACEOF
  2362. cat confdefs.h >>conftest.$ac_ext
  2363. cat >>conftest.$ac_ext <<_ACEOF
  2364. /* end confdefs.h. */
  2365. #include <stdlib.h>
  2366. #include <stdarg.h>
  2367. #include <string.h>
  2368. #include <float.h>
  2369. int
  2370. main ()
  2371. {
  2372. ;
  2373. return 0;
  2374. }
  2375. _ACEOF
  2376. rm -f conftest.$ac_objext
  2377. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2378. (eval $ac_compile) 2>conftest.er1
  2379. ac_status=$?
  2380. grep -v '^ *+' conftest.er1 >conftest.err
  2381. rm -f conftest.er1
  2382. cat conftest.err >&5
  2383. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2384. (exit $ac_status); } &&
  2385. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2386. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2387. (eval $ac_try) 2>&5
  2388. ac_status=$?
  2389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2390. (exit $ac_status); }; } &&
  2391. { ac_try='test -s conftest.$ac_objext'
  2392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2393. (eval $ac_try) 2>&5
  2394. ac_status=$?
  2395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2396. (exit $ac_status); }; }; then
  2397. ac_cv_header_stdc=yes
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. ac_cv_header_stdc=no
  2402. fi
  2403. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2404. if test $ac_cv_header_stdc = yes; then
  2405. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2406. cat >conftest.$ac_ext <<_ACEOF
  2407. /* confdefs.h. */
  2408. _ACEOF
  2409. cat confdefs.h >>conftest.$ac_ext
  2410. cat >>conftest.$ac_ext <<_ACEOF
  2411. /* end confdefs.h. */
  2412. #include <string.h>
  2413. _ACEOF
  2414. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2415. $EGREP "memchr" >/dev/null 2>&1; then
  2416. :
  2417. else
  2418. ac_cv_header_stdc=no
  2419. fi
  2420. rm -f conftest*
  2421. fi
  2422. if test $ac_cv_header_stdc = yes; then
  2423. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2424. cat >conftest.$ac_ext <<_ACEOF
  2425. /* confdefs.h. */
  2426. _ACEOF
  2427. cat confdefs.h >>conftest.$ac_ext
  2428. cat >>conftest.$ac_ext <<_ACEOF
  2429. /* end confdefs.h. */
  2430. #include <stdlib.h>
  2431. _ACEOF
  2432. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2433. $EGREP "free" >/dev/null 2>&1; then
  2434. :
  2435. else
  2436. ac_cv_header_stdc=no
  2437. fi
  2438. rm -f conftest*
  2439. fi
  2440. if test $ac_cv_header_stdc = yes; then
  2441. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2442. if test "$cross_compiling" = yes; then
  2443. :
  2444. else
  2445. cat >conftest.$ac_ext <<_ACEOF
  2446. /* confdefs.h. */
  2447. _ACEOF
  2448. cat confdefs.h >>conftest.$ac_ext
  2449. cat >>conftest.$ac_ext <<_ACEOF
  2450. /* end confdefs.h. */
  2451. #include <ctype.h>
  2452. #if ((' ' & 0x0FF) == 0x020)
  2453. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2454. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2455. #else
  2456. # define ISLOWER(c) \
  2457. (('a' <= (c) && (c) <= 'i') \
  2458. || ('j' <= (c) && (c) <= 'r') \
  2459. || ('s' <= (c) && (c) <= 'z'))
  2460. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2461. #endif
  2462. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2463. int
  2464. main ()
  2465. {
  2466. int i;
  2467. for (i = 0; i < 256; i++)
  2468. if (XOR (islower (i), ISLOWER (i))
  2469. || toupper (i) != TOUPPER (i))
  2470. exit(2);
  2471. exit (0);
  2472. }
  2473. _ACEOF
  2474. rm -f conftest$ac_exeext
  2475. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2476. (eval $ac_link) 2>&5
  2477. ac_status=$?
  2478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2479. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2481. (eval $ac_try) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); }; }; then
  2485. :
  2486. else
  2487. echo "$as_me: program exited with status $ac_status" >&5
  2488. echo "$as_me: failed program was:" >&5
  2489. sed 's/^/| /' conftest.$ac_ext >&5
  2490. ( exit $ac_status )
  2491. ac_cv_header_stdc=no
  2492. fi
  2493. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2494. fi
  2495. fi
  2496. fi
  2497. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2498. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2499. if test $ac_cv_header_stdc = yes; then
  2500. cat >>confdefs.h <<\_ACEOF
  2501. #define STDC_HEADERS 1
  2502. _ACEOF
  2503. fi
  2504. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2505. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2506. inttypes.h stdint.h unistd.h
  2507. do
  2508. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2509. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2510. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2511. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2512. echo $ECHO_N "(cached) $ECHO_C" >&6
  2513. else
  2514. cat >conftest.$ac_ext <<_ACEOF
  2515. /* confdefs.h. */
  2516. _ACEOF
  2517. cat confdefs.h >>conftest.$ac_ext
  2518. cat >>conftest.$ac_ext <<_ACEOF
  2519. /* end confdefs.h. */
  2520. $ac_includes_default
  2521. #include <$ac_header>
  2522. _ACEOF
  2523. rm -f conftest.$ac_objext
  2524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2525. (eval $ac_compile) 2>conftest.er1
  2526. ac_status=$?
  2527. grep -v '^ *+' conftest.er1 >conftest.err
  2528. rm -f conftest.er1
  2529. cat conftest.err >&5
  2530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2531. (exit $ac_status); } &&
  2532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2534. (eval $ac_try) 2>&5
  2535. ac_status=$?
  2536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2537. (exit $ac_status); }; } &&
  2538. { ac_try='test -s conftest.$ac_objext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. eval "$as_ac_Header=yes"
  2545. else
  2546. echo "$as_me: failed program was:" >&5
  2547. sed 's/^/| /' conftest.$ac_ext >&5
  2548. eval "$as_ac_Header=no"
  2549. fi
  2550. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2551. fi
  2552. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2553. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2554. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2555. cat >>confdefs.h <<_ACEOF
  2556. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2557. _ACEOF
  2558. fi
  2559. done
  2560. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2561. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2562. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2563. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2564. echo $ECHO_N "(cached) $ECHO_C" >&6
  2565. fi
  2566. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2567. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2568. else
  2569. # Is the header compilable?
  2570. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2571. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2572. cat >conftest.$ac_ext <<_ACEOF
  2573. /* confdefs.h. */
  2574. _ACEOF
  2575. cat confdefs.h >>conftest.$ac_ext
  2576. cat >>conftest.$ac_ext <<_ACEOF
  2577. /* end confdefs.h. */
  2578. $ac_includes_default
  2579. #include <minix/config.h>
  2580. _ACEOF
  2581. rm -f conftest.$ac_objext
  2582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2583. (eval $ac_compile) 2>conftest.er1
  2584. ac_status=$?
  2585. grep -v '^ *+' conftest.er1 >conftest.err
  2586. rm -f conftest.er1
  2587. cat conftest.err >&5
  2588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2589. (exit $ac_status); } &&
  2590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2592. (eval $ac_try) 2>&5
  2593. ac_status=$?
  2594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2595. (exit $ac_status); }; } &&
  2596. { ac_try='test -s conftest.$ac_objext'
  2597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2598. (eval $ac_try) 2>&5
  2599. ac_status=$?
  2600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2601. (exit $ac_status); }; }; then
  2602. ac_header_compiler=yes
  2603. else
  2604. echo "$as_me: failed program was:" >&5
  2605. sed 's/^/| /' conftest.$ac_ext >&5
  2606. ac_header_compiler=no
  2607. fi
  2608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2609. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2610. echo "${ECHO_T}$ac_header_compiler" >&6
  2611. # Is the header present?
  2612. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2613. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2614. cat >conftest.$ac_ext <<_ACEOF
  2615. /* confdefs.h. */
  2616. _ACEOF
  2617. cat confdefs.h >>conftest.$ac_ext
  2618. cat >>conftest.$ac_ext <<_ACEOF
  2619. /* end confdefs.h. */
  2620. #include <minix/config.h>
  2621. _ACEOF
  2622. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2623. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2624. ac_status=$?
  2625. grep -v '^ *+' conftest.er1 >conftest.err
  2626. rm -f conftest.er1
  2627. cat conftest.err >&5
  2628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2629. (exit $ac_status); } >/dev/null; then
  2630. if test -s conftest.err; then
  2631. ac_cpp_err=$ac_c_preproc_warn_flag
  2632. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2633. else
  2634. ac_cpp_err=
  2635. fi
  2636. else
  2637. ac_cpp_err=yes
  2638. fi
  2639. if test -z "$ac_cpp_err"; then
  2640. ac_header_preproc=yes
  2641. else
  2642. echo "$as_me: failed program was:" >&5
  2643. sed 's/^/| /' conftest.$ac_ext >&5
  2644. ac_header_preproc=no
  2645. fi
  2646. rm -f conftest.err conftest.$ac_ext
  2647. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2648. echo "${ECHO_T}$ac_header_preproc" >&6
  2649. # So? What about this header?
  2650. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2651. yes:no: )
  2652. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2653. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2654. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2655. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2656. ac_header_preproc=yes
  2657. ;;
  2658. no:yes:* )
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2660. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2661. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2662. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2663. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2664. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2665. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2666. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2667. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2668. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2670. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2671. (
  2672. cat <<\_ASBOX
  2673. ## ------------------------------------------ ##
  2674. ## Report this to the AC_PACKAGE_NAME lists. ##
  2675. ## ------------------------------------------ ##
  2676. _ASBOX
  2677. ) |
  2678. sed "s/^/$as_me: WARNING: /" >&2
  2679. ;;
  2680. esac
  2681. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2682. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2683. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2684. echo $ECHO_N "(cached) $ECHO_C" >&6
  2685. else
  2686. ac_cv_header_minix_config_h=$ac_header_preproc
  2687. fi
  2688. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2689. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2690. fi
  2691. if test $ac_cv_header_minix_config_h = yes; then
  2692. MINIX=yes
  2693. else
  2694. MINIX=
  2695. fi
  2696. if test "$MINIX" = yes; then
  2697. cat >>confdefs.h <<\_ACEOF
  2698. #define _POSIX_SOURCE 1
  2699. _ACEOF
  2700. cat >>confdefs.h <<\_ACEOF
  2701. #define _POSIX_1_SOURCE 2
  2702. _ACEOF
  2703. cat >>confdefs.h <<\_ACEOF
  2704. #define _MINIX 1
  2705. _ACEOF
  2706. fi
  2707. #checkpoint
  2708. cat >confcache <<\_ACEOF
  2709. # This file is a shell script that caches the results of configure
  2710. # tests run on this system so they can be shared between configure
  2711. # scripts and configure runs, see configure's option --config-cache.
  2712. # It is not useful on other systems. If it contains results you don't
  2713. # want to keep, you may remove or edit it.
  2714. #
  2715. # config.status only pays attention to the cache file if you give it
  2716. # the --recheck option to rerun configure.
  2717. #
  2718. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2719. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2720. # following values.
  2721. _ACEOF
  2722. # The following way of writing the cache mishandles newlines in values,
  2723. # but we know of no workaround that is simple, portable, and efficient.
  2724. # So, don't put newlines in cache variables' values.
  2725. # Ultrix sh set writes to stderr and can't be redirected directly,
  2726. # and sets the high bit in the cache file unless we assign to the vars.
  2727. {
  2728. (set) 2>&1 |
  2729. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2730. *ac_space=\ *)
  2731. # `set' does not quote correctly, so add quotes (double-quote
  2732. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2733. sed -n \
  2734. "s/'/'\\\\''/g;
  2735. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2736. ;;
  2737. *)
  2738. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2739. sed -n \
  2740. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2741. ;;
  2742. esac;
  2743. } |
  2744. sed '
  2745. t clear
  2746. : clear
  2747. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2748. t end
  2749. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2750. : end' >>confcache
  2751. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2752. if test -w $cache_file; then
  2753. test "x$cache_file" != "x/dev/null"
  2754. cat confcache >$cache_file
  2755. else
  2756. echo "not updating unwritable cache $cache_file"
  2757. fi
  2758. fi
  2759. rm -f confcache
  2760. # Speedup compile
  2761. if test -z "$no_pipe"
  2762. then
  2763. if test -n "$GCC"
  2764. then
  2765. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2766. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2767. if test "${egg_cv_var_ccpipe+set}" = set; then
  2768. echo $ECHO_N "(cached) $ECHO_C" >&6
  2769. else
  2770. ac_old_CC="$CC"
  2771. CC="$CC -pipe"
  2772. cat >conftest.$ac_ext <<_ACEOF
  2773. /* confdefs.h. */
  2774. _ACEOF
  2775. cat confdefs.h >>conftest.$ac_ext
  2776. cat >>conftest.$ac_ext <<_ACEOF
  2777. /* end confdefs.h. */
  2778. int
  2779. main ()
  2780. {
  2781. ;
  2782. return 0;
  2783. }
  2784. _ACEOF
  2785. rm -f conftest.$ac_objext
  2786. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2787. (eval $ac_compile) 2>conftest.er1
  2788. ac_status=$?
  2789. grep -v '^ *+' conftest.er1 >conftest.err
  2790. rm -f conftest.er1
  2791. cat conftest.err >&5
  2792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2793. (exit $ac_status); } &&
  2794. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2795. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2796. (eval $ac_try) 2>&5
  2797. ac_status=$?
  2798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2799. (exit $ac_status); }; } &&
  2800. { ac_try='test -s conftest.$ac_objext'
  2801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2802. (eval $ac_try) 2>&5
  2803. ac_status=$?
  2804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2805. (exit $ac_status); }; }; then
  2806. egg_cv_var_ccpipe="yes"
  2807. else
  2808. echo "$as_me: failed program was:" >&5
  2809. sed 's/^/| /' conftest.$ac_ext >&5
  2810. egg_cv_var_ccpipe="no"
  2811. fi
  2812. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2813. CC="$ac_old_CC"
  2814. fi
  2815. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2816. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2817. if test "$egg_cv_var_ccpipe" = "yes"
  2818. then
  2819. CC="$CC -pipe"
  2820. fi
  2821. fi
  2822. fi
  2823. CCDEPMODE=gcc
  2824. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2825. if test $num = "3"; then
  2826. CCDEPMODE=gcc3
  2827. fi
  2828. # Create static binaries
  2829. if test -z "$no_static"
  2830. then
  2831. if test -n "$GCC"
  2832. then
  2833. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2834. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2835. if test "${egg_cv_var_ccstatic+set}" = set; then
  2836. echo $ECHO_N "(cached) $ECHO_C" >&6
  2837. else
  2838. ac_old_CC="$CC"
  2839. CC="$CC -static"
  2840. cat >conftest.$ac_ext <<_ACEOF
  2841. /* confdefs.h. */
  2842. _ACEOF
  2843. cat confdefs.h >>conftest.$ac_ext
  2844. cat >>conftest.$ac_ext <<_ACEOF
  2845. /* end confdefs.h. */
  2846. int
  2847. main ()
  2848. {
  2849. ;
  2850. return 0;
  2851. }
  2852. _ACEOF
  2853. rm -f conftest.$ac_objext
  2854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2855. (eval $ac_compile) 2>conftest.er1
  2856. ac_status=$?
  2857. grep -v '^ *+' conftest.er1 >conftest.err
  2858. rm -f conftest.er1
  2859. cat conftest.err >&5
  2860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2861. (exit $ac_status); } &&
  2862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2864. (eval $ac_try) 2>&5
  2865. ac_status=$?
  2866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2867. (exit $ac_status); }; } &&
  2868. { ac_try='test -s conftest.$ac_objext'
  2869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2870. (eval $ac_try) 2>&5
  2871. ac_status=$?
  2872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2873. (exit $ac_status); }; }; then
  2874. egg_cv_var_ccstatic="yes"
  2875. else
  2876. echo "$as_me: failed program was:" >&5
  2877. sed 's/^/| /' conftest.$ac_ext >&5
  2878. egg_cv_var_ccstatic="no"
  2879. fi
  2880. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2881. CC="$ac_old_CC"
  2882. fi
  2883. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2884. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2885. if test "$egg_cv_var_ccstatic" = "yes"
  2886. then
  2887. CCDEBUG="$CC"
  2888. CC="$CC -static"
  2889. else
  2890. cat << 'EOF' >&2
  2891. configure: error:
  2892. Your C compiler does not support -static.
  2893. This compile flag is required for the botpack.
  2894. EOF
  2895. exit 1
  2896. fi
  2897. fi
  2898. fi
  2899. # Checks for programs
  2900. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2901. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2902. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2903. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2904. echo $ECHO_N "(cached) $ECHO_C" >&6
  2905. else
  2906. cat >conftest.make <<\_ACEOF
  2907. all:
  2908. @echo 'ac_maketemp="$(MAKE)"'
  2909. _ACEOF
  2910. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2911. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2912. if test -n "$ac_maketemp"; then
  2913. eval ac_cv_prog_make_${ac_make}_set=yes
  2914. else
  2915. eval ac_cv_prog_make_${ac_make}_set=no
  2916. fi
  2917. rm -f conftest.make
  2918. fi
  2919. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2920. echo "$as_me:$LINENO: result: yes" >&5
  2921. echo "${ECHO_T}yes" >&6
  2922. SET_MAKE=
  2923. else
  2924. echo "$as_me:$LINENO: result: no" >&5
  2925. echo "${ECHO_T}no" >&6
  2926. SET_MAKE="MAKE=${MAKE-make}"
  2927. fi
  2928. cat << 'EOF' > conftest.head
  2929. a
  2930. b
  2931. c
  2932. EOF
  2933. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2934. do
  2935. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2936. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2937. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2938. echo $ECHO_N "(cached) $ECHO_C" >&6
  2939. else
  2940. if test -n "$HEAD_1"
  2941. then
  2942. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2943. else
  2944. if test "`cat conftest.head | $ac_prog`" = "a";
  2945. then
  2946. echo "$as_me:$LINENO: result: yes" >&5
  2947. echo "${ECHO_T}yes" >&6
  2948. ac_cv_prog_HEAD_1=$ac_prog
  2949. else
  2950. echo "$as_me:$LINENO: result: no" >&5
  2951. echo "${ECHO_T}no" >&6
  2952. fi
  2953. fi
  2954. fi
  2955. test -n "$ac_cv_prog_HEAD_1" && break
  2956. done
  2957. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2958. then
  2959. cat << 'EOF' >&2
  2960. configure: error:
  2961. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2962. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2963. EOF
  2964. exit 1
  2965. fi
  2966. rm -f conftest.head
  2967. HEAD_1=$ac_cv_prog_HEAD_1
  2968. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2969. for ac_prog in gawk mawk nawk awk
  2970. do
  2971. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2972. set dummy $ac_prog; ac_word=$2
  2973. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2974. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2975. if test "${ac_cv_prog_AWK+set}" = set; then
  2976. echo $ECHO_N "(cached) $ECHO_C" >&6
  2977. else
  2978. if test -n "$AWK"; then
  2979. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2980. else
  2981. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2982. for as_dir in $PATH
  2983. do
  2984. IFS=$as_save_IFS
  2985. test -z "$as_dir" && as_dir=.
  2986. for ac_exec_ext in '' $ac_executable_extensions; do
  2987. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2988. ac_cv_prog_AWK="$ac_prog"
  2989. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2990. break 2
  2991. fi
  2992. done
  2993. done
  2994. fi
  2995. fi
  2996. AWK=$ac_cv_prog_AWK
  2997. if test -n "$AWK"; then
  2998. echo "$as_me:$LINENO: result: $AWK" >&5
  2999. echo "${ECHO_T}$AWK" >&6
  3000. else
  3001. echo "$as_me:$LINENO: result: no" >&5
  3002. echo "${ECHO_T}no" >&6
  3003. fi
  3004. test -n "$AWK" && break
  3005. done
  3006. if test "${AWK-x}" = "x"
  3007. then
  3008. cat << 'EOF' >&2
  3009. configure: error:
  3010. This system seems to lack a working 'awk' command.
  3011. A working 'awk' command is required to compile Eggdrop.
  3012. EOF
  3013. exit 1
  3014. fi
  3015. # basename is needed for Tcl library and header checks
  3016. # Extract the first word of "basename", so it can be a program name with args.
  3017. set dummy basename; ac_word=$2
  3018. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3019. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3020. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3021. echo $ECHO_N "(cached) $ECHO_C" >&6
  3022. else
  3023. if test -n "$BASENAME"; then
  3024. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3025. else
  3026. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3027. for as_dir in $PATH
  3028. do
  3029. IFS=$as_save_IFS
  3030. test -z "$as_dir" && as_dir=.
  3031. for ac_exec_ext in '' $ac_executable_extensions; do
  3032. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3033. ac_cv_prog_BASENAME="basename"
  3034. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3035. break 2
  3036. fi
  3037. done
  3038. done
  3039. fi
  3040. fi
  3041. BASENAME=$ac_cv_prog_BASENAME
  3042. if test -n "$BASENAME"; then
  3043. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3044. echo "${ECHO_T}$BASENAME" >&6
  3045. else
  3046. echo "$as_me:$LINENO: result: no" >&5
  3047. echo "${ECHO_T}no" >&6
  3048. fi
  3049. if test "${BASENAME-x}" = "x"
  3050. then
  3051. cat << 'EOF' >&2
  3052. configure: error:
  3053. This system seems to lack a working 'basename' command.
  3054. A working 'basename' command is required to compile Eggdrop.
  3055. EOF
  3056. exit 1
  3057. fi
  3058. # Extract the first word of "objcopy", so it can be a program name with args.
  3059. set dummy objcopy; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$OBJCOPY"; then
  3066. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. OBJCOPY=$ac_cv_prog_OBJCOPY
  3084. if test -n "$OBJCOPY"; then
  3085. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3086. echo "${ECHO_T}$OBJCOPY" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. # Extract the first word of "strip", so it can be a program name with args.
  3092. set dummy strip; ac_word=$2
  3093. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3094. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3095. if test "${ac_cv_prog_STRIP+set}" = set; then
  3096. echo $ECHO_N "(cached) $ECHO_C" >&6
  3097. else
  3098. if test -n "$STRIP"; then
  3099. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3100. else
  3101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3102. for as_dir in $PATH
  3103. do
  3104. IFS=$as_save_IFS
  3105. test -z "$as_dir" && as_dir=.
  3106. for ac_exec_ext in '' $ac_executable_extensions; do
  3107. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3108. ac_cv_prog_STRIP="strip"
  3109. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3110. break 2
  3111. fi
  3112. done
  3113. done
  3114. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3115. fi
  3116. fi
  3117. STRIP=$ac_cv_prog_STRIP
  3118. if test -n "$STRIP"; then
  3119. echo "$as_me:$LINENO: result: $STRIP" >&5
  3120. echo "${ECHO_T}$STRIP" >&6
  3121. else
  3122. echo "$as_me:$LINENO: result: no" >&5
  3123. echo "${ECHO_T}no" >&6
  3124. fi
  3125. # Extract the first word of "uname", so it can be a program name with args.
  3126. set dummy uname; ac_word=$2
  3127. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3128. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3129. if test "${ac_cv_prog_UNAME+set}" = set; then
  3130. echo $ECHO_N "(cached) $ECHO_C" >&6
  3131. else
  3132. if test -n "$UNAME"; then
  3133. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3134. else
  3135. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3136. for as_dir in $PATH
  3137. do
  3138. IFS=$as_save_IFS
  3139. test -z "$as_dir" && as_dir=.
  3140. for ac_exec_ext in '' $ac_executable_extensions; do
  3141. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3142. ac_cv_prog_UNAME="uname"
  3143. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3144. break 2
  3145. fi
  3146. done
  3147. done
  3148. fi
  3149. fi
  3150. UNAME=$ac_cv_prog_UNAME
  3151. if test -n "$UNAME"; then
  3152. echo "$as_me:$LINENO: result: $UNAME" >&5
  3153. echo "${ECHO_T}$UNAME" >&6
  3154. else
  3155. echo "$as_me:$LINENO: result: no" >&5
  3156. echo "${ECHO_T}no" >&6
  3157. fi
  3158. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3159. # Extract the first word of "distcc", so it can be a program name with args.
  3160. set dummy distcc; ac_word=$2
  3161. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3162. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3163. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3164. echo $ECHO_N "(cached) $ECHO_C" >&6
  3165. else
  3166. if test -n "$DISTCC"; then
  3167. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3168. else
  3169. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3170. for as_dir in $PATH
  3171. do
  3172. IFS=$as_save_IFS
  3173. test -z "$as_dir" && as_dir=.
  3174. for ac_exec_ext in '' $ac_executable_extensions; do
  3175. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3176. ac_cv_prog_DISTCC="distcc"
  3177. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3178. break 2
  3179. fi
  3180. done
  3181. done
  3182. fi
  3183. fi
  3184. DISTCC=$ac_cv_prog_DISTCC
  3185. if test -n "$DISTCC"; then
  3186. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3187. echo "${ECHO_T}$DISTCC" >&6
  3188. else
  3189. echo "$as_me:$LINENO: result: no" >&5
  3190. echo "${ECHO_T}no" >&6
  3191. fi
  3192. # Test the os and set the module linking settings
  3193. LINUX=no
  3194. IRIX=no
  3195. SUNOS=no
  3196. HPUX=no
  3197. EGG_CYGWIN=no
  3198. echo "$as_me:$LINENO: checking system type" >&5
  3199. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3200. if test "${egg_cv_var_system_type+set}" = set; then
  3201. echo $ECHO_N "(cached) $ECHO_C" >&6
  3202. else
  3203. egg_cv_var_system_type=`$UNAME -s`
  3204. fi
  3205. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3206. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3207. echo "$as_me:$LINENO: checking system release" >&5
  3208. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3209. if test "${egg_cv_var_system_release+set}" = set; then
  3210. echo $ECHO_N "(cached) $ECHO_C" >&6
  3211. else
  3212. egg_cv_var_system_release=`$UNAME -r`
  3213. fi
  3214. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3215. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3216. case "$egg_cv_var_system_type" in
  3217. BSD/OS)
  3218. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3219. 2)
  3220. ;;
  3221. *)
  3222. CFLAGS="$CFLAGS -Wall"
  3223. ;;
  3224. esac
  3225. ;;
  3226. CYGWI*)
  3227. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3228. 1.*)
  3229. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3230. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3231. WIN32FLAGS=
  3232. cat >conftest.$ac_ext <<_ACEOF
  3233. /* confdefs.h. */
  3234. _ACEOF
  3235. cat confdefs.h >>conftest.$ac_ext
  3236. cat >>conftest.$ac_ext <<_ACEOF
  3237. /* end confdefs.h. */
  3238. int
  3239. main ()
  3240. {
  3241. #ifndef WIN32
  3242. # ifndef _WIN32
  3243. # error WIN32 or _WIN32 not defined
  3244. # endif
  3245. #endif
  3246. ;
  3247. return 0;
  3248. }
  3249. _ACEOF
  3250. rm -f conftest.$ac_objext
  3251. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3252. (eval $ac_compile) 2>conftest.er1
  3253. ac_status=$?
  3254. grep -v '^ *+' conftest.er1 >conftest.err
  3255. rm -f conftest.er1
  3256. cat conftest.err >&5
  3257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3258. (exit $ac_status); } &&
  3259. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3261. (eval $ac_try) 2>&5
  3262. ac_status=$?
  3263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3264. (exit $ac_status); }; } &&
  3265. { ac_try='test -s conftest.$ac_objext'
  3266. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3267. (eval $ac_try) 2>&5
  3268. ac_status=$?
  3269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3270. (exit $ac_status); }; }; then
  3271. echo "$as_me:$LINENO: result: present by default" >&5
  3272. echo "${ECHO_T}present by default" >&6
  3273. else
  3274. echo "$as_me: failed program was:" >&5
  3275. sed 's/^/| /' conftest.$ac_ext >&5
  3276. ac_compile_save="$ac_compile"
  3277. save_CC="$CC"
  3278. ac_compile="$ac_compile -mwin32"
  3279. CC="$CC -mwin32"
  3280. cat >conftest.$ac_ext <<_ACEOF
  3281. /* confdefs.h. */
  3282. _ACEOF
  3283. cat confdefs.h >>conftest.$ac_ext
  3284. cat >>conftest.$ac_ext <<_ACEOF
  3285. /* end confdefs.h. */
  3286. int
  3287. main ()
  3288. {
  3289. #ifndef WIN32
  3290. # ifndef _WIN32
  3291. # error WIN32 or _WIN32 not defined
  3292. # endif
  3293. #endif
  3294. ;
  3295. return 0;
  3296. }
  3297. _ACEOF
  3298. rm -f conftest.$ac_objext
  3299. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3300. (eval $ac_compile) 2>conftest.er1
  3301. ac_status=$?
  3302. grep -v '^ *+' conftest.er1 >conftest.err
  3303. rm -f conftest.er1
  3304. cat conftest.err >&5
  3305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3306. (exit $ac_status); } &&
  3307. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3309. (eval $ac_try) 2>&5
  3310. ac_status=$?
  3311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3312. (exit $ac_status); }; } &&
  3313. { ac_try='test -s conftest.$ac_objext'
  3314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3315. (eval $ac_try) 2>&5
  3316. ac_status=$?
  3317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3318. (exit $ac_status); }; }; then
  3319. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3320. echo "${ECHO_T}found via -mwin32" >&6
  3321. ac_compile="$ac_compile_save"
  3322. CC="$save_CC"
  3323. WIN32FLAGS="-mwin32"
  3324. else
  3325. echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. ac_compile="$ac_compile_save"
  3328. CC="$save_CC"
  3329. echo "$as_me:$LINENO: result: not found" >&5
  3330. echo "${ECHO_T}not found" >&6
  3331. fi
  3332. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3333. fi
  3334. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3335. CC="$CC $WIN32FLAGS"
  3336. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3337. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3338. if test -r /usr/lib/binmode.o
  3339. then
  3340. echo "$as_me:$LINENO: result: yes" >&5
  3341. echo "${ECHO_T}yes" >&6
  3342. LIBS="$LIBS /usr/lib/binmode.o"
  3343. else
  3344. echo "$as_me:$LINENO: result: no" >&5
  3345. echo "${ECHO_T}no" >&6
  3346. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3347. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3348. fi
  3349. ;;
  3350. *)
  3351. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3352. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3353. ;;
  3354. esac
  3355. EGG_CYGWIN=yes
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define CYGWIN_HACKS 1
  3358. _ACEOF
  3359. ;;
  3360. HP-UX)
  3361. HPUX=yes
  3362. cat >>confdefs.h <<\_ACEOF
  3363. #define HPUX_HACKS 1
  3364. _ACEOF
  3365. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3366. then
  3367. cat >>confdefs.h <<\_ACEOF
  3368. #define HPUX10_HACKS 1
  3369. _ACEOF
  3370. fi
  3371. ;;
  3372. dell)
  3373. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3374. echo "${ECHO_T}Dell SVR4" >&6
  3375. ;;
  3376. IRIX)
  3377. IRIX=yes
  3378. ;;
  3379. Ultrix)
  3380. SHELL=/bin/sh5
  3381. ;;
  3382. SINIX*)
  3383. ;;
  3384. BeOS)
  3385. ;;
  3386. Linux)
  3387. LINUX=yes
  3388. CFLAGS="$CFLAGS -Wall"
  3389. ;;
  3390. Lynx)
  3391. ;;
  3392. QNX)
  3393. ;;
  3394. OSF1)
  3395. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3396. V*)
  3397. # FIXME: we should check this in a separate test
  3398. # Digital OSF uses an ancient version of gawk
  3399. if test "$AWK" = "gawk"
  3400. then
  3401. AWK=awk
  3402. fi
  3403. ;;
  3404. 1.0|1.1|1.2)
  3405. cat >>confdefs.h <<\_ACEOF
  3406. #define OSF1_HACKS 1
  3407. _ACEOF
  3408. ;;
  3409. 1.*)
  3410. cat >>confdefs.h <<\_ACEOF
  3411. #define OSF1_HACKS 1
  3412. _ACEOF
  3413. ;;
  3414. *)
  3415. ;;
  3416. esac
  3417. cat >>confdefs.h <<\_ACEOF
  3418. #define STOP_UAC 1
  3419. _ACEOF
  3420. cat >>confdefs.h <<\_ACEOF
  3421. #define BROKEN_SNPRINTF 1
  3422. _ACEOF
  3423. ;;
  3424. SunOS)
  3425. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3426. then
  3427. # SunOS 4
  3428. SUNOS=yes
  3429. fi
  3430. ;;
  3431. *BSD)
  3432. # FreeBSD/OpenBSD/NetBSD
  3433. ;;
  3434. *)
  3435. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3436. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3437. if test -r /mach
  3438. then
  3439. echo "$as_me:$LINENO: result: yes" >&5
  3440. echo "${ECHO_T}yes" >&6
  3441. cat >>confdefs.h <<\_ACEOF
  3442. #define BORGCUBES 1
  3443. _ACEOF
  3444. else
  3445. echo "$as_me:$LINENO: result: no" >&5
  3446. echo "${ECHO_T}no" >&6
  3447. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3448. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3449. if test -r /cmds
  3450. then
  3451. echo "$as_me:$LINENO: result: yes" >&5
  3452. echo "${ECHO_T}yes" >&6
  3453. else
  3454. echo "$as_me:$LINENO: result: no" >&5
  3455. echo "${ECHO_T}no" >&6
  3456. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3457. echo "${ECHO_T}Something unknown!" >&6
  3458. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3459. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3460. fi
  3461. fi
  3462. ;;
  3463. esac
  3464. dns_reslib_avail="true"
  3465. echo "$as_me:$LINENO: checking for res_init" >&5
  3466. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3467. if test "${ac_cv_func_res_init+set}" = set; then
  3468. echo $ECHO_N "(cached) $ECHO_C" >&6
  3469. else
  3470. cat >conftest.$ac_ext <<_ACEOF
  3471. /* confdefs.h. */
  3472. _ACEOF
  3473. cat confdefs.h >>conftest.$ac_ext
  3474. cat >>conftest.$ac_ext <<_ACEOF
  3475. /* end confdefs.h. */
  3476. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3477. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3478. #define res_init innocuous_res_init
  3479. /* System header to define __stub macros and hopefully few prototypes,
  3480. which can conflict with char res_init (); below.
  3481. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3482. <limits.h> exists even on freestanding compilers. */
  3483. #ifdef __STDC__
  3484. # include <limits.h>
  3485. #else
  3486. # include <assert.h>
  3487. #endif
  3488. #undef res_init
  3489. /* Override any gcc2 internal prototype to avoid an error. */
  3490. #ifdef __cplusplus
  3491. extern "C"
  3492. {
  3493. #endif
  3494. /* We use char because int might match the return type of a gcc2
  3495. builtin and then its argument prototype would still apply. */
  3496. char res_init ();
  3497. /* The GNU C library defines this for functions which it implements
  3498. to always fail with ENOSYS. Some functions are actually named
  3499. something starting with __ and the normal name is an alias. */
  3500. #if defined (__stub_res_init) || defined (__stub___res_init)
  3501. choke me
  3502. #else
  3503. char (*f) () = res_init;
  3504. #endif
  3505. #ifdef __cplusplus
  3506. }
  3507. #endif
  3508. int
  3509. main ()
  3510. {
  3511. return f != res_init;
  3512. ;
  3513. return 0;
  3514. }
  3515. _ACEOF
  3516. rm -f conftest.$ac_objext conftest$ac_exeext
  3517. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3518. (eval $ac_link) 2>conftest.er1
  3519. ac_status=$?
  3520. grep -v '^ *+' conftest.er1 >conftest.err
  3521. rm -f conftest.er1
  3522. cat conftest.err >&5
  3523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3524. (exit $ac_status); } &&
  3525. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3527. (eval $ac_try) 2>&5
  3528. ac_status=$?
  3529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. (exit $ac_status); }; } &&
  3531. { ac_try='test -s conftest$ac_exeext'
  3532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3533. (eval $ac_try) 2>&5
  3534. ac_status=$?
  3535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3536. (exit $ac_status); }; }; then
  3537. ac_cv_func_res_init=yes
  3538. else
  3539. echo "$as_me: failed program was:" >&5
  3540. sed 's/^/| /' conftest.$ac_ext >&5
  3541. ac_cv_func_res_init=no
  3542. fi
  3543. rm -f conftest.err conftest.$ac_objext \
  3544. conftest$ac_exeext conftest.$ac_ext
  3545. fi
  3546. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3547. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3548. if test $ac_cv_func_res_init = yes; then
  3549. :
  3550. else
  3551. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3552. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3553. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3554. echo $ECHO_N "(cached) $ECHO_C" >&6
  3555. else
  3556. ac_check_lib_save_LIBS=$LIBS
  3557. LIBS="-lresolv $LIBS"
  3558. cat >conftest.$ac_ext <<_ACEOF
  3559. /* confdefs.h. */
  3560. _ACEOF
  3561. cat confdefs.h >>conftest.$ac_ext
  3562. cat >>conftest.$ac_ext <<_ACEOF
  3563. /* end confdefs.h. */
  3564. /* Override any gcc2 internal prototype to avoid an error. */
  3565. #ifdef __cplusplus
  3566. extern "C"
  3567. #endif
  3568. /* We use char because int might match the return type of a gcc2
  3569. builtin and then its argument prototype would still apply. */
  3570. char res_init ();
  3571. int
  3572. main ()
  3573. {
  3574. res_init ();
  3575. ;
  3576. return 0;
  3577. }
  3578. _ACEOF
  3579. rm -f conftest.$ac_objext conftest$ac_exeext
  3580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3581. (eval $ac_link) 2>conftest.er1
  3582. ac_status=$?
  3583. grep -v '^ *+' conftest.er1 >conftest.err
  3584. rm -f conftest.er1
  3585. cat conftest.err >&5
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); } &&
  3588. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3590. (eval $ac_try) 2>&5
  3591. ac_status=$?
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); }; } &&
  3594. { ac_try='test -s conftest$ac_exeext'
  3595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3596. (eval $ac_try) 2>&5
  3597. ac_status=$?
  3598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3599. (exit $ac_status); }; }; then
  3600. ac_cv_lib_resolv_res_init=yes
  3601. else
  3602. echo "$as_me: failed program was:" >&5
  3603. sed 's/^/| /' conftest.$ac_ext >&5
  3604. ac_cv_lib_resolv_res_init=no
  3605. fi
  3606. rm -f conftest.err conftest.$ac_objext \
  3607. conftest$ac_exeext conftest.$ac_ext
  3608. LIBS=$ac_check_lib_save_LIBS
  3609. fi
  3610. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3611. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3612. if test $ac_cv_lib_resolv_res_init = yes; then
  3613. RESLIB="-lresolv"
  3614. else
  3615. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3616. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3617. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3618. echo $ECHO_N "(cached) $ECHO_C" >&6
  3619. else
  3620. ac_check_lib_save_LIBS=$LIBS
  3621. LIBS="-lbind $LIBS"
  3622. cat >conftest.$ac_ext <<_ACEOF
  3623. /* confdefs.h. */
  3624. _ACEOF
  3625. cat confdefs.h >>conftest.$ac_ext
  3626. cat >>conftest.$ac_ext <<_ACEOF
  3627. /* end confdefs.h. */
  3628. /* Override any gcc2 internal prototype to avoid an error. */
  3629. #ifdef __cplusplus
  3630. extern "C"
  3631. #endif
  3632. /* We use char because int might match the return type of a gcc2
  3633. builtin and then its argument prototype would still apply. */
  3634. char res_init ();
  3635. int
  3636. main ()
  3637. {
  3638. res_init ();
  3639. ;
  3640. return 0;
  3641. }
  3642. _ACEOF
  3643. rm -f conftest.$ac_objext conftest$ac_exeext
  3644. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3645. (eval $ac_link) 2>conftest.er1
  3646. ac_status=$?
  3647. grep -v '^ *+' conftest.er1 >conftest.err
  3648. rm -f conftest.er1
  3649. cat conftest.err >&5
  3650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3651. (exit $ac_status); } &&
  3652. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3654. (eval $ac_try) 2>&5
  3655. ac_status=$?
  3656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); }; } &&
  3658. { ac_try='test -s conftest$ac_exeext'
  3659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3660. (eval $ac_try) 2>&5
  3661. ac_status=$?
  3662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. (exit $ac_status); }; }; then
  3664. ac_cv_lib_bind_res_init=yes
  3665. else
  3666. echo "$as_me: failed program was:" >&5
  3667. sed 's/^/| /' conftest.$ac_ext >&5
  3668. ac_cv_lib_bind_res_init=no
  3669. fi
  3670. rm -f conftest.err conftest.$ac_objext \
  3671. conftest$ac_exeext conftest.$ac_ext
  3672. LIBS=$ac_check_lib_save_LIBS
  3673. fi
  3674. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3675. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3676. if test $ac_cv_lib_bind_res_init = yes; then
  3677. RESLIB="-lbind"
  3678. else
  3679. dns_reslib_avail="false";
  3680. fi
  3681. fi
  3682. fi
  3683. if test "${dns_reslib_avail}" = false; then
  3684. dns_reslib_avail="true"
  3685. echo "$as_me:$LINENO: checking for __res_init" >&5
  3686. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3687. if test "${ac_cv_func___res_init+set}" = set; then
  3688. echo $ECHO_N "(cached) $ECHO_C" >&6
  3689. else
  3690. cat >conftest.$ac_ext <<_ACEOF
  3691. /* confdefs.h. */
  3692. _ACEOF
  3693. cat confdefs.h >>conftest.$ac_ext
  3694. cat >>conftest.$ac_ext <<_ACEOF
  3695. /* end confdefs.h. */
  3696. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3698. #define __res_init innocuous___res_init
  3699. /* System header to define __stub macros and hopefully few prototypes,
  3700. which can conflict with char __res_init (); below.
  3701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3702. <limits.h> exists even on freestanding compilers. */
  3703. #ifdef __STDC__
  3704. # include <limits.h>
  3705. #else
  3706. # include <assert.h>
  3707. #endif
  3708. #undef __res_init
  3709. /* Override any gcc2 internal prototype to avoid an error. */
  3710. #ifdef __cplusplus
  3711. extern "C"
  3712. {
  3713. #endif
  3714. /* We use char because int might match the return type of a gcc2
  3715. builtin and then its argument prototype would still apply. */
  3716. char __res_init ();
  3717. /* The GNU C library defines this for functions which it implements
  3718. to always fail with ENOSYS. Some functions are actually named
  3719. something starting with __ and the normal name is an alias. */
  3720. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3721. choke me
  3722. #else
  3723. char (*f) () = __res_init;
  3724. #endif
  3725. #ifdef __cplusplus
  3726. }
  3727. #endif
  3728. int
  3729. main ()
  3730. {
  3731. return f != __res_init;
  3732. ;
  3733. return 0;
  3734. }
  3735. _ACEOF
  3736. rm -f conftest.$ac_objext conftest$ac_exeext
  3737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3738. (eval $ac_link) 2>conftest.er1
  3739. ac_status=$?
  3740. grep -v '^ *+' conftest.er1 >conftest.err
  3741. rm -f conftest.er1
  3742. cat conftest.err >&5
  3743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3744. (exit $ac_status); } &&
  3745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3747. (eval $ac_try) 2>&5
  3748. ac_status=$?
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); }; } &&
  3751. { ac_try='test -s conftest$ac_exeext'
  3752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3753. (eval $ac_try) 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; }; then
  3757. ac_cv_func___res_init=yes
  3758. else
  3759. echo "$as_me: failed program was:" >&5
  3760. sed 's/^/| /' conftest.$ac_ext >&5
  3761. ac_cv_func___res_init=no
  3762. fi
  3763. rm -f conftest.err conftest.$ac_objext \
  3764. conftest$ac_exeext conftest.$ac_ext
  3765. fi
  3766. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3767. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3768. if test $ac_cv_func___res_init = yes; then
  3769. :
  3770. else
  3771. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3772. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3773. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3774. echo $ECHO_N "(cached) $ECHO_C" >&6
  3775. else
  3776. ac_check_lib_save_LIBS=$LIBS
  3777. LIBS="-lresolv $LIBS"
  3778. cat >conftest.$ac_ext <<_ACEOF
  3779. /* confdefs.h. */
  3780. _ACEOF
  3781. cat confdefs.h >>conftest.$ac_ext
  3782. cat >>conftest.$ac_ext <<_ACEOF
  3783. /* end confdefs.h. */
  3784. /* Override any gcc2 internal prototype to avoid an error. */
  3785. #ifdef __cplusplus
  3786. extern "C"
  3787. #endif
  3788. /* We use char because int might match the return type of a gcc2
  3789. builtin and then its argument prototype would still apply. */
  3790. char __res_init ();
  3791. int
  3792. main ()
  3793. {
  3794. __res_init ();
  3795. ;
  3796. return 0;
  3797. }
  3798. _ACEOF
  3799. rm -f conftest.$ac_objext conftest$ac_exeext
  3800. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3801. (eval $ac_link) 2>conftest.er1
  3802. ac_status=$?
  3803. grep -v '^ *+' conftest.er1 >conftest.err
  3804. rm -f conftest.er1
  3805. cat conftest.err >&5
  3806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3807. (exit $ac_status); } &&
  3808. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3810. (eval $ac_try) 2>&5
  3811. ac_status=$?
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); }; } &&
  3814. { ac_try='test -s conftest$ac_exeext'
  3815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3816. (eval $ac_try) 2>&5
  3817. ac_status=$?
  3818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3819. (exit $ac_status); }; }; then
  3820. ac_cv_lib_resolv___res_init=yes
  3821. else
  3822. echo "$as_me: failed program was:" >&5
  3823. sed 's/^/| /' conftest.$ac_ext >&5
  3824. ac_cv_lib_resolv___res_init=no
  3825. fi
  3826. rm -f conftest.err conftest.$ac_objext \
  3827. conftest$ac_exeext conftest.$ac_ext
  3828. LIBS=$ac_check_lib_save_LIBS
  3829. fi
  3830. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3831. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3832. if test $ac_cv_lib_resolv___res_init = yes; then
  3833. RESLIB="-lresolv"
  3834. else
  3835. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3836. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3837. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3838. echo $ECHO_N "(cached) $ECHO_C" >&6
  3839. else
  3840. ac_check_lib_save_LIBS=$LIBS
  3841. LIBS="-lbind $LIBS"
  3842. cat >conftest.$ac_ext <<_ACEOF
  3843. /* confdefs.h. */
  3844. _ACEOF
  3845. cat confdefs.h >>conftest.$ac_ext
  3846. cat >>conftest.$ac_ext <<_ACEOF
  3847. /* end confdefs.h. */
  3848. /* Override any gcc2 internal prototype to avoid an error. */
  3849. #ifdef __cplusplus
  3850. extern "C"
  3851. #endif
  3852. /* We use char because int might match the return type of a gcc2
  3853. builtin and then its argument prototype would still apply. */
  3854. char __res_init ();
  3855. int
  3856. main ()
  3857. {
  3858. __res_init ();
  3859. ;
  3860. return 0;
  3861. }
  3862. _ACEOF
  3863. rm -f conftest.$ac_objext conftest$ac_exeext
  3864. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3865. (eval $ac_link) 2>conftest.er1
  3866. ac_status=$?
  3867. grep -v '^ *+' conftest.er1 >conftest.err
  3868. rm -f conftest.er1
  3869. cat conftest.err >&5
  3870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3871. (exit $ac_status); } &&
  3872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3874. (eval $ac_try) 2>&5
  3875. ac_status=$?
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); }; } &&
  3878. { ac_try='test -s conftest$ac_exeext'
  3879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3880. (eval $ac_try) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; }; then
  3884. ac_cv_lib_bind___res_init=yes
  3885. else
  3886. echo "$as_me: failed program was:" >&5
  3887. sed 's/^/| /' conftest.$ac_ext >&5
  3888. ac_cv_lib_bind___res_init=no
  3889. fi
  3890. rm -f conftest.err conftest.$ac_objext \
  3891. conftest$ac_exeext conftest.$ac_ext
  3892. LIBS=$ac_check_lib_save_LIBS
  3893. fi
  3894. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3895. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3896. if test $ac_cv_lib_bind___res_init = yes; then
  3897. RESLIB="-lbind"
  3898. else
  3899. dns_reslib_avail="false";
  3900. fi
  3901. fi
  3902. fi
  3903. fi
  3904. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3905. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3906. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. cat >conftest.$ac_ext <<_ACEOF
  3910. /* confdefs.h. */
  3911. _ACEOF
  3912. cat confdefs.h >>conftest.$ac_ext
  3913. cat >>conftest.$ac_ext <<_ACEOF
  3914. /* end confdefs.h. */
  3915. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3916. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3917. #define res_mkquery innocuous_res_mkquery
  3918. /* System header to define __stub macros and hopefully few prototypes,
  3919. which can conflict with char res_mkquery (); below.
  3920. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3921. <limits.h> exists even on freestanding compilers. */
  3922. #ifdef __STDC__
  3923. # include <limits.h>
  3924. #else
  3925. # include <assert.h>
  3926. #endif
  3927. #undef res_mkquery
  3928. /* Override any gcc2 internal prototype to avoid an error. */
  3929. #ifdef __cplusplus
  3930. extern "C"
  3931. {
  3932. #endif
  3933. /* We use char because int might match the return type of a gcc2
  3934. builtin and then its argument prototype would still apply. */
  3935. char res_mkquery ();
  3936. /* The GNU C library defines this for functions which it implements
  3937. to always fail with ENOSYS. Some functions are actually named
  3938. something starting with __ and the normal name is an alias. */
  3939. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3940. choke me
  3941. #else
  3942. char (*f) () = res_mkquery;
  3943. #endif
  3944. #ifdef __cplusplus
  3945. }
  3946. #endif
  3947. int
  3948. main ()
  3949. {
  3950. return f != res_mkquery;
  3951. ;
  3952. return 0;
  3953. }
  3954. _ACEOF
  3955. rm -f conftest.$ac_objext conftest$ac_exeext
  3956. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3957. (eval $ac_link) 2>conftest.er1
  3958. ac_status=$?
  3959. grep -v '^ *+' conftest.er1 >conftest.err
  3960. rm -f conftest.er1
  3961. cat conftest.err >&5
  3962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3963. (exit $ac_status); } &&
  3964. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3965. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3966. (eval $ac_try) 2>&5
  3967. ac_status=$?
  3968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. (exit $ac_status); }; } &&
  3970. { ac_try='test -s conftest$ac_exeext'
  3971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3972. (eval $ac_try) 2>&5
  3973. ac_status=$?
  3974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3975. (exit $ac_status); }; }; then
  3976. ac_cv_func_res_mkquery=yes
  3977. else
  3978. echo "$as_me: failed program was:" >&5
  3979. sed 's/^/| /' conftest.$ac_ext >&5
  3980. ac_cv_func_res_mkquery=no
  3981. fi
  3982. rm -f conftest.err conftest.$ac_objext \
  3983. conftest$ac_exeext conftest.$ac_ext
  3984. fi
  3985. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3986. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3987. if test $ac_cv_func_res_mkquery = yes; then
  3988. :
  3989. else
  3990. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3991. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3992. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3993. echo $ECHO_N "(cached) $ECHO_C" >&6
  3994. else
  3995. ac_check_lib_save_LIBS=$LIBS
  3996. LIBS="-lresolv $LIBS"
  3997. cat >conftest.$ac_ext <<_ACEOF
  3998. /* confdefs.h. */
  3999. _ACEOF
  4000. cat confdefs.h >>conftest.$ac_ext
  4001. cat >>conftest.$ac_ext <<_ACEOF
  4002. /* end confdefs.h. */
  4003. /* Override any gcc2 internal prototype to avoid an error. */
  4004. #ifdef __cplusplus
  4005. extern "C"
  4006. #endif
  4007. /* We use char because int might match the return type of a gcc2
  4008. builtin and then its argument prototype would still apply. */
  4009. char res_mkquery ();
  4010. int
  4011. main ()
  4012. {
  4013. res_mkquery ();
  4014. ;
  4015. return 0;
  4016. }
  4017. _ACEOF
  4018. rm -f conftest.$ac_objext conftest$ac_exeext
  4019. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4020. (eval $ac_link) 2>conftest.er1
  4021. ac_status=$?
  4022. grep -v '^ *+' conftest.er1 >conftest.err
  4023. rm -f conftest.er1
  4024. cat conftest.err >&5
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); } &&
  4027. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4028. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4029. (eval $ac_try) 2>&5
  4030. ac_status=$?
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); }; } &&
  4033. { ac_try='test -s conftest$ac_exeext'
  4034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4035. (eval $ac_try) 2>&5
  4036. ac_status=$?
  4037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4038. (exit $ac_status); }; }; then
  4039. ac_cv_lib_resolv_res_mkquery=yes
  4040. else
  4041. echo "$as_me: failed program was:" >&5
  4042. sed 's/^/| /' conftest.$ac_ext >&5
  4043. ac_cv_lib_resolv_res_mkquery=no
  4044. fi
  4045. rm -f conftest.err conftest.$ac_objext \
  4046. conftest$ac_exeext conftest.$ac_ext
  4047. LIBS=$ac_check_lib_save_LIBS
  4048. fi
  4049. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4050. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4051. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4052. if test "x${RESLIB}" != "x-lresolv"; then
  4053. RESLIB="${RESLIB} -lresolv"
  4054. fi
  4055. else
  4056. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4057. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4058. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4059. echo $ECHO_N "(cached) $ECHO_C" >&6
  4060. else
  4061. ac_check_lib_save_LIBS=$LIBS
  4062. LIBS="-lbind $LIBS"
  4063. cat >conftest.$ac_ext <<_ACEOF
  4064. /* confdefs.h. */
  4065. _ACEOF
  4066. cat confdefs.h >>conftest.$ac_ext
  4067. cat >>conftest.$ac_ext <<_ACEOF
  4068. /* end confdefs.h. */
  4069. /* Override any gcc2 internal prototype to avoid an error. */
  4070. #ifdef __cplusplus
  4071. extern "C"
  4072. #endif
  4073. /* We use char because int might match the return type of a gcc2
  4074. builtin and then its argument prototype would still apply. */
  4075. char res_mkquery ();
  4076. int
  4077. main ()
  4078. {
  4079. res_mkquery ();
  4080. ;
  4081. return 0;
  4082. }
  4083. _ACEOF
  4084. rm -f conftest.$ac_objext conftest$ac_exeext
  4085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4086. (eval $ac_link) 2>conftest.er1
  4087. ac_status=$?
  4088. grep -v '^ *+' conftest.er1 >conftest.err
  4089. rm -f conftest.er1
  4090. cat conftest.err >&5
  4091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4092. (exit $ac_status); } &&
  4093. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4095. (eval $ac_try) 2>&5
  4096. ac_status=$?
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); }; } &&
  4099. { ac_try='test -s conftest$ac_exeext'
  4100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4101. (eval $ac_try) 2>&5
  4102. ac_status=$?
  4103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4104. (exit $ac_status); }; }; then
  4105. ac_cv_lib_bind_res_mkquery=yes
  4106. else
  4107. echo "$as_me: failed program was:" >&5
  4108. sed 's/^/| /' conftest.$ac_ext >&5
  4109. ac_cv_lib_bind_res_mkquery=no
  4110. fi
  4111. rm -f conftest.err conftest.$ac_objext \
  4112. conftest$ac_exeext conftest.$ac_ext
  4113. LIBS=$ac_check_lib_save_LIBS
  4114. fi
  4115. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4116. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4117. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4118. if test "x${RESLIB}" != "x-lbind"; then
  4119. RESLIB="${RESLIB} -lbind"
  4120. fi
  4121. else
  4122. dns_reslib_avail="false";
  4123. fi
  4124. fi
  4125. fi
  4126. if test "${dns_reslib_avail}" = false; then
  4127. dns_reslib_avail="true"
  4128. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4129. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4130. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4131. echo $ECHO_N "(cached) $ECHO_C" >&6
  4132. else
  4133. cat >conftest.$ac_ext <<_ACEOF
  4134. /* confdefs.h. */
  4135. _ACEOF
  4136. cat confdefs.h >>conftest.$ac_ext
  4137. cat >>conftest.$ac_ext <<_ACEOF
  4138. /* end confdefs.h. */
  4139. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4140. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4141. #define __res_mkquery innocuous___res_mkquery
  4142. /* System header to define __stub macros and hopefully few prototypes,
  4143. which can conflict with char __res_mkquery (); below.
  4144. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4145. <limits.h> exists even on freestanding compilers. */
  4146. #ifdef __STDC__
  4147. # include <limits.h>
  4148. #else
  4149. # include <assert.h>
  4150. #endif
  4151. #undef __res_mkquery
  4152. /* Override any gcc2 internal prototype to avoid an error. */
  4153. #ifdef __cplusplus
  4154. extern "C"
  4155. {
  4156. #endif
  4157. /* We use char because int might match the return type of a gcc2
  4158. builtin and then its argument prototype would still apply. */
  4159. char __res_mkquery ();
  4160. /* The GNU C library defines this for functions which it implements
  4161. to always fail with ENOSYS. Some functions are actually named
  4162. something starting with __ and the normal name is an alias. */
  4163. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4164. choke me
  4165. #else
  4166. char (*f) () = __res_mkquery;
  4167. #endif
  4168. #ifdef __cplusplus
  4169. }
  4170. #endif
  4171. int
  4172. main ()
  4173. {
  4174. return f != __res_mkquery;
  4175. ;
  4176. return 0;
  4177. }
  4178. _ACEOF
  4179. rm -f conftest.$ac_objext conftest$ac_exeext
  4180. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4181. (eval $ac_link) 2>conftest.er1
  4182. ac_status=$?
  4183. grep -v '^ *+' conftest.er1 >conftest.err
  4184. rm -f conftest.er1
  4185. cat conftest.err >&5
  4186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4187. (exit $ac_status); } &&
  4188. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4190. (eval $ac_try) 2>&5
  4191. ac_status=$?
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); }; } &&
  4194. { ac_try='test -s conftest$ac_exeext'
  4195. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4196. (eval $ac_try) 2>&5
  4197. ac_status=$?
  4198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4199. (exit $ac_status); }; }; then
  4200. ac_cv_func___res_mkquery=yes
  4201. else
  4202. echo "$as_me: failed program was:" >&5
  4203. sed 's/^/| /' conftest.$ac_ext >&5
  4204. ac_cv_func___res_mkquery=no
  4205. fi
  4206. rm -f conftest.err conftest.$ac_objext \
  4207. conftest$ac_exeext conftest.$ac_ext
  4208. fi
  4209. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4210. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4211. if test $ac_cv_func___res_mkquery = yes; then
  4212. :
  4213. else
  4214. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4215. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4216. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4217. echo $ECHO_N "(cached) $ECHO_C" >&6
  4218. else
  4219. ac_check_lib_save_LIBS=$LIBS
  4220. LIBS="-lresolv $LIBS"
  4221. cat >conftest.$ac_ext <<_ACEOF
  4222. /* confdefs.h. */
  4223. _ACEOF
  4224. cat confdefs.h >>conftest.$ac_ext
  4225. cat >>conftest.$ac_ext <<_ACEOF
  4226. /* end confdefs.h. */
  4227. /* Override any gcc2 internal prototype to avoid an error. */
  4228. #ifdef __cplusplus
  4229. extern "C"
  4230. #endif
  4231. /* We use char because int might match the return type of a gcc2
  4232. builtin and then its argument prototype would still apply. */
  4233. char __res_mkquery ();
  4234. int
  4235. main ()
  4236. {
  4237. __res_mkquery ();
  4238. ;
  4239. return 0;
  4240. }
  4241. _ACEOF
  4242. rm -f conftest.$ac_objext conftest$ac_exeext
  4243. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4244. (eval $ac_link) 2>conftest.er1
  4245. ac_status=$?
  4246. grep -v '^ *+' conftest.er1 >conftest.err
  4247. rm -f conftest.er1
  4248. cat conftest.err >&5
  4249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4250. (exit $ac_status); } &&
  4251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4253. (eval $ac_try) 2>&5
  4254. ac_status=$?
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); }; } &&
  4257. { ac_try='test -s conftest$ac_exeext'
  4258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4259. (eval $ac_try) 2>&5
  4260. ac_status=$?
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); }; }; then
  4263. ac_cv_lib_resolv___res_mkquery=yes
  4264. else
  4265. echo "$as_me: failed program was:" >&5
  4266. sed 's/^/| /' conftest.$ac_ext >&5
  4267. ac_cv_lib_resolv___res_mkquery=no
  4268. fi
  4269. rm -f conftest.err conftest.$ac_objext \
  4270. conftest$ac_exeext conftest.$ac_ext
  4271. LIBS=$ac_check_lib_save_LIBS
  4272. fi
  4273. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4274. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4275. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4276. if test "x${RESLIB}" != "x-lresolv"; then
  4277. RESLIB="${RESLIB} -lresolv"
  4278. fi
  4279. else
  4280. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4281. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4282. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4283. echo $ECHO_N "(cached) $ECHO_C" >&6
  4284. else
  4285. ac_check_lib_save_LIBS=$LIBS
  4286. LIBS="-lbind $LIBS"
  4287. cat >conftest.$ac_ext <<_ACEOF
  4288. /* confdefs.h. */
  4289. _ACEOF
  4290. cat confdefs.h >>conftest.$ac_ext
  4291. cat >>conftest.$ac_ext <<_ACEOF
  4292. /* end confdefs.h. */
  4293. /* Override any gcc2 internal prototype to avoid an error. */
  4294. #ifdef __cplusplus
  4295. extern "C"
  4296. #endif
  4297. /* We use char because int might match the return type of a gcc2
  4298. builtin and then its argument prototype would still apply. */
  4299. char __res_mkquery ();
  4300. int
  4301. main ()
  4302. {
  4303. __res_mkquery ();
  4304. ;
  4305. return 0;
  4306. }
  4307. _ACEOF
  4308. rm -f conftest.$ac_objext conftest$ac_exeext
  4309. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4310. (eval $ac_link) 2>conftest.er1
  4311. ac_status=$?
  4312. grep -v '^ *+' conftest.er1 >conftest.err
  4313. rm -f conftest.er1
  4314. cat conftest.err >&5
  4315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4316. (exit $ac_status); } &&
  4317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4319. (eval $ac_try) 2>&5
  4320. ac_status=$?
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); }; } &&
  4323. { ac_try='test -s conftest$ac_exeext'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; }; then
  4329. ac_cv_lib_bind___res_mkquery=yes
  4330. else
  4331. echo "$as_me: failed program was:" >&5
  4332. sed 's/^/| /' conftest.$ac_ext >&5
  4333. ac_cv_lib_bind___res_mkquery=no
  4334. fi
  4335. rm -f conftest.err conftest.$ac_objext \
  4336. conftest$ac_exeext conftest.$ac_ext
  4337. LIBS=$ac_check_lib_save_LIBS
  4338. fi
  4339. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4340. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4341. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4342. if test "x${RESLIB}" != "x-lbind"; then
  4343. RESLIB="${RESLIB} -lbind"
  4344. fi
  4345. else
  4346. dns_reslib_avail="false";
  4347. fi
  4348. fi
  4349. fi
  4350. fi
  4351. if test "${dns_reslib_avail}" = false; then
  4352. if test "$ac_cv_cygwin" = "yes"; then
  4353. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4354. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4355. if test -r /usr/local/bind/lib/libbind.a; then
  4356. echo "$as_me:$LINENO: result: yes" >&5
  4357. echo "${ECHO_T}yes" >&6
  4358. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4359. RESINCLUDE="-I/usr/local/bind/include"
  4360. dns_reslib_avail="true"
  4361. else
  4362. echo "$as_me:$LINENO: result: no" >&5
  4363. echo "${ECHO_T}no" >&6
  4364. fi
  4365. fi
  4366. fi
  4367. if test "${dns_reslib_avail}" = false; then
  4368. cat >&2 <<EOF
  4369. configure: warning:
  4370. Your system provides no functional resolver library.
  4371. One is required for buld.
  4372. EOF
  4373. exit 1
  4374. fi
  4375. #checkpoint
  4376. cat >confcache <<\_ACEOF
  4377. # This file is a shell script that caches the results of configure
  4378. # tests run on this system so they can be shared between configure
  4379. # scripts and configure runs, see configure's option --config-cache.
  4380. # It is not useful on other systems. If it contains results you don't
  4381. # want to keep, you may remove or edit it.
  4382. #
  4383. # config.status only pays attention to the cache file if you give it
  4384. # the --recheck option to rerun configure.
  4385. #
  4386. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4387. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4388. # following values.
  4389. _ACEOF
  4390. # The following way of writing the cache mishandles newlines in values,
  4391. # but we know of no workaround that is simple, portable, and efficient.
  4392. # So, don't put newlines in cache variables' values.
  4393. # Ultrix sh set writes to stderr and can't be redirected directly,
  4394. # and sets the high bit in the cache file unless we assign to the vars.
  4395. {
  4396. (set) 2>&1 |
  4397. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4398. *ac_space=\ *)
  4399. # `set' does not quote correctly, so add quotes (double-quote
  4400. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4401. sed -n \
  4402. "s/'/'\\\\''/g;
  4403. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4404. ;;
  4405. *)
  4406. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4407. sed -n \
  4408. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4409. ;;
  4410. esac;
  4411. } |
  4412. sed '
  4413. t clear
  4414. : clear
  4415. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4416. t end
  4417. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4418. : end' >>confcache
  4419. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4420. if test -w $cache_file; then
  4421. test "x$cache_file" != "x/dev/null"
  4422. cat confcache >$cache_file
  4423. else
  4424. echo "not updating unwritable cache $cache_file"
  4425. fi
  4426. fi
  4427. rm -f confcache
  4428. # Checks for system libraries
  4429. # FIXME: this needs to be fixed so that it works on IRIX
  4430. if test "$IRIX" = "yes"
  4431. then
  4432. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4433. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4434. else
  4435. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4436. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4437. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4438. echo $ECHO_N "(cached) $ECHO_C" >&6
  4439. else
  4440. ac_check_lib_save_LIBS=$LIBS
  4441. LIBS="-lsocket $LIBS"
  4442. cat >conftest.$ac_ext <<_ACEOF
  4443. /* confdefs.h. */
  4444. _ACEOF
  4445. cat confdefs.h >>conftest.$ac_ext
  4446. cat >>conftest.$ac_ext <<_ACEOF
  4447. /* end confdefs.h. */
  4448. /* Override any gcc2 internal prototype to avoid an error. */
  4449. #ifdef __cplusplus
  4450. extern "C"
  4451. #endif
  4452. /* We use char because int might match the return type of a gcc2
  4453. builtin and then its argument prototype would still apply. */
  4454. char socket ();
  4455. int
  4456. main ()
  4457. {
  4458. socket ();
  4459. ;
  4460. return 0;
  4461. }
  4462. _ACEOF
  4463. rm -f conftest.$ac_objext conftest$ac_exeext
  4464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4465. (eval $ac_link) 2>conftest.er1
  4466. ac_status=$?
  4467. grep -v '^ *+' conftest.er1 >conftest.err
  4468. rm -f conftest.er1
  4469. cat conftest.err >&5
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); } &&
  4472. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; } &&
  4478. { ac_try='test -s conftest$ac_exeext'
  4479. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4480. (eval $ac_try) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); }; }; then
  4484. ac_cv_lib_socket_socket=yes
  4485. else
  4486. echo "$as_me: failed program was:" >&5
  4487. sed 's/^/| /' conftest.$ac_ext >&5
  4488. ac_cv_lib_socket_socket=no
  4489. fi
  4490. rm -f conftest.err conftest.$ac_objext \
  4491. conftest$ac_exeext conftest.$ac_ext
  4492. LIBS=$ac_check_lib_save_LIBS
  4493. fi
  4494. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4495. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4496. if test $ac_cv_lib_socket_socket = yes; then
  4497. cat >>confdefs.h <<_ACEOF
  4498. #define HAVE_LIBSOCKET 1
  4499. _ACEOF
  4500. LIBS="-lsocket $LIBS"
  4501. fi
  4502. # AC_CHECK_LIB(nsl, connect)
  4503. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4504. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4505. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4506. echo $ECHO_N "(cached) $ECHO_C" >&6
  4507. else
  4508. ac_check_lib_save_LIBS=$LIBS
  4509. LIBS="-ldns $LIBS"
  4510. cat >conftest.$ac_ext <<_ACEOF
  4511. /* confdefs.h. */
  4512. _ACEOF
  4513. cat confdefs.h >>conftest.$ac_ext
  4514. cat >>conftest.$ac_ext <<_ACEOF
  4515. /* end confdefs.h. */
  4516. /* Override any gcc2 internal prototype to avoid an error. */
  4517. #ifdef __cplusplus
  4518. extern "C"
  4519. #endif
  4520. /* We use char because int might match the return type of a gcc2
  4521. builtin and then its argument prototype would still apply. */
  4522. char gethostbyname ();
  4523. int
  4524. main ()
  4525. {
  4526. gethostbyname ();
  4527. ;
  4528. return 0;
  4529. }
  4530. _ACEOF
  4531. rm -f conftest.$ac_objext conftest$ac_exeext
  4532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4533. (eval $ac_link) 2>conftest.er1
  4534. ac_status=$?
  4535. grep -v '^ *+' conftest.er1 >conftest.err
  4536. rm -f conftest.er1
  4537. cat conftest.err >&5
  4538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); } &&
  4540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4542. (eval $ac_try) 2>&5
  4543. ac_status=$?
  4544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4545. (exit $ac_status); }; } &&
  4546. { ac_try='test -s conftest$ac_exeext'
  4547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4548. (eval $ac_try) 2>&5
  4549. ac_status=$?
  4550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4551. (exit $ac_status); }; }; then
  4552. ac_cv_lib_dns_gethostbyname=yes
  4553. else
  4554. echo "$as_me: failed program was:" >&5
  4555. sed 's/^/| /' conftest.$ac_ext >&5
  4556. ac_cv_lib_dns_gethostbyname=no
  4557. fi
  4558. rm -f conftest.err conftest.$ac_objext \
  4559. conftest$ac_exeext conftest.$ac_ext
  4560. LIBS=$ac_check_lib_save_LIBS
  4561. fi
  4562. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4563. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4564. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4565. cat >>confdefs.h <<_ACEOF
  4566. #define HAVE_LIBDNS 1
  4567. _ACEOF
  4568. LIBS="-ldns $LIBS"
  4569. fi
  4570. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4571. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4572. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4573. echo $ECHO_N "(cached) $ECHO_C" >&6
  4574. else
  4575. ac_check_lib_save_LIBS=$LIBS
  4576. LIBS="-lz $LIBS"
  4577. cat >conftest.$ac_ext <<_ACEOF
  4578. /* confdefs.h. */
  4579. _ACEOF
  4580. cat confdefs.h >>conftest.$ac_ext
  4581. cat >>conftest.$ac_ext <<_ACEOF
  4582. /* end confdefs.h. */
  4583. /* Override any gcc2 internal prototype to avoid an error. */
  4584. #ifdef __cplusplus
  4585. extern "C"
  4586. #endif
  4587. /* We use char because int might match the return type of a gcc2
  4588. builtin and then its argument prototype would still apply. */
  4589. char gzopen ();
  4590. int
  4591. main ()
  4592. {
  4593. gzopen ();
  4594. ;
  4595. return 0;
  4596. }
  4597. _ACEOF
  4598. rm -f conftest.$ac_objext conftest$ac_exeext
  4599. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4600. (eval $ac_link) 2>conftest.er1
  4601. ac_status=$?
  4602. grep -v '^ *+' conftest.er1 >conftest.err
  4603. rm -f conftest.er1
  4604. cat conftest.err >&5
  4605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4606. (exit $ac_status); } &&
  4607. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4609. (eval $ac_try) 2>&5
  4610. ac_status=$?
  4611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4612. (exit $ac_status); }; } &&
  4613. { ac_try='test -s conftest$ac_exeext'
  4614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4615. (eval $ac_try) 2>&5
  4616. ac_status=$?
  4617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4618. (exit $ac_status); }; }; then
  4619. ac_cv_lib_z_gzopen=yes
  4620. else
  4621. echo "$as_me: failed program was:" >&5
  4622. sed 's/^/| /' conftest.$ac_ext >&5
  4623. ac_cv_lib_z_gzopen=no
  4624. fi
  4625. rm -f conftest.err conftest.$ac_objext \
  4626. conftest$ac_exeext conftest.$ac_ext
  4627. LIBS=$ac_check_lib_save_LIBS
  4628. fi
  4629. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4630. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4631. if test $ac_cv_lib_z_gzopen = yes; then
  4632. ZLIB="-lz"
  4633. fi
  4634. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4635. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4636. # This is needed for Tcl libraries compiled with thread support
  4637. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4638. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4639. # ac_cv_lib_pthread="-lpthread"], [dnl
  4640. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4641. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4642. # ac_cv_lib_pthread="-lpthread"], [dnl
  4643. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4644. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4645. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4646. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4647. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4648. # ac_cv_lib_pthread=""],
  4649. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4650. fi
  4651. # Checks for header files
  4652. ac_header_dirent=no
  4653. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4654. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4655. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4656. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4657. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4658. echo $ECHO_N "(cached) $ECHO_C" >&6
  4659. else
  4660. cat >conftest.$ac_ext <<_ACEOF
  4661. /* confdefs.h. */
  4662. _ACEOF
  4663. cat confdefs.h >>conftest.$ac_ext
  4664. cat >>conftest.$ac_ext <<_ACEOF
  4665. /* end confdefs.h. */
  4666. #include <sys/types.h>
  4667. #include <$ac_hdr>
  4668. int
  4669. main ()
  4670. {
  4671. if ((DIR *) 0)
  4672. return 0;
  4673. ;
  4674. return 0;
  4675. }
  4676. _ACEOF
  4677. rm -f conftest.$ac_objext
  4678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4679. (eval $ac_compile) 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. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4688. (eval $ac_try) 2>&5
  4689. ac_status=$?
  4690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4691. (exit $ac_status); }; } &&
  4692. { ac_try='test -s conftest.$ac_objext'
  4693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4694. (eval $ac_try) 2>&5
  4695. ac_status=$?
  4696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4697. (exit $ac_status); }; }; then
  4698. eval "$as_ac_Header=yes"
  4699. else
  4700. echo "$as_me: failed program was:" >&5
  4701. sed 's/^/| /' conftest.$ac_ext >&5
  4702. eval "$as_ac_Header=no"
  4703. fi
  4704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4705. fi
  4706. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4707. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4708. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4709. cat >>confdefs.h <<_ACEOF
  4710. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4711. _ACEOF
  4712. ac_header_dirent=$ac_hdr; break
  4713. fi
  4714. done
  4715. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4716. if test $ac_header_dirent = dirent.h; then
  4717. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4718. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4719. if test "${ac_cv_search_opendir+set}" = set; then
  4720. echo $ECHO_N "(cached) $ECHO_C" >&6
  4721. else
  4722. ac_func_search_save_LIBS=$LIBS
  4723. ac_cv_search_opendir=no
  4724. cat >conftest.$ac_ext <<_ACEOF
  4725. /* confdefs.h. */
  4726. _ACEOF
  4727. cat confdefs.h >>conftest.$ac_ext
  4728. cat >>conftest.$ac_ext <<_ACEOF
  4729. /* end confdefs.h. */
  4730. /* Override any gcc2 internal prototype to avoid an error. */
  4731. #ifdef __cplusplus
  4732. extern "C"
  4733. #endif
  4734. /* We use char because int might match the return type of a gcc2
  4735. builtin and then its argument prototype would still apply. */
  4736. char opendir ();
  4737. int
  4738. main ()
  4739. {
  4740. opendir ();
  4741. ;
  4742. return 0;
  4743. }
  4744. _ACEOF
  4745. rm -f conftest.$ac_objext conftest$ac_exeext
  4746. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4747. (eval $ac_link) 2>conftest.er1
  4748. ac_status=$?
  4749. grep -v '^ *+' conftest.er1 >conftest.err
  4750. rm -f conftest.er1
  4751. cat conftest.err >&5
  4752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4753. (exit $ac_status); } &&
  4754. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4756. (eval $ac_try) 2>&5
  4757. ac_status=$?
  4758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4759. (exit $ac_status); }; } &&
  4760. { ac_try='test -s conftest$ac_exeext'
  4761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4762. (eval $ac_try) 2>&5
  4763. ac_status=$?
  4764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4765. (exit $ac_status); }; }; then
  4766. ac_cv_search_opendir="none required"
  4767. else
  4768. echo "$as_me: failed program was:" >&5
  4769. sed 's/^/| /' conftest.$ac_ext >&5
  4770. fi
  4771. rm -f conftest.err conftest.$ac_objext \
  4772. conftest$ac_exeext conftest.$ac_ext
  4773. if test "$ac_cv_search_opendir" = no; then
  4774. for ac_lib in dir; do
  4775. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4776. cat >conftest.$ac_ext <<_ACEOF
  4777. /* confdefs.h. */
  4778. _ACEOF
  4779. cat confdefs.h >>conftest.$ac_ext
  4780. cat >>conftest.$ac_ext <<_ACEOF
  4781. /* end confdefs.h. */
  4782. /* Override any gcc2 internal prototype to avoid an error. */
  4783. #ifdef __cplusplus
  4784. extern "C"
  4785. #endif
  4786. /* We use char because int might match the return type of a gcc2
  4787. builtin and then its argument prototype would still apply. */
  4788. char opendir ();
  4789. int
  4790. main ()
  4791. {
  4792. opendir ();
  4793. ;
  4794. return 0;
  4795. }
  4796. _ACEOF
  4797. rm -f conftest.$ac_objext conftest$ac_exeext
  4798. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4799. (eval $ac_link) 2>conftest.er1
  4800. ac_status=$?
  4801. grep -v '^ *+' conftest.er1 >conftest.err
  4802. rm -f conftest.er1
  4803. cat conftest.err >&5
  4804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); } &&
  4806. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4808. (eval $ac_try) 2>&5
  4809. ac_status=$?
  4810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811. (exit $ac_status); }; } &&
  4812. { ac_try='test -s conftest$ac_exeext'
  4813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4814. (eval $ac_try) 2>&5
  4815. ac_status=$?
  4816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4817. (exit $ac_status); }; }; then
  4818. ac_cv_search_opendir="-l$ac_lib"
  4819. break
  4820. else
  4821. echo "$as_me: failed program was:" >&5
  4822. sed 's/^/| /' conftest.$ac_ext >&5
  4823. fi
  4824. rm -f conftest.err conftest.$ac_objext \
  4825. conftest$ac_exeext conftest.$ac_ext
  4826. done
  4827. fi
  4828. LIBS=$ac_func_search_save_LIBS
  4829. fi
  4830. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4831. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4832. if test "$ac_cv_search_opendir" != no; then
  4833. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4834. fi
  4835. else
  4836. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4837. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4838. if test "${ac_cv_search_opendir+set}" = set; then
  4839. echo $ECHO_N "(cached) $ECHO_C" >&6
  4840. else
  4841. ac_func_search_save_LIBS=$LIBS
  4842. ac_cv_search_opendir=no
  4843. cat >conftest.$ac_ext <<_ACEOF
  4844. /* confdefs.h. */
  4845. _ACEOF
  4846. cat confdefs.h >>conftest.$ac_ext
  4847. cat >>conftest.$ac_ext <<_ACEOF
  4848. /* end confdefs.h. */
  4849. /* Override any gcc2 internal prototype to avoid an error. */
  4850. #ifdef __cplusplus
  4851. extern "C"
  4852. #endif
  4853. /* We use char because int might match the return type of a gcc2
  4854. builtin and then its argument prototype would still apply. */
  4855. char opendir ();
  4856. int
  4857. main ()
  4858. {
  4859. opendir ();
  4860. ;
  4861. return 0;
  4862. }
  4863. _ACEOF
  4864. rm -f conftest.$ac_objext conftest$ac_exeext
  4865. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4866. (eval $ac_link) 2>conftest.er1
  4867. ac_status=$?
  4868. grep -v '^ *+' conftest.er1 >conftest.err
  4869. rm -f conftest.er1
  4870. cat conftest.err >&5
  4871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4872. (exit $ac_status); } &&
  4873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4875. (eval $ac_try) 2>&5
  4876. ac_status=$?
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); }; } &&
  4879. { ac_try='test -s conftest$ac_exeext'
  4880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4881. (eval $ac_try) 2>&5
  4882. ac_status=$?
  4883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4884. (exit $ac_status); }; }; then
  4885. ac_cv_search_opendir="none required"
  4886. else
  4887. echo "$as_me: failed program was:" >&5
  4888. sed 's/^/| /' conftest.$ac_ext >&5
  4889. fi
  4890. rm -f conftest.err conftest.$ac_objext \
  4891. conftest$ac_exeext conftest.$ac_ext
  4892. if test "$ac_cv_search_opendir" = no; then
  4893. for ac_lib in x; do
  4894. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4895. cat >conftest.$ac_ext <<_ACEOF
  4896. /* confdefs.h. */
  4897. _ACEOF
  4898. cat confdefs.h >>conftest.$ac_ext
  4899. cat >>conftest.$ac_ext <<_ACEOF
  4900. /* end confdefs.h. */
  4901. /* Override any gcc2 internal prototype to avoid an error. */
  4902. #ifdef __cplusplus
  4903. extern "C"
  4904. #endif
  4905. /* We use char because int might match the return type of a gcc2
  4906. builtin and then its argument prototype would still apply. */
  4907. char opendir ();
  4908. int
  4909. main ()
  4910. {
  4911. opendir ();
  4912. ;
  4913. return 0;
  4914. }
  4915. _ACEOF
  4916. rm -f conftest.$ac_objext conftest$ac_exeext
  4917. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4918. (eval $ac_link) 2>conftest.er1
  4919. ac_status=$?
  4920. grep -v '^ *+' conftest.er1 >conftest.err
  4921. rm -f conftest.er1
  4922. cat conftest.err >&5
  4923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4924. (exit $ac_status); } &&
  4925. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4926. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4927. (eval $ac_try) 2>&5
  4928. ac_status=$?
  4929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4930. (exit $ac_status); }; } &&
  4931. { ac_try='test -s conftest$ac_exeext'
  4932. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4933. (eval $ac_try) 2>&5
  4934. ac_status=$?
  4935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4936. (exit $ac_status); }; }; then
  4937. ac_cv_search_opendir="-l$ac_lib"
  4938. break
  4939. else
  4940. echo "$as_me: failed program was:" >&5
  4941. sed 's/^/| /' conftest.$ac_ext >&5
  4942. fi
  4943. rm -f conftest.err conftest.$ac_objext \
  4944. conftest$ac_exeext conftest.$ac_ext
  4945. done
  4946. fi
  4947. LIBS=$ac_func_search_save_LIBS
  4948. fi
  4949. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4950. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4951. if test "$ac_cv_search_opendir" != no; then
  4952. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4953. fi
  4954. fi
  4955. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4956. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4957. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4958. echo $ECHO_N "(cached) $ECHO_C" >&6
  4959. else
  4960. cat >conftest.$ac_ext <<_ACEOF
  4961. /* confdefs.h. */
  4962. _ACEOF
  4963. cat confdefs.h >>conftest.$ac_ext
  4964. cat >>conftest.$ac_ext <<_ACEOF
  4965. /* end confdefs.h. */
  4966. #include <sys/types.h>
  4967. #include <sys/wait.h>
  4968. #ifndef WEXITSTATUS
  4969. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4970. #endif
  4971. #ifndef WIFEXITED
  4972. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4973. #endif
  4974. int
  4975. main ()
  4976. {
  4977. int s;
  4978. wait (&s);
  4979. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4980. ;
  4981. return 0;
  4982. }
  4983. _ACEOF
  4984. rm -f conftest.$ac_objext
  4985. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4986. (eval $ac_compile) 2>conftest.er1
  4987. ac_status=$?
  4988. grep -v '^ *+' conftest.er1 >conftest.err
  4989. rm -f conftest.er1
  4990. cat conftest.err >&5
  4991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4992. (exit $ac_status); } &&
  4993. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4995. (eval $ac_try) 2>&5
  4996. ac_status=$?
  4997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4998. (exit $ac_status); }; } &&
  4999. { ac_try='test -s conftest.$ac_objext'
  5000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5001. (eval $ac_try) 2>&5
  5002. ac_status=$?
  5003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5004. (exit $ac_status); }; }; then
  5005. ac_cv_header_sys_wait_h=yes
  5006. else
  5007. echo "$as_me: failed program was:" >&5
  5008. sed 's/^/| /' conftest.$ac_ext >&5
  5009. ac_cv_header_sys_wait_h=no
  5010. fi
  5011. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5012. fi
  5013. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5014. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5015. if test $ac_cv_header_sys_wait_h = yes; then
  5016. cat >>confdefs.h <<\_ACEOF
  5017. #define HAVE_SYS_WAIT_H 1
  5018. _ACEOF
  5019. fi
  5020. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5021. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5022. if test "${ac_cv_header_time+set}" = set; then
  5023. echo $ECHO_N "(cached) $ECHO_C" >&6
  5024. else
  5025. cat >conftest.$ac_ext <<_ACEOF
  5026. /* confdefs.h. */
  5027. _ACEOF
  5028. cat confdefs.h >>conftest.$ac_ext
  5029. cat >>conftest.$ac_ext <<_ACEOF
  5030. /* end confdefs.h. */
  5031. #include <sys/types.h>
  5032. #include <sys/time.h>
  5033. #include <time.h>
  5034. int
  5035. main ()
  5036. {
  5037. if ((struct tm *) 0)
  5038. return 0;
  5039. ;
  5040. return 0;
  5041. }
  5042. _ACEOF
  5043. rm -f conftest.$ac_objext
  5044. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5045. (eval $ac_compile) 2>conftest.er1
  5046. ac_status=$?
  5047. grep -v '^ *+' conftest.er1 >conftest.err
  5048. rm -f conftest.er1
  5049. cat conftest.err >&5
  5050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5051. (exit $ac_status); } &&
  5052. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5054. (eval $ac_try) 2>&5
  5055. ac_status=$?
  5056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5057. (exit $ac_status); }; } &&
  5058. { ac_try='test -s conftest.$ac_objext'
  5059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5060. (eval $ac_try) 2>&5
  5061. ac_status=$?
  5062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5063. (exit $ac_status); }; }; then
  5064. ac_cv_header_time=yes
  5065. else
  5066. echo "$as_me: failed program was:" >&5
  5067. sed 's/^/| /' conftest.$ac_ext >&5
  5068. ac_cv_header_time=no
  5069. fi
  5070. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5071. fi
  5072. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5073. echo "${ECHO_T}$ac_cv_header_time" >&6
  5074. if test $ac_cv_header_time = yes; then
  5075. cat >>confdefs.h <<\_ACEOF
  5076. #define TIME_WITH_SYS_TIME 1
  5077. _ACEOF
  5078. fi
  5079. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5080. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5081. if test "${ac_cv_header_stat_broken+set}" = set; then
  5082. echo $ECHO_N "(cached) $ECHO_C" >&6
  5083. else
  5084. cat >conftest.$ac_ext <<_ACEOF
  5085. /* confdefs.h. */
  5086. _ACEOF
  5087. cat confdefs.h >>conftest.$ac_ext
  5088. cat >>conftest.$ac_ext <<_ACEOF
  5089. /* end confdefs.h. */
  5090. #include <sys/types.h>
  5091. #include <sys/stat.h>
  5092. #if defined(S_ISBLK) && defined(S_IFDIR)
  5093. # if S_ISBLK (S_IFDIR)
  5094. You lose.
  5095. # endif
  5096. #endif
  5097. #if defined(S_ISBLK) && defined(S_IFCHR)
  5098. # if S_ISBLK (S_IFCHR)
  5099. You lose.
  5100. # endif
  5101. #endif
  5102. #if defined(S_ISLNK) && defined(S_IFREG)
  5103. # if S_ISLNK (S_IFREG)
  5104. You lose.
  5105. # endif
  5106. #endif
  5107. #if defined(S_ISSOCK) && defined(S_IFREG)
  5108. # if S_ISSOCK (S_IFREG)
  5109. You lose.
  5110. # endif
  5111. #endif
  5112. _ACEOF
  5113. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5114. $EGREP "You lose" >/dev/null 2>&1; then
  5115. ac_cv_header_stat_broken=yes
  5116. else
  5117. ac_cv_header_stat_broken=no
  5118. fi
  5119. rm -f conftest*
  5120. fi
  5121. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5122. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5123. if test $ac_cv_header_stat_broken = yes; then
  5124. cat >>confdefs.h <<\_ACEOF
  5125. #define STAT_MACROS_BROKEN 1
  5126. _ACEOF
  5127. fi
  5128. #checkpoint
  5129. cat >confcache <<\_ACEOF
  5130. # This file is a shell script that caches the results of configure
  5131. # tests run on this system so they can be shared between configure
  5132. # scripts and configure runs, see configure's option --config-cache.
  5133. # It is not useful on other systems. If it contains results you don't
  5134. # want to keep, you may remove or edit it.
  5135. #
  5136. # config.status only pays attention to the cache file if you give it
  5137. # the --recheck option to rerun configure.
  5138. #
  5139. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5140. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5141. # following values.
  5142. _ACEOF
  5143. # The following way of writing the cache mishandles newlines in values,
  5144. # but we know of no workaround that is simple, portable, and efficient.
  5145. # So, don't put newlines in cache variables' values.
  5146. # Ultrix sh set writes to stderr and can't be redirected directly,
  5147. # and sets the high bit in the cache file unless we assign to the vars.
  5148. {
  5149. (set) 2>&1 |
  5150. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5151. *ac_space=\ *)
  5152. # `set' does not quote correctly, so add quotes (double-quote
  5153. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5154. sed -n \
  5155. "s/'/'\\\\''/g;
  5156. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5157. ;;
  5158. *)
  5159. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5160. sed -n \
  5161. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5162. ;;
  5163. esac;
  5164. } |
  5165. sed '
  5166. t clear
  5167. : clear
  5168. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5169. t end
  5170. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5171. : end' >>confcache
  5172. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5173. if test -w $cache_file; then
  5174. test "x$cache_file" != "x/dev/null"
  5175. cat confcache >$cache_file
  5176. else
  5177. echo "not updating unwritable cache $cache_file"
  5178. fi
  5179. fi
  5180. rm -f confcache
  5181. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5182. do
  5183. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5184. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5185. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5186. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5187. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5188. echo $ECHO_N "(cached) $ECHO_C" >&6
  5189. fi
  5190. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5191. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5192. else
  5193. # Is the header compilable?
  5194. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5195. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5196. cat >conftest.$ac_ext <<_ACEOF
  5197. /* confdefs.h. */
  5198. _ACEOF
  5199. cat confdefs.h >>conftest.$ac_ext
  5200. cat >>conftest.$ac_ext <<_ACEOF
  5201. /* end confdefs.h. */
  5202. $ac_includes_default
  5203. #include <$ac_header>
  5204. _ACEOF
  5205. rm -f conftest.$ac_objext
  5206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5207. (eval $ac_compile) 2>conftest.er1
  5208. ac_status=$?
  5209. grep -v '^ *+' conftest.er1 >conftest.err
  5210. rm -f conftest.er1
  5211. cat conftest.err >&5
  5212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5213. (exit $ac_status); } &&
  5214. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5216. (eval $ac_try) 2>&5
  5217. ac_status=$?
  5218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5219. (exit $ac_status); }; } &&
  5220. { ac_try='test -s conftest.$ac_objext'
  5221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5222. (eval $ac_try) 2>&5
  5223. ac_status=$?
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); }; }; then
  5226. ac_header_compiler=yes
  5227. else
  5228. echo "$as_me: failed program was:" >&5
  5229. sed 's/^/| /' conftest.$ac_ext >&5
  5230. ac_header_compiler=no
  5231. fi
  5232. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5233. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5234. echo "${ECHO_T}$ac_header_compiler" >&6
  5235. # Is the header present?
  5236. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5237. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5238. cat >conftest.$ac_ext <<_ACEOF
  5239. /* confdefs.h. */
  5240. _ACEOF
  5241. cat confdefs.h >>conftest.$ac_ext
  5242. cat >>conftest.$ac_ext <<_ACEOF
  5243. /* end confdefs.h. */
  5244. #include <$ac_header>
  5245. _ACEOF
  5246. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5247. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5248. ac_status=$?
  5249. grep -v '^ *+' conftest.er1 >conftest.err
  5250. rm -f conftest.er1
  5251. cat conftest.err >&5
  5252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5253. (exit $ac_status); } >/dev/null; then
  5254. if test -s conftest.err; then
  5255. ac_cpp_err=$ac_c_preproc_warn_flag
  5256. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5257. else
  5258. ac_cpp_err=
  5259. fi
  5260. else
  5261. ac_cpp_err=yes
  5262. fi
  5263. if test -z "$ac_cpp_err"; then
  5264. ac_header_preproc=yes
  5265. else
  5266. echo "$as_me: failed program was:" >&5
  5267. sed 's/^/| /' conftest.$ac_ext >&5
  5268. ac_header_preproc=no
  5269. fi
  5270. rm -f conftest.err conftest.$ac_ext
  5271. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5272. echo "${ECHO_T}$ac_header_preproc" >&6
  5273. # So? What about this header?
  5274. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5275. yes:no: )
  5276. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5277. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5278. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5279. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5280. ac_header_preproc=yes
  5281. ;;
  5282. no:yes:* )
  5283. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5284. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5285. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5286. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5287. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5288. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5289. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5290. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5291. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5292. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5293. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5294. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5295. (
  5296. cat <<\_ASBOX
  5297. ## ------------------------------------------ ##
  5298. ## Report this to the AC_PACKAGE_NAME lists. ##
  5299. ## ------------------------------------------ ##
  5300. _ASBOX
  5301. ) |
  5302. sed "s/^/$as_me: WARNING: /" >&2
  5303. ;;
  5304. esac
  5305. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5306. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5308. echo $ECHO_N "(cached) $ECHO_C" >&6
  5309. else
  5310. eval "$as_ac_Header=\$ac_header_preproc"
  5311. fi
  5312. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5313. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5314. fi
  5315. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5316. cat >>confdefs.h <<_ACEOF
  5317. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5318. _ACEOF
  5319. fi
  5320. done
  5321. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5322. do
  5323. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5324. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5325. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5326. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5328. echo $ECHO_N "(cached) $ECHO_C" >&6
  5329. fi
  5330. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5331. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5332. else
  5333. # Is the header compilable?
  5334. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5335. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5336. cat >conftest.$ac_ext <<_ACEOF
  5337. /* confdefs.h. */
  5338. _ACEOF
  5339. cat confdefs.h >>conftest.$ac_ext
  5340. cat >>conftest.$ac_ext <<_ACEOF
  5341. /* end confdefs.h. */
  5342. $ac_includes_default
  5343. #include <$ac_header>
  5344. _ACEOF
  5345. rm -f conftest.$ac_objext
  5346. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5347. (eval $ac_compile) 2>conftest.er1
  5348. ac_status=$?
  5349. grep -v '^ *+' conftest.er1 >conftest.err
  5350. rm -f conftest.er1
  5351. cat conftest.err >&5
  5352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5353. (exit $ac_status); } &&
  5354. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5355. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5356. (eval $ac_try) 2>&5
  5357. ac_status=$?
  5358. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5359. (exit $ac_status); }; } &&
  5360. { ac_try='test -s conftest.$ac_objext'
  5361. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5362. (eval $ac_try) 2>&5
  5363. ac_status=$?
  5364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5365. (exit $ac_status); }; }; then
  5366. ac_header_compiler=yes
  5367. else
  5368. echo "$as_me: failed program was:" >&5
  5369. sed 's/^/| /' conftest.$ac_ext >&5
  5370. ac_header_compiler=no
  5371. fi
  5372. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5373. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5374. echo "${ECHO_T}$ac_header_compiler" >&6
  5375. # Is the header present?
  5376. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5377. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5378. cat >conftest.$ac_ext <<_ACEOF
  5379. /* confdefs.h. */
  5380. _ACEOF
  5381. cat confdefs.h >>conftest.$ac_ext
  5382. cat >>conftest.$ac_ext <<_ACEOF
  5383. /* end confdefs.h. */
  5384. #include <$ac_header>
  5385. _ACEOF
  5386. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5387. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5388. ac_status=$?
  5389. grep -v '^ *+' conftest.er1 >conftest.err
  5390. rm -f conftest.er1
  5391. cat conftest.err >&5
  5392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5393. (exit $ac_status); } >/dev/null; then
  5394. if test -s conftest.err; then
  5395. ac_cpp_err=$ac_c_preproc_warn_flag
  5396. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5397. else
  5398. ac_cpp_err=
  5399. fi
  5400. else
  5401. ac_cpp_err=yes
  5402. fi
  5403. if test -z "$ac_cpp_err"; then
  5404. ac_header_preproc=yes
  5405. else
  5406. echo "$as_me: failed program was:" >&5
  5407. sed 's/^/| /' conftest.$ac_ext >&5
  5408. ac_header_preproc=no
  5409. fi
  5410. rm -f conftest.err conftest.$ac_ext
  5411. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5412. echo "${ECHO_T}$ac_header_preproc" >&6
  5413. # So? What about this header?
  5414. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5415. yes:no: )
  5416. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5417. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5418. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5419. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5420. ac_header_preproc=yes
  5421. ;;
  5422. no:yes:* )
  5423. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5424. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5425. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5426. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5427. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5428. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5429. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5430. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5431. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5432. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5433. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5434. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5435. (
  5436. cat <<\_ASBOX
  5437. ## ------------------------------------------ ##
  5438. ## Report this to the AC_PACKAGE_NAME lists. ##
  5439. ## ------------------------------------------ ##
  5440. _ASBOX
  5441. ) |
  5442. sed "s/^/$as_me: WARNING: /" >&2
  5443. ;;
  5444. esac
  5445. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5446. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5447. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5448. echo $ECHO_N "(cached) $ECHO_C" >&6
  5449. else
  5450. eval "$as_ac_Header=\$ac_header_preproc"
  5451. fi
  5452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5454. fi
  5455. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5456. cat >>confdefs.h <<_ACEOF
  5457. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5458. _ACEOF
  5459. fi
  5460. done
  5461. #checkpoint
  5462. cat >confcache <<\_ACEOF
  5463. # This file is a shell script that caches the results of configure
  5464. # tests run on this system so they can be shared between configure
  5465. # scripts and configure runs, see configure's option --config-cache.
  5466. # It is not useful on other systems. If it contains results you don't
  5467. # want to keep, you may remove or edit it.
  5468. #
  5469. # config.status only pays attention to the cache file if you give it
  5470. # the --recheck option to rerun configure.
  5471. #
  5472. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5473. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5474. # following values.
  5475. _ACEOF
  5476. # The following way of writing the cache mishandles newlines in values,
  5477. # but we know of no workaround that is simple, portable, and efficient.
  5478. # So, don't put newlines in cache variables' values.
  5479. # Ultrix sh set writes to stderr and can't be redirected directly,
  5480. # and sets the high bit in the cache file unless we assign to the vars.
  5481. {
  5482. (set) 2>&1 |
  5483. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5484. *ac_space=\ *)
  5485. # `set' does not quote correctly, so add quotes (double-quote
  5486. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5487. sed -n \
  5488. "s/'/'\\\\''/g;
  5489. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5490. ;;
  5491. *)
  5492. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5493. sed -n \
  5494. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5495. ;;
  5496. esac;
  5497. } |
  5498. sed '
  5499. t clear
  5500. : clear
  5501. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5502. t end
  5503. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5504. : end' >>confcache
  5505. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5506. if test -w $cache_file; then
  5507. test "x$cache_file" != "x/dev/null"
  5508. cat confcache >$cache_file
  5509. else
  5510. echo "not updating unwritable cache $cache_file"
  5511. fi
  5512. fi
  5513. rm -f confcache
  5514. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5515. for ac_header in zlib.h
  5516. do
  5517. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5518. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5522. echo $ECHO_N "(cached) $ECHO_C" >&6
  5523. fi
  5524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5525. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5526. else
  5527. # Is the header compilable?
  5528. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5529. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5530. cat >conftest.$ac_ext <<_ACEOF
  5531. /* confdefs.h. */
  5532. _ACEOF
  5533. cat confdefs.h >>conftest.$ac_ext
  5534. cat >>conftest.$ac_ext <<_ACEOF
  5535. /* end confdefs.h. */
  5536. $ac_includes_default
  5537. #include <$ac_header>
  5538. _ACEOF
  5539. rm -f conftest.$ac_objext
  5540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5541. (eval $ac_compile) 2>conftest.er1
  5542. ac_status=$?
  5543. grep -v '^ *+' conftest.er1 >conftest.err
  5544. rm -f conftest.er1
  5545. cat conftest.err >&5
  5546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5547. (exit $ac_status); } &&
  5548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5550. (eval $ac_try) 2>&5
  5551. ac_status=$?
  5552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5553. (exit $ac_status); }; } &&
  5554. { ac_try='test -s conftest.$ac_objext'
  5555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5556. (eval $ac_try) 2>&5
  5557. ac_status=$?
  5558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5559. (exit $ac_status); }; }; then
  5560. ac_header_compiler=yes
  5561. else
  5562. echo "$as_me: failed program was:" >&5
  5563. sed 's/^/| /' conftest.$ac_ext >&5
  5564. ac_header_compiler=no
  5565. fi
  5566. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5567. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5568. echo "${ECHO_T}$ac_header_compiler" >&6
  5569. # Is the header present?
  5570. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5571. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5572. cat >conftest.$ac_ext <<_ACEOF
  5573. /* confdefs.h. */
  5574. _ACEOF
  5575. cat confdefs.h >>conftest.$ac_ext
  5576. cat >>conftest.$ac_ext <<_ACEOF
  5577. /* end confdefs.h. */
  5578. #include <$ac_header>
  5579. _ACEOF
  5580. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5581. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5582. ac_status=$?
  5583. grep -v '^ *+' conftest.er1 >conftest.err
  5584. rm -f conftest.er1
  5585. cat conftest.err >&5
  5586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5587. (exit $ac_status); } >/dev/null; then
  5588. if test -s conftest.err; then
  5589. ac_cpp_err=$ac_c_preproc_warn_flag
  5590. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5591. else
  5592. ac_cpp_err=
  5593. fi
  5594. else
  5595. ac_cpp_err=yes
  5596. fi
  5597. if test -z "$ac_cpp_err"; then
  5598. ac_header_preproc=yes
  5599. else
  5600. echo "$as_me: failed program was:" >&5
  5601. sed 's/^/| /' conftest.$ac_ext >&5
  5602. ac_header_preproc=no
  5603. fi
  5604. rm -f conftest.err conftest.$ac_ext
  5605. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5606. echo "${ECHO_T}$ac_header_preproc" >&6
  5607. # So? What about this header?
  5608. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5609. yes:no: )
  5610. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5611. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5613. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5614. ac_header_preproc=yes
  5615. ;;
  5616. no:yes:* )
  5617. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5618. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5619. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5620. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5621. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5622. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5623. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5624. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5625. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5626. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5627. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5628. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5629. (
  5630. cat <<\_ASBOX
  5631. ## ------------------------------------------ ##
  5632. ## Report this to the AC_PACKAGE_NAME lists. ##
  5633. ## ------------------------------------------ ##
  5634. _ASBOX
  5635. ) |
  5636. sed "s/^/$as_me: WARNING: /" >&2
  5637. ;;
  5638. esac
  5639. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5640. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5641. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5642. echo $ECHO_N "(cached) $ECHO_C" >&6
  5643. else
  5644. eval "$as_ac_Header=\$ac_header_preproc"
  5645. fi
  5646. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5647. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5648. fi
  5649. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5650. cat >>confdefs.h <<_ACEOF
  5651. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5652. _ACEOF
  5653. fi
  5654. done
  5655. if test "x${ZLIB}" = x; then
  5656. cat >&2 <<EOF
  5657. configure: error:
  5658. Your system does not provide a working zlib compression library.
  5659. It is required.
  5660. EOF
  5661. exit 1
  5662. else
  5663. if test "${ac_cv_header_zlib_h}" != yes; then
  5664. cat >&2 <<EOF
  5665. configure: error:
  5666. Your system does not provide the necessary zlib header file.
  5667. It is required.
  5668. EOF
  5669. exit 1
  5670. fi
  5671. fi
  5672. #EGG_CHECK_SSL
  5673. #AC_SUBST(SSL)dnl
  5674. # Checks for typedefs, structures, and compiler characteristics
  5675. echo "$as_me:$LINENO: checking for pid_t" >&5
  5676. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5677. if test "${ac_cv_type_pid_t+set}" = set; then
  5678. echo $ECHO_N "(cached) $ECHO_C" >&6
  5679. else
  5680. cat >conftest.$ac_ext <<_ACEOF
  5681. /* confdefs.h. */
  5682. _ACEOF
  5683. cat confdefs.h >>conftest.$ac_ext
  5684. cat >>conftest.$ac_ext <<_ACEOF
  5685. /* end confdefs.h. */
  5686. $ac_includes_default
  5687. int
  5688. main ()
  5689. {
  5690. if ((pid_t *) 0)
  5691. return 0;
  5692. if (sizeof (pid_t))
  5693. return 0;
  5694. ;
  5695. return 0;
  5696. }
  5697. _ACEOF
  5698. rm -f conftest.$ac_objext
  5699. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5700. (eval $ac_compile) 2>conftest.er1
  5701. ac_status=$?
  5702. grep -v '^ *+' conftest.er1 >conftest.err
  5703. rm -f conftest.er1
  5704. cat conftest.err >&5
  5705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5706. (exit $ac_status); } &&
  5707. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5709. (eval $ac_try) 2>&5
  5710. ac_status=$?
  5711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5712. (exit $ac_status); }; } &&
  5713. { ac_try='test -s conftest.$ac_objext'
  5714. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5715. (eval $ac_try) 2>&5
  5716. ac_status=$?
  5717. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5718. (exit $ac_status); }; }; then
  5719. ac_cv_type_pid_t=yes
  5720. else
  5721. echo "$as_me: failed program was:" >&5
  5722. sed 's/^/| /' conftest.$ac_ext >&5
  5723. ac_cv_type_pid_t=no
  5724. fi
  5725. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5726. fi
  5727. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5728. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5729. if test $ac_cv_type_pid_t = yes; then
  5730. :
  5731. else
  5732. cat >>confdefs.h <<_ACEOF
  5733. #define pid_t int
  5734. _ACEOF
  5735. fi
  5736. echo "$as_me:$LINENO: checking for size_t" >&5
  5737. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5738. if test "${ac_cv_type_size_t+set}" = set; then
  5739. echo $ECHO_N "(cached) $ECHO_C" >&6
  5740. else
  5741. cat >conftest.$ac_ext <<_ACEOF
  5742. /* confdefs.h. */
  5743. _ACEOF
  5744. cat confdefs.h >>conftest.$ac_ext
  5745. cat >>conftest.$ac_ext <<_ACEOF
  5746. /* end confdefs.h. */
  5747. $ac_includes_default
  5748. int
  5749. main ()
  5750. {
  5751. if ((size_t *) 0)
  5752. return 0;
  5753. if (sizeof (size_t))
  5754. return 0;
  5755. ;
  5756. return 0;
  5757. }
  5758. _ACEOF
  5759. rm -f conftest.$ac_objext
  5760. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5761. (eval $ac_compile) 2>conftest.er1
  5762. ac_status=$?
  5763. grep -v '^ *+' conftest.er1 >conftest.err
  5764. rm -f conftest.er1
  5765. cat conftest.err >&5
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); } &&
  5768. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5770. (eval $ac_try) 2>&5
  5771. ac_status=$?
  5772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); }; } &&
  5774. { ac_try='test -s conftest.$ac_objext'
  5775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5776. (eval $ac_try) 2>&5
  5777. ac_status=$?
  5778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5779. (exit $ac_status); }; }; then
  5780. ac_cv_type_size_t=yes
  5781. else
  5782. echo "$as_me: failed program was:" >&5
  5783. sed 's/^/| /' conftest.$ac_ext >&5
  5784. ac_cv_type_size_t=no
  5785. fi
  5786. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5787. fi
  5788. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5789. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5790. if test $ac_cv_type_size_t = yes; then
  5791. :
  5792. else
  5793. cat >>confdefs.h <<_ACEOF
  5794. #define size_t unsigned
  5795. _ACEOF
  5796. fi
  5797. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5798. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5799. if test "${ac_cv_type_uid_t+set}" = set; then
  5800. echo $ECHO_N "(cached) $ECHO_C" >&6
  5801. else
  5802. cat >conftest.$ac_ext <<_ACEOF
  5803. /* confdefs.h. */
  5804. _ACEOF
  5805. cat confdefs.h >>conftest.$ac_ext
  5806. cat >>conftest.$ac_ext <<_ACEOF
  5807. /* end confdefs.h. */
  5808. #include <sys/types.h>
  5809. _ACEOF
  5810. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5811. $EGREP "uid_t" >/dev/null 2>&1; then
  5812. ac_cv_type_uid_t=yes
  5813. else
  5814. ac_cv_type_uid_t=no
  5815. fi
  5816. rm -f conftest*
  5817. fi
  5818. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5819. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5820. if test $ac_cv_type_uid_t = no; then
  5821. cat >>confdefs.h <<\_ACEOF
  5822. #define uid_t int
  5823. _ACEOF
  5824. cat >>confdefs.h <<\_ACEOF
  5825. #define gid_t int
  5826. _ACEOF
  5827. fi
  5828. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5829. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5830. if test "${ac_cv_c_const+set}" = set; then
  5831. echo $ECHO_N "(cached) $ECHO_C" >&6
  5832. else
  5833. cat >conftest.$ac_ext <<_ACEOF
  5834. /* confdefs.h. */
  5835. _ACEOF
  5836. cat confdefs.h >>conftest.$ac_ext
  5837. cat >>conftest.$ac_ext <<_ACEOF
  5838. /* end confdefs.h. */
  5839. int
  5840. main ()
  5841. {
  5842. /* FIXME: Include the comments suggested by Paul. */
  5843. #ifndef __cplusplus
  5844. /* Ultrix mips cc rejects this. */
  5845. typedef int charset[2];
  5846. const charset x;
  5847. /* SunOS 4.1.1 cc rejects this. */
  5848. char const *const *ccp;
  5849. char **p;
  5850. /* NEC SVR4.0.2 mips cc rejects this. */
  5851. struct point {int x, y;};
  5852. static struct point const zero = {0,0};
  5853. /* AIX XL C 1.02.0.0 rejects this.
  5854. It does not let you subtract one const X* pointer from another in
  5855. an arm of an if-expression whose if-part is not a constant
  5856. expression */
  5857. const char *g = "string";
  5858. ccp = &g + (g ? g-g : 0);
  5859. /* HPUX 7.0 cc rejects these. */
  5860. ++ccp;
  5861. p = (char**) ccp;
  5862. ccp = (char const *const *) p;
  5863. { /* SCO 3.2v4 cc rejects this. */
  5864. char *t;
  5865. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5866. *t++ = 0;
  5867. }
  5868. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5869. int x[] = {25, 17};
  5870. const int *foo = &x[0];
  5871. ++foo;
  5872. }
  5873. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5874. typedef const int *iptr;
  5875. iptr p = 0;
  5876. ++p;
  5877. }
  5878. { /* AIX XL C 1.02.0.0 rejects this saying
  5879. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5880. struct s { int j; const int *ap[3]; };
  5881. struct s *b; b->j = 5;
  5882. }
  5883. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5884. const int foo = 10;
  5885. }
  5886. #endif
  5887. ;
  5888. return 0;
  5889. }
  5890. _ACEOF
  5891. rm -f conftest.$ac_objext
  5892. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5893. (eval $ac_compile) 2>conftest.er1
  5894. ac_status=$?
  5895. grep -v '^ *+' conftest.er1 >conftest.err
  5896. rm -f conftest.er1
  5897. cat conftest.err >&5
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); } &&
  5900. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5902. (eval $ac_try) 2>&5
  5903. ac_status=$?
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); }; } &&
  5906. { ac_try='test -s conftest.$ac_objext'
  5907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5908. (eval $ac_try) 2>&5
  5909. ac_status=$?
  5910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5911. (exit $ac_status); }; }; then
  5912. ac_cv_c_const=yes
  5913. else
  5914. echo "$as_me: failed program was:" >&5
  5915. sed 's/^/| /' conftest.$ac_ext >&5
  5916. ac_cv_c_const=no
  5917. fi
  5918. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5919. fi
  5920. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5921. echo "${ECHO_T}$ac_cv_c_const" >&6
  5922. if test $ac_cv_c_const = no; then
  5923. cat >>confdefs.h <<\_ACEOF
  5924. #define const
  5925. _ACEOF
  5926. fi
  5927. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5928. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5929. if test "${ac_cv_c_bigendian+set}" = set; then
  5930. echo $ECHO_N "(cached) $ECHO_C" >&6
  5931. else
  5932. # See if sys/param.h defines the BYTE_ORDER macro.
  5933. cat >conftest.$ac_ext <<_ACEOF
  5934. /* confdefs.h. */
  5935. _ACEOF
  5936. cat confdefs.h >>conftest.$ac_ext
  5937. cat >>conftest.$ac_ext <<_ACEOF
  5938. /* end confdefs.h. */
  5939. #include <sys/types.h>
  5940. #include <sys/param.h>
  5941. int
  5942. main ()
  5943. {
  5944. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5945. bogus endian macros
  5946. #endif
  5947. ;
  5948. return 0;
  5949. }
  5950. _ACEOF
  5951. rm -f conftest.$ac_objext
  5952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5953. (eval $ac_compile) 2>conftest.er1
  5954. ac_status=$?
  5955. grep -v '^ *+' conftest.er1 >conftest.err
  5956. rm -f conftest.er1
  5957. cat conftest.err >&5
  5958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5959. (exit $ac_status); } &&
  5960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5962. (eval $ac_try) 2>&5
  5963. ac_status=$?
  5964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. (exit $ac_status); }; } &&
  5966. { ac_try='test -s conftest.$ac_objext'
  5967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. (eval $ac_try) 2>&5
  5969. ac_status=$?
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); }; }; then
  5972. # It does; now see whether it defined to BIG_ENDIAN or not.
  5973. cat >conftest.$ac_ext <<_ACEOF
  5974. /* confdefs.h. */
  5975. _ACEOF
  5976. cat confdefs.h >>conftest.$ac_ext
  5977. cat >>conftest.$ac_ext <<_ACEOF
  5978. /* end confdefs.h. */
  5979. #include <sys/types.h>
  5980. #include <sys/param.h>
  5981. int
  5982. main ()
  5983. {
  5984. #if BYTE_ORDER != BIG_ENDIAN
  5985. not big endian
  5986. #endif
  5987. ;
  5988. return 0;
  5989. }
  5990. _ACEOF
  5991. rm -f conftest.$ac_objext
  5992. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5993. (eval $ac_compile) 2>conftest.er1
  5994. ac_status=$?
  5995. grep -v '^ *+' conftest.er1 >conftest.err
  5996. rm -f conftest.er1
  5997. cat conftest.err >&5
  5998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5999. (exit $ac_status); } &&
  6000. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6002. (eval $ac_try) 2>&5
  6003. ac_status=$?
  6004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6005. (exit $ac_status); }; } &&
  6006. { ac_try='test -s conftest.$ac_objext'
  6007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6008. (eval $ac_try) 2>&5
  6009. ac_status=$?
  6010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6011. (exit $ac_status); }; }; then
  6012. ac_cv_c_bigendian=yes
  6013. else
  6014. echo "$as_me: failed program was:" >&5
  6015. sed 's/^/| /' conftest.$ac_ext >&5
  6016. ac_cv_c_bigendian=no
  6017. fi
  6018. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6019. else
  6020. echo "$as_me: failed program was:" >&5
  6021. sed 's/^/| /' conftest.$ac_ext >&5
  6022. # It does not; compile a test program.
  6023. if test "$cross_compiling" = yes; then
  6024. # try to guess the endianness by grepping values into an object file
  6025. ac_cv_c_bigendian=unknown
  6026. cat >conftest.$ac_ext <<_ACEOF
  6027. /* confdefs.h. */
  6028. _ACEOF
  6029. cat confdefs.h >>conftest.$ac_ext
  6030. cat >>conftest.$ac_ext <<_ACEOF
  6031. /* end confdefs.h. */
  6032. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6033. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6034. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6035. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6036. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6037. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6038. int
  6039. main ()
  6040. {
  6041. _ascii (); _ebcdic ();
  6042. ;
  6043. return 0;
  6044. }
  6045. _ACEOF
  6046. rm -f conftest.$ac_objext
  6047. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6048. (eval $ac_compile) 2>conftest.er1
  6049. ac_status=$?
  6050. grep -v '^ *+' conftest.er1 >conftest.err
  6051. rm -f conftest.er1
  6052. cat conftest.err >&5
  6053. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6054. (exit $ac_status); } &&
  6055. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6056. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6057. (eval $ac_try) 2>&5
  6058. ac_status=$?
  6059. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6060. (exit $ac_status); }; } &&
  6061. { ac_try='test -s conftest.$ac_objext'
  6062. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6063. (eval $ac_try) 2>&5
  6064. ac_status=$?
  6065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6066. (exit $ac_status); }; }; then
  6067. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6068. ac_cv_c_bigendian=yes
  6069. fi
  6070. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6071. if test "$ac_cv_c_bigendian" = unknown; then
  6072. ac_cv_c_bigendian=no
  6073. else
  6074. # finding both strings is unlikely to happen, but who knows?
  6075. ac_cv_c_bigendian=unknown
  6076. fi
  6077. fi
  6078. else
  6079. echo "$as_me: failed program was:" >&5
  6080. sed 's/^/| /' conftest.$ac_ext >&5
  6081. fi
  6082. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6083. else
  6084. cat >conftest.$ac_ext <<_ACEOF
  6085. /* confdefs.h. */
  6086. _ACEOF
  6087. cat confdefs.h >>conftest.$ac_ext
  6088. cat >>conftest.$ac_ext <<_ACEOF
  6089. /* end confdefs.h. */
  6090. int
  6091. main ()
  6092. {
  6093. /* Are we little or big endian? From Harbison&Steele. */
  6094. union
  6095. {
  6096. long l;
  6097. char c[sizeof (long)];
  6098. } u;
  6099. u.l = 1;
  6100. exit (u.c[sizeof (long) - 1] == 1);
  6101. }
  6102. _ACEOF
  6103. rm -f conftest$ac_exeext
  6104. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6105. (eval $ac_link) 2>&5
  6106. ac_status=$?
  6107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6108. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6110. (eval $ac_try) 2>&5
  6111. ac_status=$?
  6112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6113. (exit $ac_status); }; }; then
  6114. ac_cv_c_bigendian=no
  6115. else
  6116. echo "$as_me: program exited with status $ac_status" >&5
  6117. echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. ( exit $ac_status )
  6120. ac_cv_c_bigendian=yes
  6121. fi
  6122. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6123. fi
  6124. fi
  6125. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6126. fi
  6127. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6128. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6129. case $ac_cv_c_bigendian in
  6130. yes)
  6131. cat >>confdefs.h <<\_ACEOF
  6132. #define WORDS_BIGENDIAN 1
  6133. _ACEOF
  6134. ;;
  6135. no)
  6136. ;;
  6137. *)
  6138. { { echo "$as_me:$LINENO: error: unknown endianness
  6139. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6140. echo "$as_me: error: unknown endianness
  6141. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6142. { (exit 1); exit 1; }; } ;;
  6143. esac
  6144. echo "$as_me:$LINENO: checking for inline" >&5
  6145. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6146. if test "${ac_cv_c_inline+set}" = set; then
  6147. echo $ECHO_N "(cached) $ECHO_C" >&6
  6148. else
  6149. ac_cv_c_inline=no
  6150. for ac_kw in inline __inline__ __inline; do
  6151. cat >conftest.$ac_ext <<_ACEOF
  6152. /* confdefs.h. */
  6153. _ACEOF
  6154. cat confdefs.h >>conftest.$ac_ext
  6155. cat >>conftest.$ac_ext <<_ACEOF
  6156. /* end confdefs.h. */
  6157. #ifndef __cplusplus
  6158. typedef int foo_t;
  6159. static $ac_kw foo_t static_foo () {return 0; }
  6160. $ac_kw foo_t foo () {return 0; }
  6161. #endif
  6162. _ACEOF
  6163. rm -f conftest.$ac_objext
  6164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6165. (eval $ac_compile) 2>conftest.er1
  6166. ac_status=$?
  6167. grep -v '^ *+' conftest.er1 >conftest.err
  6168. rm -f conftest.er1
  6169. cat conftest.err >&5
  6170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6171. (exit $ac_status); } &&
  6172. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6174. (eval $ac_try) 2>&5
  6175. ac_status=$?
  6176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6177. (exit $ac_status); }; } &&
  6178. { ac_try='test -s conftest.$ac_objext'
  6179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6180. (eval $ac_try) 2>&5
  6181. ac_status=$?
  6182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6183. (exit $ac_status); }; }; then
  6184. ac_cv_c_inline=$ac_kw; break
  6185. else
  6186. echo "$as_me: failed program was:" >&5
  6187. sed 's/^/| /' conftest.$ac_ext >&5
  6188. fi
  6189. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6190. done
  6191. fi
  6192. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6193. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6194. case $ac_cv_c_inline in
  6195. inline | yes) ;;
  6196. *)
  6197. case $ac_cv_c_inline in
  6198. no) ac_val=;;
  6199. *) ac_val=$ac_cv_c_inline;;
  6200. esac
  6201. cat >>confdefs.h <<_ACEOF
  6202. #ifndef __cplusplus
  6203. #define inline $ac_val
  6204. #endif
  6205. _ACEOF
  6206. ;;
  6207. esac
  6208. echo "$as_me:$LINENO: checking for long" >&5
  6209. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6210. if test "${ac_cv_type_long+set}" = set; then
  6211. echo $ECHO_N "(cached) $ECHO_C" >&6
  6212. else
  6213. cat >conftest.$ac_ext <<_ACEOF
  6214. /* confdefs.h. */
  6215. _ACEOF
  6216. cat confdefs.h >>conftest.$ac_ext
  6217. cat >>conftest.$ac_ext <<_ACEOF
  6218. /* end confdefs.h. */
  6219. $ac_includes_default
  6220. int
  6221. main ()
  6222. {
  6223. if ((long *) 0)
  6224. return 0;
  6225. if (sizeof (long))
  6226. return 0;
  6227. ;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. rm -f conftest.$ac_objext
  6232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6233. (eval $ac_compile) 2>conftest.er1
  6234. ac_status=$?
  6235. grep -v '^ *+' conftest.er1 >conftest.err
  6236. rm -f conftest.er1
  6237. cat conftest.err >&5
  6238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6239. (exit $ac_status); } &&
  6240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6242. (eval $ac_try) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); }; } &&
  6246. { ac_try='test -s conftest.$ac_objext'
  6247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6248. (eval $ac_try) 2>&5
  6249. ac_status=$?
  6250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6251. (exit $ac_status); }; }; then
  6252. ac_cv_type_long=yes
  6253. else
  6254. echo "$as_me: failed program was:" >&5
  6255. sed 's/^/| /' conftest.$ac_ext >&5
  6256. ac_cv_type_long=no
  6257. fi
  6258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6259. fi
  6260. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6261. echo "${ECHO_T}$ac_cv_type_long" >&6
  6262. echo "$as_me:$LINENO: checking size of long" >&5
  6263. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6264. if test "${ac_cv_sizeof_long+set}" = set; then
  6265. echo $ECHO_N "(cached) $ECHO_C" >&6
  6266. else
  6267. if test "$ac_cv_type_long" = yes; then
  6268. # The cast to unsigned long works around a bug in the HP C Compiler
  6269. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6270. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6271. # This bug is HP SR number 8606223364.
  6272. if test "$cross_compiling" = yes; then
  6273. # Depending upon the size, compute the lo and hi bounds.
  6274. cat >conftest.$ac_ext <<_ACEOF
  6275. /* confdefs.h. */
  6276. _ACEOF
  6277. cat confdefs.h >>conftest.$ac_ext
  6278. cat >>conftest.$ac_ext <<_ACEOF
  6279. /* end confdefs.h. */
  6280. $ac_includes_default
  6281. int
  6282. main ()
  6283. {
  6284. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6285. test_array [0] = 0
  6286. ;
  6287. return 0;
  6288. }
  6289. _ACEOF
  6290. rm -f conftest.$ac_objext
  6291. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6292. (eval $ac_compile) 2>conftest.er1
  6293. ac_status=$?
  6294. grep -v '^ *+' conftest.er1 >conftest.err
  6295. rm -f conftest.er1
  6296. cat conftest.err >&5
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); } &&
  6299. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6301. (eval $ac_try) 2>&5
  6302. ac_status=$?
  6303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6304. (exit $ac_status); }; } &&
  6305. { ac_try='test -s conftest.$ac_objext'
  6306. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6307. (eval $ac_try) 2>&5
  6308. ac_status=$?
  6309. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6310. (exit $ac_status); }; }; then
  6311. ac_lo=0 ac_mid=0
  6312. while :; do
  6313. cat >conftest.$ac_ext <<_ACEOF
  6314. /* confdefs.h. */
  6315. _ACEOF
  6316. cat confdefs.h >>conftest.$ac_ext
  6317. cat >>conftest.$ac_ext <<_ACEOF
  6318. /* end confdefs.h. */
  6319. $ac_includes_default
  6320. int
  6321. main ()
  6322. {
  6323. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6324. test_array [0] = 0
  6325. ;
  6326. return 0;
  6327. }
  6328. _ACEOF
  6329. rm -f conftest.$ac_objext
  6330. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6331. (eval $ac_compile) 2>conftest.er1
  6332. ac_status=$?
  6333. grep -v '^ *+' conftest.er1 >conftest.err
  6334. rm -f conftest.er1
  6335. cat conftest.err >&5
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); } &&
  6338. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6340. (eval $ac_try) 2>&5
  6341. ac_status=$?
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); }; } &&
  6344. { ac_try='test -s conftest.$ac_objext'
  6345. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6346. (eval $ac_try) 2>&5
  6347. ac_status=$?
  6348. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6349. (exit $ac_status); }; }; then
  6350. ac_hi=$ac_mid; break
  6351. else
  6352. echo "$as_me: failed program was:" >&5
  6353. sed 's/^/| /' conftest.$ac_ext >&5
  6354. ac_lo=`expr $ac_mid + 1`
  6355. if test $ac_lo -le $ac_mid; then
  6356. ac_lo= ac_hi=
  6357. break
  6358. fi
  6359. ac_mid=`expr 2 '*' $ac_mid + 1`
  6360. fi
  6361. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6362. done
  6363. else
  6364. echo "$as_me: failed program was:" >&5
  6365. sed 's/^/| /' conftest.$ac_ext >&5
  6366. cat >conftest.$ac_ext <<_ACEOF
  6367. /* confdefs.h. */
  6368. _ACEOF
  6369. cat confdefs.h >>conftest.$ac_ext
  6370. cat >>conftest.$ac_ext <<_ACEOF
  6371. /* end confdefs.h. */
  6372. $ac_includes_default
  6373. int
  6374. main ()
  6375. {
  6376. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6377. test_array [0] = 0
  6378. ;
  6379. return 0;
  6380. }
  6381. _ACEOF
  6382. rm -f conftest.$ac_objext
  6383. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6384. (eval $ac_compile) 2>conftest.er1
  6385. ac_status=$?
  6386. grep -v '^ *+' conftest.er1 >conftest.err
  6387. rm -f conftest.er1
  6388. cat conftest.err >&5
  6389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6390. (exit $ac_status); } &&
  6391. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6393. (eval $ac_try) 2>&5
  6394. ac_status=$?
  6395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6396. (exit $ac_status); }; } &&
  6397. { ac_try='test -s conftest.$ac_objext'
  6398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6399. (eval $ac_try) 2>&5
  6400. ac_status=$?
  6401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6402. (exit $ac_status); }; }; then
  6403. ac_hi=-1 ac_mid=-1
  6404. while :; do
  6405. cat >conftest.$ac_ext <<_ACEOF
  6406. /* confdefs.h. */
  6407. _ACEOF
  6408. cat confdefs.h >>conftest.$ac_ext
  6409. cat >>conftest.$ac_ext <<_ACEOF
  6410. /* end confdefs.h. */
  6411. $ac_includes_default
  6412. int
  6413. main ()
  6414. {
  6415. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6416. test_array [0] = 0
  6417. ;
  6418. return 0;
  6419. }
  6420. _ACEOF
  6421. rm -f conftest.$ac_objext
  6422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6423. (eval $ac_compile) 2>conftest.er1
  6424. ac_status=$?
  6425. grep -v '^ *+' conftest.er1 >conftest.err
  6426. rm -f conftest.er1
  6427. cat conftest.err >&5
  6428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6429. (exit $ac_status); } &&
  6430. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6432. (eval $ac_try) 2>&5
  6433. ac_status=$?
  6434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6435. (exit $ac_status); }; } &&
  6436. { ac_try='test -s conftest.$ac_objext'
  6437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6438. (eval $ac_try) 2>&5
  6439. ac_status=$?
  6440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6441. (exit $ac_status); }; }; then
  6442. ac_lo=$ac_mid; break
  6443. else
  6444. echo "$as_me: failed program was:" >&5
  6445. sed 's/^/| /' conftest.$ac_ext >&5
  6446. ac_hi=`expr '(' $ac_mid ')' - 1`
  6447. if test $ac_mid -le $ac_hi; then
  6448. ac_lo= ac_hi=
  6449. break
  6450. fi
  6451. ac_mid=`expr 2 '*' $ac_mid`
  6452. fi
  6453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6454. done
  6455. else
  6456. echo "$as_me: failed program was:" >&5
  6457. sed 's/^/| /' conftest.$ac_ext >&5
  6458. ac_lo= ac_hi=
  6459. fi
  6460. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6461. fi
  6462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6463. # Binary search between lo and hi bounds.
  6464. while test "x$ac_lo" != "x$ac_hi"; do
  6465. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6466. cat >conftest.$ac_ext <<_ACEOF
  6467. /* confdefs.h. */
  6468. _ACEOF
  6469. cat confdefs.h >>conftest.$ac_ext
  6470. cat >>conftest.$ac_ext <<_ACEOF
  6471. /* end confdefs.h. */
  6472. $ac_includes_default
  6473. int
  6474. main ()
  6475. {
  6476. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6477. test_array [0] = 0
  6478. ;
  6479. return 0;
  6480. }
  6481. _ACEOF
  6482. rm -f conftest.$ac_objext
  6483. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6484. (eval $ac_compile) 2>conftest.er1
  6485. ac_status=$?
  6486. grep -v '^ *+' conftest.er1 >conftest.err
  6487. rm -f conftest.er1
  6488. cat conftest.err >&5
  6489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6490. (exit $ac_status); } &&
  6491. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6493. (eval $ac_try) 2>&5
  6494. ac_status=$?
  6495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6496. (exit $ac_status); }; } &&
  6497. { ac_try='test -s conftest.$ac_objext'
  6498. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6499. (eval $ac_try) 2>&5
  6500. ac_status=$?
  6501. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6502. (exit $ac_status); }; }; then
  6503. ac_hi=$ac_mid
  6504. else
  6505. echo "$as_me: failed program was:" >&5
  6506. sed 's/^/| /' conftest.$ac_ext >&5
  6507. ac_lo=`expr '(' $ac_mid ')' + 1`
  6508. fi
  6509. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6510. done
  6511. case $ac_lo in
  6512. ?*) ac_cv_sizeof_long=$ac_lo;;
  6513. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6514. See \`config.log' for more details." >&5
  6515. echo "$as_me: error: cannot compute sizeof (long), 77
  6516. See \`config.log' for more details." >&2;}
  6517. { (exit 1); exit 1; }; } ;;
  6518. esac
  6519. else
  6520. if test "$cross_compiling" = yes; then
  6521. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6522. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6523. { (exit 1); exit 1; }; }
  6524. else
  6525. cat >conftest.$ac_ext <<_ACEOF
  6526. /* confdefs.h. */
  6527. _ACEOF
  6528. cat confdefs.h >>conftest.$ac_ext
  6529. cat >>conftest.$ac_ext <<_ACEOF
  6530. /* end confdefs.h. */
  6531. $ac_includes_default
  6532. long longval () { return (long) (sizeof (long)); }
  6533. unsigned long ulongval () { return (long) (sizeof (long)); }
  6534. #include <stdio.h>
  6535. #include <stdlib.h>
  6536. int
  6537. main ()
  6538. {
  6539. FILE *f = fopen ("conftest.val", "w");
  6540. if (! f)
  6541. exit (1);
  6542. if (((long) (sizeof (long))) < 0)
  6543. {
  6544. long i = longval ();
  6545. if (i != ((long) (sizeof (long))))
  6546. exit (1);
  6547. fprintf (f, "%ld\n", i);
  6548. }
  6549. else
  6550. {
  6551. unsigned long i = ulongval ();
  6552. if (i != ((long) (sizeof (long))))
  6553. exit (1);
  6554. fprintf (f, "%lu\n", i);
  6555. }
  6556. exit (ferror (f) || fclose (f) != 0);
  6557. ;
  6558. return 0;
  6559. }
  6560. _ACEOF
  6561. rm -f conftest$ac_exeext
  6562. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6563. (eval $ac_link) 2>&5
  6564. ac_status=$?
  6565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6566. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6567. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6568. (eval $ac_try) 2>&5
  6569. ac_status=$?
  6570. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6571. (exit $ac_status); }; }; then
  6572. ac_cv_sizeof_long=`cat conftest.val`
  6573. else
  6574. echo "$as_me: program exited with status $ac_status" >&5
  6575. echo "$as_me: failed program was:" >&5
  6576. sed 's/^/| /' conftest.$ac_ext >&5
  6577. ( exit $ac_status )
  6578. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6579. See \`config.log' for more details." >&5
  6580. echo "$as_me: error: cannot compute sizeof (long), 77
  6581. See \`config.log' for more details." >&2;}
  6582. { (exit 1); exit 1; }; }
  6583. fi
  6584. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6585. fi
  6586. fi
  6587. rm -f conftest.val
  6588. else
  6589. ac_cv_sizeof_long=0
  6590. fi
  6591. fi
  6592. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6593. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6594. cat >>confdefs.h <<_ACEOF
  6595. #define SIZEOF_LONG $ac_cv_sizeof_long
  6596. _ACEOF
  6597. echo "$as_me:$LINENO: checking for int" >&5
  6598. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6599. if test "${ac_cv_type_int+set}" = set; then
  6600. echo $ECHO_N "(cached) $ECHO_C" >&6
  6601. else
  6602. cat >conftest.$ac_ext <<_ACEOF
  6603. /* confdefs.h. */
  6604. _ACEOF
  6605. cat confdefs.h >>conftest.$ac_ext
  6606. cat >>conftest.$ac_ext <<_ACEOF
  6607. /* end confdefs.h. */
  6608. $ac_includes_default
  6609. int
  6610. main ()
  6611. {
  6612. if ((int *) 0)
  6613. return 0;
  6614. if (sizeof (int))
  6615. return 0;
  6616. ;
  6617. return 0;
  6618. }
  6619. _ACEOF
  6620. rm -f conftest.$ac_objext
  6621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6622. (eval $ac_compile) 2>conftest.er1
  6623. ac_status=$?
  6624. grep -v '^ *+' conftest.er1 >conftest.err
  6625. rm -f conftest.er1
  6626. cat conftest.err >&5
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } &&
  6629. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; } &&
  6635. { ac_try='test -s conftest.$ac_objext'
  6636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6637. (eval $ac_try) 2>&5
  6638. ac_status=$?
  6639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640. (exit $ac_status); }; }; then
  6641. ac_cv_type_int=yes
  6642. else
  6643. echo "$as_me: failed program was:" >&5
  6644. sed 's/^/| /' conftest.$ac_ext >&5
  6645. ac_cv_type_int=no
  6646. fi
  6647. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6648. fi
  6649. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6650. echo "${ECHO_T}$ac_cv_type_int" >&6
  6651. echo "$as_me:$LINENO: checking size of int" >&5
  6652. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6653. if test "${ac_cv_sizeof_int+set}" = set; then
  6654. echo $ECHO_N "(cached) $ECHO_C" >&6
  6655. else
  6656. if test "$ac_cv_type_int" = yes; then
  6657. # The cast to unsigned long works around a bug in the HP C Compiler
  6658. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6659. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6660. # This bug is HP SR number 8606223364.
  6661. if test "$cross_compiling" = yes; then
  6662. # Depending upon the size, compute the lo and hi bounds.
  6663. cat >conftest.$ac_ext <<_ACEOF
  6664. /* confdefs.h. */
  6665. _ACEOF
  6666. cat confdefs.h >>conftest.$ac_ext
  6667. cat >>conftest.$ac_ext <<_ACEOF
  6668. /* end confdefs.h. */
  6669. $ac_includes_default
  6670. int
  6671. main ()
  6672. {
  6673. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6674. test_array [0] = 0
  6675. ;
  6676. return 0;
  6677. }
  6678. _ACEOF
  6679. rm -f conftest.$ac_objext
  6680. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6681. (eval $ac_compile) 2>conftest.er1
  6682. ac_status=$?
  6683. grep -v '^ *+' conftest.er1 >conftest.err
  6684. rm -f conftest.er1
  6685. cat conftest.err >&5
  6686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6687. (exit $ac_status); } &&
  6688. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6690. (eval $ac_try) 2>&5
  6691. ac_status=$?
  6692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); }; } &&
  6694. { ac_try='test -s conftest.$ac_objext'
  6695. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6696. (eval $ac_try) 2>&5
  6697. ac_status=$?
  6698. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6699. (exit $ac_status); }; }; then
  6700. ac_lo=0 ac_mid=0
  6701. while :; do
  6702. cat >conftest.$ac_ext <<_ACEOF
  6703. /* confdefs.h. */
  6704. _ACEOF
  6705. cat confdefs.h >>conftest.$ac_ext
  6706. cat >>conftest.$ac_ext <<_ACEOF
  6707. /* end confdefs.h. */
  6708. $ac_includes_default
  6709. int
  6710. main ()
  6711. {
  6712. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6713. test_array [0] = 0
  6714. ;
  6715. return 0;
  6716. }
  6717. _ACEOF
  6718. rm -f conftest.$ac_objext
  6719. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6720. (eval $ac_compile) 2>conftest.er1
  6721. ac_status=$?
  6722. grep -v '^ *+' conftest.er1 >conftest.err
  6723. rm -f conftest.er1
  6724. cat conftest.err >&5
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. (exit $ac_status); } &&
  6727. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6729. (eval $ac_try) 2>&5
  6730. ac_status=$?
  6731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6732. (exit $ac_status); }; } &&
  6733. { ac_try='test -s conftest.$ac_objext'
  6734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6735. (eval $ac_try) 2>&5
  6736. ac_status=$?
  6737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6738. (exit $ac_status); }; }; then
  6739. ac_hi=$ac_mid; break
  6740. else
  6741. echo "$as_me: failed program was:" >&5
  6742. sed 's/^/| /' conftest.$ac_ext >&5
  6743. ac_lo=`expr $ac_mid + 1`
  6744. if test $ac_lo -le $ac_mid; then
  6745. ac_lo= ac_hi=
  6746. break
  6747. fi
  6748. ac_mid=`expr 2 '*' $ac_mid + 1`
  6749. fi
  6750. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6751. done
  6752. else
  6753. echo "$as_me: failed program was:" >&5
  6754. sed 's/^/| /' conftest.$ac_ext >&5
  6755. cat >conftest.$ac_ext <<_ACEOF
  6756. /* confdefs.h. */
  6757. _ACEOF
  6758. cat confdefs.h >>conftest.$ac_ext
  6759. cat >>conftest.$ac_ext <<_ACEOF
  6760. /* end confdefs.h. */
  6761. $ac_includes_default
  6762. int
  6763. main ()
  6764. {
  6765. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6766. test_array [0] = 0
  6767. ;
  6768. return 0;
  6769. }
  6770. _ACEOF
  6771. rm -f conftest.$ac_objext
  6772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6773. (eval $ac_compile) 2>conftest.er1
  6774. ac_status=$?
  6775. grep -v '^ *+' conftest.er1 >conftest.err
  6776. rm -f conftest.er1
  6777. cat conftest.err >&5
  6778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6779. (exit $ac_status); } &&
  6780. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6782. (eval $ac_try) 2>&5
  6783. ac_status=$?
  6784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6785. (exit $ac_status); }; } &&
  6786. { ac_try='test -s conftest.$ac_objext'
  6787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6788. (eval $ac_try) 2>&5
  6789. ac_status=$?
  6790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6791. (exit $ac_status); }; }; then
  6792. ac_hi=-1 ac_mid=-1
  6793. while :; do
  6794. cat >conftest.$ac_ext <<_ACEOF
  6795. /* confdefs.h. */
  6796. _ACEOF
  6797. cat confdefs.h >>conftest.$ac_ext
  6798. cat >>conftest.$ac_ext <<_ACEOF
  6799. /* end confdefs.h. */
  6800. $ac_includes_default
  6801. int
  6802. main ()
  6803. {
  6804. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6805. test_array [0] = 0
  6806. ;
  6807. return 0;
  6808. }
  6809. _ACEOF
  6810. rm -f conftest.$ac_objext
  6811. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6812. (eval $ac_compile) 2>conftest.er1
  6813. ac_status=$?
  6814. grep -v '^ *+' conftest.er1 >conftest.err
  6815. rm -f conftest.er1
  6816. cat conftest.err >&5
  6817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6818. (exit $ac_status); } &&
  6819. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6821. (eval $ac_try) 2>&5
  6822. ac_status=$?
  6823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6824. (exit $ac_status); }; } &&
  6825. { ac_try='test -s conftest.$ac_objext'
  6826. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6827. (eval $ac_try) 2>&5
  6828. ac_status=$?
  6829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6830. (exit $ac_status); }; }; then
  6831. ac_lo=$ac_mid; break
  6832. else
  6833. echo "$as_me: failed program was:" >&5
  6834. sed 's/^/| /' conftest.$ac_ext >&5
  6835. ac_hi=`expr '(' $ac_mid ')' - 1`
  6836. if test $ac_mid -le $ac_hi; then
  6837. ac_lo= ac_hi=
  6838. break
  6839. fi
  6840. ac_mid=`expr 2 '*' $ac_mid`
  6841. fi
  6842. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6843. done
  6844. else
  6845. echo "$as_me: failed program was:" >&5
  6846. sed 's/^/| /' conftest.$ac_ext >&5
  6847. ac_lo= ac_hi=
  6848. fi
  6849. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6850. fi
  6851. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6852. # Binary search between lo and hi bounds.
  6853. while test "x$ac_lo" != "x$ac_hi"; do
  6854. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6855. cat >conftest.$ac_ext <<_ACEOF
  6856. /* confdefs.h. */
  6857. _ACEOF
  6858. cat confdefs.h >>conftest.$ac_ext
  6859. cat >>conftest.$ac_ext <<_ACEOF
  6860. /* end confdefs.h. */
  6861. $ac_includes_default
  6862. int
  6863. main ()
  6864. {
  6865. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6866. test_array [0] = 0
  6867. ;
  6868. return 0;
  6869. }
  6870. _ACEOF
  6871. rm -f conftest.$ac_objext
  6872. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6873. (eval $ac_compile) 2>conftest.er1
  6874. ac_status=$?
  6875. grep -v '^ *+' conftest.er1 >conftest.err
  6876. rm -f conftest.er1
  6877. cat conftest.err >&5
  6878. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6879. (exit $ac_status); } &&
  6880. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6882. (eval $ac_try) 2>&5
  6883. ac_status=$?
  6884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6885. (exit $ac_status); }; } &&
  6886. { ac_try='test -s conftest.$ac_objext'
  6887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6888. (eval $ac_try) 2>&5
  6889. ac_status=$?
  6890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6891. (exit $ac_status); }; }; then
  6892. ac_hi=$ac_mid
  6893. else
  6894. echo "$as_me: failed program was:" >&5
  6895. sed 's/^/| /' conftest.$ac_ext >&5
  6896. ac_lo=`expr '(' $ac_mid ')' + 1`
  6897. fi
  6898. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6899. done
  6900. case $ac_lo in
  6901. ?*) ac_cv_sizeof_int=$ac_lo;;
  6902. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6903. See \`config.log' for more details." >&5
  6904. echo "$as_me: error: cannot compute sizeof (int), 77
  6905. See \`config.log' for more details." >&2;}
  6906. { (exit 1); exit 1; }; } ;;
  6907. esac
  6908. else
  6909. if test "$cross_compiling" = yes; then
  6910. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6911. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6912. { (exit 1); exit 1; }; }
  6913. else
  6914. cat >conftest.$ac_ext <<_ACEOF
  6915. /* confdefs.h. */
  6916. _ACEOF
  6917. cat confdefs.h >>conftest.$ac_ext
  6918. cat >>conftest.$ac_ext <<_ACEOF
  6919. /* end confdefs.h. */
  6920. $ac_includes_default
  6921. long longval () { return (long) (sizeof (int)); }
  6922. unsigned long ulongval () { return (long) (sizeof (int)); }
  6923. #include <stdio.h>
  6924. #include <stdlib.h>
  6925. int
  6926. main ()
  6927. {
  6928. FILE *f = fopen ("conftest.val", "w");
  6929. if (! f)
  6930. exit (1);
  6931. if (((long) (sizeof (int))) < 0)
  6932. {
  6933. long i = longval ();
  6934. if (i != ((long) (sizeof (int))))
  6935. exit (1);
  6936. fprintf (f, "%ld\n", i);
  6937. }
  6938. else
  6939. {
  6940. unsigned long i = ulongval ();
  6941. if (i != ((long) (sizeof (int))))
  6942. exit (1);
  6943. fprintf (f, "%lu\n", i);
  6944. }
  6945. exit (ferror (f) || fclose (f) != 0);
  6946. ;
  6947. return 0;
  6948. }
  6949. _ACEOF
  6950. rm -f conftest$ac_exeext
  6951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6952. (eval $ac_link) 2>&5
  6953. ac_status=$?
  6954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6955. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6956. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6957. (eval $ac_try) 2>&5
  6958. ac_status=$?
  6959. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6960. (exit $ac_status); }; }; then
  6961. ac_cv_sizeof_int=`cat conftest.val`
  6962. else
  6963. echo "$as_me: program exited with status $ac_status" >&5
  6964. echo "$as_me: failed program was:" >&5
  6965. sed 's/^/| /' conftest.$ac_ext >&5
  6966. ( exit $ac_status )
  6967. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6968. See \`config.log' for more details." >&5
  6969. echo "$as_me: error: cannot compute sizeof (int), 77
  6970. See \`config.log' for more details." >&2;}
  6971. { (exit 1); exit 1; }; }
  6972. fi
  6973. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6974. fi
  6975. fi
  6976. rm -f conftest.val
  6977. else
  6978. ac_cv_sizeof_int=0
  6979. fi
  6980. fi
  6981. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6982. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6983. cat >>confdefs.h <<_ACEOF
  6984. #define SIZEOF_INT $ac_cv_sizeof_int
  6985. _ACEOF
  6986. #checkpoint
  6987. cat >confcache <<\_ACEOF
  6988. # This file is a shell script that caches the results of configure
  6989. # tests run on this system so they can be shared between configure
  6990. # scripts and configure runs, see configure's option --config-cache.
  6991. # It is not useful on other systems. If it contains results you don't
  6992. # want to keep, you may remove or edit it.
  6993. #
  6994. # config.status only pays attention to the cache file if you give it
  6995. # the --recheck option to rerun configure.
  6996. #
  6997. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6998. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6999. # following values.
  7000. _ACEOF
  7001. # The following way of writing the cache mishandles newlines in values,
  7002. # but we know of no workaround that is simple, portable, and efficient.
  7003. # So, don't put newlines in cache variables' values.
  7004. # Ultrix sh set writes to stderr and can't be redirected directly,
  7005. # and sets the high bit in the cache file unless we assign to the vars.
  7006. {
  7007. (set) 2>&1 |
  7008. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7009. *ac_space=\ *)
  7010. # `set' does not quote correctly, so add quotes (double-quote
  7011. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7012. sed -n \
  7013. "s/'/'\\\\''/g;
  7014. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7015. ;;
  7016. *)
  7017. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7018. sed -n \
  7019. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7020. ;;
  7021. esac;
  7022. } |
  7023. sed '
  7024. t clear
  7025. : clear
  7026. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7027. t end
  7028. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7029. : end' >>confcache
  7030. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7031. if test -w $cache_file; then
  7032. test "x$cache_file" != "x/dev/null"
  7033. cat confcache >$cache_file
  7034. else
  7035. echo "not updating unwritable cache $cache_file"
  7036. fi
  7037. fi
  7038. rm -f confcache
  7039. echo "$as_me:$LINENO: checking for working volatile" >&5
  7040. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7041. if test "${ac_cv_c_volatile+set}" = set; then
  7042. echo $ECHO_N "(cached) $ECHO_C" >&6
  7043. else
  7044. cat >conftest.$ac_ext <<_ACEOF
  7045. /* confdefs.h. */
  7046. _ACEOF
  7047. cat confdefs.h >>conftest.$ac_ext
  7048. cat >>conftest.$ac_ext <<_ACEOF
  7049. /* end confdefs.h. */
  7050. int
  7051. main ()
  7052. {
  7053. volatile int x;
  7054. int * volatile y;
  7055. ;
  7056. return 0;
  7057. }
  7058. _ACEOF
  7059. rm -f conftest.$ac_objext
  7060. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7061. (eval $ac_compile) 2>conftest.er1
  7062. ac_status=$?
  7063. grep -v '^ *+' conftest.er1 >conftest.err
  7064. rm -f conftest.er1
  7065. cat conftest.err >&5
  7066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7067. (exit $ac_status); } &&
  7068. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7070. (eval $ac_try) 2>&5
  7071. ac_status=$?
  7072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); }; } &&
  7074. { ac_try='test -s conftest.$ac_objext'
  7075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7076. (eval $ac_try) 2>&5
  7077. ac_status=$?
  7078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7079. (exit $ac_status); }; }; then
  7080. ac_cv_c_volatile=yes
  7081. else
  7082. echo "$as_me: failed program was:" >&5
  7083. sed 's/^/| /' conftest.$ac_ext >&5
  7084. ac_cv_c_volatile=no
  7085. fi
  7086. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7087. fi
  7088. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7089. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7090. if test $ac_cv_c_volatile = no; then
  7091. cat >>confdefs.h <<\_ACEOF
  7092. #define volatile
  7093. _ACEOF
  7094. fi
  7095. if test $ac_cv_c_compiler_gnu = yes; then
  7096. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7097. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7098. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7099. echo $ECHO_N "(cached) $ECHO_C" >&6
  7100. else
  7101. ac_pattern="Autoconf.*'x'"
  7102. cat >conftest.$ac_ext <<_ACEOF
  7103. /* confdefs.h. */
  7104. _ACEOF
  7105. cat confdefs.h >>conftest.$ac_ext
  7106. cat >>conftest.$ac_ext <<_ACEOF
  7107. /* end confdefs.h. */
  7108. #include <sgtty.h>
  7109. Autoconf TIOCGETP
  7110. _ACEOF
  7111. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7112. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7113. ac_cv_prog_gcc_traditional=yes
  7114. else
  7115. ac_cv_prog_gcc_traditional=no
  7116. fi
  7117. rm -f conftest*
  7118. if test $ac_cv_prog_gcc_traditional = no; then
  7119. cat >conftest.$ac_ext <<_ACEOF
  7120. /* confdefs.h. */
  7121. _ACEOF
  7122. cat confdefs.h >>conftest.$ac_ext
  7123. cat >>conftest.$ac_ext <<_ACEOF
  7124. /* end confdefs.h. */
  7125. #include <termio.h>
  7126. Autoconf TCGETA
  7127. _ACEOF
  7128. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7129. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7130. ac_cv_prog_gcc_traditional=yes
  7131. fi
  7132. rm -f conftest*
  7133. fi
  7134. fi
  7135. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7136. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7137. if test $ac_cv_prog_gcc_traditional = yes; then
  7138. CC="$CC -traditional"
  7139. fi
  7140. fi
  7141. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7142. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7143. if test "${ac_cv_struct_tm+set}" = set; then
  7144. echo $ECHO_N "(cached) $ECHO_C" >&6
  7145. else
  7146. cat >conftest.$ac_ext <<_ACEOF
  7147. /* confdefs.h. */
  7148. _ACEOF
  7149. cat confdefs.h >>conftest.$ac_ext
  7150. cat >>conftest.$ac_ext <<_ACEOF
  7151. /* end confdefs.h. */
  7152. #include <sys/types.h>
  7153. #include <time.h>
  7154. int
  7155. main ()
  7156. {
  7157. struct tm *tp; tp->tm_sec;
  7158. ;
  7159. return 0;
  7160. }
  7161. _ACEOF
  7162. rm -f conftest.$ac_objext
  7163. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7164. (eval $ac_compile) 2>conftest.er1
  7165. ac_status=$?
  7166. grep -v '^ *+' conftest.er1 >conftest.err
  7167. rm -f conftest.er1
  7168. cat conftest.err >&5
  7169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7170. (exit $ac_status); } &&
  7171. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7173. (eval $ac_try) 2>&5
  7174. ac_status=$?
  7175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7176. (exit $ac_status); }; } &&
  7177. { ac_try='test -s conftest.$ac_objext'
  7178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7179. (eval $ac_try) 2>&5
  7180. ac_status=$?
  7181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7182. (exit $ac_status); }; }; then
  7183. ac_cv_struct_tm=time.h
  7184. else
  7185. echo "$as_me: failed program was:" >&5
  7186. sed 's/^/| /' conftest.$ac_ext >&5
  7187. ac_cv_struct_tm=sys/time.h
  7188. fi
  7189. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7190. fi
  7191. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7192. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7193. if test $ac_cv_struct_tm = sys/time.h; then
  7194. cat >>confdefs.h <<\_ACEOF
  7195. #define TM_IN_SYS_TIME 1
  7196. _ACEOF
  7197. fi
  7198. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7199. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7200. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7201. echo $ECHO_N "(cached) $ECHO_C" >&6
  7202. else
  7203. cat >conftest.$ac_ext <<_ACEOF
  7204. /* confdefs.h. */
  7205. _ACEOF
  7206. cat confdefs.h >>conftest.$ac_ext
  7207. cat >>conftest.$ac_ext <<_ACEOF
  7208. /* end confdefs.h. */
  7209. #include <sys/types.h>
  7210. #include <$ac_cv_struct_tm>
  7211. int
  7212. main ()
  7213. {
  7214. static struct tm ac_aggr;
  7215. if (ac_aggr.tm_zone)
  7216. return 0;
  7217. ;
  7218. return 0;
  7219. }
  7220. _ACEOF
  7221. rm -f conftest.$ac_objext
  7222. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7223. (eval $ac_compile) 2>conftest.er1
  7224. ac_status=$?
  7225. grep -v '^ *+' conftest.er1 >conftest.err
  7226. rm -f conftest.er1
  7227. cat conftest.err >&5
  7228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7229. (exit $ac_status); } &&
  7230. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7232. (eval $ac_try) 2>&5
  7233. ac_status=$?
  7234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7235. (exit $ac_status); }; } &&
  7236. { ac_try='test -s conftest.$ac_objext'
  7237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7238. (eval $ac_try) 2>&5
  7239. ac_status=$?
  7240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7241. (exit $ac_status); }; }; then
  7242. ac_cv_member_struct_tm_tm_zone=yes
  7243. else
  7244. echo "$as_me: failed program was:" >&5
  7245. sed 's/^/| /' conftest.$ac_ext >&5
  7246. cat >conftest.$ac_ext <<_ACEOF
  7247. /* confdefs.h. */
  7248. _ACEOF
  7249. cat confdefs.h >>conftest.$ac_ext
  7250. cat >>conftest.$ac_ext <<_ACEOF
  7251. /* end confdefs.h. */
  7252. #include <sys/types.h>
  7253. #include <$ac_cv_struct_tm>
  7254. int
  7255. main ()
  7256. {
  7257. static struct tm ac_aggr;
  7258. if (sizeof ac_aggr.tm_zone)
  7259. return 0;
  7260. ;
  7261. return 0;
  7262. }
  7263. _ACEOF
  7264. rm -f conftest.$ac_objext
  7265. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7266. (eval $ac_compile) 2>conftest.er1
  7267. ac_status=$?
  7268. grep -v '^ *+' conftest.er1 >conftest.err
  7269. rm -f conftest.er1
  7270. cat conftest.err >&5
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); } &&
  7273. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); }; } &&
  7279. { ac_try='test -s conftest.$ac_objext'
  7280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7281. (eval $ac_try) 2>&5
  7282. ac_status=$?
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. (exit $ac_status); }; }; then
  7285. ac_cv_member_struct_tm_tm_zone=yes
  7286. else
  7287. echo "$as_me: failed program was:" >&5
  7288. sed 's/^/| /' conftest.$ac_ext >&5
  7289. ac_cv_member_struct_tm_tm_zone=no
  7290. fi
  7291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7292. fi
  7293. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7294. fi
  7295. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7296. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7297. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7298. cat >>confdefs.h <<_ACEOF
  7299. #define HAVE_STRUCT_TM_TM_ZONE 1
  7300. _ACEOF
  7301. fi
  7302. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7303. cat >>confdefs.h <<\_ACEOF
  7304. #define HAVE_TM_ZONE 1
  7305. _ACEOF
  7306. else
  7307. echo "$as_me:$LINENO: checking for tzname" >&5
  7308. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7309. if test "${ac_cv_var_tzname+set}" = set; then
  7310. echo $ECHO_N "(cached) $ECHO_C" >&6
  7311. else
  7312. cat >conftest.$ac_ext <<_ACEOF
  7313. /* confdefs.h. */
  7314. _ACEOF
  7315. cat confdefs.h >>conftest.$ac_ext
  7316. cat >>conftest.$ac_ext <<_ACEOF
  7317. /* end confdefs.h. */
  7318. #include <time.h>
  7319. #ifndef tzname /* For SGI. */
  7320. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7321. #endif
  7322. int
  7323. main ()
  7324. {
  7325. atoi(*tzname);
  7326. ;
  7327. return 0;
  7328. }
  7329. _ACEOF
  7330. rm -f conftest.$ac_objext conftest$ac_exeext
  7331. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7332. (eval $ac_link) 2>conftest.er1
  7333. ac_status=$?
  7334. grep -v '^ *+' conftest.er1 >conftest.err
  7335. rm -f conftest.er1
  7336. cat conftest.err >&5
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); } &&
  7339. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; } &&
  7345. { ac_try='test -s conftest$ac_exeext'
  7346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7347. (eval $ac_try) 2>&5
  7348. ac_status=$?
  7349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7350. (exit $ac_status); }; }; then
  7351. ac_cv_var_tzname=yes
  7352. else
  7353. echo "$as_me: failed program was:" >&5
  7354. sed 's/^/| /' conftest.$ac_ext >&5
  7355. ac_cv_var_tzname=no
  7356. fi
  7357. rm -f conftest.err conftest.$ac_objext \
  7358. conftest$ac_exeext conftest.$ac_ext
  7359. fi
  7360. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7361. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7362. if test $ac_cv_var_tzname = yes; then
  7363. cat >>confdefs.h <<\_ACEOF
  7364. #define HAVE_TZNAME 1
  7365. _ACEOF
  7366. fi
  7367. fi
  7368. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7369. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7370. if test "${ac_cv_struct_tm+set}" = set; then
  7371. echo $ECHO_N "(cached) $ECHO_C" >&6
  7372. else
  7373. cat >conftest.$ac_ext <<_ACEOF
  7374. /* confdefs.h. */
  7375. _ACEOF
  7376. cat confdefs.h >>conftest.$ac_ext
  7377. cat >>conftest.$ac_ext <<_ACEOF
  7378. /* end confdefs.h. */
  7379. #include <sys/types.h>
  7380. #include <time.h>
  7381. int
  7382. main ()
  7383. {
  7384. struct tm *tp; tp->tm_sec;
  7385. ;
  7386. return 0;
  7387. }
  7388. _ACEOF
  7389. rm -f conftest.$ac_objext
  7390. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7391. (eval $ac_compile) 2>conftest.er1
  7392. ac_status=$?
  7393. grep -v '^ *+' conftest.er1 >conftest.err
  7394. rm -f conftest.er1
  7395. cat conftest.err >&5
  7396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7397. (exit $ac_status); } &&
  7398. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7400. (eval $ac_try) 2>&5
  7401. ac_status=$?
  7402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7403. (exit $ac_status); }; } &&
  7404. { ac_try='test -s conftest.$ac_objext'
  7405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7406. (eval $ac_try) 2>&5
  7407. ac_status=$?
  7408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7409. (exit $ac_status); }; }; then
  7410. ac_cv_struct_tm=time.h
  7411. else
  7412. echo "$as_me: failed program was:" >&5
  7413. sed 's/^/| /' conftest.$ac_ext >&5
  7414. ac_cv_struct_tm=sys/time.h
  7415. fi
  7416. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7417. fi
  7418. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7419. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7420. if test $ac_cv_struct_tm = sys/time.h; then
  7421. cat >>confdefs.h <<\_ACEOF
  7422. #define TM_IN_SYS_TIME 1
  7423. _ACEOF
  7424. fi
  7425. #checkpoint
  7426. cat >confcache <<\_ACEOF
  7427. # This file is a shell script that caches the results of configure
  7428. # tests run on this system so they can be shared between configure
  7429. # scripts and configure runs, see configure's option --config-cache.
  7430. # It is not useful on other systems. If it contains results you don't
  7431. # want to keep, you may remove or edit it.
  7432. #
  7433. # config.status only pays attention to the cache file if you give it
  7434. # the --recheck option to rerun configure.
  7435. #
  7436. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7437. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7438. # following values.
  7439. _ACEOF
  7440. # The following way of writing the cache mishandles newlines in values,
  7441. # but we know of no workaround that is simple, portable, and efficient.
  7442. # So, don't put newlines in cache variables' values.
  7443. # Ultrix sh set writes to stderr and can't be redirected directly,
  7444. # and sets the high bit in the cache file unless we assign to the vars.
  7445. {
  7446. (set) 2>&1 |
  7447. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7448. *ac_space=\ *)
  7449. # `set' does not quote correctly, so add quotes (double-quote
  7450. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7451. sed -n \
  7452. "s/'/'\\\\''/g;
  7453. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7454. ;;
  7455. *)
  7456. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7457. sed -n \
  7458. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7459. ;;
  7460. esac;
  7461. } |
  7462. sed '
  7463. t clear
  7464. : clear
  7465. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7466. t end
  7467. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7468. : end' >>confcache
  7469. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7470. if test -w $cache_file; then
  7471. test "x$cache_file" != "x/dev/null"
  7472. cat confcache >$cache_file
  7473. else
  7474. echo "not updating unwritable cache $cache_file"
  7475. fi
  7476. fi
  7477. rm -f confcache
  7478. # Check for IPv6 support
  7479. #EGG_IPV6_SUPPORTED
  7480. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7481. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7482. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7483. if test "${enable_ipv6+set}" = set; then
  7484. enableval="$enable_ipv6"
  7485. ac_cv_dipv6="yes"
  7486. echo "$as_me:$LINENO: result: yes" >&5
  7487. echo "${ECHO_T}yes" >&6
  7488. else
  7489. ac_cv_dipv6="no"
  7490. if test "$egg_cv_ipv6_supported" = "no"; then
  7491. ac_cv_dipv6="no"
  7492. fi
  7493. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7494. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7495. fi;
  7496. if test "$ac_cv_dipv6" = "no"; then
  7497. cat >>confdefs.h <<\_ACEOF
  7498. #define USE_IPV6 1
  7499. _ACEOF
  7500. fi
  7501. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7502. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7503. if test "${egg_cv_socklen_t+set}" = set; then
  7504. echo $ECHO_N "(cached) $ECHO_C" >&6
  7505. else
  7506. if test "$cross_compiling" = yes; then
  7507. egg_cv_socklen_t=no
  7508. else
  7509. cat >conftest.$ac_ext <<_ACEOF
  7510. /* confdefs.h. */
  7511. _ACEOF
  7512. cat confdefs.h >>conftest.$ac_ext
  7513. cat >>conftest.$ac_ext <<_ACEOF
  7514. /* end confdefs.h. */
  7515. #include <unistd.h>
  7516. #include <sys/types.h>
  7517. #include <sys/socket.h>
  7518. #include <netinet/in.h>
  7519. #include <arpa/inet.h>
  7520. int main()
  7521. {
  7522. socklen_t test = sizeof(int);
  7523. return 0;
  7524. }
  7525. _ACEOF
  7526. rm -f conftest$ac_exeext
  7527. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7528. (eval $ac_link) 2>&5
  7529. ac_status=$?
  7530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7533. (eval $ac_try) 2>&5
  7534. ac_status=$?
  7535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7536. (exit $ac_status); }; }; then
  7537. egg_cv_socklen_t=yes
  7538. else
  7539. echo "$as_me: program exited with status $ac_status" >&5
  7540. echo "$as_me: failed program was:" >&5
  7541. sed 's/^/| /' conftest.$ac_ext >&5
  7542. ( exit $ac_status )
  7543. egg_cv_socklen_t=no
  7544. fi
  7545. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7546. fi
  7547. fi
  7548. if test "$egg_cv_socklen_t" = "yes"; then
  7549. cat >>confdefs.h <<\_ACEOF
  7550. #define HAVE_SOCKLEN_T 1
  7551. _ACEOF
  7552. echo "$as_me:$LINENO: result: yes" >&5
  7553. echo "${ECHO_T}yes" >&6
  7554. else
  7555. echo "$as_me:$LINENO: result: no" >&5
  7556. echo "${ECHO_T}no" >&6
  7557. fi
  7558. # Checks for library functions
  7559. #checkpoint
  7560. cat >confcache <<\_ACEOF
  7561. # This file is a shell script that caches the results of configure
  7562. # tests run on this system so they can be shared between configure
  7563. # scripts and configure runs, see configure's option --config-cache.
  7564. # It is not useful on other systems. If it contains results you don't
  7565. # want to keep, you may remove or edit it.
  7566. #
  7567. # config.status only pays attention to the cache file if you give it
  7568. # the --recheck option to rerun configure.
  7569. #
  7570. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7571. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7572. # following values.
  7573. _ACEOF
  7574. # The following way of writing the cache mishandles newlines in values,
  7575. # but we know of no workaround that is simple, portable, and efficient.
  7576. # So, don't put newlines in cache variables' values.
  7577. # Ultrix sh set writes to stderr and can't be redirected directly,
  7578. # and sets the high bit in the cache file unless we assign to the vars.
  7579. {
  7580. (set) 2>&1 |
  7581. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7582. *ac_space=\ *)
  7583. # `set' does not quote correctly, so add quotes (double-quote
  7584. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7585. sed -n \
  7586. "s/'/'\\\\''/g;
  7587. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7588. ;;
  7589. *)
  7590. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7591. sed -n \
  7592. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7593. ;;
  7594. esac;
  7595. } |
  7596. sed '
  7597. t clear
  7598. : clear
  7599. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7600. t end
  7601. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7602. : end' >>confcache
  7603. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7604. if test -w $cache_file; then
  7605. test "x$cache_file" != "x/dev/null"
  7606. cat confcache >$cache_file
  7607. else
  7608. echo "not updating unwritable cache $cache_file"
  7609. fi
  7610. fi
  7611. rm -f confcache
  7612. # Checks for library functions.
  7613. for ac_header in unistd.h vfork.h
  7614. do
  7615. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7616. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7617. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7618. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7619. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7620. echo $ECHO_N "(cached) $ECHO_C" >&6
  7621. fi
  7622. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7623. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7624. else
  7625. # Is the header compilable?
  7626. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7627. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7628. cat >conftest.$ac_ext <<_ACEOF
  7629. /* confdefs.h. */
  7630. _ACEOF
  7631. cat confdefs.h >>conftest.$ac_ext
  7632. cat >>conftest.$ac_ext <<_ACEOF
  7633. /* end confdefs.h. */
  7634. $ac_includes_default
  7635. #include <$ac_header>
  7636. _ACEOF
  7637. rm -f conftest.$ac_objext
  7638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7639. (eval $ac_compile) 2>conftest.er1
  7640. ac_status=$?
  7641. grep -v '^ *+' conftest.er1 >conftest.err
  7642. rm -f conftest.er1
  7643. cat conftest.err >&5
  7644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7645. (exit $ac_status); } &&
  7646. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7648. (eval $ac_try) 2>&5
  7649. ac_status=$?
  7650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7651. (exit $ac_status); }; } &&
  7652. { ac_try='test -s conftest.$ac_objext'
  7653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7654. (eval $ac_try) 2>&5
  7655. ac_status=$?
  7656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7657. (exit $ac_status); }; }; then
  7658. ac_header_compiler=yes
  7659. else
  7660. echo "$as_me: failed program was:" >&5
  7661. sed 's/^/| /' conftest.$ac_ext >&5
  7662. ac_header_compiler=no
  7663. fi
  7664. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7665. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7666. echo "${ECHO_T}$ac_header_compiler" >&6
  7667. # Is the header present?
  7668. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7669. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7670. cat >conftest.$ac_ext <<_ACEOF
  7671. /* confdefs.h. */
  7672. _ACEOF
  7673. cat confdefs.h >>conftest.$ac_ext
  7674. cat >>conftest.$ac_ext <<_ACEOF
  7675. /* end confdefs.h. */
  7676. #include <$ac_header>
  7677. _ACEOF
  7678. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7679. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7680. ac_status=$?
  7681. grep -v '^ *+' conftest.er1 >conftest.err
  7682. rm -f conftest.er1
  7683. cat conftest.err >&5
  7684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7685. (exit $ac_status); } >/dev/null; then
  7686. if test -s conftest.err; then
  7687. ac_cpp_err=$ac_c_preproc_warn_flag
  7688. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7689. else
  7690. ac_cpp_err=
  7691. fi
  7692. else
  7693. ac_cpp_err=yes
  7694. fi
  7695. if test -z "$ac_cpp_err"; then
  7696. ac_header_preproc=yes
  7697. else
  7698. echo "$as_me: failed program was:" >&5
  7699. sed 's/^/| /' conftest.$ac_ext >&5
  7700. ac_header_preproc=no
  7701. fi
  7702. rm -f conftest.err conftest.$ac_ext
  7703. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7704. echo "${ECHO_T}$ac_header_preproc" >&6
  7705. # So? What about this header?
  7706. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7707. yes:no: )
  7708. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7709. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7710. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7711. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7712. ac_header_preproc=yes
  7713. ;;
  7714. no:yes:* )
  7715. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7716. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7717. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7718. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7719. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7720. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7721. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7722. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7723. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7724. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7725. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7726. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7727. (
  7728. cat <<\_ASBOX
  7729. ## ------------------------------------------ ##
  7730. ## Report this to the AC_PACKAGE_NAME lists. ##
  7731. ## ------------------------------------------ ##
  7732. _ASBOX
  7733. ) |
  7734. sed "s/^/$as_me: WARNING: /" >&2
  7735. ;;
  7736. esac
  7737. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7738. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7739. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7740. echo $ECHO_N "(cached) $ECHO_C" >&6
  7741. else
  7742. eval "$as_ac_Header=\$ac_header_preproc"
  7743. fi
  7744. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7745. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7746. fi
  7747. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7748. cat >>confdefs.h <<_ACEOF
  7749. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7750. _ACEOF
  7751. fi
  7752. done
  7753. for ac_func in fork vfork
  7754. do
  7755. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7756. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7757. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7758. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7759. echo $ECHO_N "(cached) $ECHO_C" >&6
  7760. else
  7761. cat >conftest.$ac_ext <<_ACEOF
  7762. /* confdefs.h. */
  7763. _ACEOF
  7764. cat confdefs.h >>conftest.$ac_ext
  7765. cat >>conftest.$ac_ext <<_ACEOF
  7766. /* end confdefs.h. */
  7767. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7768. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7769. #define $ac_func innocuous_$ac_func
  7770. /* System header to define __stub macros and hopefully few prototypes,
  7771. which can conflict with char $ac_func (); below.
  7772. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7773. <limits.h> exists even on freestanding compilers. */
  7774. #ifdef __STDC__
  7775. # include <limits.h>
  7776. #else
  7777. # include <assert.h>
  7778. #endif
  7779. #undef $ac_func
  7780. /* Override any gcc2 internal prototype to avoid an error. */
  7781. #ifdef __cplusplus
  7782. extern "C"
  7783. {
  7784. #endif
  7785. /* We use char because int might match the return type of a gcc2
  7786. builtin and then its argument prototype would still apply. */
  7787. char $ac_func ();
  7788. /* The GNU C library defines this for functions which it implements
  7789. to always fail with ENOSYS. Some functions are actually named
  7790. something starting with __ and the normal name is an alias. */
  7791. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7792. choke me
  7793. #else
  7794. char (*f) () = $ac_func;
  7795. #endif
  7796. #ifdef __cplusplus
  7797. }
  7798. #endif
  7799. int
  7800. main ()
  7801. {
  7802. return f != $ac_func;
  7803. ;
  7804. return 0;
  7805. }
  7806. _ACEOF
  7807. rm -f conftest.$ac_objext conftest$ac_exeext
  7808. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7809. (eval $ac_link) 2>conftest.er1
  7810. ac_status=$?
  7811. grep -v '^ *+' conftest.er1 >conftest.err
  7812. rm -f conftest.er1
  7813. cat conftest.err >&5
  7814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7815. (exit $ac_status); } &&
  7816. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7818. (eval $ac_try) 2>&5
  7819. ac_status=$?
  7820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7821. (exit $ac_status); }; } &&
  7822. { ac_try='test -s conftest$ac_exeext'
  7823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7824. (eval $ac_try) 2>&5
  7825. ac_status=$?
  7826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7827. (exit $ac_status); }; }; then
  7828. eval "$as_ac_var=yes"
  7829. else
  7830. echo "$as_me: failed program was:" >&5
  7831. sed 's/^/| /' conftest.$ac_ext >&5
  7832. eval "$as_ac_var=no"
  7833. fi
  7834. rm -f conftest.err conftest.$ac_objext \
  7835. conftest$ac_exeext conftest.$ac_ext
  7836. fi
  7837. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7838. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7839. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7840. cat >>confdefs.h <<_ACEOF
  7841. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7842. _ACEOF
  7843. fi
  7844. done
  7845. if test "x$ac_cv_func_fork" = xyes; then
  7846. echo "$as_me:$LINENO: checking for working fork" >&5
  7847. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7848. if test "${ac_cv_func_fork_works+set}" = set; then
  7849. echo $ECHO_N "(cached) $ECHO_C" >&6
  7850. else
  7851. if test "$cross_compiling" = yes; then
  7852. ac_cv_func_fork_works=cross
  7853. else
  7854. cat >conftest.$ac_ext <<_ACEOF
  7855. /* By Ruediger Kuhlmann. */
  7856. #include <sys/types.h>
  7857. #if HAVE_UNISTD_H
  7858. # include <unistd.h>
  7859. #endif
  7860. /* Some systems only have a dummy stub for fork() */
  7861. int main ()
  7862. {
  7863. if (fork() < 0)
  7864. exit (1);
  7865. exit (0);
  7866. }
  7867. _ACEOF
  7868. rm -f conftest$ac_exeext
  7869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7870. (eval $ac_link) 2>&5
  7871. ac_status=$?
  7872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7873. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7875. (eval $ac_try) 2>&5
  7876. ac_status=$?
  7877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7878. (exit $ac_status); }; }; then
  7879. ac_cv_func_fork_works=yes
  7880. else
  7881. echo "$as_me: program exited with status $ac_status" >&5
  7882. echo "$as_me: failed program was:" >&5
  7883. sed 's/^/| /' conftest.$ac_ext >&5
  7884. ( exit $ac_status )
  7885. ac_cv_func_fork_works=no
  7886. fi
  7887. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7888. fi
  7889. fi
  7890. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7891. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7892. else
  7893. ac_cv_func_fork_works=$ac_cv_func_fork
  7894. fi
  7895. if test "x$ac_cv_func_fork_works" = xcross; then
  7896. case $host in
  7897. *-*-amigaos* | *-*-msdosdjgpp*)
  7898. # Override, as these systems have only a dummy fork() stub
  7899. ac_cv_func_fork_works=no
  7900. ;;
  7901. *)
  7902. ac_cv_func_fork_works=yes
  7903. ;;
  7904. esac
  7905. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7906. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7907. fi
  7908. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7909. if test "x$ac_cv_func_vfork" = xyes; then
  7910. echo "$as_me:$LINENO: checking for working vfork" >&5
  7911. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7912. if test "${ac_cv_func_vfork_works+set}" = set; then
  7913. echo $ECHO_N "(cached) $ECHO_C" >&6
  7914. else
  7915. if test "$cross_compiling" = yes; then
  7916. ac_cv_func_vfork_works=cross
  7917. else
  7918. cat >conftest.$ac_ext <<_ACEOF
  7919. /* confdefs.h. */
  7920. _ACEOF
  7921. cat confdefs.h >>conftest.$ac_ext
  7922. cat >>conftest.$ac_ext <<_ACEOF
  7923. /* end confdefs.h. */
  7924. /* Thanks to Paul Eggert for this test. */
  7925. #include <stdio.h>
  7926. #include <stdlib.h>
  7927. #include <sys/types.h>
  7928. #include <sys/stat.h>
  7929. #include <sys/wait.h>
  7930. #if HAVE_UNISTD_H
  7931. # include <unistd.h>
  7932. #endif
  7933. #if HAVE_VFORK_H
  7934. # include <vfork.h>
  7935. #endif
  7936. /* On some sparc systems, changes by the child to local and incoming
  7937. argument registers are propagated back to the parent. The compiler
  7938. is told about this with #include <vfork.h>, but some compilers
  7939. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7940. static variable whose address is put into a register that is
  7941. clobbered by the vfork. */
  7942. static void
  7943. #ifdef __cplusplus
  7944. sparc_address_test (int arg)
  7945. # else
  7946. sparc_address_test (arg) int arg;
  7947. #endif
  7948. {
  7949. static pid_t child;
  7950. if (!child) {
  7951. child = vfork ();
  7952. if (child < 0) {
  7953. perror ("vfork");
  7954. _exit(2);
  7955. }
  7956. if (!child) {
  7957. arg = getpid();
  7958. write(-1, "", 0);
  7959. _exit (arg);
  7960. }
  7961. }
  7962. }
  7963. int
  7964. main ()
  7965. {
  7966. pid_t parent = getpid ();
  7967. pid_t child;
  7968. sparc_address_test (0);
  7969. child = vfork ();
  7970. if (child == 0) {
  7971. /* Here is another test for sparc vfork register problems. This
  7972. test uses lots of local variables, at least as many local
  7973. variables as main has allocated so far including compiler
  7974. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7975. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7976. reuse the register of parent for one of the local variables,
  7977. since it will think that parent can't possibly be used any more
  7978. in this routine. Assigning to the local variable will thus
  7979. munge parent in the parent process. */
  7980. pid_t
  7981. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7982. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7983. /* Convince the compiler that p..p7 are live; otherwise, it might
  7984. use the same hardware register for all 8 local variables. */
  7985. if (p != p1 || p != p2 || p != p3 || p != p4
  7986. || p != p5 || p != p6 || p != p7)
  7987. _exit(1);
  7988. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7989. from child file descriptors. If the child closes a descriptor
  7990. before it execs or exits, this munges the parent's descriptor
  7991. as well. Test for this by closing stdout in the child. */
  7992. _exit(close(fileno(stdout)) != 0);
  7993. } else {
  7994. int status;
  7995. struct stat st;
  7996. while (wait(&status) != child)
  7997. ;
  7998. exit(
  7999. /* Was there some problem with vforking? */
  8000. child < 0
  8001. /* Did the child fail? (This shouldn't happen.) */
  8002. || status
  8003. /* Did the vfork/compiler bug occur? */
  8004. || parent != getpid()
  8005. /* Did the file descriptor bug occur? */
  8006. || fstat(fileno(stdout), &st) != 0
  8007. );
  8008. }
  8009. }
  8010. _ACEOF
  8011. rm -f conftest$ac_exeext
  8012. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8013. (eval $ac_link) 2>&5
  8014. ac_status=$?
  8015. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8016. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8018. (eval $ac_try) 2>&5
  8019. ac_status=$?
  8020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8021. (exit $ac_status); }; }; then
  8022. ac_cv_func_vfork_works=yes
  8023. else
  8024. echo "$as_me: program exited with status $ac_status" >&5
  8025. echo "$as_me: failed program was:" >&5
  8026. sed 's/^/| /' conftest.$ac_ext >&5
  8027. ( exit $ac_status )
  8028. ac_cv_func_vfork_works=no
  8029. fi
  8030. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8031. fi
  8032. fi
  8033. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8034. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8035. fi;
  8036. if test "x$ac_cv_func_fork_works" = xcross; then
  8037. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8038. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8039. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8040. fi
  8041. if test "x$ac_cv_func_vfork_works" = xyes; then
  8042. cat >>confdefs.h <<\_ACEOF
  8043. #define HAVE_WORKING_VFORK 1
  8044. _ACEOF
  8045. else
  8046. cat >>confdefs.h <<\_ACEOF
  8047. #define vfork fork
  8048. _ACEOF
  8049. fi
  8050. if test "x$ac_cv_func_fork_works" = xyes; then
  8051. cat >>confdefs.h <<\_ACEOF
  8052. #define HAVE_WORKING_FORK 1
  8053. _ACEOF
  8054. fi
  8055. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8056. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8057. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8058. echo $ECHO_N "(cached) $ECHO_C" >&6
  8059. else
  8060. rm -f conftest.sym conftest.file
  8061. echo >conftest.file
  8062. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8063. if test "$cross_compiling" = yes; then
  8064. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8065. else
  8066. cat >conftest.$ac_ext <<_ACEOF
  8067. /* confdefs.h. */
  8068. _ACEOF
  8069. cat confdefs.h >>conftest.$ac_ext
  8070. cat >>conftest.$ac_ext <<_ACEOF
  8071. /* end confdefs.h. */
  8072. $ac_includes_default
  8073. int
  8074. main ()
  8075. {
  8076. struct stat sbuf;
  8077. /* Linux will dereference the symlink and fail.
  8078. That is better in the sense that it means we will not
  8079. have to compile and use the lstat wrapper. */
  8080. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8081. ;
  8082. return 0;
  8083. }
  8084. _ACEOF
  8085. rm -f conftest$ac_exeext
  8086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8087. (eval $ac_link) 2>&5
  8088. ac_status=$?
  8089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8090. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8092. (eval $ac_try) 2>&5
  8093. ac_status=$?
  8094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8095. (exit $ac_status); }; }; then
  8096. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8097. else
  8098. echo "$as_me: program exited with status $ac_status" >&5
  8099. echo "$as_me: failed program was:" >&5
  8100. sed 's/^/| /' conftest.$ac_ext >&5
  8101. ( exit $ac_status )
  8102. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8103. fi
  8104. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8105. fi
  8106. else
  8107. # If the `ln -s' command failed, then we probably don't even
  8108. # have an lstat function.
  8109. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8110. fi
  8111. rm -f conftest.sym conftest.file
  8112. fi
  8113. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8114. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8115. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8116. cat >>confdefs.h <<_ACEOF
  8117. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8118. _ACEOF
  8119. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8120. case $LIBOBJS in
  8121. "lstat.$ac_objext" | \
  8122. *" lstat.$ac_objext" | \
  8123. "lstat.$ac_objext "* | \
  8124. *" lstat.$ac_objext "* ) ;;
  8125. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8126. esac
  8127. fi
  8128. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8129. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8130. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8131. echo $ECHO_N "(cached) $ECHO_C" >&6
  8132. else
  8133. if test "$cross_compiling" = yes; then
  8134. ac_cv_func_lstat_empty_string_bug=yes
  8135. else
  8136. cat >conftest.$ac_ext <<_ACEOF
  8137. /* confdefs.h. */
  8138. _ACEOF
  8139. cat confdefs.h >>conftest.$ac_ext
  8140. cat >>conftest.$ac_ext <<_ACEOF
  8141. /* end confdefs.h. */
  8142. $ac_includes_default
  8143. int
  8144. main ()
  8145. {
  8146. struct stat sbuf;
  8147. exit (lstat ("", &sbuf) ? 1 : 0);
  8148. ;
  8149. return 0;
  8150. }
  8151. _ACEOF
  8152. rm -f conftest$ac_exeext
  8153. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8154. (eval $ac_link) 2>&5
  8155. ac_status=$?
  8156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8159. (eval $ac_try) 2>&5
  8160. ac_status=$?
  8161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); }; }; then
  8163. ac_cv_func_lstat_empty_string_bug=yes
  8164. else
  8165. echo "$as_me: program exited with status $ac_status" >&5
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. ( exit $ac_status )
  8169. ac_cv_func_lstat_empty_string_bug=no
  8170. fi
  8171. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8172. fi
  8173. fi
  8174. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8175. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8176. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8177. case $LIBOBJS in
  8178. "lstat.$ac_objext" | \
  8179. *" lstat.$ac_objext" | \
  8180. "lstat.$ac_objext "* | \
  8181. *" lstat.$ac_objext "* ) ;;
  8182. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8183. esac
  8184. cat >>confdefs.h <<_ACEOF
  8185. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8186. _ACEOF
  8187. fi
  8188. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8189. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8190. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8191. echo $ECHO_N "(cached) $ECHO_C" >&6
  8192. else
  8193. rm -f conftest.sym conftest.file
  8194. echo >conftest.file
  8195. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8196. if test "$cross_compiling" = yes; then
  8197. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8198. else
  8199. cat >conftest.$ac_ext <<_ACEOF
  8200. /* confdefs.h. */
  8201. _ACEOF
  8202. cat confdefs.h >>conftest.$ac_ext
  8203. cat >>conftest.$ac_ext <<_ACEOF
  8204. /* end confdefs.h. */
  8205. $ac_includes_default
  8206. int
  8207. main ()
  8208. {
  8209. struct stat sbuf;
  8210. /* Linux will dereference the symlink and fail.
  8211. That is better in the sense that it means we will not
  8212. have to compile and use the lstat wrapper. */
  8213. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8214. ;
  8215. return 0;
  8216. }
  8217. _ACEOF
  8218. rm -f conftest$ac_exeext
  8219. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8220. (eval $ac_link) 2>&5
  8221. ac_status=$?
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8225. (eval $ac_try) 2>&5
  8226. ac_status=$?
  8227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8228. (exit $ac_status); }; }; then
  8229. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8230. else
  8231. echo "$as_me: program exited with status $ac_status" >&5
  8232. echo "$as_me: failed program was:" >&5
  8233. sed 's/^/| /' conftest.$ac_ext >&5
  8234. ( exit $ac_status )
  8235. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8236. fi
  8237. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8238. fi
  8239. else
  8240. # If the `ln -s' command failed, then we probably don't even
  8241. # have an lstat function.
  8242. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8243. fi
  8244. rm -f conftest.sym conftest.file
  8245. fi
  8246. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8247. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8248. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8249. cat >>confdefs.h <<_ACEOF
  8250. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8251. _ACEOF
  8252. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8253. case $LIBOBJS in
  8254. "lstat.$ac_objext" | \
  8255. *" lstat.$ac_objext" | \
  8256. "lstat.$ac_objext "* | \
  8257. *" lstat.$ac_objext "* ) ;;
  8258. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8259. esac
  8260. fi
  8261. for ac_header in stdlib.h
  8262. do
  8263. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8264. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8265. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8266. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8267. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8268. echo $ECHO_N "(cached) $ECHO_C" >&6
  8269. fi
  8270. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8271. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8272. else
  8273. # Is the header compilable?
  8274. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8275. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8276. cat >conftest.$ac_ext <<_ACEOF
  8277. /* confdefs.h. */
  8278. _ACEOF
  8279. cat confdefs.h >>conftest.$ac_ext
  8280. cat >>conftest.$ac_ext <<_ACEOF
  8281. /* end confdefs.h. */
  8282. $ac_includes_default
  8283. #include <$ac_header>
  8284. _ACEOF
  8285. rm -f conftest.$ac_objext
  8286. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8287. (eval $ac_compile) 2>conftest.er1
  8288. ac_status=$?
  8289. grep -v '^ *+' conftest.er1 >conftest.err
  8290. rm -f conftest.er1
  8291. cat conftest.err >&5
  8292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8293. (exit $ac_status); } &&
  8294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8296. (eval $ac_try) 2>&5
  8297. ac_status=$?
  8298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8299. (exit $ac_status); }; } &&
  8300. { ac_try='test -s conftest.$ac_objext'
  8301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8302. (eval $ac_try) 2>&5
  8303. ac_status=$?
  8304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8305. (exit $ac_status); }; }; then
  8306. ac_header_compiler=yes
  8307. else
  8308. echo "$as_me: failed program was:" >&5
  8309. sed 's/^/| /' conftest.$ac_ext >&5
  8310. ac_header_compiler=no
  8311. fi
  8312. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8313. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8314. echo "${ECHO_T}$ac_header_compiler" >&6
  8315. # Is the header present?
  8316. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8317. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8318. cat >conftest.$ac_ext <<_ACEOF
  8319. /* confdefs.h. */
  8320. _ACEOF
  8321. cat confdefs.h >>conftest.$ac_ext
  8322. cat >>conftest.$ac_ext <<_ACEOF
  8323. /* end confdefs.h. */
  8324. #include <$ac_header>
  8325. _ACEOF
  8326. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8327. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8328. ac_status=$?
  8329. grep -v '^ *+' conftest.er1 >conftest.err
  8330. rm -f conftest.er1
  8331. cat conftest.err >&5
  8332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8333. (exit $ac_status); } >/dev/null; then
  8334. if test -s conftest.err; then
  8335. ac_cpp_err=$ac_c_preproc_warn_flag
  8336. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8337. else
  8338. ac_cpp_err=
  8339. fi
  8340. else
  8341. ac_cpp_err=yes
  8342. fi
  8343. if test -z "$ac_cpp_err"; then
  8344. ac_header_preproc=yes
  8345. else
  8346. echo "$as_me: failed program was:" >&5
  8347. sed 's/^/| /' conftest.$ac_ext >&5
  8348. ac_header_preproc=no
  8349. fi
  8350. rm -f conftest.err conftest.$ac_ext
  8351. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8352. echo "${ECHO_T}$ac_header_preproc" >&6
  8353. # So? What about this header?
  8354. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8355. yes:no: )
  8356. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8357. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8358. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8359. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8360. ac_header_preproc=yes
  8361. ;;
  8362. no:yes:* )
  8363. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8364. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8365. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8366. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8367. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8368. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8369. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8370. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8371. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8372. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8373. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8374. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8375. (
  8376. cat <<\_ASBOX
  8377. ## ------------------------------------------ ##
  8378. ## Report this to the AC_PACKAGE_NAME lists. ##
  8379. ## ------------------------------------------ ##
  8380. _ASBOX
  8381. ) |
  8382. sed "s/^/$as_me: WARNING: /" >&2
  8383. ;;
  8384. esac
  8385. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8386. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8387. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8388. echo $ECHO_N "(cached) $ECHO_C" >&6
  8389. else
  8390. eval "$as_ac_Header=\$ac_header_preproc"
  8391. fi
  8392. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8393. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8394. fi
  8395. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8396. cat >>confdefs.h <<_ACEOF
  8397. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8398. _ACEOF
  8399. fi
  8400. done
  8401. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8402. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8403. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8404. echo $ECHO_N "(cached) $ECHO_C" >&6
  8405. else
  8406. if test "$cross_compiling" = yes; then
  8407. ac_cv_func_malloc_0_nonnull=no
  8408. else
  8409. cat >conftest.$ac_ext <<_ACEOF
  8410. /* confdefs.h. */
  8411. _ACEOF
  8412. cat confdefs.h >>conftest.$ac_ext
  8413. cat >>conftest.$ac_ext <<_ACEOF
  8414. /* end confdefs.h. */
  8415. #if STDC_HEADERS || HAVE_STDLIB_H
  8416. # include <stdlib.h>
  8417. #else
  8418. char *malloc ();
  8419. #endif
  8420. int
  8421. main ()
  8422. {
  8423. exit (malloc (0) ? 0 : 1);
  8424. ;
  8425. return 0;
  8426. }
  8427. _ACEOF
  8428. rm -f conftest$ac_exeext
  8429. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8430. (eval $ac_link) 2>&5
  8431. ac_status=$?
  8432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8435. (eval $ac_try) 2>&5
  8436. ac_status=$?
  8437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8438. (exit $ac_status); }; }; then
  8439. ac_cv_func_malloc_0_nonnull=yes
  8440. else
  8441. echo "$as_me: program exited with status $ac_status" >&5
  8442. echo "$as_me: failed program was:" >&5
  8443. sed 's/^/| /' conftest.$ac_ext >&5
  8444. ( exit $ac_status )
  8445. ac_cv_func_malloc_0_nonnull=no
  8446. fi
  8447. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8448. fi
  8449. fi
  8450. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8451. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8452. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8453. cat >>confdefs.h <<\_ACEOF
  8454. #define HAVE_MALLOC 1
  8455. _ACEOF
  8456. else
  8457. cat >>confdefs.h <<\_ACEOF
  8458. #define HAVE_MALLOC 0
  8459. _ACEOF
  8460. case $LIBOBJS in
  8461. "malloc.$ac_objext" | \
  8462. *" malloc.$ac_objext" | \
  8463. "malloc.$ac_objext "* | \
  8464. *" malloc.$ac_objext "* ) ;;
  8465. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8466. esac
  8467. cat >>confdefs.h <<\_ACEOF
  8468. #define malloc rpl_malloc
  8469. _ACEOF
  8470. fi
  8471. for ac_header in stdlib.h sys/time.h unistd.h
  8472. do
  8473. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8474. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8475. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8476. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8477. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8478. echo $ECHO_N "(cached) $ECHO_C" >&6
  8479. fi
  8480. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8481. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8482. else
  8483. # Is the header compilable?
  8484. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8485. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8486. cat >conftest.$ac_ext <<_ACEOF
  8487. /* confdefs.h. */
  8488. _ACEOF
  8489. cat confdefs.h >>conftest.$ac_ext
  8490. cat >>conftest.$ac_ext <<_ACEOF
  8491. /* end confdefs.h. */
  8492. $ac_includes_default
  8493. #include <$ac_header>
  8494. _ACEOF
  8495. rm -f conftest.$ac_objext
  8496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8497. (eval $ac_compile) 2>conftest.er1
  8498. ac_status=$?
  8499. grep -v '^ *+' conftest.er1 >conftest.err
  8500. rm -f conftest.er1
  8501. cat conftest.err >&5
  8502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8503. (exit $ac_status); } &&
  8504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8506. (eval $ac_try) 2>&5
  8507. ac_status=$?
  8508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8509. (exit $ac_status); }; } &&
  8510. { ac_try='test -s conftest.$ac_objext'
  8511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8512. (eval $ac_try) 2>&5
  8513. ac_status=$?
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. (exit $ac_status); }; }; then
  8516. ac_header_compiler=yes
  8517. else
  8518. echo "$as_me: failed program was:" >&5
  8519. sed 's/^/| /' conftest.$ac_ext >&5
  8520. ac_header_compiler=no
  8521. fi
  8522. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8523. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8524. echo "${ECHO_T}$ac_header_compiler" >&6
  8525. # Is the header present?
  8526. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8527. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8528. cat >conftest.$ac_ext <<_ACEOF
  8529. /* confdefs.h. */
  8530. _ACEOF
  8531. cat confdefs.h >>conftest.$ac_ext
  8532. cat >>conftest.$ac_ext <<_ACEOF
  8533. /* end confdefs.h. */
  8534. #include <$ac_header>
  8535. _ACEOF
  8536. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8537. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8538. ac_status=$?
  8539. grep -v '^ *+' conftest.er1 >conftest.err
  8540. rm -f conftest.er1
  8541. cat conftest.err >&5
  8542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8543. (exit $ac_status); } >/dev/null; then
  8544. if test -s conftest.err; then
  8545. ac_cpp_err=$ac_c_preproc_warn_flag
  8546. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8547. else
  8548. ac_cpp_err=
  8549. fi
  8550. else
  8551. ac_cpp_err=yes
  8552. fi
  8553. if test -z "$ac_cpp_err"; then
  8554. ac_header_preproc=yes
  8555. else
  8556. echo "$as_me: failed program was:" >&5
  8557. sed 's/^/| /' conftest.$ac_ext >&5
  8558. ac_header_preproc=no
  8559. fi
  8560. rm -f conftest.err conftest.$ac_ext
  8561. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8562. echo "${ECHO_T}$ac_header_preproc" >&6
  8563. # So? What about this header?
  8564. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8565. yes:no: )
  8566. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8567. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8568. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8569. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8570. ac_header_preproc=yes
  8571. ;;
  8572. no:yes:* )
  8573. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8574. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8575. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8576. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8577. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8578. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8579. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8580. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8581. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8582. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8583. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8584. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8585. (
  8586. cat <<\_ASBOX
  8587. ## ------------------------------------------ ##
  8588. ## Report this to the AC_PACKAGE_NAME lists. ##
  8589. ## ------------------------------------------ ##
  8590. _ASBOX
  8591. ) |
  8592. sed "s/^/$as_me: WARNING: /" >&2
  8593. ;;
  8594. esac
  8595. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8596. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8597. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8598. echo $ECHO_N "(cached) $ECHO_C" >&6
  8599. else
  8600. eval "$as_ac_Header=\$ac_header_preproc"
  8601. fi
  8602. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8603. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8604. fi
  8605. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8606. cat >>confdefs.h <<_ACEOF
  8607. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8608. _ACEOF
  8609. fi
  8610. done
  8611. for ac_func in alarm
  8612. do
  8613. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8614. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8615. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8616. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8617. echo $ECHO_N "(cached) $ECHO_C" >&6
  8618. else
  8619. cat >conftest.$ac_ext <<_ACEOF
  8620. /* confdefs.h. */
  8621. _ACEOF
  8622. cat confdefs.h >>conftest.$ac_ext
  8623. cat >>conftest.$ac_ext <<_ACEOF
  8624. /* end confdefs.h. */
  8625. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8626. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8627. #define $ac_func innocuous_$ac_func
  8628. /* System header to define __stub macros and hopefully few prototypes,
  8629. which can conflict with char $ac_func (); below.
  8630. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8631. <limits.h> exists even on freestanding compilers. */
  8632. #ifdef __STDC__
  8633. # include <limits.h>
  8634. #else
  8635. # include <assert.h>
  8636. #endif
  8637. #undef $ac_func
  8638. /* Override any gcc2 internal prototype to avoid an error. */
  8639. #ifdef __cplusplus
  8640. extern "C"
  8641. {
  8642. #endif
  8643. /* We use char because int might match the return type of a gcc2
  8644. builtin and then its argument prototype would still apply. */
  8645. char $ac_func ();
  8646. /* The GNU C library defines this for functions which it implements
  8647. to always fail with ENOSYS. Some functions are actually named
  8648. something starting with __ and the normal name is an alias. */
  8649. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8650. choke me
  8651. #else
  8652. char (*f) () = $ac_func;
  8653. #endif
  8654. #ifdef __cplusplus
  8655. }
  8656. #endif
  8657. int
  8658. main ()
  8659. {
  8660. return f != $ac_func;
  8661. ;
  8662. return 0;
  8663. }
  8664. _ACEOF
  8665. rm -f conftest.$ac_objext conftest$ac_exeext
  8666. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8667. (eval $ac_link) 2>conftest.er1
  8668. ac_status=$?
  8669. grep -v '^ *+' conftest.er1 >conftest.err
  8670. rm -f conftest.er1
  8671. cat conftest.err >&5
  8672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8673. (exit $ac_status); } &&
  8674. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8676. (eval $ac_try) 2>&5
  8677. ac_status=$?
  8678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8679. (exit $ac_status); }; } &&
  8680. { ac_try='test -s conftest$ac_exeext'
  8681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8682. (eval $ac_try) 2>&5
  8683. ac_status=$?
  8684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8685. (exit $ac_status); }; }; then
  8686. eval "$as_ac_var=yes"
  8687. else
  8688. echo "$as_me: failed program was:" >&5
  8689. sed 's/^/| /' conftest.$ac_ext >&5
  8690. eval "$as_ac_var=no"
  8691. fi
  8692. rm -f conftest.err conftest.$ac_objext \
  8693. conftest$ac_exeext conftest.$ac_ext
  8694. fi
  8695. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8696. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8697. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8698. cat >>confdefs.h <<_ACEOF
  8699. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8700. _ACEOF
  8701. fi
  8702. done
  8703. echo "$as_me:$LINENO: checking for working mktime" >&5
  8704. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8705. if test "${ac_cv_func_working_mktime+set}" = set; then
  8706. echo $ECHO_N "(cached) $ECHO_C" >&6
  8707. else
  8708. if test "$cross_compiling" = yes; then
  8709. ac_cv_func_working_mktime=no
  8710. else
  8711. cat >conftest.$ac_ext <<_ACEOF
  8712. /* confdefs.h. */
  8713. _ACEOF
  8714. cat confdefs.h >>conftest.$ac_ext
  8715. cat >>conftest.$ac_ext <<_ACEOF
  8716. /* end confdefs.h. */
  8717. /* Test program from Paul Eggert and Tony Leneis. */
  8718. #if TIME_WITH_SYS_TIME
  8719. # include <sys/time.h>
  8720. # include <time.h>
  8721. #else
  8722. # if HAVE_SYS_TIME_H
  8723. # include <sys/time.h>
  8724. # else
  8725. # include <time.h>
  8726. # endif
  8727. #endif
  8728. #if HAVE_STDLIB_H
  8729. # include <stdlib.h>
  8730. #endif
  8731. #if HAVE_UNISTD_H
  8732. # include <unistd.h>
  8733. #endif
  8734. #if !HAVE_ALARM
  8735. # define alarm(X) /* empty */
  8736. #endif
  8737. /* Work around redefinition to rpl_putenv by other config tests. */
  8738. #undef putenv
  8739. static time_t time_t_max;
  8740. static time_t time_t_min;
  8741. /* Values we'll use to set the TZ environment variable. */
  8742. static char *tz_strings[] = {
  8743. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8744. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8745. };
  8746. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8747. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8748. Based on a problem report from Andreas Jaeger. */
  8749. static void
  8750. spring_forward_gap ()
  8751. {
  8752. /* glibc (up to about 1998-10-07) failed this test. */
  8753. struct tm tm;
  8754. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8755. instead of "TZ=America/Vancouver" in order to detect the bug even
  8756. on systems that don't support the Olson extension, or don't have the
  8757. full zoneinfo tables installed. */
  8758. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8759. tm.tm_year = 98;
  8760. tm.tm_mon = 3;
  8761. tm.tm_mday = 5;
  8762. tm.tm_hour = 2;
  8763. tm.tm_min = 0;
  8764. tm.tm_sec = 0;
  8765. tm.tm_isdst = -1;
  8766. if (mktime (&tm) == (time_t)-1)
  8767. exit (1);
  8768. }
  8769. static void
  8770. mktime_test1 (now)
  8771. time_t now;
  8772. {
  8773. struct tm *lt;
  8774. if ((lt = localtime (&now)) && mktime (lt) != now)
  8775. exit (1);
  8776. }
  8777. static void
  8778. mktime_test (now)
  8779. time_t now;
  8780. {
  8781. mktime_test1 (now);
  8782. mktime_test1 ((time_t) (time_t_max - now));
  8783. mktime_test1 ((time_t) (time_t_min + now));
  8784. }
  8785. static void
  8786. irix_6_4_bug ()
  8787. {
  8788. /* Based on code from Ariel Faigon. */
  8789. struct tm tm;
  8790. tm.tm_year = 96;
  8791. tm.tm_mon = 3;
  8792. tm.tm_mday = 0;
  8793. tm.tm_hour = 0;
  8794. tm.tm_min = 0;
  8795. tm.tm_sec = 0;
  8796. tm.tm_isdst = -1;
  8797. mktime (&tm);
  8798. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8799. exit (1);
  8800. }
  8801. static void
  8802. bigtime_test (j)
  8803. int j;
  8804. {
  8805. struct tm tm;
  8806. time_t now;
  8807. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8808. now = mktime (&tm);
  8809. if (now != (time_t) -1)
  8810. {
  8811. struct tm *lt = localtime (&now);
  8812. if (! (lt
  8813. && lt->tm_year == tm.tm_year
  8814. && lt->tm_mon == tm.tm_mon
  8815. && lt->tm_mday == tm.tm_mday
  8816. && lt->tm_hour == tm.tm_hour
  8817. && lt->tm_min == tm.tm_min
  8818. && lt->tm_sec == tm.tm_sec
  8819. && lt->tm_yday == tm.tm_yday
  8820. && lt->tm_wday == tm.tm_wday
  8821. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8822. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8823. exit (1);
  8824. }
  8825. }
  8826. int
  8827. main ()
  8828. {
  8829. time_t t, delta;
  8830. int i, j;
  8831. /* This test makes some buggy mktime implementations loop.
  8832. Give up after 60 seconds; a mktime slower than that
  8833. isn't worth using anyway. */
  8834. alarm (60);
  8835. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8836. continue;
  8837. time_t_max--;
  8838. if ((time_t) -1 < 0)
  8839. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8840. continue;
  8841. delta = time_t_max / 997; /* a suitable prime number */
  8842. for (i = 0; i < N_STRINGS; i++)
  8843. {
  8844. if (tz_strings[i])
  8845. putenv (tz_strings[i]);
  8846. for (t = 0; t <= time_t_max - delta; t += delta)
  8847. mktime_test (t);
  8848. mktime_test ((time_t) 1);
  8849. mktime_test ((time_t) (60 * 60));
  8850. mktime_test ((time_t) (60 * 60 * 24));
  8851. for (j = 1; 0 < j; j *= 2)
  8852. bigtime_test (j);
  8853. bigtime_test (j - 1);
  8854. }
  8855. irix_6_4_bug ();
  8856. spring_forward_gap ();
  8857. exit (0);
  8858. }
  8859. _ACEOF
  8860. rm -f conftest$ac_exeext
  8861. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8862. (eval $ac_link) 2>&5
  8863. ac_status=$?
  8864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8865. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8867. (eval $ac_try) 2>&5
  8868. ac_status=$?
  8869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8870. (exit $ac_status); }; }; then
  8871. ac_cv_func_working_mktime=yes
  8872. else
  8873. echo "$as_me: program exited with status $ac_status" >&5
  8874. echo "$as_me: failed program was:" >&5
  8875. sed 's/^/| /' conftest.$ac_ext >&5
  8876. ( exit $ac_status )
  8877. ac_cv_func_working_mktime=no
  8878. fi
  8879. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8880. fi
  8881. fi
  8882. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8883. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8884. if test $ac_cv_func_working_mktime = no; then
  8885. case $LIBOBJS in
  8886. "mktime.$ac_objext" | \
  8887. *" mktime.$ac_objext" | \
  8888. "mktime.$ac_objext "* | \
  8889. *" mktime.$ac_objext "* ) ;;
  8890. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8891. esac
  8892. fi
  8893. for ac_header in stdlib.h unistd.h
  8894. do
  8895. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8897. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8898. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8899. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8900. echo $ECHO_N "(cached) $ECHO_C" >&6
  8901. fi
  8902. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8903. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8904. else
  8905. # Is the header compilable?
  8906. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8907. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8908. cat >conftest.$ac_ext <<_ACEOF
  8909. /* confdefs.h. */
  8910. _ACEOF
  8911. cat confdefs.h >>conftest.$ac_ext
  8912. cat >>conftest.$ac_ext <<_ACEOF
  8913. /* end confdefs.h. */
  8914. $ac_includes_default
  8915. #include <$ac_header>
  8916. _ACEOF
  8917. rm -f conftest.$ac_objext
  8918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8919. (eval $ac_compile) 2>conftest.er1
  8920. ac_status=$?
  8921. grep -v '^ *+' conftest.er1 >conftest.err
  8922. rm -f conftest.er1
  8923. cat conftest.err >&5
  8924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925. (exit $ac_status); } &&
  8926. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8928. (eval $ac_try) 2>&5
  8929. ac_status=$?
  8930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8931. (exit $ac_status); }; } &&
  8932. { ac_try='test -s conftest.$ac_objext'
  8933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8934. (eval $ac_try) 2>&5
  8935. ac_status=$?
  8936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8937. (exit $ac_status); }; }; then
  8938. ac_header_compiler=yes
  8939. else
  8940. echo "$as_me: failed program was:" >&5
  8941. sed 's/^/| /' conftest.$ac_ext >&5
  8942. ac_header_compiler=no
  8943. fi
  8944. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8945. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8946. echo "${ECHO_T}$ac_header_compiler" >&6
  8947. # Is the header present?
  8948. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8949. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8950. cat >conftest.$ac_ext <<_ACEOF
  8951. /* confdefs.h. */
  8952. _ACEOF
  8953. cat confdefs.h >>conftest.$ac_ext
  8954. cat >>conftest.$ac_ext <<_ACEOF
  8955. /* end confdefs.h. */
  8956. #include <$ac_header>
  8957. _ACEOF
  8958. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8959. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8960. ac_status=$?
  8961. grep -v '^ *+' conftest.er1 >conftest.err
  8962. rm -f conftest.er1
  8963. cat conftest.err >&5
  8964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8965. (exit $ac_status); } >/dev/null; then
  8966. if test -s conftest.err; then
  8967. ac_cpp_err=$ac_c_preproc_warn_flag
  8968. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8969. else
  8970. ac_cpp_err=
  8971. fi
  8972. else
  8973. ac_cpp_err=yes
  8974. fi
  8975. if test -z "$ac_cpp_err"; then
  8976. ac_header_preproc=yes
  8977. else
  8978. echo "$as_me: failed program was:" >&5
  8979. sed 's/^/| /' conftest.$ac_ext >&5
  8980. ac_header_preproc=no
  8981. fi
  8982. rm -f conftest.err conftest.$ac_ext
  8983. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8984. echo "${ECHO_T}$ac_header_preproc" >&6
  8985. # So? What about this header?
  8986. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8987. yes:no: )
  8988. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8989. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8990. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8991. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8992. ac_header_preproc=yes
  8993. ;;
  8994. no:yes:* )
  8995. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8996. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8997. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8998. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8999. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9000. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9001. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9002. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9003. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9004. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9005. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9006. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9007. (
  9008. cat <<\_ASBOX
  9009. ## ------------------------------------------ ##
  9010. ## Report this to the AC_PACKAGE_NAME lists. ##
  9011. ## ------------------------------------------ ##
  9012. _ASBOX
  9013. ) |
  9014. sed "s/^/$as_me: WARNING: /" >&2
  9015. ;;
  9016. esac
  9017. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9018. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9019. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9020. echo $ECHO_N "(cached) $ECHO_C" >&6
  9021. else
  9022. eval "$as_ac_Header=\$ac_header_preproc"
  9023. fi
  9024. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9025. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9026. fi
  9027. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9028. cat >>confdefs.h <<_ACEOF
  9029. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9030. _ACEOF
  9031. fi
  9032. done
  9033. for ac_func in getpagesize
  9034. do
  9035. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9036. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9037. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9038. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9039. echo $ECHO_N "(cached) $ECHO_C" >&6
  9040. else
  9041. cat >conftest.$ac_ext <<_ACEOF
  9042. /* confdefs.h. */
  9043. _ACEOF
  9044. cat confdefs.h >>conftest.$ac_ext
  9045. cat >>conftest.$ac_ext <<_ACEOF
  9046. /* end confdefs.h. */
  9047. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9048. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9049. #define $ac_func innocuous_$ac_func
  9050. /* System header to define __stub macros and hopefully few prototypes,
  9051. which can conflict with char $ac_func (); below.
  9052. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9053. <limits.h> exists even on freestanding compilers. */
  9054. #ifdef __STDC__
  9055. # include <limits.h>
  9056. #else
  9057. # include <assert.h>
  9058. #endif
  9059. #undef $ac_func
  9060. /* Override any gcc2 internal prototype to avoid an error. */
  9061. #ifdef __cplusplus
  9062. extern "C"
  9063. {
  9064. #endif
  9065. /* We use char because int might match the return type of a gcc2
  9066. builtin and then its argument prototype would still apply. */
  9067. char $ac_func ();
  9068. /* The GNU C library defines this for functions which it implements
  9069. to always fail with ENOSYS. Some functions are actually named
  9070. something starting with __ and the normal name is an alias. */
  9071. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9072. choke me
  9073. #else
  9074. char (*f) () = $ac_func;
  9075. #endif
  9076. #ifdef __cplusplus
  9077. }
  9078. #endif
  9079. int
  9080. main ()
  9081. {
  9082. return f != $ac_func;
  9083. ;
  9084. return 0;
  9085. }
  9086. _ACEOF
  9087. rm -f conftest.$ac_objext conftest$ac_exeext
  9088. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9089. (eval $ac_link) 2>conftest.er1
  9090. ac_status=$?
  9091. grep -v '^ *+' conftest.er1 >conftest.err
  9092. rm -f conftest.er1
  9093. cat conftest.err >&5
  9094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9095. (exit $ac_status); } &&
  9096. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9098. (eval $ac_try) 2>&5
  9099. ac_status=$?
  9100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9101. (exit $ac_status); }; } &&
  9102. { ac_try='test -s conftest$ac_exeext'
  9103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9104. (eval $ac_try) 2>&5
  9105. ac_status=$?
  9106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9107. (exit $ac_status); }; }; then
  9108. eval "$as_ac_var=yes"
  9109. else
  9110. echo "$as_me: failed program was:" >&5
  9111. sed 's/^/| /' conftest.$ac_ext >&5
  9112. eval "$as_ac_var=no"
  9113. fi
  9114. rm -f conftest.err conftest.$ac_objext \
  9115. conftest$ac_exeext conftest.$ac_ext
  9116. fi
  9117. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9118. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9119. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9120. cat >>confdefs.h <<_ACEOF
  9121. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9122. _ACEOF
  9123. fi
  9124. done
  9125. echo "$as_me:$LINENO: checking for working mmap" >&5
  9126. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9127. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9128. echo $ECHO_N "(cached) $ECHO_C" >&6
  9129. else
  9130. if test "$cross_compiling" = yes; then
  9131. ac_cv_func_mmap_fixed_mapped=no
  9132. else
  9133. cat >conftest.$ac_ext <<_ACEOF
  9134. /* confdefs.h. */
  9135. _ACEOF
  9136. cat confdefs.h >>conftest.$ac_ext
  9137. cat >>conftest.$ac_ext <<_ACEOF
  9138. /* end confdefs.h. */
  9139. $ac_includes_default
  9140. /* malloc might have been renamed as rpl_malloc. */
  9141. #undef malloc
  9142. /* Thanks to Mike Haertel and Jim Avera for this test.
  9143. Here is a matrix of mmap possibilities:
  9144. mmap private not fixed
  9145. mmap private fixed at somewhere currently unmapped
  9146. mmap private fixed at somewhere already mapped
  9147. mmap shared not fixed
  9148. mmap shared fixed at somewhere currently unmapped
  9149. mmap shared fixed at somewhere already mapped
  9150. For private mappings, we should verify that changes cannot be read()
  9151. back from the file, nor mmap's back from the file at a different
  9152. address. (There have been systems where private was not correctly
  9153. implemented like the infamous i386 svr4.0, and systems where the
  9154. VM page cache was not coherent with the file system buffer cache
  9155. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9156. For shared mappings, we should conversely verify that changes get
  9157. propagated back to all the places they're supposed to be.
  9158. Grep wants private fixed already mapped.
  9159. The main things grep needs to know about mmap are:
  9160. * does it exist and is it safe to write into the mmap'd area
  9161. * how to use it (BSD variants) */
  9162. #include <fcntl.h>
  9163. #include <sys/mman.h>
  9164. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9165. char *malloc ();
  9166. #endif
  9167. /* This mess was copied from the GNU getpagesize.h. */
  9168. #if !HAVE_GETPAGESIZE
  9169. /* Assume that all systems that can run configure have sys/param.h. */
  9170. # if !HAVE_SYS_PARAM_H
  9171. # define HAVE_SYS_PARAM_H 1
  9172. # endif
  9173. # ifdef _SC_PAGESIZE
  9174. # define getpagesize() sysconf(_SC_PAGESIZE)
  9175. # else /* no _SC_PAGESIZE */
  9176. # if HAVE_SYS_PARAM_H
  9177. # include <sys/param.h>
  9178. # ifdef EXEC_PAGESIZE
  9179. # define getpagesize() EXEC_PAGESIZE
  9180. # else /* no EXEC_PAGESIZE */
  9181. # ifdef NBPG
  9182. # define getpagesize() NBPG * CLSIZE
  9183. # ifndef CLSIZE
  9184. # define CLSIZE 1
  9185. # endif /* no CLSIZE */
  9186. # else /* no NBPG */
  9187. # ifdef NBPC
  9188. # define getpagesize() NBPC
  9189. # else /* no NBPC */
  9190. # ifdef PAGESIZE
  9191. # define getpagesize() PAGESIZE
  9192. # endif /* PAGESIZE */
  9193. # endif /* no NBPC */
  9194. # endif /* no NBPG */
  9195. # endif /* no EXEC_PAGESIZE */
  9196. # else /* no HAVE_SYS_PARAM_H */
  9197. # define getpagesize() 8192 /* punt totally */
  9198. # endif /* no HAVE_SYS_PARAM_H */
  9199. # endif /* no _SC_PAGESIZE */
  9200. #endif /* no HAVE_GETPAGESIZE */
  9201. int
  9202. main ()
  9203. {
  9204. char *data, *data2, *data3;
  9205. int i, pagesize;
  9206. int fd;
  9207. pagesize = getpagesize ();
  9208. /* First, make a file with some known garbage in it. */
  9209. data = (char *) malloc (pagesize);
  9210. if (!data)
  9211. exit (1);
  9212. for (i = 0; i < pagesize; ++i)
  9213. *(data + i) = rand ();
  9214. umask (0);
  9215. fd = creat ("conftest.mmap", 0600);
  9216. if (fd < 0)
  9217. exit (1);
  9218. if (write (fd, data, pagesize) != pagesize)
  9219. exit (1);
  9220. close (fd);
  9221. /* Next, try to mmap the file at a fixed address which already has
  9222. something else allocated at it. If we can, also make sure that
  9223. we see the same garbage. */
  9224. fd = open ("conftest.mmap", O_RDWR);
  9225. if (fd < 0)
  9226. exit (1);
  9227. data2 = (char *) malloc (2 * pagesize);
  9228. if (!data2)
  9229. exit (1);
  9230. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9231. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9232. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9233. exit (1);
  9234. for (i = 0; i < pagesize; ++i)
  9235. if (*(data + i) != *(data2 + i))
  9236. exit (1);
  9237. /* Finally, make sure that changes to the mapped area do not
  9238. percolate back to the file as seen by read(). (This is a bug on
  9239. some variants of i386 svr4.0.) */
  9240. for (i = 0; i < pagesize; ++i)
  9241. *(data2 + i) = *(data2 + i) + 1;
  9242. data3 = (char *) malloc (pagesize);
  9243. if (!data3)
  9244. exit (1);
  9245. if (read (fd, data3, pagesize) != pagesize)
  9246. exit (1);
  9247. for (i = 0; i < pagesize; ++i)
  9248. if (*(data + i) != *(data3 + i))
  9249. exit (1);
  9250. close (fd);
  9251. exit (0);
  9252. }
  9253. _ACEOF
  9254. rm -f conftest$ac_exeext
  9255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9256. (eval $ac_link) 2>&5
  9257. ac_status=$?
  9258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9259. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9261. (eval $ac_try) 2>&5
  9262. ac_status=$?
  9263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9264. (exit $ac_status); }; }; then
  9265. ac_cv_func_mmap_fixed_mapped=yes
  9266. else
  9267. echo "$as_me: program exited with status $ac_status" >&5
  9268. echo "$as_me: failed program was:" >&5
  9269. sed 's/^/| /' conftest.$ac_ext >&5
  9270. ( exit $ac_status )
  9271. ac_cv_func_mmap_fixed_mapped=no
  9272. fi
  9273. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9274. fi
  9275. fi
  9276. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9277. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9278. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9279. cat >>confdefs.h <<\_ACEOF
  9280. #define HAVE_MMAP 1
  9281. _ACEOF
  9282. fi
  9283. rm -f conftest.mmap
  9284. for ac_header in stdlib.h
  9285. do
  9286. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9287. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9288. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9289. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9290. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9291. echo $ECHO_N "(cached) $ECHO_C" >&6
  9292. fi
  9293. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9294. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9295. else
  9296. # Is the header compilable?
  9297. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9298. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9299. cat >conftest.$ac_ext <<_ACEOF
  9300. /* confdefs.h. */
  9301. _ACEOF
  9302. cat confdefs.h >>conftest.$ac_ext
  9303. cat >>conftest.$ac_ext <<_ACEOF
  9304. /* end confdefs.h. */
  9305. $ac_includes_default
  9306. #include <$ac_header>
  9307. _ACEOF
  9308. rm -f conftest.$ac_objext
  9309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9310. (eval $ac_compile) 2>conftest.er1
  9311. ac_status=$?
  9312. grep -v '^ *+' conftest.er1 >conftest.err
  9313. rm -f conftest.er1
  9314. cat conftest.err >&5
  9315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9316. (exit $ac_status); } &&
  9317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9319. (eval $ac_try) 2>&5
  9320. ac_status=$?
  9321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9322. (exit $ac_status); }; } &&
  9323. { ac_try='test -s conftest.$ac_objext'
  9324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9325. (eval $ac_try) 2>&5
  9326. ac_status=$?
  9327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9328. (exit $ac_status); }; }; then
  9329. ac_header_compiler=yes
  9330. else
  9331. echo "$as_me: failed program was:" >&5
  9332. sed 's/^/| /' conftest.$ac_ext >&5
  9333. ac_header_compiler=no
  9334. fi
  9335. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9336. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9337. echo "${ECHO_T}$ac_header_compiler" >&6
  9338. # Is the header present?
  9339. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9340. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9341. cat >conftest.$ac_ext <<_ACEOF
  9342. /* confdefs.h. */
  9343. _ACEOF
  9344. cat confdefs.h >>conftest.$ac_ext
  9345. cat >>conftest.$ac_ext <<_ACEOF
  9346. /* end confdefs.h. */
  9347. #include <$ac_header>
  9348. _ACEOF
  9349. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9350. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9351. ac_status=$?
  9352. grep -v '^ *+' conftest.er1 >conftest.err
  9353. rm -f conftest.er1
  9354. cat conftest.err >&5
  9355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9356. (exit $ac_status); } >/dev/null; then
  9357. if test -s conftest.err; then
  9358. ac_cpp_err=$ac_c_preproc_warn_flag
  9359. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9360. else
  9361. ac_cpp_err=
  9362. fi
  9363. else
  9364. ac_cpp_err=yes
  9365. fi
  9366. if test -z "$ac_cpp_err"; then
  9367. ac_header_preproc=yes
  9368. else
  9369. echo "$as_me: failed program was:" >&5
  9370. sed 's/^/| /' conftest.$ac_ext >&5
  9371. ac_header_preproc=no
  9372. fi
  9373. rm -f conftest.err conftest.$ac_ext
  9374. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9375. echo "${ECHO_T}$ac_header_preproc" >&6
  9376. # So? What about this header?
  9377. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9378. yes:no: )
  9379. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9380. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9381. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9382. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9383. ac_header_preproc=yes
  9384. ;;
  9385. no:yes:* )
  9386. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9387. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9388. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9389. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9390. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9391. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9392. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9393. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9394. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9395. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9396. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9397. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9398. (
  9399. cat <<\_ASBOX
  9400. ## ------------------------------------------ ##
  9401. ## Report this to the AC_PACKAGE_NAME lists. ##
  9402. ## ------------------------------------------ ##
  9403. _ASBOX
  9404. ) |
  9405. sed "s/^/$as_me: WARNING: /" >&2
  9406. ;;
  9407. esac
  9408. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9409. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9410. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9411. echo $ECHO_N "(cached) $ECHO_C" >&6
  9412. else
  9413. eval "$as_ac_Header=\$ac_header_preproc"
  9414. fi
  9415. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9416. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9417. fi
  9418. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9419. cat >>confdefs.h <<_ACEOF
  9420. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9421. _ACEOF
  9422. fi
  9423. done
  9424. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9425. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9426. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9427. echo $ECHO_N "(cached) $ECHO_C" >&6
  9428. else
  9429. if test "$cross_compiling" = yes; then
  9430. ac_cv_func_realloc_0_nonnull=no
  9431. else
  9432. cat >conftest.$ac_ext <<_ACEOF
  9433. /* confdefs.h. */
  9434. _ACEOF
  9435. cat confdefs.h >>conftest.$ac_ext
  9436. cat >>conftest.$ac_ext <<_ACEOF
  9437. /* end confdefs.h. */
  9438. #if STDC_HEADERS || HAVE_STDLIB_H
  9439. # include <stdlib.h>
  9440. #else
  9441. char *realloc ();
  9442. #endif
  9443. int
  9444. main ()
  9445. {
  9446. exit (realloc (0, 0) ? 0 : 1);
  9447. ;
  9448. return 0;
  9449. }
  9450. _ACEOF
  9451. rm -f conftest$ac_exeext
  9452. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9453. (eval $ac_link) 2>&5
  9454. ac_status=$?
  9455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9456. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9458. (eval $ac_try) 2>&5
  9459. ac_status=$?
  9460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9461. (exit $ac_status); }; }; then
  9462. ac_cv_func_realloc_0_nonnull=yes
  9463. else
  9464. echo "$as_me: program exited with status $ac_status" >&5
  9465. echo "$as_me: failed program was:" >&5
  9466. sed 's/^/| /' conftest.$ac_ext >&5
  9467. ( exit $ac_status )
  9468. ac_cv_func_realloc_0_nonnull=no
  9469. fi
  9470. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9471. fi
  9472. fi
  9473. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9474. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9475. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9476. cat >>confdefs.h <<\_ACEOF
  9477. #define HAVE_REALLOC 1
  9478. _ACEOF
  9479. else
  9480. cat >>confdefs.h <<\_ACEOF
  9481. #define HAVE_REALLOC 0
  9482. _ACEOF
  9483. case $LIBOBJS in
  9484. "realloc.$ac_objext" | \
  9485. *" realloc.$ac_objext" | \
  9486. "realloc.$ac_objext "* | \
  9487. *" realloc.$ac_objext "* ) ;;
  9488. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9489. esac
  9490. cat >>confdefs.h <<\_ACEOF
  9491. #define realloc rpl_realloc
  9492. _ACEOF
  9493. fi
  9494. for ac_header in sys/select.h sys/socket.h
  9495. do
  9496. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9497. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9498. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9499. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9500. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9501. echo $ECHO_N "(cached) $ECHO_C" >&6
  9502. fi
  9503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9504. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9505. else
  9506. # Is the header compilable?
  9507. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9508. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9509. cat >conftest.$ac_ext <<_ACEOF
  9510. /* confdefs.h. */
  9511. _ACEOF
  9512. cat confdefs.h >>conftest.$ac_ext
  9513. cat >>conftest.$ac_ext <<_ACEOF
  9514. /* end confdefs.h. */
  9515. $ac_includes_default
  9516. #include <$ac_header>
  9517. _ACEOF
  9518. rm -f conftest.$ac_objext
  9519. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9520. (eval $ac_compile) 2>conftest.er1
  9521. ac_status=$?
  9522. grep -v '^ *+' conftest.er1 >conftest.err
  9523. rm -f conftest.er1
  9524. cat conftest.err >&5
  9525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); } &&
  9527. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9529. (eval $ac_try) 2>&5
  9530. ac_status=$?
  9531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9532. (exit $ac_status); }; } &&
  9533. { ac_try='test -s conftest.$ac_objext'
  9534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9535. (eval $ac_try) 2>&5
  9536. ac_status=$?
  9537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9538. (exit $ac_status); }; }; then
  9539. ac_header_compiler=yes
  9540. else
  9541. echo "$as_me: failed program was:" >&5
  9542. sed 's/^/| /' conftest.$ac_ext >&5
  9543. ac_header_compiler=no
  9544. fi
  9545. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9546. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9547. echo "${ECHO_T}$ac_header_compiler" >&6
  9548. # Is the header present?
  9549. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9550. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9551. cat >conftest.$ac_ext <<_ACEOF
  9552. /* confdefs.h. */
  9553. _ACEOF
  9554. cat confdefs.h >>conftest.$ac_ext
  9555. cat >>conftest.$ac_ext <<_ACEOF
  9556. /* end confdefs.h. */
  9557. #include <$ac_header>
  9558. _ACEOF
  9559. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9560. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9561. ac_status=$?
  9562. grep -v '^ *+' conftest.er1 >conftest.err
  9563. rm -f conftest.er1
  9564. cat conftest.err >&5
  9565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9566. (exit $ac_status); } >/dev/null; then
  9567. if test -s conftest.err; then
  9568. ac_cpp_err=$ac_c_preproc_warn_flag
  9569. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9570. else
  9571. ac_cpp_err=
  9572. fi
  9573. else
  9574. ac_cpp_err=yes
  9575. fi
  9576. if test -z "$ac_cpp_err"; then
  9577. ac_header_preproc=yes
  9578. else
  9579. echo "$as_me: failed program was:" >&5
  9580. sed 's/^/| /' conftest.$ac_ext >&5
  9581. ac_header_preproc=no
  9582. fi
  9583. rm -f conftest.err conftest.$ac_ext
  9584. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9585. echo "${ECHO_T}$ac_header_preproc" >&6
  9586. # So? What about this header?
  9587. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9588. yes:no: )
  9589. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9590. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9592. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9593. ac_header_preproc=yes
  9594. ;;
  9595. no:yes:* )
  9596. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9597. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9598. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9599. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9600. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9601. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9602. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9603. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9604. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9605. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9606. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9607. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9608. (
  9609. cat <<\_ASBOX
  9610. ## ------------------------------------------ ##
  9611. ## Report this to the AC_PACKAGE_NAME lists. ##
  9612. ## ------------------------------------------ ##
  9613. _ASBOX
  9614. ) |
  9615. sed "s/^/$as_me: WARNING: /" >&2
  9616. ;;
  9617. esac
  9618. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9619. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9620. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9621. echo $ECHO_N "(cached) $ECHO_C" >&6
  9622. else
  9623. eval "$as_ac_Header=\$ac_header_preproc"
  9624. fi
  9625. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9626. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9627. fi
  9628. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9629. cat >>confdefs.h <<_ACEOF
  9630. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9631. _ACEOF
  9632. fi
  9633. done
  9634. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9635. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9636. if test "${ac_cv_func_select_args+set}" = set; then
  9637. echo $ECHO_N "(cached) $ECHO_C" >&6
  9638. else
  9639. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9640. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9641. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9642. cat >conftest.$ac_ext <<_ACEOF
  9643. /* confdefs.h. */
  9644. _ACEOF
  9645. cat confdefs.h >>conftest.$ac_ext
  9646. cat >>conftest.$ac_ext <<_ACEOF
  9647. /* end confdefs.h. */
  9648. $ac_includes_default
  9649. #if HAVE_SYS_SELECT_H
  9650. # include <sys/select.h>
  9651. #endif
  9652. #if HAVE_SYS_SOCKET_H
  9653. # include <sys/socket.h>
  9654. #endif
  9655. int
  9656. main ()
  9657. {
  9658. extern int select ($ac_arg1,
  9659. $ac_arg234, $ac_arg234, $ac_arg234,
  9660. $ac_arg5);
  9661. ;
  9662. return 0;
  9663. }
  9664. _ACEOF
  9665. rm -f conftest.$ac_objext
  9666. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9667. (eval $ac_compile) 2>conftest.er1
  9668. ac_status=$?
  9669. grep -v '^ *+' conftest.er1 >conftest.err
  9670. rm -f conftest.er1
  9671. cat conftest.err >&5
  9672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9673. (exit $ac_status); } &&
  9674. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9675. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9676. (eval $ac_try) 2>&5
  9677. ac_status=$?
  9678. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9679. (exit $ac_status); }; } &&
  9680. { ac_try='test -s conftest.$ac_objext'
  9681. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9682. (eval $ac_try) 2>&5
  9683. ac_status=$?
  9684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9685. (exit $ac_status); }; }; then
  9686. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9687. else
  9688. echo "$as_me: failed program was:" >&5
  9689. sed 's/^/| /' conftest.$ac_ext >&5
  9690. fi
  9691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9692. done
  9693. done
  9694. done
  9695. # Provide a safe default value.
  9696. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9697. fi
  9698. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9699. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9700. ac_save_IFS=$IFS; IFS=','
  9701. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9702. IFS=$ac_save_IFS
  9703. shift
  9704. cat >>confdefs.h <<_ACEOF
  9705. #define SELECT_TYPE_ARG1 $1
  9706. _ACEOF
  9707. cat >>confdefs.h <<_ACEOF
  9708. #define SELECT_TYPE_ARG234 ($2)
  9709. _ACEOF
  9710. cat >>confdefs.h <<_ACEOF
  9711. #define SELECT_TYPE_ARG5 ($3)
  9712. _ACEOF
  9713. rm -f conftest*
  9714. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9715. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9716. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9717. echo $ECHO_N "(cached) $ECHO_C" >&6
  9718. else
  9719. if test "$cross_compiling" = yes; then
  9720. ac_cv_func_stat_empty_string_bug=yes
  9721. else
  9722. cat >conftest.$ac_ext <<_ACEOF
  9723. /* confdefs.h. */
  9724. _ACEOF
  9725. cat confdefs.h >>conftest.$ac_ext
  9726. cat >>conftest.$ac_ext <<_ACEOF
  9727. /* end confdefs.h. */
  9728. $ac_includes_default
  9729. int
  9730. main ()
  9731. {
  9732. struct stat sbuf;
  9733. exit (stat ("", &sbuf) ? 1 : 0);
  9734. ;
  9735. return 0;
  9736. }
  9737. _ACEOF
  9738. rm -f conftest$ac_exeext
  9739. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9740. (eval $ac_link) 2>&5
  9741. ac_status=$?
  9742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9743. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9745. (eval $ac_try) 2>&5
  9746. ac_status=$?
  9747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748. (exit $ac_status); }; }; then
  9749. ac_cv_func_stat_empty_string_bug=yes
  9750. else
  9751. echo "$as_me: program exited with status $ac_status" >&5
  9752. echo "$as_me: failed program was:" >&5
  9753. sed 's/^/| /' conftest.$ac_ext >&5
  9754. ( exit $ac_status )
  9755. ac_cv_func_stat_empty_string_bug=no
  9756. fi
  9757. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9758. fi
  9759. fi
  9760. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9761. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9762. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9763. case $LIBOBJS in
  9764. "stat.$ac_objext" | \
  9765. *" stat.$ac_objext" | \
  9766. "stat.$ac_objext "* | \
  9767. *" stat.$ac_objext "* ) ;;
  9768. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9769. esac
  9770. cat >>confdefs.h <<_ACEOF
  9771. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9772. _ACEOF
  9773. fi
  9774. for ac_func in strftime
  9775. do
  9776. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9777. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9778. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9779. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9780. echo $ECHO_N "(cached) $ECHO_C" >&6
  9781. else
  9782. cat >conftest.$ac_ext <<_ACEOF
  9783. /* confdefs.h. */
  9784. _ACEOF
  9785. cat confdefs.h >>conftest.$ac_ext
  9786. cat >>conftest.$ac_ext <<_ACEOF
  9787. /* end confdefs.h. */
  9788. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9789. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9790. #define $ac_func innocuous_$ac_func
  9791. /* System header to define __stub macros and hopefully few prototypes,
  9792. which can conflict with char $ac_func (); below.
  9793. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9794. <limits.h> exists even on freestanding compilers. */
  9795. #ifdef __STDC__
  9796. # include <limits.h>
  9797. #else
  9798. # include <assert.h>
  9799. #endif
  9800. #undef $ac_func
  9801. /* Override any gcc2 internal prototype to avoid an error. */
  9802. #ifdef __cplusplus
  9803. extern "C"
  9804. {
  9805. #endif
  9806. /* We use char because int might match the return type of a gcc2
  9807. builtin and then its argument prototype would still apply. */
  9808. char $ac_func ();
  9809. /* The GNU C library defines this for functions which it implements
  9810. to always fail with ENOSYS. Some functions are actually named
  9811. something starting with __ and the normal name is an alias. */
  9812. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9813. choke me
  9814. #else
  9815. char (*f) () = $ac_func;
  9816. #endif
  9817. #ifdef __cplusplus
  9818. }
  9819. #endif
  9820. int
  9821. main ()
  9822. {
  9823. return f != $ac_func;
  9824. ;
  9825. return 0;
  9826. }
  9827. _ACEOF
  9828. rm -f conftest.$ac_objext conftest$ac_exeext
  9829. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9830. (eval $ac_link) 2>conftest.er1
  9831. ac_status=$?
  9832. grep -v '^ *+' conftest.er1 >conftest.err
  9833. rm -f conftest.er1
  9834. cat conftest.err >&5
  9835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9836. (exit $ac_status); } &&
  9837. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9839. (eval $ac_try) 2>&5
  9840. ac_status=$?
  9841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9842. (exit $ac_status); }; } &&
  9843. { ac_try='test -s conftest$ac_exeext'
  9844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9845. (eval $ac_try) 2>&5
  9846. ac_status=$?
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); }; }; then
  9849. eval "$as_ac_var=yes"
  9850. else
  9851. echo "$as_me: failed program was:" >&5
  9852. sed 's/^/| /' conftest.$ac_ext >&5
  9853. eval "$as_ac_var=no"
  9854. fi
  9855. rm -f conftest.err conftest.$ac_objext \
  9856. conftest$ac_exeext conftest.$ac_ext
  9857. fi
  9858. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9859. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9860. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9861. cat >>confdefs.h <<_ACEOF
  9862. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9863. _ACEOF
  9864. else
  9865. # strftime is in -lintl on SCO UNIX.
  9866. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9867. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9868. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9869. echo $ECHO_N "(cached) $ECHO_C" >&6
  9870. else
  9871. ac_check_lib_save_LIBS=$LIBS
  9872. LIBS="-lintl $LIBS"
  9873. cat >conftest.$ac_ext <<_ACEOF
  9874. /* confdefs.h. */
  9875. _ACEOF
  9876. cat confdefs.h >>conftest.$ac_ext
  9877. cat >>conftest.$ac_ext <<_ACEOF
  9878. /* end confdefs.h. */
  9879. /* Override any gcc2 internal prototype to avoid an error. */
  9880. #ifdef __cplusplus
  9881. extern "C"
  9882. #endif
  9883. /* We use char because int might match the return type of a gcc2
  9884. builtin and then its argument prototype would still apply. */
  9885. char strftime ();
  9886. int
  9887. main ()
  9888. {
  9889. strftime ();
  9890. ;
  9891. return 0;
  9892. }
  9893. _ACEOF
  9894. rm -f conftest.$ac_objext conftest$ac_exeext
  9895. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9896. (eval $ac_link) 2>conftest.er1
  9897. ac_status=$?
  9898. grep -v '^ *+' conftest.er1 >conftest.err
  9899. rm -f conftest.er1
  9900. cat conftest.err >&5
  9901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9902. (exit $ac_status); } &&
  9903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9905. (eval $ac_try) 2>&5
  9906. ac_status=$?
  9907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9908. (exit $ac_status); }; } &&
  9909. { ac_try='test -s conftest$ac_exeext'
  9910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9911. (eval $ac_try) 2>&5
  9912. ac_status=$?
  9913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9914. (exit $ac_status); }; }; then
  9915. ac_cv_lib_intl_strftime=yes
  9916. else
  9917. echo "$as_me: failed program was:" >&5
  9918. sed 's/^/| /' conftest.$ac_ext >&5
  9919. ac_cv_lib_intl_strftime=no
  9920. fi
  9921. rm -f conftest.err conftest.$ac_objext \
  9922. conftest$ac_exeext conftest.$ac_ext
  9923. LIBS=$ac_check_lib_save_LIBS
  9924. fi
  9925. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9926. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9927. if test $ac_cv_lib_intl_strftime = yes; then
  9928. cat >>confdefs.h <<\_ACEOF
  9929. #define HAVE_STRFTIME 1
  9930. _ACEOF
  9931. LIBS="-lintl $LIBS"
  9932. fi
  9933. fi
  9934. done
  9935. #checkpoint
  9936. cat >confcache <<\_ACEOF
  9937. # This file is a shell script that caches the results of configure
  9938. # tests run on this system so they can be shared between configure
  9939. # scripts and configure runs, see configure's option --config-cache.
  9940. # It is not useful on other systems. If it contains results you don't
  9941. # want to keep, you may remove or edit it.
  9942. #
  9943. # config.status only pays attention to the cache file if you give it
  9944. # the --recheck option to rerun configure.
  9945. #
  9946. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9947. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9948. # following values.
  9949. _ACEOF
  9950. # The following way of writing the cache mishandles newlines in values,
  9951. # but we know of no workaround that is simple, portable, and efficient.
  9952. # So, don't put newlines in cache variables' values.
  9953. # Ultrix sh set writes to stderr and can't be redirected directly,
  9954. # and sets the high bit in the cache file unless we assign to the vars.
  9955. {
  9956. (set) 2>&1 |
  9957. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9958. *ac_space=\ *)
  9959. # `set' does not quote correctly, so add quotes (double-quote
  9960. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9961. sed -n \
  9962. "s/'/'\\\\''/g;
  9963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9964. ;;
  9965. *)
  9966. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9967. sed -n \
  9968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9969. ;;
  9970. esac;
  9971. } |
  9972. sed '
  9973. t clear
  9974. : clear
  9975. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9976. t end
  9977. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9978. : end' >>confcache
  9979. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9980. if test -w $cache_file; then
  9981. test "x$cache_file" != "x/dev/null"
  9982. cat confcache >$cache_file
  9983. else
  9984. echo "not updating unwritable cache $cache_file"
  9985. fi
  9986. fi
  9987. rm -f confcache
  9988. for ac_func in clock fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9989. do
  9990. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9991. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9992. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9993. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9994. echo $ECHO_N "(cached) $ECHO_C" >&6
  9995. else
  9996. cat >conftest.$ac_ext <<_ACEOF
  9997. /* confdefs.h. */
  9998. _ACEOF
  9999. cat confdefs.h >>conftest.$ac_ext
  10000. cat >>conftest.$ac_ext <<_ACEOF
  10001. /* end confdefs.h. */
  10002. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10003. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10004. #define $ac_func innocuous_$ac_func
  10005. /* System header to define __stub macros and hopefully few prototypes,
  10006. which can conflict with char $ac_func (); below.
  10007. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10008. <limits.h> exists even on freestanding compilers. */
  10009. #ifdef __STDC__
  10010. # include <limits.h>
  10011. #else
  10012. # include <assert.h>
  10013. #endif
  10014. #undef $ac_func
  10015. /* Override any gcc2 internal prototype to avoid an error. */
  10016. #ifdef __cplusplus
  10017. extern "C"
  10018. {
  10019. #endif
  10020. /* We use char because int might match the return type of a gcc2
  10021. builtin and then its argument prototype would still apply. */
  10022. char $ac_func ();
  10023. /* The GNU C library defines this for functions which it implements
  10024. to always fail with ENOSYS. Some functions are actually named
  10025. something starting with __ and the normal name is an alias. */
  10026. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10027. choke me
  10028. #else
  10029. char (*f) () = $ac_func;
  10030. #endif
  10031. #ifdef __cplusplus
  10032. }
  10033. #endif
  10034. int
  10035. main ()
  10036. {
  10037. return f != $ac_func;
  10038. ;
  10039. return 0;
  10040. }
  10041. _ACEOF
  10042. rm -f conftest.$ac_objext conftest$ac_exeext
  10043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10044. (eval $ac_link) 2>conftest.er1
  10045. ac_status=$?
  10046. grep -v '^ *+' conftest.er1 >conftest.err
  10047. rm -f conftest.er1
  10048. cat conftest.err >&5
  10049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); } &&
  10051. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10053. (eval $ac_try) 2>&5
  10054. ac_status=$?
  10055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10056. (exit $ac_status); }; } &&
  10057. { ac_try='test -s conftest$ac_exeext'
  10058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10059. (eval $ac_try) 2>&5
  10060. ac_status=$?
  10061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10062. (exit $ac_status); }; }; then
  10063. eval "$as_ac_var=yes"
  10064. else
  10065. echo "$as_me: failed program was:" >&5
  10066. sed 's/^/| /' conftest.$ac_ext >&5
  10067. eval "$as_ac_var=no"
  10068. fi
  10069. rm -f conftest.err conftest.$ac_objext \
  10070. conftest$ac_exeext conftest.$ac_ext
  10071. fi
  10072. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10073. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10074. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10075. cat >>confdefs.h <<_ACEOF
  10076. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10077. _ACEOF
  10078. fi
  10079. done
  10080. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10081. do
  10082. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10083. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10084. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10085. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10086. echo $ECHO_N "(cached) $ECHO_C" >&6
  10087. else
  10088. cat >conftest.$ac_ext <<_ACEOF
  10089. /* confdefs.h. */
  10090. _ACEOF
  10091. cat confdefs.h >>conftest.$ac_ext
  10092. cat >>conftest.$ac_ext <<_ACEOF
  10093. /* end confdefs.h. */
  10094. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10095. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10096. #define $ac_func innocuous_$ac_func
  10097. /* System header to define __stub macros and hopefully few prototypes,
  10098. which can conflict with char $ac_func (); below.
  10099. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10100. <limits.h> exists even on freestanding compilers. */
  10101. #ifdef __STDC__
  10102. # include <limits.h>
  10103. #else
  10104. # include <assert.h>
  10105. #endif
  10106. #undef $ac_func
  10107. /* Override any gcc2 internal prototype to avoid an error. */
  10108. #ifdef __cplusplus
  10109. extern "C"
  10110. {
  10111. #endif
  10112. /* We use char because int might match the return type of a gcc2
  10113. builtin and then its argument prototype would still apply. */
  10114. char $ac_func ();
  10115. /* The GNU C library defines this for functions which it implements
  10116. to always fail with ENOSYS. Some functions are actually named
  10117. something starting with __ and the normal name is an alias. */
  10118. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10119. choke me
  10120. #else
  10121. char (*f) () = $ac_func;
  10122. #endif
  10123. #ifdef __cplusplus
  10124. }
  10125. #endif
  10126. int
  10127. main ()
  10128. {
  10129. return f != $ac_func;
  10130. ;
  10131. return 0;
  10132. }
  10133. _ACEOF
  10134. rm -f conftest.$ac_objext conftest$ac_exeext
  10135. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10136. (eval $ac_link) 2>conftest.er1
  10137. ac_status=$?
  10138. grep -v '^ *+' conftest.er1 >conftest.err
  10139. rm -f conftest.er1
  10140. cat conftest.err >&5
  10141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10142. (exit $ac_status); } &&
  10143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10145. (eval $ac_try) 2>&5
  10146. ac_status=$?
  10147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10148. (exit $ac_status); }; } &&
  10149. { ac_try='test -s conftest$ac_exeext'
  10150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10151. (eval $ac_try) 2>&5
  10152. ac_status=$?
  10153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10154. (exit $ac_status); }; }; then
  10155. eval "$as_ac_var=yes"
  10156. else
  10157. echo "$as_me: failed program was:" >&5
  10158. sed 's/^/| /' conftest.$ac_ext >&5
  10159. eval "$as_ac_var=no"
  10160. fi
  10161. rm -f conftest.err conftest.$ac_objext \
  10162. conftest$ac_exeext conftest.$ac_ext
  10163. fi
  10164. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10165. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10166. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10167. cat >>confdefs.h <<_ACEOF
  10168. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10169. _ACEOF
  10170. fi
  10171. done
  10172. #checkpoint
  10173. cat >confcache <<\_ACEOF
  10174. # This file is a shell script that caches the results of configure
  10175. # tests run on this system so they can be shared between configure
  10176. # scripts and configure runs, see configure's option --config-cache.
  10177. # It is not useful on other systems. If it contains results you don't
  10178. # want to keep, you may remove or edit it.
  10179. #
  10180. # config.status only pays attention to the cache file if you give it
  10181. # the --recheck option to rerun configure.
  10182. #
  10183. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10184. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10185. # following values.
  10186. _ACEOF
  10187. # The following way of writing the cache mishandles newlines in values,
  10188. # but we know of no workaround that is simple, portable, and efficient.
  10189. # So, don't put newlines in cache variables' values.
  10190. # Ultrix sh set writes to stderr and can't be redirected directly,
  10191. # and sets the high bit in the cache file unless we assign to the vars.
  10192. {
  10193. (set) 2>&1 |
  10194. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10195. *ac_space=\ *)
  10196. # `set' does not quote correctly, so add quotes (double-quote
  10197. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10198. sed -n \
  10199. "s/'/'\\\\''/g;
  10200. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10201. ;;
  10202. *)
  10203. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10204. sed -n \
  10205. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10206. ;;
  10207. esac;
  10208. } |
  10209. sed '
  10210. t clear
  10211. : clear
  10212. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10213. t end
  10214. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10215. : end' >>confcache
  10216. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10217. if test -w $cache_file; then
  10218. test "x$cache_file" != "x/dev/null"
  10219. cat confcache >$cache_file
  10220. else
  10221. echo "not updating unwritable cache $cache_file"
  10222. fi
  10223. fi
  10224. rm -f confcache
  10225. for ac_func in strcasecmp strncasecmp vsnprintf
  10226. do
  10227. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10228. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10229. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10230. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10231. echo $ECHO_N "(cached) $ECHO_C" >&6
  10232. else
  10233. cat >conftest.$ac_ext <<_ACEOF
  10234. /* confdefs.h. */
  10235. _ACEOF
  10236. cat confdefs.h >>conftest.$ac_ext
  10237. cat >>conftest.$ac_ext <<_ACEOF
  10238. /* end confdefs.h. */
  10239. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10241. #define $ac_func innocuous_$ac_func
  10242. /* System header to define __stub macros and hopefully few prototypes,
  10243. which can conflict with char $ac_func (); below.
  10244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10245. <limits.h> exists even on freestanding compilers. */
  10246. #ifdef __STDC__
  10247. # include <limits.h>
  10248. #else
  10249. # include <assert.h>
  10250. #endif
  10251. #undef $ac_func
  10252. /* Override any gcc2 internal prototype to avoid an error. */
  10253. #ifdef __cplusplus
  10254. extern "C"
  10255. {
  10256. #endif
  10257. /* We use char because int might match the return type of a gcc2
  10258. builtin and then its argument prototype would still apply. */
  10259. char $ac_func ();
  10260. /* The GNU C library defines this for functions which it implements
  10261. to always fail with ENOSYS. Some functions are actually named
  10262. something starting with __ and the normal name is an alias. */
  10263. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10264. choke me
  10265. #else
  10266. char (*f) () = $ac_func;
  10267. #endif
  10268. #ifdef __cplusplus
  10269. }
  10270. #endif
  10271. int
  10272. main ()
  10273. {
  10274. return f != $ac_func;
  10275. ;
  10276. return 0;
  10277. }
  10278. _ACEOF
  10279. rm -f conftest.$ac_objext conftest$ac_exeext
  10280. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10281. (eval $ac_link) 2>conftest.er1
  10282. ac_status=$?
  10283. grep -v '^ *+' conftest.er1 >conftest.err
  10284. rm -f conftest.er1
  10285. cat conftest.err >&5
  10286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10287. (exit $ac_status); } &&
  10288. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10289. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10290. (eval $ac_try) 2>&5
  10291. ac_status=$?
  10292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10293. (exit $ac_status); }; } &&
  10294. { ac_try='test -s conftest$ac_exeext'
  10295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10296. (eval $ac_try) 2>&5
  10297. ac_status=$?
  10298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10299. (exit $ac_status); }; }; then
  10300. eval "$as_ac_var=yes"
  10301. else
  10302. echo "$as_me: failed program was:" >&5
  10303. sed 's/^/| /' conftest.$ac_ext >&5
  10304. eval "$as_ac_var=no"
  10305. fi
  10306. rm -f conftest.err conftest.$ac_objext \
  10307. conftest$ac_exeext conftest.$ac_ext
  10308. fi
  10309. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10310. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10311. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10312. cat >>confdefs.h <<_ACEOF
  10313. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10314. _ACEOF
  10315. fi
  10316. done
  10317. #autoscan suggested this....
  10318. #These are recommended by autoscan, but no code supports it currently
  10319. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen
  10320. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10321. for ac_func in vsprintf
  10322. do
  10323. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10324. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10325. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10326. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10327. echo $ECHO_N "(cached) $ECHO_C" >&6
  10328. else
  10329. cat >conftest.$ac_ext <<_ACEOF
  10330. /* confdefs.h. */
  10331. _ACEOF
  10332. cat confdefs.h >>conftest.$ac_ext
  10333. cat >>conftest.$ac_ext <<_ACEOF
  10334. /* end confdefs.h. */
  10335. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10336. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10337. #define $ac_func innocuous_$ac_func
  10338. /* System header to define __stub macros and hopefully few prototypes,
  10339. which can conflict with char $ac_func (); below.
  10340. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10341. <limits.h> exists even on freestanding compilers. */
  10342. #ifdef __STDC__
  10343. # include <limits.h>
  10344. #else
  10345. # include <assert.h>
  10346. #endif
  10347. #undef $ac_func
  10348. /* Override any gcc2 internal prototype to avoid an error. */
  10349. #ifdef __cplusplus
  10350. extern "C"
  10351. {
  10352. #endif
  10353. /* We use char because int might match the return type of a gcc2
  10354. builtin and then its argument prototype would still apply. */
  10355. char $ac_func ();
  10356. /* The GNU C library defines this for functions which it implements
  10357. to always fail with ENOSYS. Some functions are actually named
  10358. something starting with __ and the normal name is an alias. */
  10359. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10360. choke me
  10361. #else
  10362. char (*f) () = $ac_func;
  10363. #endif
  10364. #ifdef __cplusplus
  10365. }
  10366. #endif
  10367. int
  10368. main ()
  10369. {
  10370. return f != $ac_func;
  10371. ;
  10372. return 0;
  10373. }
  10374. _ACEOF
  10375. rm -f conftest.$ac_objext conftest$ac_exeext
  10376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10377. (eval $ac_link) 2>conftest.er1
  10378. ac_status=$?
  10379. grep -v '^ *+' conftest.er1 >conftest.err
  10380. rm -f conftest.er1
  10381. cat conftest.err >&5
  10382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10383. (exit $ac_status); } &&
  10384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10386. (eval $ac_try) 2>&5
  10387. ac_status=$?
  10388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10389. (exit $ac_status); }; } &&
  10390. { ac_try='test -s conftest$ac_exeext'
  10391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10392. (eval $ac_try) 2>&5
  10393. ac_status=$?
  10394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10395. (exit $ac_status); }; }; then
  10396. eval "$as_ac_var=yes"
  10397. else
  10398. echo "$as_me: failed program was:" >&5
  10399. sed 's/^/| /' conftest.$ac_ext >&5
  10400. eval "$as_ac_var=no"
  10401. fi
  10402. rm -f conftest.err conftest.$ac_objext \
  10403. conftest$ac_exeext conftest.$ac_ext
  10404. fi
  10405. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10406. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10407. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10408. cat >>confdefs.h <<_ACEOF
  10409. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10410. _ACEOF
  10411. fi
  10412. done
  10413. if test "$ac_cv_func_vsprintf" = "no"
  10414. then
  10415. cat << 'EOF' >&2
  10416. configure: error:
  10417. Your system does not have the sprintf/vsprintf libraries.
  10418. These are required to compile almost anything. Sorry.
  10419. EOF
  10420. exit 1
  10421. fi
  10422. for ac_func in uname
  10423. do
  10424. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10425. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10426. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10427. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10428. echo $ECHO_N "(cached) $ECHO_C" >&6
  10429. else
  10430. cat >conftest.$ac_ext <<_ACEOF
  10431. /* confdefs.h. */
  10432. _ACEOF
  10433. cat confdefs.h >>conftest.$ac_ext
  10434. cat >>conftest.$ac_ext <<_ACEOF
  10435. /* end confdefs.h. */
  10436. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10437. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10438. #define $ac_func innocuous_$ac_func
  10439. /* System header to define __stub macros and hopefully few prototypes,
  10440. which can conflict with char $ac_func (); below.
  10441. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10442. <limits.h> exists even on freestanding compilers. */
  10443. #ifdef __STDC__
  10444. # include <limits.h>
  10445. #else
  10446. # include <assert.h>
  10447. #endif
  10448. #undef $ac_func
  10449. /* Override any gcc2 internal prototype to avoid an error. */
  10450. #ifdef __cplusplus
  10451. extern "C"
  10452. {
  10453. #endif
  10454. /* We use char because int might match the return type of a gcc2
  10455. builtin and then its argument prototype would still apply. */
  10456. char $ac_func ();
  10457. /* The GNU C library defines this for functions which it implements
  10458. to always fail with ENOSYS. Some functions are actually named
  10459. something starting with __ and the normal name is an alias. */
  10460. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10461. choke me
  10462. #else
  10463. char (*f) () = $ac_func;
  10464. #endif
  10465. #ifdef __cplusplus
  10466. }
  10467. #endif
  10468. int
  10469. main ()
  10470. {
  10471. return f != $ac_func;
  10472. ;
  10473. return 0;
  10474. }
  10475. _ACEOF
  10476. rm -f conftest.$ac_objext conftest$ac_exeext
  10477. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10478. (eval $ac_link) 2>conftest.er1
  10479. ac_status=$?
  10480. grep -v '^ *+' conftest.er1 >conftest.err
  10481. rm -f conftest.er1
  10482. cat conftest.err >&5
  10483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10484. (exit $ac_status); } &&
  10485. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10487. (eval $ac_try) 2>&5
  10488. ac_status=$?
  10489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10490. (exit $ac_status); }; } &&
  10491. { ac_try='test -s conftest$ac_exeext'
  10492. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10493. (eval $ac_try) 2>&5
  10494. ac_status=$?
  10495. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10496. (exit $ac_status); }; }; then
  10497. eval "$as_ac_var=yes"
  10498. else
  10499. echo "$as_me: failed program was:" >&5
  10500. sed 's/^/| /' conftest.$ac_ext >&5
  10501. eval "$as_ac_var=no"
  10502. fi
  10503. rm -f conftest.err conftest.$ac_objext \
  10504. conftest$ac_exeext conftest.$ac_ext
  10505. fi
  10506. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10507. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10508. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10509. cat >>confdefs.h <<_ACEOF
  10510. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10511. _ACEOF
  10512. fi
  10513. done
  10514. if test "$ac_cv_func_uname" = "no"
  10515. then
  10516. cat << 'EOF' >&2
  10517. configure: error:
  10518. Your system does not have the uname() function.
  10519. This is required for the botpack.
  10520. EOF
  10521. exit 1
  10522. fi
  10523. # Make sure we have stdc headers, since we can't compile without them
  10524. if test "$ac_cv_header_stdc" = "no"
  10525. then
  10526. cat << 'EOF' >&2
  10527. configure: error:
  10528. Your system must support ANSI C Header files.
  10529. These are required for the language support. Sorry.
  10530. EOF
  10531. exit 1
  10532. fi
  10533. #checkpoint
  10534. cat >confcache <<\_ACEOF
  10535. # This file is a shell script that caches the results of configure
  10536. # tests run on this system so they can be shared between configure
  10537. # scripts and configure runs, see configure's option --config-cache.
  10538. # It is not useful on other systems. If it contains results you don't
  10539. # want to keep, you may remove or edit it.
  10540. #
  10541. # config.status only pays attention to the cache file if you give it
  10542. # the --recheck option to rerun configure.
  10543. #
  10544. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10545. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10546. # following values.
  10547. _ACEOF
  10548. # The following way of writing the cache mishandles newlines in values,
  10549. # but we know of no workaround that is simple, portable, and efficient.
  10550. # So, don't put newlines in cache variables' values.
  10551. # Ultrix sh set writes to stderr and can't be redirected directly,
  10552. # and sets the high bit in the cache file unless we assign to the vars.
  10553. {
  10554. (set) 2>&1 |
  10555. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10556. *ac_space=\ *)
  10557. # `set' does not quote correctly, so add quotes (double-quote
  10558. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10559. sed -n \
  10560. "s/'/'\\\\''/g;
  10561. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10562. ;;
  10563. *)
  10564. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10565. sed -n \
  10566. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10567. ;;
  10568. esac;
  10569. } |
  10570. sed '
  10571. t clear
  10572. : clear
  10573. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10574. t end
  10575. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10576. : end' >>confcache
  10577. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10578. if test -w $cache_file; then
  10579. test "x$cache_file" != "x/dev/null"
  10580. cat confcache >$cache_file
  10581. else
  10582. echo "not updating unwritable cache $cache_file"
  10583. fi
  10584. fi
  10585. rm -f confcache
  10586. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10587. if ! test -f $srcdir/pack/pack.cfg; then
  10588. cat << EOF >&2
  10589. configure: error:
  10590. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  10591. EOF
  10592. exit 1
  10593. fi
  10594. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  10595. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10596. cat >>confdefs.h <<_ACEOF
  10597. #define EGG_VERSION $version_num
  10598. _ACEOF
  10599. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  10600. u_define="S_$define"
  10601. cat >>confdefs.h <<_ACEOF
  10602. #define $u_define 1
  10603. _ACEOF
  10604. done
  10605. case "$srcdir" in
  10606. [\\/]* | ?:[\\/]*)
  10607. MOD_UPDIR=""
  10608. ;;
  10609. *)
  10610. MOD_UPDIR="../"
  10611. ;;
  10612. esac
  10613. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10614. for mf in $files; do
  10615. # Strip MF so we end up with the name of the file.
  10616. # echo "MF: $mf"
  10617. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10618. dirpart=`(dirname "$mf") 2>/dev/null ||
  10619. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10620. X"$mf" : 'X\(//\)[^/]' \| \
  10621. X"$mf" : 'X\(//\)$' \| \
  10622. X"$mf" : 'X\(/\)' \| \
  10623. . : '\(.\)' 2>/dev/null ||
  10624. echo X"$mf" |
  10625. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10626. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10627. /^X\(\/\/\)$/{ s//\1/; q; }
  10628. /^X\(\/\).*/{ s//\1/; q; }
  10629. s/.*/./; q'`
  10630. # echo "dirpart: $dirpart mf: $mf"
  10631. # rm -rf "$dirpart/.deps/"
  10632. rm -f "$dirpart/.deps/includes"
  10633. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10634. for file in `sed -n -e '
  10635. /^OBJS = .*\\\\$/ {
  10636. s/^OBJS = //
  10637. :loop
  10638. s/\\\\$//
  10639. p
  10640. n
  10641. /\\\\$/ b loop
  10642. p
  10643. }
  10644. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10645. do
  10646. base=`basename $file .o`
  10647. test -f "$dirpart/$base.c" || continue
  10648. if ! test -f "$dirpart/.deps/$base.Po"; then
  10649. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10650. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10651. if test -f "$dirpart/$base.o"; then
  10652. rm -f "$dirpart/$base.o"
  10653. fi
  10654. fi
  10655. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10656. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10657. done
  10658. done
  10659. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10660. cat >confcache <<\_ACEOF
  10661. # This file is a shell script that caches the results of configure
  10662. # tests run on this system so they can be shared between configure
  10663. # scripts and configure runs, see configure's option --config-cache.
  10664. # It is not useful on other systems. If it contains results you don't
  10665. # want to keep, you may remove or edit it.
  10666. #
  10667. # config.status only pays attention to the cache file if you give it
  10668. # the --recheck option to rerun configure.
  10669. #
  10670. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10671. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10672. # following values.
  10673. _ACEOF
  10674. # The following way of writing the cache mishandles newlines in values,
  10675. # but we know of no workaround that is simple, portable, and efficient.
  10676. # So, don't put newlines in cache variables' values.
  10677. # Ultrix sh set writes to stderr and can't be redirected directly,
  10678. # and sets the high bit in the cache file unless we assign to the vars.
  10679. {
  10680. (set) 2>&1 |
  10681. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10682. *ac_space=\ *)
  10683. # `set' does not quote correctly, so add quotes (double-quote
  10684. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10685. sed -n \
  10686. "s/'/'\\\\''/g;
  10687. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10688. ;;
  10689. *)
  10690. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10691. sed -n \
  10692. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10693. ;;
  10694. esac;
  10695. } |
  10696. sed '
  10697. t clear
  10698. : clear
  10699. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10700. t end
  10701. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10702. : end' >>confcache
  10703. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10704. if test -w $cache_file; then
  10705. test "x$cache_file" != "x/dev/null"
  10706. cat confcache >$cache_file
  10707. else
  10708. echo "not updating unwritable cache $cache_file"
  10709. fi
  10710. fi
  10711. rm -f confcache
  10712. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10713. # Let make expand exec_prefix.
  10714. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10715. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10716. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10717. # trailing colons and then remove the whole line if VPATH becomes empty
  10718. # (actually we leave an empty line to preserve line numbers).
  10719. if test "x$srcdir" = x.; then
  10720. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10721. s/:*\$(srcdir):*/:/;
  10722. s/:*\${srcdir}:*/:/;
  10723. s/:*@srcdir@:*/:/;
  10724. s/^\([^=]*=[ ]*\):*/\1/;
  10725. s/:*$//;
  10726. s/^[^=]*=[ ]*$//;
  10727. }'
  10728. fi
  10729. DEFS=-DHAVE_CONFIG_H
  10730. ac_libobjs=
  10731. ac_ltlibobjs=
  10732. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10733. # 1. Remove the extension, and $U if already installed.
  10734. ac_i=`echo "$ac_i" |
  10735. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10736. # 2. Add them.
  10737. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10738. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10739. done
  10740. LIBOBJS=$ac_libobjs
  10741. LTLIBOBJS=$ac_ltlibobjs
  10742. : ${CONFIG_STATUS=./config.status}
  10743. ac_clean_files_save=$ac_clean_files
  10744. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10745. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10746. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10747. cat >$CONFIG_STATUS <<_ACEOF
  10748. #! $SHELL
  10749. # Generated by $as_me.
  10750. # Run this file to recreate the current configuration.
  10751. # Compiler output produced by configure, useful for debugging
  10752. # configure, is in config.log if it exists.
  10753. debug=false
  10754. ac_cs_recheck=false
  10755. ac_cs_silent=false
  10756. SHELL=\${CONFIG_SHELL-$SHELL}
  10757. _ACEOF
  10758. cat >>$CONFIG_STATUS <<\_ACEOF
  10759. ## --------------------- ##
  10760. ## M4sh Initialization. ##
  10761. ## --------------------- ##
  10762. # Be Bourne compatible
  10763. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10764. emulate sh
  10765. NULLCMD=:
  10766. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10767. # is contrary to our usage. Disable this feature.
  10768. alias -g '${1+"$@"}'='"$@"'
  10769. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10770. set -o posix
  10771. fi
  10772. DUALCASE=1; export DUALCASE # for MKS sh
  10773. # Support unset when possible.
  10774. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10775. as_unset=unset
  10776. else
  10777. as_unset=false
  10778. fi
  10779. # Work around bugs in pre-3.0 UWIN ksh.
  10780. $as_unset ENV MAIL MAILPATH
  10781. PS1='$ '
  10782. PS2='> '
  10783. PS4='+ '
  10784. # NLS nuisances.
  10785. for as_var in \
  10786. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10787. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10788. LC_TELEPHONE LC_TIME
  10789. do
  10790. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10791. eval $as_var=C; export $as_var
  10792. else
  10793. $as_unset $as_var
  10794. fi
  10795. done
  10796. # Required to use basename.
  10797. if expr a : '\(a\)' >/dev/null 2>&1; then
  10798. as_expr=expr
  10799. else
  10800. as_expr=false
  10801. fi
  10802. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10803. as_basename=basename
  10804. else
  10805. as_basename=false
  10806. fi
  10807. # Name of the executable.
  10808. as_me=`$as_basename "$0" ||
  10809. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10810. X"$0" : 'X\(//\)$' \| \
  10811. X"$0" : 'X\(/\)$' \| \
  10812. . : '\(.\)' 2>/dev/null ||
  10813. echo X/"$0" |
  10814. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10815. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10816. /^X\/\(\/\).*/{ s//\1/; q; }
  10817. s/.*/./; q'`
  10818. # PATH needs CR, and LINENO needs CR and PATH.
  10819. # Avoid depending upon Character Ranges.
  10820. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10821. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10822. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10823. as_cr_digits='0123456789'
  10824. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10825. # The user is always right.
  10826. if test "${PATH_SEPARATOR+set}" != set; then
  10827. echo "#! /bin/sh" >conf$$.sh
  10828. echo "exit 0" >>conf$$.sh
  10829. chmod +x conf$$.sh
  10830. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10831. PATH_SEPARATOR=';'
  10832. else
  10833. PATH_SEPARATOR=:
  10834. fi
  10835. rm -f conf$$.sh
  10836. fi
  10837. as_lineno_1=$LINENO
  10838. as_lineno_2=$LINENO
  10839. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10840. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10841. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10842. # Find who we are. Look in the path if we contain no path at all
  10843. # relative or not.
  10844. case $0 in
  10845. *[\\/]* ) as_myself=$0 ;;
  10846. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10847. for as_dir in $PATH
  10848. do
  10849. IFS=$as_save_IFS
  10850. test -z "$as_dir" && as_dir=.
  10851. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10852. done
  10853. ;;
  10854. esac
  10855. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10856. # in which case we are not to be found in the path.
  10857. if test "x$as_myself" = x; then
  10858. as_myself=$0
  10859. fi
  10860. if test ! -f "$as_myself"; then
  10861. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10862. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10863. { (exit 1); exit 1; }; }
  10864. fi
  10865. case $CONFIG_SHELL in
  10866. '')
  10867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10868. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10869. do
  10870. IFS=$as_save_IFS
  10871. test -z "$as_dir" && as_dir=.
  10872. for as_base in sh bash ksh sh5; do
  10873. case $as_dir in
  10874. /*)
  10875. if ("$as_dir/$as_base" -c '
  10876. as_lineno_1=$LINENO
  10877. as_lineno_2=$LINENO
  10878. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10879. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10880. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10881. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10882. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10883. CONFIG_SHELL=$as_dir/$as_base
  10884. export CONFIG_SHELL
  10885. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10886. fi;;
  10887. esac
  10888. done
  10889. done
  10890. ;;
  10891. esac
  10892. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10893. # uniformly replaced by the line number. The first 'sed' inserts a
  10894. # line-number line before each line; the second 'sed' does the real
  10895. # work. The second script uses 'N' to pair each line-number line
  10896. # with the numbered line, and appends trailing '-' during
  10897. # substitution so that $LINENO is not a special case at line end.
  10898. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10899. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10900. sed '=' <$as_myself |
  10901. sed '
  10902. N
  10903. s,$,-,
  10904. : loop
  10905. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10906. t loop
  10907. s,-$,,
  10908. s,^['$as_cr_digits']*\n,,
  10909. ' >$as_me.lineno &&
  10910. chmod +x $as_me.lineno ||
  10911. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10912. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10913. { (exit 1); exit 1; }; }
  10914. # Don't try to exec as it changes $[0], causing all sort of problems
  10915. # (the dirname of $[0] is not the place where we might find the
  10916. # original and so on. Autoconf is especially sensible to this).
  10917. . ./$as_me.lineno
  10918. # Exit status is that of the last command.
  10919. exit
  10920. }
  10921. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10922. *c*,-n*) ECHO_N= ECHO_C='
  10923. ' ECHO_T=' ' ;;
  10924. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10925. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10926. esac
  10927. if expr a : '\(a\)' >/dev/null 2>&1; then
  10928. as_expr=expr
  10929. else
  10930. as_expr=false
  10931. fi
  10932. rm -f conf$$ conf$$.exe conf$$.file
  10933. echo >conf$$.file
  10934. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10935. # We could just check for DJGPP; but this test a) works b) is more generic
  10936. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10937. if test -f conf$$.exe; then
  10938. # Don't use ln at all; we don't have any links
  10939. as_ln_s='cp -p'
  10940. else
  10941. as_ln_s='ln -s'
  10942. fi
  10943. elif ln conf$$.file conf$$ 2>/dev/null; then
  10944. as_ln_s=ln
  10945. else
  10946. as_ln_s='cp -p'
  10947. fi
  10948. rm -f conf$$ conf$$.exe conf$$.file
  10949. if mkdir -p . 2>/dev/null; then
  10950. as_mkdir_p=:
  10951. else
  10952. test -d ./-p && rmdir ./-p
  10953. as_mkdir_p=false
  10954. fi
  10955. as_executable_p="test -f"
  10956. # Sed expression to map a string onto a valid CPP name.
  10957. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10958. # Sed expression to map a string onto a valid variable name.
  10959. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10960. # IFS
  10961. # We need space, tab and new line, in precisely that order.
  10962. as_nl='
  10963. '
  10964. IFS=" $as_nl"
  10965. # CDPATH.
  10966. $as_unset CDPATH
  10967. exec 6>&1
  10968. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10969. # report actual input values of CONFIG_FILES etc. instead of their
  10970. # values after options handling. Logging --version etc. is OK.
  10971. exec 5>>config.log
  10972. {
  10973. echo
  10974. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10975. ## Running $as_me. ##
  10976. _ASBOX
  10977. } >&5
  10978. cat >&5 <<_CSEOF
  10979. This file was extended by $as_me, which was
  10980. generated by GNU Autoconf 2.59. Invocation command line was
  10981. CONFIG_FILES = $CONFIG_FILES
  10982. CONFIG_HEADERS = $CONFIG_HEADERS
  10983. CONFIG_LINKS = $CONFIG_LINKS
  10984. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10985. $ $0 $@
  10986. _CSEOF
  10987. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10988. echo >&5
  10989. _ACEOF
  10990. # Files that config.status was made for.
  10991. if test -n "$ac_config_files"; then
  10992. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10993. fi
  10994. if test -n "$ac_config_headers"; then
  10995. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10996. fi
  10997. if test -n "$ac_config_links"; then
  10998. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10999. fi
  11000. if test -n "$ac_config_commands"; then
  11001. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11002. fi
  11003. cat >>$CONFIG_STATUS <<\_ACEOF
  11004. ac_cs_usage="\
  11005. \`$as_me' instantiates files from templates according to the
  11006. current configuration.
  11007. Usage: $0 [OPTIONS] [FILE]...
  11008. -h, --help print this help, then exit
  11009. -V, --version print version number, then exit
  11010. -q, --quiet do not print progress messages
  11011. -d, --debug don't remove temporary files
  11012. --recheck update $as_me by reconfiguring in the same conditions
  11013. --file=FILE[:TEMPLATE]
  11014. instantiate the configuration file FILE
  11015. --header=FILE[:TEMPLATE]
  11016. instantiate the configuration header FILE
  11017. Configuration files:
  11018. $config_files
  11019. Configuration headers:
  11020. $config_headers
  11021. Report bugs to <bug-autoconf@gnu.org>."
  11022. _ACEOF
  11023. cat >>$CONFIG_STATUS <<_ACEOF
  11024. ac_cs_version="\\
  11025. config.status
  11026. configured by $0, generated by GNU Autoconf 2.59,
  11027. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11028. Copyright (C) 2003 Free Software Foundation, Inc.
  11029. This config.status script is free software; the Free Software Foundation
  11030. gives unlimited permission to copy, distribute and modify it."
  11031. srcdir=$srcdir
  11032. _ACEOF
  11033. cat >>$CONFIG_STATUS <<\_ACEOF
  11034. # If no file are specified by the user, then we need to provide default
  11035. # value. By we need to know if files were specified by the user.
  11036. ac_need_defaults=:
  11037. while test $# != 0
  11038. do
  11039. case $1 in
  11040. --*=*)
  11041. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11042. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11043. ac_shift=:
  11044. ;;
  11045. -*)
  11046. ac_option=$1
  11047. ac_optarg=$2
  11048. ac_shift=shift
  11049. ;;
  11050. *) # This is not an option, so the user has probably given explicit
  11051. # arguments.
  11052. ac_option=$1
  11053. ac_need_defaults=false;;
  11054. esac
  11055. case $ac_option in
  11056. # Handling of the options.
  11057. _ACEOF
  11058. cat >>$CONFIG_STATUS <<\_ACEOF
  11059. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11060. ac_cs_recheck=: ;;
  11061. --version | --vers* | -V )
  11062. echo "$ac_cs_version"; exit 0 ;;
  11063. --he | --h)
  11064. # Conflict between --help and --header
  11065. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11066. Try \`$0 --help' for more information." >&5
  11067. echo "$as_me: error: ambiguous option: $1
  11068. Try \`$0 --help' for more information." >&2;}
  11069. { (exit 1); exit 1; }; };;
  11070. --help | --hel | -h )
  11071. echo "$ac_cs_usage"; exit 0 ;;
  11072. --debug | --d* | -d )
  11073. debug=: ;;
  11074. --file | --fil | --fi | --f )
  11075. $ac_shift
  11076. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11077. ac_need_defaults=false;;
  11078. --header | --heade | --head | --hea )
  11079. $ac_shift
  11080. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11081. ac_need_defaults=false;;
  11082. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11083. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11084. ac_cs_silent=: ;;
  11085. # This is an error.
  11086. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11087. Try \`$0 --help' for more information." >&5
  11088. echo "$as_me: error: unrecognized option: $1
  11089. Try \`$0 --help' for more information." >&2;}
  11090. { (exit 1); exit 1; }; } ;;
  11091. *) ac_config_targets="$ac_config_targets $1" ;;
  11092. esac
  11093. shift
  11094. done
  11095. ac_configure_extra_args=
  11096. if $ac_cs_silent; then
  11097. exec 6>/dev/null
  11098. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11099. fi
  11100. _ACEOF
  11101. cat >>$CONFIG_STATUS <<_ACEOF
  11102. if \$ac_cs_recheck; then
  11103. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11104. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11105. fi
  11106. _ACEOF
  11107. cat >>$CONFIG_STATUS <<\_ACEOF
  11108. for ac_config_target in $ac_config_targets
  11109. do
  11110. case "$ac_config_target" in
  11111. # Handling of arguments.
  11112. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11113. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11114. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11115. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11116. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11117. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11118. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11119. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11120. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11121. { (exit 1); exit 1; }; };;
  11122. esac
  11123. done
  11124. # If the user did not use the arguments to specify the items to instantiate,
  11125. # then the envvar interface is used. Set only those that are not.
  11126. # We use the long form for the default assignment because of an extremely
  11127. # bizarre bug on SunOS 4.1.3.
  11128. if $ac_need_defaults; then
  11129. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11130. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11131. fi
  11132. # Have a temporary directory for convenience. Make it in the build tree
  11133. # simply because there is no reason to put it here, and in addition,
  11134. # creating and moving files from /tmp can sometimes cause problems.
  11135. # Create a temporary directory, and hook for its removal unless debugging.
  11136. $debug ||
  11137. {
  11138. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11139. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11140. }
  11141. # Create a (secure) tmp directory for tmp files.
  11142. {
  11143. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11144. test -n "$tmp" && test -d "$tmp"
  11145. } ||
  11146. {
  11147. tmp=./confstat$$-$RANDOM
  11148. (umask 077 && mkdir $tmp)
  11149. } ||
  11150. {
  11151. echo "$me: cannot create a temporary directory in ." >&2
  11152. { (exit 1); exit 1; }
  11153. }
  11154. _ACEOF
  11155. cat >>$CONFIG_STATUS <<_ACEOF
  11156. #
  11157. # CONFIG_FILES section.
  11158. #
  11159. # No need to generate the scripts if there are no CONFIG_FILES.
  11160. # This happens for instance when ./config.status config.h
  11161. if test -n "\$CONFIG_FILES"; then
  11162. # Protect against being on the right side of a sed subst in config.status.
  11163. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11164. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11165. s,@SHELL@,$SHELL,;t t
  11166. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11167. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11168. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11169. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11170. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11171. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11172. s,@exec_prefix@,$exec_prefix,;t t
  11173. s,@prefix@,$prefix,;t t
  11174. s,@program_transform_name@,$program_transform_name,;t t
  11175. s,@bindir@,$bindir,;t t
  11176. s,@sbindir@,$sbindir,;t t
  11177. s,@libexecdir@,$libexecdir,;t t
  11178. s,@datadir@,$datadir,;t t
  11179. s,@sysconfdir@,$sysconfdir,;t t
  11180. s,@sharedstatedir@,$sharedstatedir,;t t
  11181. s,@localstatedir@,$localstatedir,;t t
  11182. s,@libdir@,$libdir,;t t
  11183. s,@includedir@,$includedir,;t t
  11184. s,@oldincludedir@,$oldincludedir,;t t
  11185. s,@infodir@,$infodir,;t t
  11186. s,@mandir@,$mandir,;t t
  11187. s,@build_alias@,$build_alias,;t t
  11188. s,@host_alias@,$host_alias,;t t
  11189. s,@target_alias@,$target_alias,;t t
  11190. s,@DEFS@,$DEFS,;t t
  11191. s,@ECHO_C@,$ECHO_C,;t t
  11192. s,@ECHO_N@,$ECHO_N,;t t
  11193. s,@ECHO_T@,$ECHO_T,;t t
  11194. s,@LIBS@,$LIBS,;t t
  11195. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11196. s,@CC@,$CC,;t t
  11197. s,@CFLAGS@,$CFLAGS,;t t
  11198. s,@LDFLAGS@,$LDFLAGS,;t t
  11199. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11200. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11201. s,@EXEEXT@,$EXEEXT,;t t
  11202. s,@OBJEXT@,$OBJEXT,;t t
  11203. s,@CPP@,$CPP,;t t
  11204. s,@EGREP@,$EGREP,;t t
  11205. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11206. s,@CCDEBUG@,$CCDEBUG,;t t
  11207. s,@SET_MAKE@,$SET_MAKE,;t t
  11208. s,@HEAD_1@,$HEAD_1,;t t
  11209. s,@AWK@,$AWK,;t t
  11210. s,@BASENAME@,$BASENAME,;t t
  11211. s,@OBJCOPY@,$OBJCOPY,;t t
  11212. s,@STRIP@,$STRIP,;t t
  11213. s,@UNAME@,$UNAME,;t t
  11214. s,@DISTCC@,$DISTCC,;t t
  11215. s,@RESLIB@,$RESLIB,;t t
  11216. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11217. s,@ZLIB@,$ZLIB,;t t
  11218. s,@LIBOBJS@,$LIBOBJS,;t t
  11219. s,@VERSION@,$VERSION,;t t
  11220. s,@NUMVER@,$NUMVER,;t t
  11221. s,@PACKNAME@,$PACKNAME,;t t
  11222. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11223. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11224. CEOF
  11225. _ACEOF
  11226. cat >>$CONFIG_STATUS <<\_ACEOF
  11227. # Split the substitutions into bite-sized pieces for seds with
  11228. # small command number limits, like on Digital OSF/1 and HP-UX.
  11229. ac_max_sed_lines=48
  11230. ac_sed_frag=1 # Number of current file.
  11231. ac_beg=1 # First line for current file.
  11232. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11233. ac_more_lines=:
  11234. ac_sed_cmds=
  11235. while $ac_more_lines; do
  11236. if test $ac_beg -gt 1; then
  11237. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11238. else
  11239. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11240. fi
  11241. if test ! -s $tmp/subs.frag; then
  11242. ac_more_lines=false
  11243. else
  11244. # The purpose of the label and of the branching condition is to
  11245. # speed up the sed processing (if there are no `@' at all, there
  11246. # is no need to browse any of the substitutions).
  11247. # These are the two extra sed commands mentioned above.
  11248. (echo ':t
  11249. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11250. if test -z "$ac_sed_cmds"; then
  11251. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11252. else
  11253. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11254. fi
  11255. ac_sed_frag=`expr $ac_sed_frag + 1`
  11256. ac_beg=$ac_end
  11257. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11258. fi
  11259. done
  11260. if test -z "$ac_sed_cmds"; then
  11261. ac_sed_cmds=cat
  11262. fi
  11263. fi # test -n "$CONFIG_FILES"
  11264. _ACEOF
  11265. cat >>$CONFIG_STATUS <<\_ACEOF
  11266. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11267. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11268. case $ac_file in
  11269. - | *:- | *:-:* ) # input from stdin
  11270. cat >$tmp/stdin
  11271. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11272. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11273. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11274. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11275. * ) ac_file_in=$ac_file.in ;;
  11276. esac
  11277. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11278. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11279. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11280. X"$ac_file" : 'X\(//\)[^/]' \| \
  11281. X"$ac_file" : 'X\(//\)$' \| \
  11282. X"$ac_file" : 'X\(/\)' \| \
  11283. . : '\(.\)' 2>/dev/null ||
  11284. echo X"$ac_file" |
  11285. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11286. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11287. /^X\(\/\/\)$/{ s//\1/; q; }
  11288. /^X\(\/\).*/{ s//\1/; q; }
  11289. s/.*/./; q'`
  11290. { if $as_mkdir_p; then
  11291. mkdir -p "$ac_dir"
  11292. else
  11293. as_dir="$ac_dir"
  11294. as_dirs=
  11295. while test ! -d "$as_dir"; do
  11296. as_dirs="$as_dir $as_dirs"
  11297. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11298. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11299. X"$as_dir" : 'X\(//\)[^/]' \| \
  11300. X"$as_dir" : 'X\(//\)$' \| \
  11301. X"$as_dir" : 'X\(/\)' \| \
  11302. . : '\(.\)' 2>/dev/null ||
  11303. echo X"$as_dir" |
  11304. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11305. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11306. /^X\(\/\/\)$/{ s//\1/; q; }
  11307. /^X\(\/\).*/{ s//\1/; q; }
  11308. s/.*/./; q'`
  11309. done
  11310. test ! -n "$as_dirs" || mkdir $as_dirs
  11311. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11312. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11313. { (exit 1); exit 1; }; }; }
  11314. ac_builddir=.
  11315. if test "$ac_dir" != .; then
  11316. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11317. # A "../" for each directory in $ac_dir_suffix.
  11318. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11319. else
  11320. ac_dir_suffix= ac_top_builddir=
  11321. fi
  11322. case $srcdir in
  11323. .) # No --srcdir option. We are building in place.
  11324. ac_srcdir=.
  11325. if test -z "$ac_top_builddir"; then
  11326. ac_top_srcdir=.
  11327. else
  11328. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11329. fi ;;
  11330. [\\/]* | ?:[\\/]* ) # Absolute path.
  11331. ac_srcdir=$srcdir$ac_dir_suffix;
  11332. ac_top_srcdir=$srcdir ;;
  11333. *) # Relative path.
  11334. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11335. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11336. esac
  11337. # Do not use `cd foo && pwd` to compute absolute paths, because
  11338. # the directories may not exist.
  11339. case `pwd` in
  11340. .) ac_abs_builddir="$ac_dir";;
  11341. *)
  11342. case "$ac_dir" in
  11343. .) ac_abs_builddir=`pwd`;;
  11344. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11345. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11346. esac;;
  11347. esac
  11348. case $ac_abs_builddir in
  11349. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11350. *)
  11351. case ${ac_top_builddir}. in
  11352. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11353. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11354. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11355. esac;;
  11356. esac
  11357. case $ac_abs_builddir in
  11358. .) ac_abs_srcdir=$ac_srcdir;;
  11359. *)
  11360. case $ac_srcdir in
  11361. .) ac_abs_srcdir=$ac_abs_builddir;;
  11362. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11363. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11364. esac;;
  11365. esac
  11366. case $ac_abs_builddir in
  11367. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11368. *)
  11369. case $ac_top_srcdir in
  11370. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11371. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11372. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11373. esac;;
  11374. esac
  11375. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11376. # use $as_me), people would be surprised to read:
  11377. # /* config.h. Generated by config.status. */
  11378. if test x"$ac_file" = x-; then
  11379. configure_input=
  11380. else
  11381. configure_input="$ac_file. "
  11382. fi
  11383. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11384. sed 's,.*/,,'` by configure."
  11385. # First look for the input files in the build tree, otherwise in the
  11386. # src tree.
  11387. ac_file_inputs=`IFS=:
  11388. for f in $ac_file_in; do
  11389. case $f in
  11390. -) echo $tmp/stdin ;;
  11391. [\\/$]*)
  11392. # Absolute (can't be DOS-style, as IFS=:)
  11393. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11394. echo "$as_me: error: cannot find input file: $f" >&2;}
  11395. { (exit 1); exit 1; }; }
  11396. echo "$f";;
  11397. *) # Relative
  11398. if test -f "$f"; then
  11399. # Build tree
  11400. echo "$f"
  11401. elif test -f "$srcdir/$f"; then
  11402. # Source tree
  11403. echo "$srcdir/$f"
  11404. else
  11405. # /dev/null tree
  11406. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11407. echo "$as_me: error: cannot find input file: $f" >&2;}
  11408. { (exit 1); exit 1; }; }
  11409. fi;;
  11410. esac
  11411. done` || { (exit 1); exit 1; }
  11412. if test x"$ac_file" != x-; then
  11413. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11414. echo "$as_me: creating $ac_file" >&6;}
  11415. rm -f "$ac_file"
  11416. fi
  11417. _ACEOF
  11418. cat >>$CONFIG_STATUS <<_ACEOF
  11419. sed "$ac_vpsub
  11420. $extrasub
  11421. _ACEOF
  11422. cat >>$CONFIG_STATUS <<\_ACEOF
  11423. :t
  11424. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11425. s,@configure_input@,$configure_input,;t t
  11426. s,@srcdir@,$ac_srcdir,;t t
  11427. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11428. s,@top_srcdir@,$ac_top_srcdir,;t t
  11429. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11430. s,@builddir@,$ac_builddir,;t t
  11431. s,@abs_builddir@,$ac_abs_builddir,;t t
  11432. s,@top_builddir@,$ac_top_builddir,;t t
  11433. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11434. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11435. rm -f $tmp/stdin
  11436. if test x"$ac_file" != x-; then
  11437. mv $tmp/out $ac_file
  11438. else
  11439. cat $tmp/out
  11440. rm -f $tmp/out
  11441. fi
  11442. done
  11443. _ACEOF
  11444. cat >>$CONFIG_STATUS <<\_ACEOF
  11445. #
  11446. # CONFIG_HEADER section.
  11447. #
  11448. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11449. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11450. #
  11451. # ac_d sets the value in "#define NAME VALUE" lines.
  11452. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11453. ac_dB='[ ].*$,\1#\2'
  11454. ac_dC=' '
  11455. ac_dD=',;t'
  11456. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11457. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11458. ac_uB='$,\1#\2define\3'
  11459. ac_uC=' '
  11460. ac_uD=',;t'
  11461. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11462. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11463. case $ac_file in
  11464. - | *:- | *:-:* ) # input from stdin
  11465. cat >$tmp/stdin
  11466. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11467. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11468. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11469. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11470. * ) ac_file_in=$ac_file.in ;;
  11471. esac
  11472. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11473. echo "$as_me: creating $ac_file" >&6;}
  11474. # First look for the input files in the build tree, otherwise in the
  11475. # src tree.
  11476. ac_file_inputs=`IFS=:
  11477. for f in $ac_file_in; do
  11478. case $f in
  11479. -) echo $tmp/stdin ;;
  11480. [\\/$]*)
  11481. # Absolute (can't be DOS-style, as IFS=:)
  11482. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11483. echo "$as_me: error: cannot find input file: $f" >&2;}
  11484. { (exit 1); exit 1; }; }
  11485. # Do quote $f, to prevent DOS paths from being IFS'd.
  11486. echo "$f";;
  11487. *) # Relative
  11488. if test -f "$f"; then
  11489. # Build tree
  11490. echo "$f"
  11491. elif test -f "$srcdir/$f"; then
  11492. # Source tree
  11493. echo "$srcdir/$f"
  11494. else
  11495. # /dev/null tree
  11496. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11497. echo "$as_me: error: cannot find input file: $f" >&2;}
  11498. { (exit 1); exit 1; }; }
  11499. fi;;
  11500. esac
  11501. done` || { (exit 1); exit 1; }
  11502. # Remove the trailing spaces.
  11503. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11504. _ACEOF
  11505. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11506. # `conftest.undefs', that substitutes the proper values into
  11507. # config.h.in to produce config.h. The first handles `#define'
  11508. # templates, and the second `#undef' templates.
  11509. # And first: Protect against being on the right side of a sed subst in
  11510. # config.status. Protect against being in an unquoted here document
  11511. # in config.status.
  11512. rm -f conftest.defines conftest.undefs
  11513. # Using a here document instead of a string reduces the quoting nightmare.
  11514. # Putting comments in sed scripts is not portable.
  11515. #
  11516. # `end' is used to avoid that the second main sed command (meant for
  11517. # 0-ary CPP macros) applies to n-ary macro definitions.
  11518. # See the Autoconf documentation for `clear'.
  11519. cat >confdef2sed.sed <<\_ACEOF
  11520. s/[\\&,]/\\&/g
  11521. s,[\\$`],\\&,g
  11522. t clear
  11523. : clear
  11524. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11525. t end
  11526. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11527. : end
  11528. _ACEOF
  11529. # If some macros were called several times there might be several times
  11530. # the same #defines, which is useless. Nevertheless, we may not want to
  11531. # sort them, since we want the *last* AC-DEFINE to be honored.
  11532. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11533. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11534. rm -f confdef2sed.sed
  11535. # This sed command replaces #undef with comments. This is necessary, for
  11536. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11537. # on some systems where configure will not decide to define it.
  11538. cat >>conftest.undefs <<\_ACEOF
  11539. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11540. _ACEOF
  11541. # Break up conftest.defines because some shells have a limit on the size
  11542. # of here documents, and old seds have small limits too (100 cmds).
  11543. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11544. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11545. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11546. echo ' :' >>$CONFIG_STATUS
  11547. rm -f conftest.tail
  11548. while grep . conftest.defines >/dev/null
  11549. do
  11550. # Write a limited-size here document to $tmp/defines.sed.
  11551. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11552. # Speed up: don't consider the non `#define' lines.
  11553. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11554. # Work around the forget-to-reset-the-flag bug.
  11555. echo 't clr' >>$CONFIG_STATUS
  11556. echo ': clr' >>$CONFIG_STATUS
  11557. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11558. echo 'CEOF
  11559. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11560. rm -f $tmp/in
  11561. mv $tmp/out $tmp/in
  11562. ' >>$CONFIG_STATUS
  11563. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11564. rm -f conftest.defines
  11565. mv conftest.tail conftest.defines
  11566. done
  11567. rm -f conftest.defines
  11568. echo ' fi # grep' >>$CONFIG_STATUS
  11569. echo >>$CONFIG_STATUS
  11570. # Break up conftest.undefs because some shells have a limit on the size
  11571. # of here documents, and old seds have small limits too (100 cmds).
  11572. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11573. rm -f conftest.tail
  11574. while grep . conftest.undefs >/dev/null
  11575. do
  11576. # Write a limited-size here document to $tmp/undefs.sed.
  11577. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11578. # Speed up: don't consider the non `#undef'
  11579. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11580. # Work around the forget-to-reset-the-flag bug.
  11581. echo 't clr' >>$CONFIG_STATUS
  11582. echo ': clr' >>$CONFIG_STATUS
  11583. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11584. echo 'CEOF
  11585. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11586. rm -f $tmp/in
  11587. mv $tmp/out $tmp/in
  11588. ' >>$CONFIG_STATUS
  11589. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11590. rm -f conftest.undefs
  11591. mv conftest.tail conftest.undefs
  11592. done
  11593. rm -f conftest.undefs
  11594. cat >>$CONFIG_STATUS <<\_ACEOF
  11595. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11596. # use $as_me), people would be surprised to read:
  11597. # /* config.h. Generated by config.status. */
  11598. if test x"$ac_file" = x-; then
  11599. echo "/* Generated by configure. */" >$tmp/config.h
  11600. else
  11601. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11602. fi
  11603. cat $tmp/in >>$tmp/config.h
  11604. rm -f $tmp/in
  11605. if test x"$ac_file" != x-; then
  11606. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11607. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11608. echo "$as_me: $ac_file is unchanged" >&6;}
  11609. else
  11610. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11611. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11612. X"$ac_file" : 'X\(//\)[^/]' \| \
  11613. X"$ac_file" : 'X\(//\)$' \| \
  11614. X"$ac_file" : 'X\(/\)' \| \
  11615. . : '\(.\)' 2>/dev/null ||
  11616. echo X"$ac_file" |
  11617. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11618. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11619. /^X\(\/\/\)$/{ s//\1/; q; }
  11620. /^X\(\/\).*/{ s//\1/; q; }
  11621. s/.*/./; q'`
  11622. { if $as_mkdir_p; then
  11623. mkdir -p "$ac_dir"
  11624. else
  11625. as_dir="$ac_dir"
  11626. as_dirs=
  11627. while test ! -d "$as_dir"; do
  11628. as_dirs="$as_dir $as_dirs"
  11629. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11630. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11631. X"$as_dir" : 'X\(//\)[^/]' \| \
  11632. X"$as_dir" : 'X\(//\)$' \| \
  11633. X"$as_dir" : 'X\(/\)' \| \
  11634. . : '\(.\)' 2>/dev/null ||
  11635. echo X"$as_dir" |
  11636. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11637. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11638. /^X\(\/\/\)$/{ s//\1/; q; }
  11639. /^X\(\/\).*/{ s//\1/; q; }
  11640. s/.*/./; q'`
  11641. done
  11642. test ! -n "$as_dirs" || mkdir $as_dirs
  11643. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11644. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11645. { (exit 1); exit 1; }; }; }
  11646. rm -f $ac_file
  11647. mv $tmp/config.h $ac_file
  11648. fi
  11649. else
  11650. cat $tmp/config.h
  11651. rm -f $tmp/config.h
  11652. fi
  11653. done
  11654. _ACEOF
  11655. cat >>$CONFIG_STATUS <<\_ACEOF
  11656. { (exit 0); exit 0; }
  11657. _ACEOF
  11658. chmod +x $CONFIG_STATUS
  11659. ac_clean_files=$ac_clean_files_save
  11660. # configure is writing to config.log, and then calls config.status.
  11661. # config.status does its own redirection, appending to config.log.
  11662. # Unfortunately, on DOS this fails, as config.log is still kept open
  11663. # by configure, so config.status won't be able to write to it; its
  11664. # output is simply discarded. So we exec the FD to /dev/null,
  11665. # effectively closing config.log, so it can be properly (re)opened and
  11666. # appended to by config.status. When coming back to configure, we
  11667. # need to make the FD available again.
  11668. if test "$no_create" != yes; then
  11669. ac_cs_success=:
  11670. ac_config_status_args=
  11671. test "$silent" = yes &&
  11672. ac_config_status_args="$ac_config_status_args --quiet"
  11673. exec 5>/dev/null
  11674. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11675. exec 5>>config.log
  11676. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11677. # would make configure fail if this is the last instruction.
  11678. $ac_cs_success || { (exit 1); exit 1; }
  11679. fi