configure 411 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.12 .
  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 SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS 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. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </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. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. #checkpoint
  2713. cat >confcache <<\_ACEOF
  2714. # This file is a shell script that caches the results of configure
  2715. # tests run on this system so they can be shared between configure
  2716. # scripts and configure runs, see configure's option --config-cache.
  2717. # It is not useful on other systems. If it contains results you don't
  2718. # want to keep, you may remove or edit it.
  2719. #
  2720. # config.status only pays attention to the cache file if you give it
  2721. # the --recheck option to rerun configure.
  2722. #
  2723. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2724. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2725. # following values.
  2726. _ACEOF
  2727. # The following way of writing the cache mishandles newlines in values,
  2728. # but we know of no workaround that is simple, portable, and efficient.
  2729. # So, don't put newlines in cache variables' values.
  2730. # Ultrix sh set writes to stderr and can't be redirected directly,
  2731. # and sets the high bit in the cache file unless we assign to the vars.
  2732. {
  2733. (set) 2>&1 |
  2734. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2735. *ac_space=\ *)
  2736. # `set' does not quote correctly, so add quotes (double-quote
  2737. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2738. sed -n \
  2739. "s/'/'\\\\''/g;
  2740. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2741. ;;
  2742. *)
  2743. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2744. sed -n \
  2745. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2746. ;;
  2747. esac;
  2748. } |
  2749. sed '
  2750. t clear
  2751. : clear
  2752. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2753. t end
  2754. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2755. : end' >>confcache
  2756. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2757. if test -w $cache_file; then
  2758. test "x$cache_file" != "x/dev/null"
  2759. cat confcache >$cache_file
  2760. else
  2761. echo "not updating unwritable cache $cache_file"
  2762. fi
  2763. fi
  2764. rm -f confcache
  2765. # Speedup compile
  2766. if test -z "$no_pipe"
  2767. then
  2768. if test -n "$GCC"
  2769. then
  2770. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2771. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2772. if test "${egg_cv_var_ccpipe+set}" = set; then
  2773. echo $ECHO_N "(cached) $ECHO_C" >&6
  2774. else
  2775. ac_old_CC="$CC"
  2776. CC="$CC -pipe"
  2777. cat >conftest.$ac_ext <<_ACEOF
  2778. /* confdefs.h. */
  2779. _ACEOF
  2780. cat confdefs.h >>conftest.$ac_ext
  2781. cat >>conftest.$ac_ext <<_ACEOF
  2782. /* end confdefs.h. */
  2783. int
  2784. main ()
  2785. {
  2786. ;
  2787. return 0;
  2788. }
  2789. _ACEOF
  2790. rm -f conftest.$ac_objext
  2791. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2792. (eval $ac_compile) 2>conftest.er1
  2793. ac_status=$?
  2794. grep -v '^ *+' conftest.er1 >conftest.err
  2795. rm -f conftest.er1
  2796. cat conftest.err >&5
  2797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2798. (exit $ac_status); } &&
  2799. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2801. (eval $ac_try) 2>&5
  2802. ac_status=$?
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); }; } &&
  2805. { ac_try='test -s conftest.$ac_objext'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; }; then
  2811. egg_cv_var_ccpipe="yes"
  2812. else
  2813. echo "$as_me: failed program was:" >&5
  2814. sed 's/^/| /' conftest.$ac_ext >&5
  2815. egg_cv_var_ccpipe="no"
  2816. fi
  2817. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2818. CC="$ac_old_CC"
  2819. fi
  2820. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2821. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2822. if test "$egg_cv_var_ccpipe" = "yes"
  2823. then
  2824. CC="$CC -pipe"
  2825. fi
  2826. fi
  2827. fi
  2828. CCDEPMODE=gcc
  2829. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2830. if test $num = "3"; then
  2831. CCDEPMODE=gcc3
  2832. fi
  2833. # Create static binaries
  2834. if test -z "$no_static"
  2835. then
  2836. if test -n "$GCC"
  2837. then
  2838. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2839. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2840. if test "${egg_cv_var_ccstatic+set}" = set; then
  2841. echo $ECHO_N "(cached) $ECHO_C" >&6
  2842. else
  2843. ac_old_CC="$CC"
  2844. CC="$CC -static"
  2845. cat >conftest.$ac_ext <<_ACEOF
  2846. /* confdefs.h. */
  2847. _ACEOF
  2848. cat confdefs.h >>conftest.$ac_ext
  2849. cat >>conftest.$ac_ext <<_ACEOF
  2850. /* end confdefs.h. */
  2851. int
  2852. main ()
  2853. {
  2854. ;
  2855. return 0;
  2856. }
  2857. _ACEOF
  2858. rm -f conftest.$ac_objext
  2859. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2860. (eval $ac_compile) 2>conftest.er1
  2861. ac_status=$?
  2862. grep -v '^ *+' conftest.er1 >conftest.err
  2863. rm -f conftest.er1
  2864. cat conftest.err >&5
  2865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2866. (exit $ac_status); } &&
  2867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2869. (eval $ac_try) 2>&5
  2870. ac_status=$?
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); }; } &&
  2873. { ac_try='test -s conftest.$ac_objext'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; }; then
  2879. egg_cv_var_ccstatic="yes"
  2880. else
  2881. echo "$as_me: failed program was:" >&5
  2882. sed 's/^/| /' conftest.$ac_ext >&5
  2883. egg_cv_var_ccstatic="no"
  2884. fi
  2885. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2886. CC="$ac_old_CC"
  2887. fi
  2888. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2889. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2890. if test "$egg_cv_var_ccstatic" = "yes"
  2891. then
  2892. CCDEBUG="$CC"
  2893. CC="$CC -static"
  2894. else
  2895. cat << 'EOF' >&2
  2896. configure: error:
  2897. Your C compiler does not support -static.
  2898. This compile flag is required for the botpack.
  2899. EOF
  2900. exit 1
  2901. fi
  2902. fi
  2903. fi
  2904. # Checks for programs
  2905. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2906. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2907. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2908. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2909. echo $ECHO_N "(cached) $ECHO_C" >&6
  2910. else
  2911. cat >conftest.make <<\_ACEOF
  2912. all:
  2913. @echo 'ac_maketemp="$(MAKE)"'
  2914. _ACEOF
  2915. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2916. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2917. if test -n "$ac_maketemp"; then
  2918. eval ac_cv_prog_make_${ac_make}_set=yes
  2919. else
  2920. eval ac_cv_prog_make_${ac_make}_set=no
  2921. fi
  2922. rm -f conftest.make
  2923. fi
  2924. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2925. echo "$as_me:$LINENO: result: yes" >&5
  2926. echo "${ECHO_T}yes" >&6
  2927. SET_MAKE=
  2928. else
  2929. echo "$as_me:$LINENO: result: no" >&5
  2930. echo "${ECHO_T}no" >&6
  2931. SET_MAKE="MAKE=${MAKE-make}"
  2932. fi
  2933. cat << 'EOF' > conftest.head
  2934. a
  2935. b
  2936. c
  2937. EOF
  2938. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2939. do
  2940. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2941. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2942. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2943. echo $ECHO_N "(cached) $ECHO_C" >&6
  2944. else
  2945. if test -n "$HEAD_1"
  2946. then
  2947. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2948. else
  2949. if test "`cat conftest.head | $ac_prog`" = "a";
  2950. then
  2951. echo "$as_me:$LINENO: result: yes" >&5
  2952. echo "${ECHO_T}yes" >&6
  2953. ac_cv_prog_HEAD_1=$ac_prog
  2954. else
  2955. echo "$as_me:$LINENO: result: no" >&5
  2956. echo "${ECHO_T}no" >&6
  2957. fi
  2958. fi
  2959. fi
  2960. test -n "$ac_cv_prog_HEAD_1" && break
  2961. done
  2962. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2963. then
  2964. cat << 'EOF' >&2
  2965. configure: error:
  2966. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2967. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2968. EOF
  2969. exit 1
  2970. fi
  2971. rm -f conftest.head
  2972. HEAD_1=$ac_cv_prog_HEAD_1
  2973. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2974. for ac_prog in gawk mawk nawk awk
  2975. do
  2976. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2977. set dummy $ac_prog; ac_word=$2
  2978. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2979. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2980. if test "${ac_cv_prog_AWK+set}" = set; then
  2981. echo $ECHO_N "(cached) $ECHO_C" >&6
  2982. else
  2983. if test -n "$AWK"; then
  2984. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2985. else
  2986. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2987. for as_dir in $PATH
  2988. do
  2989. IFS=$as_save_IFS
  2990. test -z "$as_dir" && as_dir=.
  2991. for ac_exec_ext in '' $ac_executable_extensions; do
  2992. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2993. ac_cv_prog_AWK="$ac_prog"
  2994. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2995. break 2
  2996. fi
  2997. done
  2998. done
  2999. fi
  3000. fi
  3001. AWK=$ac_cv_prog_AWK
  3002. if test -n "$AWK"; then
  3003. echo "$as_me:$LINENO: result: $AWK" >&5
  3004. echo "${ECHO_T}$AWK" >&6
  3005. else
  3006. echo "$as_me:$LINENO: result: no" >&5
  3007. echo "${ECHO_T}no" >&6
  3008. fi
  3009. test -n "$AWK" && break
  3010. done
  3011. if test "${AWK-x}" = "x"
  3012. then
  3013. cat << 'EOF' >&2
  3014. configure: error:
  3015. This system seems to lack a working 'awk' command.
  3016. A working 'awk' command is required to compile Eggdrop.
  3017. EOF
  3018. exit 1
  3019. fi
  3020. # basename is needed for Tcl library and header checks
  3021. # Extract the first word of "basename", so it can be a program name with args.
  3022. set dummy basename; ac_word=$2
  3023. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$BASENAME"; then
  3029. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_BASENAME="basename"
  3039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. fi
  3045. fi
  3046. BASENAME=$ac_cv_prog_BASENAME
  3047. if test -n "$BASENAME"; then
  3048. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3049. echo "${ECHO_T}$BASENAME" >&6
  3050. else
  3051. echo "$as_me:$LINENO: result: no" >&5
  3052. echo "${ECHO_T}no" >&6
  3053. fi
  3054. if test "${BASENAME-x}" = "x"
  3055. then
  3056. cat << 'EOF' >&2
  3057. configure: error:
  3058. This system seems to lack a working 'basename' command.
  3059. A working 'basename' command is required to compile Eggdrop.
  3060. EOF
  3061. exit 1
  3062. fi
  3063. #EGG_PROG_OBJCOPY
  3064. # Extract the first word of "objcopy", so it can be a program name with args.
  3065. set dummy objcopy; ac_word=$2
  3066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3068. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3069. echo $ECHO_N "(cached) $ECHO_C" >&6
  3070. else
  3071. if test -n "$OBJCOPY"; then
  3072. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3073. else
  3074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3075. for as_dir in $PATH
  3076. do
  3077. IFS=$as_save_IFS
  3078. test -z "$as_dir" && as_dir=.
  3079. for ac_exec_ext in '' $ac_executable_extensions; do
  3080. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3081. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3082. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3083. break 2
  3084. fi
  3085. done
  3086. done
  3087. fi
  3088. fi
  3089. OBJCOPY=$ac_cv_prog_OBJCOPY
  3090. if test -n "$OBJCOPY"; then
  3091. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3092. echo "${ECHO_T}$OBJCOPY" >&6
  3093. else
  3094. echo "$as_me:$LINENO: result: no" >&5
  3095. echo "${ECHO_T}no" >&6
  3096. fi
  3097. # Extract the first word of "strip", so it can be a program name with args.
  3098. set dummy strip; ac_word=$2
  3099. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3100. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3101. if test "${ac_cv_prog_STRIP+set}" = set; then
  3102. echo $ECHO_N "(cached) $ECHO_C" >&6
  3103. else
  3104. if test -n "$STRIP"; then
  3105. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3106. else
  3107. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3108. for as_dir in $PATH
  3109. do
  3110. IFS=$as_save_IFS
  3111. test -z "$as_dir" && as_dir=.
  3112. for ac_exec_ext in '' $ac_executable_extensions; do
  3113. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3114. ac_cv_prog_STRIP="strip"
  3115. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3116. break 2
  3117. fi
  3118. done
  3119. done
  3120. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3121. fi
  3122. fi
  3123. STRIP=$ac_cv_prog_STRIP
  3124. if test -n "$STRIP"; then
  3125. echo "$as_me:$LINENO: result: $STRIP" >&5
  3126. echo "${ECHO_T}$STRIP" >&6
  3127. else
  3128. echo "$as_me:$LINENO: result: no" >&5
  3129. echo "${ECHO_T}no" >&6
  3130. fi
  3131. # Extract the first word of "uname", so it can be a program name with args.
  3132. set dummy uname; ac_word=$2
  3133. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3134. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3135. if test "${ac_cv_prog_UNAME+set}" = set; then
  3136. echo $ECHO_N "(cached) $ECHO_C" >&6
  3137. else
  3138. if test -n "$UNAME"; then
  3139. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3140. else
  3141. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3142. for as_dir in $PATH
  3143. do
  3144. IFS=$as_save_IFS
  3145. test -z "$as_dir" && as_dir=.
  3146. for ac_exec_ext in '' $ac_executable_extensions; do
  3147. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3148. ac_cv_prog_UNAME="uname"
  3149. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3150. break 2
  3151. fi
  3152. done
  3153. done
  3154. fi
  3155. fi
  3156. UNAME=$ac_cv_prog_UNAME
  3157. if test -n "$UNAME"; then
  3158. echo "$as_me:$LINENO: result: $UNAME" >&5
  3159. echo "${ECHO_T}$UNAME" >&6
  3160. else
  3161. echo "$as_me:$LINENO: result: no" >&5
  3162. echo "${ECHO_T}no" >&6
  3163. fi
  3164. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3165. # Extract the first word of "distcc", so it can be a program name with args.
  3166. set dummy distcc; ac_word=$2
  3167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3169. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3170. echo $ECHO_N "(cached) $ECHO_C" >&6
  3171. else
  3172. if test -n "$DISTCC"; then
  3173. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3174. else
  3175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3176. for as_dir in $PATH
  3177. do
  3178. IFS=$as_save_IFS
  3179. test -z "$as_dir" && as_dir=.
  3180. for ac_exec_ext in '' $ac_executable_extensions; do
  3181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3182. ac_cv_prog_DISTCC="distcc"
  3183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3184. break 2
  3185. fi
  3186. done
  3187. done
  3188. fi
  3189. fi
  3190. DISTCC=$ac_cv_prog_DISTCC
  3191. if test -n "$DISTCC"; then
  3192. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3193. echo "${ECHO_T}$DISTCC" >&6
  3194. else
  3195. echo "$as_me:$LINENO: result: no" >&5
  3196. echo "${ECHO_T}no" >&6
  3197. fi
  3198. # Test the os and set the module linking settings
  3199. LINUX=no
  3200. IRIX=no
  3201. SUNOS=no
  3202. HPUX=no
  3203. EGG_CYGWIN=no
  3204. echo "$as_me:$LINENO: checking system type" >&5
  3205. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3206. if test "${egg_cv_var_system_type+set}" = set; then
  3207. echo $ECHO_N "(cached) $ECHO_C" >&6
  3208. else
  3209. egg_cv_var_system_type=`$UNAME -s`
  3210. fi
  3211. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3212. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3213. echo "$as_me:$LINENO: checking system release" >&5
  3214. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3215. if test "${egg_cv_var_system_release+set}" = set; then
  3216. echo $ECHO_N "(cached) $ECHO_C" >&6
  3217. else
  3218. egg_cv_var_system_release=`$UNAME -r`
  3219. fi
  3220. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3221. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3222. case "$egg_cv_var_system_type" in
  3223. BSD/OS)
  3224. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3225. 2)
  3226. ;;
  3227. *)
  3228. CFLAGS="$CFLAGS -Wall"
  3229. ;;
  3230. esac
  3231. ;;
  3232. CYGWI*)
  3233. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3234. 1.*)
  3235. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3236. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3237. WIN32FLAGS=
  3238. cat >conftest.$ac_ext <<_ACEOF
  3239. /* confdefs.h. */
  3240. _ACEOF
  3241. cat confdefs.h >>conftest.$ac_ext
  3242. cat >>conftest.$ac_ext <<_ACEOF
  3243. /* end confdefs.h. */
  3244. int
  3245. main ()
  3246. {
  3247. #ifndef WIN32
  3248. # ifndef _WIN32
  3249. # error WIN32 or _WIN32 not defined
  3250. # endif
  3251. #endif
  3252. ;
  3253. return 0;
  3254. }
  3255. _ACEOF
  3256. rm -f conftest.$ac_objext
  3257. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3258. (eval $ac_compile) 2>conftest.er1
  3259. ac_status=$?
  3260. grep -v '^ *+' conftest.er1 >conftest.err
  3261. rm -f conftest.er1
  3262. cat conftest.err >&5
  3263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3264. (exit $ac_status); } &&
  3265. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3271. { ac_try='test -s conftest.$ac_objext'
  3272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3273. (eval $ac_try) 2>&5
  3274. ac_status=$?
  3275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3276. (exit $ac_status); }; }; then
  3277. echo "$as_me:$LINENO: result: present by default" >&5
  3278. echo "${ECHO_T}present by default" >&6
  3279. else
  3280. echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. ac_compile_save="$ac_compile"
  3283. save_CC="$CC"
  3284. ac_compile="$ac_compile -mwin32"
  3285. CC="$CC -mwin32"
  3286. cat >conftest.$ac_ext <<_ACEOF
  3287. /* confdefs.h. */
  3288. _ACEOF
  3289. cat confdefs.h >>conftest.$ac_ext
  3290. cat >>conftest.$ac_ext <<_ACEOF
  3291. /* end confdefs.h. */
  3292. int
  3293. main ()
  3294. {
  3295. #ifndef WIN32
  3296. # ifndef _WIN32
  3297. # error WIN32 or _WIN32 not defined
  3298. # endif
  3299. #endif
  3300. ;
  3301. return 0;
  3302. }
  3303. _ACEOF
  3304. rm -f conftest.$ac_objext
  3305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3306. (eval $ac_compile) 2>conftest.er1
  3307. ac_status=$?
  3308. grep -v '^ *+' conftest.er1 >conftest.err
  3309. rm -f conftest.er1
  3310. cat conftest.err >&5
  3311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3312. (exit $ac_status); } &&
  3313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3319. { ac_try='test -s conftest.$ac_objext'
  3320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3321. (eval $ac_try) 2>&5
  3322. ac_status=$?
  3323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3324. (exit $ac_status); }; }; then
  3325. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3326. echo "${ECHO_T}found via -mwin32" >&6
  3327. ac_compile="$ac_compile_save"
  3328. CC="$save_CC"
  3329. WIN32FLAGS="-mwin32"
  3330. else
  3331. echo "$as_me: failed program was:" >&5
  3332. sed 's/^/| /' conftest.$ac_ext >&5
  3333. ac_compile="$ac_compile_save"
  3334. CC="$save_CC"
  3335. echo "$as_me:$LINENO: result: not found" >&5
  3336. echo "${ECHO_T}not found" >&6
  3337. fi
  3338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3339. fi
  3340. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3341. CC="$CC $WIN32FLAGS"
  3342. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3343. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3344. if test -r /usr/lib/binmode.o
  3345. then
  3346. echo "$as_me:$LINENO: result: yes" >&5
  3347. echo "${ECHO_T}yes" >&6
  3348. LIBS="$LIBS /usr/lib/binmode.o"
  3349. else
  3350. echo "$as_me:$LINENO: result: no" >&5
  3351. echo "${ECHO_T}no" >&6
  3352. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3353. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3354. fi
  3355. ;;
  3356. *)
  3357. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3358. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3359. ;;
  3360. esac
  3361. EGG_CYGWIN=yes
  3362. cat >>confdefs.h <<\_ACEOF
  3363. #define CYGWIN_HACKS 1
  3364. _ACEOF
  3365. ;;
  3366. HP-UX)
  3367. HPUX=yes
  3368. cat >>confdefs.h <<\_ACEOF
  3369. #define HPUX_HACKS 1
  3370. _ACEOF
  3371. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3372. then
  3373. cat >>confdefs.h <<\_ACEOF
  3374. #define HPUX10_HACKS 1
  3375. _ACEOF
  3376. fi
  3377. ;;
  3378. dell)
  3379. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3380. echo "${ECHO_T}Dell SVR4" >&6
  3381. ;;
  3382. IRIX)
  3383. IRIX=yes
  3384. ;;
  3385. Ultrix)
  3386. SHELL=/bin/sh5
  3387. ;;
  3388. SINIX*)
  3389. ;;
  3390. BeOS)
  3391. ;;
  3392. Linux)
  3393. LINUX=yes
  3394. CFLAGS="$CFLAGS -Wall"
  3395. ;;
  3396. Lynx)
  3397. ;;
  3398. QNX)
  3399. ;;
  3400. OSF1)
  3401. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3402. V*)
  3403. # FIXME: we should check this in a separate test
  3404. # Digital OSF uses an ancient version of gawk
  3405. if test "$AWK" = "gawk"
  3406. then
  3407. AWK=awk
  3408. fi
  3409. ;;
  3410. 1.0|1.1|1.2)
  3411. cat >>confdefs.h <<\_ACEOF
  3412. #define OSF1_HACKS 1
  3413. _ACEOF
  3414. ;;
  3415. 1.*)
  3416. cat >>confdefs.h <<\_ACEOF
  3417. #define OSF1_HACKS 1
  3418. _ACEOF
  3419. ;;
  3420. *)
  3421. ;;
  3422. esac
  3423. cat >>confdefs.h <<\_ACEOF
  3424. #define STOP_UAC 1
  3425. _ACEOF
  3426. cat >>confdefs.h <<\_ACEOF
  3427. #define BROKEN_SNPRINTF 1
  3428. _ACEOF
  3429. ;;
  3430. SunOS)
  3431. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3432. then
  3433. # SunOS 4
  3434. SUNOS=yes
  3435. fi
  3436. ;;
  3437. *BSD)
  3438. # FreeBSD/OpenBSD/NetBSD
  3439. ;;
  3440. *)
  3441. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3442. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3443. if test -r /mach
  3444. then
  3445. echo "$as_me:$LINENO: result: yes" >&5
  3446. echo "${ECHO_T}yes" >&6
  3447. cat >>confdefs.h <<\_ACEOF
  3448. #define BORGCUBES 1
  3449. _ACEOF
  3450. else
  3451. echo "$as_me:$LINENO: result: no" >&5
  3452. echo "${ECHO_T}no" >&6
  3453. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3454. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3455. if test -r /cmds
  3456. then
  3457. echo "$as_me:$LINENO: result: yes" >&5
  3458. echo "${ECHO_T}yes" >&6
  3459. else
  3460. echo "$as_me:$LINENO: result: no" >&5
  3461. echo "${ECHO_T}no" >&6
  3462. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3463. echo "${ECHO_T}Something unknown!" >&6
  3464. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3465. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3466. fi
  3467. fi
  3468. ;;
  3469. esac
  3470. dns_reslib_avail="true"
  3471. echo "$as_me:$LINENO: checking for res_init" >&5
  3472. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3473. if test "${ac_cv_func_res_init+set}" = set; then
  3474. echo $ECHO_N "(cached) $ECHO_C" >&6
  3475. else
  3476. cat >conftest.$ac_ext <<_ACEOF
  3477. /* confdefs.h. */
  3478. _ACEOF
  3479. cat confdefs.h >>conftest.$ac_ext
  3480. cat >>conftest.$ac_ext <<_ACEOF
  3481. /* end confdefs.h. */
  3482. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3483. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3484. #define res_init innocuous_res_init
  3485. /* System header to define __stub macros and hopefully few prototypes,
  3486. which can conflict with char res_init (); below.
  3487. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3488. <limits.h> exists even on freestanding compilers. */
  3489. #ifdef __STDC__
  3490. # include <limits.h>
  3491. #else
  3492. # include <assert.h>
  3493. #endif
  3494. #undef res_init
  3495. /* Override any gcc2 internal prototype to avoid an error. */
  3496. #ifdef __cplusplus
  3497. extern "C"
  3498. {
  3499. #endif
  3500. /* We use char because int might match the return type of a gcc2
  3501. builtin and then its argument prototype would still apply. */
  3502. char res_init ();
  3503. /* The GNU C library defines this for functions which it implements
  3504. to always fail with ENOSYS. Some functions are actually named
  3505. something starting with __ and the normal name is an alias. */
  3506. #if defined (__stub_res_init) || defined (__stub___res_init)
  3507. choke me
  3508. #else
  3509. char (*f) () = res_init;
  3510. #endif
  3511. #ifdef __cplusplus
  3512. }
  3513. #endif
  3514. int
  3515. main ()
  3516. {
  3517. return f != res_init;
  3518. ;
  3519. return 0;
  3520. }
  3521. _ACEOF
  3522. rm -f conftest.$ac_objext conftest$ac_exeext
  3523. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3524. (eval $ac_link) 2>conftest.er1
  3525. ac_status=$?
  3526. grep -v '^ *+' conftest.er1 >conftest.err
  3527. rm -f conftest.er1
  3528. cat conftest.err >&5
  3529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3530. (exit $ac_status); } &&
  3531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3537. { ac_try='test -s conftest$ac_exeext'
  3538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3539. (eval $ac_try) 2>&5
  3540. ac_status=$?
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); }; }; then
  3543. ac_cv_func_res_init=yes
  3544. else
  3545. echo "$as_me: failed program was:" >&5
  3546. sed 's/^/| /' conftest.$ac_ext >&5
  3547. ac_cv_func_res_init=no
  3548. fi
  3549. rm -f conftest.err conftest.$ac_objext \
  3550. conftest$ac_exeext conftest.$ac_ext
  3551. fi
  3552. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3553. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3554. if test $ac_cv_func_res_init = yes; then
  3555. :
  3556. else
  3557. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3558. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3559. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3560. echo $ECHO_N "(cached) $ECHO_C" >&6
  3561. else
  3562. ac_check_lib_save_LIBS=$LIBS
  3563. LIBS="-lresolv $LIBS"
  3564. cat >conftest.$ac_ext <<_ACEOF
  3565. /* confdefs.h. */
  3566. _ACEOF
  3567. cat confdefs.h >>conftest.$ac_ext
  3568. cat >>conftest.$ac_ext <<_ACEOF
  3569. /* end confdefs.h. */
  3570. /* Override any gcc2 internal prototype to avoid an error. */
  3571. #ifdef __cplusplus
  3572. extern "C"
  3573. #endif
  3574. /* We use char because int might match the return type of a gcc2
  3575. builtin and then its argument prototype would still apply. */
  3576. char res_init ();
  3577. int
  3578. main ()
  3579. {
  3580. res_init ();
  3581. ;
  3582. return 0;
  3583. }
  3584. _ACEOF
  3585. rm -f conftest.$ac_objext conftest$ac_exeext
  3586. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3587. (eval $ac_link) 2>conftest.er1
  3588. ac_status=$?
  3589. grep -v '^ *+' conftest.er1 >conftest.err
  3590. rm -f conftest.er1
  3591. cat conftest.err >&5
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); } &&
  3594. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3600. { ac_try='test -s conftest$ac_exeext'
  3601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3602. (eval $ac_try) 2>&5
  3603. ac_status=$?
  3604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); }; }; then
  3606. ac_cv_lib_resolv_res_init=yes
  3607. else
  3608. echo "$as_me: failed program was:" >&5
  3609. sed 's/^/| /' conftest.$ac_ext >&5
  3610. ac_cv_lib_resolv_res_init=no
  3611. fi
  3612. rm -f conftest.err conftest.$ac_objext \
  3613. conftest$ac_exeext conftest.$ac_ext
  3614. LIBS=$ac_check_lib_save_LIBS
  3615. fi
  3616. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3617. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3618. if test $ac_cv_lib_resolv_res_init = yes; then
  3619. RESLIB="-lresolv"
  3620. else
  3621. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3622. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3623. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3624. echo $ECHO_N "(cached) $ECHO_C" >&6
  3625. else
  3626. ac_check_lib_save_LIBS=$LIBS
  3627. LIBS="-lbind $LIBS"
  3628. cat >conftest.$ac_ext <<_ACEOF
  3629. /* confdefs.h. */
  3630. _ACEOF
  3631. cat confdefs.h >>conftest.$ac_ext
  3632. cat >>conftest.$ac_ext <<_ACEOF
  3633. /* end confdefs.h. */
  3634. /* Override any gcc2 internal prototype to avoid an error. */
  3635. #ifdef __cplusplus
  3636. extern "C"
  3637. #endif
  3638. /* We use char because int might match the return type of a gcc2
  3639. builtin and then its argument prototype would still apply. */
  3640. char res_init ();
  3641. int
  3642. main ()
  3643. {
  3644. res_init ();
  3645. ;
  3646. return 0;
  3647. }
  3648. _ACEOF
  3649. rm -f conftest.$ac_objext conftest$ac_exeext
  3650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3651. (eval $ac_link) 2>conftest.er1
  3652. ac_status=$?
  3653. grep -v '^ *+' conftest.er1 >conftest.err
  3654. rm -f conftest.er1
  3655. cat conftest.err >&5
  3656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3657. (exit $ac_status); } &&
  3658. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3664. { ac_try='test -s conftest$ac_exeext'
  3665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3666. (eval $ac_try) 2>&5
  3667. ac_status=$?
  3668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. (exit $ac_status); }; }; then
  3670. ac_cv_lib_bind_res_init=yes
  3671. else
  3672. echo "$as_me: failed program was:" >&5
  3673. sed 's/^/| /' conftest.$ac_ext >&5
  3674. ac_cv_lib_bind_res_init=no
  3675. fi
  3676. rm -f conftest.err conftest.$ac_objext \
  3677. conftest$ac_exeext conftest.$ac_ext
  3678. LIBS=$ac_check_lib_save_LIBS
  3679. fi
  3680. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3681. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3682. if test $ac_cv_lib_bind_res_init = yes; then
  3683. RESLIB="-lbind"
  3684. else
  3685. dns_reslib_avail="false";
  3686. fi
  3687. fi
  3688. fi
  3689. if test "${dns_reslib_avail}" = false; then
  3690. dns_reslib_avail="true"
  3691. echo "$as_me:$LINENO: checking for __res_init" >&5
  3692. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3693. if test "${ac_cv_func___res_init+set}" = set; then
  3694. echo $ECHO_N "(cached) $ECHO_C" >&6
  3695. else
  3696. cat >conftest.$ac_ext <<_ACEOF
  3697. /* confdefs.h. */
  3698. _ACEOF
  3699. cat confdefs.h >>conftest.$ac_ext
  3700. cat >>conftest.$ac_ext <<_ACEOF
  3701. /* end confdefs.h. */
  3702. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3703. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3704. #define __res_init innocuous___res_init
  3705. /* System header to define __stub macros and hopefully few prototypes,
  3706. which can conflict with char __res_init (); below.
  3707. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3708. <limits.h> exists even on freestanding compilers. */
  3709. #ifdef __STDC__
  3710. # include <limits.h>
  3711. #else
  3712. # include <assert.h>
  3713. #endif
  3714. #undef __res_init
  3715. /* Override any gcc2 internal prototype to avoid an error. */
  3716. #ifdef __cplusplus
  3717. extern "C"
  3718. {
  3719. #endif
  3720. /* We use char because int might match the return type of a gcc2
  3721. builtin and then its argument prototype would still apply. */
  3722. char __res_init ();
  3723. /* The GNU C library defines this for functions which it implements
  3724. to always fail with ENOSYS. Some functions are actually named
  3725. something starting with __ and the normal name is an alias. */
  3726. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3727. choke me
  3728. #else
  3729. char (*f) () = __res_init;
  3730. #endif
  3731. #ifdef __cplusplus
  3732. }
  3733. #endif
  3734. int
  3735. main ()
  3736. {
  3737. return f != __res_init;
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. rm -f conftest.$ac_objext conftest$ac_exeext
  3743. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3744. (eval $ac_link) 2>conftest.er1
  3745. ac_status=$?
  3746. grep -v '^ *+' conftest.er1 >conftest.err
  3747. rm -f conftest.er1
  3748. cat conftest.err >&5
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); } &&
  3751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3757. { ac_try='test -s conftest$ac_exeext'
  3758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3759. (eval $ac_try) 2>&5
  3760. ac_status=$?
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); }; }; then
  3763. ac_cv_func___res_init=yes
  3764. else
  3765. echo "$as_me: failed program was:" >&5
  3766. sed 's/^/| /' conftest.$ac_ext >&5
  3767. ac_cv_func___res_init=no
  3768. fi
  3769. rm -f conftest.err conftest.$ac_objext \
  3770. conftest$ac_exeext conftest.$ac_ext
  3771. fi
  3772. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3773. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3774. if test $ac_cv_func___res_init = yes; then
  3775. :
  3776. else
  3777. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3778. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3779. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3780. echo $ECHO_N "(cached) $ECHO_C" >&6
  3781. else
  3782. ac_check_lib_save_LIBS=$LIBS
  3783. LIBS="-lresolv $LIBS"
  3784. cat >conftest.$ac_ext <<_ACEOF
  3785. /* confdefs.h. */
  3786. _ACEOF
  3787. cat confdefs.h >>conftest.$ac_ext
  3788. cat >>conftest.$ac_ext <<_ACEOF
  3789. /* end confdefs.h. */
  3790. /* Override any gcc2 internal prototype to avoid an error. */
  3791. #ifdef __cplusplus
  3792. extern "C"
  3793. #endif
  3794. /* We use char because int might match the return type of a gcc2
  3795. builtin and then its argument prototype would still apply. */
  3796. char __res_init ();
  3797. int
  3798. main ()
  3799. {
  3800. __res_init ();
  3801. ;
  3802. return 0;
  3803. }
  3804. _ACEOF
  3805. rm -f conftest.$ac_objext conftest$ac_exeext
  3806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3807. (eval $ac_link) 2>conftest.er1
  3808. ac_status=$?
  3809. grep -v '^ *+' conftest.er1 >conftest.err
  3810. rm -f conftest.er1
  3811. cat conftest.err >&5
  3812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3813. (exit $ac_status); } &&
  3814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3820. { ac_try='test -s conftest$ac_exeext'
  3821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3822. (eval $ac_try) 2>&5
  3823. ac_status=$?
  3824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3825. (exit $ac_status); }; }; then
  3826. ac_cv_lib_resolv___res_init=yes
  3827. else
  3828. echo "$as_me: failed program was:" >&5
  3829. sed 's/^/| /' conftest.$ac_ext >&5
  3830. ac_cv_lib_resolv___res_init=no
  3831. fi
  3832. rm -f conftest.err conftest.$ac_objext \
  3833. conftest$ac_exeext conftest.$ac_ext
  3834. LIBS=$ac_check_lib_save_LIBS
  3835. fi
  3836. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3837. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3838. if test $ac_cv_lib_resolv___res_init = yes; then
  3839. RESLIB="-lresolv"
  3840. else
  3841. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3842. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3843. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3844. echo $ECHO_N "(cached) $ECHO_C" >&6
  3845. else
  3846. ac_check_lib_save_LIBS=$LIBS
  3847. LIBS="-lbind $LIBS"
  3848. cat >conftest.$ac_ext <<_ACEOF
  3849. /* confdefs.h. */
  3850. _ACEOF
  3851. cat confdefs.h >>conftest.$ac_ext
  3852. cat >>conftest.$ac_ext <<_ACEOF
  3853. /* end confdefs.h. */
  3854. /* Override any gcc2 internal prototype to avoid an error. */
  3855. #ifdef __cplusplus
  3856. extern "C"
  3857. #endif
  3858. /* We use char because int might match the return type of a gcc2
  3859. builtin and then its argument prototype would still apply. */
  3860. char __res_init ();
  3861. int
  3862. main ()
  3863. {
  3864. __res_init ();
  3865. ;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. rm -f conftest.$ac_objext conftest$ac_exeext
  3870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3871. (eval $ac_link) 2>conftest.er1
  3872. ac_status=$?
  3873. grep -v '^ *+' conftest.er1 >conftest.err
  3874. rm -f conftest.er1
  3875. cat conftest.err >&5
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } &&
  3878. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3884. { ac_try='test -s conftest$ac_exeext'
  3885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3886. (eval $ac_try) 2>&5
  3887. ac_status=$?
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); }; }; then
  3890. ac_cv_lib_bind___res_init=yes
  3891. else
  3892. echo "$as_me: failed program was:" >&5
  3893. sed 's/^/| /' conftest.$ac_ext >&5
  3894. ac_cv_lib_bind___res_init=no
  3895. fi
  3896. rm -f conftest.err conftest.$ac_objext \
  3897. conftest$ac_exeext conftest.$ac_ext
  3898. LIBS=$ac_check_lib_save_LIBS
  3899. fi
  3900. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3901. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3902. if test $ac_cv_lib_bind___res_init = yes; then
  3903. RESLIB="-lbind"
  3904. else
  3905. dns_reslib_avail="false";
  3906. fi
  3907. fi
  3908. fi
  3909. fi
  3910. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3911. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3912. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3913. echo $ECHO_N "(cached) $ECHO_C" >&6
  3914. else
  3915. cat >conftest.$ac_ext <<_ACEOF
  3916. /* confdefs.h. */
  3917. _ACEOF
  3918. cat confdefs.h >>conftest.$ac_ext
  3919. cat >>conftest.$ac_ext <<_ACEOF
  3920. /* end confdefs.h. */
  3921. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3922. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3923. #define res_mkquery innocuous_res_mkquery
  3924. /* System header to define __stub macros and hopefully few prototypes,
  3925. which can conflict with char res_mkquery (); below.
  3926. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3927. <limits.h> exists even on freestanding compilers. */
  3928. #ifdef __STDC__
  3929. # include <limits.h>
  3930. #else
  3931. # include <assert.h>
  3932. #endif
  3933. #undef res_mkquery
  3934. /* Override any gcc2 internal prototype to avoid an error. */
  3935. #ifdef __cplusplus
  3936. extern "C"
  3937. {
  3938. #endif
  3939. /* We use char because int might match the return type of a gcc2
  3940. builtin and then its argument prototype would still apply. */
  3941. char res_mkquery ();
  3942. /* The GNU C library defines this for functions which it implements
  3943. to always fail with ENOSYS. Some functions are actually named
  3944. something starting with __ and the normal name is an alias. */
  3945. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3946. choke me
  3947. #else
  3948. char (*f) () = res_mkquery;
  3949. #endif
  3950. #ifdef __cplusplus
  3951. }
  3952. #endif
  3953. int
  3954. main ()
  3955. {
  3956. return f != res_mkquery;
  3957. ;
  3958. return 0;
  3959. }
  3960. _ACEOF
  3961. rm -f conftest.$ac_objext conftest$ac_exeext
  3962. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3963. (eval $ac_link) 2>conftest.er1
  3964. ac_status=$?
  3965. grep -v '^ *+' conftest.er1 >conftest.err
  3966. rm -f conftest.er1
  3967. cat conftest.err >&5
  3968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3969. (exit $ac_status); } &&
  3970. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  3976. { ac_try='test -s conftest$ac_exeext'
  3977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3978. (eval $ac_try) 2>&5
  3979. ac_status=$?
  3980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3981. (exit $ac_status); }; }; then
  3982. ac_cv_func_res_mkquery=yes
  3983. else
  3984. echo "$as_me: failed program was:" >&5
  3985. sed 's/^/| /' conftest.$ac_ext >&5
  3986. ac_cv_func_res_mkquery=no
  3987. fi
  3988. rm -f conftest.err conftest.$ac_objext \
  3989. conftest$ac_exeext conftest.$ac_ext
  3990. fi
  3991. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3992. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3993. if test $ac_cv_func_res_mkquery = yes; then
  3994. :
  3995. else
  3996. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3997. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3998. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3999. echo $ECHO_N "(cached) $ECHO_C" >&6
  4000. else
  4001. ac_check_lib_save_LIBS=$LIBS
  4002. LIBS="-lresolv $LIBS"
  4003. cat >conftest.$ac_ext <<_ACEOF
  4004. /* confdefs.h. */
  4005. _ACEOF
  4006. cat confdefs.h >>conftest.$ac_ext
  4007. cat >>conftest.$ac_ext <<_ACEOF
  4008. /* end confdefs.h. */
  4009. /* Override any gcc2 internal prototype to avoid an error. */
  4010. #ifdef __cplusplus
  4011. extern "C"
  4012. #endif
  4013. /* We use char because int might match the return type of a gcc2
  4014. builtin and then its argument prototype would still apply. */
  4015. char res_mkquery ();
  4016. int
  4017. main ()
  4018. {
  4019. res_mkquery ();
  4020. ;
  4021. return 0;
  4022. }
  4023. _ACEOF
  4024. rm -f conftest.$ac_objext conftest$ac_exeext
  4025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4026. (eval $ac_link) 2>conftest.er1
  4027. ac_status=$?
  4028. grep -v '^ *+' conftest.er1 >conftest.err
  4029. rm -f conftest.er1
  4030. cat conftest.err >&5
  4031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4032. (exit $ac_status); } &&
  4033. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4039. { ac_try='test -s conftest$ac_exeext'
  4040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4041. (eval $ac_try) 2>&5
  4042. ac_status=$?
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); }; }; then
  4045. ac_cv_lib_resolv_res_mkquery=yes
  4046. else
  4047. echo "$as_me: failed program was:" >&5
  4048. sed 's/^/| /' conftest.$ac_ext >&5
  4049. ac_cv_lib_resolv_res_mkquery=no
  4050. fi
  4051. rm -f conftest.err conftest.$ac_objext \
  4052. conftest$ac_exeext conftest.$ac_ext
  4053. LIBS=$ac_check_lib_save_LIBS
  4054. fi
  4055. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4056. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4057. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4058. if test "x${RESLIB}" != "x-lresolv"; then
  4059. RESLIB="${RESLIB} -lresolv"
  4060. fi
  4061. else
  4062. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4063. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4064. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4065. echo $ECHO_N "(cached) $ECHO_C" >&6
  4066. else
  4067. ac_check_lib_save_LIBS=$LIBS
  4068. LIBS="-lbind $LIBS"
  4069. cat >conftest.$ac_ext <<_ACEOF
  4070. /* confdefs.h. */
  4071. _ACEOF
  4072. cat confdefs.h >>conftest.$ac_ext
  4073. cat >>conftest.$ac_ext <<_ACEOF
  4074. /* end confdefs.h. */
  4075. /* Override any gcc2 internal prototype to avoid an error. */
  4076. #ifdef __cplusplus
  4077. extern "C"
  4078. #endif
  4079. /* We use char because int might match the return type of a gcc2
  4080. builtin and then its argument prototype would still apply. */
  4081. char res_mkquery ();
  4082. int
  4083. main ()
  4084. {
  4085. res_mkquery ();
  4086. ;
  4087. return 0;
  4088. }
  4089. _ACEOF
  4090. rm -f conftest.$ac_objext conftest$ac_exeext
  4091. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4092. (eval $ac_link) 2>conftest.er1
  4093. ac_status=$?
  4094. grep -v '^ *+' conftest.er1 >conftest.err
  4095. rm -f conftest.er1
  4096. cat conftest.err >&5
  4097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4098. (exit $ac_status); } &&
  4099. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4105. { ac_try='test -s conftest$ac_exeext'
  4106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4107. (eval $ac_try) 2>&5
  4108. ac_status=$?
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); }; }; then
  4111. ac_cv_lib_bind_res_mkquery=yes
  4112. else
  4113. echo "$as_me: failed program was:" >&5
  4114. sed 's/^/| /' conftest.$ac_ext >&5
  4115. ac_cv_lib_bind_res_mkquery=no
  4116. fi
  4117. rm -f conftest.err conftest.$ac_objext \
  4118. conftest$ac_exeext conftest.$ac_ext
  4119. LIBS=$ac_check_lib_save_LIBS
  4120. fi
  4121. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4122. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4123. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4124. if test "x${RESLIB}" != "x-lbind"; then
  4125. RESLIB="${RESLIB} -lbind"
  4126. fi
  4127. else
  4128. dns_reslib_avail="false";
  4129. fi
  4130. fi
  4131. fi
  4132. if test "${dns_reslib_avail}" = false; then
  4133. dns_reslib_avail="true"
  4134. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4135. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4136. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4137. echo $ECHO_N "(cached) $ECHO_C" >&6
  4138. else
  4139. cat >conftest.$ac_ext <<_ACEOF
  4140. /* confdefs.h. */
  4141. _ACEOF
  4142. cat confdefs.h >>conftest.$ac_ext
  4143. cat >>conftest.$ac_ext <<_ACEOF
  4144. /* end confdefs.h. */
  4145. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4146. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4147. #define __res_mkquery innocuous___res_mkquery
  4148. /* System header to define __stub macros and hopefully few prototypes,
  4149. which can conflict with char __res_mkquery (); below.
  4150. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4151. <limits.h> exists even on freestanding compilers. */
  4152. #ifdef __STDC__
  4153. # include <limits.h>
  4154. #else
  4155. # include <assert.h>
  4156. #endif
  4157. #undef __res_mkquery
  4158. /* Override any gcc2 internal prototype to avoid an error. */
  4159. #ifdef __cplusplus
  4160. extern "C"
  4161. {
  4162. #endif
  4163. /* We use char because int might match the return type of a gcc2
  4164. builtin and then its argument prototype would still apply. */
  4165. char __res_mkquery ();
  4166. /* The GNU C library defines this for functions which it implements
  4167. to always fail with ENOSYS. Some functions are actually named
  4168. something starting with __ and the normal name is an alias. */
  4169. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4170. choke me
  4171. #else
  4172. char (*f) () = __res_mkquery;
  4173. #endif
  4174. #ifdef __cplusplus
  4175. }
  4176. #endif
  4177. int
  4178. main ()
  4179. {
  4180. return f != __res_mkquery;
  4181. ;
  4182. return 0;
  4183. }
  4184. _ACEOF
  4185. rm -f conftest.$ac_objext conftest$ac_exeext
  4186. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4187. (eval $ac_link) 2>conftest.er1
  4188. ac_status=$?
  4189. grep -v '^ *+' conftest.er1 >conftest.err
  4190. rm -f conftest.er1
  4191. cat conftest.err >&5
  4192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4193. (exit $ac_status); } &&
  4194. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4200. { ac_try='test -s conftest$ac_exeext'
  4201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4202. (eval $ac_try) 2>&5
  4203. ac_status=$?
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); }; }; then
  4206. ac_cv_func___res_mkquery=yes
  4207. else
  4208. echo "$as_me: failed program was:" >&5
  4209. sed 's/^/| /' conftest.$ac_ext >&5
  4210. ac_cv_func___res_mkquery=no
  4211. fi
  4212. rm -f conftest.err conftest.$ac_objext \
  4213. conftest$ac_exeext conftest.$ac_ext
  4214. fi
  4215. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4216. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4217. if test $ac_cv_func___res_mkquery = yes; then
  4218. :
  4219. else
  4220. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4221. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4222. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4223. echo $ECHO_N "(cached) $ECHO_C" >&6
  4224. else
  4225. ac_check_lib_save_LIBS=$LIBS
  4226. LIBS="-lresolv $LIBS"
  4227. cat >conftest.$ac_ext <<_ACEOF
  4228. /* confdefs.h. */
  4229. _ACEOF
  4230. cat confdefs.h >>conftest.$ac_ext
  4231. cat >>conftest.$ac_ext <<_ACEOF
  4232. /* end confdefs.h. */
  4233. /* Override any gcc2 internal prototype to avoid an error. */
  4234. #ifdef __cplusplus
  4235. extern "C"
  4236. #endif
  4237. /* We use char because int might match the return type of a gcc2
  4238. builtin and then its argument prototype would still apply. */
  4239. char __res_mkquery ();
  4240. int
  4241. main ()
  4242. {
  4243. __res_mkquery ();
  4244. ;
  4245. return 0;
  4246. }
  4247. _ACEOF
  4248. rm -f conftest.$ac_objext conftest$ac_exeext
  4249. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4250. (eval $ac_link) 2>conftest.er1
  4251. ac_status=$?
  4252. grep -v '^ *+' conftest.er1 >conftest.err
  4253. rm -f conftest.er1
  4254. cat conftest.err >&5
  4255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4256. (exit $ac_status); } &&
  4257. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4263. { ac_try='test -s conftest$ac_exeext'
  4264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4265. (eval $ac_try) 2>&5
  4266. ac_status=$?
  4267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4268. (exit $ac_status); }; }; then
  4269. ac_cv_lib_resolv___res_mkquery=yes
  4270. else
  4271. echo "$as_me: failed program was:" >&5
  4272. sed 's/^/| /' conftest.$ac_ext >&5
  4273. ac_cv_lib_resolv___res_mkquery=no
  4274. fi
  4275. rm -f conftest.err conftest.$ac_objext \
  4276. conftest$ac_exeext conftest.$ac_ext
  4277. LIBS=$ac_check_lib_save_LIBS
  4278. fi
  4279. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4280. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4281. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4282. if test "x${RESLIB}" != "x-lresolv"; then
  4283. RESLIB="${RESLIB} -lresolv"
  4284. fi
  4285. else
  4286. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4287. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4288. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4289. echo $ECHO_N "(cached) $ECHO_C" >&6
  4290. else
  4291. ac_check_lib_save_LIBS=$LIBS
  4292. LIBS="-lbind $LIBS"
  4293. cat >conftest.$ac_ext <<_ACEOF
  4294. /* confdefs.h. */
  4295. _ACEOF
  4296. cat confdefs.h >>conftest.$ac_ext
  4297. cat >>conftest.$ac_ext <<_ACEOF
  4298. /* end confdefs.h. */
  4299. /* Override any gcc2 internal prototype to avoid an error. */
  4300. #ifdef __cplusplus
  4301. extern "C"
  4302. #endif
  4303. /* We use char because int might match the return type of a gcc2
  4304. builtin and then its argument prototype would still apply. */
  4305. char __res_mkquery ();
  4306. int
  4307. main ()
  4308. {
  4309. __res_mkquery ();
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. rm -f conftest.$ac_objext conftest$ac_exeext
  4315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4316. (eval $ac_link) 2>conftest.er1
  4317. ac_status=$?
  4318. grep -v '^ *+' conftest.er1 >conftest.err
  4319. rm -f conftest.er1
  4320. cat conftest.err >&5
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } &&
  4323. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4329. { ac_try='test -s conftest$ac_exeext'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; }; then
  4335. ac_cv_lib_bind___res_mkquery=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. ac_cv_lib_bind___res_mkquery=no
  4340. fi
  4341. rm -f conftest.err conftest.$ac_objext \
  4342. conftest$ac_exeext conftest.$ac_ext
  4343. LIBS=$ac_check_lib_save_LIBS
  4344. fi
  4345. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4346. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4347. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4348. if test "x${RESLIB}" != "x-lbind"; then
  4349. RESLIB="${RESLIB} -lbind"
  4350. fi
  4351. else
  4352. dns_reslib_avail="false";
  4353. fi
  4354. fi
  4355. fi
  4356. fi
  4357. if test "${dns_reslib_avail}" = false; then
  4358. if test "$ac_cv_cygwin" = "yes"; then
  4359. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4360. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4361. if test -r /usr/local/bind/lib/libbind.a; then
  4362. echo "$as_me:$LINENO: result: yes" >&5
  4363. echo "${ECHO_T}yes" >&6
  4364. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4365. RESINCLUDE="-I/usr/local/bind/include"
  4366. dns_reslib_avail="true"
  4367. else
  4368. echo "$as_me:$LINENO: result: no" >&5
  4369. echo "${ECHO_T}no" >&6
  4370. fi
  4371. fi
  4372. fi
  4373. if test "${dns_reslib_avail}" = false; then
  4374. cat >&2 <<EOF
  4375. configure: warning:
  4376. Your system provides no functional resolver library.
  4377. One is required for buld.
  4378. EOF
  4379. exit 1
  4380. fi
  4381. #checkpoint
  4382. cat >confcache <<\_ACEOF
  4383. # This file is a shell script that caches the results of configure
  4384. # tests run on this system so they can be shared between configure
  4385. # scripts and configure runs, see configure's option --config-cache.
  4386. # It is not useful on other systems. If it contains results you don't
  4387. # want to keep, you may remove or edit it.
  4388. #
  4389. # config.status only pays attention to the cache file if you give it
  4390. # the --recheck option to rerun configure.
  4391. #
  4392. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4393. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4394. # following values.
  4395. _ACEOF
  4396. # The following way of writing the cache mishandles newlines in values,
  4397. # but we know of no workaround that is simple, portable, and efficient.
  4398. # So, don't put newlines in cache variables' values.
  4399. # Ultrix sh set writes to stderr and can't be redirected directly,
  4400. # and sets the high bit in the cache file unless we assign to the vars.
  4401. {
  4402. (set) 2>&1 |
  4403. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4404. *ac_space=\ *)
  4405. # `set' does not quote correctly, so add quotes (double-quote
  4406. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4407. sed -n \
  4408. "s/'/'\\\\''/g;
  4409. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4410. ;;
  4411. *)
  4412. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4413. sed -n \
  4414. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4415. ;;
  4416. esac;
  4417. } |
  4418. sed '
  4419. t clear
  4420. : clear
  4421. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4422. t end
  4423. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4424. : end' >>confcache
  4425. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4426. if test -w $cache_file; then
  4427. test "x$cache_file" != "x/dev/null"
  4428. cat confcache >$cache_file
  4429. else
  4430. echo "not updating unwritable cache $cache_file"
  4431. fi
  4432. fi
  4433. rm -f confcache
  4434. # Checks for system libraries
  4435. # FIXME: this needs to be fixed so that it works on IRIX
  4436. if test "$IRIX" = "yes"
  4437. then
  4438. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4439. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4440. else
  4441. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4442. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4443. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4444. echo $ECHO_N "(cached) $ECHO_C" >&6
  4445. else
  4446. ac_check_lib_save_LIBS=$LIBS
  4447. LIBS="-lsocket $LIBS"
  4448. cat >conftest.$ac_ext <<_ACEOF
  4449. /* confdefs.h. */
  4450. _ACEOF
  4451. cat confdefs.h >>conftest.$ac_ext
  4452. cat >>conftest.$ac_ext <<_ACEOF
  4453. /* end confdefs.h. */
  4454. /* Override any gcc2 internal prototype to avoid an error. */
  4455. #ifdef __cplusplus
  4456. extern "C"
  4457. #endif
  4458. /* We use char because int might match the return type of a gcc2
  4459. builtin and then its argument prototype would still apply. */
  4460. char socket ();
  4461. int
  4462. main ()
  4463. {
  4464. socket ();
  4465. ;
  4466. return 0;
  4467. }
  4468. _ACEOF
  4469. rm -f conftest.$ac_objext conftest$ac_exeext
  4470. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4471. (eval $ac_link) 2>conftest.er1
  4472. ac_status=$?
  4473. grep -v '^ *+' conftest.er1 >conftest.err
  4474. rm -f conftest.er1
  4475. cat conftest.err >&5
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); } &&
  4478. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  4484. { ac_try='test -s conftest$ac_exeext'
  4485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4486. (eval $ac_try) 2>&5
  4487. ac_status=$?
  4488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4489. (exit $ac_status); }; }; then
  4490. ac_cv_lib_socket_socket=yes
  4491. else
  4492. echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. ac_cv_lib_socket_socket=no
  4495. fi
  4496. rm -f conftest.err conftest.$ac_objext \
  4497. conftest$ac_exeext conftest.$ac_ext
  4498. LIBS=$ac_check_lib_save_LIBS
  4499. fi
  4500. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4501. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4502. if test $ac_cv_lib_socket_socket = yes; then
  4503. cat >>confdefs.h <<_ACEOF
  4504. #define HAVE_LIBSOCKET 1
  4505. _ACEOF
  4506. LIBS="-lsocket $LIBS"
  4507. fi
  4508. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4509. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4510. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4511. echo $ECHO_N "(cached) $ECHO_C" >&6
  4512. else
  4513. ac_check_lib_save_LIBS=$LIBS
  4514. LIBS="-lnsl $LIBS"
  4515. cat >conftest.$ac_ext <<_ACEOF
  4516. /* confdefs.h. */
  4517. _ACEOF
  4518. cat confdefs.h >>conftest.$ac_ext
  4519. cat >>conftest.$ac_ext <<_ACEOF
  4520. /* end confdefs.h. */
  4521. /* Override any gcc2 internal prototype to avoid an error. */
  4522. #ifdef __cplusplus
  4523. extern "C"
  4524. #endif
  4525. /* We use char because int might match the return type of a gcc2
  4526. builtin and then its argument prototype would still apply. */
  4527. char connect ();
  4528. int
  4529. main ()
  4530. {
  4531. connect ();
  4532. ;
  4533. return 0;
  4534. }
  4535. _ACEOF
  4536. rm -f conftest.$ac_objext conftest$ac_exeext
  4537. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4538. (eval $ac_link) 2>conftest.er1
  4539. ac_status=$?
  4540. grep -v '^ *+' conftest.er1 >conftest.err
  4541. rm -f conftest.er1
  4542. cat conftest.err >&5
  4543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4544. (exit $ac_status); } &&
  4545. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4547. (eval $ac_try) 2>&5
  4548. ac_status=$?
  4549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4550. (exit $ac_status); }; } &&
  4551. { ac_try='test -s conftest$ac_exeext'
  4552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4553. (eval $ac_try) 2>&5
  4554. ac_status=$?
  4555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4556. (exit $ac_status); }; }; then
  4557. ac_cv_lib_nsl_connect=yes
  4558. else
  4559. echo "$as_me: failed program was:" >&5
  4560. sed 's/^/| /' conftest.$ac_ext >&5
  4561. ac_cv_lib_nsl_connect=no
  4562. fi
  4563. rm -f conftest.err conftest.$ac_objext \
  4564. conftest$ac_exeext conftest.$ac_ext
  4565. LIBS=$ac_check_lib_save_LIBS
  4566. fi
  4567. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4568. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4569. if test $ac_cv_lib_nsl_connect = yes; then
  4570. cat >>confdefs.h <<_ACEOF
  4571. #define HAVE_LIBNSL 1
  4572. _ACEOF
  4573. LIBS="-lnsl $LIBS"
  4574. fi
  4575. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4576. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4577. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4578. echo $ECHO_N "(cached) $ECHO_C" >&6
  4579. else
  4580. ac_check_lib_save_LIBS=$LIBS
  4581. LIBS="-ldns $LIBS"
  4582. cat >conftest.$ac_ext <<_ACEOF
  4583. /* confdefs.h. */
  4584. _ACEOF
  4585. cat confdefs.h >>conftest.$ac_ext
  4586. cat >>conftest.$ac_ext <<_ACEOF
  4587. /* end confdefs.h. */
  4588. /* Override any gcc2 internal prototype to avoid an error. */
  4589. #ifdef __cplusplus
  4590. extern "C"
  4591. #endif
  4592. /* We use char because int might match the return type of a gcc2
  4593. builtin and then its argument prototype would still apply. */
  4594. char gethostbyname ();
  4595. int
  4596. main ()
  4597. {
  4598. gethostbyname ();
  4599. ;
  4600. return 0;
  4601. }
  4602. _ACEOF
  4603. rm -f conftest.$ac_objext conftest$ac_exeext
  4604. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4605. (eval $ac_link) 2>conftest.er1
  4606. ac_status=$?
  4607. grep -v '^ *+' conftest.er1 >conftest.err
  4608. rm -f conftest.er1
  4609. cat conftest.err >&5
  4610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4611. (exit $ac_status); } &&
  4612. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4614. (eval $ac_try) 2>&5
  4615. ac_status=$?
  4616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4617. (exit $ac_status); }; } &&
  4618. { ac_try='test -s conftest$ac_exeext'
  4619. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4620. (eval $ac_try) 2>&5
  4621. ac_status=$?
  4622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4623. (exit $ac_status); }; }; then
  4624. ac_cv_lib_dns_gethostbyname=yes
  4625. else
  4626. echo "$as_me: failed program was:" >&5
  4627. sed 's/^/| /' conftest.$ac_ext >&5
  4628. ac_cv_lib_dns_gethostbyname=no
  4629. fi
  4630. rm -f conftest.err conftest.$ac_objext \
  4631. conftest$ac_exeext conftest.$ac_ext
  4632. LIBS=$ac_check_lib_save_LIBS
  4633. fi
  4634. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4635. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4636. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4637. cat >>confdefs.h <<_ACEOF
  4638. #define HAVE_LIBDNS 1
  4639. _ACEOF
  4640. LIBS="-ldns $LIBS"
  4641. fi
  4642. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4643. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4644. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4645. echo $ECHO_N "(cached) $ECHO_C" >&6
  4646. else
  4647. ac_check_lib_save_LIBS=$LIBS
  4648. LIBS="-lz $LIBS"
  4649. cat >conftest.$ac_ext <<_ACEOF
  4650. /* confdefs.h. */
  4651. _ACEOF
  4652. cat confdefs.h >>conftest.$ac_ext
  4653. cat >>conftest.$ac_ext <<_ACEOF
  4654. /* end confdefs.h. */
  4655. /* Override any gcc2 internal prototype to avoid an error. */
  4656. #ifdef __cplusplus
  4657. extern "C"
  4658. #endif
  4659. /* We use char because int might match the return type of a gcc2
  4660. builtin and then its argument prototype would still apply. */
  4661. char gzopen ();
  4662. int
  4663. main ()
  4664. {
  4665. gzopen ();
  4666. ;
  4667. return 0;
  4668. }
  4669. _ACEOF
  4670. rm -f conftest.$ac_objext conftest$ac_exeext
  4671. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4672. (eval $ac_link) 2>conftest.er1
  4673. ac_status=$?
  4674. grep -v '^ *+' conftest.er1 >conftest.err
  4675. rm -f conftest.er1
  4676. cat conftest.err >&5
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); } &&
  4679. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; } &&
  4685. { ac_try='test -s conftest$ac_exeext'
  4686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4687. (eval $ac_try) 2>&5
  4688. ac_status=$?
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); }; }; then
  4691. ac_cv_lib_z_gzopen=yes
  4692. else
  4693. echo "$as_me: failed program was:" >&5
  4694. sed 's/^/| /' conftest.$ac_ext >&5
  4695. ac_cv_lib_z_gzopen=no
  4696. fi
  4697. rm -f conftest.err conftest.$ac_objext \
  4698. conftest$ac_exeext conftest.$ac_ext
  4699. LIBS=$ac_check_lib_save_LIBS
  4700. fi
  4701. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4702. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4703. if test $ac_cv_lib_z_gzopen = yes; then
  4704. ZLIB="-lz"
  4705. fi
  4706. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4707. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4708. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4709. echo $ECHO_N "(cached) $ECHO_C" >&6
  4710. else
  4711. ac_check_lib_save_LIBS=$LIBS
  4712. LIBS="-lssl -lcrypto $LIBS"
  4713. cat >conftest.$ac_ext <<_ACEOF
  4714. /* confdefs.h. */
  4715. _ACEOF
  4716. cat confdefs.h >>conftest.$ac_ext
  4717. cat >>conftest.$ac_ext <<_ACEOF
  4718. /* end confdefs.h. */
  4719. /* Override any gcc2 internal prototype to avoid an error. */
  4720. #ifdef __cplusplus
  4721. extern "C"
  4722. #endif
  4723. /* We use char because int might match the return type of a gcc2
  4724. builtin and then its argument prototype would still apply. */
  4725. char SSL_accept ();
  4726. int
  4727. main ()
  4728. {
  4729. SSL_accept ();
  4730. ;
  4731. return 0;
  4732. }
  4733. _ACEOF
  4734. rm -f conftest.$ac_objext conftest$ac_exeext
  4735. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4736. (eval $ac_link) 2>conftest.er1
  4737. ac_status=$?
  4738. grep -v '^ *+' conftest.er1 >conftest.err
  4739. rm -f conftest.er1
  4740. cat conftest.err >&5
  4741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4742. (exit $ac_status); } &&
  4743. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4745. (eval $ac_try) 2>&5
  4746. ac_status=$?
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); }; } &&
  4749. { ac_try='test -s conftest$ac_exeext'
  4750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4751. (eval $ac_try) 2>&5
  4752. ac_status=$?
  4753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4754. (exit $ac_status); }; }; then
  4755. ac_cv_lib_ssl_SSL_accept=yes
  4756. else
  4757. echo "$as_me: failed program was:" >&5
  4758. sed 's/^/| /' conftest.$ac_ext >&5
  4759. ac_cv_lib_ssl_SSL_accept=no
  4760. fi
  4761. rm -f conftest.err conftest.$ac_objext \
  4762. conftest$ac_exeext conftest.$ac_ext
  4763. LIBS=$ac_check_lib_save_LIBS
  4764. fi
  4765. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4766. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4767. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4768. SSL="-lssl -lcrypto"
  4769. else
  4770. SSL=""
  4771. fi
  4772. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4773. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  4774. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4775. echo $ECHO_N "(cached) $ECHO_C" >&6
  4776. else
  4777. ac_check_lib_save_LIBS=$LIBS
  4778. LIBS="-ldl $LIBS"
  4779. cat >conftest.$ac_ext <<_ACEOF
  4780. /* confdefs.h. */
  4781. _ACEOF
  4782. cat confdefs.h >>conftest.$ac_ext
  4783. cat >>conftest.$ac_ext <<_ACEOF
  4784. /* end confdefs.h. */
  4785. /* Override any gcc2 internal prototype to avoid an error. */
  4786. #ifdef __cplusplus
  4787. extern "C"
  4788. #endif
  4789. /* We use char because int might match the return type of a gcc2
  4790. builtin and then its argument prototype would still apply. */
  4791. char dlopen ();
  4792. int
  4793. main ()
  4794. {
  4795. dlopen ();
  4796. ;
  4797. return 0;
  4798. }
  4799. _ACEOF
  4800. rm -f conftest.$ac_objext conftest$ac_exeext
  4801. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4802. (eval $ac_link) 2>conftest.er1
  4803. ac_status=$?
  4804. grep -v '^ *+' conftest.er1 >conftest.err
  4805. rm -f conftest.er1
  4806. cat conftest.err >&5
  4807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4808. (exit $ac_status); } &&
  4809. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4811. (eval $ac_try) 2>&5
  4812. ac_status=$?
  4813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4814. (exit $ac_status); }; } &&
  4815. { ac_try='test -s conftest$ac_exeext'
  4816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4817. (eval $ac_try) 2>&5
  4818. ac_status=$?
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); }; }; then
  4821. ac_cv_lib_dl_dlopen=yes
  4822. else
  4823. echo "$as_me: failed program was:" >&5
  4824. sed 's/^/| /' conftest.$ac_ext >&5
  4825. ac_cv_lib_dl_dlopen=no
  4826. fi
  4827. rm -f conftest.err conftest.$ac_objext \
  4828. conftest$ac_exeext conftest.$ac_ext
  4829. LIBS=$ac_check_lib_save_LIBS
  4830. fi
  4831. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4832. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  4833. if test $ac_cv_lib_dl_dlopen = yes; then
  4834. cat >>confdefs.h <<_ACEOF
  4835. #define HAVE_LIBDL 1
  4836. _ACEOF
  4837. LIBS="-ldl $LIBS"
  4838. fi
  4839. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  4840. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  4841. if test "${ac_cv_lib_m_tan+set}" = set; then
  4842. echo $ECHO_N "(cached) $ECHO_C" >&6
  4843. else
  4844. ac_check_lib_save_LIBS=$LIBS
  4845. LIBS="-lm $LIBS"
  4846. cat >conftest.$ac_ext <<_ACEOF
  4847. /* confdefs.h. */
  4848. _ACEOF
  4849. cat confdefs.h >>conftest.$ac_ext
  4850. cat >>conftest.$ac_ext <<_ACEOF
  4851. /* end confdefs.h. */
  4852. /* Override any gcc2 internal prototype to avoid an error. */
  4853. #ifdef __cplusplus
  4854. extern "C"
  4855. #endif
  4856. /* We use char because int might match the return type of a gcc2
  4857. builtin and then its argument prototype would still apply. */
  4858. char tan ();
  4859. int
  4860. main ()
  4861. {
  4862. tan ();
  4863. ;
  4864. return 0;
  4865. }
  4866. _ACEOF
  4867. rm -f conftest.$ac_objext conftest$ac_exeext
  4868. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4869. (eval $ac_link) 2>conftest.er1
  4870. ac_status=$?
  4871. grep -v '^ *+' conftest.er1 >conftest.err
  4872. rm -f conftest.er1
  4873. cat conftest.err >&5
  4874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4875. (exit $ac_status); } &&
  4876. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4877. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4878. (eval $ac_try) 2>&5
  4879. ac_status=$?
  4880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4881. (exit $ac_status); }; } &&
  4882. { ac_try='test -s conftest$ac_exeext'
  4883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4884. (eval $ac_try) 2>&5
  4885. ac_status=$?
  4886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887. (exit $ac_status); }; }; then
  4888. ac_cv_lib_m_tan=yes
  4889. else
  4890. echo "$as_me: failed program was:" >&5
  4891. sed 's/^/| /' conftest.$ac_ext >&5
  4892. ac_cv_lib_m_tan=no
  4893. fi
  4894. rm -f conftest.err conftest.$ac_objext \
  4895. conftest$ac_exeext conftest.$ac_ext
  4896. LIBS=$ac_check_lib_save_LIBS
  4897. fi
  4898. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4899. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4900. if test $ac_cv_lib_m_tan = yes; then
  4901. EGG_MATH_LIB="-lm"
  4902. fi
  4903. # This is needed for Tcl libraries compiled with thread support
  4904. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4905. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4906. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4907. echo $ECHO_N "(cached) $ECHO_C" >&6
  4908. else
  4909. ac_check_lib_save_LIBS=$LIBS
  4910. LIBS="-lpthread $LIBS"
  4911. cat >conftest.$ac_ext <<_ACEOF
  4912. /* confdefs.h. */
  4913. _ACEOF
  4914. cat confdefs.h >>conftest.$ac_ext
  4915. cat >>conftest.$ac_ext <<_ACEOF
  4916. /* end confdefs.h. */
  4917. /* Override any gcc2 internal prototype to avoid an error. */
  4918. #ifdef __cplusplus
  4919. extern "C"
  4920. #endif
  4921. /* We use char because int might match the return type of a gcc2
  4922. builtin and then its argument prototype would still apply. */
  4923. char pthread_mutex_init ();
  4924. int
  4925. main ()
  4926. {
  4927. pthread_mutex_init ();
  4928. ;
  4929. return 0;
  4930. }
  4931. _ACEOF
  4932. rm -f conftest.$ac_objext conftest$ac_exeext
  4933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4934. (eval $ac_link) 2>conftest.er1
  4935. ac_status=$?
  4936. grep -v '^ *+' conftest.er1 >conftest.err
  4937. rm -f conftest.er1
  4938. cat conftest.err >&5
  4939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4940. (exit $ac_status); } &&
  4941. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4943. (eval $ac_try) 2>&5
  4944. ac_status=$?
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); }; } &&
  4947. { ac_try='test -s conftest$ac_exeext'
  4948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4949. (eval $ac_try) 2>&5
  4950. ac_status=$?
  4951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952. (exit $ac_status); }; }; then
  4953. ac_cv_lib_pthread_pthread_mutex_init=yes
  4954. else
  4955. echo "$as_me: failed program was:" >&5
  4956. sed 's/^/| /' conftest.$ac_ext >&5
  4957. ac_cv_lib_pthread_pthread_mutex_init=no
  4958. fi
  4959. rm -f conftest.err conftest.$ac_objext \
  4960. conftest$ac_exeext conftest.$ac_ext
  4961. LIBS=$ac_check_lib_save_LIBS
  4962. fi
  4963. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4964. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4965. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4966. ac_cv_lib_pthread_pthread_mutex_init=yes
  4967. ac_cv_lib_pthread="-lpthread"
  4968. else
  4969. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4970. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4971. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4972. echo $ECHO_N "(cached) $ECHO_C" >&6
  4973. else
  4974. ac_check_lib_save_LIBS=$LIBS
  4975. LIBS="-lpthread $LIBS"
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. /* Override any gcc2 internal prototype to avoid an error. */
  4983. #ifdef __cplusplus
  4984. extern "C"
  4985. #endif
  4986. /* We use char because int might match the return type of a gcc2
  4987. builtin and then its argument prototype would still apply. */
  4988. char __pthread_mutex_init ();
  4989. int
  4990. main ()
  4991. {
  4992. __pthread_mutex_init ();
  4993. ;
  4994. return 0;
  4995. }
  4996. _ACEOF
  4997. rm -f conftest.$ac_objext conftest$ac_exeext
  4998. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4999. (eval $ac_link) 2>conftest.er1
  5000. ac_status=$?
  5001. grep -v '^ *+' conftest.er1 >conftest.err
  5002. rm -f conftest.er1
  5003. cat conftest.err >&5
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); } &&
  5006. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5007. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5008. (eval $ac_try) 2>&5
  5009. ac_status=$?
  5010. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5011. (exit $ac_status); }; } &&
  5012. { ac_try='test -s conftest$ac_exeext'
  5013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5014. (eval $ac_try) 2>&5
  5015. ac_status=$?
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); }; }; then
  5018. ac_cv_lib_pthread___pthread_mutex_init=yes
  5019. else
  5020. echo "$as_me: failed program was:" >&5
  5021. sed 's/^/| /' conftest.$ac_ext >&5
  5022. ac_cv_lib_pthread___pthread_mutex_init=no
  5023. fi
  5024. rm -f conftest.err conftest.$ac_objext \
  5025. conftest$ac_exeext conftest.$ac_ext
  5026. LIBS=$ac_check_lib_save_LIBS
  5027. fi
  5028. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5029. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  5030. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  5031. ac_cv_lib_pthread_pthread_mutex_init=yes
  5032. ac_cv_lib_pthread="-lpthread"
  5033. else
  5034. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  5035. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  5036. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  5037. echo $ECHO_N "(cached) $ECHO_C" >&6
  5038. else
  5039. ac_check_lib_save_LIBS=$LIBS
  5040. LIBS="-lpthreads $LIBS"
  5041. cat >conftest.$ac_ext <<_ACEOF
  5042. /* confdefs.h. */
  5043. _ACEOF
  5044. cat confdefs.h >>conftest.$ac_ext
  5045. cat >>conftest.$ac_ext <<_ACEOF
  5046. /* end confdefs.h. */
  5047. /* Override any gcc2 internal prototype to avoid an error. */
  5048. #ifdef __cplusplus
  5049. extern "C"
  5050. #endif
  5051. /* We use char because int might match the return type of a gcc2
  5052. builtin and then its argument prototype would still apply. */
  5053. char pthread_mutex_init ();
  5054. int
  5055. main ()
  5056. {
  5057. pthread_mutex_init ();
  5058. ;
  5059. return 0;
  5060. }
  5061. _ACEOF
  5062. rm -f conftest.$ac_objext conftest$ac_exeext
  5063. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5064. (eval $ac_link) 2>conftest.er1
  5065. ac_status=$?
  5066. grep -v '^ *+' conftest.er1 >conftest.err
  5067. rm -f conftest.er1
  5068. cat conftest.err >&5
  5069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5070. (exit $ac_status); } &&
  5071. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5072. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5073. (eval $ac_try) 2>&5
  5074. ac_status=$?
  5075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5076. (exit $ac_status); }; } &&
  5077. { ac_try='test -s conftest$ac_exeext'
  5078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5079. (eval $ac_try) 2>&5
  5080. ac_status=$?
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); }; }; then
  5083. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5084. else
  5085. echo "$as_me: failed program was:" >&5
  5086. sed 's/^/| /' conftest.$ac_ext >&5
  5087. ac_cv_lib_pthreads_pthread_mutex_init=no
  5088. fi
  5089. rm -f conftest.err conftest.$ac_objext \
  5090. conftest$ac_exeext conftest.$ac_ext
  5091. LIBS=$ac_check_lib_save_LIBS
  5092. fi
  5093. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5094. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  5095. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  5096. ac_cv_lib_pthread_pthread_mutex_init=yes
  5097. ac_cv_lib_pthread="-lpthreads"
  5098. else
  5099. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  5100. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  5101. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  5102. echo $ECHO_N "(cached) $ECHO_C" >&6
  5103. else
  5104. cat >conftest.$ac_ext <<_ACEOF
  5105. /* confdefs.h. */
  5106. _ACEOF
  5107. cat confdefs.h >>conftest.$ac_ext
  5108. cat >>conftest.$ac_ext <<_ACEOF
  5109. /* end confdefs.h. */
  5110. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  5111. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5112. #define pthread_mutex_init innocuous_pthread_mutex_init
  5113. /* System header to define __stub macros and hopefully few prototypes,
  5114. which can conflict with char pthread_mutex_init (); below.
  5115. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5116. <limits.h> exists even on freestanding compilers. */
  5117. #ifdef __STDC__
  5118. # include <limits.h>
  5119. #else
  5120. # include <assert.h>
  5121. #endif
  5122. #undef pthread_mutex_init
  5123. /* Override any gcc2 internal prototype to avoid an error. */
  5124. #ifdef __cplusplus
  5125. extern "C"
  5126. {
  5127. #endif
  5128. /* We use char because int might match the return type of a gcc2
  5129. builtin and then its argument prototype would still apply. */
  5130. char pthread_mutex_init ();
  5131. /* The GNU C library defines this for functions which it implements
  5132. to always fail with ENOSYS. Some functions are actually named
  5133. something starting with __ and the normal name is an alias. */
  5134. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  5135. choke me
  5136. #else
  5137. char (*f) () = pthread_mutex_init;
  5138. #endif
  5139. #ifdef __cplusplus
  5140. }
  5141. #endif
  5142. int
  5143. main ()
  5144. {
  5145. return f != pthread_mutex_init;
  5146. ;
  5147. return 0;
  5148. }
  5149. _ACEOF
  5150. rm -f conftest.$ac_objext conftest$ac_exeext
  5151. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5152. (eval $ac_link) 2>conftest.er1
  5153. ac_status=$?
  5154. grep -v '^ *+' conftest.er1 >conftest.err
  5155. rm -f conftest.er1
  5156. cat conftest.err >&5
  5157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5158. (exit $ac_status); } &&
  5159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5161. (eval $ac_try) 2>&5
  5162. ac_status=$?
  5163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5164. (exit $ac_status); }; } &&
  5165. { ac_try='test -s conftest$ac_exeext'
  5166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5167. (eval $ac_try) 2>&5
  5168. ac_status=$?
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); }; }; then
  5171. ac_cv_func_pthread_mutex_init=yes
  5172. else
  5173. echo "$as_me: failed program was:" >&5
  5174. sed 's/^/| /' conftest.$ac_ext >&5
  5175. ac_cv_func_pthread_mutex_init=no
  5176. fi
  5177. rm -f conftest.err conftest.$ac_objext \
  5178. conftest$ac_exeext conftest.$ac_ext
  5179. fi
  5180. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  5181. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  5182. if test $ac_cv_func_pthread_mutex_init = yes; then
  5183. ac_cv_lib_pthread_pthread_mutex_init=yes
  5184. ac_cv_lib_pthread=""
  5185. else
  5186. ac_cv_lib_pthread_pthread_mutex_init=no
  5187. fi
  5188. fi
  5189. fi
  5190. fi
  5191. if test "$SUNOS" = "yes"
  5192. then
  5193. # For suns without yp or something like that
  5194. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  5195. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  5196. if test "${ac_cv_lib_dl_main+set}" = set; then
  5197. echo $ECHO_N "(cached) $ECHO_C" >&6
  5198. else
  5199. ac_check_lib_save_LIBS=$LIBS
  5200. LIBS="-ldl $LIBS"
  5201. cat >conftest.$ac_ext <<_ACEOF
  5202. /* confdefs.h. */
  5203. _ACEOF
  5204. cat confdefs.h >>conftest.$ac_ext
  5205. cat >>conftest.$ac_ext <<_ACEOF
  5206. /* end confdefs.h. */
  5207. int
  5208. main ()
  5209. {
  5210. main ();
  5211. ;
  5212. return 0;
  5213. }
  5214. _ACEOF
  5215. rm -f conftest.$ac_objext conftest$ac_exeext
  5216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5217. (eval $ac_link) 2>conftest.er1
  5218. ac_status=$?
  5219. grep -v '^ *+' conftest.er1 >conftest.err
  5220. rm -f conftest.er1
  5221. cat conftest.err >&5
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); } &&
  5224. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5226. (eval $ac_try) 2>&5
  5227. ac_status=$?
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); }; } &&
  5230. { ac_try='test -s conftest$ac_exeext'
  5231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5232. (eval $ac_try) 2>&5
  5233. ac_status=$?
  5234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5235. (exit $ac_status); }; }; then
  5236. ac_cv_lib_dl_main=yes
  5237. else
  5238. echo "$as_me: failed program was:" >&5
  5239. sed 's/^/| /' conftest.$ac_ext >&5
  5240. ac_cv_lib_dl_main=no
  5241. fi
  5242. rm -f conftest.err conftest.$ac_objext \
  5243. conftest$ac_exeext conftest.$ac_ext
  5244. LIBS=$ac_check_lib_save_LIBS
  5245. fi
  5246. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  5247. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  5248. if test $ac_cv_lib_dl_main = yes; then
  5249. cat >>confdefs.h <<_ACEOF
  5250. #define HAVE_LIBDL 1
  5251. _ACEOF
  5252. LIBS="-ldl $LIBS"
  5253. fi
  5254. else
  5255. if test "$HPUX" = "yes"
  5256. then
  5257. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5258. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5259. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5260. echo $ECHO_N "(cached) $ECHO_C" >&6
  5261. else
  5262. ac_check_lib_save_LIBS=$LIBS
  5263. LIBS="-ldld $LIBS"
  5264. cat >conftest.$ac_ext <<_ACEOF
  5265. /* confdefs.h. */
  5266. _ACEOF
  5267. cat confdefs.h >>conftest.$ac_ext
  5268. cat >>conftest.$ac_ext <<_ACEOF
  5269. /* end confdefs.h. */
  5270. /* Override any gcc2 internal prototype to avoid an error. */
  5271. #ifdef __cplusplus
  5272. extern "C"
  5273. #endif
  5274. /* We use char because int might match the return type of a gcc2
  5275. builtin and then its argument prototype would still apply. */
  5276. char shl_load ();
  5277. int
  5278. main ()
  5279. {
  5280. shl_load ();
  5281. ;
  5282. return 0;
  5283. }
  5284. _ACEOF
  5285. rm -f conftest.$ac_objext conftest$ac_exeext
  5286. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5287. (eval $ac_link) 2>conftest.er1
  5288. ac_status=$?
  5289. grep -v '^ *+' conftest.er1 >conftest.err
  5290. rm -f conftest.er1
  5291. cat conftest.err >&5
  5292. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5293. (exit $ac_status); } &&
  5294. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5295. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5296. (eval $ac_try) 2>&5
  5297. ac_status=$?
  5298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5299. (exit $ac_status); }; } &&
  5300. { ac_try='test -s conftest$ac_exeext'
  5301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5302. (eval $ac_try) 2>&5
  5303. ac_status=$?
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); }; }; then
  5306. ac_cv_lib_dld_shl_load=yes
  5307. else
  5308. echo "$as_me: failed program was:" >&5
  5309. sed 's/^/| /' conftest.$ac_ext >&5
  5310. ac_cv_lib_dld_shl_load=no
  5311. fi
  5312. rm -f conftest.err conftest.$ac_objext \
  5313. conftest$ac_exeext conftest.$ac_ext
  5314. LIBS=$ac_check_lib_save_LIBS
  5315. fi
  5316. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5317. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5318. if test $ac_cv_lib_dld_shl_load = yes; then
  5319. cat >>confdefs.h <<_ACEOF
  5320. #define HAVE_LIBDLD 1
  5321. _ACEOF
  5322. LIBS="-ldld $LIBS"
  5323. fi
  5324. fi
  5325. fi
  5326. fi
  5327. # Checks for header files
  5328. ac_header_dirent=no
  5329. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5330. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5331. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5332. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  5333. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5334. echo $ECHO_N "(cached) $ECHO_C" >&6
  5335. else
  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. #include <sys/types.h>
  5343. #include <$ac_hdr>
  5344. int
  5345. main ()
  5346. {
  5347. if ((DIR *) 0)
  5348. return 0;
  5349. ;
  5350. return 0;
  5351. }
  5352. _ACEOF
  5353. rm -f conftest.$ac_objext
  5354. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5355. (eval $ac_compile) 2>conftest.er1
  5356. ac_status=$?
  5357. grep -v '^ *+' conftest.er1 >conftest.err
  5358. rm -f conftest.er1
  5359. cat conftest.err >&5
  5360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5361. (exit $ac_status); } &&
  5362. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5363. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5364. (eval $ac_try) 2>&5
  5365. ac_status=$?
  5366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5367. (exit $ac_status); }; } &&
  5368. { ac_try='test -s conftest.$ac_objext'
  5369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5370. (eval $ac_try) 2>&5
  5371. ac_status=$?
  5372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5373. (exit $ac_status); }; }; then
  5374. eval "$as_ac_Header=yes"
  5375. else
  5376. echo "$as_me: failed program was:" >&5
  5377. sed 's/^/| /' conftest.$ac_ext >&5
  5378. eval "$as_ac_Header=no"
  5379. fi
  5380. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5381. fi
  5382. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5383. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5384. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5385. cat >>confdefs.h <<_ACEOF
  5386. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5387. _ACEOF
  5388. ac_header_dirent=$ac_hdr; break
  5389. fi
  5390. done
  5391. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5392. if test $ac_header_dirent = dirent.h; then
  5393. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5394. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5395. if test "${ac_cv_search_opendir+set}" = set; then
  5396. echo $ECHO_N "(cached) $ECHO_C" >&6
  5397. else
  5398. ac_func_search_save_LIBS=$LIBS
  5399. ac_cv_search_opendir=no
  5400. cat >conftest.$ac_ext <<_ACEOF
  5401. /* confdefs.h. */
  5402. _ACEOF
  5403. cat confdefs.h >>conftest.$ac_ext
  5404. cat >>conftest.$ac_ext <<_ACEOF
  5405. /* end confdefs.h. */
  5406. /* Override any gcc2 internal prototype to avoid an error. */
  5407. #ifdef __cplusplus
  5408. extern "C"
  5409. #endif
  5410. /* We use char because int might match the return type of a gcc2
  5411. builtin and then its argument prototype would still apply. */
  5412. char opendir ();
  5413. int
  5414. main ()
  5415. {
  5416. opendir ();
  5417. ;
  5418. return 0;
  5419. }
  5420. _ACEOF
  5421. rm -f conftest.$ac_objext conftest$ac_exeext
  5422. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5423. (eval $ac_link) 2>conftest.er1
  5424. ac_status=$?
  5425. grep -v '^ *+' conftest.er1 >conftest.err
  5426. rm -f conftest.er1
  5427. cat conftest.err >&5
  5428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5429. (exit $ac_status); } &&
  5430. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5431. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5432. (eval $ac_try) 2>&5
  5433. ac_status=$?
  5434. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5435. (exit $ac_status); }; } &&
  5436. { ac_try='test -s conftest$ac_exeext'
  5437. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5438. (eval $ac_try) 2>&5
  5439. ac_status=$?
  5440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. (exit $ac_status); }; }; then
  5442. ac_cv_search_opendir="none required"
  5443. else
  5444. echo "$as_me: failed program was:" >&5
  5445. sed 's/^/| /' conftest.$ac_ext >&5
  5446. fi
  5447. rm -f conftest.err conftest.$ac_objext \
  5448. conftest$ac_exeext conftest.$ac_ext
  5449. if test "$ac_cv_search_opendir" = no; then
  5450. for ac_lib in dir; do
  5451. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5452. cat >conftest.$ac_ext <<_ACEOF
  5453. /* confdefs.h. */
  5454. _ACEOF
  5455. cat confdefs.h >>conftest.$ac_ext
  5456. cat >>conftest.$ac_ext <<_ACEOF
  5457. /* end confdefs.h. */
  5458. /* Override any gcc2 internal prototype to avoid an error. */
  5459. #ifdef __cplusplus
  5460. extern "C"
  5461. #endif
  5462. /* We use char because int might match the return type of a gcc2
  5463. builtin and then its argument prototype would still apply. */
  5464. char opendir ();
  5465. int
  5466. main ()
  5467. {
  5468. opendir ();
  5469. ;
  5470. return 0;
  5471. }
  5472. _ACEOF
  5473. rm -f conftest.$ac_objext conftest$ac_exeext
  5474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5475. (eval $ac_link) 2>conftest.er1
  5476. ac_status=$?
  5477. grep -v '^ *+' conftest.er1 >conftest.err
  5478. rm -f conftest.er1
  5479. cat conftest.err >&5
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); } &&
  5482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5484. (eval $ac_try) 2>&5
  5485. ac_status=$?
  5486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5487. (exit $ac_status); }; } &&
  5488. { ac_try='test -s conftest$ac_exeext'
  5489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5490. (eval $ac_try) 2>&5
  5491. ac_status=$?
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); }; }; then
  5494. ac_cv_search_opendir="-l$ac_lib"
  5495. break
  5496. else
  5497. echo "$as_me: failed program was:" >&5
  5498. sed 's/^/| /' conftest.$ac_ext >&5
  5499. fi
  5500. rm -f conftest.err conftest.$ac_objext \
  5501. conftest$ac_exeext conftest.$ac_ext
  5502. done
  5503. fi
  5504. LIBS=$ac_func_search_save_LIBS
  5505. fi
  5506. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5507. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5508. if test "$ac_cv_search_opendir" != no; then
  5509. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5510. fi
  5511. else
  5512. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5513. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5514. if test "${ac_cv_search_opendir+set}" = set; then
  5515. echo $ECHO_N "(cached) $ECHO_C" >&6
  5516. else
  5517. ac_func_search_save_LIBS=$LIBS
  5518. ac_cv_search_opendir=no
  5519. cat >conftest.$ac_ext <<_ACEOF
  5520. /* confdefs.h. */
  5521. _ACEOF
  5522. cat confdefs.h >>conftest.$ac_ext
  5523. cat >>conftest.$ac_ext <<_ACEOF
  5524. /* end confdefs.h. */
  5525. /* Override any gcc2 internal prototype to avoid an error. */
  5526. #ifdef __cplusplus
  5527. extern "C"
  5528. #endif
  5529. /* We use char because int might match the return type of a gcc2
  5530. builtin and then its argument prototype would still apply. */
  5531. char opendir ();
  5532. int
  5533. main ()
  5534. {
  5535. opendir ();
  5536. ;
  5537. return 0;
  5538. }
  5539. _ACEOF
  5540. rm -f conftest.$ac_objext conftest$ac_exeext
  5541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5542. (eval $ac_link) 2>conftest.er1
  5543. ac_status=$?
  5544. grep -v '^ *+' conftest.er1 >conftest.err
  5545. rm -f conftest.er1
  5546. cat conftest.err >&5
  5547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5548. (exit $ac_status); } &&
  5549. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5551. (eval $ac_try) 2>&5
  5552. ac_status=$?
  5553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5554. (exit $ac_status); }; } &&
  5555. { ac_try='test -s conftest$ac_exeext'
  5556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5557. (eval $ac_try) 2>&5
  5558. ac_status=$?
  5559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560. (exit $ac_status); }; }; then
  5561. ac_cv_search_opendir="none required"
  5562. else
  5563. echo "$as_me: failed program was:" >&5
  5564. sed 's/^/| /' conftest.$ac_ext >&5
  5565. fi
  5566. rm -f conftest.err conftest.$ac_objext \
  5567. conftest$ac_exeext conftest.$ac_ext
  5568. if test "$ac_cv_search_opendir" = no; then
  5569. for ac_lib in x; do
  5570. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5571. cat >conftest.$ac_ext <<_ACEOF
  5572. /* confdefs.h. */
  5573. _ACEOF
  5574. cat confdefs.h >>conftest.$ac_ext
  5575. cat >>conftest.$ac_ext <<_ACEOF
  5576. /* end confdefs.h. */
  5577. /* Override any gcc2 internal prototype to avoid an error. */
  5578. #ifdef __cplusplus
  5579. extern "C"
  5580. #endif
  5581. /* We use char because int might match the return type of a gcc2
  5582. builtin and then its argument prototype would still apply. */
  5583. char opendir ();
  5584. int
  5585. main ()
  5586. {
  5587. opendir ();
  5588. ;
  5589. return 0;
  5590. }
  5591. _ACEOF
  5592. rm -f conftest.$ac_objext conftest$ac_exeext
  5593. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5594. (eval $ac_link) 2>conftest.er1
  5595. ac_status=$?
  5596. grep -v '^ *+' conftest.er1 >conftest.err
  5597. rm -f conftest.er1
  5598. cat conftest.err >&5
  5599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5600. (exit $ac_status); } &&
  5601. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5603. (eval $ac_try) 2>&5
  5604. ac_status=$?
  5605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5606. (exit $ac_status); }; } &&
  5607. { ac_try='test -s conftest$ac_exeext'
  5608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5609. (eval $ac_try) 2>&5
  5610. ac_status=$?
  5611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5612. (exit $ac_status); }; }; then
  5613. ac_cv_search_opendir="-l$ac_lib"
  5614. break
  5615. else
  5616. echo "$as_me: failed program was:" >&5
  5617. sed 's/^/| /' conftest.$ac_ext >&5
  5618. fi
  5619. rm -f conftest.err conftest.$ac_objext \
  5620. conftest$ac_exeext conftest.$ac_ext
  5621. done
  5622. fi
  5623. LIBS=$ac_func_search_save_LIBS
  5624. fi
  5625. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5626. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5627. if test "$ac_cv_search_opendir" != no; then
  5628. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5629. fi
  5630. fi
  5631. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5632. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5633. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5634. echo $ECHO_N "(cached) $ECHO_C" >&6
  5635. else
  5636. cat >conftest.$ac_ext <<_ACEOF
  5637. /* confdefs.h. */
  5638. _ACEOF
  5639. cat confdefs.h >>conftest.$ac_ext
  5640. cat >>conftest.$ac_ext <<_ACEOF
  5641. /* end confdefs.h. */
  5642. #include <sys/types.h>
  5643. #include <sys/wait.h>
  5644. #ifndef WEXITSTATUS
  5645. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5646. #endif
  5647. #ifndef WIFEXITED
  5648. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5649. #endif
  5650. int
  5651. main ()
  5652. {
  5653. int s;
  5654. wait (&s);
  5655. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5656. ;
  5657. return 0;
  5658. }
  5659. _ACEOF
  5660. rm -f conftest.$ac_objext
  5661. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5662. (eval $ac_compile) 2>conftest.er1
  5663. ac_status=$?
  5664. grep -v '^ *+' conftest.er1 >conftest.err
  5665. rm -f conftest.er1
  5666. cat conftest.err >&5
  5667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5668. (exit $ac_status); } &&
  5669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5671. (eval $ac_try) 2>&5
  5672. ac_status=$?
  5673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5674. (exit $ac_status); }; } &&
  5675. { ac_try='test -s conftest.$ac_objext'
  5676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5677. (eval $ac_try) 2>&5
  5678. ac_status=$?
  5679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5680. (exit $ac_status); }; }; then
  5681. ac_cv_header_sys_wait_h=yes
  5682. else
  5683. echo "$as_me: failed program was:" >&5
  5684. sed 's/^/| /' conftest.$ac_ext >&5
  5685. ac_cv_header_sys_wait_h=no
  5686. fi
  5687. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5688. fi
  5689. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5690. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5691. if test $ac_cv_header_sys_wait_h = yes; then
  5692. cat >>confdefs.h <<\_ACEOF
  5693. #define HAVE_SYS_WAIT_H 1
  5694. _ACEOF
  5695. fi
  5696. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5697. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5698. if test "${ac_cv_header_time+set}" = set; then
  5699. echo $ECHO_N "(cached) $ECHO_C" >&6
  5700. else
  5701. cat >conftest.$ac_ext <<_ACEOF
  5702. /* confdefs.h. */
  5703. _ACEOF
  5704. cat confdefs.h >>conftest.$ac_ext
  5705. cat >>conftest.$ac_ext <<_ACEOF
  5706. /* end confdefs.h. */
  5707. #include <sys/types.h>
  5708. #include <sys/time.h>
  5709. #include <time.h>
  5710. int
  5711. main ()
  5712. {
  5713. if ((struct tm *) 0)
  5714. return 0;
  5715. ;
  5716. return 0;
  5717. }
  5718. _ACEOF
  5719. rm -f conftest.$ac_objext
  5720. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5721. (eval $ac_compile) 2>conftest.er1
  5722. ac_status=$?
  5723. grep -v '^ *+' conftest.er1 >conftest.err
  5724. rm -f conftest.er1
  5725. cat conftest.err >&5
  5726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5727. (exit $ac_status); } &&
  5728. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5730. (eval $ac_try) 2>&5
  5731. ac_status=$?
  5732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5733. (exit $ac_status); }; } &&
  5734. { ac_try='test -s conftest.$ac_objext'
  5735. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5736. (eval $ac_try) 2>&5
  5737. ac_status=$?
  5738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5739. (exit $ac_status); }; }; then
  5740. ac_cv_header_time=yes
  5741. else
  5742. echo "$as_me: failed program was:" >&5
  5743. sed 's/^/| /' conftest.$ac_ext >&5
  5744. ac_cv_header_time=no
  5745. fi
  5746. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5747. fi
  5748. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5749. echo "${ECHO_T}$ac_cv_header_time" >&6
  5750. if test $ac_cv_header_time = yes; then
  5751. cat >>confdefs.h <<\_ACEOF
  5752. #define TIME_WITH_SYS_TIME 1
  5753. _ACEOF
  5754. fi
  5755. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5756. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5757. if test "${ac_cv_header_stat_broken+set}" = set; then
  5758. echo $ECHO_N "(cached) $ECHO_C" >&6
  5759. else
  5760. cat >conftest.$ac_ext <<_ACEOF
  5761. /* confdefs.h. */
  5762. _ACEOF
  5763. cat confdefs.h >>conftest.$ac_ext
  5764. cat >>conftest.$ac_ext <<_ACEOF
  5765. /* end confdefs.h. */
  5766. #include <sys/types.h>
  5767. #include <sys/stat.h>
  5768. #if defined(S_ISBLK) && defined(S_IFDIR)
  5769. # if S_ISBLK (S_IFDIR)
  5770. You lose.
  5771. # endif
  5772. #endif
  5773. #if defined(S_ISBLK) && defined(S_IFCHR)
  5774. # if S_ISBLK (S_IFCHR)
  5775. You lose.
  5776. # endif
  5777. #endif
  5778. #if defined(S_ISLNK) && defined(S_IFREG)
  5779. # if S_ISLNK (S_IFREG)
  5780. You lose.
  5781. # endif
  5782. #endif
  5783. #if defined(S_ISSOCK) && defined(S_IFREG)
  5784. # if S_ISSOCK (S_IFREG)
  5785. You lose.
  5786. # endif
  5787. #endif
  5788. _ACEOF
  5789. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5790. $EGREP "You lose" >/dev/null 2>&1; then
  5791. ac_cv_header_stat_broken=yes
  5792. else
  5793. ac_cv_header_stat_broken=no
  5794. fi
  5795. rm -f conftest*
  5796. fi
  5797. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5798. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5799. if test $ac_cv_header_stat_broken = yes; then
  5800. cat >>confdefs.h <<\_ACEOF
  5801. #define STAT_MACROS_BROKEN 1
  5802. _ACEOF
  5803. fi
  5804. #checkpoint
  5805. cat >confcache <<\_ACEOF
  5806. # This file is a shell script that caches the results of configure
  5807. # tests run on this system so they can be shared between configure
  5808. # scripts and configure runs, see configure's option --config-cache.
  5809. # It is not useful on other systems. If it contains results you don't
  5810. # want to keep, you may remove or edit it.
  5811. #
  5812. # config.status only pays attention to the cache file if you give it
  5813. # the --recheck option to rerun configure.
  5814. #
  5815. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5816. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5817. # following values.
  5818. _ACEOF
  5819. # The following way of writing the cache mishandles newlines in values,
  5820. # but we know of no workaround that is simple, portable, and efficient.
  5821. # So, don't put newlines in cache variables' values.
  5822. # Ultrix sh set writes to stderr and can't be redirected directly,
  5823. # and sets the high bit in the cache file unless we assign to the vars.
  5824. {
  5825. (set) 2>&1 |
  5826. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5827. *ac_space=\ *)
  5828. # `set' does not quote correctly, so add quotes (double-quote
  5829. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5830. sed -n \
  5831. "s/'/'\\\\''/g;
  5832. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5833. ;;
  5834. *)
  5835. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5836. sed -n \
  5837. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5838. ;;
  5839. esac;
  5840. } |
  5841. sed '
  5842. t clear
  5843. : clear
  5844. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5845. t end
  5846. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5847. : end' >>confcache
  5848. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5849. if test -w $cache_file; then
  5850. test "x$cache_file" != "x/dev/null"
  5851. cat confcache >$cache_file
  5852. else
  5853. echo "not updating unwritable cache $cache_file"
  5854. fi
  5855. fi
  5856. rm -f confcache
  5857. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5858. do
  5859. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5860. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5861. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5862. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5863. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5864. echo $ECHO_N "(cached) $ECHO_C" >&6
  5865. fi
  5866. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5867. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5868. else
  5869. # Is the header compilable?
  5870. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5871. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5872. cat >conftest.$ac_ext <<_ACEOF
  5873. /* confdefs.h. */
  5874. _ACEOF
  5875. cat confdefs.h >>conftest.$ac_ext
  5876. cat >>conftest.$ac_ext <<_ACEOF
  5877. /* end confdefs.h. */
  5878. $ac_includes_default
  5879. #include <$ac_header>
  5880. _ACEOF
  5881. rm -f conftest.$ac_objext
  5882. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5883. (eval $ac_compile) 2>conftest.er1
  5884. ac_status=$?
  5885. grep -v '^ *+' conftest.er1 >conftest.err
  5886. rm -f conftest.er1
  5887. cat conftest.err >&5
  5888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5889. (exit $ac_status); } &&
  5890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5892. (eval $ac_try) 2>&5
  5893. ac_status=$?
  5894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5895. (exit $ac_status); }; } &&
  5896. { ac_try='test -s conftest.$ac_objext'
  5897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5898. (eval $ac_try) 2>&5
  5899. ac_status=$?
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); }; }; then
  5902. ac_header_compiler=yes
  5903. else
  5904. echo "$as_me: failed program was:" >&5
  5905. sed 's/^/| /' conftest.$ac_ext >&5
  5906. ac_header_compiler=no
  5907. fi
  5908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5909. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5910. echo "${ECHO_T}$ac_header_compiler" >&6
  5911. # Is the header present?
  5912. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5913. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5914. cat >conftest.$ac_ext <<_ACEOF
  5915. /* confdefs.h. */
  5916. _ACEOF
  5917. cat confdefs.h >>conftest.$ac_ext
  5918. cat >>conftest.$ac_ext <<_ACEOF
  5919. /* end confdefs.h. */
  5920. #include <$ac_header>
  5921. _ACEOF
  5922. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5923. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5924. ac_status=$?
  5925. grep -v '^ *+' conftest.er1 >conftest.err
  5926. rm -f conftest.er1
  5927. cat conftest.err >&5
  5928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5929. (exit $ac_status); } >/dev/null; then
  5930. if test -s conftest.err; then
  5931. ac_cpp_err=$ac_c_preproc_warn_flag
  5932. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5933. else
  5934. ac_cpp_err=
  5935. fi
  5936. else
  5937. ac_cpp_err=yes
  5938. fi
  5939. if test -z "$ac_cpp_err"; then
  5940. ac_header_preproc=yes
  5941. else
  5942. echo "$as_me: failed program was:" >&5
  5943. sed 's/^/| /' conftest.$ac_ext >&5
  5944. ac_header_preproc=no
  5945. fi
  5946. rm -f conftest.err conftest.$ac_ext
  5947. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5948. echo "${ECHO_T}$ac_header_preproc" >&6
  5949. # So? What about this header?
  5950. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5951. yes:no: )
  5952. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5953. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5954. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5955. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5956. ac_header_preproc=yes
  5957. ;;
  5958. no:yes:* )
  5959. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5960. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5961. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5962. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5963. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5964. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5965. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5966. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5967. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5968. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5969. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5970. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5971. (
  5972. cat <<\_ASBOX
  5973. ## ------------------------------------------ ##
  5974. ## Report this to the AC_PACKAGE_NAME lists. ##
  5975. ## ------------------------------------------ ##
  5976. _ASBOX
  5977. ) |
  5978. sed "s/^/$as_me: WARNING: /" >&2
  5979. ;;
  5980. esac
  5981. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5982. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5983. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5984. echo $ECHO_N "(cached) $ECHO_C" >&6
  5985. else
  5986. eval "$as_ac_Header=\$ac_header_preproc"
  5987. fi
  5988. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5989. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5990. fi
  5991. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5992. cat >>confdefs.h <<_ACEOF
  5993. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5994. _ACEOF
  5995. fi
  5996. done
  5997. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5998. do
  5999. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6000. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6001. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6002. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6003. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6004. echo $ECHO_N "(cached) $ECHO_C" >&6
  6005. fi
  6006. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6007. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6008. else
  6009. # Is the header compilable?
  6010. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6011. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6012. cat >conftest.$ac_ext <<_ACEOF
  6013. /* confdefs.h. */
  6014. _ACEOF
  6015. cat confdefs.h >>conftest.$ac_ext
  6016. cat >>conftest.$ac_ext <<_ACEOF
  6017. /* end confdefs.h. */
  6018. $ac_includes_default
  6019. #include <$ac_header>
  6020. _ACEOF
  6021. rm -f conftest.$ac_objext
  6022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6023. (eval $ac_compile) 2>conftest.er1
  6024. ac_status=$?
  6025. grep -v '^ *+' conftest.er1 >conftest.err
  6026. rm -f conftest.er1
  6027. cat conftest.err >&5
  6028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6029. (exit $ac_status); } &&
  6030. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6032. (eval $ac_try) 2>&5
  6033. ac_status=$?
  6034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6035. (exit $ac_status); }; } &&
  6036. { ac_try='test -s conftest.$ac_objext'
  6037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6038. (eval $ac_try) 2>&5
  6039. ac_status=$?
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); }; }; then
  6042. ac_header_compiler=yes
  6043. else
  6044. echo "$as_me: failed program was:" >&5
  6045. sed 's/^/| /' conftest.$ac_ext >&5
  6046. ac_header_compiler=no
  6047. fi
  6048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6050. echo "${ECHO_T}$ac_header_compiler" >&6
  6051. # Is the header present?
  6052. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6053. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6054. cat >conftest.$ac_ext <<_ACEOF
  6055. /* confdefs.h. */
  6056. _ACEOF
  6057. cat confdefs.h >>conftest.$ac_ext
  6058. cat >>conftest.$ac_ext <<_ACEOF
  6059. /* end confdefs.h. */
  6060. #include <$ac_header>
  6061. _ACEOF
  6062. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6063. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6064. ac_status=$?
  6065. grep -v '^ *+' conftest.er1 >conftest.err
  6066. rm -f conftest.er1
  6067. cat conftest.err >&5
  6068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6069. (exit $ac_status); } >/dev/null; then
  6070. if test -s conftest.err; then
  6071. ac_cpp_err=$ac_c_preproc_warn_flag
  6072. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6073. else
  6074. ac_cpp_err=
  6075. fi
  6076. else
  6077. ac_cpp_err=yes
  6078. fi
  6079. if test -z "$ac_cpp_err"; then
  6080. ac_header_preproc=yes
  6081. else
  6082. echo "$as_me: failed program was:" >&5
  6083. sed 's/^/| /' conftest.$ac_ext >&5
  6084. ac_header_preproc=no
  6085. fi
  6086. rm -f conftest.err conftest.$ac_ext
  6087. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6088. echo "${ECHO_T}$ac_header_preproc" >&6
  6089. # So? What about this header?
  6090. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6091. yes:no: )
  6092. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6093. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6094. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6095. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6096. ac_header_preproc=yes
  6097. ;;
  6098. no:yes:* )
  6099. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6100. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6101. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6102. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6103. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6104. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6105. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6106. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6107. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6108. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6109. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6110. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6111. (
  6112. cat <<\_ASBOX
  6113. ## ------------------------------------------ ##
  6114. ## Report this to the AC_PACKAGE_NAME lists. ##
  6115. ## ------------------------------------------ ##
  6116. _ASBOX
  6117. ) |
  6118. sed "s/^/$as_me: WARNING: /" >&2
  6119. ;;
  6120. esac
  6121. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6122. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6123. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6124. echo $ECHO_N "(cached) $ECHO_C" >&6
  6125. else
  6126. eval "$as_ac_Header=\$ac_header_preproc"
  6127. fi
  6128. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6129. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6130. fi
  6131. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6132. cat >>confdefs.h <<_ACEOF
  6133. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6134. _ACEOF
  6135. fi
  6136. done
  6137. #checkpoint
  6138. cat >confcache <<\_ACEOF
  6139. # This file is a shell script that caches the results of configure
  6140. # tests run on this system so they can be shared between configure
  6141. # scripts and configure runs, see configure's option --config-cache.
  6142. # It is not useful on other systems. If it contains results you don't
  6143. # want to keep, you may remove or edit it.
  6144. #
  6145. # config.status only pays attention to the cache file if you give it
  6146. # the --recheck option to rerun configure.
  6147. #
  6148. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6149. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6150. # following values.
  6151. _ACEOF
  6152. # The following way of writing the cache mishandles newlines in values,
  6153. # but we know of no workaround that is simple, portable, and efficient.
  6154. # So, don't put newlines in cache variables' values.
  6155. # Ultrix sh set writes to stderr and can't be redirected directly,
  6156. # and sets the high bit in the cache file unless we assign to the vars.
  6157. {
  6158. (set) 2>&1 |
  6159. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6160. *ac_space=\ *)
  6161. # `set' does not quote correctly, so add quotes (double-quote
  6162. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6163. sed -n \
  6164. "s/'/'\\\\''/g;
  6165. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6166. ;;
  6167. *)
  6168. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6169. sed -n \
  6170. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6171. ;;
  6172. esac;
  6173. } |
  6174. sed '
  6175. t clear
  6176. : clear
  6177. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6178. t end
  6179. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6180. : end' >>confcache
  6181. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6182. if test -w $cache_file; then
  6183. test "x$cache_file" != "x/dev/null"
  6184. cat confcache >$cache_file
  6185. else
  6186. echo "not updating unwritable cache $cache_file"
  6187. fi
  6188. fi
  6189. rm -f confcache
  6190. for ac_header in openssl/ssl.h openssl/crypto.h
  6191. do
  6192. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6193. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6194. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6195. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6196. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6197. echo $ECHO_N "(cached) $ECHO_C" >&6
  6198. fi
  6199. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6200. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6201. else
  6202. # Is the header compilable?
  6203. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6204. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6205. cat >conftest.$ac_ext <<_ACEOF
  6206. /* confdefs.h. */
  6207. _ACEOF
  6208. cat confdefs.h >>conftest.$ac_ext
  6209. cat >>conftest.$ac_ext <<_ACEOF
  6210. /* end confdefs.h. */
  6211. $ac_includes_default
  6212. #include <$ac_header>
  6213. _ACEOF
  6214. rm -f conftest.$ac_objext
  6215. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6216. (eval $ac_compile) 2>conftest.er1
  6217. ac_status=$?
  6218. grep -v '^ *+' conftest.er1 >conftest.err
  6219. rm -f conftest.er1
  6220. cat conftest.err >&5
  6221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); } &&
  6223. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6225. (eval $ac_try) 2>&5
  6226. ac_status=$?
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); }; } &&
  6229. { ac_try='test -s conftest.$ac_objext'
  6230. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6231. (eval $ac_try) 2>&5
  6232. ac_status=$?
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); }; }; then
  6235. ac_header_compiler=yes
  6236. else
  6237. echo "$as_me: failed program was:" >&5
  6238. sed 's/^/| /' conftest.$ac_ext >&5
  6239. ac_header_compiler=no
  6240. fi
  6241. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6242. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6243. echo "${ECHO_T}$ac_header_compiler" >&6
  6244. # Is the header present?
  6245. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6246. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6247. cat >conftest.$ac_ext <<_ACEOF
  6248. /* confdefs.h. */
  6249. _ACEOF
  6250. cat confdefs.h >>conftest.$ac_ext
  6251. cat >>conftest.$ac_ext <<_ACEOF
  6252. /* end confdefs.h. */
  6253. #include <$ac_header>
  6254. _ACEOF
  6255. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6256. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6257. ac_status=$?
  6258. grep -v '^ *+' conftest.er1 >conftest.err
  6259. rm -f conftest.er1
  6260. cat conftest.err >&5
  6261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6262. (exit $ac_status); } >/dev/null; then
  6263. if test -s conftest.err; then
  6264. ac_cpp_err=$ac_c_preproc_warn_flag
  6265. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6266. else
  6267. ac_cpp_err=
  6268. fi
  6269. else
  6270. ac_cpp_err=yes
  6271. fi
  6272. if test -z "$ac_cpp_err"; then
  6273. ac_header_preproc=yes
  6274. else
  6275. echo "$as_me: failed program was:" >&5
  6276. sed 's/^/| /' conftest.$ac_ext >&5
  6277. ac_header_preproc=no
  6278. fi
  6279. rm -f conftest.err conftest.$ac_ext
  6280. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6281. echo "${ECHO_T}$ac_header_preproc" >&6
  6282. # So? What about this header?
  6283. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6284. yes:no: )
  6285. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6286. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6287. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6288. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6289. ac_header_preproc=yes
  6290. ;;
  6291. no:yes:* )
  6292. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6293. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6294. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6295. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6296. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6297. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6298. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6299. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6300. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6301. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6302. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6303. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6304. (
  6305. cat <<\_ASBOX
  6306. ## ------------------------------------------ ##
  6307. ## Report this to the AC_PACKAGE_NAME lists. ##
  6308. ## ------------------------------------------ ##
  6309. _ASBOX
  6310. ) |
  6311. sed "s/^/$as_me: WARNING: /" >&2
  6312. ;;
  6313. esac
  6314. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6315. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6316. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6317. echo $ECHO_N "(cached) $ECHO_C" >&6
  6318. else
  6319. eval "$as_ac_Header=\$ac_header_preproc"
  6320. fi
  6321. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6322. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6323. fi
  6324. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6325. cat >>confdefs.h <<_ACEOF
  6326. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6327. _ACEOF
  6328. fi
  6329. done
  6330. for ac_header in zlib.h
  6331. do
  6332. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6333. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6334. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6335. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6336. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6337. echo $ECHO_N "(cached) $ECHO_C" >&6
  6338. fi
  6339. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6340. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6341. else
  6342. # Is the header compilable?
  6343. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6344. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6345. cat >conftest.$ac_ext <<_ACEOF
  6346. /* confdefs.h. */
  6347. _ACEOF
  6348. cat confdefs.h >>conftest.$ac_ext
  6349. cat >>conftest.$ac_ext <<_ACEOF
  6350. /* end confdefs.h. */
  6351. $ac_includes_default
  6352. #include <$ac_header>
  6353. _ACEOF
  6354. rm -f conftest.$ac_objext
  6355. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6356. (eval $ac_compile) 2>conftest.er1
  6357. ac_status=$?
  6358. grep -v '^ *+' conftest.er1 >conftest.err
  6359. rm -f conftest.er1
  6360. cat conftest.err >&5
  6361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6362. (exit $ac_status); } &&
  6363. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6365. (eval $ac_try) 2>&5
  6366. ac_status=$?
  6367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6368. (exit $ac_status); }; } &&
  6369. { ac_try='test -s conftest.$ac_objext'
  6370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6371. (eval $ac_try) 2>&5
  6372. ac_status=$?
  6373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6374. (exit $ac_status); }; }; then
  6375. ac_header_compiler=yes
  6376. else
  6377. echo "$as_me: failed program was:" >&5
  6378. sed 's/^/| /' conftest.$ac_ext >&5
  6379. ac_header_compiler=no
  6380. fi
  6381. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6382. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6383. echo "${ECHO_T}$ac_header_compiler" >&6
  6384. # Is the header present?
  6385. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6386. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6387. cat >conftest.$ac_ext <<_ACEOF
  6388. /* confdefs.h. */
  6389. _ACEOF
  6390. cat confdefs.h >>conftest.$ac_ext
  6391. cat >>conftest.$ac_ext <<_ACEOF
  6392. /* end confdefs.h. */
  6393. #include <$ac_header>
  6394. _ACEOF
  6395. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6396. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6397. ac_status=$?
  6398. grep -v '^ *+' conftest.er1 >conftest.err
  6399. rm -f conftest.er1
  6400. cat conftest.err >&5
  6401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6402. (exit $ac_status); } >/dev/null; then
  6403. if test -s conftest.err; then
  6404. ac_cpp_err=$ac_c_preproc_warn_flag
  6405. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6406. else
  6407. ac_cpp_err=
  6408. fi
  6409. else
  6410. ac_cpp_err=yes
  6411. fi
  6412. if test -z "$ac_cpp_err"; then
  6413. ac_header_preproc=yes
  6414. else
  6415. echo "$as_me: failed program was:" >&5
  6416. sed 's/^/| /' conftest.$ac_ext >&5
  6417. ac_header_preproc=no
  6418. fi
  6419. rm -f conftest.err conftest.$ac_ext
  6420. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6421. echo "${ECHO_T}$ac_header_preproc" >&6
  6422. # So? What about this header?
  6423. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6424. yes:no: )
  6425. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6426. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6427. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6428. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6429. ac_header_preproc=yes
  6430. ;;
  6431. no:yes:* )
  6432. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6433. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6434. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6435. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6436. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6437. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6438. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6439. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6440. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6441. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6442. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6443. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6444. (
  6445. cat <<\_ASBOX
  6446. ## ------------------------------------------ ##
  6447. ## Report this to the AC_PACKAGE_NAME lists. ##
  6448. ## ------------------------------------------ ##
  6449. _ASBOX
  6450. ) |
  6451. sed "s/^/$as_me: WARNING: /" >&2
  6452. ;;
  6453. esac
  6454. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6455. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6456. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6457. echo $ECHO_N "(cached) $ECHO_C" >&6
  6458. else
  6459. eval "$as_ac_Header=\$ac_header_preproc"
  6460. fi
  6461. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6462. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6463. fi
  6464. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6465. cat >>confdefs.h <<_ACEOF
  6466. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6467. _ACEOF
  6468. fi
  6469. done
  6470. if test "x${ZLIB}" = x; then
  6471. cat >&2 <<EOF
  6472. configure: error:
  6473. Your system does not provide a working zlib compression library.
  6474. It is required.
  6475. EOF
  6476. exit 1
  6477. else
  6478. if test "${ac_cv_header_zlib_h}" != yes; then
  6479. cat >&2 <<EOF
  6480. configure: error:
  6481. Your system does not provide the necessary zlib header file.
  6482. It is required.
  6483. EOF
  6484. exit 1
  6485. fi
  6486. fi
  6487. if test "x${SSL}" = x; then
  6488. cat >&2 <<EOF
  6489. configure: error:
  6490. Your system does not provide a working ssl library.
  6491. It is required. Download openssl at www.openssl.org
  6492. EOF
  6493. exit 1
  6494. else
  6495. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  6496. cat >&2 <<EOF
  6497. configure: error:
  6498. Your system does not provide the necessary ssl header file.
  6499. It is required. Download openssl at www.openssl.org
  6500. EOF
  6501. exit 1
  6502. fi
  6503. fi
  6504. # Checks for typedefs, structures, and compiler characteristics
  6505. echo "$as_me:$LINENO: checking for pid_t" >&5
  6506. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  6507. if test "${ac_cv_type_pid_t+set}" = set; then
  6508. echo $ECHO_N "(cached) $ECHO_C" >&6
  6509. else
  6510. cat >conftest.$ac_ext <<_ACEOF
  6511. /* confdefs.h. */
  6512. _ACEOF
  6513. cat confdefs.h >>conftest.$ac_ext
  6514. cat >>conftest.$ac_ext <<_ACEOF
  6515. /* end confdefs.h. */
  6516. $ac_includes_default
  6517. int
  6518. main ()
  6519. {
  6520. if ((pid_t *) 0)
  6521. return 0;
  6522. if (sizeof (pid_t))
  6523. return 0;
  6524. ;
  6525. return 0;
  6526. }
  6527. _ACEOF
  6528. rm -f conftest.$ac_objext
  6529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6530. (eval $ac_compile) 2>conftest.er1
  6531. ac_status=$?
  6532. grep -v '^ *+' conftest.er1 >conftest.err
  6533. rm -f conftest.er1
  6534. cat conftest.err >&5
  6535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. (exit $ac_status); } &&
  6537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6539. (eval $ac_try) 2>&5
  6540. ac_status=$?
  6541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); }; } &&
  6543. { ac_try='test -s conftest.$ac_objext'
  6544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6545. (eval $ac_try) 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); }; }; then
  6549. ac_cv_type_pid_t=yes
  6550. else
  6551. echo "$as_me: failed program was:" >&5
  6552. sed 's/^/| /' conftest.$ac_ext >&5
  6553. ac_cv_type_pid_t=no
  6554. fi
  6555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6556. fi
  6557. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6558. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6559. if test $ac_cv_type_pid_t = yes; then
  6560. :
  6561. else
  6562. cat >>confdefs.h <<_ACEOF
  6563. #define pid_t int
  6564. _ACEOF
  6565. fi
  6566. echo "$as_me:$LINENO: checking for size_t" >&5
  6567. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6568. if test "${ac_cv_type_size_t+set}" = set; then
  6569. echo $ECHO_N "(cached) $ECHO_C" >&6
  6570. else
  6571. cat >conftest.$ac_ext <<_ACEOF
  6572. /* confdefs.h. */
  6573. _ACEOF
  6574. cat confdefs.h >>conftest.$ac_ext
  6575. cat >>conftest.$ac_ext <<_ACEOF
  6576. /* end confdefs.h. */
  6577. $ac_includes_default
  6578. int
  6579. main ()
  6580. {
  6581. if ((size_t *) 0)
  6582. return 0;
  6583. if (sizeof (size_t))
  6584. return 0;
  6585. ;
  6586. return 0;
  6587. }
  6588. _ACEOF
  6589. rm -f conftest.$ac_objext
  6590. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6591. (eval $ac_compile) 2>conftest.er1
  6592. ac_status=$?
  6593. grep -v '^ *+' conftest.er1 >conftest.err
  6594. rm -f conftest.er1
  6595. cat conftest.err >&5
  6596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6597. (exit $ac_status); } &&
  6598. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6599. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6600. (eval $ac_try) 2>&5
  6601. ac_status=$?
  6602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6603. (exit $ac_status); }; } &&
  6604. { ac_try='test -s conftest.$ac_objext'
  6605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6606. (eval $ac_try) 2>&5
  6607. ac_status=$?
  6608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6609. (exit $ac_status); }; }; then
  6610. ac_cv_type_size_t=yes
  6611. else
  6612. echo "$as_me: failed program was:" >&5
  6613. sed 's/^/| /' conftest.$ac_ext >&5
  6614. ac_cv_type_size_t=no
  6615. fi
  6616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6617. fi
  6618. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6619. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6620. if test $ac_cv_type_size_t = yes; then
  6621. :
  6622. else
  6623. cat >>confdefs.h <<_ACEOF
  6624. #define size_t unsigned
  6625. _ACEOF
  6626. fi
  6627. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6628. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6629. if test "${ac_cv_type_uid_t+set}" = set; then
  6630. echo $ECHO_N "(cached) $ECHO_C" >&6
  6631. else
  6632. cat >conftest.$ac_ext <<_ACEOF
  6633. /* confdefs.h. */
  6634. _ACEOF
  6635. cat confdefs.h >>conftest.$ac_ext
  6636. cat >>conftest.$ac_ext <<_ACEOF
  6637. /* end confdefs.h. */
  6638. #include <sys/types.h>
  6639. _ACEOF
  6640. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6641. $EGREP "uid_t" >/dev/null 2>&1; then
  6642. ac_cv_type_uid_t=yes
  6643. else
  6644. ac_cv_type_uid_t=no
  6645. fi
  6646. rm -f conftest*
  6647. fi
  6648. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6649. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6650. if test $ac_cv_type_uid_t = no; then
  6651. cat >>confdefs.h <<\_ACEOF
  6652. #define uid_t int
  6653. _ACEOF
  6654. cat >>confdefs.h <<\_ACEOF
  6655. #define gid_t int
  6656. _ACEOF
  6657. fi
  6658. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6659. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6660. if test "${ac_cv_c_const+set}" = set; then
  6661. echo $ECHO_N "(cached) $ECHO_C" >&6
  6662. else
  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. int
  6670. main ()
  6671. {
  6672. /* FIXME: Include the comments suggested by Paul. */
  6673. #ifndef __cplusplus
  6674. /* Ultrix mips cc rejects this. */
  6675. typedef int charset[2];
  6676. const charset x;
  6677. /* SunOS 4.1.1 cc rejects this. */
  6678. char const *const *ccp;
  6679. char **p;
  6680. /* NEC SVR4.0.2 mips cc rejects this. */
  6681. struct point {int x, y;};
  6682. static struct point const zero = {0,0};
  6683. /* AIX XL C 1.02.0.0 rejects this.
  6684. It does not let you subtract one const X* pointer from another in
  6685. an arm of an if-expression whose if-part is not a constant
  6686. expression */
  6687. const char *g = "string";
  6688. ccp = &g + (g ? g-g : 0);
  6689. /* HPUX 7.0 cc rejects these. */
  6690. ++ccp;
  6691. p = (char**) ccp;
  6692. ccp = (char const *const *) p;
  6693. { /* SCO 3.2v4 cc rejects this. */
  6694. char *t;
  6695. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6696. *t++ = 0;
  6697. }
  6698. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6699. int x[] = {25, 17};
  6700. const int *foo = &x[0];
  6701. ++foo;
  6702. }
  6703. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6704. typedef const int *iptr;
  6705. iptr p = 0;
  6706. ++p;
  6707. }
  6708. { /* AIX XL C 1.02.0.0 rejects this saying
  6709. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6710. struct s { int j; const int *ap[3]; };
  6711. struct s *b; b->j = 5;
  6712. }
  6713. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6714. const int foo = 10;
  6715. }
  6716. #endif
  6717. ;
  6718. return 0;
  6719. }
  6720. _ACEOF
  6721. rm -f conftest.$ac_objext
  6722. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6723. (eval $ac_compile) 2>conftest.er1
  6724. ac_status=$?
  6725. grep -v '^ *+' conftest.er1 >conftest.err
  6726. rm -f conftest.er1
  6727. cat conftest.err >&5
  6728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6729. (exit $ac_status); } &&
  6730. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6732. (eval $ac_try) 2>&5
  6733. ac_status=$?
  6734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6735. (exit $ac_status); }; } &&
  6736. { ac_try='test -s conftest.$ac_objext'
  6737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6738. (eval $ac_try) 2>&5
  6739. ac_status=$?
  6740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6741. (exit $ac_status); }; }; then
  6742. ac_cv_c_const=yes
  6743. else
  6744. echo "$as_me: failed program was:" >&5
  6745. sed 's/^/| /' conftest.$ac_ext >&5
  6746. ac_cv_c_const=no
  6747. fi
  6748. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6749. fi
  6750. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6751. echo "${ECHO_T}$ac_cv_c_const" >&6
  6752. if test $ac_cv_c_const = no; then
  6753. cat >>confdefs.h <<\_ACEOF
  6754. #define const
  6755. _ACEOF
  6756. fi
  6757. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6758. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6759. if test "${ac_cv_c_bigendian+set}" = set; then
  6760. echo $ECHO_N "(cached) $ECHO_C" >&6
  6761. else
  6762. # See if sys/param.h defines the BYTE_ORDER macro.
  6763. cat >conftest.$ac_ext <<_ACEOF
  6764. /* confdefs.h. */
  6765. _ACEOF
  6766. cat confdefs.h >>conftest.$ac_ext
  6767. cat >>conftest.$ac_ext <<_ACEOF
  6768. /* end confdefs.h. */
  6769. #include <sys/types.h>
  6770. #include <sys/param.h>
  6771. int
  6772. main ()
  6773. {
  6774. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6775. bogus endian macros
  6776. #endif
  6777. ;
  6778. return 0;
  6779. }
  6780. _ACEOF
  6781. rm -f conftest.$ac_objext
  6782. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6783. (eval $ac_compile) 2>conftest.er1
  6784. ac_status=$?
  6785. grep -v '^ *+' conftest.er1 >conftest.err
  6786. rm -f conftest.er1
  6787. cat conftest.err >&5
  6788. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6789. (exit $ac_status); } &&
  6790. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6791. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6792. (eval $ac_try) 2>&5
  6793. ac_status=$?
  6794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6795. (exit $ac_status); }; } &&
  6796. { ac_try='test -s conftest.$ac_objext'
  6797. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6798. (eval $ac_try) 2>&5
  6799. ac_status=$?
  6800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6801. (exit $ac_status); }; }; then
  6802. # It does; now see whether it defined to BIG_ENDIAN or not.
  6803. cat >conftest.$ac_ext <<_ACEOF
  6804. /* confdefs.h. */
  6805. _ACEOF
  6806. cat confdefs.h >>conftest.$ac_ext
  6807. cat >>conftest.$ac_ext <<_ACEOF
  6808. /* end confdefs.h. */
  6809. #include <sys/types.h>
  6810. #include <sys/param.h>
  6811. int
  6812. main ()
  6813. {
  6814. #if BYTE_ORDER != BIG_ENDIAN
  6815. not big endian
  6816. #endif
  6817. ;
  6818. return 0;
  6819. }
  6820. _ACEOF
  6821. rm -f conftest.$ac_objext
  6822. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6823. (eval $ac_compile) 2>conftest.er1
  6824. ac_status=$?
  6825. grep -v '^ *+' conftest.er1 >conftest.err
  6826. rm -f conftest.er1
  6827. cat conftest.err >&5
  6828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6829. (exit $ac_status); } &&
  6830. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6832. (eval $ac_try) 2>&5
  6833. ac_status=$?
  6834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6835. (exit $ac_status); }; } &&
  6836. { ac_try='test -s conftest.$ac_objext'
  6837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6838. (eval $ac_try) 2>&5
  6839. ac_status=$?
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); }; }; then
  6842. ac_cv_c_bigendian=yes
  6843. else
  6844. echo "$as_me: failed program was:" >&5
  6845. sed 's/^/| /' conftest.$ac_ext >&5
  6846. ac_cv_c_bigendian=no
  6847. fi
  6848. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6849. else
  6850. echo "$as_me: failed program was:" >&5
  6851. sed 's/^/| /' conftest.$ac_ext >&5
  6852. # It does not; compile a test program.
  6853. if test "$cross_compiling" = yes; then
  6854. # try to guess the endianness by grepping values into an object file
  6855. ac_cv_c_bigendian=unknown
  6856. cat >conftest.$ac_ext <<_ACEOF
  6857. /* confdefs.h. */
  6858. _ACEOF
  6859. cat confdefs.h >>conftest.$ac_ext
  6860. cat >>conftest.$ac_ext <<_ACEOF
  6861. /* end confdefs.h. */
  6862. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6863. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6864. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6865. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6866. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6867. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6868. int
  6869. main ()
  6870. {
  6871. _ascii (); _ebcdic ();
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. rm -f conftest.$ac_objext
  6877. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6878. (eval $ac_compile) 2>conftest.er1
  6879. ac_status=$?
  6880. grep -v '^ *+' conftest.er1 >conftest.err
  6881. rm -f conftest.er1
  6882. cat conftest.err >&5
  6883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6884. (exit $ac_status); } &&
  6885. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6887. (eval $ac_try) 2>&5
  6888. ac_status=$?
  6889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6890. (exit $ac_status); }; } &&
  6891. { ac_try='test -s conftest.$ac_objext'
  6892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6893. (eval $ac_try) 2>&5
  6894. ac_status=$?
  6895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6896. (exit $ac_status); }; }; then
  6897. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6898. ac_cv_c_bigendian=yes
  6899. fi
  6900. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6901. if test "$ac_cv_c_bigendian" = unknown; then
  6902. ac_cv_c_bigendian=no
  6903. else
  6904. # finding both strings is unlikely to happen, but who knows?
  6905. ac_cv_c_bigendian=unknown
  6906. fi
  6907. fi
  6908. else
  6909. echo "$as_me: failed program was:" >&5
  6910. sed 's/^/| /' conftest.$ac_ext >&5
  6911. fi
  6912. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  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. int
  6921. main ()
  6922. {
  6923. /* Are we little or big endian? From Harbison&Steele. */
  6924. union
  6925. {
  6926. long l;
  6927. char c[sizeof (long)];
  6928. } u;
  6929. u.l = 1;
  6930. exit (u.c[sizeof (long) - 1] == 1);
  6931. }
  6932. _ACEOF
  6933. rm -f conftest$ac_exeext
  6934. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6935. (eval $ac_link) 2>&5
  6936. ac_status=$?
  6937. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6938. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6940. (eval $ac_try) 2>&5
  6941. ac_status=$?
  6942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943. (exit $ac_status); }; }; then
  6944. ac_cv_c_bigendian=no
  6945. else
  6946. echo "$as_me: program exited with status $ac_status" >&5
  6947. echo "$as_me: failed program was:" >&5
  6948. sed 's/^/| /' conftest.$ac_ext >&5
  6949. ( exit $ac_status )
  6950. ac_cv_c_bigendian=yes
  6951. fi
  6952. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6953. fi
  6954. fi
  6955. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6956. fi
  6957. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6958. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6959. case $ac_cv_c_bigendian in
  6960. yes)
  6961. cat >>confdefs.h <<\_ACEOF
  6962. #define WORDS_BIGENDIAN 1
  6963. _ACEOF
  6964. ;;
  6965. no)
  6966. ;;
  6967. *)
  6968. { { echo "$as_me:$LINENO: error: unknown endianness
  6969. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6970. echo "$as_me: error: unknown endianness
  6971. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6972. { (exit 1); exit 1; }; } ;;
  6973. esac
  6974. echo "$as_me:$LINENO: checking for inline" >&5
  6975. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6976. if test "${ac_cv_c_inline+set}" = set; then
  6977. echo $ECHO_N "(cached) $ECHO_C" >&6
  6978. else
  6979. ac_cv_c_inline=no
  6980. for ac_kw in inline __inline__ __inline; do
  6981. cat >conftest.$ac_ext <<_ACEOF
  6982. /* confdefs.h. */
  6983. _ACEOF
  6984. cat confdefs.h >>conftest.$ac_ext
  6985. cat >>conftest.$ac_ext <<_ACEOF
  6986. /* end confdefs.h. */
  6987. #ifndef __cplusplus
  6988. typedef int foo_t;
  6989. static $ac_kw foo_t static_foo () {return 0; }
  6990. $ac_kw foo_t foo () {return 0; }
  6991. #endif
  6992. _ACEOF
  6993. rm -f conftest.$ac_objext
  6994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6995. (eval $ac_compile) 2>conftest.er1
  6996. ac_status=$?
  6997. grep -v '^ *+' conftest.er1 >conftest.err
  6998. rm -f conftest.er1
  6999. cat conftest.err >&5
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } &&
  7002. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; } &&
  7008. { ac_try='test -s conftest.$ac_objext'
  7009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7010. (eval $ac_try) 2>&5
  7011. ac_status=$?
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); }; }; then
  7014. ac_cv_c_inline=$ac_kw; break
  7015. else
  7016. echo "$as_me: failed program was:" >&5
  7017. sed 's/^/| /' conftest.$ac_ext >&5
  7018. fi
  7019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7020. done
  7021. fi
  7022. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7023. echo "${ECHO_T}$ac_cv_c_inline" >&6
  7024. case $ac_cv_c_inline in
  7025. inline | yes) ;;
  7026. *)
  7027. case $ac_cv_c_inline in
  7028. no) ac_val=;;
  7029. *) ac_val=$ac_cv_c_inline;;
  7030. esac
  7031. cat >>confdefs.h <<_ACEOF
  7032. #ifndef __cplusplus
  7033. #define inline $ac_val
  7034. #endif
  7035. _ACEOF
  7036. ;;
  7037. esac
  7038. echo "$as_me:$LINENO: checking for long" >&5
  7039. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7040. if test "${ac_cv_type_long+set}" = set; then
  7041. echo $ECHO_N "(cached) $ECHO_C" >&6
  7042. else
  7043. cat >conftest.$ac_ext <<_ACEOF
  7044. /* confdefs.h. */
  7045. _ACEOF
  7046. cat confdefs.h >>conftest.$ac_ext
  7047. cat >>conftest.$ac_ext <<_ACEOF
  7048. /* end confdefs.h. */
  7049. $ac_includes_default
  7050. int
  7051. main ()
  7052. {
  7053. if ((long *) 0)
  7054. return 0;
  7055. if (sizeof (long))
  7056. return 0;
  7057. ;
  7058. return 0;
  7059. }
  7060. _ACEOF
  7061. rm -f conftest.$ac_objext
  7062. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7063. (eval $ac_compile) 2>conftest.er1
  7064. ac_status=$?
  7065. grep -v '^ *+' conftest.er1 >conftest.err
  7066. rm -f conftest.er1
  7067. cat conftest.err >&5
  7068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7069. (exit $ac_status); } &&
  7070. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7072. (eval $ac_try) 2>&5
  7073. ac_status=$?
  7074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7075. (exit $ac_status); }; } &&
  7076. { ac_try='test -s conftest.$ac_objext'
  7077. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7078. (eval $ac_try) 2>&5
  7079. ac_status=$?
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); }; }; then
  7082. ac_cv_type_long=yes
  7083. else
  7084. echo "$as_me: failed program was:" >&5
  7085. sed 's/^/| /' conftest.$ac_ext >&5
  7086. ac_cv_type_long=no
  7087. fi
  7088. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7089. fi
  7090. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7091. echo "${ECHO_T}$ac_cv_type_long" >&6
  7092. echo "$as_me:$LINENO: checking size of long" >&5
  7093. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7094. if test "${ac_cv_sizeof_long+set}" = set; then
  7095. echo $ECHO_N "(cached) $ECHO_C" >&6
  7096. else
  7097. if test "$ac_cv_type_long" = yes; then
  7098. # The cast to unsigned long works around a bug in the HP C Compiler
  7099. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7100. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7101. # This bug is HP SR number 8606223364.
  7102. if test "$cross_compiling" = yes; then
  7103. # Depending upon the size, compute the lo and hi bounds.
  7104. cat >conftest.$ac_ext <<_ACEOF
  7105. /* confdefs.h. */
  7106. _ACEOF
  7107. cat confdefs.h >>conftest.$ac_ext
  7108. cat >>conftest.$ac_ext <<_ACEOF
  7109. /* end confdefs.h. */
  7110. $ac_includes_default
  7111. int
  7112. main ()
  7113. {
  7114. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7115. test_array [0] = 0
  7116. ;
  7117. return 0;
  7118. }
  7119. _ACEOF
  7120. rm -f conftest.$ac_objext
  7121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7122. (eval $ac_compile) 2>conftest.er1
  7123. ac_status=$?
  7124. grep -v '^ *+' conftest.er1 >conftest.err
  7125. rm -f conftest.er1
  7126. cat conftest.err >&5
  7127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7128. (exit $ac_status); } &&
  7129. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7130. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7131. (eval $ac_try) 2>&5
  7132. ac_status=$?
  7133. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7134. (exit $ac_status); }; } &&
  7135. { ac_try='test -s conftest.$ac_objext'
  7136. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7137. (eval $ac_try) 2>&5
  7138. ac_status=$?
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); }; }; then
  7141. ac_lo=0 ac_mid=0
  7142. while :; do
  7143. cat >conftest.$ac_ext <<_ACEOF
  7144. /* confdefs.h. */
  7145. _ACEOF
  7146. cat confdefs.h >>conftest.$ac_ext
  7147. cat >>conftest.$ac_ext <<_ACEOF
  7148. /* end confdefs.h. */
  7149. $ac_includes_default
  7150. int
  7151. main ()
  7152. {
  7153. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7154. test_array [0] = 0
  7155. ;
  7156. return 0;
  7157. }
  7158. _ACEOF
  7159. rm -f conftest.$ac_objext
  7160. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7161. (eval $ac_compile) 2>conftest.er1
  7162. ac_status=$?
  7163. grep -v '^ *+' conftest.er1 >conftest.err
  7164. rm -f conftest.er1
  7165. cat conftest.err >&5
  7166. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7167. (exit $ac_status); } &&
  7168. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7169. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7170. (eval $ac_try) 2>&5
  7171. ac_status=$?
  7172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7173. (exit $ac_status); }; } &&
  7174. { ac_try='test -s conftest.$ac_objext'
  7175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7176. (eval $ac_try) 2>&5
  7177. ac_status=$?
  7178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7179. (exit $ac_status); }; }; then
  7180. ac_hi=$ac_mid; break
  7181. else
  7182. echo "$as_me: failed program was:" >&5
  7183. sed 's/^/| /' conftest.$ac_ext >&5
  7184. ac_lo=`expr $ac_mid + 1`
  7185. if test $ac_lo -le $ac_mid; then
  7186. ac_lo= ac_hi=
  7187. break
  7188. fi
  7189. ac_mid=`expr 2 '*' $ac_mid + 1`
  7190. fi
  7191. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7192. done
  7193. else
  7194. echo "$as_me: failed program was:" >&5
  7195. sed 's/^/| /' conftest.$ac_ext >&5
  7196. cat >conftest.$ac_ext <<_ACEOF
  7197. /* confdefs.h. */
  7198. _ACEOF
  7199. cat confdefs.h >>conftest.$ac_ext
  7200. cat >>conftest.$ac_ext <<_ACEOF
  7201. /* end confdefs.h. */
  7202. $ac_includes_default
  7203. int
  7204. main ()
  7205. {
  7206. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7207. test_array [0] = 0
  7208. ;
  7209. return 0;
  7210. }
  7211. _ACEOF
  7212. rm -f conftest.$ac_objext
  7213. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7214. (eval $ac_compile) 2>conftest.er1
  7215. ac_status=$?
  7216. grep -v '^ *+' conftest.er1 >conftest.err
  7217. rm -f conftest.er1
  7218. cat conftest.err >&5
  7219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7220. (exit $ac_status); } &&
  7221. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7223. (eval $ac_try) 2>&5
  7224. ac_status=$?
  7225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7226. (exit $ac_status); }; } &&
  7227. { ac_try='test -s conftest.$ac_objext'
  7228. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7229. (eval $ac_try) 2>&5
  7230. ac_status=$?
  7231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); }; }; then
  7233. ac_hi=-1 ac_mid=-1
  7234. while :; do
  7235. cat >conftest.$ac_ext <<_ACEOF
  7236. /* confdefs.h. */
  7237. _ACEOF
  7238. cat confdefs.h >>conftest.$ac_ext
  7239. cat >>conftest.$ac_ext <<_ACEOF
  7240. /* end confdefs.h. */
  7241. $ac_includes_default
  7242. int
  7243. main ()
  7244. {
  7245. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7246. test_array [0] = 0
  7247. ;
  7248. return 0;
  7249. }
  7250. _ACEOF
  7251. rm -f conftest.$ac_objext
  7252. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7253. (eval $ac_compile) 2>conftest.er1
  7254. ac_status=$?
  7255. grep -v '^ *+' conftest.er1 >conftest.err
  7256. rm -f conftest.er1
  7257. cat conftest.err >&5
  7258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7259. (exit $ac_status); } &&
  7260. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7261. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7262. (eval $ac_try) 2>&5
  7263. ac_status=$?
  7264. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7265. (exit $ac_status); }; } &&
  7266. { ac_try='test -s conftest.$ac_objext'
  7267. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7268. (eval $ac_try) 2>&5
  7269. ac_status=$?
  7270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. (exit $ac_status); }; }; then
  7272. ac_lo=$ac_mid; break
  7273. else
  7274. echo "$as_me: failed program was:" >&5
  7275. sed 's/^/| /' conftest.$ac_ext >&5
  7276. ac_hi=`expr '(' $ac_mid ')' - 1`
  7277. if test $ac_mid -le $ac_hi; then
  7278. ac_lo= ac_hi=
  7279. break
  7280. fi
  7281. ac_mid=`expr 2 '*' $ac_mid`
  7282. fi
  7283. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7284. done
  7285. else
  7286. echo "$as_me: failed program was:" >&5
  7287. sed 's/^/| /' conftest.$ac_ext >&5
  7288. ac_lo= ac_hi=
  7289. fi
  7290. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7291. fi
  7292. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7293. # Binary search between lo and hi bounds.
  7294. while test "x$ac_lo" != "x$ac_hi"; do
  7295. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7296. cat >conftest.$ac_ext <<_ACEOF
  7297. /* confdefs.h. */
  7298. _ACEOF
  7299. cat confdefs.h >>conftest.$ac_ext
  7300. cat >>conftest.$ac_ext <<_ACEOF
  7301. /* end confdefs.h. */
  7302. $ac_includes_default
  7303. int
  7304. main ()
  7305. {
  7306. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7307. test_array [0] = 0
  7308. ;
  7309. return 0;
  7310. }
  7311. _ACEOF
  7312. rm -f conftest.$ac_objext
  7313. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7314. (eval $ac_compile) 2>conftest.er1
  7315. ac_status=$?
  7316. grep -v '^ *+' conftest.er1 >conftest.err
  7317. rm -f conftest.er1
  7318. cat conftest.err >&5
  7319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. (exit $ac_status); } &&
  7321. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7323. (eval $ac_try) 2>&5
  7324. ac_status=$?
  7325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7326. (exit $ac_status); }; } &&
  7327. { ac_try='test -s conftest.$ac_objext'
  7328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7329. (eval $ac_try) 2>&5
  7330. ac_status=$?
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. (exit $ac_status); }; }; then
  7333. ac_hi=$ac_mid
  7334. else
  7335. echo "$as_me: failed program was:" >&5
  7336. sed 's/^/| /' conftest.$ac_ext >&5
  7337. ac_lo=`expr '(' $ac_mid ')' + 1`
  7338. fi
  7339. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7340. done
  7341. case $ac_lo in
  7342. ?*) ac_cv_sizeof_long=$ac_lo;;
  7343. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7344. See \`config.log' for more details." >&5
  7345. echo "$as_me: error: cannot compute sizeof (long), 77
  7346. See \`config.log' for more details." >&2;}
  7347. { (exit 1); exit 1; }; } ;;
  7348. esac
  7349. else
  7350. if test "$cross_compiling" = yes; then
  7351. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7352. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7353. { (exit 1); exit 1; }; }
  7354. else
  7355. cat >conftest.$ac_ext <<_ACEOF
  7356. /* confdefs.h. */
  7357. _ACEOF
  7358. cat confdefs.h >>conftest.$ac_ext
  7359. cat >>conftest.$ac_ext <<_ACEOF
  7360. /* end confdefs.h. */
  7361. $ac_includes_default
  7362. long longval () { return (long) (sizeof (long)); }
  7363. unsigned long ulongval () { return (long) (sizeof (long)); }
  7364. #include <stdio.h>
  7365. #include <stdlib.h>
  7366. int
  7367. main ()
  7368. {
  7369. FILE *f = fopen ("conftest.val", "w");
  7370. if (! f)
  7371. exit (1);
  7372. if (((long) (sizeof (long))) < 0)
  7373. {
  7374. long i = longval ();
  7375. if (i != ((long) (sizeof (long))))
  7376. exit (1);
  7377. fprintf (f, "%ld\n", i);
  7378. }
  7379. else
  7380. {
  7381. unsigned long i = ulongval ();
  7382. if (i != ((long) (sizeof (long))))
  7383. exit (1);
  7384. fprintf (f, "%lu\n", i);
  7385. }
  7386. exit (ferror (f) || fclose (f) != 0);
  7387. ;
  7388. return 0;
  7389. }
  7390. _ACEOF
  7391. rm -f conftest$ac_exeext
  7392. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7393. (eval $ac_link) 2>&5
  7394. ac_status=$?
  7395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7396. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7398. (eval $ac_try) 2>&5
  7399. ac_status=$?
  7400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7401. (exit $ac_status); }; }; then
  7402. ac_cv_sizeof_long=`cat conftest.val`
  7403. else
  7404. echo "$as_me: program exited with status $ac_status" >&5
  7405. echo "$as_me: failed program was:" >&5
  7406. sed 's/^/| /' conftest.$ac_ext >&5
  7407. ( exit $ac_status )
  7408. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7409. See \`config.log' for more details." >&5
  7410. echo "$as_me: error: cannot compute sizeof (long), 77
  7411. See \`config.log' for more details." >&2;}
  7412. { (exit 1); exit 1; }; }
  7413. fi
  7414. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7415. fi
  7416. fi
  7417. rm -f conftest.val
  7418. else
  7419. ac_cv_sizeof_long=0
  7420. fi
  7421. fi
  7422. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7423. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7424. cat >>confdefs.h <<_ACEOF
  7425. #define SIZEOF_LONG $ac_cv_sizeof_long
  7426. _ACEOF
  7427. echo "$as_me:$LINENO: checking for int" >&5
  7428. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7429. if test "${ac_cv_type_int+set}" = set; then
  7430. echo $ECHO_N "(cached) $ECHO_C" >&6
  7431. else
  7432. cat >conftest.$ac_ext <<_ACEOF
  7433. /* confdefs.h. */
  7434. _ACEOF
  7435. cat confdefs.h >>conftest.$ac_ext
  7436. cat >>conftest.$ac_ext <<_ACEOF
  7437. /* end confdefs.h. */
  7438. $ac_includes_default
  7439. int
  7440. main ()
  7441. {
  7442. if ((int *) 0)
  7443. return 0;
  7444. if (sizeof (int))
  7445. return 0;
  7446. ;
  7447. return 0;
  7448. }
  7449. _ACEOF
  7450. rm -f conftest.$ac_objext
  7451. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7452. (eval $ac_compile) 2>conftest.er1
  7453. ac_status=$?
  7454. grep -v '^ *+' conftest.er1 >conftest.err
  7455. rm -f conftest.er1
  7456. cat conftest.err >&5
  7457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7458. (exit $ac_status); } &&
  7459. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7460. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7461. (eval $ac_try) 2>&5
  7462. ac_status=$?
  7463. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7464. (exit $ac_status); }; } &&
  7465. { ac_try='test -s conftest.$ac_objext'
  7466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7467. (eval $ac_try) 2>&5
  7468. ac_status=$?
  7469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7470. (exit $ac_status); }; }; then
  7471. ac_cv_type_int=yes
  7472. else
  7473. echo "$as_me: failed program was:" >&5
  7474. sed 's/^/| /' conftest.$ac_ext >&5
  7475. ac_cv_type_int=no
  7476. fi
  7477. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7478. fi
  7479. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7480. echo "${ECHO_T}$ac_cv_type_int" >&6
  7481. echo "$as_me:$LINENO: checking size of int" >&5
  7482. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7483. if test "${ac_cv_sizeof_int+set}" = set; then
  7484. echo $ECHO_N "(cached) $ECHO_C" >&6
  7485. else
  7486. if test "$ac_cv_type_int" = yes; then
  7487. # The cast to unsigned long works around a bug in the HP C Compiler
  7488. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7489. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7490. # This bug is HP SR number 8606223364.
  7491. if test "$cross_compiling" = yes; then
  7492. # Depending upon the size, compute the lo and hi bounds.
  7493. cat >conftest.$ac_ext <<_ACEOF
  7494. /* confdefs.h. */
  7495. _ACEOF
  7496. cat confdefs.h >>conftest.$ac_ext
  7497. cat >>conftest.$ac_ext <<_ACEOF
  7498. /* end confdefs.h. */
  7499. $ac_includes_default
  7500. int
  7501. main ()
  7502. {
  7503. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7504. test_array [0] = 0
  7505. ;
  7506. return 0;
  7507. }
  7508. _ACEOF
  7509. rm -f conftest.$ac_objext
  7510. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7511. (eval $ac_compile) 2>conftest.er1
  7512. ac_status=$?
  7513. grep -v '^ *+' conftest.er1 >conftest.err
  7514. rm -f conftest.er1
  7515. cat conftest.err >&5
  7516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7517. (exit $ac_status); } &&
  7518. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7519. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7520. (eval $ac_try) 2>&5
  7521. ac_status=$?
  7522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7523. (exit $ac_status); }; } &&
  7524. { ac_try='test -s conftest.$ac_objext'
  7525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7526. (eval $ac_try) 2>&5
  7527. ac_status=$?
  7528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7529. (exit $ac_status); }; }; then
  7530. ac_lo=0 ac_mid=0
  7531. while :; do
  7532. cat >conftest.$ac_ext <<_ACEOF
  7533. /* confdefs.h. */
  7534. _ACEOF
  7535. cat confdefs.h >>conftest.$ac_ext
  7536. cat >>conftest.$ac_ext <<_ACEOF
  7537. /* end confdefs.h. */
  7538. $ac_includes_default
  7539. int
  7540. main ()
  7541. {
  7542. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7543. test_array [0] = 0
  7544. ;
  7545. return 0;
  7546. }
  7547. _ACEOF
  7548. rm -f conftest.$ac_objext
  7549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7550. (eval $ac_compile) 2>conftest.er1
  7551. ac_status=$?
  7552. grep -v '^ *+' conftest.er1 >conftest.err
  7553. rm -f conftest.er1
  7554. cat conftest.err >&5
  7555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7556. (exit $ac_status); } &&
  7557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7559. (eval $ac_try) 2>&5
  7560. ac_status=$?
  7561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7562. (exit $ac_status); }; } &&
  7563. { ac_try='test -s conftest.$ac_objext'
  7564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7565. (eval $ac_try) 2>&5
  7566. ac_status=$?
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. (exit $ac_status); }; }; then
  7569. ac_hi=$ac_mid; break
  7570. else
  7571. echo "$as_me: failed program was:" >&5
  7572. sed 's/^/| /' conftest.$ac_ext >&5
  7573. ac_lo=`expr $ac_mid + 1`
  7574. if test $ac_lo -le $ac_mid; then
  7575. ac_lo= ac_hi=
  7576. break
  7577. fi
  7578. ac_mid=`expr 2 '*' $ac_mid + 1`
  7579. fi
  7580. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7581. done
  7582. else
  7583. echo "$as_me: failed program was:" >&5
  7584. sed 's/^/| /' conftest.$ac_ext >&5
  7585. cat >conftest.$ac_ext <<_ACEOF
  7586. /* confdefs.h. */
  7587. _ACEOF
  7588. cat confdefs.h >>conftest.$ac_ext
  7589. cat >>conftest.$ac_ext <<_ACEOF
  7590. /* end confdefs.h. */
  7591. $ac_includes_default
  7592. int
  7593. main ()
  7594. {
  7595. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7596. test_array [0] = 0
  7597. ;
  7598. return 0;
  7599. }
  7600. _ACEOF
  7601. rm -f conftest.$ac_objext
  7602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7603. (eval $ac_compile) 2>conftest.er1
  7604. ac_status=$?
  7605. grep -v '^ *+' conftest.er1 >conftest.err
  7606. rm -f conftest.er1
  7607. cat conftest.err >&5
  7608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7609. (exit $ac_status); } &&
  7610. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7612. (eval $ac_try) 2>&5
  7613. ac_status=$?
  7614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7615. (exit $ac_status); }; } &&
  7616. { ac_try='test -s conftest.$ac_objext'
  7617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7618. (eval $ac_try) 2>&5
  7619. ac_status=$?
  7620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7621. (exit $ac_status); }; }; then
  7622. ac_hi=-1 ac_mid=-1
  7623. while :; do
  7624. cat >conftest.$ac_ext <<_ACEOF
  7625. /* confdefs.h. */
  7626. _ACEOF
  7627. cat confdefs.h >>conftest.$ac_ext
  7628. cat >>conftest.$ac_ext <<_ACEOF
  7629. /* end confdefs.h. */
  7630. $ac_includes_default
  7631. int
  7632. main ()
  7633. {
  7634. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7635. test_array [0] = 0
  7636. ;
  7637. return 0;
  7638. }
  7639. _ACEOF
  7640. rm -f conftest.$ac_objext
  7641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7642. (eval $ac_compile) 2>conftest.er1
  7643. ac_status=$?
  7644. grep -v '^ *+' conftest.er1 >conftest.err
  7645. rm -f conftest.er1
  7646. cat conftest.err >&5
  7647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7648. (exit $ac_status); } &&
  7649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7651. (eval $ac_try) 2>&5
  7652. ac_status=$?
  7653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7654. (exit $ac_status); }; } &&
  7655. { ac_try='test -s conftest.$ac_objext'
  7656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7657. (eval $ac_try) 2>&5
  7658. ac_status=$?
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); }; }; then
  7661. ac_lo=$ac_mid; break
  7662. else
  7663. echo "$as_me: failed program was:" >&5
  7664. sed 's/^/| /' conftest.$ac_ext >&5
  7665. ac_hi=`expr '(' $ac_mid ')' - 1`
  7666. if test $ac_mid -le $ac_hi; then
  7667. ac_lo= ac_hi=
  7668. break
  7669. fi
  7670. ac_mid=`expr 2 '*' $ac_mid`
  7671. fi
  7672. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7673. done
  7674. else
  7675. echo "$as_me: failed program was:" >&5
  7676. sed 's/^/| /' conftest.$ac_ext >&5
  7677. ac_lo= ac_hi=
  7678. fi
  7679. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7680. fi
  7681. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7682. # Binary search between lo and hi bounds.
  7683. while test "x$ac_lo" != "x$ac_hi"; do
  7684. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7685. cat >conftest.$ac_ext <<_ACEOF
  7686. /* confdefs.h. */
  7687. _ACEOF
  7688. cat confdefs.h >>conftest.$ac_ext
  7689. cat >>conftest.$ac_ext <<_ACEOF
  7690. /* end confdefs.h. */
  7691. $ac_includes_default
  7692. int
  7693. main ()
  7694. {
  7695. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7696. test_array [0] = 0
  7697. ;
  7698. return 0;
  7699. }
  7700. _ACEOF
  7701. rm -f conftest.$ac_objext
  7702. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7703. (eval $ac_compile) 2>conftest.er1
  7704. ac_status=$?
  7705. grep -v '^ *+' conftest.er1 >conftest.err
  7706. rm -f conftest.er1
  7707. cat conftest.err >&5
  7708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7709. (exit $ac_status); } &&
  7710. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7712. (eval $ac_try) 2>&5
  7713. ac_status=$?
  7714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7715. (exit $ac_status); }; } &&
  7716. { ac_try='test -s conftest.$ac_objext'
  7717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7718. (eval $ac_try) 2>&5
  7719. ac_status=$?
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); }; }; then
  7722. ac_hi=$ac_mid
  7723. else
  7724. echo "$as_me: failed program was:" >&5
  7725. sed 's/^/| /' conftest.$ac_ext >&5
  7726. ac_lo=`expr '(' $ac_mid ')' + 1`
  7727. fi
  7728. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7729. done
  7730. case $ac_lo in
  7731. ?*) ac_cv_sizeof_int=$ac_lo;;
  7732. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7733. See \`config.log' for more details." >&5
  7734. echo "$as_me: error: cannot compute sizeof (int), 77
  7735. See \`config.log' for more details." >&2;}
  7736. { (exit 1); exit 1; }; } ;;
  7737. esac
  7738. else
  7739. if test "$cross_compiling" = yes; then
  7740. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7741. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7742. { (exit 1); exit 1; }; }
  7743. else
  7744. cat >conftest.$ac_ext <<_ACEOF
  7745. /* confdefs.h. */
  7746. _ACEOF
  7747. cat confdefs.h >>conftest.$ac_ext
  7748. cat >>conftest.$ac_ext <<_ACEOF
  7749. /* end confdefs.h. */
  7750. $ac_includes_default
  7751. long longval () { return (long) (sizeof (int)); }
  7752. unsigned long ulongval () { return (long) (sizeof (int)); }
  7753. #include <stdio.h>
  7754. #include <stdlib.h>
  7755. int
  7756. main ()
  7757. {
  7758. FILE *f = fopen ("conftest.val", "w");
  7759. if (! f)
  7760. exit (1);
  7761. if (((long) (sizeof (int))) < 0)
  7762. {
  7763. long i = longval ();
  7764. if (i != ((long) (sizeof (int))))
  7765. exit (1);
  7766. fprintf (f, "%ld\n", i);
  7767. }
  7768. else
  7769. {
  7770. unsigned long i = ulongval ();
  7771. if (i != ((long) (sizeof (int))))
  7772. exit (1);
  7773. fprintf (f, "%lu\n", i);
  7774. }
  7775. exit (ferror (f) || fclose (f) != 0);
  7776. ;
  7777. return 0;
  7778. }
  7779. _ACEOF
  7780. rm -f conftest$ac_exeext
  7781. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7782. (eval $ac_link) 2>&5
  7783. ac_status=$?
  7784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7787. (eval $ac_try) 2>&5
  7788. ac_status=$?
  7789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7790. (exit $ac_status); }; }; then
  7791. ac_cv_sizeof_int=`cat conftest.val`
  7792. else
  7793. echo "$as_me: program exited with status $ac_status" >&5
  7794. echo "$as_me: failed program was:" >&5
  7795. sed 's/^/| /' conftest.$ac_ext >&5
  7796. ( exit $ac_status )
  7797. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7798. See \`config.log' for more details." >&5
  7799. echo "$as_me: error: cannot compute sizeof (int), 77
  7800. See \`config.log' for more details." >&2;}
  7801. { (exit 1); exit 1; }; }
  7802. fi
  7803. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7804. fi
  7805. fi
  7806. rm -f conftest.val
  7807. else
  7808. ac_cv_sizeof_int=0
  7809. fi
  7810. fi
  7811. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7812. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7813. cat >>confdefs.h <<_ACEOF
  7814. #define SIZEOF_INT $ac_cv_sizeof_int
  7815. _ACEOF
  7816. #checkpoint
  7817. cat >confcache <<\_ACEOF
  7818. # This file is a shell script that caches the results of configure
  7819. # tests run on this system so they can be shared between configure
  7820. # scripts and configure runs, see configure's option --config-cache.
  7821. # It is not useful on other systems. If it contains results you don't
  7822. # want to keep, you may remove or edit it.
  7823. #
  7824. # config.status only pays attention to the cache file if you give it
  7825. # the --recheck option to rerun configure.
  7826. #
  7827. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7828. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7829. # following values.
  7830. _ACEOF
  7831. # The following way of writing the cache mishandles newlines in values,
  7832. # but we know of no workaround that is simple, portable, and efficient.
  7833. # So, don't put newlines in cache variables' values.
  7834. # Ultrix sh set writes to stderr and can't be redirected directly,
  7835. # and sets the high bit in the cache file unless we assign to the vars.
  7836. {
  7837. (set) 2>&1 |
  7838. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7839. *ac_space=\ *)
  7840. # `set' does not quote correctly, so add quotes (double-quote
  7841. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7842. sed -n \
  7843. "s/'/'\\\\''/g;
  7844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7845. ;;
  7846. *)
  7847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7848. sed -n \
  7849. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7850. ;;
  7851. esac;
  7852. } |
  7853. sed '
  7854. t clear
  7855. : clear
  7856. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7857. t end
  7858. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7859. : end' >>confcache
  7860. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7861. if test -w $cache_file; then
  7862. test "x$cache_file" != "x/dev/null"
  7863. cat confcache >$cache_file
  7864. else
  7865. echo "not updating unwritable cache $cache_file"
  7866. fi
  7867. fi
  7868. rm -f confcache
  7869. echo "$as_me:$LINENO: checking for working volatile" >&5
  7870. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7871. if test "${ac_cv_c_volatile+set}" = set; then
  7872. echo $ECHO_N "(cached) $ECHO_C" >&6
  7873. else
  7874. cat >conftest.$ac_ext <<_ACEOF
  7875. /* confdefs.h. */
  7876. _ACEOF
  7877. cat confdefs.h >>conftest.$ac_ext
  7878. cat >>conftest.$ac_ext <<_ACEOF
  7879. /* end confdefs.h. */
  7880. int
  7881. main ()
  7882. {
  7883. volatile int x;
  7884. int * volatile y;
  7885. ;
  7886. return 0;
  7887. }
  7888. _ACEOF
  7889. rm -f conftest.$ac_objext
  7890. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7891. (eval $ac_compile) 2>conftest.er1
  7892. ac_status=$?
  7893. grep -v '^ *+' conftest.er1 >conftest.err
  7894. rm -f conftest.er1
  7895. cat conftest.err >&5
  7896. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7897. (exit $ac_status); } &&
  7898. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7899. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7900. (eval $ac_try) 2>&5
  7901. ac_status=$?
  7902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7903. (exit $ac_status); }; } &&
  7904. { ac_try='test -s conftest.$ac_objext'
  7905. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7906. (eval $ac_try) 2>&5
  7907. ac_status=$?
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); }; }; then
  7910. ac_cv_c_volatile=yes
  7911. else
  7912. echo "$as_me: failed program was:" >&5
  7913. sed 's/^/| /' conftest.$ac_ext >&5
  7914. ac_cv_c_volatile=no
  7915. fi
  7916. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7917. fi
  7918. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7919. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7920. if test $ac_cv_c_volatile = no; then
  7921. cat >>confdefs.h <<\_ACEOF
  7922. #define volatile
  7923. _ACEOF
  7924. fi
  7925. if test $ac_cv_c_compiler_gnu = yes; then
  7926. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7927. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7928. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7929. echo $ECHO_N "(cached) $ECHO_C" >&6
  7930. else
  7931. ac_pattern="Autoconf.*'x'"
  7932. cat >conftest.$ac_ext <<_ACEOF
  7933. /* confdefs.h. */
  7934. _ACEOF
  7935. cat confdefs.h >>conftest.$ac_ext
  7936. cat >>conftest.$ac_ext <<_ACEOF
  7937. /* end confdefs.h. */
  7938. #include <sgtty.h>
  7939. Autoconf TIOCGETP
  7940. _ACEOF
  7941. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7942. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7943. ac_cv_prog_gcc_traditional=yes
  7944. else
  7945. ac_cv_prog_gcc_traditional=no
  7946. fi
  7947. rm -f conftest*
  7948. if test $ac_cv_prog_gcc_traditional = no; then
  7949. cat >conftest.$ac_ext <<_ACEOF
  7950. /* confdefs.h. */
  7951. _ACEOF
  7952. cat confdefs.h >>conftest.$ac_ext
  7953. cat >>conftest.$ac_ext <<_ACEOF
  7954. /* end confdefs.h. */
  7955. #include <termio.h>
  7956. Autoconf TCGETA
  7957. _ACEOF
  7958. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7959. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7960. ac_cv_prog_gcc_traditional=yes
  7961. fi
  7962. rm -f conftest*
  7963. fi
  7964. fi
  7965. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7966. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7967. if test $ac_cv_prog_gcc_traditional = yes; then
  7968. CC="$CC -traditional"
  7969. fi
  7970. fi
  7971. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7972. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7973. if test "${ac_cv_struct_tm+set}" = set; then
  7974. echo $ECHO_N "(cached) $ECHO_C" >&6
  7975. else
  7976. cat >conftest.$ac_ext <<_ACEOF
  7977. /* confdefs.h. */
  7978. _ACEOF
  7979. cat confdefs.h >>conftest.$ac_ext
  7980. cat >>conftest.$ac_ext <<_ACEOF
  7981. /* end confdefs.h. */
  7982. #include <sys/types.h>
  7983. #include <time.h>
  7984. int
  7985. main ()
  7986. {
  7987. struct tm *tp; tp->tm_sec;
  7988. ;
  7989. return 0;
  7990. }
  7991. _ACEOF
  7992. rm -f conftest.$ac_objext
  7993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7994. (eval $ac_compile) 2>conftest.er1
  7995. ac_status=$?
  7996. grep -v '^ *+' conftest.er1 >conftest.err
  7997. rm -f conftest.er1
  7998. cat conftest.err >&5
  7999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8000. (exit $ac_status); } &&
  8001. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8003. (eval $ac_try) 2>&5
  8004. ac_status=$?
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); }; } &&
  8007. { ac_try='test -s conftest.$ac_objext'
  8008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8009. (eval $ac_try) 2>&5
  8010. ac_status=$?
  8011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. (exit $ac_status); }; }; then
  8013. ac_cv_struct_tm=time.h
  8014. else
  8015. echo "$as_me: failed program was:" >&5
  8016. sed 's/^/| /' conftest.$ac_ext >&5
  8017. ac_cv_struct_tm=sys/time.h
  8018. fi
  8019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8020. fi
  8021. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8022. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8023. if test $ac_cv_struct_tm = sys/time.h; then
  8024. cat >>confdefs.h <<\_ACEOF
  8025. #define TM_IN_SYS_TIME 1
  8026. _ACEOF
  8027. fi
  8028. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8029. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8030. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8031. echo $ECHO_N "(cached) $ECHO_C" >&6
  8032. else
  8033. cat >conftest.$ac_ext <<_ACEOF
  8034. /* confdefs.h. */
  8035. _ACEOF
  8036. cat confdefs.h >>conftest.$ac_ext
  8037. cat >>conftest.$ac_ext <<_ACEOF
  8038. /* end confdefs.h. */
  8039. #include <sys/types.h>
  8040. #include <$ac_cv_struct_tm>
  8041. int
  8042. main ()
  8043. {
  8044. static struct tm ac_aggr;
  8045. if (ac_aggr.tm_zone)
  8046. return 0;
  8047. ;
  8048. return 0;
  8049. }
  8050. _ACEOF
  8051. rm -f conftest.$ac_objext
  8052. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8053. (eval $ac_compile) 2>conftest.er1
  8054. ac_status=$?
  8055. grep -v '^ *+' conftest.er1 >conftest.err
  8056. rm -f conftest.er1
  8057. cat conftest.err >&5
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. (exit $ac_status); } &&
  8060. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8062. (eval $ac_try) 2>&5
  8063. ac_status=$?
  8064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8065. (exit $ac_status); }; } &&
  8066. { ac_try='test -s conftest.$ac_objext'
  8067. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8068. (eval $ac_try) 2>&5
  8069. ac_status=$?
  8070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8071. (exit $ac_status); }; }; then
  8072. ac_cv_member_struct_tm_tm_zone=yes
  8073. else
  8074. echo "$as_me: failed program was:" >&5
  8075. sed 's/^/| /' conftest.$ac_ext >&5
  8076. cat >conftest.$ac_ext <<_ACEOF
  8077. /* confdefs.h. */
  8078. _ACEOF
  8079. cat confdefs.h >>conftest.$ac_ext
  8080. cat >>conftest.$ac_ext <<_ACEOF
  8081. /* end confdefs.h. */
  8082. #include <sys/types.h>
  8083. #include <$ac_cv_struct_tm>
  8084. int
  8085. main ()
  8086. {
  8087. static struct tm ac_aggr;
  8088. if (sizeof ac_aggr.tm_zone)
  8089. return 0;
  8090. ;
  8091. return 0;
  8092. }
  8093. _ACEOF
  8094. rm -f conftest.$ac_objext
  8095. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8096. (eval $ac_compile) 2>conftest.er1
  8097. ac_status=$?
  8098. grep -v '^ *+' conftest.er1 >conftest.err
  8099. rm -f conftest.er1
  8100. cat conftest.err >&5
  8101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8102. (exit $ac_status); } &&
  8103. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8104. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8105. (eval $ac_try) 2>&5
  8106. ac_status=$?
  8107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8108. (exit $ac_status); }; } &&
  8109. { ac_try='test -s conftest.$ac_objext'
  8110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8111. (eval $ac_try) 2>&5
  8112. ac_status=$?
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); }; }; then
  8115. ac_cv_member_struct_tm_tm_zone=yes
  8116. else
  8117. echo "$as_me: failed program was:" >&5
  8118. sed 's/^/| /' conftest.$ac_ext >&5
  8119. ac_cv_member_struct_tm_tm_zone=no
  8120. fi
  8121. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8122. fi
  8123. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8124. fi
  8125. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8126. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8127. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8128. cat >>confdefs.h <<_ACEOF
  8129. #define HAVE_STRUCT_TM_TM_ZONE 1
  8130. _ACEOF
  8131. fi
  8132. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8133. cat >>confdefs.h <<\_ACEOF
  8134. #define HAVE_TM_ZONE 1
  8135. _ACEOF
  8136. else
  8137. echo "$as_me:$LINENO: checking for tzname" >&5
  8138. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8139. if test "${ac_cv_var_tzname+set}" = set; then
  8140. echo $ECHO_N "(cached) $ECHO_C" >&6
  8141. else
  8142. cat >conftest.$ac_ext <<_ACEOF
  8143. /* confdefs.h. */
  8144. _ACEOF
  8145. cat confdefs.h >>conftest.$ac_ext
  8146. cat >>conftest.$ac_ext <<_ACEOF
  8147. /* end confdefs.h. */
  8148. #include <time.h>
  8149. #ifndef tzname /* For SGI. */
  8150. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8151. #endif
  8152. int
  8153. main ()
  8154. {
  8155. atoi(*tzname);
  8156. ;
  8157. return 0;
  8158. }
  8159. _ACEOF
  8160. rm -f conftest.$ac_objext conftest$ac_exeext
  8161. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8162. (eval $ac_link) 2>conftest.er1
  8163. ac_status=$?
  8164. grep -v '^ *+' conftest.er1 >conftest.err
  8165. rm -f conftest.er1
  8166. cat conftest.err >&5
  8167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8168. (exit $ac_status); } &&
  8169. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8170. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8171. (eval $ac_try) 2>&5
  8172. ac_status=$?
  8173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8174. (exit $ac_status); }; } &&
  8175. { ac_try='test -s conftest$ac_exeext'
  8176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8177. (eval $ac_try) 2>&5
  8178. ac_status=$?
  8179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); }; }; then
  8181. ac_cv_var_tzname=yes
  8182. else
  8183. echo "$as_me: failed program was:" >&5
  8184. sed 's/^/| /' conftest.$ac_ext >&5
  8185. ac_cv_var_tzname=no
  8186. fi
  8187. rm -f conftest.err conftest.$ac_objext \
  8188. conftest$ac_exeext conftest.$ac_ext
  8189. fi
  8190. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8191. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8192. if test $ac_cv_var_tzname = yes; then
  8193. cat >>confdefs.h <<\_ACEOF
  8194. #define HAVE_TZNAME 1
  8195. _ACEOF
  8196. fi
  8197. fi
  8198. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8199. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8200. if test "${ac_cv_struct_tm+set}" = set; then
  8201. echo $ECHO_N "(cached) $ECHO_C" >&6
  8202. else
  8203. cat >conftest.$ac_ext <<_ACEOF
  8204. /* confdefs.h. */
  8205. _ACEOF
  8206. cat confdefs.h >>conftest.$ac_ext
  8207. cat >>conftest.$ac_ext <<_ACEOF
  8208. /* end confdefs.h. */
  8209. #include <sys/types.h>
  8210. #include <time.h>
  8211. int
  8212. main ()
  8213. {
  8214. struct tm *tp; tp->tm_sec;
  8215. ;
  8216. return 0;
  8217. }
  8218. _ACEOF
  8219. rm -f conftest.$ac_objext
  8220. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8221. (eval $ac_compile) 2>conftest.er1
  8222. ac_status=$?
  8223. grep -v '^ *+' conftest.er1 >conftest.err
  8224. rm -f conftest.er1
  8225. cat conftest.err >&5
  8226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8227. (exit $ac_status); } &&
  8228. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8230. (eval $ac_try) 2>&5
  8231. ac_status=$?
  8232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8233. (exit $ac_status); }; } &&
  8234. { ac_try='test -s conftest.$ac_objext'
  8235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8236. (eval $ac_try) 2>&5
  8237. ac_status=$?
  8238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8239. (exit $ac_status); }; }; then
  8240. ac_cv_struct_tm=time.h
  8241. else
  8242. echo "$as_me: failed program was:" >&5
  8243. sed 's/^/| /' conftest.$ac_ext >&5
  8244. ac_cv_struct_tm=sys/time.h
  8245. fi
  8246. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8247. fi
  8248. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8249. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8250. if test $ac_cv_struct_tm = sys/time.h; then
  8251. cat >>confdefs.h <<\_ACEOF
  8252. #define TM_IN_SYS_TIME 1
  8253. _ACEOF
  8254. fi
  8255. #checkpoint
  8256. cat >confcache <<\_ACEOF
  8257. # This file is a shell script that caches the results of configure
  8258. # tests run on this system so they can be shared between configure
  8259. # scripts and configure runs, see configure's option --config-cache.
  8260. # It is not useful on other systems. If it contains results you don't
  8261. # want to keep, you may remove or edit it.
  8262. #
  8263. # config.status only pays attention to the cache file if you give it
  8264. # the --recheck option to rerun configure.
  8265. #
  8266. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8267. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8268. # following values.
  8269. _ACEOF
  8270. # The following way of writing the cache mishandles newlines in values,
  8271. # but we know of no workaround that is simple, portable, and efficient.
  8272. # So, don't put newlines in cache variables' values.
  8273. # Ultrix sh set writes to stderr and can't be redirected directly,
  8274. # and sets the high bit in the cache file unless we assign to the vars.
  8275. {
  8276. (set) 2>&1 |
  8277. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8278. *ac_space=\ *)
  8279. # `set' does not quote correctly, so add quotes (double-quote
  8280. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8281. sed -n \
  8282. "s/'/'\\\\''/g;
  8283. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8284. ;;
  8285. *)
  8286. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8287. sed -n \
  8288. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8289. ;;
  8290. esac;
  8291. } |
  8292. sed '
  8293. t clear
  8294. : clear
  8295. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8296. t end
  8297. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8298. : end' >>confcache
  8299. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8300. if test -w $cache_file; then
  8301. test "x$cache_file" != "x/dev/null"
  8302. cat confcache >$cache_file
  8303. else
  8304. echo "not updating unwritable cache $cache_file"
  8305. fi
  8306. fi
  8307. rm -f confcache
  8308. # Check for IPv6 support
  8309. #EGG_IPV6_SUPPORTED
  8310. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  8311. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  8312. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8313. if test "${enable_ipv6+set}" = set; then
  8314. enableval="$enable_ipv6"
  8315. ac_cv_dipv6="yes"
  8316. echo "$as_me:$LINENO: result: yes" >&5
  8317. echo "${ECHO_T}yes" >&6
  8318. else
  8319. ac_cv_dipv6="no"
  8320. if test "$egg_cv_ipv6_supported" = "no"; then
  8321. ac_cv_dipv6="no"
  8322. fi
  8323. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  8324. echo "${ECHO_T}$ac_cv_dipv6" >&6
  8325. fi;
  8326. if test "$ac_cv_dipv6" = "no"; then
  8327. cat >>confdefs.h <<\_ACEOF
  8328. #define USE_IPV6 1
  8329. _ACEOF
  8330. fi
  8331. echo "$as_me:$LINENO: checking for socklen_t" >&5
  8332. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  8333. if test "${egg_cv_socklen_t+set}" = set; then
  8334. echo $ECHO_N "(cached) $ECHO_C" >&6
  8335. else
  8336. if test "$cross_compiling" = yes; then
  8337. egg_cv_socklen_t=no
  8338. else
  8339. cat >conftest.$ac_ext <<_ACEOF
  8340. /* confdefs.h. */
  8341. _ACEOF
  8342. cat confdefs.h >>conftest.$ac_ext
  8343. cat >>conftest.$ac_ext <<_ACEOF
  8344. /* end confdefs.h. */
  8345. #include <unistd.h>
  8346. #include <sys/types.h>
  8347. #include <sys/socket.h>
  8348. #include <netinet/in.h>
  8349. #include <arpa/inet.h>
  8350. int main()
  8351. {
  8352. socklen_t test = sizeof(int);
  8353. return 0;
  8354. }
  8355. _ACEOF
  8356. rm -f conftest$ac_exeext
  8357. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8358. (eval $ac_link) 2>&5
  8359. ac_status=$?
  8360. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8361. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8362. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8363. (eval $ac_try) 2>&5
  8364. ac_status=$?
  8365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8366. (exit $ac_status); }; }; then
  8367. egg_cv_socklen_t=yes
  8368. else
  8369. echo "$as_me: program exited with status $ac_status" >&5
  8370. echo "$as_me: failed program was:" >&5
  8371. sed 's/^/| /' conftest.$ac_ext >&5
  8372. ( exit $ac_status )
  8373. egg_cv_socklen_t=no
  8374. fi
  8375. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8376. fi
  8377. fi
  8378. if test "$egg_cv_socklen_t" = "yes"; then
  8379. cat >>confdefs.h <<\_ACEOF
  8380. #define HAVE_SOCKLEN_T 1
  8381. _ACEOF
  8382. echo "$as_me:$LINENO: result: yes" >&5
  8383. echo "${ECHO_T}yes" >&6
  8384. else
  8385. echo "$as_me:$LINENO: result: no" >&5
  8386. echo "${ECHO_T}no" >&6
  8387. fi
  8388. # Checks for library functions
  8389. #checkpoint
  8390. cat >confcache <<\_ACEOF
  8391. # This file is a shell script that caches the results of configure
  8392. # tests run on this system so they can be shared between configure
  8393. # scripts and configure runs, see configure's option --config-cache.
  8394. # It is not useful on other systems. If it contains results you don't
  8395. # want to keep, you may remove or edit it.
  8396. #
  8397. # config.status only pays attention to the cache file if you give it
  8398. # the --recheck option to rerun configure.
  8399. #
  8400. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8401. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8402. # following values.
  8403. _ACEOF
  8404. # The following way of writing the cache mishandles newlines in values,
  8405. # but we know of no workaround that is simple, portable, and efficient.
  8406. # So, don't put newlines in cache variables' values.
  8407. # Ultrix sh set writes to stderr and can't be redirected directly,
  8408. # and sets the high bit in the cache file unless we assign to the vars.
  8409. {
  8410. (set) 2>&1 |
  8411. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8412. *ac_space=\ *)
  8413. # `set' does not quote correctly, so add quotes (double-quote
  8414. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8415. sed -n \
  8416. "s/'/'\\\\''/g;
  8417. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8418. ;;
  8419. *)
  8420. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8421. sed -n \
  8422. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8423. ;;
  8424. esac;
  8425. } |
  8426. sed '
  8427. t clear
  8428. : clear
  8429. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8430. t end
  8431. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8432. : end' >>confcache
  8433. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8434. if test -w $cache_file; then
  8435. test "x$cache_file" != "x/dev/null"
  8436. cat confcache >$cache_file
  8437. else
  8438. echo "not updating unwritable cache $cache_file"
  8439. fi
  8440. fi
  8441. rm -f confcache
  8442. # Checks for library functions.
  8443. for ac_header in unistd.h vfork.h
  8444. do
  8445. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8446. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8447. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8448. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8449. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8450. echo $ECHO_N "(cached) $ECHO_C" >&6
  8451. fi
  8452. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8453. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8454. else
  8455. # Is the header compilable?
  8456. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8457. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8458. cat >conftest.$ac_ext <<_ACEOF
  8459. /* confdefs.h. */
  8460. _ACEOF
  8461. cat confdefs.h >>conftest.$ac_ext
  8462. cat >>conftest.$ac_ext <<_ACEOF
  8463. /* end confdefs.h. */
  8464. $ac_includes_default
  8465. #include <$ac_header>
  8466. _ACEOF
  8467. rm -f conftest.$ac_objext
  8468. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8469. (eval $ac_compile) 2>conftest.er1
  8470. ac_status=$?
  8471. grep -v '^ *+' conftest.er1 >conftest.err
  8472. rm -f conftest.er1
  8473. cat conftest.err >&5
  8474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8475. (exit $ac_status); } &&
  8476. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8478. (eval $ac_try) 2>&5
  8479. ac_status=$?
  8480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8481. (exit $ac_status); }; } &&
  8482. { ac_try='test -s conftest.$ac_objext'
  8483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8484. (eval $ac_try) 2>&5
  8485. ac_status=$?
  8486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8487. (exit $ac_status); }; }; then
  8488. ac_header_compiler=yes
  8489. else
  8490. echo "$as_me: failed program was:" >&5
  8491. sed 's/^/| /' conftest.$ac_ext >&5
  8492. ac_header_compiler=no
  8493. fi
  8494. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8495. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8496. echo "${ECHO_T}$ac_header_compiler" >&6
  8497. # Is the header present?
  8498. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8499. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8500. cat >conftest.$ac_ext <<_ACEOF
  8501. /* confdefs.h. */
  8502. _ACEOF
  8503. cat confdefs.h >>conftest.$ac_ext
  8504. cat >>conftest.$ac_ext <<_ACEOF
  8505. /* end confdefs.h. */
  8506. #include <$ac_header>
  8507. _ACEOF
  8508. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8509. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8510. ac_status=$?
  8511. grep -v '^ *+' conftest.er1 >conftest.err
  8512. rm -f conftest.er1
  8513. cat conftest.err >&5
  8514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8515. (exit $ac_status); } >/dev/null; then
  8516. if test -s conftest.err; then
  8517. ac_cpp_err=$ac_c_preproc_warn_flag
  8518. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8519. else
  8520. ac_cpp_err=
  8521. fi
  8522. else
  8523. ac_cpp_err=yes
  8524. fi
  8525. if test -z "$ac_cpp_err"; then
  8526. ac_header_preproc=yes
  8527. else
  8528. echo "$as_me: failed program was:" >&5
  8529. sed 's/^/| /' conftest.$ac_ext >&5
  8530. ac_header_preproc=no
  8531. fi
  8532. rm -f conftest.err conftest.$ac_ext
  8533. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8534. echo "${ECHO_T}$ac_header_preproc" >&6
  8535. # So? What about this header?
  8536. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8537. yes:no: )
  8538. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8539. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8540. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8541. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8542. ac_header_preproc=yes
  8543. ;;
  8544. no:yes:* )
  8545. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8546. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8547. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8548. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8549. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8550. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8551. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8552. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8553. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8554. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8555. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8556. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8557. (
  8558. cat <<\_ASBOX
  8559. ## ------------------------------------------ ##
  8560. ## Report this to the AC_PACKAGE_NAME lists. ##
  8561. ## ------------------------------------------ ##
  8562. _ASBOX
  8563. ) |
  8564. sed "s/^/$as_me: WARNING: /" >&2
  8565. ;;
  8566. esac
  8567. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8568. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8569. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8570. echo $ECHO_N "(cached) $ECHO_C" >&6
  8571. else
  8572. eval "$as_ac_Header=\$ac_header_preproc"
  8573. fi
  8574. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8575. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8576. fi
  8577. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8578. cat >>confdefs.h <<_ACEOF
  8579. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8580. _ACEOF
  8581. fi
  8582. done
  8583. for ac_func in fork vfork
  8584. do
  8585. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8586. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8587. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8588. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8589. echo $ECHO_N "(cached) $ECHO_C" >&6
  8590. else
  8591. cat >conftest.$ac_ext <<_ACEOF
  8592. /* confdefs.h. */
  8593. _ACEOF
  8594. cat confdefs.h >>conftest.$ac_ext
  8595. cat >>conftest.$ac_ext <<_ACEOF
  8596. /* end confdefs.h. */
  8597. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8598. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8599. #define $ac_func innocuous_$ac_func
  8600. /* System header to define __stub macros and hopefully few prototypes,
  8601. which can conflict with char $ac_func (); below.
  8602. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8603. <limits.h> exists even on freestanding compilers. */
  8604. #ifdef __STDC__
  8605. # include <limits.h>
  8606. #else
  8607. # include <assert.h>
  8608. #endif
  8609. #undef $ac_func
  8610. /* Override any gcc2 internal prototype to avoid an error. */
  8611. #ifdef __cplusplus
  8612. extern "C"
  8613. {
  8614. #endif
  8615. /* We use char because int might match the return type of a gcc2
  8616. builtin and then its argument prototype would still apply. */
  8617. char $ac_func ();
  8618. /* The GNU C library defines this for functions which it implements
  8619. to always fail with ENOSYS. Some functions are actually named
  8620. something starting with __ and the normal name is an alias. */
  8621. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8622. choke me
  8623. #else
  8624. char (*f) () = $ac_func;
  8625. #endif
  8626. #ifdef __cplusplus
  8627. }
  8628. #endif
  8629. int
  8630. main ()
  8631. {
  8632. return f != $ac_func;
  8633. ;
  8634. return 0;
  8635. }
  8636. _ACEOF
  8637. rm -f conftest.$ac_objext conftest$ac_exeext
  8638. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8639. (eval $ac_link) 2>conftest.er1
  8640. ac_status=$?
  8641. grep -v '^ *+' conftest.er1 >conftest.err
  8642. rm -f conftest.er1
  8643. cat conftest.err >&5
  8644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8645. (exit $ac_status); } &&
  8646. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8648. (eval $ac_try) 2>&5
  8649. ac_status=$?
  8650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8651. (exit $ac_status); }; } &&
  8652. { ac_try='test -s conftest$ac_exeext'
  8653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8654. (eval $ac_try) 2>&5
  8655. ac_status=$?
  8656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8657. (exit $ac_status); }; }; then
  8658. eval "$as_ac_var=yes"
  8659. else
  8660. echo "$as_me: failed program was:" >&5
  8661. sed 's/^/| /' conftest.$ac_ext >&5
  8662. eval "$as_ac_var=no"
  8663. fi
  8664. rm -f conftest.err conftest.$ac_objext \
  8665. conftest$ac_exeext conftest.$ac_ext
  8666. fi
  8667. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8668. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8669. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8670. cat >>confdefs.h <<_ACEOF
  8671. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8672. _ACEOF
  8673. fi
  8674. done
  8675. if test "x$ac_cv_func_fork" = xyes; then
  8676. echo "$as_me:$LINENO: checking for working fork" >&5
  8677. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8678. if test "${ac_cv_func_fork_works+set}" = set; then
  8679. echo $ECHO_N "(cached) $ECHO_C" >&6
  8680. else
  8681. if test "$cross_compiling" = yes; then
  8682. ac_cv_func_fork_works=cross
  8683. else
  8684. cat >conftest.$ac_ext <<_ACEOF
  8685. /* By Ruediger Kuhlmann. */
  8686. #include <sys/types.h>
  8687. #if HAVE_UNISTD_H
  8688. # include <unistd.h>
  8689. #endif
  8690. /* Some systems only have a dummy stub for fork() */
  8691. int main ()
  8692. {
  8693. if (fork() < 0)
  8694. exit (1);
  8695. exit (0);
  8696. }
  8697. _ACEOF
  8698. rm -f conftest$ac_exeext
  8699. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8700. (eval $ac_link) 2>&5
  8701. ac_status=$?
  8702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8703. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8705. (eval $ac_try) 2>&5
  8706. ac_status=$?
  8707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8708. (exit $ac_status); }; }; then
  8709. ac_cv_func_fork_works=yes
  8710. else
  8711. echo "$as_me: program exited with status $ac_status" >&5
  8712. echo "$as_me: failed program was:" >&5
  8713. sed 's/^/| /' conftest.$ac_ext >&5
  8714. ( exit $ac_status )
  8715. ac_cv_func_fork_works=no
  8716. fi
  8717. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8718. fi
  8719. fi
  8720. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8721. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8722. else
  8723. ac_cv_func_fork_works=$ac_cv_func_fork
  8724. fi
  8725. if test "x$ac_cv_func_fork_works" = xcross; then
  8726. case $host in
  8727. *-*-amigaos* | *-*-msdosdjgpp*)
  8728. # Override, as these systems have only a dummy fork() stub
  8729. ac_cv_func_fork_works=no
  8730. ;;
  8731. *)
  8732. ac_cv_func_fork_works=yes
  8733. ;;
  8734. esac
  8735. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8736. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8737. fi
  8738. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8739. if test "x$ac_cv_func_vfork" = xyes; then
  8740. echo "$as_me:$LINENO: checking for working vfork" >&5
  8741. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8742. if test "${ac_cv_func_vfork_works+set}" = set; then
  8743. echo $ECHO_N "(cached) $ECHO_C" >&6
  8744. else
  8745. if test "$cross_compiling" = yes; then
  8746. ac_cv_func_vfork_works=cross
  8747. else
  8748. cat >conftest.$ac_ext <<_ACEOF
  8749. /* confdefs.h. */
  8750. _ACEOF
  8751. cat confdefs.h >>conftest.$ac_ext
  8752. cat >>conftest.$ac_ext <<_ACEOF
  8753. /* end confdefs.h. */
  8754. /* Thanks to Paul Eggert for this test. */
  8755. #include <stdio.h>
  8756. #include <stdlib.h>
  8757. #include <sys/types.h>
  8758. #include <sys/stat.h>
  8759. #include <sys/wait.h>
  8760. #if HAVE_UNISTD_H
  8761. # include <unistd.h>
  8762. #endif
  8763. #if HAVE_VFORK_H
  8764. # include <vfork.h>
  8765. #endif
  8766. /* On some sparc systems, changes by the child to local and incoming
  8767. argument registers are propagated back to the parent. The compiler
  8768. is told about this with #include <vfork.h>, but some compilers
  8769. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8770. static variable whose address is put into a register that is
  8771. clobbered by the vfork. */
  8772. static void
  8773. #ifdef __cplusplus
  8774. sparc_address_test (int arg)
  8775. # else
  8776. sparc_address_test (arg) int arg;
  8777. #endif
  8778. {
  8779. static pid_t child;
  8780. if (!child) {
  8781. child = vfork ();
  8782. if (child < 0) {
  8783. perror ("vfork");
  8784. _exit(2);
  8785. }
  8786. if (!child) {
  8787. arg = getpid();
  8788. write(-1, "", 0);
  8789. _exit (arg);
  8790. }
  8791. }
  8792. }
  8793. int
  8794. main ()
  8795. {
  8796. pid_t parent = getpid ();
  8797. pid_t child;
  8798. sparc_address_test (0);
  8799. child = vfork ();
  8800. if (child == 0) {
  8801. /* Here is another test for sparc vfork register problems. This
  8802. test uses lots of local variables, at least as many local
  8803. variables as main has allocated so far including compiler
  8804. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8805. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8806. reuse the register of parent for one of the local variables,
  8807. since it will think that parent can't possibly be used any more
  8808. in this routine. Assigning to the local variable will thus
  8809. munge parent in the parent process. */
  8810. pid_t
  8811. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8812. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8813. /* Convince the compiler that p..p7 are live; otherwise, it might
  8814. use the same hardware register for all 8 local variables. */
  8815. if (p != p1 || p != p2 || p != p3 || p != p4
  8816. || p != p5 || p != p6 || p != p7)
  8817. _exit(1);
  8818. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8819. from child file descriptors. If the child closes a descriptor
  8820. before it execs or exits, this munges the parent's descriptor
  8821. as well. Test for this by closing stdout in the child. */
  8822. _exit(close(fileno(stdout)) != 0);
  8823. } else {
  8824. int status;
  8825. struct stat st;
  8826. while (wait(&status) != child)
  8827. ;
  8828. exit(
  8829. /* Was there some problem with vforking? */
  8830. child < 0
  8831. /* Did the child fail? (This shouldn't happen.) */
  8832. || status
  8833. /* Did the vfork/compiler bug occur? */
  8834. || parent != getpid()
  8835. /* Did the file descriptor bug occur? */
  8836. || fstat(fileno(stdout), &st) != 0
  8837. );
  8838. }
  8839. }
  8840. _ACEOF
  8841. rm -f conftest$ac_exeext
  8842. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8843. (eval $ac_link) 2>&5
  8844. ac_status=$?
  8845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8846. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8848. (eval $ac_try) 2>&5
  8849. ac_status=$?
  8850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8851. (exit $ac_status); }; }; then
  8852. ac_cv_func_vfork_works=yes
  8853. else
  8854. echo "$as_me: program exited with status $ac_status" >&5
  8855. echo "$as_me: failed program was:" >&5
  8856. sed 's/^/| /' conftest.$ac_ext >&5
  8857. ( exit $ac_status )
  8858. ac_cv_func_vfork_works=no
  8859. fi
  8860. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8861. fi
  8862. fi
  8863. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8864. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8865. fi;
  8866. if test "x$ac_cv_func_fork_works" = xcross; then
  8867. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8868. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8869. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8870. fi
  8871. if test "x$ac_cv_func_vfork_works" = xyes; then
  8872. cat >>confdefs.h <<\_ACEOF
  8873. #define HAVE_WORKING_VFORK 1
  8874. _ACEOF
  8875. else
  8876. cat >>confdefs.h <<\_ACEOF
  8877. #define vfork fork
  8878. _ACEOF
  8879. fi
  8880. if test "x$ac_cv_func_fork_works" = xyes; then
  8881. cat >>confdefs.h <<\_ACEOF
  8882. #define HAVE_WORKING_FORK 1
  8883. _ACEOF
  8884. fi
  8885. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8886. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8887. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8888. echo $ECHO_N "(cached) $ECHO_C" >&6
  8889. else
  8890. rm -f conftest.sym conftest.file
  8891. echo >conftest.file
  8892. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8893. if test "$cross_compiling" = yes; then
  8894. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8895. else
  8896. cat >conftest.$ac_ext <<_ACEOF
  8897. /* confdefs.h. */
  8898. _ACEOF
  8899. cat confdefs.h >>conftest.$ac_ext
  8900. cat >>conftest.$ac_ext <<_ACEOF
  8901. /* end confdefs.h. */
  8902. $ac_includes_default
  8903. int
  8904. main ()
  8905. {
  8906. struct stat sbuf;
  8907. /* Linux will dereference the symlink and fail.
  8908. That is better in the sense that it means we will not
  8909. have to compile and use the lstat wrapper. */
  8910. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8911. ;
  8912. return 0;
  8913. }
  8914. _ACEOF
  8915. rm -f conftest$ac_exeext
  8916. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8917. (eval $ac_link) 2>&5
  8918. ac_status=$?
  8919. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8920. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8921. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8922. (eval $ac_try) 2>&5
  8923. ac_status=$?
  8924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8925. (exit $ac_status); }; }; then
  8926. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8927. else
  8928. echo "$as_me: program exited with status $ac_status" >&5
  8929. echo "$as_me: failed program was:" >&5
  8930. sed 's/^/| /' conftest.$ac_ext >&5
  8931. ( exit $ac_status )
  8932. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8933. fi
  8934. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8935. fi
  8936. else
  8937. # If the `ln -s' command failed, then we probably don't even
  8938. # have an lstat function.
  8939. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8940. fi
  8941. rm -f conftest.sym conftest.file
  8942. fi
  8943. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8944. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8945. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8946. cat >>confdefs.h <<_ACEOF
  8947. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8948. _ACEOF
  8949. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8950. case $LIBOBJS in
  8951. "lstat.$ac_objext" | \
  8952. *" lstat.$ac_objext" | \
  8953. "lstat.$ac_objext "* | \
  8954. *" lstat.$ac_objext "* ) ;;
  8955. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8956. esac
  8957. fi
  8958. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8959. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8960. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8961. echo $ECHO_N "(cached) $ECHO_C" >&6
  8962. else
  8963. if test "$cross_compiling" = yes; then
  8964. ac_cv_func_lstat_empty_string_bug=yes
  8965. else
  8966. cat >conftest.$ac_ext <<_ACEOF
  8967. /* confdefs.h. */
  8968. _ACEOF
  8969. cat confdefs.h >>conftest.$ac_ext
  8970. cat >>conftest.$ac_ext <<_ACEOF
  8971. /* end confdefs.h. */
  8972. $ac_includes_default
  8973. int
  8974. main ()
  8975. {
  8976. struct stat sbuf;
  8977. exit (lstat ("", &sbuf) ? 1 : 0);
  8978. ;
  8979. return 0;
  8980. }
  8981. _ACEOF
  8982. rm -f conftest$ac_exeext
  8983. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8984. (eval $ac_link) 2>&5
  8985. ac_status=$?
  8986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8987. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8989. (eval $ac_try) 2>&5
  8990. ac_status=$?
  8991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8992. (exit $ac_status); }; }; then
  8993. ac_cv_func_lstat_empty_string_bug=yes
  8994. else
  8995. echo "$as_me: program exited with status $ac_status" >&5
  8996. echo "$as_me: failed program was:" >&5
  8997. sed 's/^/| /' conftest.$ac_ext >&5
  8998. ( exit $ac_status )
  8999. ac_cv_func_lstat_empty_string_bug=no
  9000. fi
  9001. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9002. fi
  9003. fi
  9004. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9005. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  9006. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9007. case $LIBOBJS in
  9008. "lstat.$ac_objext" | \
  9009. *" lstat.$ac_objext" | \
  9010. "lstat.$ac_objext "* | \
  9011. *" lstat.$ac_objext "* ) ;;
  9012. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9013. esac
  9014. cat >>confdefs.h <<_ACEOF
  9015. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9016. _ACEOF
  9017. fi
  9018. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9019. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9020. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9021. echo $ECHO_N "(cached) $ECHO_C" >&6
  9022. else
  9023. rm -f conftest.sym conftest.file
  9024. echo >conftest.file
  9025. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9026. if test "$cross_compiling" = yes; then
  9027. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9028. else
  9029. cat >conftest.$ac_ext <<_ACEOF
  9030. /* confdefs.h. */
  9031. _ACEOF
  9032. cat confdefs.h >>conftest.$ac_ext
  9033. cat >>conftest.$ac_ext <<_ACEOF
  9034. /* end confdefs.h. */
  9035. $ac_includes_default
  9036. int
  9037. main ()
  9038. {
  9039. struct stat sbuf;
  9040. /* Linux will dereference the symlink and fail.
  9041. That is better in the sense that it means we will not
  9042. have to compile and use the lstat wrapper. */
  9043. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9044. ;
  9045. return 0;
  9046. }
  9047. _ACEOF
  9048. rm -f conftest$ac_exeext
  9049. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9050. (eval $ac_link) 2>&5
  9051. ac_status=$?
  9052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9053. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9055. (eval $ac_try) 2>&5
  9056. ac_status=$?
  9057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9058. (exit $ac_status); }; }; then
  9059. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9060. else
  9061. echo "$as_me: program exited with status $ac_status" >&5
  9062. echo "$as_me: failed program was:" >&5
  9063. sed 's/^/| /' conftest.$ac_ext >&5
  9064. ( exit $ac_status )
  9065. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9066. fi
  9067. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9068. fi
  9069. else
  9070. # If the `ln -s' command failed, then we probably don't even
  9071. # have an lstat function.
  9072. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9073. fi
  9074. rm -f conftest.sym conftest.file
  9075. fi
  9076. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9077. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9078. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9079. cat >>confdefs.h <<_ACEOF
  9080. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9081. _ACEOF
  9082. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9083. case $LIBOBJS in
  9084. "lstat.$ac_objext" | \
  9085. *" lstat.$ac_objext" | \
  9086. "lstat.$ac_objext "* | \
  9087. *" lstat.$ac_objext "* ) ;;
  9088. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9089. esac
  9090. fi
  9091. for ac_header in stdlib.h
  9092. do
  9093. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9094. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9095. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9096. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9097. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9098. echo $ECHO_N "(cached) $ECHO_C" >&6
  9099. fi
  9100. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9101. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9102. else
  9103. # Is the header compilable?
  9104. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9105. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9106. cat >conftest.$ac_ext <<_ACEOF
  9107. /* confdefs.h. */
  9108. _ACEOF
  9109. cat confdefs.h >>conftest.$ac_ext
  9110. cat >>conftest.$ac_ext <<_ACEOF
  9111. /* end confdefs.h. */
  9112. $ac_includes_default
  9113. #include <$ac_header>
  9114. _ACEOF
  9115. rm -f conftest.$ac_objext
  9116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9117. (eval $ac_compile) 2>conftest.er1
  9118. ac_status=$?
  9119. grep -v '^ *+' conftest.er1 >conftest.err
  9120. rm -f conftest.er1
  9121. cat conftest.err >&5
  9122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9123. (exit $ac_status); } &&
  9124. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9126. (eval $ac_try) 2>&5
  9127. ac_status=$?
  9128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129. (exit $ac_status); }; } &&
  9130. { ac_try='test -s conftest.$ac_objext'
  9131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9132. (eval $ac_try) 2>&5
  9133. ac_status=$?
  9134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9135. (exit $ac_status); }; }; then
  9136. ac_header_compiler=yes
  9137. else
  9138. echo "$as_me: failed program was:" >&5
  9139. sed 's/^/| /' conftest.$ac_ext >&5
  9140. ac_header_compiler=no
  9141. fi
  9142. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9143. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9144. echo "${ECHO_T}$ac_header_compiler" >&6
  9145. # Is the header present?
  9146. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9147. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9148. cat >conftest.$ac_ext <<_ACEOF
  9149. /* confdefs.h. */
  9150. _ACEOF
  9151. cat confdefs.h >>conftest.$ac_ext
  9152. cat >>conftest.$ac_ext <<_ACEOF
  9153. /* end confdefs.h. */
  9154. #include <$ac_header>
  9155. _ACEOF
  9156. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9157. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9158. ac_status=$?
  9159. grep -v '^ *+' conftest.er1 >conftest.err
  9160. rm -f conftest.er1
  9161. cat conftest.err >&5
  9162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9163. (exit $ac_status); } >/dev/null; then
  9164. if test -s conftest.err; then
  9165. ac_cpp_err=$ac_c_preproc_warn_flag
  9166. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9167. else
  9168. ac_cpp_err=
  9169. fi
  9170. else
  9171. ac_cpp_err=yes
  9172. fi
  9173. if test -z "$ac_cpp_err"; then
  9174. ac_header_preproc=yes
  9175. else
  9176. echo "$as_me: failed program was:" >&5
  9177. sed 's/^/| /' conftest.$ac_ext >&5
  9178. ac_header_preproc=no
  9179. fi
  9180. rm -f conftest.err conftest.$ac_ext
  9181. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9182. echo "${ECHO_T}$ac_header_preproc" >&6
  9183. # So? What about this header?
  9184. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9185. yes:no: )
  9186. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9187. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9188. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9189. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9190. ac_header_preproc=yes
  9191. ;;
  9192. no:yes:* )
  9193. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9194. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9195. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9196. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9197. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9198. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9199. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9200. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9201. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9202. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9203. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9204. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9205. (
  9206. cat <<\_ASBOX
  9207. ## ------------------------------------------ ##
  9208. ## Report this to the AC_PACKAGE_NAME lists. ##
  9209. ## ------------------------------------------ ##
  9210. _ASBOX
  9211. ) |
  9212. sed "s/^/$as_me: WARNING: /" >&2
  9213. ;;
  9214. esac
  9215. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9216. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9217. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9218. echo $ECHO_N "(cached) $ECHO_C" >&6
  9219. else
  9220. eval "$as_ac_Header=\$ac_header_preproc"
  9221. fi
  9222. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9223. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9224. fi
  9225. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9226. cat >>confdefs.h <<_ACEOF
  9227. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9228. _ACEOF
  9229. fi
  9230. done
  9231. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9232. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9233. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9234. echo $ECHO_N "(cached) $ECHO_C" >&6
  9235. else
  9236. if test "$cross_compiling" = yes; then
  9237. ac_cv_func_malloc_0_nonnull=no
  9238. else
  9239. cat >conftest.$ac_ext <<_ACEOF
  9240. /* confdefs.h. */
  9241. _ACEOF
  9242. cat confdefs.h >>conftest.$ac_ext
  9243. cat >>conftest.$ac_ext <<_ACEOF
  9244. /* end confdefs.h. */
  9245. #if STDC_HEADERS || HAVE_STDLIB_H
  9246. # include <stdlib.h>
  9247. #else
  9248. char *malloc ();
  9249. #endif
  9250. int
  9251. main ()
  9252. {
  9253. exit (malloc (0) ? 0 : 1);
  9254. ;
  9255. return 0;
  9256. }
  9257. _ACEOF
  9258. rm -f conftest$ac_exeext
  9259. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9260. (eval $ac_link) 2>&5
  9261. ac_status=$?
  9262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9263. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9265. (eval $ac_try) 2>&5
  9266. ac_status=$?
  9267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9268. (exit $ac_status); }; }; then
  9269. ac_cv_func_malloc_0_nonnull=yes
  9270. else
  9271. echo "$as_me: program exited with status $ac_status" >&5
  9272. echo "$as_me: failed program was:" >&5
  9273. sed 's/^/| /' conftest.$ac_ext >&5
  9274. ( exit $ac_status )
  9275. ac_cv_func_malloc_0_nonnull=no
  9276. fi
  9277. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9278. fi
  9279. fi
  9280. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9281. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9282. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9283. cat >>confdefs.h <<\_ACEOF
  9284. #define HAVE_MALLOC 1
  9285. _ACEOF
  9286. else
  9287. cat >>confdefs.h <<\_ACEOF
  9288. #define HAVE_MALLOC 0
  9289. _ACEOF
  9290. case $LIBOBJS in
  9291. "malloc.$ac_objext" | \
  9292. *" malloc.$ac_objext" | \
  9293. "malloc.$ac_objext "* | \
  9294. *" malloc.$ac_objext "* ) ;;
  9295. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9296. esac
  9297. cat >>confdefs.h <<\_ACEOF
  9298. #define malloc rpl_malloc
  9299. _ACEOF
  9300. fi
  9301. for ac_header in stdlib.h sys/time.h unistd.h
  9302. do
  9303. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9304. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9305. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9306. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9307. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9308. echo $ECHO_N "(cached) $ECHO_C" >&6
  9309. fi
  9310. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9311. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9312. else
  9313. # Is the header compilable?
  9314. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9315. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9316. cat >conftest.$ac_ext <<_ACEOF
  9317. /* confdefs.h. */
  9318. _ACEOF
  9319. cat confdefs.h >>conftest.$ac_ext
  9320. cat >>conftest.$ac_ext <<_ACEOF
  9321. /* end confdefs.h. */
  9322. $ac_includes_default
  9323. #include <$ac_header>
  9324. _ACEOF
  9325. rm -f conftest.$ac_objext
  9326. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9327. (eval $ac_compile) 2>conftest.er1
  9328. ac_status=$?
  9329. grep -v '^ *+' conftest.er1 >conftest.err
  9330. rm -f conftest.er1
  9331. cat conftest.err >&5
  9332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9333. (exit $ac_status); } &&
  9334. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9336. (eval $ac_try) 2>&5
  9337. ac_status=$?
  9338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9339. (exit $ac_status); }; } &&
  9340. { ac_try='test -s conftest.$ac_objext'
  9341. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9342. (eval $ac_try) 2>&5
  9343. ac_status=$?
  9344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9345. (exit $ac_status); }; }; then
  9346. ac_header_compiler=yes
  9347. else
  9348. echo "$as_me: failed program was:" >&5
  9349. sed 's/^/| /' conftest.$ac_ext >&5
  9350. ac_header_compiler=no
  9351. fi
  9352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9353. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9354. echo "${ECHO_T}$ac_header_compiler" >&6
  9355. # Is the header present?
  9356. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9357. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9358. cat >conftest.$ac_ext <<_ACEOF
  9359. /* confdefs.h. */
  9360. _ACEOF
  9361. cat confdefs.h >>conftest.$ac_ext
  9362. cat >>conftest.$ac_ext <<_ACEOF
  9363. /* end confdefs.h. */
  9364. #include <$ac_header>
  9365. _ACEOF
  9366. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9367. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9368. ac_status=$?
  9369. grep -v '^ *+' conftest.er1 >conftest.err
  9370. rm -f conftest.er1
  9371. cat conftest.err >&5
  9372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9373. (exit $ac_status); } >/dev/null; then
  9374. if test -s conftest.err; then
  9375. ac_cpp_err=$ac_c_preproc_warn_flag
  9376. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9377. else
  9378. ac_cpp_err=
  9379. fi
  9380. else
  9381. ac_cpp_err=yes
  9382. fi
  9383. if test -z "$ac_cpp_err"; then
  9384. ac_header_preproc=yes
  9385. else
  9386. echo "$as_me: failed program was:" >&5
  9387. sed 's/^/| /' conftest.$ac_ext >&5
  9388. ac_header_preproc=no
  9389. fi
  9390. rm -f conftest.err conftest.$ac_ext
  9391. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9392. echo "${ECHO_T}$ac_header_preproc" >&6
  9393. # So? What about this header?
  9394. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9395. yes:no: )
  9396. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9397. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9398. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9399. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9400. ac_header_preproc=yes
  9401. ;;
  9402. no:yes:* )
  9403. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9404. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9405. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9406. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9407. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9408. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9409. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9410. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9411. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9412. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9413. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9414. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9415. (
  9416. cat <<\_ASBOX
  9417. ## ------------------------------------------ ##
  9418. ## Report this to the AC_PACKAGE_NAME lists. ##
  9419. ## ------------------------------------------ ##
  9420. _ASBOX
  9421. ) |
  9422. sed "s/^/$as_me: WARNING: /" >&2
  9423. ;;
  9424. esac
  9425. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9426. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9427. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9428. echo $ECHO_N "(cached) $ECHO_C" >&6
  9429. else
  9430. eval "$as_ac_Header=\$ac_header_preproc"
  9431. fi
  9432. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9433. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9434. fi
  9435. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9436. cat >>confdefs.h <<_ACEOF
  9437. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9438. _ACEOF
  9439. fi
  9440. done
  9441. for ac_func in alarm
  9442. do
  9443. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9444. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9445. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9446. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9447. echo $ECHO_N "(cached) $ECHO_C" >&6
  9448. else
  9449. cat >conftest.$ac_ext <<_ACEOF
  9450. /* confdefs.h. */
  9451. _ACEOF
  9452. cat confdefs.h >>conftest.$ac_ext
  9453. cat >>conftest.$ac_ext <<_ACEOF
  9454. /* end confdefs.h. */
  9455. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9456. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9457. #define $ac_func innocuous_$ac_func
  9458. /* System header to define __stub macros and hopefully few prototypes,
  9459. which can conflict with char $ac_func (); below.
  9460. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9461. <limits.h> exists even on freestanding compilers. */
  9462. #ifdef __STDC__
  9463. # include <limits.h>
  9464. #else
  9465. # include <assert.h>
  9466. #endif
  9467. #undef $ac_func
  9468. /* Override any gcc2 internal prototype to avoid an error. */
  9469. #ifdef __cplusplus
  9470. extern "C"
  9471. {
  9472. #endif
  9473. /* We use char because int might match the return type of a gcc2
  9474. builtin and then its argument prototype would still apply. */
  9475. char $ac_func ();
  9476. /* The GNU C library defines this for functions which it implements
  9477. to always fail with ENOSYS. Some functions are actually named
  9478. something starting with __ and the normal name is an alias. */
  9479. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9480. choke me
  9481. #else
  9482. char (*f) () = $ac_func;
  9483. #endif
  9484. #ifdef __cplusplus
  9485. }
  9486. #endif
  9487. int
  9488. main ()
  9489. {
  9490. return f != $ac_func;
  9491. ;
  9492. return 0;
  9493. }
  9494. _ACEOF
  9495. rm -f conftest.$ac_objext conftest$ac_exeext
  9496. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9497. (eval $ac_link) 2>conftest.er1
  9498. ac_status=$?
  9499. grep -v '^ *+' conftest.er1 >conftest.err
  9500. rm -f conftest.er1
  9501. cat conftest.err >&5
  9502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9503. (exit $ac_status); } &&
  9504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9506. (eval $ac_try) 2>&5
  9507. ac_status=$?
  9508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9509. (exit $ac_status); }; } &&
  9510. { ac_try='test -s conftest$ac_exeext'
  9511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9512. (eval $ac_try) 2>&5
  9513. ac_status=$?
  9514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); }; }; then
  9516. eval "$as_ac_var=yes"
  9517. else
  9518. echo "$as_me: failed program was:" >&5
  9519. sed 's/^/| /' conftest.$ac_ext >&5
  9520. eval "$as_ac_var=no"
  9521. fi
  9522. rm -f conftest.err conftest.$ac_objext \
  9523. conftest$ac_exeext conftest.$ac_ext
  9524. fi
  9525. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9526. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9527. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9528. cat >>confdefs.h <<_ACEOF
  9529. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9530. _ACEOF
  9531. fi
  9532. done
  9533. echo "$as_me:$LINENO: checking for working mktime" >&5
  9534. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9535. if test "${ac_cv_func_working_mktime+set}" = set; then
  9536. echo $ECHO_N "(cached) $ECHO_C" >&6
  9537. else
  9538. if test "$cross_compiling" = yes; then
  9539. ac_cv_func_working_mktime=no
  9540. else
  9541. cat >conftest.$ac_ext <<_ACEOF
  9542. /* confdefs.h. */
  9543. _ACEOF
  9544. cat confdefs.h >>conftest.$ac_ext
  9545. cat >>conftest.$ac_ext <<_ACEOF
  9546. /* end confdefs.h. */
  9547. /* Test program from Paul Eggert and Tony Leneis. */
  9548. #if TIME_WITH_SYS_TIME
  9549. # include <sys/time.h>
  9550. # include <time.h>
  9551. #else
  9552. # if HAVE_SYS_TIME_H
  9553. # include <sys/time.h>
  9554. # else
  9555. # include <time.h>
  9556. # endif
  9557. #endif
  9558. #if HAVE_STDLIB_H
  9559. # include <stdlib.h>
  9560. #endif
  9561. #if HAVE_UNISTD_H
  9562. # include <unistd.h>
  9563. #endif
  9564. #if !HAVE_ALARM
  9565. # define alarm(X) /* empty */
  9566. #endif
  9567. /* Work around redefinition to rpl_putenv by other config tests. */
  9568. #undef putenv
  9569. static time_t time_t_max;
  9570. static time_t time_t_min;
  9571. /* Values we'll use to set the TZ environment variable. */
  9572. static char *tz_strings[] = {
  9573. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9574. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9575. };
  9576. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9577. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9578. Based on a problem report from Andreas Jaeger. */
  9579. static void
  9580. spring_forward_gap ()
  9581. {
  9582. /* glibc (up to about 1998-10-07) failed this test. */
  9583. struct tm tm;
  9584. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9585. instead of "TZ=America/Vancouver" in order to detect the bug even
  9586. on systems that don't support the Olson extension, or don't have the
  9587. full zoneinfo tables installed. */
  9588. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9589. tm.tm_year = 98;
  9590. tm.tm_mon = 3;
  9591. tm.tm_mday = 5;
  9592. tm.tm_hour = 2;
  9593. tm.tm_min = 0;
  9594. tm.tm_sec = 0;
  9595. tm.tm_isdst = -1;
  9596. if (mktime (&tm) == (time_t)-1)
  9597. exit (1);
  9598. }
  9599. static void
  9600. mktime_test1 (now)
  9601. time_t now;
  9602. {
  9603. struct tm *lt;
  9604. if ((lt = localtime (&now)) && mktime (lt) != now)
  9605. exit (1);
  9606. }
  9607. static void
  9608. mktime_test (now)
  9609. time_t now;
  9610. {
  9611. mktime_test1 (now);
  9612. mktime_test1 ((time_t) (time_t_max - now));
  9613. mktime_test1 ((time_t) (time_t_min + now));
  9614. }
  9615. static void
  9616. irix_6_4_bug ()
  9617. {
  9618. /* Based on code from Ariel Faigon. */
  9619. struct tm tm;
  9620. tm.tm_year = 96;
  9621. tm.tm_mon = 3;
  9622. tm.tm_mday = 0;
  9623. tm.tm_hour = 0;
  9624. tm.tm_min = 0;
  9625. tm.tm_sec = 0;
  9626. tm.tm_isdst = -1;
  9627. mktime (&tm);
  9628. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9629. exit (1);
  9630. }
  9631. static void
  9632. bigtime_test (j)
  9633. int j;
  9634. {
  9635. struct tm tm;
  9636. time_t now;
  9637. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9638. now = mktime (&tm);
  9639. if (now != (time_t) -1)
  9640. {
  9641. struct tm *lt = localtime (&now);
  9642. if (! (lt
  9643. && lt->tm_year == tm.tm_year
  9644. && lt->tm_mon == tm.tm_mon
  9645. && lt->tm_mday == tm.tm_mday
  9646. && lt->tm_hour == tm.tm_hour
  9647. && lt->tm_min == tm.tm_min
  9648. && lt->tm_sec == tm.tm_sec
  9649. && lt->tm_yday == tm.tm_yday
  9650. && lt->tm_wday == tm.tm_wday
  9651. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9652. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9653. exit (1);
  9654. }
  9655. }
  9656. int
  9657. main ()
  9658. {
  9659. time_t t, delta;
  9660. int i, j;
  9661. /* This test makes some buggy mktime implementations loop.
  9662. Give up after 60 seconds; a mktime slower than that
  9663. isn't worth using anyway. */
  9664. alarm (60);
  9665. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9666. continue;
  9667. time_t_max--;
  9668. if ((time_t) -1 < 0)
  9669. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9670. continue;
  9671. delta = time_t_max / 997; /* a suitable prime number */
  9672. for (i = 0; i < N_STRINGS; i++)
  9673. {
  9674. if (tz_strings[i])
  9675. putenv (tz_strings[i]);
  9676. for (t = 0; t <= time_t_max - delta; t += delta)
  9677. mktime_test (t);
  9678. mktime_test ((time_t) 1);
  9679. mktime_test ((time_t) (60 * 60));
  9680. mktime_test ((time_t) (60 * 60 * 24));
  9681. for (j = 1; 0 < j; j *= 2)
  9682. bigtime_test (j);
  9683. bigtime_test (j - 1);
  9684. }
  9685. irix_6_4_bug ();
  9686. spring_forward_gap ();
  9687. exit (0);
  9688. }
  9689. _ACEOF
  9690. rm -f conftest$ac_exeext
  9691. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9692. (eval $ac_link) 2>&5
  9693. ac_status=$?
  9694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9695. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9697. (eval $ac_try) 2>&5
  9698. ac_status=$?
  9699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9700. (exit $ac_status); }; }; then
  9701. ac_cv_func_working_mktime=yes
  9702. else
  9703. echo "$as_me: program exited with status $ac_status" >&5
  9704. echo "$as_me: failed program was:" >&5
  9705. sed 's/^/| /' conftest.$ac_ext >&5
  9706. ( exit $ac_status )
  9707. ac_cv_func_working_mktime=no
  9708. fi
  9709. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9710. fi
  9711. fi
  9712. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9713. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9714. if test $ac_cv_func_working_mktime = no; then
  9715. case $LIBOBJS in
  9716. "mktime.$ac_objext" | \
  9717. *" mktime.$ac_objext" | \
  9718. "mktime.$ac_objext "* | \
  9719. *" mktime.$ac_objext "* ) ;;
  9720. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9721. esac
  9722. fi
  9723. for ac_header in stdlib.h unistd.h
  9724. do
  9725. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9726. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9727. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9728. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9729. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9730. echo $ECHO_N "(cached) $ECHO_C" >&6
  9731. fi
  9732. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9733. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9734. else
  9735. # Is the header compilable?
  9736. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9737. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9738. cat >conftest.$ac_ext <<_ACEOF
  9739. /* confdefs.h. */
  9740. _ACEOF
  9741. cat confdefs.h >>conftest.$ac_ext
  9742. cat >>conftest.$ac_ext <<_ACEOF
  9743. /* end confdefs.h. */
  9744. $ac_includes_default
  9745. #include <$ac_header>
  9746. _ACEOF
  9747. rm -f conftest.$ac_objext
  9748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9749. (eval $ac_compile) 2>conftest.er1
  9750. ac_status=$?
  9751. grep -v '^ *+' conftest.er1 >conftest.err
  9752. rm -f conftest.er1
  9753. cat conftest.err >&5
  9754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9755. (exit $ac_status); } &&
  9756. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9758. (eval $ac_try) 2>&5
  9759. ac_status=$?
  9760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9761. (exit $ac_status); }; } &&
  9762. { ac_try='test -s conftest.$ac_objext'
  9763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9764. (eval $ac_try) 2>&5
  9765. ac_status=$?
  9766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9767. (exit $ac_status); }; }; then
  9768. ac_header_compiler=yes
  9769. else
  9770. echo "$as_me: failed program was:" >&5
  9771. sed 's/^/| /' conftest.$ac_ext >&5
  9772. ac_header_compiler=no
  9773. fi
  9774. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9775. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9776. echo "${ECHO_T}$ac_header_compiler" >&6
  9777. # Is the header present?
  9778. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9779. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9780. cat >conftest.$ac_ext <<_ACEOF
  9781. /* confdefs.h. */
  9782. _ACEOF
  9783. cat confdefs.h >>conftest.$ac_ext
  9784. cat >>conftest.$ac_ext <<_ACEOF
  9785. /* end confdefs.h. */
  9786. #include <$ac_header>
  9787. _ACEOF
  9788. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9789. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9790. ac_status=$?
  9791. grep -v '^ *+' conftest.er1 >conftest.err
  9792. rm -f conftest.er1
  9793. cat conftest.err >&5
  9794. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9795. (exit $ac_status); } >/dev/null; then
  9796. if test -s conftest.err; then
  9797. ac_cpp_err=$ac_c_preproc_warn_flag
  9798. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9799. else
  9800. ac_cpp_err=
  9801. fi
  9802. else
  9803. ac_cpp_err=yes
  9804. fi
  9805. if test -z "$ac_cpp_err"; then
  9806. ac_header_preproc=yes
  9807. else
  9808. echo "$as_me: failed program was:" >&5
  9809. sed 's/^/| /' conftest.$ac_ext >&5
  9810. ac_header_preproc=no
  9811. fi
  9812. rm -f conftest.err conftest.$ac_ext
  9813. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9814. echo "${ECHO_T}$ac_header_preproc" >&6
  9815. # So? What about this header?
  9816. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9817. yes:no: )
  9818. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9819. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9820. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9821. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9822. ac_header_preproc=yes
  9823. ;;
  9824. no:yes:* )
  9825. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9826. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9827. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9828. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9829. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9830. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9831. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9832. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9833. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9834. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9835. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9836. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9837. (
  9838. cat <<\_ASBOX
  9839. ## ------------------------------------------ ##
  9840. ## Report this to the AC_PACKAGE_NAME lists. ##
  9841. ## ------------------------------------------ ##
  9842. _ASBOX
  9843. ) |
  9844. sed "s/^/$as_me: WARNING: /" >&2
  9845. ;;
  9846. esac
  9847. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9848. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9849. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9850. echo $ECHO_N "(cached) $ECHO_C" >&6
  9851. else
  9852. eval "$as_ac_Header=\$ac_header_preproc"
  9853. fi
  9854. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9855. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9856. fi
  9857. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9858. cat >>confdefs.h <<_ACEOF
  9859. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9860. _ACEOF
  9861. fi
  9862. done
  9863. for ac_func in getpagesize
  9864. do
  9865. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9866. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9867. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9868. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9869. echo $ECHO_N "(cached) $ECHO_C" >&6
  9870. else
  9871. cat >conftest.$ac_ext <<_ACEOF
  9872. /* confdefs.h. */
  9873. _ACEOF
  9874. cat confdefs.h >>conftest.$ac_ext
  9875. cat >>conftest.$ac_ext <<_ACEOF
  9876. /* end confdefs.h. */
  9877. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9878. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9879. #define $ac_func innocuous_$ac_func
  9880. /* System header to define __stub macros and hopefully few prototypes,
  9881. which can conflict with char $ac_func (); below.
  9882. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9883. <limits.h> exists even on freestanding compilers. */
  9884. #ifdef __STDC__
  9885. # include <limits.h>
  9886. #else
  9887. # include <assert.h>
  9888. #endif
  9889. #undef $ac_func
  9890. /* Override any gcc2 internal prototype to avoid an error. */
  9891. #ifdef __cplusplus
  9892. extern "C"
  9893. {
  9894. #endif
  9895. /* We use char because int might match the return type of a gcc2
  9896. builtin and then its argument prototype would still apply. */
  9897. char $ac_func ();
  9898. /* The GNU C library defines this for functions which it implements
  9899. to always fail with ENOSYS. Some functions are actually named
  9900. something starting with __ and the normal name is an alias. */
  9901. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9902. choke me
  9903. #else
  9904. char (*f) () = $ac_func;
  9905. #endif
  9906. #ifdef __cplusplus
  9907. }
  9908. #endif
  9909. int
  9910. main ()
  9911. {
  9912. return f != $ac_func;
  9913. ;
  9914. return 0;
  9915. }
  9916. _ACEOF
  9917. rm -f conftest.$ac_objext conftest$ac_exeext
  9918. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9919. (eval $ac_link) 2>conftest.er1
  9920. ac_status=$?
  9921. grep -v '^ *+' conftest.er1 >conftest.err
  9922. rm -f conftest.er1
  9923. cat conftest.err >&5
  9924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9925. (exit $ac_status); } &&
  9926. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9928. (eval $ac_try) 2>&5
  9929. ac_status=$?
  9930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9931. (exit $ac_status); }; } &&
  9932. { ac_try='test -s conftest$ac_exeext'
  9933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9934. (eval $ac_try) 2>&5
  9935. ac_status=$?
  9936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9937. (exit $ac_status); }; }; then
  9938. eval "$as_ac_var=yes"
  9939. else
  9940. echo "$as_me: failed program was:" >&5
  9941. sed 's/^/| /' conftest.$ac_ext >&5
  9942. eval "$as_ac_var=no"
  9943. fi
  9944. rm -f conftest.err conftest.$ac_objext \
  9945. conftest$ac_exeext conftest.$ac_ext
  9946. fi
  9947. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9948. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9949. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9950. cat >>confdefs.h <<_ACEOF
  9951. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9952. _ACEOF
  9953. fi
  9954. done
  9955. echo "$as_me:$LINENO: checking for working mmap" >&5
  9956. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9957. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9958. echo $ECHO_N "(cached) $ECHO_C" >&6
  9959. else
  9960. if test "$cross_compiling" = yes; then
  9961. ac_cv_func_mmap_fixed_mapped=no
  9962. else
  9963. cat >conftest.$ac_ext <<_ACEOF
  9964. /* confdefs.h. */
  9965. _ACEOF
  9966. cat confdefs.h >>conftest.$ac_ext
  9967. cat >>conftest.$ac_ext <<_ACEOF
  9968. /* end confdefs.h. */
  9969. $ac_includes_default
  9970. /* malloc might have been renamed as rpl_malloc. */
  9971. #undef malloc
  9972. /* Thanks to Mike Haertel and Jim Avera for this test.
  9973. Here is a matrix of mmap possibilities:
  9974. mmap private not fixed
  9975. mmap private fixed at somewhere currently unmapped
  9976. mmap private fixed at somewhere already mapped
  9977. mmap shared not fixed
  9978. mmap shared fixed at somewhere currently unmapped
  9979. mmap shared fixed at somewhere already mapped
  9980. For private mappings, we should verify that changes cannot be read()
  9981. back from the file, nor mmap's back from the file at a different
  9982. address. (There have been systems where private was not correctly
  9983. implemented like the infamous i386 svr4.0, and systems where the
  9984. VM page cache was not coherent with the file system buffer cache
  9985. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9986. For shared mappings, we should conversely verify that changes get
  9987. propagated back to all the places they're supposed to be.
  9988. Grep wants private fixed already mapped.
  9989. The main things grep needs to know about mmap are:
  9990. * does it exist and is it safe to write into the mmap'd area
  9991. * how to use it (BSD variants) */
  9992. #include <fcntl.h>
  9993. #include <sys/mman.h>
  9994. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9995. char *malloc ();
  9996. #endif
  9997. /* This mess was copied from the GNU getpagesize.h. */
  9998. #if !HAVE_GETPAGESIZE
  9999. /* Assume that all systems that can run configure have sys/param.h. */
  10000. # if !HAVE_SYS_PARAM_H
  10001. # define HAVE_SYS_PARAM_H 1
  10002. # endif
  10003. # ifdef _SC_PAGESIZE
  10004. # define getpagesize() sysconf(_SC_PAGESIZE)
  10005. # else /* no _SC_PAGESIZE */
  10006. # if HAVE_SYS_PARAM_H
  10007. # include <sys/param.h>
  10008. # ifdef EXEC_PAGESIZE
  10009. # define getpagesize() EXEC_PAGESIZE
  10010. # else /* no EXEC_PAGESIZE */
  10011. # ifdef NBPG
  10012. # define getpagesize() NBPG * CLSIZE
  10013. # ifndef CLSIZE
  10014. # define CLSIZE 1
  10015. # endif /* no CLSIZE */
  10016. # else /* no NBPG */
  10017. # ifdef NBPC
  10018. # define getpagesize() NBPC
  10019. # else /* no NBPC */
  10020. # ifdef PAGESIZE
  10021. # define getpagesize() PAGESIZE
  10022. # endif /* PAGESIZE */
  10023. # endif /* no NBPC */
  10024. # endif /* no NBPG */
  10025. # endif /* no EXEC_PAGESIZE */
  10026. # else /* no HAVE_SYS_PARAM_H */
  10027. # define getpagesize() 8192 /* punt totally */
  10028. # endif /* no HAVE_SYS_PARAM_H */
  10029. # endif /* no _SC_PAGESIZE */
  10030. #endif /* no HAVE_GETPAGESIZE */
  10031. int
  10032. main ()
  10033. {
  10034. char *data, *data2, *data3;
  10035. int i, pagesize;
  10036. int fd;
  10037. pagesize = getpagesize ();
  10038. /* First, make a file with some known garbage in it. */
  10039. data = (char *) malloc (pagesize);
  10040. if (!data)
  10041. exit (1);
  10042. for (i = 0; i < pagesize; ++i)
  10043. *(data + i) = rand ();
  10044. umask (0);
  10045. fd = creat ("conftest.mmap", 0600);
  10046. if (fd < 0)
  10047. exit (1);
  10048. if (write (fd, data, pagesize) != pagesize)
  10049. exit (1);
  10050. close (fd);
  10051. /* Next, try to mmap the file at a fixed address which already has
  10052. something else allocated at it. If we can, also make sure that
  10053. we see the same garbage. */
  10054. fd = open ("conftest.mmap", O_RDWR);
  10055. if (fd < 0)
  10056. exit (1);
  10057. data2 = (char *) malloc (2 * pagesize);
  10058. if (!data2)
  10059. exit (1);
  10060. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  10061. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10062. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10063. exit (1);
  10064. for (i = 0; i < pagesize; ++i)
  10065. if (*(data + i) != *(data2 + i))
  10066. exit (1);
  10067. /* Finally, make sure that changes to the mapped area do not
  10068. percolate back to the file as seen by read(). (This is a bug on
  10069. some variants of i386 svr4.0.) */
  10070. for (i = 0; i < pagesize; ++i)
  10071. *(data2 + i) = *(data2 + i) + 1;
  10072. data3 = (char *) malloc (pagesize);
  10073. if (!data3)
  10074. exit (1);
  10075. if (read (fd, data3, pagesize) != pagesize)
  10076. exit (1);
  10077. for (i = 0; i < pagesize; ++i)
  10078. if (*(data + i) != *(data3 + i))
  10079. exit (1);
  10080. close (fd);
  10081. exit (0);
  10082. }
  10083. _ACEOF
  10084. rm -f conftest$ac_exeext
  10085. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10086. (eval $ac_link) 2>&5
  10087. ac_status=$?
  10088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10089. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10091. (eval $ac_try) 2>&5
  10092. ac_status=$?
  10093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10094. (exit $ac_status); }; }; then
  10095. ac_cv_func_mmap_fixed_mapped=yes
  10096. else
  10097. echo "$as_me: program exited with status $ac_status" >&5
  10098. echo "$as_me: failed program was:" >&5
  10099. sed 's/^/| /' conftest.$ac_ext >&5
  10100. ( exit $ac_status )
  10101. ac_cv_func_mmap_fixed_mapped=no
  10102. fi
  10103. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10104. fi
  10105. fi
  10106. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10107. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  10108. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10109. cat >>confdefs.h <<\_ACEOF
  10110. #define HAVE_MMAP 1
  10111. _ACEOF
  10112. fi
  10113. rm -f conftest.mmap
  10114. for ac_header in stdlib.h
  10115. do
  10116. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10117. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10118. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10119. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10120. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10121. echo $ECHO_N "(cached) $ECHO_C" >&6
  10122. fi
  10123. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10124. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10125. else
  10126. # Is the header compilable?
  10127. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10128. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10129. cat >conftest.$ac_ext <<_ACEOF
  10130. /* confdefs.h. */
  10131. _ACEOF
  10132. cat confdefs.h >>conftest.$ac_ext
  10133. cat >>conftest.$ac_ext <<_ACEOF
  10134. /* end confdefs.h. */
  10135. $ac_includes_default
  10136. #include <$ac_header>
  10137. _ACEOF
  10138. rm -f conftest.$ac_objext
  10139. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10140. (eval $ac_compile) 2>conftest.er1
  10141. ac_status=$?
  10142. grep -v '^ *+' conftest.er1 >conftest.err
  10143. rm -f conftest.er1
  10144. cat conftest.err >&5
  10145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10146. (exit $ac_status); } &&
  10147. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10149. (eval $ac_try) 2>&5
  10150. ac_status=$?
  10151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10152. (exit $ac_status); }; } &&
  10153. { ac_try='test -s conftest.$ac_objext'
  10154. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10155. (eval $ac_try) 2>&5
  10156. ac_status=$?
  10157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10158. (exit $ac_status); }; }; then
  10159. ac_header_compiler=yes
  10160. else
  10161. echo "$as_me: failed program was:" >&5
  10162. sed 's/^/| /' conftest.$ac_ext >&5
  10163. ac_header_compiler=no
  10164. fi
  10165. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10166. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10167. echo "${ECHO_T}$ac_header_compiler" >&6
  10168. # Is the header present?
  10169. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10170. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10171. cat >conftest.$ac_ext <<_ACEOF
  10172. /* confdefs.h. */
  10173. _ACEOF
  10174. cat confdefs.h >>conftest.$ac_ext
  10175. cat >>conftest.$ac_ext <<_ACEOF
  10176. /* end confdefs.h. */
  10177. #include <$ac_header>
  10178. _ACEOF
  10179. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10180. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10181. ac_status=$?
  10182. grep -v '^ *+' conftest.er1 >conftest.err
  10183. rm -f conftest.er1
  10184. cat conftest.err >&5
  10185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10186. (exit $ac_status); } >/dev/null; then
  10187. if test -s conftest.err; then
  10188. ac_cpp_err=$ac_c_preproc_warn_flag
  10189. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10190. else
  10191. ac_cpp_err=
  10192. fi
  10193. else
  10194. ac_cpp_err=yes
  10195. fi
  10196. if test -z "$ac_cpp_err"; then
  10197. ac_header_preproc=yes
  10198. else
  10199. echo "$as_me: failed program was:" >&5
  10200. sed 's/^/| /' conftest.$ac_ext >&5
  10201. ac_header_preproc=no
  10202. fi
  10203. rm -f conftest.err conftest.$ac_ext
  10204. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10205. echo "${ECHO_T}$ac_header_preproc" >&6
  10206. # So? What about this header?
  10207. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10208. yes:no: )
  10209. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10210. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10211. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10212. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10213. ac_header_preproc=yes
  10214. ;;
  10215. no:yes:* )
  10216. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10217. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10218. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10219. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10220. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10221. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10222. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10223. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10224. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10225. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10226. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10227. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10228. (
  10229. cat <<\_ASBOX
  10230. ## ------------------------------------------ ##
  10231. ## Report this to the AC_PACKAGE_NAME lists. ##
  10232. ## ------------------------------------------ ##
  10233. _ASBOX
  10234. ) |
  10235. sed "s/^/$as_me: WARNING: /" >&2
  10236. ;;
  10237. esac
  10238. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10239. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10240. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10241. echo $ECHO_N "(cached) $ECHO_C" >&6
  10242. else
  10243. eval "$as_ac_Header=\$ac_header_preproc"
  10244. fi
  10245. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10246. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10247. fi
  10248. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10249. cat >>confdefs.h <<_ACEOF
  10250. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10251. _ACEOF
  10252. fi
  10253. done
  10254. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10255. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10256. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10257. echo $ECHO_N "(cached) $ECHO_C" >&6
  10258. else
  10259. if test "$cross_compiling" = yes; then
  10260. ac_cv_func_realloc_0_nonnull=no
  10261. else
  10262. cat >conftest.$ac_ext <<_ACEOF
  10263. /* confdefs.h. */
  10264. _ACEOF
  10265. cat confdefs.h >>conftest.$ac_ext
  10266. cat >>conftest.$ac_ext <<_ACEOF
  10267. /* end confdefs.h. */
  10268. #if STDC_HEADERS || HAVE_STDLIB_H
  10269. # include <stdlib.h>
  10270. #else
  10271. char *realloc ();
  10272. #endif
  10273. int
  10274. main ()
  10275. {
  10276. exit (realloc (0, 0) ? 0 : 1);
  10277. ;
  10278. return 0;
  10279. }
  10280. _ACEOF
  10281. rm -f conftest$ac_exeext
  10282. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10283. (eval $ac_link) 2>&5
  10284. ac_status=$?
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10288. (eval $ac_try) 2>&5
  10289. ac_status=$?
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); }; }; then
  10292. ac_cv_func_realloc_0_nonnull=yes
  10293. else
  10294. echo "$as_me: program exited with status $ac_status" >&5
  10295. echo "$as_me: failed program was:" >&5
  10296. sed 's/^/| /' conftest.$ac_ext >&5
  10297. ( exit $ac_status )
  10298. ac_cv_func_realloc_0_nonnull=no
  10299. fi
  10300. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10301. fi
  10302. fi
  10303. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10304. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10305. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10306. cat >>confdefs.h <<\_ACEOF
  10307. #define HAVE_REALLOC 1
  10308. _ACEOF
  10309. else
  10310. cat >>confdefs.h <<\_ACEOF
  10311. #define HAVE_REALLOC 0
  10312. _ACEOF
  10313. case $LIBOBJS in
  10314. "realloc.$ac_objext" | \
  10315. *" realloc.$ac_objext" | \
  10316. "realloc.$ac_objext "* | \
  10317. *" realloc.$ac_objext "* ) ;;
  10318. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10319. esac
  10320. cat >>confdefs.h <<\_ACEOF
  10321. #define realloc rpl_realloc
  10322. _ACEOF
  10323. fi
  10324. for ac_header in sys/select.h sys/socket.h
  10325. do
  10326. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10327. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10328. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10329. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10330. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10331. echo $ECHO_N "(cached) $ECHO_C" >&6
  10332. fi
  10333. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10334. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10335. else
  10336. # Is the header compilable?
  10337. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10338. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10339. cat >conftest.$ac_ext <<_ACEOF
  10340. /* confdefs.h. */
  10341. _ACEOF
  10342. cat confdefs.h >>conftest.$ac_ext
  10343. cat >>conftest.$ac_ext <<_ACEOF
  10344. /* end confdefs.h. */
  10345. $ac_includes_default
  10346. #include <$ac_header>
  10347. _ACEOF
  10348. rm -f conftest.$ac_objext
  10349. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10350. (eval $ac_compile) 2>conftest.er1
  10351. ac_status=$?
  10352. grep -v '^ *+' conftest.er1 >conftest.err
  10353. rm -f conftest.er1
  10354. cat conftest.err >&5
  10355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10356. (exit $ac_status); } &&
  10357. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10358. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10359. (eval $ac_try) 2>&5
  10360. ac_status=$?
  10361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10362. (exit $ac_status); }; } &&
  10363. { ac_try='test -s conftest.$ac_objext'
  10364. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10365. (eval $ac_try) 2>&5
  10366. ac_status=$?
  10367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10368. (exit $ac_status); }; }; then
  10369. ac_header_compiler=yes
  10370. else
  10371. echo "$as_me: failed program was:" >&5
  10372. sed 's/^/| /' conftest.$ac_ext >&5
  10373. ac_header_compiler=no
  10374. fi
  10375. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10376. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10377. echo "${ECHO_T}$ac_header_compiler" >&6
  10378. # Is the header present?
  10379. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10380. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10381. cat >conftest.$ac_ext <<_ACEOF
  10382. /* confdefs.h. */
  10383. _ACEOF
  10384. cat confdefs.h >>conftest.$ac_ext
  10385. cat >>conftest.$ac_ext <<_ACEOF
  10386. /* end confdefs.h. */
  10387. #include <$ac_header>
  10388. _ACEOF
  10389. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10390. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10391. ac_status=$?
  10392. grep -v '^ *+' conftest.er1 >conftest.err
  10393. rm -f conftest.er1
  10394. cat conftest.err >&5
  10395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10396. (exit $ac_status); } >/dev/null; then
  10397. if test -s conftest.err; then
  10398. ac_cpp_err=$ac_c_preproc_warn_flag
  10399. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10400. else
  10401. ac_cpp_err=
  10402. fi
  10403. else
  10404. ac_cpp_err=yes
  10405. fi
  10406. if test -z "$ac_cpp_err"; then
  10407. ac_header_preproc=yes
  10408. else
  10409. echo "$as_me: failed program was:" >&5
  10410. sed 's/^/| /' conftest.$ac_ext >&5
  10411. ac_header_preproc=no
  10412. fi
  10413. rm -f conftest.err conftest.$ac_ext
  10414. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10415. echo "${ECHO_T}$ac_header_preproc" >&6
  10416. # So? What about this header?
  10417. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10418. yes:no: )
  10419. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10420. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10421. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10422. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10423. ac_header_preproc=yes
  10424. ;;
  10425. no:yes:* )
  10426. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10427. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10428. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10429. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10430. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10431. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10432. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10433. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10434. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10435. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10436. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10437. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10438. (
  10439. cat <<\_ASBOX
  10440. ## ------------------------------------------ ##
  10441. ## Report this to the AC_PACKAGE_NAME lists. ##
  10442. ## ------------------------------------------ ##
  10443. _ASBOX
  10444. ) |
  10445. sed "s/^/$as_me: WARNING: /" >&2
  10446. ;;
  10447. esac
  10448. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10449. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10450. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10451. echo $ECHO_N "(cached) $ECHO_C" >&6
  10452. else
  10453. eval "$as_ac_Header=\$ac_header_preproc"
  10454. fi
  10455. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10456. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10457. fi
  10458. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10459. cat >>confdefs.h <<_ACEOF
  10460. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10461. _ACEOF
  10462. fi
  10463. done
  10464. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10465. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10466. if test "${ac_cv_func_select_args+set}" = set; then
  10467. echo $ECHO_N "(cached) $ECHO_C" >&6
  10468. else
  10469. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10470. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10471. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10472. cat >conftest.$ac_ext <<_ACEOF
  10473. /* confdefs.h. */
  10474. _ACEOF
  10475. cat confdefs.h >>conftest.$ac_ext
  10476. cat >>conftest.$ac_ext <<_ACEOF
  10477. /* end confdefs.h. */
  10478. $ac_includes_default
  10479. #if HAVE_SYS_SELECT_H
  10480. # include <sys/select.h>
  10481. #endif
  10482. #if HAVE_SYS_SOCKET_H
  10483. # include <sys/socket.h>
  10484. #endif
  10485. int
  10486. main ()
  10487. {
  10488. extern int select ($ac_arg1,
  10489. $ac_arg234, $ac_arg234, $ac_arg234,
  10490. $ac_arg5);
  10491. ;
  10492. return 0;
  10493. }
  10494. _ACEOF
  10495. rm -f conftest.$ac_objext
  10496. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10497. (eval $ac_compile) 2>conftest.er1
  10498. ac_status=$?
  10499. grep -v '^ *+' conftest.er1 >conftest.err
  10500. rm -f conftest.er1
  10501. cat conftest.err >&5
  10502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10503. (exit $ac_status); } &&
  10504. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10506. (eval $ac_try) 2>&5
  10507. ac_status=$?
  10508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10509. (exit $ac_status); }; } &&
  10510. { ac_try='test -s conftest.$ac_objext'
  10511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10512. (eval $ac_try) 2>&5
  10513. ac_status=$?
  10514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10515. (exit $ac_status); }; }; then
  10516. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10517. else
  10518. echo "$as_me: failed program was:" >&5
  10519. sed 's/^/| /' conftest.$ac_ext >&5
  10520. fi
  10521. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10522. done
  10523. done
  10524. done
  10525. # Provide a safe default value.
  10526. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10527. fi
  10528. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10529. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10530. ac_save_IFS=$IFS; IFS=','
  10531. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10532. IFS=$ac_save_IFS
  10533. shift
  10534. cat >>confdefs.h <<_ACEOF
  10535. #define SELECT_TYPE_ARG1 $1
  10536. _ACEOF
  10537. cat >>confdefs.h <<_ACEOF
  10538. #define SELECT_TYPE_ARG234 ($2)
  10539. _ACEOF
  10540. cat >>confdefs.h <<_ACEOF
  10541. #define SELECT_TYPE_ARG5 ($3)
  10542. _ACEOF
  10543. rm -f conftest*
  10544. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10545. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10546. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10547. echo $ECHO_N "(cached) $ECHO_C" >&6
  10548. else
  10549. if test "$cross_compiling" = yes; then
  10550. ac_cv_func_stat_empty_string_bug=yes
  10551. else
  10552. cat >conftest.$ac_ext <<_ACEOF
  10553. /* confdefs.h. */
  10554. _ACEOF
  10555. cat confdefs.h >>conftest.$ac_ext
  10556. cat >>conftest.$ac_ext <<_ACEOF
  10557. /* end confdefs.h. */
  10558. $ac_includes_default
  10559. int
  10560. main ()
  10561. {
  10562. struct stat sbuf;
  10563. exit (stat ("", &sbuf) ? 1 : 0);
  10564. ;
  10565. return 0;
  10566. }
  10567. _ACEOF
  10568. rm -f conftest$ac_exeext
  10569. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10570. (eval $ac_link) 2>&5
  10571. ac_status=$?
  10572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10573. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10574. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10575. (eval $ac_try) 2>&5
  10576. ac_status=$?
  10577. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10578. (exit $ac_status); }; }; then
  10579. ac_cv_func_stat_empty_string_bug=yes
  10580. else
  10581. echo "$as_me: program exited with status $ac_status" >&5
  10582. echo "$as_me: failed program was:" >&5
  10583. sed 's/^/| /' conftest.$ac_ext >&5
  10584. ( exit $ac_status )
  10585. ac_cv_func_stat_empty_string_bug=no
  10586. fi
  10587. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10588. fi
  10589. fi
  10590. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10591. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10592. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10593. case $LIBOBJS in
  10594. "stat.$ac_objext" | \
  10595. *" stat.$ac_objext" | \
  10596. "stat.$ac_objext "* | \
  10597. *" stat.$ac_objext "* ) ;;
  10598. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10599. esac
  10600. cat >>confdefs.h <<_ACEOF
  10601. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10602. _ACEOF
  10603. fi
  10604. for ac_func in strftime
  10605. do
  10606. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10607. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10608. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10609. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10610. echo $ECHO_N "(cached) $ECHO_C" >&6
  10611. else
  10612. cat >conftest.$ac_ext <<_ACEOF
  10613. /* confdefs.h. */
  10614. _ACEOF
  10615. cat confdefs.h >>conftest.$ac_ext
  10616. cat >>conftest.$ac_ext <<_ACEOF
  10617. /* end confdefs.h. */
  10618. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10619. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10620. #define $ac_func innocuous_$ac_func
  10621. /* System header to define __stub macros and hopefully few prototypes,
  10622. which can conflict with char $ac_func (); below.
  10623. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10624. <limits.h> exists even on freestanding compilers. */
  10625. #ifdef __STDC__
  10626. # include <limits.h>
  10627. #else
  10628. # include <assert.h>
  10629. #endif
  10630. #undef $ac_func
  10631. /* Override any gcc2 internal prototype to avoid an error. */
  10632. #ifdef __cplusplus
  10633. extern "C"
  10634. {
  10635. #endif
  10636. /* We use char because int might match the return type of a gcc2
  10637. builtin and then its argument prototype would still apply. */
  10638. char $ac_func ();
  10639. /* The GNU C library defines this for functions which it implements
  10640. to always fail with ENOSYS. Some functions are actually named
  10641. something starting with __ and the normal name is an alias. */
  10642. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10643. choke me
  10644. #else
  10645. char (*f) () = $ac_func;
  10646. #endif
  10647. #ifdef __cplusplus
  10648. }
  10649. #endif
  10650. int
  10651. main ()
  10652. {
  10653. return f != $ac_func;
  10654. ;
  10655. return 0;
  10656. }
  10657. _ACEOF
  10658. rm -f conftest.$ac_objext conftest$ac_exeext
  10659. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10660. (eval $ac_link) 2>conftest.er1
  10661. ac_status=$?
  10662. grep -v '^ *+' conftest.er1 >conftest.err
  10663. rm -f conftest.er1
  10664. cat conftest.err >&5
  10665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10666. (exit $ac_status); } &&
  10667. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10669. (eval $ac_try) 2>&5
  10670. ac_status=$?
  10671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10672. (exit $ac_status); }; } &&
  10673. { ac_try='test -s conftest$ac_exeext'
  10674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10675. (eval $ac_try) 2>&5
  10676. ac_status=$?
  10677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10678. (exit $ac_status); }; }; then
  10679. eval "$as_ac_var=yes"
  10680. else
  10681. echo "$as_me: failed program was:" >&5
  10682. sed 's/^/| /' conftest.$ac_ext >&5
  10683. eval "$as_ac_var=no"
  10684. fi
  10685. rm -f conftest.err conftest.$ac_objext \
  10686. conftest$ac_exeext conftest.$ac_ext
  10687. fi
  10688. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10689. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10690. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10691. cat >>confdefs.h <<_ACEOF
  10692. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10693. _ACEOF
  10694. else
  10695. # strftime is in -lintl on SCO UNIX.
  10696. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10697. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10698. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10699. echo $ECHO_N "(cached) $ECHO_C" >&6
  10700. else
  10701. ac_check_lib_save_LIBS=$LIBS
  10702. LIBS="-lintl $LIBS"
  10703. cat >conftest.$ac_ext <<_ACEOF
  10704. /* confdefs.h. */
  10705. _ACEOF
  10706. cat confdefs.h >>conftest.$ac_ext
  10707. cat >>conftest.$ac_ext <<_ACEOF
  10708. /* end confdefs.h. */
  10709. /* Override any gcc2 internal prototype to avoid an error. */
  10710. #ifdef __cplusplus
  10711. extern "C"
  10712. #endif
  10713. /* We use char because int might match the return type of a gcc2
  10714. builtin and then its argument prototype would still apply. */
  10715. char strftime ();
  10716. int
  10717. main ()
  10718. {
  10719. strftime ();
  10720. ;
  10721. return 0;
  10722. }
  10723. _ACEOF
  10724. rm -f conftest.$ac_objext conftest$ac_exeext
  10725. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10726. (eval $ac_link) 2>conftest.er1
  10727. ac_status=$?
  10728. grep -v '^ *+' conftest.er1 >conftest.err
  10729. rm -f conftest.er1
  10730. cat conftest.err >&5
  10731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10732. (exit $ac_status); } &&
  10733. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10734. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10735. (eval $ac_try) 2>&5
  10736. ac_status=$?
  10737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10738. (exit $ac_status); }; } &&
  10739. { ac_try='test -s conftest$ac_exeext'
  10740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10741. (eval $ac_try) 2>&5
  10742. ac_status=$?
  10743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10744. (exit $ac_status); }; }; then
  10745. ac_cv_lib_intl_strftime=yes
  10746. else
  10747. echo "$as_me: failed program was:" >&5
  10748. sed 's/^/| /' conftest.$ac_ext >&5
  10749. ac_cv_lib_intl_strftime=no
  10750. fi
  10751. rm -f conftest.err conftest.$ac_objext \
  10752. conftest$ac_exeext conftest.$ac_ext
  10753. LIBS=$ac_check_lib_save_LIBS
  10754. fi
  10755. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10756. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10757. if test $ac_cv_lib_intl_strftime = yes; then
  10758. cat >>confdefs.h <<\_ACEOF
  10759. #define HAVE_STRFTIME 1
  10760. _ACEOF
  10761. LIBS="-lintl $LIBS"
  10762. fi
  10763. fi
  10764. done
  10765. #checkpoint
  10766. cat >confcache <<\_ACEOF
  10767. # This file is a shell script that caches the results of configure
  10768. # tests run on this system so they can be shared between configure
  10769. # scripts and configure runs, see configure's option --config-cache.
  10770. # It is not useful on other systems. If it contains results you don't
  10771. # want to keep, you may remove or edit it.
  10772. #
  10773. # config.status only pays attention to the cache file if you give it
  10774. # the --recheck option to rerun configure.
  10775. #
  10776. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10777. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10778. # following values.
  10779. _ACEOF
  10780. # The following way of writing the cache mishandles newlines in values,
  10781. # but we know of no workaround that is simple, portable, and efficient.
  10782. # So, don't put newlines in cache variables' values.
  10783. # Ultrix sh set writes to stderr and can't be redirected directly,
  10784. # and sets the high bit in the cache file unless we assign to the vars.
  10785. {
  10786. (set) 2>&1 |
  10787. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10788. *ac_space=\ *)
  10789. # `set' does not quote correctly, so add quotes (double-quote
  10790. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10791. sed -n \
  10792. "s/'/'\\\\''/g;
  10793. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10794. ;;
  10795. *)
  10796. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10797. sed -n \
  10798. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10799. ;;
  10800. esac;
  10801. } |
  10802. sed '
  10803. t clear
  10804. : clear
  10805. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10806. t end
  10807. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10808. : end' >>confcache
  10809. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10810. if test -w $cache_file; then
  10811. test "x$cache_file" != "x/dev/null"
  10812. cat confcache >$cache_file
  10813. else
  10814. echo "not updating unwritable cache $cache_file"
  10815. fi
  10816. fi
  10817. rm -f confcache
  10818. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10819. do
  10820. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10821. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10822. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10823. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10824. echo $ECHO_N "(cached) $ECHO_C" >&6
  10825. else
  10826. cat >conftest.$ac_ext <<_ACEOF
  10827. /* confdefs.h. */
  10828. _ACEOF
  10829. cat confdefs.h >>conftest.$ac_ext
  10830. cat >>conftest.$ac_ext <<_ACEOF
  10831. /* end confdefs.h. */
  10832. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10833. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10834. #define $ac_func innocuous_$ac_func
  10835. /* System header to define __stub macros and hopefully few prototypes,
  10836. which can conflict with char $ac_func (); below.
  10837. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10838. <limits.h> exists even on freestanding compilers. */
  10839. #ifdef __STDC__
  10840. # include <limits.h>
  10841. #else
  10842. # include <assert.h>
  10843. #endif
  10844. #undef $ac_func
  10845. /* Override any gcc2 internal prototype to avoid an error. */
  10846. #ifdef __cplusplus
  10847. extern "C"
  10848. {
  10849. #endif
  10850. /* We use char because int might match the return type of a gcc2
  10851. builtin and then its argument prototype would still apply. */
  10852. char $ac_func ();
  10853. /* The GNU C library defines this for functions which it implements
  10854. to always fail with ENOSYS. Some functions are actually named
  10855. something starting with __ and the normal name is an alias. */
  10856. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10857. choke me
  10858. #else
  10859. char (*f) () = $ac_func;
  10860. #endif
  10861. #ifdef __cplusplus
  10862. }
  10863. #endif
  10864. int
  10865. main ()
  10866. {
  10867. return f != $ac_func;
  10868. ;
  10869. return 0;
  10870. }
  10871. _ACEOF
  10872. rm -f conftest.$ac_objext conftest$ac_exeext
  10873. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10874. (eval $ac_link) 2>conftest.er1
  10875. ac_status=$?
  10876. grep -v '^ *+' conftest.er1 >conftest.err
  10877. rm -f conftest.er1
  10878. cat conftest.err >&5
  10879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10880. (exit $ac_status); } &&
  10881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10883. (eval $ac_try) 2>&5
  10884. ac_status=$?
  10885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10886. (exit $ac_status); }; } &&
  10887. { ac_try='test -s conftest$ac_exeext'
  10888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10889. (eval $ac_try) 2>&5
  10890. ac_status=$?
  10891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10892. (exit $ac_status); }; }; then
  10893. eval "$as_ac_var=yes"
  10894. else
  10895. echo "$as_me: failed program was:" >&5
  10896. sed 's/^/| /' conftest.$ac_ext >&5
  10897. eval "$as_ac_var=no"
  10898. fi
  10899. rm -f conftest.err conftest.$ac_objext \
  10900. conftest$ac_exeext conftest.$ac_ext
  10901. fi
  10902. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10903. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10904. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10905. cat >>confdefs.h <<_ACEOF
  10906. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10907. _ACEOF
  10908. fi
  10909. done
  10910. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10911. do
  10912. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10913. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10914. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10915. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10916. echo $ECHO_N "(cached) $ECHO_C" >&6
  10917. else
  10918. cat >conftest.$ac_ext <<_ACEOF
  10919. /* confdefs.h. */
  10920. _ACEOF
  10921. cat confdefs.h >>conftest.$ac_ext
  10922. cat >>conftest.$ac_ext <<_ACEOF
  10923. /* end confdefs.h. */
  10924. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10926. #define $ac_func innocuous_$ac_func
  10927. /* System header to define __stub macros and hopefully few prototypes,
  10928. which can conflict with char $ac_func (); below.
  10929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10930. <limits.h> exists even on freestanding compilers. */
  10931. #ifdef __STDC__
  10932. # include <limits.h>
  10933. #else
  10934. # include <assert.h>
  10935. #endif
  10936. #undef $ac_func
  10937. /* Override any gcc2 internal prototype to avoid an error. */
  10938. #ifdef __cplusplus
  10939. extern "C"
  10940. {
  10941. #endif
  10942. /* We use char because int might match the return type of a gcc2
  10943. builtin and then its argument prototype would still apply. */
  10944. char $ac_func ();
  10945. /* The GNU C library defines this for functions which it implements
  10946. to always fail with ENOSYS. Some functions are actually named
  10947. something starting with __ and the normal name is an alias. */
  10948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10949. choke me
  10950. #else
  10951. char (*f) () = $ac_func;
  10952. #endif
  10953. #ifdef __cplusplus
  10954. }
  10955. #endif
  10956. int
  10957. main ()
  10958. {
  10959. return f != $ac_func;
  10960. ;
  10961. return 0;
  10962. }
  10963. _ACEOF
  10964. rm -f conftest.$ac_objext conftest$ac_exeext
  10965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10966. (eval $ac_link) 2>conftest.er1
  10967. ac_status=$?
  10968. grep -v '^ *+' conftest.er1 >conftest.err
  10969. rm -f conftest.er1
  10970. cat conftest.err >&5
  10971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10972. (exit $ac_status); } &&
  10973. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10975. (eval $ac_try) 2>&5
  10976. ac_status=$?
  10977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10978. (exit $ac_status); }; } &&
  10979. { ac_try='test -s conftest$ac_exeext'
  10980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10981. (eval $ac_try) 2>&5
  10982. ac_status=$?
  10983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10984. (exit $ac_status); }; }; then
  10985. eval "$as_ac_var=yes"
  10986. else
  10987. echo "$as_me: failed program was:" >&5
  10988. sed 's/^/| /' conftest.$ac_ext >&5
  10989. eval "$as_ac_var=no"
  10990. fi
  10991. rm -f conftest.err conftest.$ac_objext \
  10992. conftest$ac_exeext conftest.$ac_ext
  10993. fi
  10994. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10995. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10996. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10997. cat >>confdefs.h <<_ACEOF
  10998. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10999. _ACEOF
  11000. fi
  11001. done
  11002. #checkpoint
  11003. cat >confcache <<\_ACEOF
  11004. # This file is a shell script that caches the results of configure
  11005. # tests run on this system so they can be shared between configure
  11006. # scripts and configure runs, see configure's option --config-cache.
  11007. # It is not useful on other systems. If it contains results you don't
  11008. # want to keep, you may remove or edit it.
  11009. #
  11010. # config.status only pays attention to the cache file if you give it
  11011. # the --recheck option to rerun configure.
  11012. #
  11013. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11014. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11015. # following values.
  11016. _ACEOF
  11017. # The following way of writing the cache mishandles newlines in values,
  11018. # but we know of no workaround that is simple, portable, and efficient.
  11019. # So, don't put newlines in cache variables' values.
  11020. # Ultrix sh set writes to stderr and can't be redirected directly,
  11021. # and sets the high bit in the cache file unless we assign to the vars.
  11022. {
  11023. (set) 2>&1 |
  11024. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11025. *ac_space=\ *)
  11026. # `set' does not quote correctly, so add quotes (double-quote
  11027. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11028. sed -n \
  11029. "s/'/'\\\\''/g;
  11030. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11031. ;;
  11032. *)
  11033. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11034. sed -n \
  11035. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11036. ;;
  11037. esac;
  11038. } |
  11039. sed '
  11040. t clear
  11041. : clear
  11042. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11043. t end
  11044. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11045. : end' >>confcache
  11046. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11047. if test -w $cache_file; then
  11048. test "x$cache_file" != "x/dev/null"
  11049. cat confcache >$cache_file
  11050. else
  11051. echo "not updating unwritable cache $cache_file"
  11052. fi
  11053. fi
  11054. rm -f confcache
  11055. for ac_func in strcasecmp strncasecmp vsnprintf
  11056. do
  11057. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11058. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11059. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11060. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11061. echo $ECHO_N "(cached) $ECHO_C" >&6
  11062. else
  11063. cat >conftest.$ac_ext <<_ACEOF
  11064. /* confdefs.h. */
  11065. _ACEOF
  11066. cat confdefs.h >>conftest.$ac_ext
  11067. cat >>conftest.$ac_ext <<_ACEOF
  11068. /* end confdefs.h. */
  11069. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11070. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11071. #define $ac_func innocuous_$ac_func
  11072. /* System header to define __stub macros and hopefully few prototypes,
  11073. which can conflict with char $ac_func (); below.
  11074. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11075. <limits.h> exists even on freestanding compilers. */
  11076. #ifdef __STDC__
  11077. # include <limits.h>
  11078. #else
  11079. # include <assert.h>
  11080. #endif
  11081. #undef $ac_func
  11082. /* Override any gcc2 internal prototype to avoid an error. */
  11083. #ifdef __cplusplus
  11084. extern "C"
  11085. {
  11086. #endif
  11087. /* We use char because int might match the return type of a gcc2
  11088. builtin and then its argument prototype would still apply. */
  11089. char $ac_func ();
  11090. /* The GNU C library defines this for functions which it implements
  11091. to always fail with ENOSYS. Some functions are actually named
  11092. something starting with __ and the normal name is an alias. */
  11093. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11094. choke me
  11095. #else
  11096. char (*f) () = $ac_func;
  11097. #endif
  11098. #ifdef __cplusplus
  11099. }
  11100. #endif
  11101. int
  11102. main ()
  11103. {
  11104. return f != $ac_func;
  11105. ;
  11106. return 0;
  11107. }
  11108. _ACEOF
  11109. rm -f conftest.$ac_objext conftest$ac_exeext
  11110. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11111. (eval $ac_link) 2>conftest.er1
  11112. ac_status=$?
  11113. grep -v '^ *+' conftest.er1 >conftest.err
  11114. rm -f conftest.er1
  11115. cat conftest.err >&5
  11116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11117. (exit $ac_status); } &&
  11118. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11120. (eval $ac_try) 2>&5
  11121. ac_status=$?
  11122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11123. (exit $ac_status); }; } &&
  11124. { ac_try='test -s conftest$ac_exeext'
  11125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11126. (eval $ac_try) 2>&5
  11127. ac_status=$?
  11128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); }; }; then
  11130. eval "$as_ac_var=yes"
  11131. else
  11132. echo "$as_me: failed program was:" >&5
  11133. sed 's/^/| /' conftest.$ac_ext >&5
  11134. eval "$as_ac_var=no"
  11135. fi
  11136. rm -f conftest.err conftest.$ac_objext \
  11137. conftest$ac_exeext conftest.$ac_ext
  11138. fi
  11139. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11140. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11141. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11142. cat >>confdefs.h <<_ACEOF
  11143. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11144. _ACEOF
  11145. fi
  11146. done
  11147. #autoscan suggested this....
  11148. #These are recommended by autoscan, but no code supports it currently
  11149. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  11150. for ac_func in vsprintf
  11151. do
  11152. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11153. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11154. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11155. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11156. echo $ECHO_N "(cached) $ECHO_C" >&6
  11157. else
  11158. cat >conftest.$ac_ext <<_ACEOF
  11159. /* confdefs.h. */
  11160. _ACEOF
  11161. cat confdefs.h >>conftest.$ac_ext
  11162. cat >>conftest.$ac_ext <<_ACEOF
  11163. /* end confdefs.h. */
  11164. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11165. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11166. #define $ac_func innocuous_$ac_func
  11167. /* System header to define __stub macros and hopefully few prototypes,
  11168. which can conflict with char $ac_func (); below.
  11169. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11170. <limits.h> exists even on freestanding compilers. */
  11171. #ifdef __STDC__
  11172. # include <limits.h>
  11173. #else
  11174. # include <assert.h>
  11175. #endif
  11176. #undef $ac_func
  11177. /* Override any gcc2 internal prototype to avoid an error. */
  11178. #ifdef __cplusplus
  11179. extern "C"
  11180. {
  11181. #endif
  11182. /* We use char because int might match the return type of a gcc2
  11183. builtin and then its argument prototype would still apply. */
  11184. char $ac_func ();
  11185. /* The GNU C library defines this for functions which it implements
  11186. to always fail with ENOSYS. Some functions are actually named
  11187. something starting with __ and the normal name is an alias. */
  11188. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11189. choke me
  11190. #else
  11191. char (*f) () = $ac_func;
  11192. #endif
  11193. #ifdef __cplusplus
  11194. }
  11195. #endif
  11196. int
  11197. main ()
  11198. {
  11199. return f != $ac_func;
  11200. ;
  11201. return 0;
  11202. }
  11203. _ACEOF
  11204. rm -f conftest.$ac_objext conftest$ac_exeext
  11205. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11206. (eval $ac_link) 2>conftest.er1
  11207. ac_status=$?
  11208. grep -v '^ *+' conftest.er1 >conftest.err
  11209. rm -f conftest.er1
  11210. cat conftest.err >&5
  11211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11212. (exit $ac_status); } &&
  11213. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11215. (eval $ac_try) 2>&5
  11216. ac_status=$?
  11217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11218. (exit $ac_status); }; } &&
  11219. { ac_try='test -s conftest$ac_exeext'
  11220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11221. (eval $ac_try) 2>&5
  11222. ac_status=$?
  11223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11224. (exit $ac_status); }; }; then
  11225. eval "$as_ac_var=yes"
  11226. else
  11227. echo "$as_me: failed program was:" >&5
  11228. sed 's/^/| /' conftest.$ac_ext >&5
  11229. eval "$as_ac_var=no"
  11230. fi
  11231. rm -f conftest.err conftest.$ac_objext \
  11232. conftest$ac_exeext conftest.$ac_ext
  11233. fi
  11234. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11235. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11236. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11237. cat >>confdefs.h <<_ACEOF
  11238. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11239. _ACEOF
  11240. fi
  11241. done
  11242. if test "$ac_cv_func_vsprintf" = "no"
  11243. then
  11244. cat << 'EOF' >&2
  11245. configure: error:
  11246. Your system does not have the sprintf/vsprintf libraries.
  11247. These are required to compile almost anything. Sorry.
  11248. EOF
  11249. exit 1
  11250. fi
  11251. for ac_func in uname
  11252. do
  11253. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11254. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11255. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11256. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11257. echo $ECHO_N "(cached) $ECHO_C" >&6
  11258. else
  11259. cat >conftest.$ac_ext <<_ACEOF
  11260. /* confdefs.h. */
  11261. _ACEOF
  11262. cat confdefs.h >>conftest.$ac_ext
  11263. cat >>conftest.$ac_ext <<_ACEOF
  11264. /* end confdefs.h. */
  11265. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11266. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11267. #define $ac_func innocuous_$ac_func
  11268. /* System header to define __stub macros and hopefully few prototypes,
  11269. which can conflict with char $ac_func (); below.
  11270. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11271. <limits.h> exists even on freestanding compilers. */
  11272. #ifdef __STDC__
  11273. # include <limits.h>
  11274. #else
  11275. # include <assert.h>
  11276. #endif
  11277. #undef $ac_func
  11278. /* Override any gcc2 internal prototype to avoid an error. */
  11279. #ifdef __cplusplus
  11280. extern "C"
  11281. {
  11282. #endif
  11283. /* We use char because int might match the return type of a gcc2
  11284. builtin and then its argument prototype would still apply. */
  11285. char $ac_func ();
  11286. /* The GNU C library defines this for functions which it implements
  11287. to always fail with ENOSYS. Some functions are actually named
  11288. something starting with __ and the normal name is an alias. */
  11289. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11290. choke me
  11291. #else
  11292. char (*f) () = $ac_func;
  11293. #endif
  11294. #ifdef __cplusplus
  11295. }
  11296. #endif
  11297. int
  11298. main ()
  11299. {
  11300. return f != $ac_func;
  11301. ;
  11302. return 0;
  11303. }
  11304. _ACEOF
  11305. rm -f conftest.$ac_objext conftest$ac_exeext
  11306. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11307. (eval $ac_link) 2>conftest.er1
  11308. ac_status=$?
  11309. grep -v '^ *+' conftest.er1 >conftest.err
  11310. rm -f conftest.er1
  11311. cat conftest.err >&5
  11312. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11313. (exit $ac_status); } &&
  11314. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11315. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11316. (eval $ac_try) 2>&5
  11317. ac_status=$?
  11318. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11319. (exit $ac_status); }; } &&
  11320. { ac_try='test -s conftest$ac_exeext'
  11321. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11322. (eval $ac_try) 2>&5
  11323. ac_status=$?
  11324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11325. (exit $ac_status); }; }; then
  11326. eval "$as_ac_var=yes"
  11327. else
  11328. echo "$as_me: failed program was:" >&5
  11329. sed 's/^/| /' conftest.$ac_ext >&5
  11330. eval "$as_ac_var=no"
  11331. fi
  11332. rm -f conftest.err conftest.$ac_objext \
  11333. conftest$ac_exeext conftest.$ac_ext
  11334. fi
  11335. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11336. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11337. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11338. cat >>confdefs.h <<_ACEOF
  11339. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11340. _ACEOF
  11341. fi
  11342. done
  11343. if test "$ac_cv_func_uname" = "no"
  11344. then
  11345. cat << 'EOF' >&2
  11346. configure: error:
  11347. Your system does not have the uname() function.
  11348. This is required for the botpack.
  11349. EOF
  11350. exit 1
  11351. fi
  11352. # Make sure we have stdc headers, since we can't compile without them
  11353. if test "$ac_cv_header_stdc" = "no"
  11354. then
  11355. cat << 'EOF' >&2
  11356. configure: error:
  11357. Your system must support ANSI C Header files.
  11358. These are required for the language support. Sorry.
  11359. EOF
  11360. exit 1
  11361. fi
  11362. #checkpoint
  11363. cat >confcache <<\_ACEOF
  11364. # This file is a shell script that caches the results of configure
  11365. # tests run on this system so they can be shared between configure
  11366. # scripts and configure runs, see configure's option --config-cache.
  11367. # It is not useful on other systems. If it contains results you don't
  11368. # want to keep, you may remove or edit it.
  11369. #
  11370. # config.status only pays attention to the cache file if you give it
  11371. # the --recheck option to rerun configure.
  11372. #
  11373. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11374. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11375. # following values.
  11376. _ACEOF
  11377. # The following way of writing the cache mishandles newlines in values,
  11378. # but we know of no workaround that is simple, portable, and efficient.
  11379. # So, don't put newlines in cache variables' values.
  11380. # Ultrix sh set writes to stderr and can't be redirected directly,
  11381. # and sets the high bit in the cache file unless we assign to the vars.
  11382. {
  11383. (set) 2>&1 |
  11384. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11385. *ac_space=\ *)
  11386. # `set' does not quote correctly, so add quotes (double-quote
  11387. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11388. sed -n \
  11389. "s/'/'\\\\''/g;
  11390. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11391. ;;
  11392. *)
  11393. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11394. sed -n \
  11395. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11396. ;;
  11397. esac;
  11398. } |
  11399. sed '
  11400. t clear
  11401. : clear
  11402. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11403. t end
  11404. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11405. : end' >>confcache
  11406. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11407. if test -w $cache_file; then
  11408. test "x$cache_file" != "x/dev/null"
  11409. cat confcache >$cache_file
  11410. else
  11411. echo "not updating unwritable cache $cache_file"
  11412. fi
  11413. fi
  11414. rm -f confcache
  11415. # Where is Tcl? Is it here?
  11416. # ---------- begin robey's Tcl thingies
  11417. # (well, what used to be robey's Tcl thingies...)
  11418. # Latest tested Tcl version to recommend if Tcl isn't found
  11419. tclrecommendver="8.4"
  11420. # Site recommended to download Tcl from
  11421. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  11422. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  11423. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  11424. tcl8.0 tcl80"
  11425. # Tcl library filename suffixes
  11426. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  11427. # Tcl library search paths
  11428. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  11429. /usr/local/lib /usr/local/pkgs/tcl/lib \
  11430. /usr/lib /lib /usr/i486-linuxaout/lib \
  11431. /beos/system/lib /sys/lib"
  11432. # Tcl header filenames
  11433. tclheadernames="tcl.h"
  11434. # Tcl header search paths
  11435. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  11436. /usr/local/include /usr/local/pkgs/tcl/include \
  11437. /usr/include /beos/system/include /beos/devel/include \
  11438. /sys/include"
  11439. # oohh new configure --variables for those with multiple Tcl libs
  11440. # Check whether --with-tcllib or --without-tcllib was given.
  11441. if test "${with_tcllib+set}" = set; then
  11442. withval="$with_tcllib"
  11443. tcllibname="$withval"
  11444. fi;
  11445. # Check whether --with-tclinc or --without-tclinc was given.
  11446. if test "${with_tclinc+set}" = set; then
  11447. withval="$with_tclinc"
  11448. tclincname="$withval"
  11449. fi;
  11450. WARN=0
  11451. # Make sure either both or neither $tcllibname and $tclincname are set
  11452. if test ! "${tcllibname-x}" = "x"
  11453. then
  11454. if test "${tclincname-x}" = "x"
  11455. then
  11456. WARN=1
  11457. tcllibname=""
  11458. TCLLIB=""
  11459. TCLINC=""
  11460. fi
  11461. else
  11462. if test ! "${tclincname-x}" = "x"
  11463. then
  11464. WARN=1
  11465. tclincname=""
  11466. TCLLIB=""
  11467. TCLINC=""
  11468. fi
  11469. fi
  11470. if test "$WARN" = 1
  11471. then
  11472. cat << 'EOF' >&2
  11473. configure: warning:
  11474. You must specify both --with-tcllib and --with-tclinc for them to work.
  11475. configure will now attempt to autodetect both the Tcl library and header...
  11476. EOF
  11477. fi
  11478. WARN=0
  11479. # Make sure either both or neither $TCLLIB and $TCLINC are set
  11480. if test ! "${TCLLIB-x}" = "x"
  11481. then
  11482. if test "${TCLINC-x}" = "x"
  11483. then
  11484. WARN=1
  11485. WVAR1=TCLLIB
  11486. WVAR2=TCLINC
  11487. TCLLIB=""
  11488. fi
  11489. else
  11490. if test ! "${TCLINC-x}" = "x"
  11491. then
  11492. WARN=1
  11493. WVAR1=TCLINC
  11494. WVAR2=TCLLIB
  11495. TCLINC=""
  11496. fi
  11497. fi
  11498. if test "$WARN" = 1
  11499. then
  11500. cat << EOF >&2
  11501. configure: warning:
  11502. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  11503. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11504. configure will now attempt to autodetect both the Tcl library and header...
  11505. EOF
  11506. fi
  11507. # Look for Tcl library: if $tcllibname is set, check there first
  11508. if test ! "${tcllibname-x}" = "x"
  11509. then
  11510. if test -f "$tcllibname" && test -r "$tcllibname"
  11511. then
  11512. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  11513. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  11514. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  11515. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  11516. else
  11517. cat << EOF >&2
  11518. configure: warning:
  11519. The file '$tcllibname' given to option --with-tcllib is not valid.
  11520. configure will now attempt to autodetect both the Tcl library and header...
  11521. EOF
  11522. tcllibname=""
  11523. tclincname=""
  11524. TCLLIB=""
  11525. TCLLIBFN=""
  11526. TCLINC=""
  11527. TCLINCFN=""
  11528. fi
  11529. fi
  11530. # Look for Tcl header: if $tclincname is set, check there first
  11531. if test ! "${tclincname-x}" = "x"
  11532. then
  11533. if test -f "$tclincname" && test -r "$tclincname"
  11534. then
  11535. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  11536. TCLINCFN=`$BASENAME $tclincname`
  11537. else
  11538. cat << EOF >&2
  11539. configure: warning:
  11540. The file '$tclincname' given to option --with-tclinc is not valid.
  11541. configure will now attempt to autodetect both the Tcl library and header...
  11542. EOF
  11543. tcllibname=""
  11544. tclincname=""
  11545. TCLLIB=""
  11546. TCLLIBFN=""
  11547. TCLINC=""
  11548. TCLINCFN=""
  11549. fi
  11550. fi
  11551. # Look for Tcl library: if $TCLLIB is set, check there first
  11552. if test "${TCLLIBFN-x}" = "x"
  11553. then
  11554. if test ! "${TCLLIB-x}" = "x"
  11555. then
  11556. if test -d "$TCLLIB"
  11557. then
  11558. for tcllibfns in $tcllibnames
  11559. do
  11560. for tcllibext in $tcllibextensions
  11561. do
  11562. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  11563. then
  11564. TCLLIBFN="$tcllibfns$tcllibext"
  11565. TCLLIBEXT="$tcllibext"
  11566. TCLLIBFNS="$tcllibfns"
  11567. break 2
  11568. fi
  11569. done
  11570. done
  11571. fi
  11572. if test "${TCLLIBFN-x}" = "x"
  11573. then
  11574. cat << 'EOF' >&2
  11575. configure: warning:
  11576. Environment variable TCLLIB was set, but incorrect.
  11577. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11578. configure will now attempt to autodetect both the Tcl library and header...
  11579. EOF
  11580. TCLLIB=""
  11581. TCLLIBFN=""
  11582. TCLINC=""
  11583. TCLINCFN=""
  11584. fi
  11585. fi
  11586. fi
  11587. # Look for Tcl header: if $TCLINC is set, check there first
  11588. if test "${TCLINCFN-x}" = "x"
  11589. then
  11590. if test ! "${TCLINC-x}" = "x"
  11591. then
  11592. if test -d "$TCLINC"
  11593. then
  11594. for tclheaderfn in $tclheadernames
  11595. do
  11596. if test -r "$TCLINC/$tclheaderfn"
  11597. then
  11598. TCLINCFN="$tclheaderfn"
  11599. break
  11600. fi
  11601. done
  11602. fi
  11603. if test "${TCLINCFN-x}" = "x"
  11604. then
  11605. cat << 'EOF' >&2
  11606. configure: warning:
  11607. Environment variable TCLINC was set, but incorrect.
  11608. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11609. configure will now attempt to autodetect both the Tcl library and header...
  11610. EOF
  11611. TCLLIB=""
  11612. TCLLIBFN=""
  11613. TCLINC=""
  11614. TCLINCFN=""
  11615. fi
  11616. fi
  11617. fi
  11618. echo "$as_me:$LINENO: checking for Tcl library" >&5
  11619. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  11620. # Attempt autodetect for $TCLLIBFN if it's not set
  11621. if test ! "${TCLLIBFN-x}" = "x"
  11622. then
  11623. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  11624. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  11625. else
  11626. for tcllibfns in $tcllibnames
  11627. do
  11628. for tcllibext in $tcllibextensions
  11629. do
  11630. for tcllibpath in $tcllibpaths
  11631. do
  11632. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  11633. then
  11634. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  11635. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  11636. TCLLIB="$tcllibpath"
  11637. TCLLIBFN="$tcllibfns$tcllibext"
  11638. TCLLIBEXT="$tcllibext"
  11639. TCLLIBFNS="$tcllibfns"
  11640. break 3
  11641. fi
  11642. done
  11643. done
  11644. done
  11645. fi
  11646. # Show if $TCLLIBFN wasn't found
  11647. if test "${TCLLIBFN-x}" = "x"
  11648. then
  11649. echo "$as_me:$LINENO: result: not found" >&5
  11650. echo "${ECHO_T}not found" >&6
  11651. fi
  11652. echo "$as_me:$LINENO: checking for Tcl header" >&5
  11653. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  11654. # Attempt autodetect for $TCLINCFN if it's not set
  11655. if test ! "${TCLINCFN-x}" = "x"
  11656. then
  11657. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  11658. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  11659. else
  11660. for tclheaderpath in $tclheaderpaths
  11661. do
  11662. for tclheaderfn in $tclheadernames
  11663. do
  11664. if test -r "$tclheaderpath/$tclheaderfn"
  11665. then
  11666. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  11667. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  11668. TCLINC="$tclheaderpath"
  11669. TCLINCFN="$tclheaderfn"
  11670. break 2
  11671. fi
  11672. done
  11673. done
  11674. # FreeBSD hack ...
  11675. if test "${TCLINCFN-x}" = "x"
  11676. then
  11677. for tcllibfns in $tcllibnames
  11678. do
  11679. for tclheaderpath in $tclheaderpaths
  11680. do
  11681. for tclheaderfn in $tclheadernames
  11682. do
  11683. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  11684. then
  11685. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  11686. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  11687. TCLINC="$tclheaderpath/$tcllibfns"
  11688. TCLINCFN="$tclheaderfn"
  11689. break 3
  11690. fi
  11691. done
  11692. done
  11693. done
  11694. fi
  11695. fi
  11696. # Show if $TCLINCFN wasn't found
  11697. if test "${TCLINCFN-x}" = "x"
  11698. then
  11699. echo "$as_me:$LINENO: result: not found" >&5
  11700. echo "${ECHO_T}not found" >&6
  11701. fi
  11702. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  11703. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  11704. egg_tcl_changed=yes
  11705. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  11706. if test ! "$egg_tcl_id" = ":::"
  11707. then
  11708. egg_tcl_cached=yes
  11709. if test "${egg_cv_var_tcl_id+set}" = set; then
  11710. echo $ECHO_N "(cached) $ECHO_C" >&6
  11711. else
  11712. egg_cv_var_tcl_id="$egg_tcl_id"
  11713. egg_tcl_cached=no
  11714. fi
  11715. if test "$egg_tcl_cached" = "yes"
  11716. then
  11717. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  11718. then
  11719. egg_tcl_changed=no
  11720. else
  11721. egg_cv_var_tcl_id="$egg_tcl_id"
  11722. fi
  11723. fi
  11724. fi
  11725. if test "$egg_tcl_changed" = "yes"
  11726. then
  11727. echo "$as_me:$LINENO: result: yes" >&5
  11728. echo "${ECHO_T}yes" >&6
  11729. else
  11730. echo "$as_me:$LINENO: result: no" >&5
  11731. echo "${ECHO_T}no" >&6
  11732. fi
  11733. #checkpoint
  11734. cat >confcache <<\_ACEOF
  11735. # This file is a shell script that caches the results of configure
  11736. # tests run on this system so they can be shared between configure
  11737. # scripts and configure runs, see configure's option --config-cache.
  11738. # It is not useful on other systems. If it contains results you don't
  11739. # want to keep, you may remove or edit it.
  11740. #
  11741. # config.status only pays attention to the cache file if you give it
  11742. # the --recheck option to rerun configure.
  11743. #
  11744. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11745. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11746. # following values.
  11747. _ACEOF
  11748. # The following way of writing the cache mishandles newlines in values,
  11749. # but we know of no workaround that is simple, portable, and efficient.
  11750. # So, don't put newlines in cache variables' values.
  11751. # Ultrix sh set writes to stderr and can't be redirected directly,
  11752. # and sets the high bit in the cache file unless we assign to the vars.
  11753. {
  11754. (set) 2>&1 |
  11755. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11756. *ac_space=\ *)
  11757. # `set' does not quote correctly, so add quotes (double-quote
  11758. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11759. sed -n \
  11760. "s/'/'\\\\''/g;
  11761. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11762. ;;
  11763. *)
  11764. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11765. sed -n \
  11766. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11767. ;;
  11768. esac;
  11769. } |
  11770. sed '
  11771. t clear
  11772. : clear
  11773. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11774. t end
  11775. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11776. : end' >>confcache
  11777. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11778. if test -w $cache_file; then
  11779. test "x$cache_file" != "x/dev/null"
  11780. cat confcache >$cache_file
  11781. else
  11782. echo "not updating unwritable cache $cache_file"
  11783. fi
  11784. fi
  11785. rm -f confcache
  11786. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  11787. TCL_FOUND=0
  11788. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  11789. then
  11790. TCL_FOUND=1
  11791. # Check Tcl's version
  11792. if test "$egg_tcl_changed" = "yes"
  11793. then
  11794. unset egg_cv_var_tcl_version
  11795. fi
  11796. echo "$as_me:$LINENO: checking for Tcl version" >&5
  11797. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  11798. if test "${egg_cv_var_tcl_version+set}" = set; then
  11799. echo $ECHO_N "(cached) $ECHO_C" >&6
  11800. else
  11801. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  11802. fi
  11803. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  11804. then
  11805. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  11806. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11807. else
  11808. echo "$as_me:$LINENO: result: not found" >&5
  11809. echo "${ECHO_T}not found" >&6
  11810. TCL_FOUND=0
  11811. fi
  11812. # Check Tcl's patch level (if available)
  11813. if test "$egg_tcl_changed" = "yes"
  11814. then
  11815. unset egg_cv_var_tcl_patch_level
  11816. fi
  11817. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11818. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11819. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11820. echo $ECHO_N "(cached) $ECHO_C" >&6
  11821. else
  11822. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11823. fi
  11824. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11825. then
  11826. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11827. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11828. else
  11829. egg_cv_var_tcl_patch_level="unknown"
  11830. echo "$as_me:$LINENO: result: unknown" >&5
  11831. echo "${ECHO_T}unknown" >&6
  11832. fi
  11833. fi
  11834. # Check if we found Tcl's version
  11835. if test "$TCL_FOUND" = 0
  11836. then
  11837. cat << 'EOF' >&2
  11838. configure: error:
  11839. I can't find Tcl on this system.
  11840. The download website is at:
  11841. http://www.tcl.tk/software/tcltk/download84.html
  11842. A nice direct link for the tarball is:
  11843. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11844. OR
  11845. Just type: ./build -T
  11846. EOF
  11847. exit 1
  11848. fi
  11849. # Is this version of Tcl too old for us to use ?
  11850. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11851. if test "$TCL_VER_PRE80" = "yes"
  11852. then
  11853. cat << EOF >&2
  11854. configure: error:
  11855. Your Tcl version is much too old for Eggdrop to use.
  11856. I suggest you download and compile a more recent version.
  11857. The most reliable current version is $tclrecommendver and
  11858. can be downloaded from $tclrecommendsite
  11859. EOF
  11860. exit 1
  11861. fi
  11862. # Set variables for Tcl library tests
  11863. TCL_TEST_LIB="$TCLLIBFNS"
  11864. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11865. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11866. then
  11867. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11868. fi
  11869. if test "$egg_tcl_changed" = "yes"
  11870. then
  11871. unset egg_cv_var_tcl_free
  11872. fi
  11873. # Check for Tcl_Free()
  11874. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11875. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11876. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11877. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11878. echo $ECHO_N "(cached) $ECHO_C" >&6
  11879. else
  11880. ac_check_lib_save_LIBS=$LIBS
  11881. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11882. cat >conftest.$ac_ext <<_ACEOF
  11883. /* confdefs.h. */
  11884. _ACEOF
  11885. cat confdefs.h >>conftest.$ac_ext
  11886. cat >>conftest.$ac_ext <<_ACEOF
  11887. /* end confdefs.h. */
  11888. /* Override any gcc2 internal prototype to avoid an error. */
  11889. #ifdef __cplusplus
  11890. extern "C"
  11891. #endif
  11892. /* We use char because int might match the return type of a gcc2
  11893. builtin and then its argument prototype would still apply. */
  11894. char Tcl_Free ();
  11895. int
  11896. main ()
  11897. {
  11898. Tcl_Free ();
  11899. ;
  11900. return 0;
  11901. }
  11902. _ACEOF
  11903. rm -f conftest.$ac_objext conftest$ac_exeext
  11904. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11905. (eval $ac_link) 2>conftest.er1
  11906. ac_status=$?
  11907. grep -v '^ *+' conftest.er1 >conftest.err
  11908. rm -f conftest.er1
  11909. cat conftest.err >&5
  11910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11911. (exit $ac_status); } &&
  11912. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11914. (eval $ac_try) 2>&5
  11915. ac_status=$?
  11916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11917. (exit $ac_status); }; } &&
  11918. { ac_try='test -s conftest$ac_exeext'
  11919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11920. (eval $ac_try) 2>&5
  11921. ac_status=$?
  11922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11923. (exit $ac_status); }; }; then
  11924. eval "$as_ac_Lib=yes"
  11925. else
  11926. echo "$as_me: failed program was:" >&5
  11927. sed 's/^/| /' conftest.$ac_ext >&5
  11928. eval "$as_ac_Lib=no"
  11929. fi
  11930. rm -f conftest.err conftest.$ac_objext \
  11931. conftest$ac_exeext conftest.$ac_ext
  11932. LIBS=$ac_check_lib_save_LIBS
  11933. fi
  11934. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11935. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11936. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11937. egg_cv_var_tcl_free="yes"
  11938. else
  11939. egg_cv_var_tcl_free="no"
  11940. fi
  11941. if test "$egg_cv_var_tcl_free" = "yes"
  11942. then
  11943. cat >>confdefs.h <<\_ACEOF
  11944. #define HAVE_TCL_FREE 1
  11945. _ACEOF
  11946. fi
  11947. if test "$egg_tcl_changed" = "yes"
  11948. then
  11949. unset egg_cv_var_tcl_threaded
  11950. fi
  11951. # Check for TclpFinalizeThreadData()
  11952. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11953. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11954. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11955. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11956. echo $ECHO_N "(cached) $ECHO_C" >&6
  11957. else
  11958. ac_check_lib_save_LIBS=$LIBS
  11959. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11960. cat >conftest.$ac_ext <<_ACEOF
  11961. /* confdefs.h. */
  11962. _ACEOF
  11963. cat confdefs.h >>conftest.$ac_ext
  11964. cat >>conftest.$ac_ext <<_ACEOF
  11965. /* end confdefs.h. */
  11966. /* Override any gcc2 internal prototype to avoid an error. */
  11967. #ifdef __cplusplus
  11968. extern "C"
  11969. #endif
  11970. /* We use char because int might match the return type of a gcc2
  11971. builtin and then its argument prototype would still apply. */
  11972. char TclpFinalizeThreadData ();
  11973. int
  11974. main ()
  11975. {
  11976. TclpFinalizeThreadData ();
  11977. ;
  11978. return 0;
  11979. }
  11980. _ACEOF
  11981. rm -f conftest.$ac_objext conftest$ac_exeext
  11982. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11983. (eval $ac_link) 2>conftest.er1
  11984. ac_status=$?
  11985. grep -v '^ *+' conftest.er1 >conftest.err
  11986. rm -f conftest.er1
  11987. cat conftest.err >&5
  11988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11989. (exit $ac_status); } &&
  11990. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11992. (eval $ac_try) 2>&5
  11993. ac_status=$?
  11994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11995. (exit $ac_status); }; } &&
  11996. { ac_try='test -s conftest$ac_exeext'
  11997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11998. (eval $ac_try) 2>&5
  11999. ac_status=$?
  12000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12001. (exit $ac_status); }; }; then
  12002. eval "$as_ac_Lib=yes"
  12003. else
  12004. echo "$as_me: failed program was:" >&5
  12005. sed 's/^/| /' conftest.$ac_ext >&5
  12006. eval "$as_ac_Lib=no"
  12007. fi
  12008. rm -f conftest.err conftest.$ac_objext \
  12009. conftest$ac_exeext conftest.$ac_ext
  12010. LIBS=$ac_check_lib_save_LIBS
  12011. fi
  12012. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  12013. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  12014. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  12015. egg_cv_var_tcl_threaded="yes"
  12016. else
  12017. egg_cv_var_tcl_threaded="no"
  12018. fi
  12019. enable_tcl_threads=no
  12020. if test "$egg_cv_var_tcl_threaded" = "yes"
  12021. then
  12022. if test "$enable_tcl_threads" = "no"
  12023. then
  12024. cat << 'EOF' >&2
  12025. configure: warning:
  12026. You have disabled threads support on a system with a threaded Tcl library.
  12027. Tcl features that rely on scheduled events may not function properly.
  12028. EOF
  12029. fi
  12030. # Add pthread library to $LIBS if we need it
  12031. if test ! "${ac_cv_lib_pthread-x}" = "x"
  12032. then
  12033. LIBS="$ac_cv_lib_pthread $LIBS"
  12034. fi
  12035. fi
  12036. if test "$EGG_CYGWIN" = "yes"
  12037. then
  12038. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12039. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12040. else
  12041. if test ! "$TCLLIBEXT" = ".a"
  12042. then
  12043. cat << 'EOF' >&2
  12044. configure: warning:
  12045. Your Tcl library is not compiled statically.
  12046. You will need to compile Tcl statically to successfully compile wraith.
  12047. EOF
  12048. exit 1
  12049. else
  12050. # Was the --with-tcllib option given ?
  12051. if test ! "${tcllibname-x}" = "x"
  12052. then
  12053. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12054. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  12055. else
  12056. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12057. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12058. fi
  12059. fi
  12060. fi
  12061. ac_config_commands="$ac_config_commands replace-if-changed"
  12062. #checkpoint
  12063. cat >confcache <<\_ACEOF
  12064. # This file is a shell script that caches the results of configure
  12065. # tests run on this system so they can be shared between configure
  12066. # scripts and configure runs, see configure's option --config-cache.
  12067. # It is not useful on other systems. If it contains results you don't
  12068. # want to keep, you may remove or edit it.
  12069. #
  12070. # config.status only pays attention to the cache file if you give it
  12071. # the --recheck option to rerun configure.
  12072. #
  12073. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12074. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12075. # following values.
  12076. _ACEOF
  12077. # The following way of writing the cache mishandles newlines in values,
  12078. # but we know of no workaround that is simple, portable, and efficient.
  12079. # So, don't put newlines in cache variables' values.
  12080. # Ultrix sh set writes to stderr and can't be redirected directly,
  12081. # and sets the high bit in the cache file unless we assign to the vars.
  12082. {
  12083. (set) 2>&1 |
  12084. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12085. *ac_space=\ *)
  12086. # `set' does not quote correctly, so add quotes (double-quote
  12087. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12088. sed -n \
  12089. "s/'/'\\\\''/g;
  12090. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12091. ;;
  12092. *)
  12093. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12094. sed -n \
  12095. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12096. ;;
  12097. esac;
  12098. } |
  12099. sed '
  12100. t clear
  12101. : clear
  12102. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12103. t end
  12104. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12105. : end' >>confcache
  12106. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12107. if test -w $cache_file; then
  12108. test "x$cache_file" != "x/dev/null"
  12109. cat confcache >$cache_file
  12110. else
  12111. echo "not updating unwritable cache $cache_file"
  12112. fi
  12113. fi
  12114. rm -f confcache
  12115. # ---------- end of (what used to be) robey's Tcl thingies
  12116. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12117. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  12118. if ! test -f $srcdir/pack/pack.cfg; then
  12119. cat << EOF >&2
  12120. configure: error:
  12121. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  12122. EOF
  12123. exit 1
  12124. fi
  12125. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  12126. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12127. cat >>confdefs.h <<_ACEOF
  12128. #define EGG_VERSION $version_num
  12129. _ACEOF
  12130. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  12131. u_define="S_$define"
  12132. cat >>confdefs.h <<_ACEOF
  12133. #define $u_define 1
  12134. _ACEOF
  12135. done
  12136. case "$srcdir" in
  12137. [\\/]* | ?:[\\/]*)
  12138. MOD_UPDIR=""
  12139. ;;
  12140. *)
  12141. MOD_UPDIR="../"
  12142. ;;
  12143. esac
  12144. files="src/Makefile.in src/compat/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"
  12145. for mf in $files; do
  12146. # Strip MF so we end up with the name of the file.
  12147. # echo "MF: $mf"
  12148. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12149. dirpart=`(dirname "$mf") 2>/dev/null ||
  12150. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12151. X"$mf" : 'X\(//\)[^/]' \| \
  12152. X"$mf" : 'X\(//\)$' \| \
  12153. X"$mf" : 'X\(/\)' \| \
  12154. . : '\(.\)' 2>/dev/null ||
  12155. echo X"$mf" |
  12156. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12157. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12158. /^X\(\/\/\)$/{ s//\1/; q; }
  12159. /^X\(\/\).*/{ s//\1/; q; }
  12160. s/.*/./; q'`
  12161. # echo "dirpart: $dirpart mf: $mf"
  12162. # rm -rf "$dirpart/.deps/"
  12163. rm -f "$dirpart/.deps/includes"
  12164. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12165. for file in `sed -n -e '
  12166. /^OBJS = .*\\\\$/ {
  12167. s/^OBJS = //
  12168. :loop
  12169. s/\\\\$//
  12170. p
  12171. n
  12172. /\\\\$/ b loop
  12173. p
  12174. }
  12175. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12176. do
  12177. base=`basename $file .o`
  12178. test -f "$dirpart/$base.c" || continue
  12179. if ! test -f "$dirpart/.deps/$base.Po"; then
  12180. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12181. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12182. if test -f "$dirpart/$base.o"; then
  12183. rm -f "$dirpart/$base.o"
  12184. fi
  12185. fi
  12186. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12187. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12188. done
  12189. done
  12190. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  12191. cat >confcache <<\_ACEOF
  12192. # This file is a shell script that caches the results of configure
  12193. # tests run on this system so they can be shared between configure
  12194. # scripts and configure runs, see configure's option --config-cache.
  12195. # It is not useful on other systems. If it contains results you don't
  12196. # want to keep, you may remove or edit it.
  12197. #
  12198. # config.status only pays attention to the cache file if you give it
  12199. # the --recheck option to rerun configure.
  12200. #
  12201. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12202. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12203. # following values.
  12204. _ACEOF
  12205. # The following way of writing the cache mishandles newlines in values,
  12206. # but we know of no workaround that is simple, portable, and efficient.
  12207. # So, don't put newlines in cache variables' values.
  12208. # Ultrix sh set writes to stderr and can't be redirected directly,
  12209. # and sets the high bit in the cache file unless we assign to the vars.
  12210. {
  12211. (set) 2>&1 |
  12212. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12213. *ac_space=\ *)
  12214. # `set' does not quote correctly, so add quotes (double-quote
  12215. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12216. sed -n \
  12217. "s/'/'\\\\''/g;
  12218. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12219. ;;
  12220. *)
  12221. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12222. sed -n \
  12223. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12224. ;;
  12225. esac;
  12226. } |
  12227. sed '
  12228. t clear
  12229. : clear
  12230. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12231. t end
  12232. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12233. : end' >>confcache
  12234. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12235. if test -w $cache_file; then
  12236. test "x$cache_file" != "x/dev/null"
  12237. cat confcache >$cache_file
  12238. else
  12239. echo "not updating unwritable cache $cache_file"
  12240. fi
  12241. fi
  12242. rm -f confcache
  12243. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12244. # Let make expand exec_prefix.
  12245. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12246. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12247. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12248. # trailing colons and then remove the whole line if VPATH becomes empty
  12249. # (actually we leave an empty line to preserve line numbers).
  12250. if test "x$srcdir" = x.; then
  12251. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12252. s/:*\$(srcdir):*/:/;
  12253. s/:*\${srcdir}:*/:/;
  12254. s/:*@srcdir@:*/:/;
  12255. s/^\([^=]*=[ ]*\):*/\1/;
  12256. s/:*$//;
  12257. s/^[^=]*=[ ]*$//;
  12258. }'
  12259. fi
  12260. DEFS=-DHAVE_CONFIG_H
  12261. ac_libobjs=
  12262. ac_ltlibobjs=
  12263. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12264. # 1. Remove the extension, and $U if already installed.
  12265. ac_i=`echo "$ac_i" |
  12266. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  12267. # 2. Add them.
  12268. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  12269. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  12270. done
  12271. LIBOBJS=$ac_libobjs
  12272. LTLIBOBJS=$ac_ltlibobjs
  12273. : ${CONFIG_STATUS=./config.status}
  12274. ac_clean_files_save=$ac_clean_files
  12275. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12276. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12277. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12278. cat >$CONFIG_STATUS <<_ACEOF
  12279. #! $SHELL
  12280. # Generated by $as_me.
  12281. # Run this file to recreate the current configuration.
  12282. # Compiler output produced by configure, useful for debugging
  12283. # configure, is in config.log if it exists.
  12284. debug=false
  12285. ac_cs_recheck=false
  12286. ac_cs_silent=false
  12287. SHELL=\${CONFIG_SHELL-$SHELL}
  12288. _ACEOF
  12289. cat >>$CONFIG_STATUS <<\_ACEOF
  12290. ## --------------------- ##
  12291. ## M4sh Initialization. ##
  12292. ## --------------------- ##
  12293. # Be Bourne compatible
  12294. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12295. emulate sh
  12296. NULLCMD=:
  12297. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12298. # is contrary to our usage. Disable this feature.
  12299. alias -g '${1+"$@"}'='"$@"'
  12300. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  12301. set -o posix
  12302. fi
  12303. DUALCASE=1; export DUALCASE # for MKS sh
  12304. # Support unset when possible.
  12305. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12306. as_unset=unset
  12307. else
  12308. as_unset=false
  12309. fi
  12310. # Work around bugs in pre-3.0 UWIN ksh.
  12311. $as_unset ENV MAIL MAILPATH
  12312. PS1='$ '
  12313. PS2='> '
  12314. PS4='+ '
  12315. # NLS nuisances.
  12316. for as_var in \
  12317. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12318. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12319. LC_TELEPHONE LC_TIME
  12320. do
  12321. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12322. eval $as_var=C; export $as_var
  12323. else
  12324. $as_unset $as_var
  12325. fi
  12326. done
  12327. # Required to use basename.
  12328. if expr a : '\(a\)' >/dev/null 2>&1; then
  12329. as_expr=expr
  12330. else
  12331. as_expr=false
  12332. fi
  12333. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  12334. as_basename=basename
  12335. else
  12336. as_basename=false
  12337. fi
  12338. # Name of the executable.
  12339. as_me=`$as_basename "$0" ||
  12340. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12341. X"$0" : 'X\(//\)$' \| \
  12342. X"$0" : 'X\(/\)$' \| \
  12343. . : '\(.\)' 2>/dev/null ||
  12344. echo X/"$0" |
  12345. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  12346. /^X\/\(\/\/\)$/{ s//\1/; q; }
  12347. /^X\/\(\/\).*/{ s//\1/; q; }
  12348. s/.*/./; q'`
  12349. # PATH needs CR, and LINENO needs CR and PATH.
  12350. # Avoid depending upon Character Ranges.
  12351. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12352. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12353. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12354. as_cr_digits='0123456789'
  12355. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12356. # The user is always right.
  12357. if test "${PATH_SEPARATOR+set}" != set; then
  12358. echo "#! /bin/sh" >conf$$.sh
  12359. echo "exit 0" >>conf$$.sh
  12360. chmod +x conf$$.sh
  12361. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12362. PATH_SEPARATOR=';'
  12363. else
  12364. PATH_SEPARATOR=:
  12365. fi
  12366. rm -f conf$$.sh
  12367. fi
  12368. as_lineno_1=$LINENO
  12369. as_lineno_2=$LINENO
  12370. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12371. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12372. test "x$as_lineno_3" = "x$as_lineno_2" || {
  12373. # Find who we are. Look in the path if we contain no path at all
  12374. # relative or not.
  12375. case $0 in
  12376. *[\\/]* ) as_myself=$0 ;;
  12377. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12378. for as_dir in $PATH
  12379. do
  12380. IFS=$as_save_IFS
  12381. test -z "$as_dir" && as_dir=.
  12382. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12383. done
  12384. ;;
  12385. esac
  12386. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12387. # in which case we are not to be found in the path.
  12388. if test "x$as_myself" = x; then
  12389. as_myself=$0
  12390. fi
  12391. if test ! -f "$as_myself"; then
  12392. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  12393. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  12394. { (exit 1); exit 1; }; }
  12395. fi
  12396. case $CONFIG_SHELL in
  12397. '')
  12398. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12399. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12400. do
  12401. IFS=$as_save_IFS
  12402. test -z "$as_dir" && as_dir=.
  12403. for as_base in sh bash ksh sh5; do
  12404. case $as_dir in
  12405. /*)
  12406. if ("$as_dir/$as_base" -c '
  12407. as_lineno_1=$LINENO
  12408. as_lineno_2=$LINENO
  12409. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12410. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12411. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  12412. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  12413. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  12414. CONFIG_SHELL=$as_dir/$as_base
  12415. export CONFIG_SHELL
  12416. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  12417. fi;;
  12418. esac
  12419. done
  12420. done
  12421. ;;
  12422. esac
  12423. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12424. # uniformly replaced by the line number. The first 'sed' inserts a
  12425. # line-number line before each line; the second 'sed' does the real
  12426. # work. The second script uses 'N' to pair each line-number line
  12427. # with the numbered line, and appends trailing '-' during
  12428. # substitution so that $LINENO is not a special case at line end.
  12429. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12430. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  12431. sed '=' <$as_myself |
  12432. sed '
  12433. N
  12434. s,$,-,
  12435. : loop
  12436. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  12437. t loop
  12438. s,-$,,
  12439. s,^['$as_cr_digits']*\n,,
  12440. ' >$as_me.lineno &&
  12441. chmod +x $as_me.lineno ||
  12442. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  12443. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  12444. { (exit 1); exit 1; }; }
  12445. # Don't try to exec as it changes $[0], causing all sort of problems
  12446. # (the dirname of $[0] is not the place where we might find the
  12447. # original and so on. Autoconf is especially sensible to this).
  12448. . ./$as_me.lineno
  12449. # Exit status is that of the last command.
  12450. exit
  12451. }
  12452. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  12453. *c*,-n*) ECHO_N= ECHO_C='
  12454. ' ECHO_T=' ' ;;
  12455. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  12456. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  12457. esac
  12458. if expr a : '\(a\)' >/dev/null 2>&1; then
  12459. as_expr=expr
  12460. else
  12461. as_expr=false
  12462. fi
  12463. rm -f conf$$ conf$$.exe conf$$.file
  12464. echo >conf$$.file
  12465. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12466. # We could just check for DJGPP; but this test a) works b) is more generic
  12467. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  12468. if test -f conf$$.exe; then
  12469. # Don't use ln at all; we don't have any links
  12470. as_ln_s='cp -p'
  12471. else
  12472. as_ln_s='ln -s'
  12473. fi
  12474. elif ln conf$$.file conf$$ 2>/dev/null; then
  12475. as_ln_s=ln
  12476. else
  12477. as_ln_s='cp -p'
  12478. fi
  12479. rm -f conf$$ conf$$.exe conf$$.file
  12480. if mkdir -p . 2>/dev/null; then
  12481. as_mkdir_p=:
  12482. else
  12483. test -d ./-p && rmdir ./-p
  12484. as_mkdir_p=false
  12485. fi
  12486. as_executable_p="test -f"
  12487. # Sed expression to map a string onto a valid CPP name.
  12488. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12489. # Sed expression to map a string onto a valid variable name.
  12490. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12491. # IFS
  12492. # We need space, tab and new line, in precisely that order.
  12493. as_nl='
  12494. '
  12495. IFS=" $as_nl"
  12496. # CDPATH.
  12497. $as_unset CDPATH
  12498. exec 6>&1
  12499. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  12500. # report actual input values of CONFIG_FILES etc. instead of their
  12501. # values after options handling. Logging --version etc. is OK.
  12502. exec 5>>config.log
  12503. {
  12504. echo
  12505. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12506. ## Running $as_me. ##
  12507. _ASBOX
  12508. } >&5
  12509. cat >&5 <<_CSEOF
  12510. This file was extended by $as_me, which was
  12511. generated by GNU Autoconf 2.59. Invocation command line was
  12512. CONFIG_FILES = $CONFIG_FILES
  12513. CONFIG_HEADERS = $CONFIG_HEADERS
  12514. CONFIG_LINKS = $CONFIG_LINKS
  12515. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12516. $ $0 $@
  12517. _CSEOF
  12518. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  12519. echo >&5
  12520. _ACEOF
  12521. # Files that config.status was made for.
  12522. if test -n "$ac_config_files"; then
  12523. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  12524. fi
  12525. if test -n "$ac_config_headers"; then
  12526. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  12527. fi
  12528. if test -n "$ac_config_links"; then
  12529. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  12530. fi
  12531. if test -n "$ac_config_commands"; then
  12532. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  12533. fi
  12534. cat >>$CONFIG_STATUS <<\_ACEOF
  12535. ac_cs_usage="\
  12536. \`$as_me' instantiates files from templates according to the
  12537. current configuration.
  12538. Usage: $0 [OPTIONS] [FILE]...
  12539. -h, --help print this help, then exit
  12540. -V, --version print version number, then exit
  12541. -q, --quiet do not print progress messages
  12542. -d, --debug don't remove temporary files
  12543. --recheck update $as_me by reconfiguring in the same conditions
  12544. --file=FILE[:TEMPLATE]
  12545. instantiate the configuration file FILE
  12546. --header=FILE[:TEMPLATE]
  12547. instantiate the configuration header FILE
  12548. Configuration files:
  12549. $config_files
  12550. Configuration headers:
  12551. $config_headers
  12552. Configuration commands:
  12553. $config_commands
  12554. Report bugs to <bug-autoconf@gnu.org>."
  12555. _ACEOF
  12556. cat >>$CONFIG_STATUS <<_ACEOF
  12557. ac_cs_version="\\
  12558. config.status
  12559. configured by $0, generated by GNU Autoconf 2.59,
  12560. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  12561. Copyright (C) 2003 Free Software Foundation, Inc.
  12562. This config.status script is free software; the Free Software Foundation
  12563. gives unlimited permission to copy, distribute and modify it."
  12564. srcdir=$srcdir
  12565. _ACEOF
  12566. cat >>$CONFIG_STATUS <<\_ACEOF
  12567. # If no file are specified by the user, then we need to provide default
  12568. # value. By we need to know if files were specified by the user.
  12569. ac_need_defaults=:
  12570. while test $# != 0
  12571. do
  12572. case $1 in
  12573. --*=*)
  12574. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  12575. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  12576. ac_shift=:
  12577. ;;
  12578. -*)
  12579. ac_option=$1
  12580. ac_optarg=$2
  12581. ac_shift=shift
  12582. ;;
  12583. *) # This is not an option, so the user has probably given explicit
  12584. # arguments.
  12585. ac_option=$1
  12586. ac_need_defaults=false;;
  12587. esac
  12588. case $ac_option in
  12589. # Handling of the options.
  12590. _ACEOF
  12591. cat >>$CONFIG_STATUS <<\_ACEOF
  12592. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12593. ac_cs_recheck=: ;;
  12594. --version | --vers* | -V )
  12595. echo "$ac_cs_version"; exit 0 ;;
  12596. --he | --h)
  12597. # Conflict between --help and --header
  12598. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  12599. Try \`$0 --help' for more information." >&5
  12600. echo "$as_me: error: ambiguous option: $1
  12601. Try \`$0 --help' for more information." >&2;}
  12602. { (exit 1); exit 1; }; };;
  12603. --help | --hel | -h )
  12604. echo "$ac_cs_usage"; exit 0 ;;
  12605. --debug | --d* | -d )
  12606. debug=: ;;
  12607. --file | --fil | --fi | --f )
  12608. $ac_shift
  12609. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12610. ac_need_defaults=false;;
  12611. --header | --heade | --head | --hea )
  12612. $ac_shift
  12613. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12614. ac_need_defaults=false;;
  12615. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12616. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12617. ac_cs_silent=: ;;
  12618. # This is an error.
  12619. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  12620. Try \`$0 --help' for more information." >&5
  12621. echo "$as_me: error: unrecognized option: $1
  12622. Try \`$0 --help' for more information." >&2;}
  12623. { (exit 1); exit 1; }; } ;;
  12624. *) ac_config_targets="$ac_config_targets $1" ;;
  12625. esac
  12626. shift
  12627. done
  12628. ac_configure_extra_args=
  12629. if $ac_cs_silent; then
  12630. exec 6>/dev/null
  12631. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12632. fi
  12633. _ACEOF
  12634. cat >>$CONFIG_STATUS <<_ACEOF
  12635. if \$ac_cs_recheck; then
  12636. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12637. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12638. fi
  12639. _ACEOF
  12640. cat >>$CONFIG_STATUS <<_ACEOF
  12641. #
  12642. # INIT-COMMANDS section.
  12643. #
  12644. egg_tclinc="$TCLINC"
  12645. egg_tclincfn="$TCLINCFN"
  12646. _ACEOF
  12647. cat >>$CONFIG_STATUS <<\_ACEOF
  12648. for ac_config_target in $ac_config_targets
  12649. do
  12650. case "$ac_config_target" in
  12651. # Handling of arguments.
  12652. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12653. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12654. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12655. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12656. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  12657. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  12658. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12659. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12660. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12661. { (exit 1); exit 1; }; };;
  12662. esac
  12663. done
  12664. # If the user did not use the arguments to specify the items to instantiate,
  12665. # then the envvar interface is used. Set only those that are not.
  12666. # We use the long form for the default assignment because of an extremely
  12667. # bizarre bug on SunOS 4.1.3.
  12668. if $ac_need_defaults; then
  12669. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12670. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12671. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12672. fi
  12673. # Have a temporary directory for convenience. Make it in the build tree
  12674. # simply because there is no reason to put it here, and in addition,
  12675. # creating and moving files from /tmp can sometimes cause problems.
  12676. # Create a temporary directory, and hook for its removal unless debugging.
  12677. $debug ||
  12678. {
  12679. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12680. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12681. }
  12682. # Create a (secure) tmp directory for tmp files.
  12683. {
  12684. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  12685. test -n "$tmp" && test -d "$tmp"
  12686. } ||
  12687. {
  12688. tmp=./confstat$$-$RANDOM
  12689. (umask 077 && mkdir $tmp)
  12690. } ||
  12691. {
  12692. echo "$me: cannot create a temporary directory in ." >&2
  12693. { (exit 1); exit 1; }
  12694. }
  12695. _ACEOF
  12696. cat >>$CONFIG_STATUS <<_ACEOF
  12697. #
  12698. # CONFIG_FILES section.
  12699. #
  12700. # No need to generate the scripts if there are no CONFIG_FILES.
  12701. # This happens for instance when ./config.status config.h
  12702. if test -n "\$CONFIG_FILES"; then
  12703. # Protect against being on the right side of a sed subst in config.status.
  12704. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  12705. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  12706. s,@SHELL@,$SHELL,;t t
  12707. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  12708. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  12709. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  12710. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  12711. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  12712. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  12713. s,@exec_prefix@,$exec_prefix,;t t
  12714. s,@prefix@,$prefix,;t t
  12715. s,@program_transform_name@,$program_transform_name,;t t
  12716. s,@bindir@,$bindir,;t t
  12717. s,@sbindir@,$sbindir,;t t
  12718. s,@libexecdir@,$libexecdir,;t t
  12719. s,@datadir@,$datadir,;t t
  12720. s,@sysconfdir@,$sysconfdir,;t t
  12721. s,@sharedstatedir@,$sharedstatedir,;t t
  12722. s,@localstatedir@,$localstatedir,;t t
  12723. s,@libdir@,$libdir,;t t
  12724. s,@includedir@,$includedir,;t t
  12725. s,@oldincludedir@,$oldincludedir,;t t
  12726. s,@infodir@,$infodir,;t t
  12727. s,@mandir@,$mandir,;t t
  12728. s,@build_alias@,$build_alias,;t t
  12729. s,@host_alias@,$host_alias,;t t
  12730. s,@target_alias@,$target_alias,;t t
  12731. s,@DEFS@,$DEFS,;t t
  12732. s,@ECHO_C@,$ECHO_C,;t t
  12733. s,@ECHO_N@,$ECHO_N,;t t
  12734. s,@ECHO_T@,$ECHO_T,;t t
  12735. s,@LIBS@,$LIBS,;t t
  12736. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  12737. s,@CC@,$CC,;t t
  12738. s,@CFLAGS@,$CFLAGS,;t t
  12739. s,@LDFLAGS@,$LDFLAGS,;t t
  12740. s,@CPPFLAGS@,$CPPFLAGS,;t t
  12741. s,@ac_ct_CC@,$ac_ct_CC,;t t
  12742. s,@EXEEXT@,$EXEEXT,;t t
  12743. s,@OBJEXT@,$OBJEXT,;t t
  12744. s,@CPP@,$CPP,;t t
  12745. s,@EGREP@,$EGREP,;t t
  12746. s,@CCDEPMODE@,$CCDEPMODE,;t t
  12747. s,@CCDEBUG@,$CCDEBUG,;t t
  12748. s,@SET_MAKE@,$SET_MAKE,;t t
  12749. s,@HEAD_1@,$HEAD_1,;t t
  12750. s,@AWK@,$AWK,;t t
  12751. s,@BASENAME@,$BASENAME,;t t
  12752. s,@OBJCOPY@,$OBJCOPY,;t t
  12753. s,@STRIP@,$STRIP,;t t
  12754. s,@UNAME@,$UNAME,;t t
  12755. s,@DISTCC@,$DISTCC,;t t
  12756. s,@RESLIB@,$RESLIB,;t t
  12757. s,@RESINCLUDE@,$RESINCLUDE,;t t
  12758. s,@ZLIB@,$ZLIB,;t t
  12759. s,@SSL@,$SSL,;t t
  12760. s,@LIBOBJS@,$LIBOBJS,;t t
  12761. s,@TCLLIB@,$TCLLIB,;t t
  12762. s,@TCLLIBFN@,$TCLLIBFN,;t t
  12763. s,@TCLINC@,$TCLINC,;t t
  12764. s,@TCLINCFN@,$TCLINCFN,;t t
  12765. s,@TCL_REQS@,$TCL_REQS,;t t
  12766. s,@TCL_LIBS@,$TCL_LIBS,;t t
  12767. s,@VERSION@,$VERSION,;t t
  12768. s,@NUMVER@,$NUMVER,;t t
  12769. s,@PACKNAME@,$PACKNAME,;t t
  12770. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  12771. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  12772. CEOF
  12773. _ACEOF
  12774. cat >>$CONFIG_STATUS <<\_ACEOF
  12775. # Split the substitutions into bite-sized pieces for seds with
  12776. # small command number limits, like on Digital OSF/1 and HP-UX.
  12777. ac_max_sed_lines=48
  12778. ac_sed_frag=1 # Number of current file.
  12779. ac_beg=1 # First line for current file.
  12780. ac_end=$ac_max_sed_lines # Line after last line for current file.
  12781. ac_more_lines=:
  12782. ac_sed_cmds=
  12783. while $ac_more_lines; do
  12784. if test $ac_beg -gt 1; then
  12785. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12786. else
  12787. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12788. fi
  12789. if test ! -s $tmp/subs.frag; then
  12790. ac_more_lines=false
  12791. else
  12792. # The purpose of the label and of the branching condition is to
  12793. # speed up the sed processing (if there are no `@' at all, there
  12794. # is no need to browse any of the substitutions).
  12795. # These are the two extra sed commands mentioned above.
  12796. (echo ':t
  12797. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  12798. if test -z "$ac_sed_cmds"; then
  12799. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  12800. else
  12801. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  12802. fi
  12803. ac_sed_frag=`expr $ac_sed_frag + 1`
  12804. ac_beg=$ac_end
  12805. ac_end=`expr $ac_end + $ac_max_sed_lines`
  12806. fi
  12807. done
  12808. if test -z "$ac_sed_cmds"; then
  12809. ac_sed_cmds=cat
  12810. fi
  12811. fi # test -n "$CONFIG_FILES"
  12812. _ACEOF
  12813. cat >>$CONFIG_STATUS <<\_ACEOF
  12814. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  12815. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12816. case $ac_file in
  12817. - | *:- | *:-:* ) # input from stdin
  12818. cat >$tmp/stdin
  12819. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12820. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12821. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12822. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12823. * ) ac_file_in=$ac_file.in ;;
  12824. esac
  12825. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12826. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12827. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12828. X"$ac_file" : 'X\(//\)[^/]' \| \
  12829. X"$ac_file" : 'X\(//\)$' \| \
  12830. X"$ac_file" : 'X\(/\)' \| \
  12831. . : '\(.\)' 2>/dev/null ||
  12832. echo X"$ac_file" |
  12833. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12834. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12835. /^X\(\/\/\)$/{ s//\1/; q; }
  12836. /^X\(\/\).*/{ s//\1/; q; }
  12837. s/.*/./; q'`
  12838. { if $as_mkdir_p; then
  12839. mkdir -p "$ac_dir"
  12840. else
  12841. as_dir="$ac_dir"
  12842. as_dirs=
  12843. while test ! -d "$as_dir"; do
  12844. as_dirs="$as_dir $as_dirs"
  12845. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12846. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12847. X"$as_dir" : 'X\(//\)[^/]' \| \
  12848. X"$as_dir" : 'X\(//\)$' \| \
  12849. X"$as_dir" : 'X\(/\)' \| \
  12850. . : '\(.\)' 2>/dev/null ||
  12851. echo X"$as_dir" |
  12852. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12853. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12854. /^X\(\/\/\)$/{ s//\1/; q; }
  12855. /^X\(\/\).*/{ s//\1/; q; }
  12856. s/.*/./; q'`
  12857. done
  12858. test ! -n "$as_dirs" || mkdir $as_dirs
  12859. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12860. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12861. { (exit 1); exit 1; }; }; }
  12862. ac_builddir=.
  12863. if test "$ac_dir" != .; then
  12864. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12865. # A "../" for each directory in $ac_dir_suffix.
  12866. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12867. else
  12868. ac_dir_suffix= ac_top_builddir=
  12869. fi
  12870. case $srcdir in
  12871. .) # No --srcdir option. We are building in place.
  12872. ac_srcdir=.
  12873. if test -z "$ac_top_builddir"; then
  12874. ac_top_srcdir=.
  12875. else
  12876. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12877. fi ;;
  12878. [\\/]* | ?:[\\/]* ) # Absolute path.
  12879. ac_srcdir=$srcdir$ac_dir_suffix;
  12880. ac_top_srcdir=$srcdir ;;
  12881. *) # Relative path.
  12882. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12883. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12884. esac
  12885. # Do not use `cd foo && pwd` to compute absolute paths, because
  12886. # the directories may not exist.
  12887. case `pwd` in
  12888. .) ac_abs_builddir="$ac_dir";;
  12889. *)
  12890. case "$ac_dir" in
  12891. .) ac_abs_builddir=`pwd`;;
  12892. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12893. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12894. esac;;
  12895. esac
  12896. case $ac_abs_builddir in
  12897. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12898. *)
  12899. case ${ac_top_builddir}. in
  12900. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12901. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12902. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12903. esac;;
  12904. esac
  12905. case $ac_abs_builddir in
  12906. .) ac_abs_srcdir=$ac_srcdir;;
  12907. *)
  12908. case $ac_srcdir in
  12909. .) ac_abs_srcdir=$ac_abs_builddir;;
  12910. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12911. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12912. esac;;
  12913. esac
  12914. case $ac_abs_builddir in
  12915. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12916. *)
  12917. case $ac_top_srcdir in
  12918. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12919. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12920. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12921. esac;;
  12922. esac
  12923. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12924. # use $as_me), people would be surprised to read:
  12925. # /* config.h. Generated by config.status. */
  12926. if test x"$ac_file" = x-; then
  12927. configure_input=
  12928. else
  12929. configure_input="$ac_file. "
  12930. fi
  12931. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12932. sed 's,.*/,,'` by configure."
  12933. # First look for the input files in the build tree, otherwise in the
  12934. # src tree.
  12935. ac_file_inputs=`IFS=:
  12936. for f in $ac_file_in; do
  12937. case $f in
  12938. -) echo $tmp/stdin ;;
  12939. [\\/$]*)
  12940. # Absolute (can't be DOS-style, as IFS=:)
  12941. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12942. echo "$as_me: error: cannot find input file: $f" >&2;}
  12943. { (exit 1); exit 1; }; }
  12944. echo "$f";;
  12945. *) # Relative
  12946. if test -f "$f"; then
  12947. # Build tree
  12948. echo "$f"
  12949. elif test -f "$srcdir/$f"; then
  12950. # Source tree
  12951. echo "$srcdir/$f"
  12952. else
  12953. # /dev/null tree
  12954. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12955. echo "$as_me: error: cannot find input file: $f" >&2;}
  12956. { (exit 1); exit 1; }; }
  12957. fi;;
  12958. esac
  12959. done` || { (exit 1); exit 1; }
  12960. if test x"$ac_file" != x-; then
  12961. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12962. echo "$as_me: creating $ac_file" >&6;}
  12963. rm -f "$ac_file"
  12964. fi
  12965. _ACEOF
  12966. cat >>$CONFIG_STATUS <<_ACEOF
  12967. sed "$ac_vpsub
  12968. $extrasub
  12969. _ACEOF
  12970. cat >>$CONFIG_STATUS <<\_ACEOF
  12971. :t
  12972. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12973. s,@configure_input@,$configure_input,;t t
  12974. s,@srcdir@,$ac_srcdir,;t t
  12975. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12976. s,@top_srcdir@,$ac_top_srcdir,;t t
  12977. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12978. s,@builddir@,$ac_builddir,;t t
  12979. s,@abs_builddir@,$ac_abs_builddir,;t t
  12980. s,@top_builddir@,$ac_top_builddir,;t t
  12981. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12982. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12983. rm -f $tmp/stdin
  12984. if test x"$ac_file" != x-; then
  12985. mv $tmp/out $ac_file
  12986. else
  12987. cat $tmp/out
  12988. rm -f $tmp/out
  12989. fi
  12990. done
  12991. _ACEOF
  12992. cat >>$CONFIG_STATUS <<\_ACEOF
  12993. #
  12994. # CONFIG_HEADER section.
  12995. #
  12996. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12997. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12998. #
  12999. # ac_d sets the value in "#define NAME VALUE" lines.
  13000. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  13001. ac_dB='[ ].*$,\1#\2'
  13002. ac_dC=' '
  13003. ac_dD=',;t'
  13004. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  13005. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  13006. ac_uB='$,\1#\2define\3'
  13007. ac_uC=' '
  13008. ac_uD=',;t'
  13009. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  13010. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  13011. case $ac_file in
  13012. - | *:- | *:-:* ) # input from stdin
  13013. cat >$tmp/stdin
  13014. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13015. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13016. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13017. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13018. * ) ac_file_in=$ac_file.in ;;
  13019. esac
  13020. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  13021. echo "$as_me: creating $ac_file" >&6;}
  13022. # First look for the input files in the build tree, otherwise in the
  13023. # src tree.
  13024. ac_file_inputs=`IFS=:
  13025. for f in $ac_file_in; do
  13026. case $f in
  13027. -) echo $tmp/stdin ;;
  13028. [\\/$]*)
  13029. # Absolute (can't be DOS-style, as IFS=:)
  13030. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13031. echo "$as_me: error: cannot find input file: $f" >&2;}
  13032. { (exit 1); exit 1; }; }
  13033. # Do quote $f, to prevent DOS paths from being IFS'd.
  13034. echo "$f";;
  13035. *) # Relative
  13036. if test -f "$f"; then
  13037. # Build tree
  13038. echo "$f"
  13039. elif test -f "$srcdir/$f"; then
  13040. # Source tree
  13041. echo "$srcdir/$f"
  13042. else
  13043. # /dev/null tree
  13044. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13045. echo "$as_me: error: cannot find input file: $f" >&2;}
  13046. { (exit 1); exit 1; }; }
  13047. fi;;
  13048. esac
  13049. done` || { (exit 1); exit 1; }
  13050. # Remove the trailing spaces.
  13051. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  13052. _ACEOF
  13053. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  13054. # `conftest.undefs', that substitutes the proper values into
  13055. # config.h.in to produce config.h. The first handles `#define'
  13056. # templates, and the second `#undef' templates.
  13057. # And first: Protect against being on the right side of a sed subst in
  13058. # config.status. Protect against being in an unquoted here document
  13059. # in config.status.
  13060. rm -f conftest.defines conftest.undefs
  13061. # Using a here document instead of a string reduces the quoting nightmare.
  13062. # Putting comments in sed scripts is not portable.
  13063. #
  13064. # `end' is used to avoid that the second main sed command (meant for
  13065. # 0-ary CPP macros) applies to n-ary macro definitions.
  13066. # See the Autoconf documentation for `clear'.
  13067. cat >confdef2sed.sed <<\_ACEOF
  13068. s/[\\&,]/\\&/g
  13069. s,[\\$`],\\&,g
  13070. t clear
  13071. : clear
  13072. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  13073. t end
  13074. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  13075. : end
  13076. _ACEOF
  13077. # If some macros were called several times there might be several times
  13078. # the same #defines, which is useless. Nevertheless, we may not want to
  13079. # sort them, since we want the *last* AC-DEFINE to be honored.
  13080. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  13081. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  13082. rm -f confdef2sed.sed
  13083. # This sed command replaces #undef with comments. This is necessary, for
  13084. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13085. # on some systems where configure will not decide to define it.
  13086. cat >>conftest.undefs <<\_ACEOF
  13087. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  13088. _ACEOF
  13089. # Break up conftest.defines because some shells have a limit on the size
  13090. # of here documents, and old seds have small limits too (100 cmds).
  13091. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  13092. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  13093. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  13094. echo ' :' >>$CONFIG_STATUS
  13095. rm -f conftest.tail
  13096. while grep . conftest.defines >/dev/null
  13097. do
  13098. # Write a limited-size here document to $tmp/defines.sed.
  13099. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  13100. # Speed up: don't consider the non `#define' lines.
  13101. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  13102. # Work around the forget-to-reset-the-flag bug.
  13103. echo 't clr' >>$CONFIG_STATUS
  13104. echo ': clr' >>$CONFIG_STATUS
  13105. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  13106. echo 'CEOF
  13107. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  13108. rm -f $tmp/in
  13109. mv $tmp/out $tmp/in
  13110. ' >>$CONFIG_STATUS
  13111. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  13112. rm -f conftest.defines
  13113. mv conftest.tail conftest.defines
  13114. done
  13115. rm -f conftest.defines
  13116. echo ' fi # grep' >>$CONFIG_STATUS
  13117. echo >>$CONFIG_STATUS
  13118. # Break up conftest.undefs because some shells have a limit on the size
  13119. # of here documents, and old seds have small limits too (100 cmds).
  13120. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  13121. rm -f conftest.tail
  13122. while grep . conftest.undefs >/dev/null
  13123. do
  13124. # Write a limited-size here document to $tmp/undefs.sed.
  13125. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  13126. # Speed up: don't consider the non `#undef'
  13127. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  13128. # Work around the forget-to-reset-the-flag bug.
  13129. echo 't clr' >>$CONFIG_STATUS
  13130. echo ': clr' >>$CONFIG_STATUS
  13131. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  13132. echo 'CEOF
  13133. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  13134. rm -f $tmp/in
  13135. mv $tmp/out $tmp/in
  13136. ' >>$CONFIG_STATUS
  13137. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  13138. rm -f conftest.undefs
  13139. mv conftest.tail conftest.undefs
  13140. done
  13141. rm -f conftest.undefs
  13142. cat >>$CONFIG_STATUS <<\_ACEOF
  13143. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13144. # use $as_me), people would be surprised to read:
  13145. # /* config.h. Generated by config.status. */
  13146. if test x"$ac_file" = x-; then
  13147. echo "/* Generated by configure. */" >$tmp/config.h
  13148. else
  13149. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  13150. fi
  13151. cat $tmp/in >>$tmp/config.h
  13152. rm -f $tmp/in
  13153. if test x"$ac_file" != x-; then
  13154. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  13155. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13156. echo "$as_me: $ac_file is unchanged" >&6;}
  13157. else
  13158. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  13159. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13160. X"$ac_file" : 'X\(//\)[^/]' \| \
  13161. X"$ac_file" : 'X\(//\)$' \| \
  13162. X"$ac_file" : 'X\(/\)' \| \
  13163. . : '\(.\)' 2>/dev/null ||
  13164. echo X"$ac_file" |
  13165. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13166. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13167. /^X\(\/\/\)$/{ s//\1/; q; }
  13168. /^X\(\/\).*/{ s//\1/; q; }
  13169. s/.*/./; q'`
  13170. { if $as_mkdir_p; then
  13171. mkdir -p "$ac_dir"
  13172. else
  13173. as_dir="$ac_dir"
  13174. as_dirs=
  13175. while test ! -d "$as_dir"; do
  13176. as_dirs="$as_dir $as_dirs"
  13177. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13178. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13179. X"$as_dir" : 'X\(//\)[^/]' \| \
  13180. X"$as_dir" : 'X\(//\)$' \| \
  13181. X"$as_dir" : 'X\(/\)' \| \
  13182. . : '\(.\)' 2>/dev/null ||
  13183. echo X"$as_dir" |
  13184. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13185. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13186. /^X\(\/\/\)$/{ s//\1/; q; }
  13187. /^X\(\/\).*/{ s//\1/; q; }
  13188. s/.*/./; q'`
  13189. done
  13190. test ! -n "$as_dirs" || mkdir $as_dirs
  13191. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13192. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13193. { (exit 1); exit 1; }; }; }
  13194. rm -f $ac_file
  13195. mv $tmp/config.h $ac_file
  13196. fi
  13197. else
  13198. cat $tmp/config.h
  13199. rm -f $tmp/config.h
  13200. fi
  13201. done
  13202. _ACEOF
  13203. cat >>$CONFIG_STATUS <<\_ACEOF
  13204. #
  13205. # CONFIG_COMMANDS section.
  13206. #
  13207. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  13208. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  13209. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13210. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  13211. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13212. X"$ac_dest" : 'X\(//\)[^/]' \| \
  13213. X"$ac_dest" : 'X\(//\)$' \| \
  13214. X"$ac_dest" : 'X\(/\)' \| \
  13215. . : '\(.\)' 2>/dev/null ||
  13216. echo X"$ac_dest" |
  13217. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13218. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13219. /^X\(\/\/\)$/{ s//\1/; q; }
  13220. /^X\(\/\).*/{ s//\1/; q; }
  13221. s/.*/./; q'`
  13222. { if $as_mkdir_p; then
  13223. mkdir -p "$ac_dir"
  13224. else
  13225. as_dir="$ac_dir"
  13226. as_dirs=
  13227. while test ! -d "$as_dir"; do
  13228. as_dirs="$as_dir $as_dirs"
  13229. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13230. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13231. X"$as_dir" : 'X\(//\)[^/]' \| \
  13232. X"$as_dir" : 'X\(//\)$' \| \
  13233. X"$as_dir" : 'X\(/\)' \| \
  13234. . : '\(.\)' 2>/dev/null ||
  13235. echo X"$as_dir" |
  13236. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13237. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13238. /^X\(\/\/\)$/{ s//\1/; q; }
  13239. /^X\(\/\).*/{ s//\1/; q; }
  13240. s/.*/./; q'`
  13241. done
  13242. test ! -n "$as_dirs" || mkdir $as_dirs
  13243. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13244. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13245. { (exit 1); exit 1; }; }; }
  13246. ac_builddir=.
  13247. if test "$ac_dir" != .; then
  13248. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13249. # A "../" for each directory in $ac_dir_suffix.
  13250. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  13251. else
  13252. ac_dir_suffix= ac_top_builddir=
  13253. fi
  13254. case $srcdir in
  13255. .) # No --srcdir option. We are building in place.
  13256. ac_srcdir=.
  13257. if test -z "$ac_top_builddir"; then
  13258. ac_top_srcdir=.
  13259. else
  13260. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  13261. fi ;;
  13262. [\\/]* | ?:[\\/]* ) # Absolute path.
  13263. ac_srcdir=$srcdir$ac_dir_suffix;
  13264. ac_top_srcdir=$srcdir ;;
  13265. *) # Relative path.
  13266. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  13267. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  13268. esac
  13269. # Do not use `cd foo && pwd` to compute absolute paths, because
  13270. # the directories may not exist.
  13271. case `pwd` in
  13272. .) ac_abs_builddir="$ac_dir";;
  13273. *)
  13274. case "$ac_dir" in
  13275. .) ac_abs_builddir=`pwd`;;
  13276. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  13277. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  13278. esac;;
  13279. esac
  13280. case $ac_abs_builddir in
  13281. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  13282. *)
  13283. case ${ac_top_builddir}. in
  13284. .) ac_abs_top_builddir=$ac_abs_builddir;;
  13285. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  13286. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  13287. esac;;
  13288. esac
  13289. case $ac_abs_builddir in
  13290. .) ac_abs_srcdir=$ac_srcdir;;
  13291. *)
  13292. case $ac_srcdir in
  13293. .) ac_abs_srcdir=$ac_abs_builddir;;
  13294. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  13295. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  13296. esac;;
  13297. esac
  13298. case $ac_abs_builddir in
  13299. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  13300. *)
  13301. case $ac_top_srcdir in
  13302. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  13303. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  13304. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  13305. esac;;
  13306. esac
  13307. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  13308. echo "$as_me: executing $ac_dest commands" >&6;}
  13309. case $ac_dest in
  13310. replace-if-changed )
  13311. egg_replace_file="lush.h"
  13312. cat > conftest.out << EOF
  13313. /* Ignore me but do not erase me. I am a kludge. */
  13314. #include "${egg_tclinc}/${egg_tclincfn}"
  13315. EOF
  13316. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  13317. echo "lush.h is unchanged"
  13318. else
  13319. echo "creating lush.h"
  13320. mv conftest.out $egg_replace_file
  13321. fi
  13322. rm -f conftest.out
  13323. ;;
  13324. esac
  13325. done
  13326. _ACEOF
  13327. cat >>$CONFIG_STATUS <<\_ACEOF
  13328. { (exit 0); exit 0; }
  13329. _ACEOF
  13330. chmod +x $CONFIG_STATUS
  13331. ac_clean_files=$ac_clean_files_save
  13332. # configure is writing to config.log, and then calls config.status.
  13333. # config.status does its own redirection, appending to config.log.
  13334. # Unfortunately, on DOS this fails, as config.log is still kept open
  13335. # by configure, so config.status won't be able to write to it; its
  13336. # output is simply discarded. So we exec the FD to /dev/null,
  13337. # effectively closing config.log, so it can be properly (re)opened and
  13338. # appended to by config.status. When coming back to configure, we
  13339. # need to make the FD available again.
  13340. if test "$no_create" != yes; then
  13341. ac_cs_success=:
  13342. ac_config_status_args=
  13343. test "$silent" = yes &&
  13344. ac_config_status_args="$ac_config_status_args --quiet"
  13345. exec 5>/dev/null
  13346. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13347. exec 5>>config.log
  13348. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13349. # would make configure fail if this is the last instruction.
  13350. $ac_cs_success || { (exit 1); exit 1; }
  13351. fi