configure 411 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.11 .
  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 STRIP AWK BASENAME OBJCOPY DISTCC UNAME 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. # Extract the first word of "strip", so it can be a program name with args.
  2974. set dummy strip; ac_word=$2
  2975. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2976. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2977. if test "${ac_cv_prog_STRIP+set}" = set; then
  2978. echo $ECHO_N "(cached) $ECHO_C" >&6
  2979. else
  2980. if test -n "$STRIP"; then
  2981. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2982. else
  2983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2984. for as_dir in $PATH
  2985. do
  2986. IFS=$as_save_IFS
  2987. test -z "$as_dir" && as_dir=.
  2988. for ac_exec_ext in '' $ac_executable_extensions; do
  2989. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2990. ac_cv_prog_STRIP="strip"
  2991. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2992. break 2
  2993. fi
  2994. done
  2995. done
  2996. fi
  2997. fi
  2998. STRIP=$ac_cv_prog_STRIP
  2999. if test -n "$STRIP"; then
  3000. echo "$as_me:$LINENO: result: $STRIP" >&5
  3001. echo "${ECHO_T}$STRIP" >&6
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. if test "${STRIP-x}" = "x"
  3007. then
  3008. STRIP=touch
  3009. fi
  3010. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3011. for ac_prog in gawk mawk nawk awk
  3012. do
  3013. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3014. set dummy $ac_prog; ac_word=$2
  3015. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3016. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3017. if test "${ac_cv_prog_AWK+set}" = set; then
  3018. echo $ECHO_N "(cached) $ECHO_C" >&6
  3019. else
  3020. if test -n "$AWK"; then
  3021. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3022. else
  3023. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3024. for as_dir in $PATH
  3025. do
  3026. IFS=$as_save_IFS
  3027. test -z "$as_dir" && as_dir=.
  3028. for ac_exec_ext in '' $ac_executable_extensions; do
  3029. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3030. ac_cv_prog_AWK="$ac_prog"
  3031. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3032. break 2
  3033. fi
  3034. done
  3035. done
  3036. fi
  3037. fi
  3038. AWK=$ac_cv_prog_AWK
  3039. if test -n "$AWK"; then
  3040. echo "$as_me:$LINENO: result: $AWK" >&5
  3041. echo "${ECHO_T}$AWK" >&6
  3042. else
  3043. echo "$as_me:$LINENO: result: no" >&5
  3044. echo "${ECHO_T}no" >&6
  3045. fi
  3046. test -n "$AWK" && break
  3047. done
  3048. if test "${AWK-x}" = "x"
  3049. then
  3050. cat << 'EOF' >&2
  3051. configure: error:
  3052. This system seems to lack a working 'awk' command.
  3053. A working 'awk' command is required to compile Eggdrop.
  3054. EOF
  3055. exit 1
  3056. fi
  3057. # basename is needed for Tcl library and header checks
  3058. # Extract the first word of "basename", so it can be a program name with args.
  3059. set dummy basename; ac_word=$2
  3060. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3061. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3062. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3063. echo $ECHO_N "(cached) $ECHO_C" >&6
  3064. else
  3065. if test -n "$BASENAME"; then
  3066. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3067. else
  3068. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3069. for as_dir in $PATH
  3070. do
  3071. IFS=$as_save_IFS
  3072. test -z "$as_dir" && as_dir=.
  3073. for ac_exec_ext in '' $ac_executable_extensions; do
  3074. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3075. ac_cv_prog_BASENAME="basename"
  3076. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3077. break 2
  3078. fi
  3079. done
  3080. done
  3081. fi
  3082. fi
  3083. BASENAME=$ac_cv_prog_BASENAME
  3084. if test -n "$BASENAME"; then
  3085. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3086. echo "${ECHO_T}$BASENAME" >&6
  3087. else
  3088. echo "$as_me:$LINENO: result: no" >&5
  3089. echo "${ECHO_T}no" >&6
  3090. fi
  3091. if test "${BASENAME-x}" = "x"
  3092. then
  3093. cat << 'EOF' >&2
  3094. configure: error:
  3095. This system seems to lack a working 'basename' command.
  3096. A working 'basename' command is required to compile Eggdrop.
  3097. EOF
  3098. exit 1
  3099. fi
  3100. # Extract the first word of "objcopy", so it can be a program name with args.
  3101. set dummy objcopy; ac_word=$2
  3102. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3103. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3104. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3105. echo $ECHO_N "(cached) $ECHO_C" >&6
  3106. else
  3107. if test -n "$OBJCOPY"; then
  3108. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3109. else
  3110. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3111. for as_dir in $PATH
  3112. do
  3113. IFS=$as_save_IFS
  3114. test -z "$as_dir" && as_dir=.
  3115. for ac_exec_ext in '' $ac_executable_extensions; do
  3116. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3117. ac_cv_prog_OBJCOPY="objcopy"
  3118. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3119. break 2
  3120. fi
  3121. done
  3122. done
  3123. fi
  3124. fi
  3125. OBJCOPY=$ac_cv_prog_OBJCOPY
  3126. if test -n "$OBJCOPY"; then
  3127. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3128. echo "${ECHO_T}$OBJCOPY" >&6
  3129. else
  3130. echo "$as_me:$LINENO: result: no" >&5
  3131. echo "${ECHO_T}no" >&6
  3132. fi
  3133. if ! test "${OBJCOPY-x}" = "x"
  3134. then
  3135. OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3136. else
  3137. OBJCOPY=touch
  3138. fi
  3139. #EGG_PROG_CCACHE
  3140. # Extract the first word of "distcc", so it can be a program name with args.
  3141. set dummy distcc; ac_word=$2
  3142. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3143. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3144. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3145. echo $ECHO_N "(cached) $ECHO_C" >&6
  3146. else
  3147. if test -n "$DISTCC"; then
  3148. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3149. else
  3150. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3151. for as_dir in $PATH
  3152. do
  3153. IFS=$as_save_IFS
  3154. test -z "$as_dir" && as_dir=.
  3155. for ac_exec_ext in '' $ac_executable_extensions; do
  3156. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3157. ac_cv_prog_DISTCC="distcc"
  3158. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3159. break 2
  3160. fi
  3161. done
  3162. done
  3163. fi
  3164. fi
  3165. DISTCC=$ac_cv_prog_DISTCC
  3166. if test -n "$DISTCC"; then
  3167. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3168. echo "${ECHO_T}$DISTCC" >&6
  3169. else
  3170. echo "$as_me:$LINENO: result: no" >&5
  3171. echo "${ECHO_T}no" >&6
  3172. fi
  3173. if ! test "${DISTCC-x}" = "x"
  3174. then
  3175. DISTCC=distcc
  3176. fi
  3177. # Extract the first word of "uname", so it can be a program name with args.
  3178. set dummy uname; ac_word=$2
  3179. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3180. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3181. if test "${ac_cv_prog_UNAME+set}" = set; then
  3182. echo $ECHO_N "(cached) $ECHO_C" >&6
  3183. else
  3184. if test -n "$UNAME"; then
  3185. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3186. else
  3187. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3188. for as_dir in $PATH
  3189. do
  3190. IFS=$as_save_IFS
  3191. test -z "$as_dir" && as_dir=.
  3192. for ac_exec_ext in '' $ac_executable_extensions; do
  3193. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3194. ac_cv_prog_UNAME="uname"
  3195. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3196. break 2
  3197. fi
  3198. done
  3199. done
  3200. fi
  3201. fi
  3202. UNAME=$ac_cv_prog_UNAME
  3203. if test -n "$UNAME"; then
  3204. echo "$as_me:$LINENO: result: $UNAME" >&5
  3205. echo "${ECHO_T}$UNAME" >&6
  3206. else
  3207. echo "$as_me:$LINENO: result: no" >&5
  3208. echo "${ECHO_T}no" >&6
  3209. fi
  3210. # Test the os and set the module linking settings
  3211. LINUX=no
  3212. IRIX=no
  3213. SUNOS=no
  3214. HPUX=no
  3215. EGG_CYGWIN=no
  3216. echo "$as_me:$LINENO: checking system type" >&5
  3217. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3218. if test "${egg_cv_var_system_type+set}" = set; then
  3219. echo $ECHO_N "(cached) $ECHO_C" >&6
  3220. else
  3221. egg_cv_var_system_type=`$UNAME -s`
  3222. fi
  3223. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3224. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3225. echo "$as_me:$LINENO: checking system release" >&5
  3226. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3227. if test "${egg_cv_var_system_release+set}" = set; then
  3228. echo $ECHO_N "(cached) $ECHO_C" >&6
  3229. else
  3230. egg_cv_var_system_release=`$UNAME -r`
  3231. fi
  3232. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3233. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3234. case "$egg_cv_var_system_type" in
  3235. BSD/OS)
  3236. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3237. 2)
  3238. ;;
  3239. *)
  3240. CFLAGS="$CFLAGS -Wall"
  3241. ;;
  3242. esac
  3243. ;;
  3244. CYGWI*)
  3245. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3246. 1.*)
  3247. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3248. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3249. WIN32FLAGS=
  3250. cat >conftest.$ac_ext <<_ACEOF
  3251. /* confdefs.h. */
  3252. _ACEOF
  3253. cat confdefs.h >>conftest.$ac_ext
  3254. cat >>conftest.$ac_ext <<_ACEOF
  3255. /* end confdefs.h. */
  3256. int
  3257. main ()
  3258. {
  3259. #ifndef WIN32
  3260. # ifndef _WIN32
  3261. # error WIN32 or _WIN32 not defined
  3262. # endif
  3263. #endif
  3264. ;
  3265. return 0;
  3266. }
  3267. _ACEOF
  3268. rm -f conftest.$ac_objext
  3269. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3270. (eval $ac_compile) 2>conftest.er1
  3271. ac_status=$?
  3272. grep -v '^ *+' conftest.er1 >conftest.err
  3273. rm -f conftest.er1
  3274. cat conftest.err >&5
  3275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3276. (exit $ac_status); } &&
  3277. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3279. (eval $ac_try) 2>&5
  3280. ac_status=$?
  3281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3282. (exit $ac_status); }; } &&
  3283. { ac_try='test -s conftest.$ac_objext'
  3284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3285. (eval $ac_try) 2>&5
  3286. ac_status=$?
  3287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3288. (exit $ac_status); }; }; then
  3289. echo "$as_me:$LINENO: result: present by default" >&5
  3290. echo "${ECHO_T}present by default" >&6
  3291. else
  3292. echo "$as_me: failed program was:" >&5
  3293. sed 's/^/| /' conftest.$ac_ext >&5
  3294. ac_compile_save="$ac_compile"
  3295. save_CC="$CC"
  3296. ac_compile="$ac_compile -mwin32"
  3297. CC="$CC -mwin32"
  3298. cat >conftest.$ac_ext <<_ACEOF
  3299. /* confdefs.h. */
  3300. _ACEOF
  3301. cat confdefs.h >>conftest.$ac_ext
  3302. cat >>conftest.$ac_ext <<_ACEOF
  3303. /* end confdefs.h. */
  3304. int
  3305. main ()
  3306. {
  3307. #ifndef WIN32
  3308. # ifndef _WIN32
  3309. # error WIN32 or _WIN32 not defined
  3310. # endif
  3311. #endif
  3312. ;
  3313. return 0;
  3314. }
  3315. _ACEOF
  3316. rm -f conftest.$ac_objext
  3317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3318. (eval $ac_compile) 2>conftest.er1
  3319. ac_status=$?
  3320. grep -v '^ *+' conftest.er1 >conftest.err
  3321. rm -f conftest.er1
  3322. cat conftest.err >&5
  3323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3324. (exit $ac_status); } &&
  3325. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3327. (eval $ac_try) 2>&5
  3328. ac_status=$?
  3329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3330. (exit $ac_status); }; } &&
  3331. { ac_try='test -s conftest.$ac_objext'
  3332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3333. (eval $ac_try) 2>&5
  3334. ac_status=$?
  3335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3336. (exit $ac_status); }; }; then
  3337. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3338. echo "${ECHO_T}found via -mwin32" >&6
  3339. ac_compile="$ac_compile_save"
  3340. CC="$save_CC"
  3341. WIN32FLAGS="-mwin32"
  3342. else
  3343. echo "$as_me: failed program was:" >&5
  3344. sed 's/^/| /' conftest.$ac_ext >&5
  3345. ac_compile="$ac_compile_save"
  3346. CC="$save_CC"
  3347. echo "$as_me:$LINENO: result: not found" >&5
  3348. echo "${ECHO_T}not found" >&6
  3349. fi
  3350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3351. fi
  3352. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3353. CC="$CC $WIN32FLAGS"
  3354. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3355. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3356. if test -r /usr/lib/binmode.o
  3357. then
  3358. echo "$as_me:$LINENO: result: yes" >&5
  3359. echo "${ECHO_T}yes" >&6
  3360. LIBS="$LIBS /usr/lib/binmode.o"
  3361. else
  3362. echo "$as_me:$LINENO: result: no" >&5
  3363. echo "${ECHO_T}no" >&6
  3364. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3365. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3366. fi
  3367. ;;
  3368. *)
  3369. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3370. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3371. ;;
  3372. esac
  3373. EGG_CYGWIN=yes
  3374. cat >>confdefs.h <<\_ACEOF
  3375. #define CYGWIN_HACKS 1
  3376. _ACEOF
  3377. ;;
  3378. HP-UX)
  3379. HPUX=yes
  3380. cat >>confdefs.h <<\_ACEOF
  3381. #define HPUX_HACKS 1
  3382. _ACEOF
  3383. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3384. then
  3385. cat >>confdefs.h <<\_ACEOF
  3386. #define HPUX10_HACKS 1
  3387. _ACEOF
  3388. fi
  3389. ;;
  3390. dell)
  3391. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3392. echo "${ECHO_T}Dell SVR4" >&6
  3393. ;;
  3394. IRIX)
  3395. IRIX=yes
  3396. ;;
  3397. Ultrix)
  3398. SHELL=/bin/sh5
  3399. ;;
  3400. SINIX*)
  3401. ;;
  3402. BeOS)
  3403. ;;
  3404. Linux)
  3405. LINUX=yes
  3406. CFLAGS="$CFLAGS -Wall"
  3407. ;;
  3408. Lynx)
  3409. ;;
  3410. QNX)
  3411. ;;
  3412. OSF1)
  3413. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3414. V*)
  3415. # FIXME: we should check this in a separate test
  3416. # Digital OSF uses an ancient version of gawk
  3417. if test "$AWK" = "gawk"
  3418. then
  3419. AWK=awk
  3420. fi
  3421. ;;
  3422. 1.0|1.1|1.2)
  3423. cat >>confdefs.h <<\_ACEOF
  3424. #define OSF1_HACKS 1
  3425. _ACEOF
  3426. ;;
  3427. 1.*)
  3428. cat >>confdefs.h <<\_ACEOF
  3429. #define OSF1_HACKS 1
  3430. _ACEOF
  3431. ;;
  3432. *)
  3433. ;;
  3434. esac
  3435. cat >>confdefs.h <<\_ACEOF
  3436. #define STOP_UAC 1
  3437. _ACEOF
  3438. cat >>confdefs.h <<\_ACEOF
  3439. #define BROKEN_SNPRINTF 1
  3440. _ACEOF
  3441. ;;
  3442. SunOS)
  3443. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3444. then
  3445. # SunOS 4
  3446. SUNOS=yes
  3447. fi
  3448. ;;
  3449. *BSD)
  3450. # FreeBSD/OpenBSD/NetBSD
  3451. ;;
  3452. *)
  3453. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3454. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3455. if test -r /mach
  3456. then
  3457. echo "$as_me:$LINENO: result: yes" >&5
  3458. echo "${ECHO_T}yes" >&6
  3459. cat >>confdefs.h <<\_ACEOF
  3460. #define BORGCUBES 1
  3461. _ACEOF
  3462. else
  3463. echo "$as_me:$LINENO: result: no" >&5
  3464. echo "${ECHO_T}no" >&6
  3465. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3466. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3467. if test -r /cmds
  3468. then
  3469. echo "$as_me:$LINENO: result: yes" >&5
  3470. echo "${ECHO_T}yes" >&6
  3471. else
  3472. echo "$as_me:$LINENO: result: no" >&5
  3473. echo "${ECHO_T}no" >&6
  3474. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3475. echo "${ECHO_T}Something unknown!" >&6
  3476. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3477. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3478. fi
  3479. fi
  3480. ;;
  3481. esac
  3482. dns_reslib_avail="true"
  3483. echo "$as_me:$LINENO: checking for res_init" >&5
  3484. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3485. if test "${ac_cv_func_res_init+set}" = set; then
  3486. echo $ECHO_N "(cached) $ECHO_C" >&6
  3487. else
  3488. cat >conftest.$ac_ext <<_ACEOF
  3489. /* confdefs.h. */
  3490. _ACEOF
  3491. cat confdefs.h >>conftest.$ac_ext
  3492. cat >>conftest.$ac_ext <<_ACEOF
  3493. /* end confdefs.h. */
  3494. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3495. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3496. #define res_init innocuous_res_init
  3497. /* System header to define __stub macros and hopefully few prototypes,
  3498. which can conflict with char res_init (); below.
  3499. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3500. <limits.h> exists even on freestanding compilers. */
  3501. #ifdef __STDC__
  3502. # include <limits.h>
  3503. #else
  3504. # include <assert.h>
  3505. #endif
  3506. #undef res_init
  3507. /* Override any gcc2 internal prototype to avoid an error. */
  3508. #ifdef __cplusplus
  3509. extern "C"
  3510. {
  3511. #endif
  3512. /* We use char because int might match the return type of a gcc2
  3513. builtin and then its argument prototype would still apply. */
  3514. char res_init ();
  3515. /* The GNU C library defines this for functions which it implements
  3516. to always fail with ENOSYS. Some functions are actually named
  3517. something starting with __ and the normal name is an alias. */
  3518. #if defined (__stub_res_init) || defined (__stub___res_init)
  3519. choke me
  3520. #else
  3521. char (*f) () = res_init;
  3522. #endif
  3523. #ifdef __cplusplus
  3524. }
  3525. #endif
  3526. int
  3527. main ()
  3528. {
  3529. return f != res_init;
  3530. ;
  3531. return 0;
  3532. }
  3533. _ACEOF
  3534. rm -f conftest.$ac_objext conftest$ac_exeext
  3535. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3536. (eval $ac_link) 2>conftest.er1
  3537. ac_status=$?
  3538. grep -v '^ *+' conftest.er1 >conftest.err
  3539. rm -f conftest.er1
  3540. cat conftest.err >&5
  3541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3542. (exit $ac_status); } &&
  3543. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3545. (eval $ac_try) 2>&5
  3546. ac_status=$?
  3547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3548. (exit $ac_status); }; } &&
  3549. { ac_try='test -s conftest$ac_exeext'
  3550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3551. (eval $ac_try) 2>&5
  3552. ac_status=$?
  3553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3554. (exit $ac_status); }; }; then
  3555. ac_cv_func_res_init=yes
  3556. else
  3557. echo "$as_me: failed program was:" >&5
  3558. sed 's/^/| /' conftest.$ac_ext >&5
  3559. ac_cv_func_res_init=no
  3560. fi
  3561. rm -f conftest.err conftest.$ac_objext \
  3562. conftest$ac_exeext conftest.$ac_ext
  3563. fi
  3564. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3565. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3566. if test $ac_cv_func_res_init = yes; then
  3567. :
  3568. else
  3569. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3570. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3571. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3572. echo $ECHO_N "(cached) $ECHO_C" >&6
  3573. else
  3574. ac_check_lib_save_LIBS=$LIBS
  3575. LIBS="-lresolv $LIBS"
  3576. cat >conftest.$ac_ext <<_ACEOF
  3577. /* confdefs.h. */
  3578. _ACEOF
  3579. cat confdefs.h >>conftest.$ac_ext
  3580. cat >>conftest.$ac_ext <<_ACEOF
  3581. /* end confdefs.h. */
  3582. /* Override any gcc2 internal prototype to avoid an error. */
  3583. #ifdef __cplusplus
  3584. extern "C"
  3585. #endif
  3586. /* We use char because int might match the return type of a gcc2
  3587. builtin and then its argument prototype would still apply. */
  3588. char res_init ();
  3589. int
  3590. main ()
  3591. {
  3592. res_init ();
  3593. ;
  3594. return 0;
  3595. }
  3596. _ACEOF
  3597. rm -f conftest.$ac_objext conftest$ac_exeext
  3598. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3599. (eval $ac_link) 2>conftest.er1
  3600. ac_status=$?
  3601. grep -v '^ *+' conftest.er1 >conftest.err
  3602. rm -f conftest.er1
  3603. cat conftest.err >&5
  3604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3605. (exit $ac_status); } &&
  3606. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3608. (eval $ac_try) 2>&5
  3609. ac_status=$?
  3610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3611. (exit $ac_status); }; } &&
  3612. { ac_try='test -s conftest$ac_exeext'
  3613. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3614. (eval $ac_try) 2>&5
  3615. ac_status=$?
  3616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3617. (exit $ac_status); }; }; then
  3618. ac_cv_lib_resolv_res_init=yes
  3619. else
  3620. echo "$as_me: failed program was:" >&5
  3621. sed 's/^/| /' conftest.$ac_ext >&5
  3622. ac_cv_lib_resolv_res_init=no
  3623. fi
  3624. rm -f conftest.err conftest.$ac_objext \
  3625. conftest$ac_exeext conftest.$ac_ext
  3626. LIBS=$ac_check_lib_save_LIBS
  3627. fi
  3628. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3629. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3630. if test $ac_cv_lib_resolv_res_init = yes; then
  3631. RESLIB="-lresolv"
  3632. else
  3633. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3634. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3635. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3636. echo $ECHO_N "(cached) $ECHO_C" >&6
  3637. else
  3638. ac_check_lib_save_LIBS=$LIBS
  3639. LIBS="-lbind $LIBS"
  3640. cat >conftest.$ac_ext <<_ACEOF
  3641. /* confdefs.h. */
  3642. _ACEOF
  3643. cat confdefs.h >>conftest.$ac_ext
  3644. cat >>conftest.$ac_ext <<_ACEOF
  3645. /* end confdefs.h. */
  3646. /* Override any gcc2 internal prototype to avoid an error. */
  3647. #ifdef __cplusplus
  3648. extern "C"
  3649. #endif
  3650. /* We use char because int might match the return type of a gcc2
  3651. builtin and then its argument prototype would still apply. */
  3652. char res_init ();
  3653. int
  3654. main ()
  3655. {
  3656. res_init ();
  3657. ;
  3658. return 0;
  3659. }
  3660. _ACEOF
  3661. rm -f conftest.$ac_objext conftest$ac_exeext
  3662. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3663. (eval $ac_link) 2>conftest.er1
  3664. ac_status=$?
  3665. grep -v '^ *+' conftest.er1 >conftest.err
  3666. rm -f conftest.er1
  3667. cat conftest.err >&5
  3668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3669. (exit $ac_status); } &&
  3670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3672. (eval $ac_try) 2>&5
  3673. ac_status=$?
  3674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3675. (exit $ac_status); }; } &&
  3676. { ac_try='test -s conftest$ac_exeext'
  3677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3678. (eval $ac_try) 2>&5
  3679. ac_status=$?
  3680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3681. (exit $ac_status); }; }; then
  3682. ac_cv_lib_bind_res_init=yes
  3683. else
  3684. echo "$as_me: failed program was:" >&5
  3685. sed 's/^/| /' conftest.$ac_ext >&5
  3686. ac_cv_lib_bind_res_init=no
  3687. fi
  3688. rm -f conftest.err conftest.$ac_objext \
  3689. conftest$ac_exeext conftest.$ac_ext
  3690. LIBS=$ac_check_lib_save_LIBS
  3691. fi
  3692. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3693. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3694. if test $ac_cv_lib_bind_res_init = yes; then
  3695. RESLIB="-lbind"
  3696. else
  3697. dns_reslib_avail="false";
  3698. fi
  3699. fi
  3700. fi
  3701. if test "${dns_reslib_avail}" = false; then
  3702. dns_reslib_avail="true"
  3703. echo "$as_me:$LINENO: checking for __res_init" >&5
  3704. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3705. if test "${ac_cv_func___res_init+set}" = set; then
  3706. echo $ECHO_N "(cached) $ECHO_C" >&6
  3707. else
  3708. cat >conftest.$ac_ext <<_ACEOF
  3709. /* confdefs.h. */
  3710. _ACEOF
  3711. cat confdefs.h >>conftest.$ac_ext
  3712. cat >>conftest.$ac_ext <<_ACEOF
  3713. /* end confdefs.h. */
  3714. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3715. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3716. #define __res_init innocuous___res_init
  3717. /* System header to define __stub macros and hopefully few prototypes,
  3718. which can conflict with char __res_init (); below.
  3719. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3720. <limits.h> exists even on freestanding compilers. */
  3721. #ifdef __STDC__
  3722. # include <limits.h>
  3723. #else
  3724. # include <assert.h>
  3725. #endif
  3726. #undef __res_init
  3727. /* Override any gcc2 internal prototype to avoid an error. */
  3728. #ifdef __cplusplus
  3729. extern "C"
  3730. {
  3731. #endif
  3732. /* We use char because int might match the return type of a gcc2
  3733. builtin and then its argument prototype would still apply. */
  3734. char __res_init ();
  3735. /* The GNU C library defines this for functions which it implements
  3736. to always fail with ENOSYS. Some functions are actually named
  3737. something starting with __ and the normal name is an alias. */
  3738. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3739. choke me
  3740. #else
  3741. char (*f) () = __res_init;
  3742. #endif
  3743. #ifdef __cplusplus
  3744. }
  3745. #endif
  3746. int
  3747. main ()
  3748. {
  3749. return f != __res_init;
  3750. ;
  3751. return 0;
  3752. }
  3753. _ACEOF
  3754. rm -f conftest.$ac_objext conftest$ac_exeext
  3755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3756. (eval $ac_link) 2>conftest.er1
  3757. ac_status=$?
  3758. grep -v '^ *+' conftest.er1 >conftest.err
  3759. rm -f conftest.er1
  3760. cat conftest.err >&5
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); } &&
  3763. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3765. (eval $ac_try) 2>&5
  3766. ac_status=$?
  3767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3768. (exit $ac_status); }; } &&
  3769. { ac_try='test -s conftest$ac_exeext'
  3770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3771. (eval $ac_try) 2>&5
  3772. ac_status=$?
  3773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3774. (exit $ac_status); }; }; then
  3775. ac_cv_func___res_init=yes
  3776. else
  3777. echo "$as_me: failed program was:" >&5
  3778. sed 's/^/| /' conftest.$ac_ext >&5
  3779. ac_cv_func___res_init=no
  3780. fi
  3781. rm -f conftest.err conftest.$ac_objext \
  3782. conftest$ac_exeext conftest.$ac_ext
  3783. fi
  3784. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3785. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3786. if test $ac_cv_func___res_init = yes; then
  3787. :
  3788. else
  3789. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3790. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3791. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3792. echo $ECHO_N "(cached) $ECHO_C" >&6
  3793. else
  3794. ac_check_lib_save_LIBS=$LIBS
  3795. LIBS="-lresolv $LIBS"
  3796. cat >conftest.$ac_ext <<_ACEOF
  3797. /* confdefs.h. */
  3798. _ACEOF
  3799. cat confdefs.h >>conftest.$ac_ext
  3800. cat >>conftest.$ac_ext <<_ACEOF
  3801. /* end confdefs.h. */
  3802. /* Override any gcc2 internal prototype to avoid an error. */
  3803. #ifdef __cplusplus
  3804. extern "C"
  3805. #endif
  3806. /* We use char because int might match the return type of a gcc2
  3807. builtin and then its argument prototype would still apply. */
  3808. char __res_init ();
  3809. int
  3810. main ()
  3811. {
  3812. __res_init ();
  3813. ;
  3814. return 0;
  3815. }
  3816. _ACEOF
  3817. rm -f conftest.$ac_objext conftest$ac_exeext
  3818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3819. (eval $ac_link) 2>conftest.er1
  3820. ac_status=$?
  3821. grep -v '^ *+' conftest.er1 >conftest.err
  3822. rm -f conftest.er1
  3823. cat conftest.err >&5
  3824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3825. (exit $ac_status); } &&
  3826. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3827. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3828. (eval $ac_try) 2>&5
  3829. ac_status=$?
  3830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3831. (exit $ac_status); }; } &&
  3832. { ac_try='test -s conftest$ac_exeext'
  3833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3834. (eval $ac_try) 2>&5
  3835. ac_status=$?
  3836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3837. (exit $ac_status); }; }; then
  3838. ac_cv_lib_resolv___res_init=yes
  3839. else
  3840. echo "$as_me: failed program was:" >&5
  3841. sed 's/^/| /' conftest.$ac_ext >&5
  3842. ac_cv_lib_resolv___res_init=no
  3843. fi
  3844. rm -f conftest.err conftest.$ac_objext \
  3845. conftest$ac_exeext conftest.$ac_ext
  3846. LIBS=$ac_check_lib_save_LIBS
  3847. fi
  3848. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3849. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3850. if test $ac_cv_lib_resolv___res_init = yes; then
  3851. RESLIB="-lresolv"
  3852. else
  3853. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3854. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3855. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3856. echo $ECHO_N "(cached) $ECHO_C" >&6
  3857. else
  3858. ac_check_lib_save_LIBS=$LIBS
  3859. LIBS="-lbind $LIBS"
  3860. cat >conftest.$ac_ext <<_ACEOF
  3861. /* confdefs.h. */
  3862. _ACEOF
  3863. cat confdefs.h >>conftest.$ac_ext
  3864. cat >>conftest.$ac_ext <<_ACEOF
  3865. /* end confdefs.h. */
  3866. /* Override any gcc2 internal prototype to avoid an error. */
  3867. #ifdef __cplusplus
  3868. extern "C"
  3869. #endif
  3870. /* We use char because int might match the return type of a gcc2
  3871. builtin and then its argument prototype would still apply. */
  3872. char __res_init ();
  3873. int
  3874. main ()
  3875. {
  3876. __res_init ();
  3877. ;
  3878. return 0;
  3879. }
  3880. _ACEOF
  3881. rm -f conftest.$ac_objext conftest$ac_exeext
  3882. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3883. (eval $ac_link) 2>conftest.er1
  3884. ac_status=$?
  3885. grep -v '^ *+' conftest.er1 >conftest.err
  3886. rm -f conftest.er1
  3887. cat conftest.err >&5
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); } &&
  3890. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3892. (eval $ac_try) 2>&5
  3893. ac_status=$?
  3894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3895. (exit $ac_status); }; } &&
  3896. { ac_try='test -s conftest$ac_exeext'
  3897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3898. (eval $ac_try) 2>&5
  3899. ac_status=$?
  3900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901. (exit $ac_status); }; }; then
  3902. ac_cv_lib_bind___res_init=yes
  3903. else
  3904. echo "$as_me: failed program was:" >&5
  3905. sed 's/^/| /' conftest.$ac_ext >&5
  3906. ac_cv_lib_bind___res_init=no
  3907. fi
  3908. rm -f conftest.err conftest.$ac_objext \
  3909. conftest$ac_exeext conftest.$ac_ext
  3910. LIBS=$ac_check_lib_save_LIBS
  3911. fi
  3912. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3913. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3914. if test $ac_cv_lib_bind___res_init = yes; then
  3915. RESLIB="-lbind"
  3916. else
  3917. dns_reslib_avail="false";
  3918. fi
  3919. fi
  3920. fi
  3921. fi
  3922. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3923. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3924. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3925. echo $ECHO_N "(cached) $ECHO_C" >&6
  3926. else
  3927. cat >conftest.$ac_ext <<_ACEOF
  3928. /* confdefs.h. */
  3929. _ACEOF
  3930. cat confdefs.h >>conftest.$ac_ext
  3931. cat >>conftest.$ac_ext <<_ACEOF
  3932. /* end confdefs.h. */
  3933. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3934. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3935. #define res_mkquery innocuous_res_mkquery
  3936. /* System header to define __stub macros and hopefully few prototypes,
  3937. which can conflict with char res_mkquery (); below.
  3938. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3939. <limits.h> exists even on freestanding compilers. */
  3940. #ifdef __STDC__
  3941. # include <limits.h>
  3942. #else
  3943. # include <assert.h>
  3944. #endif
  3945. #undef res_mkquery
  3946. /* Override any gcc2 internal prototype to avoid an error. */
  3947. #ifdef __cplusplus
  3948. extern "C"
  3949. {
  3950. #endif
  3951. /* We use char because int might match the return type of a gcc2
  3952. builtin and then its argument prototype would still apply. */
  3953. char res_mkquery ();
  3954. /* The GNU C library defines this for functions which it implements
  3955. to always fail with ENOSYS. Some functions are actually named
  3956. something starting with __ and the normal name is an alias. */
  3957. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3958. choke me
  3959. #else
  3960. char (*f) () = res_mkquery;
  3961. #endif
  3962. #ifdef __cplusplus
  3963. }
  3964. #endif
  3965. int
  3966. main ()
  3967. {
  3968. return f != res_mkquery;
  3969. ;
  3970. return 0;
  3971. }
  3972. _ACEOF
  3973. rm -f conftest.$ac_objext conftest$ac_exeext
  3974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3975. (eval $ac_link) 2>conftest.er1
  3976. ac_status=$?
  3977. grep -v '^ *+' conftest.er1 >conftest.err
  3978. rm -f conftest.er1
  3979. cat conftest.err >&5
  3980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3981. (exit $ac_status); } &&
  3982. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3984. (eval $ac_try) 2>&5
  3985. ac_status=$?
  3986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3987. (exit $ac_status); }; } &&
  3988. { ac_try='test -s conftest$ac_exeext'
  3989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3990. (eval $ac_try) 2>&5
  3991. ac_status=$?
  3992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3993. (exit $ac_status); }; }; then
  3994. ac_cv_func_res_mkquery=yes
  3995. else
  3996. echo "$as_me: failed program was:" >&5
  3997. sed 's/^/| /' conftest.$ac_ext >&5
  3998. ac_cv_func_res_mkquery=no
  3999. fi
  4000. rm -f conftest.err conftest.$ac_objext \
  4001. conftest$ac_exeext conftest.$ac_ext
  4002. fi
  4003. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  4004. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  4005. if test $ac_cv_func_res_mkquery = yes; then
  4006. :
  4007. else
  4008. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  4009. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  4010. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  4011. echo $ECHO_N "(cached) $ECHO_C" >&6
  4012. else
  4013. ac_check_lib_save_LIBS=$LIBS
  4014. LIBS="-lresolv $LIBS"
  4015. cat >conftest.$ac_ext <<_ACEOF
  4016. /* confdefs.h. */
  4017. _ACEOF
  4018. cat confdefs.h >>conftest.$ac_ext
  4019. cat >>conftest.$ac_ext <<_ACEOF
  4020. /* end confdefs.h. */
  4021. /* Override any gcc2 internal prototype to avoid an error. */
  4022. #ifdef __cplusplus
  4023. extern "C"
  4024. #endif
  4025. /* We use char because int might match the return type of a gcc2
  4026. builtin and then its argument prototype would still apply. */
  4027. char res_mkquery ();
  4028. int
  4029. main ()
  4030. {
  4031. res_mkquery ();
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. rm -f conftest.$ac_objext conftest$ac_exeext
  4037. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4038. (eval $ac_link) 2>conftest.er1
  4039. ac_status=$?
  4040. grep -v '^ *+' conftest.er1 >conftest.err
  4041. rm -f conftest.er1
  4042. cat conftest.err >&5
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); } &&
  4045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4047. (eval $ac_try) 2>&5
  4048. ac_status=$?
  4049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. (exit $ac_status); }; } &&
  4051. { ac_try='test -s conftest$ac_exeext'
  4052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4053. (eval $ac_try) 2>&5
  4054. ac_status=$?
  4055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4056. (exit $ac_status); }; }; then
  4057. ac_cv_lib_resolv_res_mkquery=yes
  4058. else
  4059. echo "$as_me: failed program was:" >&5
  4060. sed 's/^/| /' conftest.$ac_ext >&5
  4061. ac_cv_lib_resolv_res_mkquery=no
  4062. fi
  4063. rm -f conftest.err conftest.$ac_objext \
  4064. conftest$ac_exeext conftest.$ac_ext
  4065. LIBS=$ac_check_lib_save_LIBS
  4066. fi
  4067. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4068. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4069. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4070. if test "x${RESLIB}" != "x-lresolv"; then
  4071. RESLIB="${RESLIB} -lresolv"
  4072. fi
  4073. else
  4074. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4075. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4076. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4077. echo $ECHO_N "(cached) $ECHO_C" >&6
  4078. else
  4079. ac_check_lib_save_LIBS=$LIBS
  4080. LIBS="-lbind $LIBS"
  4081. cat >conftest.$ac_ext <<_ACEOF
  4082. /* confdefs.h. */
  4083. _ACEOF
  4084. cat confdefs.h >>conftest.$ac_ext
  4085. cat >>conftest.$ac_ext <<_ACEOF
  4086. /* end confdefs.h. */
  4087. /* Override any gcc2 internal prototype to avoid an error. */
  4088. #ifdef __cplusplus
  4089. extern "C"
  4090. #endif
  4091. /* We use char because int might match the return type of a gcc2
  4092. builtin and then its argument prototype would still apply. */
  4093. char res_mkquery ();
  4094. int
  4095. main ()
  4096. {
  4097. res_mkquery ();
  4098. ;
  4099. return 0;
  4100. }
  4101. _ACEOF
  4102. rm -f conftest.$ac_objext conftest$ac_exeext
  4103. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4104. (eval $ac_link) 2>conftest.er1
  4105. ac_status=$?
  4106. grep -v '^ *+' conftest.er1 >conftest.err
  4107. rm -f conftest.er1
  4108. cat conftest.err >&5
  4109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4110. (exit $ac_status); } &&
  4111. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4113. (eval $ac_try) 2>&5
  4114. ac_status=$?
  4115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4116. (exit $ac_status); }; } &&
  4117. { ac_try='test -s conftest$ac_exeext'
  4118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4119. (eval $ac_try) 2>&5
  4120. ac_status=$?
  4121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4122. (exit $ac_status); }; }; then
  4123. ac_cv_lib_bind_res_mkquery=yes
  4124. else
  4125. echo "$as_me: failed program was:" >&5
  4126. sed 's/^/| /' conftest.$ac_ext >&5
  4127. ac_cv_lib_bind_res_mkquery=no
  4128. fi
  4129. rm -f conftest.err conftest.$ac_objext \
  4130. conftest$ac_exeext conftest.$ac_ext
  4131. LIBS=$ac_check_lib_save_LIBS
  4132. fi
  4133. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4134. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4135. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4136. if test "x${RESLIB}" != "x-lbind"; then
  4137. RESLIB="${RESLIB} -lbind"
  4138. fi
  4139. else
  4140. dns_reslib_avail="false";
  4141. fi
  4142. fi
  4143. fi
  4144. if test "${dns_reslib_avail}" = false; then
  4145. dns_reslib_avail="true"
  4146. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4147. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4148. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4149. echo $ECHO_N "(cached) $ECHO_C" >&6
  4150. else
  4151. cat >conftest.$ac_ext <<_ACEOF
  4152. /* confdefs.h. */
  4153. _ACEOF
  4154. cat confdefs.h >>conftest.$ac_ext
  4155. cat >>conftest.$ac_ext <<_ACEOF
  4156. /* end confdefs.h. */
  4157. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4158. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4159. #define __res_mkquery innocuous___res_mkquery
  4160. /* System header to define __stub macros and hopefully few prototypes,
  4161. which can conflict with char __res_mkquery (); below.
  4162. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4163. <limits.h> exists even on freestanding compilers. */
  4164. #ifdef __STDC__
  4165. # include <limits.h>
  4166. #else
  4167. # include <assert.h>
  4168. #endif
  4169. #undef __res_mkquery
  4170. /* Override any gcc2 internal prototype to avoid an error. */
  4171. #ifdef __cplusplus
  4172. extern "C"
  4173. {
  4174. #endif
  4175. /* We use char because int might match the return type of a gcc2
  4176. builtin and then its argument prototype would still apply. */
  4177. char __res_mkquery ();
  4178. /* The GNU C library defines this for functions which it implements
  4179. to always fail with ENOSYS. Some functions are actually named
  4180. something starting with __ and the normal name is an alias. */
  4181. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4182. choke me
  4183. #else
  4184. char (*f) () = __res_mkquery;
  4185. #endif
  4186. #ifdef __cplusplus
  4187. }
  4188. #endif
  4189. int
  4190. main ()
  4191. {
  4192. return f != __res_mkquery;
  4193. ;
  4194. return 0;
  4195. }
  4196. _ACEOF
  4197. rm -f conftest.$ac_objext conftest$ac_exeext
  4198. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4199. (eval $ac_link) 2>conftest.er1
  4200. ac_status=$?
  4201. grep -v '^ *+' conftest.er1 >conftest.err
  4202. rm -f conftest.er1
  4203. cat conftest.err >&5
  4204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4205. (exit $ac_status); } &&
  4206. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4207. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4208. (eval $ac_try) 2>&5
  4209. ac_status=$?
  4210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. (exit $ac_status); }; } &&
  4212. { ac_try='test -s conftest$ac_exeext'
  4213. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4214. (eval $ac_try) 2>&5
  4215. ac_status=$?
  4216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4217. (exit $ac_status); }; }; then
  4218. ac_cv_func___res_mkquery=yes
  4219. else
  4220. echo "$as_me: failed program was:" >&5
  4221. sed 's/^/| /' conftest.$ac_ext >&5
  4222. ac_cv_func___res_mkquery=no
  4223. fi
  4224. rm -f conftest.err conftest.$ac_objext \
  4225. conftest$ac_exeext conftest.$ac_ext
  4226. fi
  4227. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4228. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4229. if test $ac_cv_func___res_mkquery = yes; then
  4230. :
  4231. else
  4232. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4233. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4234. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4235. echo $ECHO_N "(cached) $ECHO_C" >&6
  4236. else
  4237. ac_check_lib_save_LIBS=$LIBS
  4238. LIBS="-lresolv $LIBS"
  4239. cat >conftest.$ac_ext <<_ACEOF
  4240. /* confdefs.h. */
  4241. _ACEOF
  4242. cat confdefs.h >>conftest.$ac_ext
  4243. cat >>conftest.$ac_ext <<_ACEOF
  4244. /* end confdefs.h. */
  4245. /* Override any gcc2 internal prototype to avoid an error. */
  4246. #ifdef __cplusplus
  4247. extern "C"
  4248. #endif
  4249. /* We use char because int might match the return type of a gcc2
  4250. builtin and then its argument prototype would still apply. */
  4251. char __res_mkquery ();
  4252. int
  4253. main ()
  4254. {
  4255. __res_mkquery ();
  4256. ;
  4257. return 0;
  4258. }
  4259. _ACEOF
  4260. rm -f conftest.$ac_objext conftest$ac_exeext
  4261. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4262. (eval $ac_link) 2>conftest.er1
  4263. ac_status=$?
  4264. grep -v '^ *+' conftest.er1 >conftest.err
  4265. rm -f conftest.er1
  4266. cat conftest.err >&5
  4267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4268. (exit $ac_status); } &&
  4269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4271. (eval $ac_try) 2>&5
  4272. ac_status=$?
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); }; } &&
  4275. { ac_try='test -s conftest$ac_exeext'
  4276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4277. (eval $ac_try) 2>&5
  4278. ac_status=$?
  4279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4280. (exit $ac_status); }; }; then
  4281. ac_cv_lib_resolv___res_mkquery=yes
  4282. else
  4283. echo "$as_me: failed program was:" >&5
  4284. sed 's/^/| /' conftest.$ac_ext >&5
  4285. ac_cv_lib_resolv___res_mkquery=no
  4286. fi
  4287. rm -f conftest.err conftest.$ac_objext \
  4288. conftest$ac_exeext conftest.$ac_ext
  4289. LIBS=$ac_check_lib_save_LIBS
  4290. fi
  4291. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4292. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4293. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4294. if test "x${RESLIB}" != "x-lresolv"; then
  4295. RESLIB="${RESLIB} -lresolv"
  4296. fi
  4297. else
  4298. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4299. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4300. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4301. echo $ECHO_N "(cached) $ECHO_C" >&6
  4302. else
  4303. ac_check_lib_save_LIBS=$LIBS
  4304. LIBS="-lbind $LIBS"
  4305. cat >conftest.$ac_ext <<_ACEOF
  4306. /* confdefs.h. */
  4307. _ACEOF
  4308. cat confdefs.h >>conftest.$ac_ext
  4309. cat >>conftest.$ac_ext <<_ACEOF
  4310. /* end confdefs.h. */
  4311. /* Override any gcc2 internal prototype to avoid an error. */
  4312. #ifdef __cplusplus
  4313. extern "C"
  4314. #endif
  4315. /* We use char because int might match the return type of a gcc2
  4316. builtin and then its argument prototype would still apply. */
  4317. char __res_mkquery ();
  4318. int
  4319. main ()
  4320. {
  4321. __res_mkquery ();
  4322. ;
  4323. return 0;
  4324. }
  4325. _ACEOF
  4326. rm -f conftest.$ac_objext conftest$ac_exeext
  4327. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4328. (eval $ac_link) 2>conftest.er1
  4329. ac_status=$?
  4330. grep -v '^ *+' conftest.er1 >conftest.err
  4331. rm -f conftest.er1
  4332. cat conftest.err >&5
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); } &&
  4335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4337. (eval $ac_try) 2>&5
  4338. ac_status=$?
  4339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4340. (exit $ac_status); }; } &&
  4341. { ac_try='test -s conftest$ac_exeext'
  4342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4343. (eval $ac_try) 2>&5
  4344. ac_status=$?
  4345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4346. (exit $ac_status); }; }; then
  4347. ac_cv_lib_bind___res_mkquery=yes
  4348. else
  4349. echo "$as_me: failed program was:" >&5
  4350. sed 's/^/| /' conftest.$ac_ext >&5
  4351. ac_cv_lib_bind___res_mkquery=no
  4352. fi
  4353. rm -f conftest.err conftest.$ac_objext \
  4354. conftest$ac_exeext conftest.$ac_ext
  4355. LIBS=$ac_check_lib_save_LIBS
  4356. fi
  4357. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4358. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4359. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4360. if test "x${RESLIB}" != "x-lbind"; then
  4361. RESLIB="${RESLIB} -lbind"
  4362. fi
  4363. else
  4364. dns_reslib_avail="false";
  4365. fi
  4366. fi
  4367. fi
  4368. fi
  4369. if test "${dns_reslib_avail}" = false; then
  4370. if test "$ac_cv_cygwin" = "yes"; then
  4371. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4372. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4373. if test -r /usr/local/bind/lib/libbind.a; then
  4374. echo "$as_me:$LINENO: result: yes" >&5
  4375. echo "${ECHO_T}yes" >&6
  4376. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4377. RESINCLUDE="-I/usr/local/bind/include"
  4378. dns_reslib_avail="true"
  4379. else
  4380. echo "$as_me:$LINENO: result: no" >&5
  4381. echo "${ECHO_T}no" >&6
  4382. fi
  4383. fi
  4384. fi
  4385. if test "${dns_reslib_avail}" = false; then
  4386. cat >&2 <<EOF
  4387. configure: warning:
  4388. Your system provides no functional resolver library.
  4389. One is required for buld.
  4390. EOF
  4391. exit 1
  4392. fi
  4393. #checkpoint
  4394. cat >confcache <<\_ACEOF
  4395. # This file is a shell script that caches the results of configure
  4396. # tests run on this system so they can be shared between configure
  4397. # scripts and configure runs, see configure's option --config-cache.
  4398. # It is not useful on other systems. If it contains results you don't
  4399. # want to keep, you may remove or edit it.
  4400. #
  4401. # config.status only pays attention to the cache file if you give it
  4402. # the --recheck option to rerun configure.
  4403. #
  4404. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4405. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4406. # following values.
  4407. _ACEOF
  4408. # The following way of writing the cache mishandles newlines in values,
  4409. # but we know of no workaround that is simple, portable, and efficient.
  4410. # So, don't put newlines in cache variables' values.
  4411. # Ultrix sh set writes to stderr and can't be redirected directly,
  4412. # and sets the high bit in the cache file unless we assign to the vars.
  4413. {
  4414. (set) 2>&1 |
  4415. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4416. *ac_space=\ *)
  4417. # `set' does not quote correctly, so add quotes (double-quote
  4418. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4419. sed -n \
  4420. "s/'/'\\\\''/g;
  4421. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4422. ;;
  4423. *)
  4424. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4425. sed -n \
  4426. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4427. ;;
  4428. esac;
  4429. } |
  4430. sed '
  4431. t clear
  4432. : clear
  4433. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4434. t end
  4435. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4436. : end' >>confcache
  4437. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4438. if test -w $cache_file; then
  4439. test "x$cache_file" != "x/dev/null"
  4440. cat confcache >$cache_file
  4441. else
  4442. echo "not updating unwritable cache $cache_file"
  4443. fi
  4444. fi
  4445. rm -f confcache
  4446. # Checks for system libraries
  4447. # FIXME: this needs to be fixed so that it works on IRIX
  4448. if test "$IRIX" = "yes"
  4449. then
  4450. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  4451. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  4452. else
  4453. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4454. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4455. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4456. echo $ECHO_N "(cached) $ECHO_C" >&6
  4457. else
  4458. ac_check_lib_save_LIBS=$LIBS
  4459. LIBS="-lsocket $LIBS"
  4460. cat >conftest.$ac_ext <<_ACEOF
  4461. /* confdefs.h. */
  4462. _ACEOF
  4463. cat confdefs.h >>conftest.$ac_ext
  4464. cat >>conftest.$ac_ext <<_ACEOF
  4465. /* end confdefs.h. */
  4466. /* Override any gcc2 internal prototype to avoid an error. */
  4467. #ifdef __cplusplus
  4468. extern "C"
  4469. #endif
  4470. /* We use char because int might match the return type of a gcc2
  4471. builtin and then its argument prototype would still apply. */
  4472. char socket ();
  4473. int
  4474. main ()
  4475. {
  4476. socket ();
  4477. ;
  4478. return 0;
  4479. }
  4480. _ACEOF
  4481. rm -f conftest.$ac_objext conftest$ac_exeext
  4482. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4483. (eval $ac_link) 2>conftest.er1
  4484. ac_status=$?
  4485. grep -v '^ *+' conftest.er1 >conftest.err
  4486. rm -f conftest.er1
  4487. cat conftest.err >&5
  4488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4489. (exit $ac_status); } &&
  4490. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4492. (eval $ac_try) 2>&5
  4493. ac_status=$?
  4494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4495. (exit $ac_status); }; } &&
  4496. { ac_try='test -s conftest$ac_exeext'
  4497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4498. (eval $ac_try) 2>&5
  4499. ac_status=$?
  4500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4501. (exit $ac_status); }; }; then
  4502. ac_cv_lib_socket_socket=yes
  4503. else
  4504. echo "$as_me: failed program was:" >&5
  4505. sed 's/^/| /' conftest.$ac_ext >&5
  4506. ac_cv_lib_socket_socket=no
  4507. fi
  4508. rm -f conftest.err conftest.$ac_objext \
  4509. conftest$ac_exeext conftest.$ac_ext
  4510. LIBS=$ac_check_lib_save_LIBS
  4511. fi
  4512. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4513. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4514. if test $ac_cv_lib_socket_socket = yes; then
  4515. cat >>confdefs.h <<_ACEOF
  4516. #define HAVE_LIBSOCKET 1
  4517. _ACEOF
  4518. LIBS="-lsocket $LIBS"
  4519. fi
  4520. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  4521. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  4522. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  4523. echo $ECHO_N "(cached) $ECHO_C" >&6
  4524. else
  4525. ac_check_lib_save_LIBS=$LIBS
  4526. LIBS="-lnsl $LIBS"
  4527. cat >conftest.$ac_ext <<_ACEOF
  4528. /* confdefs.h. */
  4529. _ACEOF
  4530. cat confdefs.h >>conftest.$ac_ext
  4531. cat >>conftest.$ac_ext <<_ACEOF
  4532. /* end confdefs.h. */
  4533. /* Override any gcc2 internal prototype to avoid an error. */
  4534. #ifdef __cplusplus
  4535. extern "C"
  4536. #endif
  4537. /* We use char because int might match the return type of a gcc2
  4538. builtin and then its argument prototype would still apply. */
  4539. char connect ();
  4540. int
  4541. main ()
  4542. {
  4543. connect ();
  4544. ;
  4545. return 0;
  4546. }
  4547. _ACEOF
  4548. rm -f conftest.$ac_objext conftest$ac_exeext
  4549. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4550. (eval $ac_link) 2>conftest.er1
  4551. ac_status=$?
  4552. grep -v '^ *+' conftest.er1 >conftest.err
  4553. rm -f conftest.er1
  4554. cat conftest.err >&5
  4555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4556. (exit $ac_status); } &&
  4557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4559. (eval $ac_try) 2>&5
  4560. ac_status=$?
  4561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562. (exit $ac_status); }; } &&
  4563. { ac_try='test -s conftest$ac_exeext'
  4564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4565. (eval $ac_try) 2>&5
  4566. ac_status=$?
  4567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4568. (exit $ac_status); }; }; then
  4569. ac_cv_lib_nsl_connect=yes
  4570. else
  4571. echo "$as_me: failed program was:" >&5
  4572. sed 's/^/| /' conftest.$ac_ext >&5
  4573. ac_cv_lib_nsl_connect=no
  4574. fi
  4575. rm -f conftest.err conftest.$ac_objext \
  4576. conftest$ac_exeext conftest.$ac_ext
  4577. LIBS=$ac_check_lib_save_LIBS
  4578. fi
  4579. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  4580. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  4581. if test $ac_cv_lib_nsl_connect = yes; then
  4582. cat >>confdefs.h <<_ACEOF
  4583. #define HAVE_LIBNSL 1
  4584. _ACEOF
  4585. LIBS="-lnsl $LIBS"
  4586. fi
  4587. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4588. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4589. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4590. echo $ECHO_N "(cached) $ECHO_C" >&6
  4591. else
  4592. ac_check_lib_save_LIBS=$LIBS
  4593. LIBS="-ldns $LIBS"
  4594. cat >conftest.$ac_ext <<_ACEOF
  4595. /* confdefs.h. */
  4596. _ACEOF
  4597. cat confdefs.h >>conftest.$ac_ext
  4598. cat >>conftest.$ac_ext <<_ACEOF
  4599. /* end confdefs.h. */
  4600. /* Override any gcc2 internal prototype to avoid an error. */
  4601. #ifdef __cplusplus
  4602. extern "C"
  4603. #endif
  4604. /* We use char because int might match the return type of a gcc2
  4605. builtin and then its argument prototype would still apply. */
  4606. char gethostbyname ();
  4607. int
  4608. main ()
  4609. {
  4610. gethostbyname ();
  4611. ;
  4612. return 0;
  4613. }
  4614. _ACEOF
  4615. rm -f conftest.$ac_objext conftest$ac_exeext
  4616. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4617. (eval $ac_link) 2>conftest.er1
  4618. ac_status=$?
  4619. grep -v '^ *+' conftest.er1 >conftest.err
  4620. rm -f conftest.er1
  4621. cat conftest.err >&5
  4622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4623. (exit $ac_status); } &&
  4624. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4626. (eval $ac_try) 2>&5
  4627. ac_status=$?
  4628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4629. (exit $ac_status); }; } &&
  4630. { ac_try='test -s conftest$ac_exeext'
  4631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4632. (eval $ac_try) 2>&5
  4633. ac_status=$?
  4634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4635. (exit $ac_status); }; }; then
  4636. ac_cv_lib_dns_gethostbyname=yes
  4637. else
  4638. echo "$as_me: failed program was:" >&5
  4639. sed 's/^/| /' conftest.$ac_ext >&5
  4640. ac_cv_lib_dns_gethostbyname=no
  4641. fi
  4642. rm -f conftest.err conftest.$ac_objext \
  4643. conftest$ac_exeext conftest.$ac_ext
  4644. LIBS=$ac_check_lib_save_LIBS
  4645. fi
  4646. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4647. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4648. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4649. cat >>confdefs.h <<_ACEOF
  4650. #define HAVE_LIBDNS 1
  4651. _ACEOF
  4652. LIBS="-ldns $LIBS"
  4653. fi
  4654. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  4655. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  4656. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  4657. echo $ECHO_N "(cached) $ECHO_C" >&6
  4658. else
  4659. ac_check_lib_save_LIBS=$LIBS
  4660. LIBS="-lz $LIBS"
  4661. cat >conftest.$ac_ext <<_ACEOF
  4662. /* confdefs.h. */
  4663. _ACEOF
  4664. cat confdefs.h >>conftest.$ac_ext
  4665. cat >>conftest.$ac_ext <<_ACEOF
  4666. /* end confdefs.h. */
  4667. /* Override any gcc2 internal prototype to avoid an error. */
  4668. #ifdef __cplusplus
  4669. extern "C"
  4670. #endif
  4671. /* We use char because int might match the return type of a gcc2
  4672. builtin and then its argument prototype would still apply. */
  4673. char gzopen ();
  4674. int
  4675. main ()
  4676. {
  4677. gzopen ();
  4678. ;
  4679. return 0;
  4680. }
  4681. _ACEOF
  4682. rm -f conftest.$ac_objext conftest$ac_exeext
  4683. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4684. (eval $ac_link) 2>conftest.er1
  4685. ac_status=$?
  4686. grep -v '^ *+' conftest.er1 >conftest.err
  4687. rm -f conftest.er1
  4688. cat conftest.err >&5
  4689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4690. (exit $ac_status); } &&
  4691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4693. (eval $ac_try) 2>&5
  4694. ac_status=$?
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); }; } &&
  4697. { ac_try='test -s conftest$ac_exeext'
  4698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4699. (eval $ac_try) 2>&5
  4700. ac_status=$?
  4701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4702. (exit $ac_status); }; }; then
  4703. ac_cv_lib_z_gzopen=yes
  4704. else
  4705. echo "$as_me: failed program was:" >&5
  4706. sed 's/^/| /' conftest.$ac_ext >&5
  4707. ac_cv_lib_z_gzopen=no
  4708. fi
  4709. rm -f conftest.err conftest.$ac_objext \
  4710. conftest$ac_exeext conftest.$ac_ext
  4711. LIBS=$ac_check_lib_save_LIBS
  4712. fi
  4713. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  4714. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  4715. if test $ac_cv_lib_z_gzopen = yes; then
  4716. ZLIB="-lz"
  4717. fi
  4718. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  4719. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  4720. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  4721. echo $ECHO_N "(cached) $ECHO_C" >&6
  4722. else
  4723. ac_check_lib_save_LIBS=$LIBS
  4724. LIBS="-lssl -lcrypto $LIBS"
  4725. cat >conftest.$ac_ext <<_ACEOF
  4726. /* confdefs.h. */
  4727. _ACEOF
  4728. cat confdefs.h >>conftest.$ac_ext
  4729. cat >>conftest.$ac_ext <<_ACEOF
  4730. /* end confdefs.h. */
  4731. /* Override any gcc2 internal prototype to avoid an error. */
  4732. #ifdef __cplusplus
  4733. extern "C"
  4734. #endif
  4735. /* We use char because int might match the return type of a gcc2
  4736. builtin and then its argument prototype would still apply. */
  4737. char SSL_accept ();
  4738. int
  4739. main ()
  4740. {
  4741. SSL_accept ();
  4742. ;
  4743. return 0;
  4744. }
  4745. _ACEOF
  4746. rm -f conftest.$ac_objext conftest$ac_exeext
  4747. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4748. (eval $ac_link) 2>conftest.er1
  4749. ac_status=$?
  4750. grep -v '^ *+' conftest.er1 >conftest.err
  4751. rm -f conftest.er1
  4752. cat conftest.err >&5
  4753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4754. (exit $ac_status); } &&
  4755. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4757. (eval $ac_try) 2>&5
  4758. ac_status=$?
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); }; } &&
  4761. { ac_try='test -s conftest$ac_exeext'
  4762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4763. (eval $ac_try) 2>&5
  4764. ac_status=$?
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }; }; then
  4767. ac_cv_lib_ssl_SSL_accept=yes
  4768. else
  4769. echo "$as_me: failed program was:" >&5
  4770. sed 's/^/| /' conftest.$ac_ext >&5
  4771. ac_cv_lib_ssl_SSL_accept=no
  4772. fi
  4773. rm -f conftest.err conftest.$ac_objext \
  4774. conftest$ac_exeext conftest.$ac_ext
  4775. LIBS=$ac_check_lib_save_LIBS
  4776. fi
  4777. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  4778. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  4779. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  4780. SSL="-lssl -lcrypto"
  4781. else
  4782. SSL=""
  4783. fi
  4784. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  4785. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  4786. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  4787. echo $ECHO_N "(cached) $ECHO_C" >&6
  4788. else
  4789. ac_check_lib_save_LIBS=$LIBS
  4790. LIBS="-ldl $LIBS"
  4791. cat >conftest.$ac_ext <<_ACEOF
  4792. /* confdefs.h. */
  4793. _ACEOF
  4794. cat confdefs.h >>conftest.$ac_ext
  4795. cat >>conftest.$ac_ext <<_ACEOF
  4796. /* end confdefs.h. */
  4797. /* Override any gcc2 internal prototype to avoid an error. */
  4798. #ifdef __cplusplus
  4799. extern "C"
  4800. #endif
  4801. /* We use char because int might match the return type of a gcc2
  4802. builtin and then its argument prototype would still apply. */
  4803. char dlopen ();
  4804. int
  4805. main ()
  4806. {
  4807. dlopen ();
  4808. ;
  4809. return 0;
  4810. }
  4811. _ACEOF
  4812. rm -f conftest.$ac_objext conftest$ac_exeext
  4813. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4814. (eval $ac_link) 2>conftest.er1
  4815. ac_status=$?
  4816. grep -v '^ *+' conftest.er1 >conftest.err
  4817. rm -f conftest.er1
  4818. cat conftest.err >&5
  4819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4820. (exit $ac_status); } &&
  4821. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4823. (eval $ac_try) 2>&5
  4824. ac_status=$?
  4825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4826. (exit $ac_status); }; } &&
  4827. { ac_try='test -s conftest$ac_exeext'
  4828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4829. (eval $ac_try) 2>&5
  4830. ac_status=$?
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); }; }; then
  4833. ac_cv_lib_dl_dlopen=yes
  4834. else
  4835. echo "$as_me: failed program was:" >&5
  4836. sed 's/^/| /' conftest.$ac_ext >&5
  4837. ac_cv_lib_dl_dlopen=no
  4838. fi
  4839. rm -f conftest.err conftest.$ac_objext \
  4840. conftest$ac_exeext conftest.$ac_ext
  4841. LIBS=$ac_check_lib_save_LIBS
  4842. fi
  4843. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  4844. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  4845. if test $ac_cv_lib_dl_dlopen = yes; then
  4846. cat >>confdefs.h <<_ACEOF
  4847. #define HAVE_LIBDL 1
  4848. _ACEOF
  4849. LIBS="-ldl $LIBS"
  4850. fi
  4851. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  4852. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  4853. if test "${ac_cv_lib_m_tan+set}" = set; then
  4854. echo $ECHO_N "(cached) $ECHO_C" >&6
  4855. else
  4856. ac_check_lib_save_LIBS=$LIBS
  4857. LIBS="-lm $LIBS"
  4858. cat >conftest.$ac_ext <<_ACEOF
  4859. /* confdefs.h. */
  4860. _ACEOF
  4861. cat confdefs.h >>conftest.$ac_ext
  4862. cat >>conftest.$ac_ext <<_ACEOF
  4863. /* end confdefs.h. */
  4864. /* Override any gcc2 internal prototype to avoid an error. */
  4865. #ifdef __cplusplus
  4866. extern "C"
  4867. #endif
  4868. /* We use char because int might match the return type of a gcc2
  4869. builtin and then its argument prototype would still apply. */
  4870. char tan ();
  4871. int
  4872. main ()
  4873. {
  4874. tan ();
  4875. ;
  4876. return 0;
  4877. }
  4878. _ACEOF
  4879. rm -f conftest.$ac_objext conftest$ac_exeext
  4880. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4881. (eval $ac_link) 2>conftest.er1
  4882. ac_status=$?
  4883. grep -v '^ *+' conftest.er1 >conftest.err
  4884. rm -f conftest.er1
  4885. cat conftest.err >&5
  4886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4887. (exit $ac_status); } &&
  4888. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4890. (eval $ac_try) 2>&5
  4891. ac_status=$?
  4892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4893. (exit $ac_status); }; } &&
  4894. { ac_try='test -s conftest$ac_exeext'
  4895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4896. (eval $ac_try) 2>&5
  4897. ac_status=$?
  4898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4899. (exit $ac_status); }; }; then
  4900. ac_cv_lib_m_tan=yes
  4901. else
  4902. echo "$as_me: failed program was:" >&5
  4903. sed 's/^/| /' conftest.$ac_ext >&5
  4904. ac_cv_lib_m_tan=no
  4905. fi
  4906. rm -f conftest.err conftest.$ac_objext \
  4907. conftest$ac_exeext conftest.$ac_ext
  4908. LIBS=$ac_check_lib_save_LIBS
  4909. fi
  4910. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4911. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4912. if test $ac_cv_lib_m_tan = yes; then
  4913. EGG_MATH_LIB="-lm"
  4914. fi
  4915. # This is needed for Tcl libraries compiled with thread support
  4916. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4917. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4918. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4919. echo $ECHO_N "(cached) $ECHO_C" >&6
  4920. else
  4921. ac_check_lib_save_LIBS=$LIBS
  4922. LIBS="-lpthread $LIBS"
  4923. cat >conftest.$ac_ext <<_ACEOF
  4924. /* confdefs.h. */
  4925. _ACEOF
  4926. cat confdefs.h >>conftest.$ac_ext
  4927. cat >>conftest.$ac_ext <<_ACEOF
  4928. /* end confdefs.h. */
  4929. /* Override any gcc2 internal prototype to avoid an error. */
  4930. #ifdef __cplusplus
  4931. extern "C"
  4932. #endif
  4933. /* We use char because int might match the return type of a gcc2
  4934. builtin and then its argument prototype would still apply. */
  4935. char pthread_mutex_init ();
  4936. int
  4937. main ()
  4938. {
  4939. pthread_mutex_init ();
  4940. ;
  4941. return 0;
  4942. }
  4943. _ACEOF
  4944. rm -f conftest.$ac_objext conftest$ac_exeext
  4945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4946. (eval $ac_link) 2>conftest.er1
  4947. ac_status=$?
  4948. grep -v '^ *+' conftest.er1 >conftest.err
  4949. rm -f conftest.er1
  4950. cat conftest.err >&5
  4951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952. (exit $ac_status); } &&
  4953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4955. (eval $ac_try) 2>&5
  4956. ac_status=$?
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); }; } &&
  4959. { ac_try='test -s conftest$ac_exeext'
  4960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4961. (eval $ac_try) 2>&5
  4962. ac_status=$?
  4963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4964. (exit $ac_status); }; }; then
  4965. ac_cv_lib_pthread_pthread_mutex_init=yes
  4966. else
  4967. echo "$as_me: failed program was:" >&5
  4968. sed 's/^/| /' conftest.$ac_ext >&5
  4969. ac_cv_lib_pthread_pthread_mutex_init=no
  4970. fi
  4971. rm -f conftest.err conftest.$ac_objext \
  4972. conftest$ac_exeext conftest.$ac_ext
  4973. LIBS=$ac_check_lib_save_LIBS
  4974. fi
  4975. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4976. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4977. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4978. ac_cv_lib_pthread_pthread_mutex_init=yes
  4979. ac_cv_lib_pthread="-lpthread"
  4980. else
  4981. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4982. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4983. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4984. echo $ECHO_N "(cached) $ECHO_C" >&6
  4985. else
  4986. ac_check_lib_save_LIBS=$LIBS
  4987. LIBS="-lpthread $LIBS"
  4988. cat >conftest.$ac_ext <<_ACEOF
  4989. /* confdefs.h. */
  4990. _ACEOF
  4991. cat confdefs.h >>conftest.$ac_ext
  4992. cat >>conftest.$ac_ext <<_ACEOF
  4993. /* end confdefs.h. */
  4994. /* Override any gcc2 internal prototype to avoid an error. */
  4995. #ifdef __cplusplus
  4996. extern "C"
  4997. #endif
  4998. /* We use char because int might match the return type of a gcc2
  4999. builtin and then its argument prototype would still apply. */
  5000. char __pthread_mutex_init ();
  5001. int
  5002. main ()
  5003. {
  5004. __pthread_mutex_init ();
  5005. ;
  5006. return 0;
  5007. }
  5008. _ACEOF
  5009. rm -f conftest.$ac_objext conftest$ac_exeext
  5010. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5011. (eval $ac_link) 2>conftest.er1
  5012. ac_status=$?
  5013. grep -v '^ *+' conftest.er1 >conftest.err
  5014. rm -f conftest.er1
  5015. cat conftest.err >&5
  5016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5017. (exit $ac_status); } &&
  5018. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5020. (eval $ac_try) 2>&5
  5021. ac_status=$?
  5022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5023. (exit $ac_status); }; } &&
  5024. { ac_try='test -s conftest$ac_exeext'
  5025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5026. (eval $ac_try) 2>&5
  5027. ac_status=$?
  5028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5029. (exit $ac_status); }; }; then
  5030. ac_cv_lib_pthread___pthread_mutex_init=yes
  5031. else
  5032. echo "$as_me: failed program was:" >&5
  5033. sed 's/^/| /' conftest.$ac_ext >&5
  5034. ac_cv_lib_pthread___pthread_mutex_init=no
  5035. fi
  5036. rm -f conftest.err conftest.$ac_objext \
  5037. conftest$ac_exeext conftest.$ac_ext
  5038. LIBS=$ac_check_lib_save_LIBS
  5039. fi
  5040. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  5041. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  5042. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  5043. ac_cv_lib_pthread_pthread_mutex_init=yes
  5044. ac_cv_lib_pthread="-lpthread"
  5045. else
  5046. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  5047. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  5048. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  5049. echo $ECHO_N "(cached) $ECHO_C" >&6
  5050. else
  5051. ac_check_lib_save_LIBS=$LIBS
  5052. LIBS="-lpthreads $LIBS"
  5053. cat >conftest.$ac_ext <<_ACEOF
  5054. /* confdefs.h. */
  5055. _ACEOF
  5056. cat confdefs.h >>conftest.$ac_ext
  5057. cat >>conftest.$ac_ext <<_ACEOF
  5058. /* end confdefs.h. */
  5059. /* Override any gcc2 internal prototype to avoid an error. */
  5060. #ifdef __cplusplus
  5061. extern "C"
  5062. #endif
  5063. /* We use char because int might match the return type of a gcc2
  5064. builtin and then its argument prototype would still apply. */
  5065. char pthread_mutex_init ();
  5066. int
  5067. main ()
  5068. {
  5069. pthread_mutex_init ();
  5070. ;
  5071. return 0;
  5072. }
  5073. _ACEOF
  5074. rm -f conftest.$ac_objext conftest$ac_exeext
  5075. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5076. (eval $ac_link) 2>conftest.er1
  5077. ac_status=$?
  5078. grep -v '^ *+' conftest.er1 >conftest.err
  5079. rm -f conftest.er1
  5080. cat conftest.err >&5
  5081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5082. (exit $ac_status); } &&
  5083. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5085. (eval $ac_try) 2>&5
  5086. ac_status=$?
  5087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5088. (exit $ac_status); }; } &&
  5089. { ac_try='test -s conftest$ac_exeext'
  5090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5091. (eval $ac_try) 2>&5
  5092. ac_status=$?
  5093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5094. (exit $ac_status); }; }; then
  5095. ac_cv_lib_pthreads_pthread_mutex_init=yes
  5096. else
  5097. echo "$as_me: failed program was:" >&5
  5098. sed 's/^/| /' conftest.$ac_ext >&5
  5099. ac_cv_lib_pthreads_pthread_mutex_init=no
  5100. fi
  5101. rm -f conftest.err conftest.$ac_objext \
  5102. conftest$ac_exeext conftest.$ac_ext
  5103. LIBS=$ac_check_lib_save_LIBS
  5104. fi
  5105. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  5106. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  5107. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  5108. ac_cv_lib_pthread_pthread_mutex_init=yes
  5109. ac_cv_lib_pthread="-lpthreads"
  5110. else
  5111. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  5112. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  5113. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  5114. echo $ECHO_N "(cached) $ECHO_C" >&6
  5115. else
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  5123. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5124. #define pthread_mutex_init innocuous_pthread_mutex_init
  5125. /* System header to define __stub macros and hopefully few prototypes,
  5126. which can conflict with char pthread_mutex_init (); below.
  5127. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5128. <limits.h> exists even on freestanding compilers. */
  5129. #ifdef __STDC__
  5130. # include <limits.h>
  5131. #else
  5132. # include <assert.h>
  5133. #endif
  5134. #undef pthread_mutex_init
  5135. /* Override any gcc2 internal prototype to avoid an error. */
  5136. #ifdef __cplusplus
  5137. extern "C"
  5138. {
  5139. #endif
  5140. /* We use char because int might match the return type of a gcc2
  5141. builtin and then its argument prototype would still apply. */
  5142. char pthread_mutex_init ();
  5143. /* The GNU C library defines this for functions which it implements
  5144. to always fail with ENOSYS. Some functions are actually named
  5145. something starting with __ and the normal name is an alias. */
  5146. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  5147. choke me
  5148. #else
  5149. char (*f) () = pthread_mutex_init;
  5150. #endif
  5151. #ifdef __cplusplus
  5152. }
  5153. #endif
  5154. int
  5155. main ()
  5156. {
  5157. return f != pthread_mutex_init;
  5158. ;
  5159. return 0;
  5160. }
  5161. _ACEOF
  5162. rm -f conftest.$ac_objext conftest$ac_exeext
  5163. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5164. (eval $ac_link) 2>conftest.er1
  5165. ac_status=$?
  5166. grep -v '^ *+' conftest.er1 >conftest.err
  5167. rm -f conftest.er1
  5168. cat conftest.err >&5
  5169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5170. (exit $ac_status); } &&
  5171. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5173. (eval $ac_try) 2>&5
  5174. ac_status=$?
  5175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5176. (exit $ac_status); }; } &&
  5177. { ac_try='test -s conftest$ac_exeext'
  5178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5179. (eval $ac_try) 2>&5
  5180. ac_status=$?
  5181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5182. (exit $ac_status); }; }; then
  5183. ac_cv_func_pthread_mutex_init=yes
  5184. else
  5185. echo "$as_me: failed program was:" >&5
  5186. sed 's/^/| /' conftest.$ac_ext >&5
  5187. ac_cv_func_pthread_mutex_init=no
  5188. fi
  5189. rm -f conftest.err conftest.$ac_objext \
  5190. conftest$ac_exeext conftest.$ac_ext
  5191. fi
  5192. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  5193. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  5194. if test $ac_cv_func_pthread_mutex_init = yes; then
  5195. ac_cv_lib_pthread_pthread_mutex_init=yes
  5196. ac_cv_lib_pthread=""
  5197. else
  5198. ac_cv_lib_pthread_pthread_mutex_init=no
  5199. fi
  5200. fi
  5201. fi
  5202. fi
  5203. if test "$SUNOS" = "yes"
  5204. then
  5205. # For suns without yp or something like that
  5206. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  5207. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  5208. if test "${ac_cv_lib_dl_main+set}" = set; then
  5209. echo $ECHO_N "(cached) $ECHO_C" >&6
  5210. else
  5211. ac_check_lib_save_LIBS=$LIBS
  5212. LIBS="-ldl $LIBS"
  5213. cat >conftest.$ac_ext <<_ACEOF
  5214. /* confdefs.h. */
  5215. _ACEOF
  5216. cat confdefs.h >>conftest.$ac_ext
  5217. cat >>conftest.$ac_ext <<_ACEOF
  5218. /* end confdefs.h. */
  5219. int
  5220. main ()
  5221. {
  5222. main ();
  5223. ;
  5224. return 0;
  5225. }
  5226. _ACEOF
  5227. rm -f conftest.$ac_objext conftest$ac_exeext
  5228. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5229. (eval $ac_link) 2>conftest.er1
  5230. ac_status=$?
  5231. grep -v '^ *+' conftest.er1 >conftest.err
  5232. rm -f conftest.er1
  5233. cat conftest.err >&5
  5234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5235. (exit $ac_status); } &&
  5236. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5238. (eval $ac_try) 2>&5
  5239. ac_status=$?
  5240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5241. (exit $ac_status); }; } &&
  5242. { ac_try='test -s conftest$ac_exeext'
  5243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5244. (eval $ac_try) 2>&5
  5245. ac_status=$?
  5246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5247. (exit $ac_status); }; }; then
  5248. ac_cv_lib_dl_main=yes
  5249. else
  5250. echo "$as_me: failed program was:" >&5
  5251. sed 's/^/| /' conftest.$ac_ext >&5
  5252. ac_cv_lib_dl_main=no
  5253. fi
  5254. rm -f conftest.err conftest.$ac_objext \
  5255. conftest$ac_exeext conftest.$ac_ext
  5256. LIBS=$ac_check_lib_save_LIBS
  5257. fi
  5258. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  5259. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  5260. if test $ac_cv_lib_dl_main = yes; then
  5261. cat >>confdefs.h <<_ACEOF
  5262. #define HAVE_LIBDL 1
  5263. _ACEOF
  5264. LIBS="-ldl $LIBS"
  5265. fi
  5266. else
  5267. if test "$HPUX" = "yes"
  5268. then
  5269. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  5270. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  5271. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  5272. echo $ECHO_N "(cached) $ECHO_C" >&6
  5273. else
  5274. ac_check_lib_save_LIBS=$LIBS
  5275. LIBS="-ldld $LIBS"
  5276. cat >conftest.$ac_ext <<_ACEOF
  5277. /* confdefs.h. */
  5278. _ACEOF
  5279. cat confdefs.h >>conftest.$ac_ext
  5280. cat >>conftest.$ac_ext <<_ACEOF
  5281. /* end confdefs.h. */
  5282. /* Override any gcc2 internal prototype to avoid an error. */
  5283. #ifdef __cplusplus
  5284. extern "C"
  5285. #endif
  5286. /* We use char because int might match the return type of a gcc2
  5287. builtin and then its argument prototype would still apply. */
  5288. char shl_load ();
  5289. int
  5290. main ()
  5291. {
  5292. shl_load ();
  5293. ;
  5294. return 0;
  5295. }
  5296. _ACEOF
  5297. rm -f conftest.$ac_objext conftest$ac_exeext
  5298. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5299. (eval $ac_link) 2>conftest.er1
  5300. ac_status=$?
  5301. grep -v '^ *+' conftest.er1 >conftest.err
  5302. rm -f conftest.er1
  5303. cat conftest.err >&5
  5304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5305. (exit $ac_status); } &&
  5306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5308. (eval $ac_try) 2>&5
  5309. ac_status=$?
  5310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5311. (exit $ac_status); }; } &&
  5312. { ac_try='test -s conftest$ac_exeext'
  5313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5314. (eval $ac_try) 2>&5
  5315. ac_status=$?
  5316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5317. (exit $ac_status); }; }; then
  5318. ac_cv_lib_dld_shl_load=yes
  5319. else
  5320. echo "$as_me: failed program was:" >&5
  5321. sed 's/^/| /' conftest.$ac_ext >&5
  5322. ac_cv_lib_dld_shl_load=no
  5323. fi
  5324. rm -f conftest.err conftest.$ac_objext \
  5325. conftest$ac_exeext conftest.$ac_ext
  5326. LIBS=$ac_check_lib_save_LIBS
  5327. fi
  5328. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  5329. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  5330. if test $ac_cv_lib_dld_shl_load = yes; then
  5331. cat >>confdefs.h <<_ACEOF
  5332. #define HAVE_LIBDLD 1
  5333. _ACEOF
  5334. LIBS="-ldld $LIBS"
  5335. fi
  5336. fi
  5337. fi
  5338. fi
  5339. # Checks for header files
  5340. ac_header_dirent=no
  5341. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  5342. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  5343. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  5344. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  5345. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5346. echo $ECHO_N "(cached) $ECHO_C" >&6
  5347. else
  5348. cat >conftest.$ac_ext <<_ACEOF
  5349. /* confdefs.h. */
  5350. _ACEOF
  5351. cat confdefs.h >>conftest.$ac_ext
  5352. cat >>conftest.$ac_ext <<_ACEOF
  5353. /* end confdefs.h. */
  5354. #include <sys/types.h>
  5355. #include <$ac_hdr>
  5356. int
  5357. main ()
  5358. {
  5359. if ((DIR *) 0)
  5360. return 0;
  5361. ;
  5362. return 0;
  5363. }
  5364. _ACEOF
  5365. rm -f conftest.$ac_objext
  5366. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5367. (eval $ac_compile) 2>conftest.er1
  5368. ac_status=$?
  5369. grep -v '^ *+' conftest.er1 >conftest.err
  5370. rm -f conftest.er1
  5371. cat conftest.err >&5
  5372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5373. (exit $ac_status); } &&
  5374. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5376. (eval $ac_try) 2>&5
  5377. ac_status=$?
  5378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5379. (exit $ac_status); }; } &&
  5380. { ac_try='test -s conftest.$ac_objext'
  5381. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5382. (eval $ac_try) 2>&5
  5383. ac_status=$?
  5384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5385. (exit $ac_status); }; }; then
  5386. eval "$as_ac_Header=yes"
  5387. else
  5388. echo "$as_me: failed program was:" >&5
  5389. sed 's/^/| /' conftest.$ac_ext >&5
  5390. eval "$as_ac_Header=no"
  5391. fi
  5392. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5393. fi
  5394. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5395. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5396. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5397. cat >>confdefs.h <<_ACEOF
  5398. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  5399. _ACEOF
  5400. ac_header_dirent=$ac_hdr; break
  5401. fi
  5402. done
  5403. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  5404. if test $ac_header_dirent = dirent.h; then
  5405. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5406. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5407. if test "${ac_cv_search_opendir+set}" = set; then
  5408. echo $ECHO_N "(cached) $ECHO_C" >&6
  5409. else
  5410. ac_func_search_save_LIBS=$LIBS
  5411. ac_cv_search_opendir=no
  5412. cat >conftest.$ac_ext <<_ACEOF
  5413. /* confdefs.h. */
  5414. _ACEOF
  5415. cat confdefs.h >>conftest.$ac_ext
  5416. cat >>conftest.$ac_ext <<_ACEOF
  5417. /* end confdefs.h. */
  5418. /* Override any gcc2 internal prototype to avoid an error. */
  5419. #ifdef __cplusplus
  5420. extern "C"
  5421. #endif
  5422. /* We use char because int might match the return type of a gcc2
  5423. builtin and then its argument prototype would still apply. */
  5424. char opendir ();
  5425. int
  5426. main ()
  5427. {
  5428. opendir ();
  5429. ;
  5430. return 0;
  5431. }
  5432. _ACEOF
  5433. rm -f conftest.$ac_objext conftest$ac_exeext
  5434. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5435. (eval $ac_link) 2>conftest.er1
  5436. ac_status=$?
  5437. grep -v '^ *+' conftest.er1 >conftest.err
  5438. rm -f conftest.er1
  5439. cat conftest.err >&5
  5440. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5441. (exit $ac_status); } &&
  5442. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5443. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5444. (eval $ac_try) 2>&5
  5445. ac_status=$?
  5446. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5447. (exit $ac_status); }; } &&
  5448. { ac_try='test -s conftest$ac_exeext'
  5449. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5450. (eval $ac_try) 2>&5
  5451. ac_status=$?
  5452. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5453. (exit $ac_status); }; }; then
  5454. ac_cv_search_opendir="none required"
  5455. else
  5456. echo "$as_me: failed program was:" >&5
  5457. sed 's/^/| /' conftest.$ac_ext >&5
  5458. fi
  5459. rm -f conftest.err conftest.$ac_objext \
  5460. conftest$ac_exeext conftest.$ac_ext
  5461. if test "$ac_cv_search_opendir" = no; then
  5462. for ac_lib in dir; do
  5463. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5464. cat >conftest.$ac_ext <<_ACEOF
  5465. /* confdefs.h. */
  5466. _ACEOF
  5467. cat confdefs.h >>conftest.$ac_ext
  5468. cat >>conftest.$ac_ext <<_ACEOF
  5469. /* end confdefs.h. */
  5470. /* Override any gcc2 internal prototype to avoid an error. */
  5471. #ifdef __cplusplus
  5472. extern "C"
  5473. #endif
  5474. /* We use char because int might match the return type of a gcc2
  5475. builtin and then its argument prototype would still apply. */
  5476. char opendir ();
  5477. int
  5478. main ()
  5479. {
  5480. opendir ();
  5481. ;
  5482. return 0;
  5483. }
  5484. _ACEOF
  5485. rm -f conftest.$ac_objext conftest$ac_exeext
  5486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5487. (eval $ac_link) 2>conftest.er1
  5488. ac_status=$?
  5489. grep -v '^ *+' conftest.er1 >conftest.err
  5490. rm -f conftest.er1
  5491. cat conftest.err >&5
  5492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5493. (exit $ac_status); } &&
  5494. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5496. (eval $ac_try) 2>&5
  5497. ac_status=$?
  5498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5499. (exit $ac_status); }; } &&
  5500. { ac_try='test -s conftest$ac_exeext'
  5501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5502. (eval $ac_try) 2>&5
  5503. ac_status=$?
  5504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5505. (exit $ac_status); }; }; then
  5506. ac_cv_search_opendir="-l$ac_lib"
  5507. break
  5508. else
  5509. echo "$as_me: failed program was:" >&5
  5510. sed 's/^/| /' conftest.$ac_ext >&5
  5511. fi
  5512. rm -f conftest.err conftest.$ac_objext \
  5513. conftest$ac_exeext conftest.$ac_ext
  5514. done
  5515. fi
  5516. LIBS=$ac_func_search_save_LIBS
  5517. fi
  5518. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5519. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5520. if test "$ac_cv_search_opendir" != no; then
  5521. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5522. fi
  5523. else
  5524. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  5525. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  5526. if test "${ac_cv_search_opendir+set}" = set; then
  5527. echo $ECHO_N "(cached) $ECHO_C" >&6
  5528. else
  5529. ac_func_search_save_LIBS=$LIBS
  5530. ac_cv_search_opendir=no
  5531. cat >conftest.$ac_ext <<_ACEOF
  5532. /* confdefs.h. */
  5533. _ACEOF
  5534. cat confdefs.h >>conftest.$ac_ext
  5535. cat >>conftest.$ac_ext <<_ACEOF
  5536. /* end confdefs.h. */
  5537. /* Override any gcc2 internal prototype to avoid an error. */
  5538. #ifdef __cplusplus
  5539. extern "C"
  5540. #endif
  5541. /* We use char because int might match the return type of a gcc2
  5542. builtin and then its argument prototype would still apply. */
  5543. char opendir ();
  5544. int
  5545. main ()
  5546. {
  5547. opendir ();
  5548. ;
  5549. return 0;
  5550. }
  5551. _ACEOF
  5552. rm -f conftest.$ac_objext conftest$ac_exeext
  5553. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5554. (eval $ac_link) 2>conftest.er1
  5555. ac_status=$?
  5556. grep -v '^ *+' conftest.er1 >conftest.err
  5557. rm -f conftest.er1
  5558. cat conftest.err >&5
  5559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5560. (exit $ac_status); } &&
  5561. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5563. (eval $ac_try) 2>&5
  5564. ac_status=$?
  5565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5566. (exit $ac_status); }; } &&
  5567. { ac_try='test -s conftest$ac_exeext'
  5568. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5569. (eval $ac_try) 2>&5
  5570. ac_status=$?
  5571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5572. (exit $ac_status); }; }; then
  5573. ac_cv_search_opendir="none required"
  5574. else
  5575. echo "$as_me: failed program was:" >&5
  5576. sed 's/^/| /' conftest.$ac_ext >&5
  5577. fi
  5578. rm -f conftest.err conftest.$ac_objext \
  5579. conftest$ac_exeext conftest.$ac_ext
  5580. if test "$ac_cv_search_opendir" = no; then
  5581. for ac_lib in x; do
  5582. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  5583. cat >conftest.$ac_ext <<_ACEOF
  5584. /* confdefs.h. */
  5585. _ACEOF
  5586. cat confdefs.h >>conftest.$ac_ext
  5587. cat >>conftest.$ac_ext <<_ACEOF
  5588. /* end confdefs.h. */
  5589. /* Override any gcc2 internal prototype to avoid an error. */
  5590. #ifdef __cplusplus
  5591. extern "C"
  5592. #endif
  5593. /* We use char because int might match the return type of a gcc2
  5594. builtin and then its argument prototype would still apply. */
  5595. char opendir ();
  5596. int
  5597. main ()
  5598. {
  5599. opendir ();
  5600. ;
  5601. return 0;
  5602. }
  5603. _ACEOF
  5604. rm -f conftest.$ac_objext conftest$ac_exeext
  5605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5606. (eval $ac_link) 2>conftest.er1
  5607. ac_status=$?
  5608. grep -v '^ *+' conftest.er1 >conftest.err
  5609. rm -f conftest.er1
  5610. cat conftest.err >&5
  5611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5612. (exit $ac_status); } &&
  5613. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5615. (eval $ac_try) 2>&5
  5616. ac_status=$?
  5617. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5618. (exit $ac_status); }; } &&
  5619. { ac_try='test -s conftest$ac_exeext'
  5620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5621. (eval $ac_try) 2>&5
  5622. ac_status=$?
  5623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5624. (exit $ac_status); }; }; then
  5625. ac_cv_search_opendir="-l$ac_lib"
  5626. break
  5627. else
  5628. echo "$as_me: failed program was:" >&5
  5629. sed 's/^/| /' conftest.$ac_ext >&5
  5630. fi
  5631. rm -f conftest.err conftest.$ac_objext \
  5632. conftest$ac_exeext conftest.$ac_ext
  5633. done
  5634. fi
  5635. LIBS=$ac_func_search_save_LIBS
  5636. fi
  5637. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  5638. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  5639. if test "$ac_cv_search_opendir" != no; then
  5640. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  5641. fi
  5642. fi
  5643. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  5644. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  5645. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  5646. echo $ECHO_N "(cached) $ECHO_C" >&6
  5647. else
  5648. cat >conftest.$ac_ext <<_ACEOF
  5649. /* confdefs.h. */
  5650. _ACEOF
  5651. cat confdefs.h >>conftest.$ac_ext
  5652. cat >>conftest.$ac_ext <<_ACEOF
  5653. /* end confdefs.h. */
  5654. #include <sys/types.h>
  5655. #include <sys/wait.h>
  5656. #ifndef WEXITSTATUS
  5657. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  5658. #endif
  5659. #ifndef WIFEXITED
  5660. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  5661. #endif
  5662. int
  5663. main ()
  5664. {
  5665. int s;
  5666. wait (&s);
  5667. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  5668. ;
  5669. return 0;
  5670. }
  5671. _ACEOF
  5672. rm -f conftest.$ac_objext
  5673. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5674. (eval $ac_compile) 2>conftest.er1
  5675. ac_status=$?
  5676. grep -v '^ *+' conftest.er1 >conftest.err
  5677. rm -f conftest.er1
  5678. cat conftest.err >&5
  5679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5680. (exit $ac_status); } &&
  5681. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5683. (eval $ac_try) 2>&5
  5684. ac_status=$?
  5685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5686. (exit $ac_status); }; } &&
  5687. { ac_try='test -s conftest.$ac_objext'
  5688. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5689. (eval $ac_try) 2>&5
  5690. ac_status=$?
  5691. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5692. (exit $ac_status); }; }; then
  5693. ac_cv_header_sys_wait_h=yes
  5694. else
  5695. echo "$as_me: failed program was:" >&5
  5696. sed 's/^/| /' conftest.$ac_ext >&5
  5697. ac_cv_header_sys_wait_h=no
  5698. fi
  5699. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5700. fi
  5701. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5702. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5703. if test $ac_cv_header_sys_wait_h = yes; then
  5704. cat >>confdefs.h <<\_ACEOF
  5705. #define HAVE_SYS_WAIT_H 1
  5706. _ACEOF
  5707. fi
  5708. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5709. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5710. if test "${ac_cv_header_time+set}" = set; then
  5711. echo $ECHO_N "(cached) $ECHO_C" >&6
  5712. else
  5713. cat >conftest.$ac_ext <<_ACEOF
  5714. /* confdefs.h. */
  5715. _ACEOF
  5716. cat confdefs.h >>conftest.$ac_ext
  5717. cat >>conftest.$ac_ext <<_ACEOF
  5718. /* end confdefs.h. */
  5719. #include <sys/types.h>
  5720. #include <sys/time.h>
  5721. #include <time.h>
  5722. int
  5723. main ()
  5724. {
  5725. if ((struct tm *) 0)
  5726. return 0;
  5727. ;
  5728. return 0;
  5729. }
  5730. _ACEOF
  5731. rm -f conftest.$ac_objext
  5732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5733. (eval $ac_compile) 2>conftest.er1
  5734. ac_status=$?
  5735. grep -v '^ *+' conftest.er1 >conftest.err
  5736. rm -f conftest.er1
  5737. cat conftest.err >&5
  5738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5739. (exit $ac_status); } &&
  5740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5742. (eval $ac_try) 2>&5
  5743. ac_status=$?
  5744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5745. (exit $ac_status); }; } &&
  5746. { ac_try='test -s conftest.$ac_objext'
  5747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5748. (eval $ac_try) 2>&5
  5749. ac_status=$?
  5750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5751. (exit $ac_status); }; }; then
  5752. ac_cv_header_time=yes
  5753. else
  5754. echo "$as_me: failed program was:" >&5
  5755. sed 's/^/| /' conftest.$ac_ext >&5
  5756. ac_cv_header_time=no
  5757. fi
  5758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5759. fi
  5760. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5761. echo "${ECHO_T}$ac_cv_header_time" >&6
  5762. if test $ac_cv_header_time = yes; then
  5763. cat >>confdefs.h <<\_ACEOF
  5764. #define TIME_WITH_SYS_TIME 1
  5765. _ACEOF
  5766. fi
  5767. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5768. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5769. if test "${ac_cv_header_stat_broken+set}" = set; then
  5770. echo $ECHO_N "(cached) $ECHO_C" >&6
  5771. else
  5772. cat >conftest.$ac_ext <<_ACEOF
  5773. /* confdefs.h. */
  5774. _ACEOF
  5775. cat confdefs.h >>conftest.$ac_ext
  5776. cat >>conftest.$ac_ext <<_ACEOF
  5777. /* end confdefs.h. */
  5778. #include <sys/types.h>
  5779. #include <sys/stat.h>
  5780. #if defined(S_ISBLK) && defined(S_IFDIR)
  5781. # if S_ISBLK (S_IFDIR)
  5782. You lose.
  5783. # endif
  5784. #endif
  5785. #if defined(S_ISBLK) && defined(S_IFCHR)
  5786. # if S_ISBLK (S_IFCHR)
  5787. You lose.
  5788. # endif
  5789. #endif
  5790. #if defined(S_ISLNK) && defined(S_IFREG)
  5791. # if S_ISLNK (S_IFREG)
  5792. You lose.
  5793. # endif
  5794. #endif
  5795. #if defined(S_ISSOCK) && defined(S_IFREG)
  5796. # if S_ISSOCK (S_IFREG)
  5797. You lose.
  5798. # endif
  5799. #endif
  5800. _ACEOF
  5801. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5802. $EGREP "You lose" >/dev/null 2>&1; then
  5803. ac_cv_header_stat_broken=yes
  5804. else
  5805. ac_cv_header_stat_broken=no
  5806. fi
  5807. rm -f conftest*
  5808. fi
  5809. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5810. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5811. if test $ac_cv_header_stat_broken = yes; then
  5812. cat >>confdefs.h <<\_ACEOF
  5813. #define STAT_MACROS_BROKEN 1
  5814. _ACEOF
  5815. fi
  5816. #checkpoint
  5817. cat >confcache <<\_ACEOF
  5818. # This file is a shell script that caches the results of configure
  5819. # tests run on this system so they can be shared between configure
  5820. # scripts and configure runs, see configure's option --config-cache.
  5821. # It is not useful on other systems. If it contains results you don't
  5822. # want to keep, you may remove or edit it.
  5823. #
  5824. # config.status only pays attention to the cache file if you give it
  5825. # the --recheck option to rerun configure.
  5826. #
  5827. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5828. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5829. # following values.
  5830. _ACEOF
  5831. # The following way of writing the cache mishandles newlines in values,
  5832. # but we know of no workaround that is simple, portable, and efficient.
  5833. # So, don't put newlines in cache variables' values.
  5834. # Ultrix sh set writes to stderr and can't be redirected directly,
  5835. # and sets the high bit in the cache file unless we assign to the vars.
  5836. {
  5837. (set) 2>&1 |
  5838. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5839. *ac_space=\ *)
  5840. # `set' does not quote correctly, so add quotes (double-quote
  5841. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5842. sed -n \
  5843. "s/'/'\\\\''/g;
  5844. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5845. ;;
  5846. *)
  5847. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5848. sed -n \
  5849. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5850. ;;
  5851. esac;
  5852. } |
  5853. sed '
  5854. t clear
  5855. : clear
  5856. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5857. t end
  5858. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5859. : end' >>confcache
  5860. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5861. if test -w $cache_file; then
  5862. test "x$cache_file" != "x/dev/null"
  5863. cat confcache >$cache_file
  5864. else
  5865. echo "not updating unwritable cache $cache_file"
  5866. fi
  5867. fi
  5868. rm -f confcache
  5869. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5870. do
  5871. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5872. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5873. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5874. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5875. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5876. echo $ECHO_N "(cached) $ECHO_C" >&6
  5877. fi
  5878. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5879. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5880. else
  5881. # Is the header compilable?
  5882. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5883. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5884. cat >conftest.$ac_ext <<_ACEOF
  5885. /* confdefs.h. */
  5886. _ACEOF
  5887. cat confdefs.h >>conftest.$ac_ext
  5888. cat >>conftest.$ac_ext <<_ACEOF
  5889. /* end confdefs.h. */
  5890. $ac_includes_default
  5891. #include <$ac_header>
  5892. _ACEOF
  5893. rm -f conftest.$ac_objext
  5894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5895. (eval $ac_compile) 2>conftest.er1
  5896. ac_status=$?
  5897. grep -v '^ *+' conftest.er1 >conftest.err
  5898. rm -f conftest.er1
  5899. cat conftest.err >&5
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); } &&
  5902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5904. (eval $ac_try) 2>&5
  5905. ac_status=$?
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); }; } &&
  5908. { ac_try='test -s conftest.$ac_objext'
  5909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; }; then
  5914. ac_header_compiler=yes
  5915. else
  5916. echo "$as_me: failed program was:" >&5
  5917. sed 's/^/| /' conftest.$ac_ext >&5
  5918. ac_header_compiler=no
  5919. fi
  5920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5922. echo "${ECHO_T}$ac_header_compiler" >&6
  5923. # Is the header present?
  5924. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5925. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5926. cat >conftest.$ac_ext <<_ACEOF
  5927. /* confdefs.h. */
  5928. _ACEOF
  5929. cat confdefs.h >>conftest.$ac_ext
  5930. cat >>conftest.$ac_ext <<_ACEOF
  5931. /* end confdefs.h. */
  5932. #include <$ac_header>
  5933. _ACEOF
  5934. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5935. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5936. ac_status=$?
  5937. grep -v '^ *+' conftest.er1 >conftest.err
  5938. rm -f conftest.er1
  5939. cat conftest.err >&5
  5940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5941. (exit $ac_status); } >/dev/null; then
  5942. if test -s conftest.err; then
  5943. ac_cpp_err=$ac_c_preproc_warn_flag
  5944. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5945. else
  5946. ac_cpp_err=
  5947. fi
  5948. else
  5949. ac_cpp_err=yes
  5950. fi
  5951. if test -z "$ac_cpp_err"; then
  5952. ac_header_preproc=yes
  5953. else
  5954. echo "$as_me: failed program was:" >&5
  5955. sed 's/^/| /' conftest.$ac_ext >&5
  5956. ac_header_preproc=no
  5957. fi
  5958. rm -f conftest.err conftest.$ac_ext
  5959. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5960. echo "${ECHO_T}$ac_header_preproc" >&6
  5961. # So? What about this header?
  5962. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5963. yes:no: )
  5964. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5965. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5966. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5967. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5968. ac_header_preproc=yes
  5969. ;;
  5970. no:yes:* )
  5971. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5972. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5973. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5974. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5975. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5976. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5977. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5978. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5979. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5980. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5981. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5982. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5983. (
  5984. cat <<\_ASBOX
  5985. ## ------------------------------------------ ##
  5986. ## Report this to the AC_PACKAGE_NAME lists. ##
  5987. ## ------------------------------------------ ##
  5988. _ASBOX
  5989. ) |
  5990. sed "s/^/$as_me: WARNING: /" >&2
  5991. ;;
  5992. esac
  5993. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5994. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5995. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5996. echo $ECHO_N "(cached) $ECHO_C" >&6
  5997. else
  5998. eval "$as_ac_Header=\$ac_header_preproc"
  5999. fi
  6000. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6001. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6002. fi
  6003. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6004. cat >>confdefs.h <<_ACEOF
  6005. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6006. _ACEOF
  6007. fi
  6008. done
  6009. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  6010. do
  6011. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6012. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6013. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6014. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6015. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6016. echo $ECHO_N "(cached) $ECHO_C" >&6
  6017. fi
  6018. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6019. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6020. else
  6021. # Is the header compilable?
  6022. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6023. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6024. cat >conftest.$ac_ext <<_ACEOF
  6025. /* confdefs.h. */
  6026. _ACEOF
  6027. cat confdefs.h >>conftest.$ac_ext
  6028. cat >>conftest.$ac_ext <<_ACEOF
  6029. /* end confdefs.h. */
  6030. $ac_includes_default
  6031. #include <$ac_header>
  6032. _ACEOF
  6033. rm -f conftest.$ac_objext
  6034. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6035. (eval $ac_compile) 2>conftest.er1
  6036. ac_status=$?
  6037. grep -v '^ *+' conftest.er1 >conftest.err
  6038. rm -f conftest.er1
  6039. cat conftest.err >&5
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); } &&
  6042. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6044. (eval $ac_try) 2>&5
  6045. ac_status=$?
  6046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); }; } &&
  6048. { ac_try='test -s conftest.$ac_objext'
  6049. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6050. (eval $ac_try) 2>&5
  6051. ac_status=$?
  6052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6053. (exit $ac_status); }; }; then
  6054. ac_header_compiler=yes
  6055. else
  6056. echo "$as_me: failed program was:" >&5
  6057. sed 's/^/| /' conftest.$ac_ext >&5
  6058. ac_header_compiler=no
  6059. fi
  6060. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6061. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6062. echo "${ECHO_T}$ac_header_compiler" >&6
  6063. # Is the header present?
  6064. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6065. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6066. cat >conftest.$ac_ext <<_ACEOF
  6067. /* confdefs.h. */
  6068. _ACEOF
  6069. cat confdefs.h >>conftest.$ac_ext
  6070. cat >>conftest.$ac_ext <<_ACEOF
  6071. /* end confdefs.h. */
  6072. #include <$ac_header>
  6073. _ACEOF
  6074. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6075. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6076. ac_status=$?
  6077. grep -v '^ *+' conftest.er1 >conftest.err
  6078. rm -f conftest.er1
  6079. cat conftest.err >&5
  6080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6081. (exit $ac_status); } >/dev/null; then
  6082. if test -s conftest.err; then
  6083. ac_cpp_err=$ac_c_preproc_warn_flag
  6084. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6085. else
  6086. ac_cpp_err=
  6087. fi
  6088. else
  6089. ac_cpp_err=yes
  6090. fi
  6091. if test -z "$ac_cpp_err"; then
  6092. ac_header_preproc=yes
  6093. else
  6094. echo "$as_me: failed program was:" >&5
  6095. sed 's/^/| /' conftest.$ac_ext >&5
  6096. ac_header_preproc=no
  6097. fi
  6098. rm -f conftest.err conftest.$ac_ext
  6099. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6100. echo "${ECHO_T}$ac_header_preproc" >&6
  6101. # So? What about this header?
  6102. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6103. yes:no: )
  6104. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6105. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6106. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6107. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6108. ac_header_preproc=yes
  6109. ;;
  6110. no:yes:* )
  6111. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6112. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6113. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6114. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6115. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6116. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6117. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6118. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6119. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6120. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6121. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6122. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6123. (
  6124. cat <<\_ASBOX
  6125. ## ------------------------------------------ ##
  6126. ## Report this to the AC_PACKAGE_NAME lists. ##
  6127. ## ------------------------------------------ ##
  6128. _ASBOX
  6129. ) |
  6130. sed "s/^/$as_me: WARNING: /" >&2
  6131. ;;
  6132. esac
  6133. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6134. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6135. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6136. echo $ECHO_N "(cached) $ECHO_C" >&6
  6137. else
  6138. eval "$as_ac_Header=\$ac_header_preproc"
  6139. fi
  6140. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6141. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6142. fi
  6143. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6144. cat >>confdefs.h <<_ACEOF
  6145. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6146. _ACEOF
  6147. fi
  6148. done
  6149. #checkpoint
  6150. cat >confcache <<\_ACEOF
  6151. # This file is a shell script that caches the results of configure
  6152. # tests run on this system so they can be shared between configure
  6153. # scripts and configure runs, see configure's option --config-cache.
  6154. # It is not useful on other systems. If it contains results you don't
  6155. # want to keep, you may remove or edit it.
  6156. #
  6157. # config.status only pays attention to the cache file if you give it
  6158. # the --recheck option to rerun configure.
  6159. #
  6160. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6161. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6162. # following values.
  6163. _ACEOF
  6164. # The following way of writing the cache mishandles newlines in values,
  6165. # but we know of no workaround that is simple, portable, and efficient.
  6166. # So, don't put newlines in cache variables' values.
  6167. # Ultrix sh set writes to stderr and can't be redirected directly,
  6168. # and sets the high bit in the cache file unless we assign to the vars.
  6169. {
  6170. (set) 2>&1 |
  6171. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6172. *ac_space=\ *)
  6173. # `set' does not quote correctly, so add quotes (double-quote
  6174. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6175. sed -n \
  6176. "s/'/'\\\\''/g;
  6177. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6178. ;;
  6179. *)
  6180. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6181. sed -n \
  6182. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6183. ;;
  6184. esac;
  6185. } |
  6186. sed '
  6187. t clear
  6188. : clear
  6189. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6190. t end
  6191. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6192. : end' >>confcache
  6193. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6194. if test -w $cache_file; then
  6195. test "x$cache_file" != "x/dev/null"
  6196. cat confcache >$cache_file
  6197. else
  6198. echo "not updating unwritable cache $cache_file"
  6199. fi
  6200. fi
  6201. rm -f confcache
  6202. for ac_header in openssl/ssl.h openssl/crypto.h
  6203. do
  6204. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6205. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6206. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6207. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6208. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6209. echo $ECHO_N "(cached) $ECHO_C" >&6
  6210. fi
  6211. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6212. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6213. else
  6214. # Is the header compilable?
  6215. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6216. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6217. cat >conftest.$ac_ext <<_ACEOF
  6218. /* confdefs.h. */
  6219. _ACEOF
  6220. cat confdefs.h >>conftest.$ac_ext
  6221. cat >>conftest.$ac_ext <<_ACEOF
  6222. /* end confdefs.h. */
  6223. $ac_includes_default
  6224. #include <$ac_header>
  6225. _ACEOF
  6226. rm -f conftest.$ac_objext
  6227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6228. (eval $ac_compile) 2>conftest.er1
  6229. ac_status=$?
  6230. grep -v '^ *+' conftest.er1 >conftest.err
  6231. rm -f conftest.er1
  6232. cat conftest.err >&5
  6233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6234. (exit $ac_status); } &&
  6235. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6237. (eval $ac_try) 2>&5
  6238. ac_status=$?
  6239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6240. (exit $ac_status); }; } &&
  6241. { ac_try='test -s conftest.$ac_objext'
  6242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6243. (eval $ac_try) 2>&5
  6244. ac_status=$?
  6245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6246. (exit $ac_status); }; }; then
  6247. ac_header_compiler=yes
  6248. else
  6249. echo "$as_me: failed program was:" >&5
  6250. sed 's/^/| /' conftest.$ac_ext >&5
  6251. ac_header_compiler=no
  6252. fi
  6253. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6254. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6255. echo "${ECHO_T}$ac_header_compiler" >&6
  6256. # Is the header present?
  6257. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6258. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6259. cat >conftest.$ac_ext <<_ACEOF
  6260. /* confdefs.h. */
  6261. _ACEOF
  6262. cat confdefs.h >>conftest.$ac_ext
  6263. cat >>conftest.$ac_ext <<_ACEOF
  6264. /* end confdefs.h. */
  6265. #include <$ac_header>
  6266. _ACEOF
  6267. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6268. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6269. ac_status=$?
  6270. grep -v '^ *+' conftest.er1 >conftest.err
  6271. rm -f conftest.er1
  6272. cat conftest.err >&5
  6273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6274. (exit $ac_status); } >/dev/null; then
  6275. if test -s conftest.err; then
  6276. ac_cpp_err=$ac_c_preproc_warn_flag
  6277. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6278. else
  6279. ac_cpp_err=
  6280. fi
  6281. else
  6282. ac_cpp_err=yes
  6283. fi
  6284. if test -z "$ac_cpp_err"; then
  6285. ac_header_preproc=yes
  6286. else
  6287. echo "$as_me: failed program was:" >&5
  6288. sed 's/^/| /' conftest.$ac_ext >&5
  6289. ac_header_preproc=no
  6290. fi
  6291. rm -f conftest.err conftest.$ac_ext
  6292. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6293. echo "${ECHO_T}$ac_header_preproc" >&6
  6294. # So? What about this header?
  6295. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6296. yes:no: )
  6297. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6298. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6299. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6300. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6301. ac_header_preproc=yes
  6302. ;;
  6303. no:yes:* )
  6304. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6305. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6306. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6307. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6308. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6309. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6310. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6311. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6312. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6313. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6314. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6315. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6316. (
  6317. cat <<\_ASBOX
  6318. ## ------------------------------------------ ##
  6319. ## Report this to the AC_PACKAGE_NAME lists. ##
  6320. ## ------------------------------------------ ##
  6321. _ASBOX
  6322. ) |
  6323. sed "s/^/$as_me: WARNING: /" >&2
  6324. ;;
  6325. esac
  6326. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6327. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6329. echo $ECHO_N "(cached) $ECHO_C" >&6
  6330. else
  6331. eval "$as_ac_Header=\$ac_header_preproc"
  6332. fi
  6333. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6334. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6335. fi
  6336. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6337. cat >>confdefs.h <<_ACEOF
  6338. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6339. _ACEOF
  6340. fi
  6341. done
  6342. for ac_header in zlib.h
  6343. do
  6344. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6345. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6346. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6347. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6348. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6349. echo $ECHO_N "(cached) $ECHO_C" >&6
  6350. fi
  6351. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6352. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6353. else
  6354. # Is the header compilable?
  6355. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6356. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6357. cat >conftest.$ac_ext <<_ACEOF
  6358. /* confdefs.h. */
  6359. _ACEOF
  6360. cat confdefs.h >>conftest.$ac_ext
  6361. cat >>conftest.$ac_ext <<_ACEOF
  6362. /* end confdefs.h. */
  6363. $ac_includes_default
  6364. #include <$ac_header>
  6365. _ACEOF
  6366. rm -f conftest.$ac_objext
  6367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6368. (eval $ac_compile) 2>conftest.er1
  6369. ac_status=$?
  6370. grep -v '^ *+' conftest.er1 >conftest.err
  6371. rm -f conftest.er1
  6372. cat conftest.err >&5
  6373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6374. (exit $ac_status); } &&
  6375. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6377. (eval $ac_try) 2>&5
  6378. ac_status=$?
  6379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6380. (exit $ac_status); }; } &&
  6381. { ac_try='test -s conftest.$ac_objext'
  6382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6383. (eval $ac_try) 2>&5
  6384. ac_status=$?
  6385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6386. (exit $ac_status); }; }; then
  6387. ac_header_compiler=yes
  6388. else
  6389. echo "$as_me: failed program was:" >&5
  6390. sed 's/^/| /' conftest.$ac_ext >&5
  6391. ac_header_compiler=no
  6392. fi
  6393. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6394. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6395. echo "${ECHO_T}$ac_header_compiler" >&6
  6396. # Is the header present?
  6397. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6398. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6399. cat >conftest.$ac_ext <<_ACEOF
  6400. /* confdefs.h. */
  6401. _ACEOF
  6402. cat confdefs.h >>conftest.$ac_ext
  6403. cat >>conftest.$ac_ext <<_ACEOF
  6404. /* end confdefs.h. */
  6405. #include <$ac_header>
  6406. _ACEOF
  6407. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6408. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6409. ac_status=$?
  6410. grep -v '^ *+' conftest.er1 >conftest.err
  6411. rm -f conftest.er1
  6412. cat conftest.err >&5
  6413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6414. (exit $ac_status); } >/dev/null; then
  6415. if test -s conftest.err; then
  6416. ac_cpp_err=$ac_c_preproc_warn_flag
  6417. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  6418. else
  6419. ac_cpp_err=
  6420. fi
  6421. else
  6422. ac_cpp_err=yes
  6423. fi
  6424. if test -z "$ac_cpp_err"; then
  6425. ac_header_preproc=yes
  6426. else
  6427. echo "$as_me: failed program was:" >&5
  6428. sed 's/^/| /' conftest.$ac_ext >&5
  6429. ac_header_preproc=no
  6430. fi
  6431. rm -f conftest.err conftest.$ac_ext
  6432. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  6433. echo "${ECHO_T}$ac_header_preproc" >&6
  6434. # So? What about this header?
  6435. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  6436. yes:no: )
  6437. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  6438. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  6439. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  6440. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  6441. ac_header_preproc=yes
  6442. ;;
  6443. no:yes:* )
  6444. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  6445. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  6446. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  6447. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  6448. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  6449. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  6450. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  6451. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  6452. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  6453. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  6454. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  6455. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  6456. (
  6457. cat <<\_ASBOX
  6458. ## ------------------------------------------ ##
  6459. ## Report this to the AC_PACKAGE_NAME lists. ##
  6460. ## ------------------------------------------ ##
  6461. _ASBOX
  6462. ) |
  6463. sed "s/^/$as_me: WARNING: /" >&2
  6464. ;;
  6465. esac
  6466. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6467. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6468. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6469. echo $ECHO_N "(cached) $ECHO_C" >&6
  6470. else
  6471. eval "$as_ac_Header=\$ac_header_preproc"
  6472. fi
  6473. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6474. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6475. fi
  6476. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  6477. cat >>confdefs.h <<_ACEOF
  6478. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6479. _ACEOF
  6480. fi
  6481. done
  6482. if test "x${ZLIB}" = x; then
  6483. cat >&2 <<EOF
  6484. configure: error:
  6485. Your system does not provide a working zlib compression library.
  6486. It is required.
  6487. EOF
  6488. exit 1
  6489. else
  6490. if test "${ac_cv_header_zlib_h}" != yes; then
  6491. cat >&2 <<EOF
  6492. configure: error:
  6493. Your system does not provide the necessary zlib header file.
  6494. It is required.
  6495. EOF
  6496. exit 1
  6497. fi
  6498. fi
  6499. if test "x${SSL}" = x; then
  6500. cat >&2 <<EOF
  6501. configure: error:
  6502. Your system does not provide a working ssl library.
  6503. It is required. Download openssl at www.openssl.org
  6504. EOF
  6505. exit 1
  6506. else
  6507. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  6508. cat >&2 <<EOF
  6509. configure: error:
  6510. Your system does not provide the necessary ssl header file.
  6511. It is required. Download openssl at www.openssl.org
  6512. EOF
  6513. exit 1
  6514. fi
  6515. fi
  6516. # Checks for typedefs, structures, and compiler characteristics
  6517. echo "$as_me:$LINENO: checking for pid_t" >&5
  6518. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  6519. if test "${ac_cv_type_pid_t+set}" = set; then
  6520. echo $ECHO_N "(cached) $ECHO_C" >&6
  6521. else
  6522. cat >conftest.$ac_ext <<_ACEOF
  6523. /* confdefs.h. */
  6524. _ACEOF
  6525. cat confdefs.h >>conftest.$ac_ext
  6526. cat >>conftest.$ac_ext <<_ACEOF
  6527. /* end confdefs.h. */
  6528. $ac_includes_default
  6529. int
  6530. main ()
  6531. {
  6532. if ((pid_t *) 0)
  6533. return 0;
  6534. if (sizeof (pid_t))
  6535. return 0;
  6536. ;
  6537. return 0;
  6538. }
  6539. _ACEOF
  6540. rm -f conftest.$ac_objext
  6541. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6542. (eval $ac_compile) 2>conftest.er1
  6543. ac_status=$?
  6544. grep -v '^ *+' conftest.er1 >conftest.err
  6545. rm -f conftest.er1
  6546. cat conftest.err >&5
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); } &&
  6549. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6551. (eval $ac_try) 2>&5
  6552. ac_status=$?
  6553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6554. (exit $ac_status); }; } &&
  6555. { ac_try='test -s conftest.$ac_objext'
  6556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6557. (eval $ac_try) 2>&5
  6558. ac_status=$?
  6559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6560. (exit $ac_status); }; }; then
  6561. ac_cv_type_pid_t=yes
  6562. else
  6563. echo "$as_me: failed program was:" >&5
  6564. sed 's/^/| /' conftest.$ac_ext >&5
  6565. ac_cv_type_pid_t=no
  6566. fi
  6567. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6568. fi
  6569. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  6570. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  6571. if test $ac_cv_type_pid_t = yes; then
  6572. :
  6573. else
  6574. cat >>confdefs.h <<_ACEOF
  6575. #define pid_t int
  6576. _ACEOF
  6577. fi
  6578. echo "$as_me:$LINENO: checking for size_t" >&5
  6579. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  6580. if test "${ac_cv_type_size_t+set}" = set; then
  6581. echo $ECHO_N "(cached) $ECHO_C" >&6
  6582. else
  6583. cat >conftest.$ac_ext <<_ACEOF
  6584. /* confdefs.h. */
  6585. _ACEOF
  6586. cat confdefs.h >>conftest.$ac_ext
  6587. cat >>conftest.$ac_ext <<_ACEOF
  6588. /* end confdefs.h. */
  6589. $ac_includes_default
  6590. int
  6591. main ()
  6592. {
  6593. if ((size_t *) 0)
  6594. return 0;
  6595. if (sizeof (size_t))
  6596. return 0;
  6597. ;
  6598. return 0;
  6599. }
  6600. _ACEOF
  6601. rm -f conftest.$ac_objext
  6602. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6603. (eval $ac_compile) 2>conftest.er1
  6604. ac_status=$?
  6605. grep -v '^ *+' conftest.er1 >conftest.err
  6606. rm -f conftest.er1
  6607. cat conftest.err >&5
  6608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6609. (exit $ac_status); } &&
  6610. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6612. (eval $ac_try) 2>&5
  6613. ac_status=$?
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); }; } &&
  6616. { ac_try='test -s conftest.$ac_objext'
  6617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6618. (eval $ac_try) 2>&5
  6619. ac_status=$?
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); }; }; then
  6622. ac_cv_type_size_t=yes
  6623. else
  6624. echo "$as_me: failed program was:" >&5
  6625. sed 's/^/| /' conftest.$ac_ext >&5
  6626. ac_cv_type_size_t=no
  6627. fi
  6628. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6629. fi
  6630. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  6631. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  6632. if test $ac_cv_type_size_t = yes; then
  6633. :
  6634. else
  6635. cat >>confdefs.h <<_ACEOF
  6636. #define size_t unsigned
  6637. _ACEOF
  6638. fi
  6639. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  6640. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  6641. if test "${ac_cv_type_uid_t+set}" = set; then
  6642. echo $ECHO_N "(cached) $ECHO_C" >&6
  6643. else
  6644. cat >conftest.$ac_ext <<_ACEOF
  6645. /* confdefs.h. */
  6646. _ACEOF
  6647. cat confdefs.h >>conftest.$ac_ext
  6648. cat >>conftest.$ac_ext <<_ACEOF
  6649. /* end confdefs.h. */
  6650. #include <sys/types.h>
  6651. _ACEOF
  6652. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6653. $EGREP "uid_t" >/dev/null 2>&1; then
  6654. ac_cv_type_uid_t=yes
  6655. else
  6656. ac_cv_type_uid_t=no
  6657. fi
  6658. rm -f conftest*
  6659. fi
  6660. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  6661. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  6662. if test $ac_cv_type_uid_t = no; then
  6663. cat >>confdefs.h <<\_ACEOF
  6664. #define uid_t int
  6665. _ACEOF
  6666. cat >>confdefs.h <<\_ACEOF
  6667. #define gid_t int
  6668. _ACEOF
  6669. fi
  6670. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  6671. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  6672. if test "${ac_cv_c_const+set}" = set; then
  6673. echo $ECHO_N "(cached) $ECHO_C" >&6
  6674. else
  6675. cat >conftest.$ac_ext <<_ACEOF
  6676. /* confdefs.h. */
  6677. _ACEOF
  6678. cat confdefs.h >>conftest.$ac_ext
  6679. cat >>conftest.$ac_ext <<_ACEOF
  6680. /* end confdefs.h. */
  6681. int
  6682. main ()
  6683. {
  6684. /* FIXME: Include the comments suggested by Paul. */
  6685. #ifndef __cplusplus
  6686. /* Ultrix mips cc rejects this. */
  6687. typedef int charset[2];
  6688. const charset x;
  6689. /* SunOS 4.1.1 cc rejects this. */
  6690. char const *const *ccp;
  6691. char **p;
  6692. /* NEC SVR4.0.2 mips cc rejects this. */
  6693. struct point {int x, y;};
  6694. static struct point const zero = {0,0};
  6695. /* AIX XL C 1.02.0.0 rejects this.
  6696. It does not let you subtract one const X* pointer from another in
  6697. an arm of an if-expression whose if-part is not a constant
  6698. expression */
  6699. const char *g = "string";
  6700. ccp = &g + (g ? g-g : 0);
  6701. /* HPUX 7.0 cc rejects these. */
  6702. ++ccp;
  6703. p = (char**) ccp;
  6704. ccp = (char const *const *) p;
  6705. { /* SCO 3.2v4 cc rejects this. */
  6706. char *t;
  6707. char const *s = 0 ? (char *) 0 : (char const *) 0;
  6708. *t++ = 0;
  6709. }
  6710. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  6711. int x[] = {25, 17};
  6712. const int *foo = &x[0];
  6713. ++foo;
  6714. }
  6715. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  6716. typedef const int *iptr;
  6717. iptr p = 0;
  6718. ++p;
  6719. }
  6720. { /* AIX XL C 1.02.0.0 rejects this saying
  6721. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  6722. struct s { int j; const int *ap[3]; };
  6723. struct s *b; b->j = 5;
  6724. }
  6725. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  6726. const int foo = 10;
  6727. }
  6728. #endif
  6729. ;
  6730. return 0;
  6731. }
  6732. _ACEOF
  6733. rm -f conftest.$ac_objext
  6734. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6735. (eval $ac_compile) 2>conftest.er1
  6736. ac_status=$?
  6737. grep -v '^ *+' conftest.er1 >conftest.err
  6738. rm -f conftest.er1
  6739. cat conftest.err >&5
  6740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6741. (exit $ac_status); } &&
  6742. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6743. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6744. (eval $ac_try) 2>&5
  6745. ac_status=$?
  6746. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6747. (exit $ac_status); }; } &&
  6748. { ac_try='test -s conftest.$ac_objext'
  6749. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6750. (eval $ac_try) 2>&5
  6751. ac_status=$?
  6752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6753. (exit $ac_status); }; }; then
  6754. ac_cv_c_const=yes
  6755. else
  6756. echo "$as_me: failed program was:" >&5
  6757. sed 's/^/| /' conftest.$ac_ext >&5
  6758. ac_cv_c_const=no
  6759. fi
  6760. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6761. fi
  6762. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  6763. echo "${ECHO_T}$ac_cv_c_const" >&6
  6764. if test $ac_cv_c_const = no; then
  6765. cat >>confdefs.h <<\_ACEOF
  6766. #define const
  6767. _ACEOF
  6768. fi
  6769. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  6770. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  6771. if test "${ac_cv_c_bigendian+set}" = set; then
  6772. echo $ECHO_N "(cached) $ECHO_C" >&6
  6773. else
  6774. # See if sys/param.h defines the BYTE_ORDER macro.
  6775. cat >conftest.$ac_ext <<_ACEOF
  6776. /* confdefs.h. */
  6777. _ACEOF
  6778. cat confdefs.h >>conftest.$ac_ext
  6779. cat >>conftest.$ac_ext <<_ACEOF
  6780. /* end confdefs.h. */
  6781. #include <sys/types.h>
  6782. #include <sys/param.h>
  6783. int
  6784. main ()
  6785. {
  6786. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  6787. bogus endian macros
  6788. #endif
  6789. ;
  6790. return 0;
  6791. }
  6792. _ACEOF
  6793. rm -f conftest.$ac_objext
  6794. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6795. (eval $ac_compile) 2>conftest.er1
  6796. ac_status=$?
  6797. grep -v '^ *+' conftest.er1 >conftest.err
  6798. rm -f conftest.er1
  6799. cat conftest.err >&5
  6800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6801. (exit $ac_status); } &&
  6802. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6804. (eval $ac_try) 2>&5
  6805. ac_status=$?
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); }; } &&
  6808. { ac_try='test -s conftest.$ac_objext'
  6809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6810. (eval $ac_try) 2>&5
  6811. ac_status=$?
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); }; }; then
  6814. # It does; now see whether it defined to BIG_ENDIAN or not.
  6815. cat >conftest.$ac_ext <<_ACEOF
  6816. /* confdefs.h. */
  6817. _ACEOF
  6818. cat confdefs.h >>conftest.$ac_ext
  6819. cat >>conftest.$ac_ext <<_ACEOF
  6820. /* end confdefs.h. */
  6821. #include <sys/types.h>
  6822. #include <sys/param.h>
  6823. int
  6824. main ()
  6825. {
  6826. #if BYTE_ORDER != BIG_ENDIAN
  6827. not big endian
  6828. #endif
  6829. ;
  6830. return 0;
  6831. }
  6832. _ACEOF
  6833. rm -f conftest.$ac_objext
  6834. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6835. (eval $ac_compile) 2>conftest.er1
  6836. ac_status=$?
  6837. grep -v '^ *+' conftest.er1 >conftest.err
  6838. rm -f conftest.er1
  6839. cat conftest.err >&5
  6840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6841. (exit $ac_status); } &&
  6842. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6844. (eval $ac_try) 2>&5
  6845. ac_status=$?
  6846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6847. (exit $ac_status); }; } &&
  6848. { ac_try='test -s conftest.$ac_objext'
  6849. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6850. (eval $ac_try) 2>&5
  6851. ac_status=$?
  6852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6853. (exit $ac_status); }; }; then
  6854. ac_cv_c_bigendian=yes
  6855. else
  6856. echo "$as_me: failed program was:" >&5
  6857. sed 's/^/| /' conftest.$ac_ext >&5
  6858. ac_cv_c_bigendian=no
  6859. fi
  6860. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6861. else
  6862. echo "$as_me: failed program was:" >&5
  6863. sed 's/^/| /' conftest.$ac_ext >&5
  6864. # It does not; compile a test program.
  6865. if test "$cross_compiling" = yes; then
  6866. # try to guess the endianness by grepping values into an object file
  6867. ac_cv_c_bigendian=unknown
  6868. cat >conftest.$ac_ext <<_ACEOF
  6869. /* confdefs.h. */
  6870. _ACEOF
  6871. cat confdefs.h >>conftest.$ac_ext
  6872. cat >>conftest.$ac_ext <<_ACEOF
  6873. /* end confdefs.h. */
  6874. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  6875. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  6876. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  6877. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  6878. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  6879. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  6880. int
  6881. main ()
  6882. {
  6883. _ascii (); _ebcdic ();
  6884. ;
  6885. return 0;
  6886. }
  6887. _ACEOF
  6888. rm -f conftest.$ac_objext
  6889. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6890. (eval $ac_compile) 2>conftest.er1
  6891. ac_status=$?
  6892. grep -v '^ *+' conftest.er1 >conftest.err
  6893. rm -f conftest.er1
  6894. cat conftest.err >&5
  6895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6896. (exit $ac_status); } &&
  6897. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6898. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6899. (eval $ac_try) 2>&5
  6900. ac_status=$?
  6901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6902. (exit $ac_status); }; } &&
  6903. { ac_try='test -s conftest.$ac_objext'
  6904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6905. (eval $ac_try) 2>&5
  6906. ac_status=$?
  6907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6908. (exit $ac_status); }; }; then
  6909. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6910. ac_cv_c_bigendian=yes
  6911. fi
  6912. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6913. if test "$ac_cv_c_bigendian" = unknown; then
  6914. ac_cv_c_bigendian=no
  6915. else
  6916. # finding both strings is unlikely to happen, but who knows?
  6917. ac_cv_c_bigendian=unknown
  6918. fi
  6919. fi
  6920. else
  6921. echo "$as_me: failed program was:" >&5
  6922. sed 's/^/| /' conftest.$ac_ext >&5
  6923. fi
  6924. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6925. else
  6926. cat >conftest.$ac_ext <<_ACEOF
  6927. /* confdefs.h. */
  6928. _ACEOF
  6929. cat confdefs.h >>conftest.$ac_ext
  6930. cat >>conftest.$ac_ext <<_ACEOF
  6931. /* end confdefs.h. */
  6932. int
  6933. main ()
  6934. {
  6935. /* Are we little or big endian? From Harbison&Steele. */
  6936. union
  6937. {
  6938. long l;
  6939. char c[sizeof (long)];
  6940. } u;
  6941. u.l = 1;
  6942. exit (u.c[sizeof (long) - 1] == 1);
  6943. }
  6944. _ACEOF
  6945. rm -f conftest$ac_exeext
  6946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6947. (eval $ac_link) 2>&5
  6948. ac_status=$?
  6949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6950. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6952. (eval $ac_try) 2>&5
  6953. ac_status=$?
  6954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6955. (exit $ac_status); }; }; then
  6956. ac_cv_c_bigendian=no
  6957. else
  6958. echo "$as_me: program exited with status $ac_status" >&5
  6959. echo "$as_me: failed program was:" >&5
  6960. sed 's/^/| /' conftest.$ac_ext >&5
  6961. ( exit $ac_status )
  6962. ac_cv_c_bigendian=yes
  6963. fi
  6964. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6965. fi
  6966. fi
  6967. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6968. fi
  6969. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6970. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6971. case $ac_cv_c_bigendian in
  6972. yes)
  6973. cat >>confdefs.h <<\_ACEOF
  6974. #define WORDS_BIGENDIAN 1
  6975. _ACEOF
  6976. ;;
  6977. no)
  6978. ;;
  6979. *)
  6980. { { echo "$as_me:$LINENO: error: unknown endianness
  6981. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6982. echo "$as_me: error: unknown endianness
  6983. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6984. { (exit 1); exit 1; }; } ;;
  6985. esac
  6986. echo "$as_me:$LINENO: checking for inline" >&5
  6987. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6988. if test "${ac_cv_c_inline+set}" = set; then
  6989. echo $ECHO_N "(cached) $ECHO_C" >&6
  6990. else
  6991. ac_cv_c_inline=no
  6992. for ac_kw in inline __inline__ __inline; do
  6993. cat >conftest.$ac_ext <<_ACEOF
  6994. /* confdefs.h. */
  6995. _ACEOF
  6996. cat confdefs.h >>conftest.$ac_ext
  6997. cat >>conftest.$ac_ext <<_ACEOF
  6998. /* end confdefs.h. */
  6999. #ifndef __cplusplus
  7000. typedef int foo_t;
  7001. static $ac_kw foo_t static_foo () {return 0; }
  7002. $ac_kw foo_t foo () {return 0; }
  7003. #endif
  7004. _ACEOF
  7005. rm -f conftest.$ac_objext
  7006. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7007. (eval $ac_compile) 2>conftest.er1
  7008. ac_status=$?
  7009. grep -v '^ *+' conftest.er1 >conftest.err
  7010. rm -f conftest.er1
  7011. cat conftest.err >&5
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); } &&
  7014. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7016. (eval $ac_try) 2>&5
  7017. ac_status=$?
  7018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7019. (exit $ac_status); }; } &&
  7020. { ac_try='test -s conftest.$ac_objext'
  7021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7022. (eval $ac_try) 2>&5
  7023. ac_status=$?
  7024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7025. (exit $ac_status); }; }; then
  7026. ac_cv_c_inline=$ac_kw; break
  7027. else
  7028. echo "$as_me: failed program was:" >&5
  7029. sed 's/^/| /' conftest.$ac_ext >&5
  7030. fi
  7031. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7032. done
  7033. fi
  7034. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  7035. echo "${ECHO_T}$ac_cv_c_inline" >&6
  7036. case $ac_cv_c_inline in
  7037. inline | yes) ;;
  7038. *)
  7039. case $ac_cv_c_inline in
  7040. no) ac_val=;;
  7041. *) ac_val=$ac_cv_c_inline;;
  7042. esac
  7043. cat >>confdefs.h <<_ACEOF
  7044. #ifndef __cplusplus
  7045. #define inline $ac_val
  7046. #endif
  7047. _ACEOF
  7048. ;;
  7049. esac
  7050. echo "$as_me:$LINENO: checking for long" >&5
  7051. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7052. if test "${ac_cv_type_long+set}" = set; then
  7053. echo $ECHO_N "(cached) $ECHO_C" >&6
  7054. else
  7055. cat >conftest.$ac_ext <<_ACEOF
  7056. /* confdefs.h. */
  7057. _ACEOF
  7058. cat confdefs.h >>conftest.$ac_ext
  7059. cat >>conftest.$ac_ext <<_ACEOF
  7060. /* end confdefs.h. */
  7061. $ac_includes_default
  7062. int
  7063. main ()
  7064. {
  7065. if ((long *) 0)
  7066. return 0;
  7067. if (sizeof (long))
  7068. return 0;
  7069. ;
  7070. return 0;
  7071. }
  7072. _ACEOF
  7073. rm -f conftest.$ac_objext
  7074. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7075. (eval $ac_compile) 2>conftest.er1
  7076. ac_status=$?
  7077. grep -v '^ *+' conftest.er1 >conftest.err
  7078. rm -f conftest.er1
  7079. cat conftest.err >&5
  7080. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7081. (exit $ac_status); } &&
  7082. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7083. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7084. (eval $ac_try) 2>&5
  7085. ac_status=$?
  7086. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7087. (exit $ac_status); }; } &&
  7088. { ac_try='test -s conftest.$ac_objext'
  7089. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7090. (eval $ac_try) 2>&5
  7091. ac_status=$?
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. (exit $ac_status); }; }; then
  7094. ac_cv_type_long=yes
  7095. else
  7096. echo "$as_me: failed program was:" >&5
  7097. sed 's/^/| /' conftest.$ac_ext >&5
  7098. ac_cv_type_long=no
  7099. fi
  7100. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7101. fi
  7102. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7103. echo "${ECHO_T}$ac_cv_type_long" >&6
  7104. echo "$as_me:$LINENO: checking size of long" >&5
  7105. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7106. if test "${ac_cv_sizeof_long+set}" = set; then
  7107. echo $ECHO_N "(cached) $ECHO_C" >&6
  7108. else
  7109. if test "$ac_cv_type_long" = yes; then
  7110. # The cast to unsigned long works around a bug in the HP C Compiler
  7111. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7112. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7113. # This bug is HP SR number 8606223364.
  7114. if test "$cross_compiling" = yes; then
  7115. # Depending upon the size, compute the lo and hi bounds.
  7116. cat >conftest.$ac_ext <<_ACEOF
  7117. /* confdefs.h. */
  7118. _ACEOF
  7119. cat confdefs.h >>conftest.$ac_ext
  7120. cat >>conftest.$ac_ext <<_ACEOF
  7121. /* end confdefs.h. */
  7122. $ac_includes_default
  7123. int
  7124. main ()
  7125. {
  7126. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7127. test_array [0] = 0
  7128. ;
  7129. return 0;
  7130. }
  7131. _ACEOF
  7132. rm -f conftest.$ac_objext
  7133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7134. (eval $ac_compile) 2>conftest.er1
  7135. ac_status=$?
  7136. grep -v '^ *+' conftest.er1 >conftest.err
  7137. rm -f conftest.er1
  7138. cat conftest.err >&5
  7139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7140. (exit $ac_status); } &&
  7141. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7143. (eval $ac_try) 2>&5
  7144. ac_status=$?
  7145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7146. (exit $ac_status); }; } &&
  7147. { ac_try='test -s conftest.$ac_objext'
  7148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7149. (eval $ac_try) 2>&5
  7150. ac_status=$?
  7151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7152. (exit $ac_status); }; }; then
  7153. ac_lo=0 ac_mid=0
  7154. while :; do
  7155. cat >conftest.$ac_ext <<_ACEOF
  7156. /* confdefs.h. */
  7157. _ACEOF
  7158. cat confdefs.h >>conftest.$ac_ext
  7159. cat >>conftest.$ac_ext <<_ACEOF
  7160. /* end confdefs.h. */
  7161. $ac_includes_default
  7162. int
  7163. main ()
  7164. {
  7165. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7166. test_array [0] = 0
  7167. ;
  7168. return 0;
  7169. }
  7170. _ACEOF
  7171. rm -f conftest.$ac_objext
  7172. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7173. (eval $ac_compile) 2>conftest.er1
  7174. ac_status=$?
  7175. grep -v '^ *+' conftest.er1 >conftest.err
  7176. rm -f conftest.er1
  7177. cat conftest.err >&5
  7178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7179. (exit $ac_status); } &&
  7180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7182. (eval $ac_try) 2>&5
  7183. ac_status=$?
  7184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7185. (exit $ac_status); }; } &&
  7186. { ac_try='test -s conftest.$ac_objext'
  7187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7188. (eval $ac_try) 2>&5
  7189. ac_status=$?
  7190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7191. (exit $ac_status); }; }; then
  7192. ac_hi=$ac_mid; break
  7193. else
  7194. echo "$as_me: failed program was:" >&5
  7195. sed 's/^/| /' conftest.$ac_ext >&5
  7196. ac_lo=`expr $ac_mid + 1`
  7197. if test $ac_lo -le $ac_mid; then
  7198. ac_lo= ac_hi=
  7199. break
  7200. fi
  7201. ac_mid=`expr 2 '*' $ac_mid + 1`
  7202. fi
  7203. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7204. done
  7205. else
  7206. echo "$as_me: failed program was:" >&5
  7207. sed 's/^/| /' conftest.$ac_ext >&5
  7208. cat >conftest.$ac_ext <<_ACEOF
  7209. /* confdefs.h. */
  7210. _ACEOF
  7211. cat confdefs.h >>conftest.$ac_ext
  7212. cat >>conftest.$ac_ext <<_ACEOF
  7213. /* end confdefs.h. */
  7214. $ac_includes_default
  7215. int
  7216. main ()
  7217. {
  7218. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7219. test_array [0] = 0
  7220. ;
  7221. return 0;
  7222. }
  7223. _ACEOF
  7224. rm -f conftest.$ac_objext
  7225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7226. (eval $ac_compile) 2>conftest.er1
  7227. ac_status=$?
  7228. grep -v '^ *+' conftest.er1 >conftest.err
  7229. rm -f conftest.er1
  7230. cat conftest.err >&5
  7231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7232. (exit $ac_status); } &&
  7233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7235. (eval $ac_try) 2>&5
  7236. ac_status=$?
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); }; } &&
  7239. { ac_try='test -s conftest.$ac_objext'
  7240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7241. (eval $ac_try) 2>&5
  7242. ac_status=$?
  7243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7244. (exit $ac_status); }; }; then
  7245. ac_hi=-1 ac_mid=-1
  7246. while :; do
  7247. cat >conftest.$ac_ext <<_ACEOF
  7248. /* confdefs.h. */
  7249. _ACEOF
  7250. cat confdefs.h >>conftest.$ac_ext
  7251. cat >>conftest.$ac_ext <<_ACEOF
  7252. /* end confdefs.h. */
  7253. $ac_includes_default
  7254. int
  7255. main ()
  7256. {
  7257. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7258. test_array [0] = 0
  7259. ;
  7260. return 0;
  7261. }
  7262. _ACEOF
  7263. rm -f conftest.$ac_objext
  7264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7265. (eval $ac_compile) 2>conftest.er1
  7266. ac_status=$?
  7267. grep -v '^ *+' conftest.er1 >conftest.err
  7268. rm -f conftest.er1
  7269. cat conftest.err >&5
  7270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7271. (exit $ac_status); } &&
  7272. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7274. (eval $ac_try) 2>&5
  7275. ac_status=$?
  7276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7277. (exit $ac_status); }; } &&
  7278. { ac_try='test -s conftest.$ac_objext'
  7279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7280. (eval $ac_try) 2>&5
  7281. ac_status=$?
  7282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7283. (exit $ac_status); }; }; then
  7284. ac_lo=$ac_mid; break
  7285. else
  7286. echo "$as_me: failed program was:" >&5
  7287. sed 's/^/| /' conftest.$ac_ext >&5
  7288. ac_hi=`expr '(' $ac_mid ')' - 1`
  7289. if test $ac_mid -le $ac_hi; then
  7290. ac_lo= ac_hi=
  7291. break
  7292. fi
  7293. ac_mid=`expr 2 '*' $ac_mid`
  7294. fi
  7295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7296. done
  7297. else
  7298. echo "$as_me: failed program was:" >&5
  7299. sed 's/^/| /' conftest.$ac_ext >&5
  7300. ac_lo= ac_hi=
  7301. fi
  7302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7303. fi
  7304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. # Binary search between lo and hi bounds.
  7306. while test "x$ac_lo" != "x$ac_hi"; do
  7307. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7308. cat >conftest.$ac_ext <<_ACEOF
  7309. /* confdefs.h. */
  7310. _ACEOF
  7311. cat confdefs.h >>conftest.$ac_ext
  7312. cat >>conftest.$ac_ext <<_ACEOF
  7313. /* end confdefs.h. */
  7314. $ac_includes_default
  7315. int
  7316. main ()
  7317. {
  7318. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7319. test_array [0] = 0
  7320. ;
  7321. return 0;
  7322. }
  7323. _ACEOF
  7324. rm -f conftest.$ac_objext
  7325. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7326. (eval $ac_compile) 2>conftest.er1
  7327. ac_status=$?
  7328. grep -v '^ *+' conftest.er1 >conftest.err
  7329. rm -f conftest.er1
  7330. cat conftest.err >&5
  7331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7332. (exit $ac_status); } &&
  7333. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7335. (eval $ac_try) 2>&5
  7336. ac_status=$?
  7337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7338. (exit $ac_status); }; } &&
  7339. { ac_try='test -s conftest.$ac_objext'
  7340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7341. (eval $ac_try) 2>&5
  7342. ac_status=$?
  7343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7344. (exit $ac_status); }; }; then
  7345. ac_hi=$ac_mid
  7346. else
  7347. echo "$as_me: failed program was:" >&5
  7348. sed 's/^/| /' conftest.$ac_ext >&5
  7349. ac_lo=`expr '(' $ac_mid ')' + 1`
  7350. fi
  7351. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7352. done
  7353. case $ac_lo in
  7354. ?*) ac_cv_sizeof_long=$ac_lo;;
  7355. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7356. See \`config.log' for more details." >&5
  7357. echo "$as_me: error: cannot compute sizeof (long), 77
  7358. See \`config.log' for more details." >&2;}
  7359. { (exit 1); exit 1; }; } ;;
  7360. esac
  7361. else
  7362. if test "$cross_compiling" = yes; then
  7363. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7364. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7365. { (exit 1); exit 1; }; }
  7366. else
  7367. cat >conftest.$ac_ext <<_ACEOF
  7368. /* confdefs.h. */
  7369. _ACEOF
  7370. cat confdefs.h >>conftest.$ac_ext
  7371. cat >>conftest.$ac_ext <<_ACEOF
  7372. /* end confdefs.h. */
  7373. $ac_includes_default
  7374. long longval () { return (long) (sizeof (long)); }
  7375. unsigned long ulongval () { return (long) (sizeof (long)); }
  7376. #include <stdio.h>
  7377. #include <stdlib.h>
  7378. int
  7379. main ()
  7380. {
  7381. FILE *f = fopen ("conftest.val", "w");
  7382. if (! f)
  7383. exit (1);
  7384. if (((long) (sizeof (long))) < 0)
  7385. {
  7386. long i = longval ();
  7387. if (i != ((long) (sizeof (long))))
  7388. exit (1);
  7389. fprintf (f, "%ld\n", i);
  7390. }
  7391. else
  7392. {
  7393. unsigned long i = ulongval ();
  7394. if (i != ((long) (sizeof (long))))
  7395. exit (1);
  7396. fprintf (f, "%lu\n", i);
  7397. }
  7398. exit (ferror (f) || fclose (f) != 0);
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. rm -f conftest$ac_exeext
  7404. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7405. (eval $ac_link) 2>&5
  7406. ac_status=$?
  7407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7408. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7409. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7410. (eval $ac_try) 2>&5
  7411. ac_status=$?
  7412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7413. (exit $ac_status); }; }; then
  7414. ac_cv_sizeof_long=`cat conftest.val`
  7415. else
  7416. echo "$as_me: program exited with status $ac_status" >&5
  7417. echo "$as_me: failed program was:" >&5
  7418. sed 's/^/| /' conftest.$ac_ext >&5
  7419. ( exit $ac_status )
  7420. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7421. See \`config.log' for more details." >&5
  7422. echo "$as_me: error: cannot compute sizeof (long), 77
  7423. See \`config.log' for more details." >&2;}
  7424. { (exit 1); exit 1; }; }
  7425. fi
  7426. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7427. fi
  7428. fi
  7429. rm -f conftest.val
  7430. else
  7431. ac_cv_sizeof_long=0
  7432. fi
  7433. fi
  7434. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7435. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7436. cat >>confdefs.h <<_ACEOF
  7437. #define SIZEOF_LONG $ac_cv_sizeof_long
  7438. _ACEOF
  7439. echo "$as_me:$LINENO: checking for int" >&5
  7440. echo $ECHO_N "checking for int... $ECHO_C" >&6
  7441. if test "${ac_cv_type_int+set}" = set; then
  7442. echo $ECHO_N "(cached) $ECHO_C" >&6
  7443. else
  7444. cat >conftest.$ac_ext <<_ACEOF
  7445. /* confdefs.h. */
  7446. _ACEOF
  7447. cat confdefs.h >>conftest.$ac_ext
  7448. cat >>conftest.$ac_ext <<_ACEOF
  7449. /* end confdefs.h. */
  7450. $ac_includes_default
  7451. int
  7452. main ()
  7453. {
  7454. if ((int *) 0)
  7455. return 0;
  7456. if (sizeof (int))
  7457. return 0;
  7458. ;
  7459. return 0;
  7460. }
  7461. _ACEOF
  7462. rm -f conftest.$ac_objext
  7463. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7464. (eval $ac_compile) 2>conftest.er1
  7465. ac_status=$?
  7466. grep -v '^ *+' conftest.er1 >conftest.err
  7467. rm -f conftest.er1
  7468. cat conftest.err >&5
  7469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7470. (exit $ac_status); } &&
  7471. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7472. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7473. (eval $ac_try) 2>&5
  7474. ac_status=$?
  7475. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7476. (exit $ac_status); }; } &&
  7477. { ac_try='test -s conftest.$ac_objext'
  7478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7479. (eval $ac_try) 2>&5
  7480. ac_status=$?
  7481. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7482. (exit $ac_status); }; }; then
  7483. ac_cv_type_int=yes
  7484. else
  7485. echo "$as_me: failed program was:" >&5
  7486. sed 's/^/| /' conftest.$ac_ext >&5
  7487. ac_cv_type_int=no
  7488. fi
  7489. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7490. fi
  7491. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  7492. echo "${ECHO_T}$ac_cv_type_int" >&6
  7493. echo "$as_me:$LINENO: checking size of int" >&5
  7494. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  7495. if test "${ac_cv_sizeof_int+set}" = set; then
  7496. echo $ECHO_N "(cached) $ECHO_C" >&6
  7497. else
  7498. if test "$ac_cv_type_int" = yes; then
  7499. # The cast to unsigned long works around a bug in the HP C Compiler
  7500. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7501. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7502. # This bug is HP SR number 8606223364.
  7503. if test "$cross_compiling" = yes; then
  7504. # Depending upon the size, compute the lo and hi bounds.
  7505. cat >conftest.$ac_ext <<_ACEOF
  7506. /* confdefs.h. */
  7507. _ACEOF
  7508. cat confdefs.h >>conftest.$ac_ext
  7509. cat >>conftest.$ac_ext <<_ACEOF
  7510. /* end confdefs.h. */
  7511. $ac_includes_default
  7512. int
  7513. main ()
  7514. {
  7515. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  7516. test_array [0] = 0
  7517. ;
  7518. return 0;
  7519. }
  7520. _ACEOF
  7521. rm -f conftest.$ac_objext
  7522. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7523. (eval $ac_compile) 2>conftest.er1
  7524. ac_status=$?
  7525. grep -v '^ *+' conftest.er1 >conftest.err
  7526. rm -f conftest.er1
  7527. cat conftest.err >&5
  7528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7529. (exit $ac_status); } &&
  7530. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7532. (eval $ac_try) 2>&5
  7533. ac_status=$?
  7534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7535. (exit $ac_status); }; } &&
  7536. { ac_try='test -s conftest.$ac_objext'
  7537. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7538. (eval $ac_try) 2>&5
  7539. ac_status=$?
  7540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7541. (exit $ac_status); }; }; then
  7542. ac_lo=0 ac_mid=0
  7543. while :; do
  7544. cat >conftest.$ac_ext <<_ACEOF
  7545. /* confdefs.h. */
  7546. _ACEOF
  7547. cat confdefs.h >>conftest.$ac_ext
  7548. cat >>conftest.$ac_ext <<_ACEOF
  7549. /* end confdefs.h. */
  7550. $ac_includes_default
  7551. int
  7552. main ()
  7553. {
  7554. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7555. test_array [0] = 0
  7556. ;
  7557. return 0;
  7558. }
  7559. _ACEOF
  7560. rm -f conftest.$ac_objext
  7561. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7562. (eval $ac_compile) 2>conftest.er1
  7563. ac_status=$?
  7564. grep -v '^ *+' conftest.er1 >conftest.err
  7565. rm -f conftest.er1
  7566. cat conftest.err >&5
  7567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7568. (exit $ac_status); } &&
  7569. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7571. (eval $ac_try) 2>&5
  7572. ac_status=$?
  7573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7574. (exit $ac_status); }; } &&
  7575. { ac_try='test -s conftest.$ac_objext'
  7576. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7577. (eval $ac_try) 2>&5
  7578. ac_status=$?
  7579. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7580. (exit $ac_status); }; }; then
  7581. ac_hi=$ac_mid; break
  7582. else
  7583. echo "$as_me: failed program was:" >&5
  7584. sed 's/^/| /' conftest.$ac_ext >&5
  7585. ac_lo=`expr $ac_mid + 1`
  7586. if test $ac_lo -le $ac_mid; then
  7587. ac_lo= ac_hi=
  7588. break
  7589. fi
  7590. ac_mid=`expr 2 '*' $ac_mid + 1`
  7591. fi
  7592. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7593. done
  7594. else
  7595. echo "$as_me: failed program was:" >&5
  7596. sed 's/^/| /' conftest.$ac_ext >&5
  7597. cat >conftest.$ac_ext <<_ACEOF
  7598. /* confdefs.h. */
  7599. _ACEOF
  7600. cat confdefs.h >>conftest.$ac_ext
  7601. cat >>conftest.$ac_ext <<_ACEOF
  7602. /* end confdefs.h. */
  7603. $ac_includes_default
  7604. int
  7605. main ()
  7606. {
  7607. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  7608. test_array [0] = 0
  7609. ;
  7610. return 0;
  7611. }
  7612. _ACEOF
  7613. rm -f conftest.$ac_objext
  7614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7615. (eval $ac_compile) 2>conftest.er1
  7616. ac_status=$?
  7617. grep -v '^ *+' conftest.er1 >conftest.err
  7618. rm -f conftest.er1
  7619. cat conftest.err >&5
  7620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7621. (exit $ac_status); } &&
  7622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7624. (eval $ac_try) 2>&5
  7625. ac_status=$?
  7626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7627. (exit $ac_status); }; } &&
  7628. { ac_try='test -s conftest.$ac_objext'
  7629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7630. (eval $ac_try) 2>&5
  7631. ac_status=$?
  7632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7633. (exit $ac_status); }; }; then
  7634. ac_hi=-1 ac_mid=-1
  7635. while :; do
  7636. cat >conftest.$ac_ext <<_ACEOF
  7637. /* confdefs.h. */
  7638. _ACEOF
  7639. cat confdefs.h >>conftest.$ac_ext
  7640. cat >>conftest.$ac_ext <<_ACEOF
  7641. /* end confdefs.h. */
  7642. $ac_includes_default
  7643. int
  7644. main ()
  7645. {
  7646. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  7647. test_array [0] = 0
  7648. ;
  7649. return 0;
  7650. }
  7651. _ACEOF
  7652. rm -f conftest.$ac_objext
  7653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7654. (eval $ac_compile) 2>conftest.er1
  7655. ac_status=$?
  7656. grep -v '^ *+' conftest.er1 >conftest.err
  7657. rm -f conftest.er1
  7658. cat conftest.err >&5
  7659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7660. (exit $ac_status); } &&
  7661. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7663. (eval $ac_try) 2>&5
  7664. ac_status=$?
  7665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7666. (exit $ac_status); }; } &&
  7667. { ac_try='test -s conftest.$ac_objext'
  7668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7669. (eval $ac_try) 2>&5
  7670. ac_status=$?
  7671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7672. (exit $ac_status); }; }; then
  7673. ac_lo=$ac_mid; break
  7674. else
  7675. echo "$as_me: failed program was:" >&5
  7676. sed 's/^/| /' conftest.$ac_ext >&5
  7677. ac_hi=`expr '(' $ac_mid ')' - 1`
  7678. if test $ac_mid -le $ac_hi; then
  7679. ac_lo= ac_hi=
  7680. break
  7681. fi
  7682. ac_mid=`expr 2 '*' $ac_mid`
  7683. fi
  7684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7685. done
  7686. else
  7687. echo "$as_me: failed program was:" >&5
  7688. sed 's/^/| /' conftest.$ac_ext >&5
  7689. ac_lo= ac_hi=
  7690. fi
  7691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7692. fi
  7693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. # Binary search between lo and hi bounds.
  7695. while test "x$ac_lo" != "x$ac_hi"; do
  7696. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7697. cat >conftest.$ac_ext <<_ACEOF
  7698. /* confdefs.h. */
  7699. _ACEOF
  7700. cat confdefs.h >>conftest.$ac_ext
  7701. cat >>conftest.$ac_ext <<_ACEOF
  7702. /* end confdefs.h. */
  7703. $ac_includes_default
  7704. int
  7705. main ()
  7706. {
  7707. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  7708. test_array [0] = 0
  7709. ;
  7710. return 0;
  7711. }
  7712. _ACEOF
  7713. rm -f conftest.$ac_objext
  7714. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7715. (eval $ac_compile) 2>conftest.er1
  7716. ac_status=$?
  7717. grep -v '^ *+' conftest.er1 >conftest.err
  7718. rm -f conftest.er1
  7719. cat conftest.err >&5
  7720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7721. (exit $ac_status); } &&
  7722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7724. (eval $ac_try) 2>&5
  7725. ac_status=$?
  7726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7727. (exit $ac_status); }; } &&
  7728. { ac_try='test -s conftest.$ac_objext'
  7729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7730. (eval $ac_try) 2>&5
  7731. ac_status=$?
  7732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7733. (exit $ac_status); }; }; then
  7734. ac_hi=$ac_mid
  7735. else
  7736. echo "$as_me: failed program was:" >&5
  7737. sed 's/^/| /' conftest.$ac_ext >&5
  7738. ac_lo=`expr '(' $ac_mid ')' + 1`
  7739. fi
  7740. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7741. done
  7742. case $ac_lo in
  7743. ?*) ac_cv_sizeof_int=$ac_lo;;
  7744. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7745. See \`config.log' for more details." >&5
  7746. echo "$as_me: error: cannot compute sizeof (int), 77
  7747. See \`config.log' for more details." >&2;}
  7748. { (exit 1); exit 1; }; } ;;
  7749. esac
  7750. else
  7751. if test "$cross_compiling" = yes; then
  7752. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7753. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7754. { (exit 1); exit 1; }; }
  7755. else
  7756. cat >conftest.$ac_ext <<_ACEOF
  7757. /* confdefs.h. */
  7758. _ACEOF
  7759. cat confdefs.h >>conftest.$ac_ext
  7760. cat >>conftest.$ac_ext <<_ACEOF
  7761. /* end confdefs.h. */
  7762. $ac_includes_default
  7763. long longval () { return (long) (sizeof (int)); }
  7764. unsigned long ulongval () { return (long) (sizeof (int)); }
  7765. #include <stdio.h>
  7766. #include <stdlib.h>
  7767. int
  7768. main ()
  7769. {
  7770. FILE *f = fopen ("conftest.val", "w");
  7771. if (! f)
  7772. exit (1);
  7773. if (((long) (sizeof (int))) < 0)
  7774. {
  7775. long i = longval ();
  7776. if (i != ((long) (sizeof (int))))
  7777. exit (1);
  7778. fprintf (f, "%ld\n", i);
  7779. }
  7780. else
  7781. {
  7782. unsigned long i = ulongval ();
  7783. if (i != ((long) (sizeof (int))))
  7784. exit (1);
  7785. fprintf (f, "%lu\n", i);
  7786. }
  7787. exit (ferror (f) || fclose (f) != 0);
  7788. ;
  7789. return 0;
  7790. }
  7791. _ACEOF
  7792. rm -f conftest$ac_exeext
  7793. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7794. (eval $ac_link) 2>&5
  7795. ac_status=$?
  7796. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7797. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7798. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7799. (eval $ac_try) 2>&5
  7800. ac_status=$?
  7801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7802. (exit $ac_status); }; }; then
  7803. ac_cv_sizeof_int=`cat conftest.val`
  7804. else
  7805. echo "$as_me: program exited with status $ac_status" >&5
  7806. echo "$as_me: failed program was:" >&5
  7807. sed 's/^/| /' conftest.$ac_ext >&5
  7808. ( exit $ac_status )
  7809. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  7810. See \`config.log' for more details." >&5
  7811. echo "$as_me: error: cannot compute sizeof (int), 77
  7812. See \`config.log' for more details." >&2;}
  7813. { (exit 1); exit 1; }; }
  7814. fi
  7815. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7816. fi
  7817. fi
  7818. rm -f conftest.val
  7819. else
  7820. ac_cv_sizeof_int=0
  7821. fi
  7822. fi
  7823. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  7824. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  7825. cat >>confdefs.h <<_ACEOF
  7826. #define SIZEOF_INT $ac_cv_sizeof_int
  7827. _ACEOF
  7828. #checkpoint
  7829. cat >confcache <<\_ACEOF
  7830. # This file is a shell script that caches the results of configure
  7831. # tests run on this system so they can be shared between configure
  7832. # scripts and configure runs, see configure's option --config-cache.
  7833. # It is not useful on other systems. If it contains results you don't
  7834. # want to keep, you may remove or edit it.
  7835. #
  7836. # config.status only pays attention to the cache file if you give it
  7837. # the --recheck option to rerun configure.
  7838. #
  7839. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7840. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7841. # following values.
  7842. _ACEOF
  7843. # The following way of writing the cache mishandles newlines in values,
  7844. # but we know of no workaround that is simple, portable, and efficient.
  7845. # So, don't put newlines in cache variables' values.
  7846. # Ultrix sh set writes to stderr and can't be redirected directly,
  7847. # and sets the high bit in the cache file unless we assign to the vars.
  7848. {
  7849. (set) 2>&1 |
  7850. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7851. *ac_space=\ *)
  7852. # `set' does not quote correctly, so add quotes (double-quote
  7853. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7854. sed -n \
  7855. "s/'/'\\\\''/g;
  7856. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7857. ;;
  7858. *)
  7859. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7860. sed -n \
  7861. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7862. ;;
  7863. esac;
  7864. } |
  7865. sed '
  7866. t clear
  7867. : clear
  7868. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7869. t end
  7870. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7871. : end' >>confcache
  7872. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7873. if test -w $cache_file; then
  7874. test "x$cache_file" != "x/dev/null"
  7875. cat confcache >$cache_file
  7876. else
  7877. echo "not updating unwritable cache $cache_file"
  7878. fi
  7879. fi
  7880. rm -f confcache
  7881. echo "$as_me:$LINENO: checking for working volatile" >&5
  7882. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  7883. if test "${ac_cv_c_volatile+set}" = set; then
  7884. echo $ECHO_N "(cached) $ECHO_C" >&6
  7885. else
  7886. cat >conftest.$ac_ext <<_ACEOF
  7887. /* confdefs.h. */
  7888. _ACEOF
  7889. cat confdefs.h >>conftest.$ac_ext
  7890. cat >>conftest.$ac_ext <<_ACEOF
  7891. /* end confdefs.h. */
  7892. int
  7893. main ()
  7894. {
  7895. volatile int x;
  7896. int * volatile y;
  7897. ;
  7898. return 0;
  7899. }
  7900. _ACEOF
  7901. rm -f conftest.$ac_objext
  7902. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7903. (eval $ac_compile) 2>conftest.er1
  7904. ac_status=$?
  7905. grep -v '^ *+' conftest.er1 >conftest.err
  7906. rm -f conftest.er1
  7907. cat conftest.err >&5
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); } &&
  7910. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7911. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7912. (eval $ac_try) 2>&5
  7913. ac_status=$?
  7914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7915. (exit $ac_status); }; } &&
  7916. { ac_try='test -s conftest.$ac_objext'
  7917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7918. (eval $ac_try) 2>&5
  7919. ac_status=$?
  7920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7921. (exit $ac_status); }; }; then
  7922. ac_cv_c_volatile=yes
  7923. else
  7924. echo "$as_me: failed program was:" >&5
  7925. sed 's/^/| /' conftest.$ac_ext >&5
  7926. ac_cv_c_volatile=no
  7927. fi
  7928. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7929. fi
  7930. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7931. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7932. if test $ac_cv_c_volatile = no; then
  7933. cat >>confdefs.h <<\_ACEOF
  7934. #define volatile
  7935. _ACEOF
  7936. fi
  7937. if test $ac_cv_c_compiler_gnu = yes; then
  7938. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7939. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7940. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7941. echo $ECHO_N "(cached) $ECHO_C" >&6
  7942. else
  7943. ac_pattern="Autoconf.*'x'"
  7944. cat >conftest.$ac_ext <<_ACEOF
  7945. /* confdefs.h. */
  7946. _ACEOF
  7947. cat confdefs.h >>conftest.$ac_ext
  7948. cat >>conftest.$ac_ext <<_ACEOF
  7949. /* end confdefs.h. */
  7950. #include <sgtty.h>
  7951. Autoconf TIOCGETP
  7952. _ACEOF
  7953. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7954. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7955. ac_cv_prog_gcc_traditional=yes
  7956. else
  7957. ac_cv_prog_gcc_traditional=no
  7958. fi
  7959. rm -f conftest*
  7960. if test $ac_cv_prog_gcc_traditional = no; then
  7961. cat >conftest.$ac_ext <<_ACEOF
  7962. /* confdefs.h. */
  7963. _ACEOF
  7964. cat confdefs.h >>conftest.$ac_ext
  7965. cat >>conftest.$ac_ext <<_ACEOF
  7966. /* end confdefs.h. */
  7967. #include <termio.h>
  7968. Autoconf TCGETA
  7969. _ACEOF
  7970. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7971. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7972. ac_cv_prog_gcc_traditional=yes
  7973. fi
  7974. rm -f conftest*
  7975. fi
  7976. fi
  7977. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7978. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7979. if test $ac_cv_prog_gcc_traditional = yes; then
  7980. CC="$CC -traditional"
  7981. fi
  7982. fi
  7983. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7984. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7985. if test "${ac_cv_struct_tm+set}" = set; then
  7986. echo $ECHO_N "(cached) $ECHO_C" >&6
  7987. else
  7988. cat >conftest.$ac_ext <<_ACEOF
  7989. /* confdefs.h. */
  7990. _ACEOF
  7991. cat confdefs.h >>conftest.$ac_ext
  7992. cat >>conftest.$ac_ext <<_ACEOF
  7993. /* end confdefs.h. */
  7994. #include <sys/types.h>
  7995. #include <time.h>
  7996. int
  7997. main ()
  7998. {
  7999. struct tm *tp; tp->tm_sec;
  8000. ;
  8001. return 0;
  8002. }
  8003. _ACEOF
  8004. rm -f conftest.$ac_objext
  8005. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8006. (eval $ac_compile) 2>conftest.er1
  8007. ac_status=$?
  8008. grep -v '^ *+' conftest.er1 >conftest.err
  8009. rm -f conftest.er1
  8010. cat conftest.err >&5
  8011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8012. (exit $ac_status); } &&
  8013. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8015. (eval $ac_try) 2>&5
  8016. ac_status=$?
  8017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8018. (exit $ac_status); }; } &&
  8019. { ac_try='test -s conftest.$ac_objext'
  8020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8021. (eval $ac_try) 2>&5
  8022. ac_status=$?
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); }; }; then
  8025. ac_cv_struct_tm=time.h
  8026. else
  8027. echo "$as_me: failed program was:" >&5
  8028. sed 's/^/| /' conftest.$ac_ext >&5
  8029. ac_cv_struct_tm=sys/time.h
  8030. fi
  8031. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8032. fi
  8033. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8034. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8035. if test $ac_cv_struct_tm = sys/time.h; then
  8036. cat >>confdefs.h <<\_ACEOF
  8037. #define TM_IN_SYS_TIME 1
  8038. _ACEOF
  8039. fi
  8040. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  8041. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  8042. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  8043. echo $ECHO_N "(cached) $ECHO_C" >&6
  8044. else
  8045. cat >conftest.$ac_ext <<_ACEOF
  8046. /* confdefs.h. */
  8047. _ACEOF
  8048. cat confdefs.h >>conftest.$ac_ext
  8049. cat >>conftest.$ac_ext <<_ACEOF
  8050. /* end confdefs.h. */
  8051. #include <sys/types.h>
  8052. #include <$ac_cv_struct_tm>
  8053. int
  8054. main ()
  8055. {
  8056. static struct tm ac_aggr;
  8057. if (ac_aggr.tm_zone)
  8058. return 0;
  8059. ;
  8060. return 0;
  8061. }
  8062. _ACEOF
  8063. rm -f conftest.$ac_objext
  8064. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8065. (eval $ac_compile) 2>conftest.er1
  8066. ac_status=$?
  8067. grep -v '^ *+' conftest.er1 >conftest.err
  8068. rm -f conftest.er1
  8069. cat conftest.err >&5
  8070. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8071. (exit $ac_status); } &&
  8072. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8073. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8074. (eval $ac_try) 2>&5
  8075. ac_status=$?
  8076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8077. (exit $ac_status); }; } &&
  8078. { ac_try='test -s conftest.$ac_objext'
  8079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8080. (eval $ac_try) 2>&5
  8081. ac_status=$?
  8082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8083. (exit $ac_status); }; }; then
  8084. ac_cv_member_struct_tm_tm_zone=yes
  8085. else
  8086. echo "$as_me: failed program was:" >&5
  8087. sed 's/^/| /' conftest.$ac_ext >&5
  8088. cat >conftest.$ac_ext <<_ACEOF
  8089. /* confdefs.h. */
  8090. _ACEOF
  8091. cat confdefs.h >>conftest.$ac_ext
  8092. cat >>conftest.$ac_ext <<_ACEOF
  8093. /* end confdefs.h. */
  8094. #include <sys/types.h>
  8095. #include <$ac_cv_struct_tm>
  8096. int
  8097. main ()
  8098. {
  8099. static struct tm ac_aggr;
  8100. if (sizeof ac_aggr.tm_zone)
  8101. return 0;
  8102. ;
  8103. return 0;
  8104. }
  8105. _ACEOF
  8106. rm -f conftest.$ac_objext
  8107. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8108. (eval $ac_compile) 2>conftest.er1
  8109. ac_status=$?
  8110. grep -v '^ *+' conftest.er1 >conftest.err
  8111. rm -f conftest.er1
  8112. cat conftest.err >&5
  8113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8114. (exit $ac_status); } &&
  8115. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8117. (eval $ac_try) 2>&5
  8118. ac_status=$?
  8119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8120. (exit $ac_status); }; } &&
  8121. { ac_try='test -s conftest.$ac_objext'
  8122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8123. (eval $ac_try) 2>&5
  8124. ac_status=$?
  8125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8126. (exit $ac_status); }; }; then
  8127. ac_cv_member_struct_tm_tm_zone=yes
  8128. else
  8129. echo "$as_me: failed program was:" >&5
  8130. sed 's/^/| /' conftest.$ac_ext >&5
  8131. ac_cv_member_struct_tm_tm_zone=no
  8132. fi
  8133. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8134. fi
  8135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8136. fi
  8137. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8138. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8139. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8140. cat >>confdefs.h <<_ACEOF
  8141. #define HAVE_STRUCT_TM_TM_ZONE 1
  8142. _ACEOF
  8143. fi
  8144. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8145. cat >>confdefs.h <<\_ACEOF
  8146. #define HAVE_TM_ZONE 1
  8147. _ACEOF
  8148. else
  8149. echo "$as_me:$LINENO: checking for tzname" >&5
  8150. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8151. if test "${ac_cv_var_tzname+set}" = set; then
  8152. echo $ECHO_N "(cached) $ECHO_C" >&6
  8153. else
  8154. cat >conftest.$ac_ext <<_ACEOF
  8155. /* confdefs.h. */
  8156. _ACEOF
  8157. cat confdefs.h >>conftest.$ac_ext
  8158. cat >>conftest.$ac_ext <<_ACEOF
  8159. /* end confdefs.h. */
  8160. #include <time.h>
  8161. #ifndef tzname /* For SGI. */
  8162. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8163. #endif
  8164. int
  8165. main ()
  8166. {
  8167. atoi(*tzname);
  8168. ;
  8169. return 0;
  8170. }
  8171. _ACEOF
  8172. rm -f conftest.$ac_objext conftest$ac_exeext
  8173. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8174. (eval $ac_link) 2>conftest.er1
  8175. ac_status=$?
  8176. grep -v '^ *+' conftest.er1 >conftest.err
  8177. rm -f conftest.er1
  8178. cat conftest.err >&5
  8179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8180. (exit $ac_status); } &&
  8181. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8183. (eval $ac_try) 2>&5
  8184. ac_status=$?
  8185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8186. (exit $ac_status); }; } &&
  8187. { ac_try='test -s conftest$ac_exeext'
  8188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8189. (eval $ac_try) 2>&5
  8190. ac_status=$?
  8191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8192. (exit $ac_status); }; }; then
  8193. ac_cv_var_tzname=yes
  8194. else
  8195. echo "$as_me: failed program was:" >&5
  8196. sed 's/^/| /' conftest.$ac_ext >&5
  8197. ac_cv_var_tzname=no
  8198. fi
  8199. rm -f conftest.err conftest.$ac_objext \
  8200. conftest$ac_exeext conftest.$ac_ext
  8201. fi
  8202. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8203. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8204. if test $ac_cv_var_tzname = yes; then
  8205. cat >>confdefs.h <<\_ACEOF
  8206. #define HAVE_TZNAME 1
  8207. _ACEOF
  8208. fi
  8209. fi
  8210. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8211. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8212. if test "${ac_cv_struct_tm+set}" = set; then
  8213. echo $ECHO_N "(cached) $ECHO_C" >&6
  8214. else
  8215. cat >conftest.$ac_ext <<_ACEOF
  8216. /* confdefs.h. */
  8217. _ACEOF
  8218. cat confdefs.h >>conftest.$ac_ext
  8219. cat >>conftest.$ac_ext <<_ACEOF
  8220. /* end confdefs.h. */
  8221. #include <sys/types.h>
  8222. #include <time.h>
  8223. int
  8224. main ()
  8225. {
  8226. struct tm *tp; tp->tm_sec;
  8227. ;
  8228. return 0;
  8229. }
  8230. _ACEOF
  8231. rm -f conftest.$ac_objext
  8232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8233. (eval $ac_compile) 2>conftest.er1
  8234. ac_status=$?
  8235. grep -v '^ *+' conftest.er1 >conftest.err
  8236. rm -f conftest.er1
  8237. cat conftest.err >&5
  8238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8239. (exit $ac_status); } &&
  8240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8242. (eval $ac_try) 2>&5
  8243. ac_status=$?
  8244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8245. (exit $ac_status); }; } &&
  8246. { ac_try='test -s conftest.$ac_objext'
  8247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8248. (eval $ac_try) 2>&5
  8249. ac_status=$?
  8250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8251. (exit $ac_status); }; }; then
  8252. ac_cv_struct_tm=time.h
  8253. else
  8254. echo "$as_me: failed program was:" >&5
  8255. sed 's/^/| /' conftest.$ac_ext >&5
  8256. ac_cv_struct_tm=sys/time.h
  8257. fi
  8258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8259. fi
  8260. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8261. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8262. if test $ac_cv_struct_tm = sys/time.h; then
  8263. cat >>confdefs.h <<\_ACEOF
  8264. #define TM_IN_SYS_TIME 1
  8265. _ACEOF
  8266. fi
  8267. #checkpoint
  8268. cat >confcache <<\_ACEOF
  8269. # This file is a shell script that caches the results of configure
  8270. # tests run on this system so they can be shared between configure
  8271. # scripts and configure runs, see configure's option --config-cache.
  8272. # It is not useful on other systems. If it contains results you don't
  8273. # want to keep, you may remove or edit it.
  8274. #
  8275. # config.status only pays attention to the cache file if you give it
  8276. # the --recheck option to rerun configure.
  8277. #
  8278. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8279. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8280. # following values.
  8281. _ACEOF
  8282. # The following way of writing the cache mishandles newlines in values,
  8283. # but we know of no workaround that is simple, portable, and efficient.
  8284. # So, don't put newlines in cache variables' values.
  8285. # Ultrix sh set writes to stderr and can't be redirected directly,
  8286. # and sets the high bit in the cache file unless we assign to the vars.
  8287. {
  8288. (set) 2>&1 |
  8289. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8290. *ac_space=\ *)
  8291. # `set' does not quote correctly, so add quotes (double-quote
  8292. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8293. sed -n \
  8294. "s/'/'\\\\''/g;
  8295. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8296. ;;
  8297. *)
  8298. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8299. sed -n \
  8300. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8301. ;;
  8302. esac;
  8303. } |
  8304. sed '
  8305. t clear
  8306. : clear
  8307. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8308. t end
  8309. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8310. : end' >>confcache
  8311. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8312. if test -w $cache_file; then
  8313. test "x$cache_file" != "x/dev/null"
  8314. cat confcache >$cache_file
  8315. else
  8316. echo "not updating unwritable cache $cache_file"
  8317. fi
  8318. fi
  8319. rm -f confcache
  8320. # Check for IPv6 support
  8321. #EGG_IPV6_SUPPORTED
  8322. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  8323. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  8324. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  8325. if test "${enable_ipv6+set}" = set; then
  8326. enableval="$enable_ipv6"
  8327. ac_cv_dipv6="yes"
  8328. echo "$as_me:$LINENO: result: yes" >&5
  8329. echo "${ECHO_T}yes" >&6
  8330. else
  8331. ac_cv_dipv6="no"
  8332. if test "$egg_cv_ipv6_supported" = "no"; then
  8333. ac_cv_dipv6="no"
  8334. fi
  8335. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  8336. echo "${ECHO_T}$ac_cv_dipv6" >&6
  8337. fi;
  8338. if test "$ac_cv_dipv6" = "no"; then
  8339. cat >>confdefs.h <<\_ACEOF
  8340. #define USE_IPV6 1
  8341. _ACEOF
  8342. fi
  8343. echo "$as_me:$LINENO: checking for socklen_t" >&5
  8344. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  8345. if test "${egg_cv_socklen_t+set}" = set; then
  8346. echo $ECHO_N "(cached) $ECHO_C" >&6
  8347. else
  8348. if test "$cross_compiling" = yes; then
  8349. egg_cv_socklen_t=no
  8350. else
  8351. cat >conftest.$ac_ext <<_ACEOF
  8352. /* confdefs.h. */
  8353. _ACEOF
  8354. cat confdefs.h >>conftest.$ac_ext
  8355. cat >>conftest.$ac_ext <<_ACEOF
  8356. /* end confdefs.h. */
  8357. #include <unistd.h>
  8358. #include <sys/types.h>
  8359. #include <sys/socket.h>
  8360. #include <netinet/in.h>
  8361. #include <arpa/inet.h>
  8362. int main()
  8363. {
  8364. socklen_t test = sizeof(int);
  8365. return 0;
  8366. }
  8367. _ACEOF
  8368. rm -f conftest$ac_exeext
  8369. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8370. (eval $ac_link) 2>&5
  8371. ac_status=$?
  8372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8373. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8375. (eval $ac_try) 2>&5
  8376. ac_status=$?
  8377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8378. (exit $ac_status); }; }; then
  8379. egg_cv_socklen_t=yes
  8380. else
  8381. echo "$as_me: program exited with status $ac_status" >&5
  8382. echo "$as_me: failed program was:" >&5
  8383. sed 's/^/| /' conftest.$ac_ext >&5
  8384. ( exit $ac_status )
  8385. egg_cv_socklen_t=no
  8386. fi
  8387. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8388. fi
  8389. fi
  8390. if test "$egg_cv_socklen_t" = "yes"; then
  8391. cat >>confdefs.h <<\_ACEOF
  8392. #define HAVE_SOCKLEN_T 1
  8393. _ACEOF
  8394. echo "$as_me:$LINENO: result: yes" >&5
  8395. echo "${ECHO_T}yes" >&6
  8396. else
  8397. echo "$as_me:$LINENO: result: no" >&5
  8398. echo "${ECHO_T}no" >&6
  8399. fi
  8400. # Checks for library functions
  8401. #checkpoint
  8402. cat >confcache <<\_ACEOF
  8403. # This file is a shell script that caches the results of configure
  8404. # tests run on this system so they can be shared between configure
  8405. # scripts and configure runs, see configure's option --config-cache.
  8406. # It is not useful on other systems. If it contains results you don't
  8407. # want to keep, you may remove or edit it.
  8408. #
  8409. # config.status only pays attention to the cache file if you give it
  8410. # the --recheck option to rerun configure.
  8411. #
  8412. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8413. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8414. # following values.
  8415. _ACEOF
  8416. # The following way of writing the cache mishandles newlines in values,
  8417. # but we know of no workaround that is simple, portable, and efficient.
  8418. # So, don't put newlines in cache variables' values.
  8419. # Ultrix sh set writes to stderr and can't be redirected directly,
  8420. # and sets the high bit in the cache file unless we assign to the vars.
  8421. {
  8422. (set) 2>&1 |
  8423. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8424. *ac_space=\ *)
  8425. # `set' does not quote correctly, so add quotes (double-quote
  8426. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8427. sed -n \
  8428. "s/'/'\\\\''/g;
  8429. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8430. ;;
  8431. *)
  8432. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8433. sed -n \
  8434. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8435. ;;
  8436. esac;
  8437. } |
  8438. sed '
  8439. t clear
  8440. : clear
  8441. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8442. t end
  8443. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8444. : end' >>confcache
  8445. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8446. if test -w $cache_file; then
  8447. test "x$cache_file" != "x/dev/null"
  8448. cat confcache >$cache_file
  8449. else
  8450. echo "not updating unwritable cache $cache_file"
  8451. fi
  8452. fi
  8453. rm -f confcache
  8454. # Checks for library functions.
  8455. for ac_header in unistd.h vfork.h
  8456. do
  8457. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8458. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8459. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8460. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8461. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8462. echo $ECHO_N "(cached) $ECHO_C" >&6
  8463. fi
  8464. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8465. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8466. else
  8467. # Is the header compilable?
  8468. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8469. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8470. cat >conftest.$ac_ext <<_ACEOF
  8471. /* confdefs.h. */
  8472. _ACEOF
  8473. cat confdefs.h >>conftest.$ac_ext
  8474. cat >>conftest.$ac_ext <<_ACEOF
  8475. /* end confdefs.h. */
  8476. $ac_includes_default
  8477. #include <$ac_header>
  8478. _ACEOF
  8479. rm -f conftest.$ac_objext
  8480. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8481. (eval $ac_compile) 2>conftest.er1
  8482. ac_status=$?
  8483. grep -v '^ *+' conftest.er1 >conftest.err
  8484. rm -f conftest.er1
  8485. cat conftest.err >&5
  8486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8487. (exit $ac_status); } &&
  8488. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8490. (eval $ac_try) 2>&5
  8491. ac_status=$?
  8492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8493. (exit $ac_status); }; } &&
  8494. { ac_try='test -s conftest.$ac_objext'
  8495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8496. (eval $ac_try) 2>&5
  8497. ac_status=$?
  8498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8499. (exit $ac_status); }; }; then
  8500. ac_header_compiler=yes
  8501. else
  8502. echo "$as_me: failed program was:" >&5
  8503. sed 's/^/| /' conftest.$ac_ext >&5
  8504. ac_header_compiler=no
  8505. fi
  8506. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8507. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8508. echo "${ECHO_T}$ac_header_compiler" >&6
  8509. # Is the header present?
  8510. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8511. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8512. cat >conftest.$ac_ext <<_ACEOF
  8513. /* confdefs.h. */
  8514. _ACEOF
  8515. cat confdefs.h >>conftest.$ac_ext
  8516. cat >>conftest.$ac_ext <<_ACEOF
  8517. /* end confdefs.h. */
  8518. #include <$ac_header>
  8519. _ACEOF
  8520. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8521. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8522. ac_status=$?
  8523. grep -v '^ *+' conftest.er1 >conftest.err
  8524. rm -f conftest.er1
  8525. cat conftest.err >&5
  8526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8527. (exit $ac_status); } >/dev/null; then
  8528. if test -s conftest.err; then
  8529. ac_cpp_err=$ac_c_preproc_warn_flag
  8530. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8531. else
  8532. ac_cpp_err=
  8533. fi
  8534. else
  8535. ac_cpp_err=yes
  8536. fi
  8537. if test -z "$ac_cpp_err"; then
  8538. ac_header_preproc=yes
  8539. else
  8540. echo "$as_me: failed program was:" >&5
  8541. sed 's/^/| /' conftest.$ac_ext >&5
  8542. ac_header_preproc=no
  8543. fi
  8544. rm -f conftest.err conftest.$ac_ext
  8545. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8546. echo "${ECHO_T}$ac_header_preproc" >&6
  8547. # So? What about this header?
  8548. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8549. yes:no: )
  8550. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8551. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8552. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8553. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8554. ac_header_preproc=yes
  8555. ;;
  8556. no:yes:* )
  8557. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8558. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8559. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8560. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8561. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8562. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8563. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8564. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8565. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8566. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8567. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8568. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8569. (
  8570. cat <<\_ASBOX
  8571. ## ------------------------------------------ ##
  8572. ## Report this to the AC_PACKAGE_NAME lists. ##
  8573. ## ------------------------------------------ ##
  8574. _ASBOX
  8575. ) |
  8576. sed "s/^/$as_me: WARNING: /" >&2
  8577. ;;
  8578. esac
  8579. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8580. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8581. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8582. echo $ECHO_N "(cached) $ECHO_C" >&6
  8583. else
  8584. eval "$as_ac_Header=\$ac_header_preproc"
  8585. fi
  8586. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8587. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8588. fi
  8589. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8590. cat >>confdefs.h <<_ACEOF
  8591. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8592. _ACEOF
  8593. fi
  8594. done
  8595. for ac_func in fork vfork
  8596. do
  8597. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8598. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8599. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8600. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8601. echo $ECHO_N "(cached) $ECHO_C" >&6
  8602. else
  8603. cat >conftest.$ac_ext <<_ACEOF
  8604. /* confdefs.h. */
  8605. _ACEOF
  8606. cat confdefs.h >>conftest.$ac_ext
  8607. cat >>conftest.$ac_ext <<_ACEOF
  8608. /* end confdefs.h. */
  8609. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8610. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8611. #define $ac_func innocuous_$ac_func
  8612. /* System header to define __stub macros and hopefully few prototypes,
  8613. which can conflict with char $ac_func (); below.
  8614. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8615. <limits.h> exists even on freestanding compilers. */
  8616. #ifdef __STDC__
  8617. # include <limits.h>
  8618. #else
  8619. # include <assert.h>
  8620. #endif
  8621. #undef $ac_func
  8622. /* Override any gcc2 internal prototype to avoid an error. */
  8623. #ifdef __cplusplus
  8624. extern "C"
  8625. {
  8626. #endif
  8627. /* We use char because int might match the return type of a gcc2
  8628. builtin and then its argument prototype would still apply. */
  8629. char $ac_func ();
  8630. /* The GNU C library defines this for functions which it implements
  8631. to always fail with ENOSYS. Some functions are actually named
  8632. something starting with __ and the normal name is an alias. */
  8633. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8634. choke me
  8635. #else
  8636. char (*f) () = $ac_func;
  8637. #endif
  8638. #ifdef __cplusplus
  8639. }
  8640. #endif
  8641. int
  8642. main ()
  8643. {
  8644. return f != $ac_func;
  8645. ;
  8646. return 0;
  8647. }
  8648. _ACEOF
  8649. rm -f conftest.$ac_objext conftest$ac_exeext
  8650. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8651. (eval $ac_link) 2>conftest.er1
  8652. ac_status=$?
  8653. grep -v '^ *+' conftest.er1 >conftest.err
  8654. rm -f conftest.er1
  8655. cat conftest.err >&5
  8656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8657. (exit $ac_status); } &&
  8658. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8659. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8660. (eval $ac_try) 2>&5
  8661. ac_status=$?
  8662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8663. (exit $ac_status); }; } &&
  8664. { ac_try='test -s conftest$ac_exeext'
  8665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8666. (eval $ac_try) 2>&5
  8667. ac_status=$?
  8668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. (exit $ac_status); }; }; then
  8670. eval "$as_ac_var=yes"
  8671. else
  8672. echo "$as_me: failed program was:" >&5
  8673. sed 's/^/| /' conftest.$ac_ext >&5
  8674. eval "$as_ac_var=no"
  8675. fi
  8676. rm -f conftest.err conftest.$ac_objext \
  8677. conftest$ac_exeext conftest.$ac_ext
  8678. fi
  8679. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8680. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8681. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8682. cat >>confdefs.h <<_ACEOF
  8683. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8684. _ACEOF
  8685. fi
  8686. done
  8687. if test "x$ac_cv_func_fork" = xyes; then
  8688. echo "$as_me:$LINENO: checking for working fork" >&5
  8689. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8690. if test "${ac_cv_func_fork_works+set}" = set; then
  8691. echo $ECHO_N "(cached) $ECHO_C" >&6
  8692. else
  8693. if test "$cross_compiling" = yes; then
  8694. ac_cv_func_fork_works=cross
  8695. else
  8696. cat >conftest.$ac_ext <<_ACEOF
  8697. /* By Ruediger Kuhlmann. */
  8698. #include <sys/types.h>
  8699. #if HAVE_UNISTD_H
  8700. # include <unistd.h>
  8701. #endif
  8702. /* Some systems only have a dummy stub for fork() */
  8703. int main ()
  8704. {
  8705. if (fork() < 0)
  8706. exit (1);
  8707. exit (0);
  8708. }
  8709. _ACEOF
  8710. rm -f conftest$ac_exeext
  8711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8712. (eval $ac_link) 2>&5
  8713. ac_status=$?
  8714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8715. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8716. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8717. (eval $ac_try) 2>&5
  8718. ac_status=$?
  8719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8720. (exit $ac_status); }; }; then
  8721. ac_cv_func_fork_works=yes
  8722. else
  8723. echo "$as_me: program exited with status $ac_status" >&5
  8724. echo "$as_me: failed program was:" >&5
  8725. sed 's/^/| /' conftest.$ac_ext >&5
  8726. ( exit $ac_status )
  8727. ac_cv_func_fork_works=no
  8728. fi
  8729. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8730. fi
  8731. fi
  8732. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8733. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8734. else
  8735. ac_cv_func_fork_works=$ac_cv_func_fork
  8736. fi
  8737. if test "x$ac_cv_func_fork_works" = xcross; then
  8738. case $host in
  8739. *-*-amigaos* | *-*-msdosdjgpp*)
  8740. # Override, as these systems have only a dummy fork() stub
  8741. ac_cv_func_fork_works=no
  8742. ;;
  8743. *)
  8744. ac_cv_func_fork_works=yes
  8745. ;;
  8746. esac
  8747. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8748. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8749. fi
  8750. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8751. if test "x$ac_cv_func_vfork" = xyes; then
  8752. echo "$as_me:$LINENO: checking for working vfork" >&5
  8753. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8754. if test "${ac_cv_func_vfork_works+set}" = set; then
  8755. echo $ECHO_N "(cached) $ECHO_C" >&6
  8756. else
  8757. if test "$cross_compiling" = yes; then
  8758. ac_cv_func_vfork_works=cross
  8759. else
  8760. cat >conftest.$ac_ext <<_ACEOF
  8761. /* confdefs.h. */
  8762. _ACEOF
  8763. cat confdefs.h >>conftest.$ac_ext
  8764. cat >>conftest.$ac_ext <<_ACEOF
  8765. /* end confdefs.h. */
  8766. /* Thanks to Paul Eggert for this test. */
  8767. #include <stdio.h>
  8768. #include <stdlib.h>
  8769. #include <sys/types.h>
  8770. #include <sys/stat.h>
  8771. #include <sys/wait.h>
  8772. #if HAVE_UNISTD_H
  8773. # include <unistd.h>
  8774. #endif
  8775. #if HAVE_VFORK_H
  8776. # include <vfork.h>
  8777. #endif
  8778. /* On some sparc systems, changes by the child to local and incoming
  8779. argument registers are propagated back to the parent. The compiler
  8780. is told about this with #include <vfork.h>, but some compilers
  8781. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8782. static variable whose address is put into a register that is
  8783. clobbered by the vfork. */
  8784. static void
  8785. #ifdef __cplusplus
  8786. sparc_address_test (int arg)
  8787. # else
  8788. sparc_address_test (arg) int arg;
  8789. #endif
  8790. {
  8791. static pid_t child;
  8792. if (!child) {
  8793. child = vfork ();
  8794. if (child < 0) {
  8795. perror ("vfork");
  8796. _exit(2);
  8797. }
  8798. if (!child) {
  8799. arg = getpid();
  8800. write(-1, "", 0);
  8801. _exit (arg);
  8802. }
  8803. }
  8804. }
  8805. int
  8806. main ()
  8807. {
  8808. pid_t parent = getpid ();
  8809. pid_t child;
  8810. sparc_address_test (0);
  8811. child = vfork ();
  8812. if (child == 0) {
  8813. /* Here is another test for sparc vfork register problems. This
  8814. test uses lots of local variables, at least as many local
  8815. variables as main has allocated so far including compiler
  8816. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8817. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8818. reuse the register of parent for one of the local variables,
  8819. since it will think that parent can't possibly be used any more
  8820. in this routine. Assigning to the local variable will thus
  8821. munge parent in the parent process. */
  8822. pid_t
  8823. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8824. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8825. /* Convince the compiler that p..p7 are live; otherwise, it might
  8826. use the same hardware register for all 8 local variables. */
  8827. if (p != p1 || p != p2 || p != p3 || p != p4
  8828. || p != p5 || p != p6 || p != p7)
  8829. _exit(1);
  8830. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8831. from child file descriptors. If the child closes a descriptor
  8832. before it execs or exits, this munges the parent's descriptor
  8833. as well. Test for this by closing stdout in the child. */
  8834. _exit(close(fileno(stdout)) != 0);
  8835. } else {
  8836. int status;
  8837. struct stat st;
  8838. while (wait(&status) != child)
  8839. ;
  8840. exit(
  8841. /* Was there some problem with vforking? */
  8842. child < 0
  8843. /* Did the child fail? (This shouldn't happen.) */
  8844. || status
  8845. /* Did the vfork/compiler bug occur? */
  8846. || parent != getpid()
  8847. /* Did the file descriptor bug occur? */
  8848. || fstat(fileno(stdout), &st) != 0
  8849. );
  8850. }
  8851. }
  8852. _ACEOF
  8853. rm -f conftest$ac_exeext
  8854. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8855. (eval $ac_link) 2>&5
  8856. ac_status=$?
  8857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8858. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8860. (eval $ac_try) 2>&5
  8861. ac_status=$?
  8862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8863. (exit $ac_status); }; }; then
  8864. ac_cv_func_vfork_works=yes
  8865. else
  8866. echo "$as_me: program exited with status $ac_status" >&5
  8867. echo "$as_me: failed program was:" >&5
  8868. sed 's/^/| /' conftest.$ac_ext >&5
  8869. ( exit $ac_status )
  8870. ac_cv_func_vfork_works=no
  8871. fi
  8872. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8873. fi
  8874. fi
  8875. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8876. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8877. fi;
  8878. if test "x$ac_cv_func_fork_works" = xcross; then
  8879. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8880. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8881. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8882. fi
  8883. if test "x$ac_cv_func_vfork_works" = xyes; then
  8884. cat >>confdefs.h <<\_ACEOF
  8885. #define HAVE_WORKING_VFORK 1
  8886. _ACEOF
  8887. else
  8888. cat >>confdefs.h <<\_ACEOF
  8889. #define vfork fork
  8890. _ACEOF
  8891. fi
  8892. if test "x$ac_cv_func_fork_works" = xyes; then
  8893. cat >>confdefs.h <<\_ACEOF
  8894. #define HAVE_WORKING_FORK 1
  8895. _ACEOF
  8896. fi
  8897. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8898. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8899. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8900. echo $ECHO_N "(cached) $ECHO_C" >&6
  8901. else
  8902. rm -f conftest.sym conftest.file
  8903. echo >conftest.file
  8904. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8905. if test "$cross_compiling" = yes; then
  8906. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8907. else
  8908. cat >conftest.$ac_ext <<_ACEOF
  8909. /* confdefs.h. */
  8910. _ACEOF
  8911. cat confdefs.h >>conftest.$ac_ext
  8912. cat >>conftest.$ac_ext <<_ACEOF
  8913. /* end confdefs.h. */
  8914. $ac_includes_default
  8915. int
  8916. main ()
  8917. {
  8918. struct stat sbuf;
  8919. /* Linux will dereference the symlink and fail.
  8920. That is better in the sense that it means we will not
  8921. have to compile and use the lstat wrapper. */
  8922. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8923. ;
  8924. return 0;
  8925. }
  8926. _ACEOF
  8927. rm -f conftest$ac_exeext
  8928. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8929. (eval $ac_link) 2>&5
  8930. ac_status=$?
  8931. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8932. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8934. (eval $ac_try) 2>&5
  8935. ac_status=$?
  8936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8937. (exit $ac_status); }; }; then
  8938. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8939. else
  8940. echo "$as_me: program exited with status $ac_status" >&5
  8941. echo "$as_me: failed program was:" >&5
  8942. sed 's/^/| /' conftest.$ac_ext >&5
  8943. ( exit $ac_status )
  8944. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8945. fi
  8946. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8947. fi
  8948. else
  8949. # If the `ln -s' command failed, then we probably don't even
  8950. # have an lstat function.
  8951. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8952. fi
  8953. rm -f conftest.sym conftest.file
  8954. fi
  8955. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8956. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8957. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8958. cat >>confdefs.h <<_ACEOF
  8959. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8960. _ACEOF
  8961. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8962. case $LIBOBJS in
  8963. "lstat.$ac_objext" | \
  8964. *" lstat.$ac_objext" | \
  8965. "lstat.$ac_objext "* | \
  8966. *" lstat.$ac_objext "* ) ;;
  8967. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8968. esac
  8969. fi
  8970. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8971. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8972. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8973. echo $ECHO_N "(cached) $ECHO_C" >&6
  8974. else
  8975. if test "$cross_compiling" = yes; then
  8976. ac_cv_func_lstat_empty_string_bug=yes
  8977. else
  8978. cat >conftest.$ac_ext <<_ACEOF
  8979. /* confdefs.h. */
  8980. _ACEOF
  8981. cat confdefs.h >>conftest.$ac_ext
  8982. cat >>conftest.$ac_ext <<_ACEOF
  8983. /* end confdefs.h. */
  8984. $ac_includes_default
  8985. int
  8986. main ()
  8987. {
  8988. struct stat sbuf;
  8989. exit (lstat ("", &sbuf) ? 1 : 0);
  8990. ;
  8991. return 0;
  8992. }
  8993. _ACEOF
  8994. rm -f conftest$ac_exeext
  8995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8996. (eval $ac_link) 2>&5
  8997. ac_status=$?
  8998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8999. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9001. (eval $ac_try) 2>&5
  9002. ac_status=$?
  9003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9004. (exit $ac_status); }; }; then
  9005. ac_cv_func_lstat_empty_string_bug=yes
  9006. else
  9007. echo "$as_me: program exited with status $ac_status" >&5
  9008. echo "$as_me: failed program was:" >&5
  9009. sed 's/^/| /' conftest.$ac_ext >&5
  9010. ( exit $ac_status )
  9011. ac_cv_func_lstat_empty_string_bug=no
  9012. fi
  9013. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9014. fi
  9015. fi
  9016. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  9017. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  9018. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  9019. case $LIBOBJS in
  9020. "lstat.$ac_objext" | \
  9021. *" lstat.$ac_objext" | \
  9022. "lstat.$ac_objext "* | \
  9023. *" lstat.$ac_objext "* ) ;;
  9024. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9025. esac
  9026. cat >>confdefs.h <<_ACEOF
  9027. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  9028. _ACEOF
  9029. fi
  9030. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  9031. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  9032. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  9033. echo $ECHO_N "(cached) $ECHO_C" >&6
  9034. else
  9035. rm -f conftest.sym conftest.file
  9036. echo >conftest.file
  9037. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  9038. if test "$cross_compiling" = yes; then
  9039. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9040. else
  9041. cat >conftest.$ac_ext <<_ACEOF
  9042. /* confdefs.h. */
  9043. _ACEOF
  9044. cat confdefs.h >>conftest.$ac_ext
  9045. cat >>conftest.$ac_ext <<_ACEOF
  9046. /* end confdefs.h. */
  9047. $ac_includes_default
  9048. int
  9049. main ()
  9050. {
  9051. struct stat sbuf;
  9052. /* Linux will dereference the symlink and fail.
  9053. That is better in the sense that it means we will not
  9054. have to compile and use the lstat wrapper. */
  9055. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  9056. ;
  9057. return 0;
  9058. }
  9059. _ACEOF
  9060. rm -f conftest$ac_exeext
  9061. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9062. (eval $ac_link) 2>&5
  9063. ac_status=$?
  9064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9065. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9067. (eval $ac_try) 2>&5
  9068. ac_status=$?
  9069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9070. (exit $ac_status); }; }; then
  9071. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  9072. else
  9073. echo "$as_me: program exited with status $ac_status" >&5
  9074. echo "$as_me: failed program was:" >&5
  9075. sed 's/^/| /' conftest.$ac_ext >&5
  9076. ( exit $ac_status )
  9077. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9078. fi
  9079. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9080. fi
  9081. else
  9082. # If the `ln -s' command failed, then we probably don't even
  9083. # have an lstat function.
  9084. ac_cv_func_lstat_dereferences_slashed_symlink=no
  9085. fi
  9086. rm -f conftest.sym conftest.file
  9087. fi
  9088. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  9089. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  9090. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  9091. cat >>confdefs.h <<_ACEOF
  9092. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  9093. _ACEOF
  9094. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  9095. case $LIBOBJS in
  9096. "lstat.$ac_objext" | \
  9097. *" lstat.$ac_objext" | \
  9098. "lstat.$ac_objext "* | \
  9099. *" lstat.$ac_objext "* ) ;;
  9100. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  9101. esac
  9102. fi
  9103. for ac_header in stdlib.h
  9104. do
  9105. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9106. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9107. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9108. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9109. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9110. echo $ECHO_N "(cached) $ECHO_C" >&6
  9111. fi
  9112. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9113. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9114. else
  9115. # Is the header compilable?
  9116. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9117. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9118. cat >conftest.$ac_ext <<_ACEOF
  9119. /* confdefs.h. */
  9120. _ACEOF
  9121. cat confdefs.h >>conftest.$ac_ext
  9122. cat >>conftest.$ac_ext <<_ACEOF
  9123. /* end confdefs.h. */
  9124. $ac_includes_default
  9125. #include <$ac_header>
  9126. _ACEOF
  9127. rm -f conftest.$ac_objext
  9128. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9129. (eval $ac_compile) 2>conftest.er1
  9130. ac_status=$?
  9131. grep -v '^ *+' conftest.er1 >conftest.err
  9132. rm -f conftest.er1
  9133. cat conftest.err >&5
  9134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9135. (exit $ac_status); } &&
  9136. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9138. (eval $ac_try) 2>&5
  9139. ac_status=$?
  9140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9141. (exit $ac_status); }; } &&
  9142. { ac_try='test -s conftest.$ac_objext'
  9143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9144. (eval $ac_try) 2>&5
  9145. ac_status=$?
  9146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9147. (exit $ac_status); }; }; then
  9148. ac_header_compiler=yes
  9149. else
  9150. echo "$as_me: failed program was:" >&5
  9151. sed 's/^/| /' conftest.$ac_ext >&5
  9152. ac_header_compiler=no
  9153. fi
  9154. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9155. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9156. echo "${ECHO_T}$ac_header_compiler" >&6
  9157. # Is the header present?
  9158. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9159. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9160. cat >conftest.$ac_ext <<_ACEOF
  9161. /* confdefs.h. */
  9162. _ACEOF
  9163. cat confdefs.h >>conftest.$ac_ext
  9164. cat >>conftest.$ac_ext <<_ACEOF
  9165. /* end confdefs.h. */
  9166. #include <$ac_header>
  9167. _ACEOF
  9168. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9169. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9170. ac_status=$?
  9171. grep -v '^ *+' conftest.er1 >conftest.err
  9172. rm -f conftest.er1
  9173. cat conftest.err >&5
  9174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9175. (exit $ac_status); } >/dev/null; then
  9176. if test -s conftest.err; then
  9177. ac_cpp_err=$ac_c_preproc_warn_flag
  9178. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9179. else
  9180. ac_cpp_err=
  9181. fi
  9182. else
  9183. ac_cpp_err=yes
  9184. fi
  9185. if test -z "$ac_cpp_err"; then
  9186. ac_header_preproc=yes
  9187. else
  9188. echo "$as_me: failed program was:" >&5
  9189. sed 's/^/| /' conftest.$ac_ext >&5
  9190. ac_header_preproc=no
  9191. fi
  9192. rm -f conftest.err conftest.$ac_ext
  9193. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9194. echo "${ECHO_T}$ac_header_preproc" >&6
  9195. # So? What about this header?
  9196. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9197. yes:no: )
  9198. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9199. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9200. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9201. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9202. ac_header_preproc=yes
  9203. ;;
  9204. no:yes:* )
  9205. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9206. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9207. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9208. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9209. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9210. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9211. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9212. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9213. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9214. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9215. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9216. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9217. (
  9218. cat <<\_ASBOX
  9219. ## ------------------------------------------ ##
  9220. ## Report this to the AC_PACKAGE_NAME lists. ##
  9221. ## ------------------------------------------ ##
  9222. _ASBOX
  9223. ) |
  9224. sed "s/^/$as_me: WARNING: /" >&2
  9225. ;;
  9226. esac
  9227. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9228. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9229. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9230. echo $ECHO_N "(cached) $ECHO_C" >&6
  9231. else
  9232. eval "$as_ac_Header=\$ac_header_preproc"
  9233. fi
  9234. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9235. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9236. fi
  9237. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9238. cat >>confdefs.h <<_ACEOF
  9239. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9240. _ACEOF
  9241. fi
  9242. done
  9243. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9244. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9245. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9246. echo $ECHO_N "(cached) $ECHO_C" >&6
  9247. else
  9248. if test "$cross_compiling" = yes; then
  9249. ac_cv_func_malloc_0_nonnull=no
  9250. else
  9251. cat >conftest.$ac_ext <<_ACEOF
  9252. /* confdefs.h. */
  9253. _ACEOF
  9254. cat confdefs.h >>conftest.$ac_ext
  9255. cat >>conftest.$ac_ext <<_ACEOF
  9256. /* end confdefs.h. */
  9257. #if STDC_HEADERS || HAVE_STDLIB_H
  9258. # include <stdlib.h>
  9259. #else
  9260. char *malloc ();
  9261. #endif
  9262. int
  9263. main ()
  9264. {
  9265. exit (malloc (0) ? 0 : 1);
  9266. ;
  9267. return 0;
  9268. }
  9269. _ACEOF
  9270. rm -f conftest$ac_exeext
  9271. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9272. (eval $ac_link) 2>&5
  9273. ac_status=$?
  9274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9275. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9277. (eval $ac_try) 2>&5
  9278. ac_status=$?
  9279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9280. (exit $ac_status); }; }; then
  9281. ac_cv_func_malloc_0_nonnull=yes
  9282. else
  9283. echo "$as_me: program exited with status $ac_status" >&5
  9284. echo "$as_me: failed program was:" >&5
  9285. sed 's/^/| /' conftest.$ac_ext >&5
  9286. ( exit $ac_status )
  9287. ac_cv_func_malloc_0_nonnull=no
  9288. fi
  9289. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9290. fi
  9291. fi
  9292. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9293. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9294. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9295. cat >>confdefs.h <<\_ACEOF
  9296. #define HAVE_MALLOC 1
  9297. _ACEOF
  9298. else
  9299. cat >>confdefs.h <<\_ACEOF
  9300. #define HAVE_MALLOC 0
  9301. _ACEOF
  9302. case $LIBOBJS in
  9303. "malloc.$ac_objext" | \
  9304. *" malloc.$ac_objext" | \
  9305. "malloc.$ac_objext "* | \
  9306. *" malloc.$ac_objext "* ) ;;
  9307. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9308. esac
  9309. cat >>confdefs.h <<\_ACEOF
  9310. #define malloc rpl_malloc
  9311. _ACEOF
  9312. fi
  9313. for ac_header in stdlib.h sys/time.h unistd.h
  9314. do
  9315. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9316. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9317. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9318. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9319. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9320. echo $ECHO_N "(cached) $ECHO_C" >&6
  9321. fi
  9322. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9323. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9324. else
  9325. # Is the header compilable?
  9326. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9327. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9328. cat >conftest.$ac_ext <<_ACEOF
  9329. /* confdefs.h. */
  9330. _ACEOF
  9331. cat confdefs.h >>conftest.$ac_ext
  9332. cat >>conftest.$ac_ext <<_ACEOF
  9333. /* end confdefs.h. */
  9334. $ac_includes_default
  9335. #include <$ac_header>
  9336. _ACEOF
  9337. rm -f conftest.$ac_objext
  9338. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9339. (eval $ac_compile) 2>conftest.er1
  9340. ac_status=$?
  9341. grep -v '^ *+' conftest.er1 >conftest.err
  9342. rm -f conftest.er1
  9343. cat conftest.err >&5
  9344. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9345. (exit $ac_status); } &&
  9346. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9347. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9348. (eval $ac_try) 2>&5
  9349. ac_status=$?
  9350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9351. (exit $ac_status); }; } &&
  9352. { ac_try='test -s conftest.$ac_objext'
  9353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9354. (eval $ac_try) 2>&5
  9355. ac_status=$?
  9356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9357. (exit $ac_status); }; }; then
  9358. ac_header_compiler=yes
  9359. else
  9360. echo "$as_me: failed program was:" >&5
  9361. sed 's/^/| /' conftest.$ac_ext >&5
  9362. ac_header_compiler=no
  9363. fi
  9364. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9365. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9366. echo "${ECHO_T}$ac_header_compiler" >&6
  9367. # Is the header present?
  9368. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9369. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9370. cat >conftest.$ac_ext <<_ACEOF
  9371. /* confdefs.h. */
  9372. _ACEOF
  9373. cat confdefs.h >>conftest.$ac_ext
  9374. cat >>conftest.$ac_ext <<_ACEOF
  9375. /* end confdefs.h. */
  9376. #include <$ac_header>
  9377. _ACEOF
  9378. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9379. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9380. ac_status=$?
  9381. grep -v '^ *+' conftest.er1 >conftest.err
  9382. rm -f conftest.er1
  9383. cat conftest.err >&5
  9384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9385. (exit $ac_status); } >/dev/null; then
  9386. if test -s conftest.err; then
  9387. ac_cpp_err=$ac_c_preproc_warn_flag
  9388. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9389. else
  9390. ac_cpp_err=
  9391. fi
  9392. else
  9393. ac_cpp_err=yes
  9394. fi
  9395. if test -z "$ac_cpp_err"; then
  9396. ac_header_preproc=yes
  9397. else
  9398. echo "$as_me: failed program was:" >&5
  9399. sed 's/^/| /' conftest.$ac_ext >&5
  9400. ac_header_preproc=no
  9401. fi
  9402. rm -f conftest.err conftest.$ac_ext
  9403. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9404. echo "${ECHO_T}$ac_header_preproc" >&6
  9405. # So? What about this header?
  9406. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9407. yes:no: )
  9408. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9409. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9410. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9411. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9412. ac_header_preproc=yes
  9413. ;;
  9414. no:yes:* )
  9415. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9416. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9417. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9418. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9419. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9420. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9421. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9422. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9423. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9424. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9425. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9426. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9427. (
  9428. cat <<\_ASBOX
  9429. ## ------------------------------------------ ##
  9430. ## Report this to the AC_PACKAGE_NAME lists. ##
  9431. ## ------------------------------------------ ##
  9432. _ASBOX
  9433. ) |
  9434. sed "s/^/$as_me: WARNING: /" >&2
  9435. ;;
  9436. esac
  9437. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9438. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9439. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9440. echo $ECHO_N "(cached) $ECHO_C" >&6
  9441. else
  9442. eval "$as_ac_Header=\$ac_header_preproc"
  9443. fi
  9444. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9445. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9446. fi
  9447. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9448. cat >>confdefs.h <<_ACEOF
  9449. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9450. _ACEOF
  9451. fi
  9452. done
  9453. for ac_func in alarm
  9454. do
  9455. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9456. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9457. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9458. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9459. echo $ECHO_N "(cached) $ECHO_C" >&6
  9460. else
  9461. cat >conftest.$ac_ext <<_ACEOF
  9462. /* confdefs.h. */
  9463. _ACEOF
  9464. cat confdefs.h >>conftest.$ac_ext
  9465. cat >>conftest.$ac_ext <<_ACEOF
  9466. /* end confdefs.h. */
  9467. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9468. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9469. #define $ac_func innocuous_$ac_func
  9470. /* System header to define __stub macros and hopefully few prototypes,
  9471. which can conflict with char $ac_func (); below.
  9472. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9473. <limits.h> exists even on freestanding compilers. */
  9474. #ifdef __STDC__
  9475. # include <limits.h>
  9476. #else
  9477. # include <assert.h>
  9478. #endif
  9479. #undef $ac_func
  9480. /* Override any gcc2 internal prototype to avoid an error. */
  9481. #ifdef __cplusplus
  9482. extern "C"
  9483. {
  9484. #endif
  9485. /* We use char because int might match the return type of a gcc2
  9486. builtin and then its argument prototype would still apply. */
  9487. char $ac_func ();
  9488. /* The GNU C library defines this for functions which it implements
  9489. to always fail with ENOSYS. Some functions are actually named
  9490. something starting with __ and the normal name is an alias. */
  9491. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9492. choke me
  9493. #else
  9494. char (*f) () = $ac_func;
  9495. #endif
  9496. #ifdef __cplusplus
  9497. }
  9498. #endif
  9499. int
  9500. main ()
  9501. {
  9502. return f != $ac_func;
  9503. ;
  9504. return 0;
  9505. }
  9506. _ACEOF
  9507. rm -f conftest.$ac_objext conftest$ac_exeext
  9508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9509. (eval $ac_link) 2>conftest.er1
  9510. ac_status=$?
  9511. grep -v '^ *+' conftest.er1 >conftest.err
  9512. rm -f conftest.er1
  9513. cat conftest.err >&5
  9514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9515. (exit $ac_status); } &&
  9516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9518. (eval $ac_try) 2>&5
  9519. ac_status=$?
  9520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9521. (exit $ac_status); }; } &&
  9522. { ac_try='test -s conftest$ac_exeext'
  9523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9524. (eval $ac_try) 2>&5
  9525. ac_status=$?
  9526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9527. (exit $ac_status); }; }; then
  9528. eval "$as_ac_var=yes"
  9529. else
  9530. echo "$as_me: failed program was:" >&5
  9531. sed 's/^/| /' conftest.$ac_ext >&5
  9532. eval "$as_ac_var=no"
  9533. fi
  9534. rm -f conftest.err conftest.$ac_objext \
  9535. conftest$ac_exeext conftest.$ac_ext
  9536. fi
  9537. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9538. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9539. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9540. cat >>confdefs.h <<_ACEOF
  9541. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9542. _ACEOF
  9543. fi
  9544. done
  9545. echo "$as_me:$LINENO: checking for working mktime" >&5
  9546. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9547. if test "${ac_cv_func_working_mktime+set}" = set; then
  9548. echo $ECHO_N "(cached) $ECHO_C" >&6
  9549. else
  9550. if test "$cross_compiling" = yes; then
  9551. ac_cv_func_working_mktime=no
  9552. else
  9553. cat >conftest.$ac_ext <<_ACEOF
  9554. /* confdefs.h. */
  9555. _ACEOF
  9556. cat confdefs.h >>conftest.$ac_ext
  9557. cat >>conftest.$ac_ext <<_ACEOF
  9558. /* end confdefs.h. */
  9559. /* Test program from Paul Eggert and Tony Leneis. */
  9560. #if TIME_WITH_SYS_TIME
  9561. # include <sys/time.h>
  9562. # include <time.h>
  9563. #else
  9564. # if HAVE_SYS_TIME_H
  9565. # include <sys/time.h>
  9566. # else
  9567. # include <time.h>
  9568. # endif
  9569. #endif
  9570. #if HAVE_STDLIB_H
  9571. # include <stdlib.h>
  9572. #endif
  9573. #if HAVE_UNISTD_H
  9574. # include <unistd.h>
  9575. #endif
  9576. #if !HAVE_ALARM
  9577. # define alarm(X) /* empty */
  9578. #endif
  9579. /* Work around redefinition to rpl_putenv by other config tests. */
  9580. #undef putenv
  9581. static time_t time_t_max;
  9582. static time_t time_t_min;
  9583. /* Values we'll use to set the TZ environment variable. */
  9584. static char *tz_strings[] = {
  9585. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9586. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9587. };
  9588. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9589. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9590. Based on a problem report from Andreas Jaeger. */
  9591. static void
  9592. spring_forward_gap ()
  9593. {
  9594. /* glibc (up to about 1998-10-07) failed this test. */
  9595. struct tm tm;
  9596. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9597. instead of "TZ=America/Vancouver" in order to detect the bug even
  9598. on systems that don't support the Olson extension, or don't have the
  9599. full zoneinfo tables installed. */
  9600. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9601. tm.tm_year = 98;
  9602. tm.tm_mon = 3;
  9603. tm.tm_mday = 5;
  9604. tm.tm_hour = 2;
  9605. tm.tm_min = 0;
  9606. tm.tm_sec = 0;
  9607. tm.tm_isdst = -1;
  9608. if (mktime (&tm) == (time_t)-1)
  9609. exit (1);
  9610. }
  9611. static void
  9612. mktime_test1 (now)
  9613. time_t now;
  9614. {
  9615. struct tm *lt;
  9616. if ((lt = localtime (&now)) && mktime (lt) != now)
  9617. exit (1);
  9618. }
  9619. static void
  9620. mktime_test (now)
  9621. time_t now;
  9622. {
  9623. mktime_test1 (now);
  9624. mktime_test1 ((time_t) (time_t_max - now));
  9625. mktime_test1 ((time_t) (time_t_min + now));
  9626. }
  9627. static void
  9628. irix_6_4_bug ()
  9629. {
  9630. /* Based on code from Ariel Faigon. */
  9631. struct tm tm;
  9632. tm.tm_year = 96;
  9633. tm.tm_mon = 3;
  9634. tm.tm_mday = 0;
  9635. tm.tm_hour = 0;
  9636. tm.tm_min = 0;
  9637. tm.tm_sec = 0;
  9638. tm.tm_isdst = -1;
  9639. mktime (&tm);
  9640. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9641. exit (1);
  9642. }
  9643. static void
  9644. bigtime_test (j)
  9645. int j;
  9646. {
  9647. struct tm tm;
  9648. time_t now;
  9649. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9650. now = mktime (&tm);
  9651. if (now != (time_t) -1)
  9652. {
  9653. struct tm *lt = localtime (&now);
  9654. if (! (lt
  9655. && lt->tm_year == tm.tm_year
  9656. && lt->tm_mon == tm.tm_mon
  9657. && lt->tm_mday == tm.tm_mday
  9658. && lt->tm_hour == tm.tm_hour
  9659. && lt->tm_min == tm.tm_min
  9660. && lt->tm_sec == tm.tm_sec
  9661. && lt->tm_yday == tm.tm_yday
  9662. && lt->tm_wday == tm.tm_wday
  9663. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9664. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9665. exit (1);
  9666. }
  9667. }
  9668. int
  9669. main ()
  9670. {
  9671. time_t t, delta;
  9672. int i, j;
  9673. /* This test makes some buggy mktime implementations loop.
  9674. Give up after 60 seconds; a mktime slower than that
  9675. isn't worth using anyway. */
  9676. alarm (60);
  9677. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9678. continue;
  9679. time_t_max--;
  9680. if ((time_t) -1 < 0)
  9681. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9682. continue;
  9683. delta = time_t_max / 997; /* a suitable prime number */
  9684. for (i = 0; i < N_STRINGS; i++)
  9685. {
  9686. if (tz_strings[i])
  9687. putenv (tz_strings[i]);
  9688. for (t = 0; t <= time_t_max - delta; t += delta)
  9689. mktime_test (t);
  9690. mktime_test ((time_t) 1);
  9691. mktime_test ((time_t) (60 * 60));
  9692. mktime_test ((time_t) (60 * 60 * 24));
  9693. for (j = 1; 0 < j; j *= 2)
  9694. bigtime_test (j);
  9695. bigtime_test (j - 1);
  9696. }
  9697. irix_6_4_bug ();
  9698. spring_forward_gap ();
  9699. exit (0);
  9700. }
  9701. _ACEOF
  9702. rm -f conftest$ac_exeext
  9703. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9704. (eval $ac_link) 2>&5
  9705. ac_status=$?
  9706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9707. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9708. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9709. (eval $ac_try) 2>&5
  9710. ac_status=$?
  9711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9712. (exit $ac_status); }; }; then
  9713. ac_cv_func_working_mktime=yes
  9714. else
  9715. echo "$as_me: program exited with status $ac_status" >&5
  9716. echo "$as_me: failed program was:" >&5
  9717. sed 's/^/| /' conftest.$ac_ext >&5
  9718. ( exit $ac_status )
  9719. ac_cv_func_working_mktime=no
  9720. fi
  9721. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9722. fi
  9723. fi
  9724. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9725. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9726. if test $ac_cv_func_working_mktime = no; then
  9727. case $LIBOBJS in
  9728. "mktime.$ac_objext" | \
  9729. *" mktime.$ac_objext" | \
  9730. "mktime.$ac_objext "* | \
  9731. *" mktime.$ac_objext "* ) ;;
  9732. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9733. esac
  9734. fi
  9735. for ac_header in stdlib.h unistd.h
  9736. do
  9737. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9738. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9739. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9740. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9741. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9742. echo $ECHO_N "(cached) $ECHO_C" >&6
  9743. fi
  9744. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9745. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9746. else
  9747. # Is the header compilable?
  9748. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9749. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9750. cat >conftest.$ac_ext <<_ACEOF
  9751. /* confdefs.h. */
  9752. _ACEOF
  9753. cat confdefs.h >>conftest.$ac_ext
  9754. cat >>conftest.$ac_ext <<_ACEOF
  9755. /* end confdefs.h. */
  9756. $ac_includes_default
  9757. #include <$ac_header>
  9758. _ACEOF
  9759. rm -f conftest.$ac_objext
  9760. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9761. (eval $ac_compile) 2>conftest.er1
  9762. ac_status=$?
  9763. grep -v '^ *+' conftest.er1 >conftest.err
  9764. rm -f conftest.er1
  9765. cat conftest.err >&5
  9766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9767. (exit $ac_status); } &&
  9768. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9770. (eval $ac_try) 2>&5
  9771. ac_status=$?
  9772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9773. (exit $ac_status); }; } &&
  9774. { ac_try='test -s conftest.$ac_objext'
  9775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9776. (eval $ac_try) 2>&5
  9777. ac_status=$?
  9778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9779. (exit $ac_status); }; }; then
  9780. ac_header_compiler=yes
  9781. else
  9782. echo "$as_me: failed program was:" >&5
  9783. sed 's/^/| /' conftest.$ac_ext >&5
  9784. ac_header_compiler=no
  9785. fi
  9786. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9787. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9788. echo "${ECHO_T}$ac_header_compiler" >&6
  9789. # Is the header present?
  9790. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9791. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9792. cat >conftest.$ac_ext <<_ACEOF
  9793. /* confdefs.h. */
  9794. _ACEOF
  9795. cat confdefs.h >>conftest.$ac_ext
  9796. cat >>conftest.$ac_ext <<_ACEOF
  9797. /* end confdefs.h. */
  9798. #include <$ac_header>
  9799. _ACEOF
  9800. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9801. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9802. ac_status=$?
  9803. grep -v '^ *+' conftest.er1 >conftest.err
  9804. rm -f conftest.er1
  9805. cat conftest.err >&5
  9806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9807. (exit $ac_status); } >/dev/null; then
  9808. if test -s conftest.err; then
  9809. ac_cpp_err=$ac_c_preproc_warn_flag
  9810. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9811. else
  9812. ac_cpp_err=
  9813. fi
  9814. else
  9815. ac_cpp_err=yes
  9816. fi
  9817. if test -z "$ac_cpp_err"; then
  9818. ac_header_preproc=yes
  9819. else
  9820. echo "$as_me: failed program was:" >&5
  9821. sed 's/^/| /' conftest.$ac_ext >&5
  9822. ac_header_preproc=no
  9823. fi
  9824. rm -f conftest.err conftest.$ac_ext
  9825. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9826. echo "${ECHO_T}$ac_header_preproc" >&6
  9827. # So? What about this header?
  9828. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9829. yes:no: )
  9830. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9831. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9832. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9833. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9834. ac_header_preproc=yes
  9835. ;;
  9836. no:yes:* )
  9837. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9838. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9839. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9840. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9841. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9842. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9843. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9844. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9845. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9846. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9847. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9848. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9849. (
  9850. cat <<\_ASBOX
  9851. ## ------------------------------------------ ##
  9852. ## Report this to the AC_PACKAGE_NAME lists. ##
  9853. ## ------------------------------------------ ##
  9854. _ASBOX
  9855. ) |
  9856. sed "s/^/$as_me: WARNING: /" >&2
  9857. ;;
  9858. esac
  9859. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9860. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9861. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9862. echo $ECHO_N "(cached) $ECHO_C" >&6
  9863. else
  9864. eval "$as_ac_Header=\$ac_header_preproc"
  9865. fi
  9866. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9867. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9868. fi
  9869. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9870. cat >>confdefs.h <<_ACEOF
  9871. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9872. _ACEOF
  9873. fi
  9874. done
  9875. for ac_func in getpagesize
  9876. do
  9877. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9878. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9879. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9880. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9881. echo $ECHO_N "(cached) $ECHO_C" >&6
  9882. else
  9883. cat >conftest.$ac_ext <<_ACEOF
  9884. /* confdefs.h. */
  9885. _ACEOF
  9886. cat confdefs.h >>conftest.$ac_ext
  9887. cat >>conftest.$ac_ext <<_ACEOF
  9888. /* end confdefs.h. */
  9889. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9890. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9891. #define $ac_func innocuous_$ac_func
  9892. /* System header to define __stub macros and hopefully few prototypes,
  9893. which can conflict with char $ac_func (); below.
  9894. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9895. <limits.h> exists even on freestanding compilers. */
  9896. #ifdef __STDC__
  9897. # include <limits.h>
  9898. #else
  9899. # include <assert.h>
  9900. #endif
  9901. #undef $ac_func
  9902. /* Override any gcc2 internal prototype to avoid an error. */
  9903. #ifdef __cplusplus
  9904. extern "C"
  9905. {
  9906. #endif
  9907. /* We use char because int might match the return type of a gcc2
  9908. builtin and then its argument prototype would still apply. */
  9909. char $ac_func ();
  9910. /* The GNU C library defines this for functions which it implements
  9911. to always fail with ENOSYS. Some functions are actually named
  9912. something starting with __ and the normal name is an alias. */
  9913. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9914. choke me
  9915. #else
  9916. char (*f) () = $ac_func;
  9917. #endif
  9918. #ifdef __cplusplus
  9919. }
  9920. #endif
  9921. int
  9922. main ()
  9923. {
  9924. return f != $ac_func;
  9925. ;
  9926. return 0;
  9927. }
  9928. _ACEOF
  9929. rm -f conftest.$ac_objext conftest$ac_exeext
  9930. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9931. (eval $ac_link) 2>conftest.er1
  9932. ac_status=$?
  9933. grep -v '^ *+' conftest.er1 >conftest.err
  9934. rm -f conftest.er1
  9935. cat conftest.err >&5
  9936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9937. (exit $ac_status); } &&
  9938. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9940. (eval $ac_try) 2>&5
  9941. ac_status=$?
  9942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9943. (exit $ac_status); }; } &&
  9944. { ac_try='test -s conftest$ac_exeext'
  9945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9946. (eval $ac_try) 2>&5
  9947. ac_status=$?
  9948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9949. (exit $ac_status); }; }; then
  9950. eval "$as_ac_var=yes"
  9951. else
  9952. echo "$as_me: failed program was:" >&5
  9953. sed 's/^/| /' conftest.$ac_ext >&5
  9954. eval "$as_ac_var=no"
  9955. fi
  9956. rm -f conftest.err conftest.$ac_objext \
  9957. conftest$ac_exeext conftest.$ac_ext
  9958. fi
  9959. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9960. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9961. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9962. cat >>confdefs.h <<_ACEOF
  9963. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9964. _ACEOF
  9965. fi
  9966. done
  9967. echo "$as_me:$LINENO: checking for working mmap" >&5
  9968. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9969. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9970. echo $ECHO_N "(cached) $ECHO_C" >&6
  9971. else
  9972. if test "$cross_compiling" = yes; then
  9973. ac_cv_func_mmap_fixed_mapped=no
  9974. else
  9975. cat >conftest.$ac_ext <<_ACEOF
  9976. /* confdefs.h. */
  9977. _ACEOF
  9978. cat confdefs.h >>conftest.$ac_ext
  9979. cat >>conftest.$ac_ext <<_ACEOF
  9980. /* end confdefs.h. */
  9981. $ac_includes_default
  9982. /* malloc might have been renamed as rpl_malloc. */
  9983. #undef malloc
  9984. /* Thanks to Mike Haertel and Jim Avera for this test.
  9985. Here is a matrix of mmap possibilities:
  9986. mmap private not fixed
  9987. mmap private fixed at somewhere currently unmapped
  9988. mmap private fixed at somewhere already mapped
  9989. mmap shared not fixed
  9990. mmap shared fixed at somewhere currently unmapped
  9991. mmap shared fixed at somewhere already mapped
  9992. For private mappings, we should verify that changes cannot be read()
  9993. back from the file, nor mmap's back from the file at a different
  9994. address. (There have been systems where private was not correctly
  9995. implemented like the infamous i386 svr4.0, and systems where the
  9996. VM page cache was not coherent with the file system buffer cache
  9997. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9998. For shared mappings, we should conversely verify that changes get
  9999. propagated back to all the places they're supposed to be.
  10000. Grep wants private fixed already mapped.
  10001. The main things grep needs to know about mmap are:
  10002. * does it exist and is it safe to write into the mmap'd area
  10003. * how to use it (BSD variants) */
  10004. #include <fcntl.h>
  10005. #include <sys/mman.h>
  10006. #if !STDC_HEADERS && !HAVE_STDLIB_H
  10007. char *malloc ();
  10008. #endif
  10009. /* This mess was copied from the GNU getpagesize.h. */
  10010. #if !HAVE_GETPAGESIZE
  10011. /* Assume that all systems that can run configure have sys/param.h. */
  10012. # if !HAVE_SYS_PARAM_H
  10013. # define HAVE_SYS_PARAM_H 1
  10014. # endif
  10015. # ifdef _SC_PAGESIZE
  10016. # define getpagesize() sysconf(_SC_PAGESIZE)
  10017. # else /* no _SC_PAGESIZE */
  10018. # if HAVE_SYS_PARAM_H
  10019. # include <sys/param.h>
  10020. # ifdef EXEC_PAGESIZE
  10021. # define getpagesize() EXEC_PAGESIZE
  10022. # else /* no EXEC_PAGESIZE */
  10023. # ifdef NBPG
  10024. # define getpagesize() NBPG * CLSIZE
  10025. # ifndef CLSIZE
  10026. # define CLSIZE 1
  10027. # endif /* no CLSIZE */
  10028. # else /* no NBPG */
  10029. # ifdef NBPC
  10030. # define getpagesize() NBPC
  10031. # else /* no NBPC */
  10032. # ifdef PAGESIZE
  10033. # define getpagesize() PAGESIZE
  10034. # endif /* PAGESIZE */
  10035. # endif /* no NBPC */
  10036. # endif /* no NBPG */
  10037. # endif /* no EXEC_PAGESIZE */
  10038. # else /* no HAVE_SYS_PARAM_H */
  10039. # define getpagesize() 8192 /* punt totally */
  10040. # endif /* no HAVE_SYS_PARAM_H */
  10041. # endif /* no _SC_PAGESIZE */
  10042. #endif /* no HAVE_GETPAGESIZE */
  10043. int
  10044. main ()
  10045. {
  10046. char *data, *data2, *data3;
  10047. int i, pagesize;
  10048. int fd;
  10049. pagesize = getpagesize ();
  10050. /* First, make a file with some known garbage in it. */
  10051. data = (char *) malloc (pagesize);
  10052. if (!data)
  10053. exit (1);
  10054. for (i = 0; i < pagesize; ++i)
  10055. *(data + i) = rand ();
  10056. umask (0);
  10057. fd = creat ("conftest.mmap", 0600);
  10058. if (fd < 0)
  10059. exit (1);
  10060. if (write (fd, data, pagesize) != pagesize)
  10061. exit (1);
  10062. close (fd);
  10063. /* Next, try to mmap the file at a fixed address which already has
  10064. something else allocated at it. If we can, also make sure that
  10065. we see the same garbage. */
  10066. fd = open ("conftest.mmap", O_RDWR);
  10067. if (fd < 0)
  10068. exit (1);
  10069. data2 = (char *) malloc (2 * pagesize);
  10070. if (!data2)
  10071. exit (1);
  10072. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  10073. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  10074. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  10075. exit (1);
  10076. for (i = 0; i < pagesize; ++i)
  10077. if (*(data + i) != *(data2 + i))
  10078. exit (1);
  10079. /* Finally, make sure that changes to the mapped area do not
  10080. percolate back to the file as seen by read(). (This is a bug on
  10081. some variants of i386 svr4.0.) */
  10082. for (i = 0; i < pagesize; ++i)
  10083. *(data2 + i) = *(data2 + i) + 1;
  10084. data3 = (char *) malloc (pagesize);
  10085. if (!data3)
  10086. exit (1);
  10087. if (read (fd, data3, pagesize) != pagesize)
  10088. exit (1);
  10089. for (i = 0; i < pagesize; ++i)
  10090. if (*(data + i) != *(data3 + i))
  10091. exit (1);
  10092. close (fd);
  10093. exit (0);
  10094. }
  10095. _ACEOF
  10096. rm -f conftest$ac_exeext
  10097. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10098. (eval $ac_link) 2>&5
  10099. ac_status=$?
  10100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10101. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10102. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10103. (eval $ac_try) 2>&5
  10104. ac_status=$?
  10105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10106. (exit $ac_status); }; }; then
  10107. ac_cv_func_mmap_fixed_mapped=yes
  10108. else
  10109. echo "$as_me: program exited with status $ac_status" >&5
  10110. echo "$as_me: failed program was:" >&5
  10111. sed 's/^/| /' conftest.$ac_ext >&5
  10112. ( exit $ac_status )
  10113. ac_cv_func_mmap_fixed_mapped=no
  10114. fi
  10115. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10116. fi
  10117. fi
  10118. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  10119. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  10120. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  10121. cat >>confdefs.h <<\_ACEOF
  10122. #define HAVE_MMAP 1
  10123. _ACEOF
  10124. fi
  10125. rm -f conftest.mmap
  10126. for ac_header in stdlib.h
  10127. do
  10128. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10129. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10130. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10131. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10132. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10133. echo $ECHO_N "(cached) $ECHO_C" >&6
  10134. fi
  10135. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10136. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10137. else
  10138. # Is the header compilable?
  10139. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10140. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10141. cat >conftest.$ac_ext <<_ACEOF
  10142. /* confdefs.h. */
  10143. _ACEOF
  10144. cat confdefs.h >>conftest.$ac_ext
  10145. cat >>conftest.$ac_ext <<_ACEOF
  10146. /* end confdefs.h. */
  10147. $ac_includes_default
  10148. #include <$ac_header>
  10149. _ACEOF
  10150. rm -f conftest.$ac_objext
  10151. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10152. (eval $ac_compile) 2>conftest.er1
  10153. ac_status=$?
  10154. grep -v '^ *+' conftest.er1 >conftest.err
  10155. rm -f conftest.er1
  10156. cat conftest.err >&5
  10157. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10158. (exit $ac_status); } &&
  10159. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10160. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10161. (eval $ac_try) 2>&5
  10162. ac_status=$?
  10163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10164. (exit $ac_status); }; } &&
  10165. { ac_try='test -s conftest.$ac_objext'
  10166. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10167. (eval $ac_try) 2>&5
  10168. ac_status=$?
  10169. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10170. (exit $ac_status); }; }; then
  10171. ac_header_compiler=yes
  10172. else
  10173. echo "$as_me: failed program was:" >&5
  10174. sed 's/^/| /' conftest.$ac_ext >&5
  10175. ac_header_compiler=no
  10176. fi
  10177. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10178. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10179. echo "${ECHO_T}$ac_header_compiler" >&6
  10180. # Is the header present?
  10181. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10182. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10183. cat >conftest.$ac_ext <<_ACEOF
  10184. /* confdefs.h. */
  10185. _ACEOF
  10186. cat confdefs.h >>conftest.$ac_ext
  10187. cat >>conftest.$ac_ext <<_ACEOF
  10188. /* end confdefs.h. */
  10189. #include <$ac_header>
  10190. _ACEOF
  10191. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10192. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10193. ac_status=$?
  10194. grep -v '^ *+' conftest.er1 >conftest.err
  10195. rm -f conftest.er1
  10196. cat conftest.err >&5
  10197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10198. (exit $ac_status); } >/dev/null; then
  10199. if test -s conftest.err; then
  10200. ac_cpp_err=$ac_c_preproc_warn_flag
  10201. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10202. else
  10203. ac_cpp_err=
  10204. fi
  10205. else
  10206. ac_cpp_err=yes
  10207. fi
  10208. if test -z "$ac_cpp_err"; then
  10209. ac_header_preproc=yes
  10210. else
  10211. echo "$as_me: failed program was:" >&5
  10212. sed 's/^/| /' conftest.$ac_ext >&5
  10213. ac_header_preproc=no
  10214. fi
  10215. rm -f conftest.err conftest.$ac_ext
  10216. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10217. echo "${ECHO_T}$ac_header_preproc" >&6
  10218. # So? What about this header?
  10219. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10220. yes:no: )
  10221. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10222. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10223. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10224. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10225. ac_header_preproc=yes
  10226. ;;
  10227. no:yes:* )
  10228. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10229. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10230. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10231. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10232. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10233. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10234. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10235. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10236. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10237. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10238. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10239. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10240. (
  10241. cat <<\_ASBOX
  10242. ## ------------------------------------------ ##
  10243. ## Report this to the AC_PACKAGE_NAME lists. ##
  10244. ## ------------------------------------------ ##
  10245. _ASBOX
  10246. ) |
  10247. sed "s/^/$as_me: WARNING: /" >&2
  10248. ;;
  10249. esac
  10250. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10251. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10252. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10253. echo $ECHO_N "(cached) $ECHO_C" >&6
  10254. else
  10255. eval "$as_ac_Header=\$ac_header_preproc"
  10256. fi
  10257. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10258. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10259. fi
  10260. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10261. cat >>confdefs.h <<_ACEOF
  10262. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10263. _ACEOF
  10264. fi
  10265. done
  10266. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10267. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10268. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10269. echo $ECHO_N "(cached) $ECHO_C" >&6
  10270. else
  10271. if test "$cross_compiling" = yes; then
  10272. ac_cv_func_realloc_0_nonnull=no
  10273. else
  10274. cat >conftest.$ac_ext <<_ACEOF
  10275. /* confdefs.h. */
  10276. _ACEOF
  10277. cat confdefs.h >>conftest.$ac_ext
  10278. cat >>conftest.$ac_ext <<_ACEOF
  10279. /* end confdefs.h. */
  10280. #if STDC_HEADERS || HAVE_STDLIB_H
  10281. # include <stdlib.h>
  10282. #else
  10283. char *realloc ();
  10284. #endif
  10285. int
  10286. main ()
  10287. {
  10288. exit (realloc (0, 0) ? 0 : 1);
  10289. ;
  10290. return 0;
  10291. }
  10292. _ACEOF
  10293. rm -f conftest$ac_exeext
  10294. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10295. (eval $ac_link) 2>&5
  10296. ac_status=$?
  10297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10298. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10300. (eval $ac_try) 2>&5
  10301. ac_status=$?
  10302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10303. (exit $ac_status); }; }; then
  10304. ac_cv_func_realloc_0_nonnull=yes
  10305. else
  10306. echo "$as_me: program exited with status $ac_status" >&5
  10307. echo "$as_me: failed program was:" >&5
  10308. sed 's/^/| /' conftest.$ac_ext >&5
  10309. ( exit $ac_status )
  10310. ac_cv_func_realloc_0_nonnull=no
  10311. fi
  10312. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10313. fi
  10314. fi
  10315. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10316. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10317. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10318. cat >>confdefs.h <<\_ACEOF
  10319. #define HAVE_REALLOC 1
  10320. _ACEOF
  10321. else
  10322. cat >>confdefs.h <<\_ACEOF
  10323. #define HAVE_REALLOC 0
  10324. _ACEOF
  10325. case $LIBOBJS in
  10326. "realloc.$ac_objext" | \
  10327. *" realloc.$ac_objext" | \
  10328. "realloc.$ac_objext "* | \
  10329. *" realloc.$ac_objext "* ) ;;
  10330. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10331. esac
  10332. cat >>confdefs.h <<\_ACEOF
  10333. #define realloc rpl_realloc
  10334. _ACEOF
  10335. fi
  10336. for ac_header in sys/select.h sys/socket.h
  10337. do
  10338. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10339. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10340. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10341. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10342. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10343. echo $ECHO_N "(cached) $ECHO_C" >&6
  10344. fi
  10345. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10346. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10347. else
  10348. # Is the header compilable?
  10349. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10350. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10351. cat >conftest.$ac_ext <<_ACEOF
  10352. /* confdefs.h. */
  10353. _ACEOF
  10354. cat confdefs.h >>conftest.$ac_ext
  10355. cat >>conftest.$ac_ext <<_ACEOF
  10356. /* end confdefs.h. */
  10357. $ac_includes_default
  10358. #include <$ac_header>
  10359. _ACEOF
  10360. rm -f conftest.$ac_objext
  10361. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10362. (eval $ac_compile) 2>conftest.er1
  10363. ac_status=$?
  10364. grep -v '^ *+' conftest.er1 >conftest.err
  10365. rm -f conftest.er1
  10366. cat conftest.err >&5
  10367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10368. (exit $ac_status); } &&
  10369. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10371. (eval $ac_try) 2>&5
  10372. ac_status=$?
  10373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10374. (exit $ac_status); }; } &&
  10375. { ac_try='test -s conftest.$ac_objext'
  10376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10377. (eval $ac_try) 2>&5
  10378. ac_status=$?
  10379. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10380. (exit $ac_status); }; }; then
  10381. ac_header_compiler=yes
  10382. else
  10383. echo "$as_me: failed program was:" >&5
  10384. sed 's/^/| /' conftest.$ac_ext >&5
  10385. ac_header_compiler=no
  10386. fi
  10387. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10388. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10389. echo "${ECHO_T}$ac_header_compiler" >&6
  10390. # Is the header present?
  10391. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10392. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10393. cat >conftest.$ac_ext <<_ACEOF
  10394. /* confdefs.h. */
  10395. _ACEOF
  10396. cat confdefs.h >>conftest.$ac_ext
  10397. cat >>conftest.$ac_ext <<_ACEOF
  10398. /* end confdefs.h. */
  10399. #include <$ac_header>
  10400. _ACEOF
  10401. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10402. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10403. ac_status=$?
  10404. grep -v '^ *+' conftest.er1 >conftest.err
  10405. rm -f conftest.er1
  10406. cat conftest.err >&5
  10407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10408. (exit $ac_status); } >/dev/null; then
  10409. if test -s conftest.err; then
  10410. ac_cpp_err=$ac_c_preproc_warn_flag
  10411. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10412. else
  10413. ac_cpp_err=
  10414. fi
  10415. else
  10416. ac_cpp_err=yes
  10417. fi
  10418. if test -z "$ac_cpp_err"; then
  10419. ac_header_preproc=yes
  10420. else
  10421. echo "$as_me: failed program was:" >&5
  10422. sed 's/^/| /' conftest.$ac_ext >&5
  10423. ac_header_preproc=no
  10424. fi
  10425. rm -f conftest.err conftest.$ac_ext
  10426. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10427. echo "${ECHO_T}$ac_header_preproc" >&6
  10428. # So? What about this header?
  10429. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10430. yes:no: )
  10431. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10432. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10433. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10434. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10435. ac_header_preproc=yes
  10436. ;;
  10437. no:yes:* )
  10438. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10439. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10440. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10441. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10442. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10443. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10444. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10445. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10446. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10447. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10448. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10449. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10450. (
  10451. cat <<\_ASBOX
  10452. ## ------------------------------------------ ##
  10453. ## Report this to the AC_PACKAGE_NAME lists. ##
  10454. ## ------------------------------------------ ##
  10455. _ASBOX
  10456. ) |
  10457. sed "s/^/$as_me: WARNING: /" >&2
  10458. ;;
  10459. esac
  10460. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10461. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10462. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10463. echo $ECHO_N "(cached) $ECHO_C" >&6
  10464. else
  10465. eval "$as_ac_Header=\$ac_header_preproc"
  10466. fi
  10467. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10468. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10469. fi
  10470. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10471. cat >>confdefs.h <<_ACEOF
  10472. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10473. _ACEOF
  10474. fi
  10475. done
  10476. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10477. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10478. if test "${ac_cv_func_select_args+set}" = set; then
  10479. echo $ECHO_N "(cached) $ECHO_C" >&6
  10480. else
  10481. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10482. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10483. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10484. cat >conftest.$ac_ext <<_ACEOF
  10485. /* confdefs.h. */
  10486. _ACEOF
  10487. cat confdefs.h >>conftest.$ac_ext
  10488. cat >>conftest.$ac_ext <<_ACEOF
  10489. /* end confdefs.h. */
  10490. $ac_includes_default
  10491. #if HAVE_SYS_SELECT_H
  10492. # include <sys/select.h>
  10493. #endif
  10494. #if HAVE_SYS_SOCKET_H
  10495. # include <sys/socket.h>
  10496. #endif
  10497. int
  10498. main ()
  10499. {
  10500. extern int select ($ac_arg1,
  10501. $ac_arg234, $ac_arg234, $ac_arg234,
  10502. $ac_arg5);
  10503. ;
  10504. return 0;
  10505. }
  10506. _ACEOF
  10507. rm -f conftest.$ac_objext
  10508. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10509. (eval $ac_compile) 2>conftest.er1
  10510. ac_status=$?
  10511. grep -v '^ *+' conftest.er1 >conftest.err
  10512. rm -f conftest.er1
  10513. cat conftest.err >&5
  10514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10515. (exit $ac_status); } &&
  10516. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10518. (eval $ac_try) 2>&5
  10519. ac_status=$?
  10520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10521. (exit $ac_status); }; } &&
  10522. { ac_try='test -s conftest.$ac_objext'
  10523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10524. (eval $ac_try) 2>&5
  10525. ac_status=$?
  10526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10527. (exit $ac_status); }; }; then
  10528. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10529. else
  10530. echo "$as_me: failed program was:" >&5
  10531. sed 's/^/| /' conftest.$ac_ext >&5
  10532. fi
  10533. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10534. done
  10535. done
  10536. done
  10537. # Provide a safe default value.
  10538. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10539. fi
  10540. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10541. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10542. ac_save_IFS=$IFS; IFS=','
  10543. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10544. IFS=$ac_save_IFS
  10545. shift
  10546. cat >>confdefs.h <<_ACEOF
  10547. #define SELECT_TYPE_ARG1 $1
  10548. _ACEOF
  10549. cat >>confdefs.h <<_ACEOF
  10550. #define SELECT_TYPE_ARG234 ($2)
  10551. _ACEOF
  10552. cat >>confdefs.h <<_ACEOF
  10553. #define SELECT_TYPE_ARG5 ($3)
  10554. _ACEOF
  10555. rm -f conftest*
  10556. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10557. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10558. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10559. echo $ECHO_N "(cached) $ECHO_C" >&6
  10560. else
  10561. if test "$cross_compiling" = yes; then
  10562. ac_cv_func_stat_empty_string_bug=yes
  10563. else
  10564. cat >conftest.$ac_ext <<_ACEOF
  10565. /* confdefs.h. */
  10566. _ACEOF
  10567. cat confdefs.h >>conftest.$ac_ext
  10568. cat >>conftest.$ac_ext <<_ACEOF
  10569. /* end confdefs.h. */
  10570. $ac_includes_default
  10571. int
  10572. main ()
  10573. {
  10574. struct stat sbuf;
  10575. exit (stat ("", &sbuf) ? 1 : 0);
  10576. ;
  10577. return 0;
  10578. }
  10579. _ACEOF
  10580. rm -f conftest$ac_exeext
  10581. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10582. (eval $ac_link) 2>&5
  10583. ac_status=$?
  10584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10585. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10586. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10587. (eval $ac_try) 2>&5
  10588. ac_status=$?
  10589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10590. (exit $ac_status); }; }; then
  10591. ac_cv_func_stat_empty_string_bug=yes
  10592. else
  10593. echo "$as_me: program exited with status $ac_status" >&5
  10594. echo "$as_me: failed program was:" >&5
  10595. sed 's/^/| /' conftest.$ac_ext >&5
  10596. ( exit $ac_status )
  10597. ac_cv_func_stat_empty_string_bug=no
  10598. fi
  10599. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10600. fi
  10601. fi
  10602. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10603. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10604. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10605. case $LIBOBJS in
  10606. "stat.$ac_objext" | \
  10607. *" stat.$ac_objext" | \
  10608. "stat.$ac_objext "* | \
  10609. *" stat.$ac_objext "* ) ;;
  10610. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10611. esac
  10612. cat >>confdefs.h <<_ACEOF
  10613. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10614. _ACEOF
  10615. fi
  10616. for ac_func in strftime
  10617. do
  10618. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10619. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10620. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10621. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10622. echo $ECHO_N "(cached) $ECHO_C" >&6
  10623. else
  10624. cat >conftest.$ac_ext <<_ACEOF
  10625. /* confdefs.h. */
  10626. _ACEOF
  10627. cat confdefs.h >>conftest.$ac_ext
  10628. cat >>conftest.$ac_ext <<_ACEOF
  10629. /* end confdefs.h. */
  10630. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10631. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10632. #define $ac_func innocuous_$ac_func
  10633. /* System header to define __stub macros and hopefully few prototypes,
  10634. which can conflict with char $ac_func (); below.
  10635. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10636. <limits.h> exists even on freestanding compilers. */
  10637. #ifdef __STDC__
  10638. # include <limits.h>
  10639. #else
  10640. # include <assert.h>
  10641. #endif
  10642. #undef $ac_func
  10643. /* Override any gcc2 internal prototype to avoid an error. */
  10644. #ifdef __cplusplus
  10645. extern "C"
  10646. {
  10647. #endif
  10648. /* We use char because int might match the return type of a gcc2
  10649. builtin and then its argument prototype would still apply. */
  10650. char $ac_func ();
  10651. /* The GNU C library defines this for functions which it implements
  10652. to always fail with ENOSYS. Some functions are actually named
  10653. something starting with __ and the normal name is an alias. */
  10654. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10655. choke me
  10656. #else
  10657. char (*f) () = $ac_func;
  10658. #endif
  10659. #ifdef __cplusplus
  10660. }
  10661. #endif
  10662. int
  10663. main ()
  10664. {
  10665. return f != $ac_func;
  10666. ;
  10667. return 0;
  10668. }
  10669. _ACEOF
  10670. rm -f conftest.$ac_objext conftest$ac_exeext
  10671. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10672. (eval $ac_link) 2>conftest.er1
  10673. ac_status=$?
  10674. grep -v '^ *+' conftest.er1 >conftest.err
  10675. rm -f conftest.er1
  10676. cat conftest.err >&5
  10677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10678. (exit $ac_status); } &&
  10679. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10681. (eval $ac_try) 2>&5
  10682. ac_status=$?
  10683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10684. (exit $ac_status); }; } &&
  10685. { ac_try='test -s conftest$ac_exeext'
  10686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10687. (eval $ac_try) 2>&5
  10688. ac_status=$?
  10689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10690. (exit $ac_status); }; }; then
  10691. eval "$as_ac_var=yes"
  10692. else
  10693. echo "$as_me: failed program was:" >&5
  10694. sed 's/^/| /' conftest.$ac_ext >&5
  10695. eval "$as_ac_var=no"
  10696. fi
  10697. rm -f conftest.err conftest.$ac_objext \
  10698. conftest$ac_exeext conftest.$ac_ext
  10699. fi
  10700. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10701. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10702. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10703. cat >>confdefs.h <<_ACEOF
  10704. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10705. _ACEOF
  10706. else
  10707. # strftime is in -lintl on SCO UNIX.
  10708. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10709. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10710. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10711. echo $ECHO_N "(cached) $ECHO_C" >&6
  10712. else
  10713. ac_check_lib_save_LIBS=$LIBS
  10714. LIBS="-lintl $LIBS"
  10715. cat >conftest.$ac_ext <<_ACEOF
  10716. /* confdefs.h. */
  10717. _ACEOF
  10718. cat confdefs.h >>conftest.$ac_ext
  10719. cat >>conftest.$ac_ext <<_ACEOF
  10720. /* end confdefs.h. */
  10721. /* Override any gcc2 internal prototype to avoid an error. */
  10722. #ifdef __cplusplus
  10723. extern "C"
  10724. #endif
  10725. /* We use char because int might match the return type of a gcc2
  10726. builtin and then its argument prototype would still apply. */
  10727. char strftime ();
  10728. int
  10729. main ()
  10730. {
  10731. strftime ();
  10732. ;
  10733. return 0;
  10734. }
  10735. _ACEOF
  10736. rm -f conftest.$ac_objext conftest$ac_exeext
  10737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10738. (eval $ac_link) 2>conftest.er1
  10739. ac_status=$?
  10740. grep -v '^ *+' conftest.er1 >conftest.err
  10741. rm -f conftest.er1
  10742. cat conftest.err >&5
  10743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10744. (exit $ac_status); } &&
  10745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10747. (eval $ac_try) 2>&5
  10748. ac_status=$?
  10749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10750. (exit $ac_status); }; } &&
  10751. { ac_try='test -s conftest$ac_exeext'
  10752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10753. (eval $ac_try) 2>&5
  10754. ac_status=$?
  10755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10756. (exit $ac_status); }; }; then
  10757. ac_cv_lib_intl_strftime=yes
  10758. else
  10759. echo "$as_me: failed program was:" >&5
  10760. sed 's/^/| /' conftest.$ac_ext >&5
  10761. ac_cv_lib_intl_strftime=no
  10762. fi
  10763. rm -f conftest.err conftest.$ac_objext \
  10764. conftest$ac_exeext conftest.$ac_ext
  10765. LIBS=$ac_check_lib_save_LIBS
  10766. fi
  10767. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10768. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10769. if test $ac_cv_lib_intl_strftime = yes; then
  10770. cat >>confdefs.h <<\_ACEOF
  10771. #define HAVE_STRFTIME 1
  10772. _ACEOF
  10773. LIBS="-lintl $LIBS"
  10774. fi
  10775. fi
  10776. done
  10777. #checkpoint
  10778. cat >confcache <<\_ACEOF
  10779. # This file is a shell script that caches the results of configure
  10780. # tests run on this system so they can be shared between configure
  10781. # scripts and configure runs, see configure's option --config-cache.
  10782. # It is not useful on other systems. If it contains results you don't
  10783. # want to keep, you may remove or edit it.
  10784. #
  10785. # config.status only pays attention to the cache file if you give it
  10786. # the --recheck option to rerun configure.
  10787. #
  10788. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10789. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10790. # following values.
  10791. _ACEOF
  10792. # The following way of writing the cache mishandles newlines in values,
  10793. # but we know of no workaround that is simple, portable, and efficient.
  10794. # So, don't put newlines in cache variables' values.
  10795. # Ultrix sh set writes to stderr and can't be redirected directly,
  10796. # and sets the high bit in the cache file unless we assign to the vars.
  10797. {
  10798. (set) 2>&1 |
  10799. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10800. *ac_space=\ *)
  10801. # `set' does not quote correctly, so add quotes (double-quote
  10802. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10803. sed -n \
  10804. "s/'/'\\\\''/g;
  10805. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10806. ;;
  10807. *)
  10808. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10809. sed -n \
  10810. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10811. ;;
  10812. esac;
  10813. } |
  10814. sed '
  10815. t clear
  10816. : clear
  10817. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10818. t end
  10819. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10820. : end' >>confcache
  10821. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10822. if test -w $cache_file; then
  10823. test "x$cache_file" != "x/dev/null"
  10824. cat confcache >$cache_file
  10825. else
  10826. echo "not updating unwritable cache $cache_file"
  10827. fi
  10828. fi
  10829. rm -f confcache
  10830. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  10831. do
  10832. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10833. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10834. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10835. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10836. echo $ECHO_N "(cached) $ECHO_C" >&6
  10837. else
  10838. cat >conftest.$ac_ext <<_ACEOF
  10839. /* confdefs.h. */
  10840. _ACEOF
  10841. cat confdefs.h >>conftest.$ac_ext
  10842. cat >>conftest.$ac_ext <<_ACEOF
  10843. /* end confdefs.h. */
  10844. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10845. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10846. #define $ac_func innocuous_$ac_func
  10847. /* System header to define __stub macros and hopefully few prototypes,
  10848. which can conflict with char $ac_func (); below.
  10849. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10850. <limits.h> exists even on freestanding compilers. */
  10851. #ifdef __STDC__
  10852. # include <limits.h>
  10853. #else
  10854. # include <assert.h>
  10855. #endif
  10856. #undef $ac_func
  10857. /* Override any gcc2 internal prototype to avoid an error. */
  10858. #ifdef __cplusplus
  10859. extern "C"
  10860. {
  10861. #endif
  10862. /* We use char because int might match the return type of a gcc2
  10863. builtin and then its argument prototype would still apply. */
  10864. char $ac_func ();
  10865. /* The GNU C library defines this for functions which it implements
  10866. to always fail with ENOSYS. Some functions are actually named
  10867. something starting with __ and the normal name is an alias. */
  10868. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10869. choke me
  10870. #else
  10871. char (*f) () = $ac_func;
  10872. #endif
  10873. #ifdef __cplusplus
  10874. }
  10875. #endif
  10876. int
  10877. main ()
  10878. {
  10879. return f != $ac_func;
  10880. ;
  10881. return 0;
  10882. }
  10883. _ACEOF
  10884. rm -f conftest.$ac_objext conftest$ac_exeext
  10885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10886. (eval $ac_link) 2>conftest.er1
  10887. ac_status=$?
  10888. grep -v '^ *+' conftest.er1 >conftest.err
  10889. rm -f conftest.er1
  10890. cat conftest.err >&5
  10891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10892. (exit $ac_status); } &&
  10893. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10895. (eval $ac_try) 2>&5
  10896. ac_status=$?
  10897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10898. (exit $ac_status); }; } &&
  10899. { ac_try='test -s conftest$ac_exeext'
  10900. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10901. (eval $ac_try) 2>&5
  10902. ac_status=$?
  10903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10904. (exit $ac_status); }; }; then
  10905. eval "$as_ac_var=yes"
  10906. else
  10907. echo "$as_me: failed program was:" >&5
  10908. sed 's/^/| /' conftest.$ac_ext >&5
  10909. eval "$as_ac_var=no"
  10910. fi
  10911. rm -f conftest.err conftest.$ac_objext \
  10912. conftest$ac_exeext conftest.$ac_ext
  10913. fi
  10914. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10915. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10916. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10917. cat >>confdefs.h <<_ACEOF
  10918. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10919. _ACEOF
  10920. fi
  10921. done
  10922. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10923. do
  10924. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10925. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10926. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10927. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10928. echo $ECHO_N "(cached) $ECHO_C" >&6
  10929. else
  10930. cat >conftest.$ac_ext <<_ACEOF
  10931. /* confdefs.h. */
  10932. _ACEOF
  10933. cat confdefs.h >>conftest.$ac_ext
  10934. cat >>conftest.$ac_ext <<_ACEOF
  10935. /* end confdefs.h. */
  10936. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10937. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10938. #define $ac_func innocuous_$ac_func
  10939. /* System header to define __stub macros and hopefully few prototypes,
  10940. which can conflict with char $ac_func (); below.
  10941. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10942. <limits.h> exists even on freestanding compilers. */
  10943. #ifdef __STDC__
  10944. # include <limits.h>
  10945. #else
  10946. # include <assert.h>
  10947. #endif
  10948. #undef $ac_func
  10949. /* Override any gcc2 internal prototype to avoid an error. */
  10950. #ifdef __cplusplus
  10951. extern "C"
  10952. {
  10953. #endif
  10954. /* We use char because int might match the return type of a gcc2
  10955. builtin and then its argument prototype would still apply. */
  10956. char $ac_func ();
  10957. /* The GNU C library defines this for functions which it implements
  10958. to always fail with ENOSYS. Some functions are actually named
  10959. something starting with __ and the normal name is an alias. */
  10960. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10961. choke me
  10962. #else
  10963. char (*f) () = $ac_func;
  10964. #endif
  10965. #ifdef __cplusplus
  10966. }
  10967. #endif
  10968. int
  10969. main ()
  10970. {
  10971. return f != $ac_func;
  10972. ;
  10973. return 0;
  10974. }
  10975. _ACEOF
  10976. rm -f conftest.$ac_objext conftest$ac_exeext
  10977. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10978. (eval $ac_link) 2>conftest.er1
  10979. ac_status=$?
  10980. grep -v '^ *+' conftest.er1 >conftest.err
  10981. rm -f conftest.er1
  10982. cat conftest.err >&5
  10983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10984. (exit $ac_status); } &&
  10985. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10987. (eval $ac_try) 2>&5
  10988. ac_status=$?
  10989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10990. (exit $ac_status); }; } &&
  10991. { ac_try='test -s conftest$ac_exeext'
  10992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10993. (eval $ac_try) 2>&5
  10994. ac_status=$?
  10995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10996. (exit $ac_status); }; }; then
  10997. eval "$as_ac_var=yes"
  10998. else
  10999. echo "$as_me: failed program was:" >&5
  11000. sed 's/^/| /' conftest.$ac_ext >&5
  11001. eval "$as_ac_var=no"
  11002. fi
  11003. rm -f conftest.err conftest.$ac_objext \
  11004. conftest$ac_exeext conftest.$ac_ext
  11005. fi
  11006. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11007. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11008. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11009. cat >>confdefs.h <<_ACEOF
  11010. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11011. _ACEOF
  11012. fi
  11013. done
  11014. #checkpoint
  11015. cat >confcache <<\_ACEOF
  11016. # This file is a shell script that caches the results of configure
  11017. # tests run on this system so they can be shared between configure
  11018. # scripts and configure runs, see configure's option --config-cache.
  11019. # It is not useful on other systems. If it contains results you don't
  11020. # want to keep, you may remove or edit it.
  11021. #
  11022. # config.status only pays attention to the cache file if you give it
  11023. # the --recheck option to rerun configure.
  11024. #
  11025. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11026. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11027. # following values.
  11028. _ACEOF
  11029. # The following way of writing the cache mishandles newlines in values,
  11030. # but we know of no workaround that is simple, portable, and efficient.
  11031. # So, don't put newlines in cache variables' values.
  11032. # Ultrix sh set writes to stderr and can't be redirected directly,
  11033. # and sets the high bit in the cache file unless we assign to the vars.
  11034. {
  11035. (set) 2>&1 |
  11036. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11037. *ac_space=\ *)
  11038. # `set' does not quote correctly, so add quotes (double-quote
  11039. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11040. sed -n \
  11041. "s/'/'\\\\''/g;
  11042. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11043. ;;
  11044. *)
  11045. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11046. sed -n \
  11047. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11048. ;;
  11049. esac;
  11050. } |
  11051. sed '
  11052. t clear
  11053. : clear
  11054. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11055. t end
  11056. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11057. : end' >>confcache
  11058. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11059. if test -w $cache_file; then
  11060. test "x$cache_file" != "x/dev/null"
  11061. cat confcache >$cache_file
  11062. else
  11063. echo "not updating unwritable cache $cache_file"
  11064. fi
  11065. fi
  11066. rm -f confcache
  11067. for ac_func in strcasecmp strncasecmp vsnprintf
  11068. do
  11069. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11070. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11071. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11072. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11073. echo $ECHO_N "(cached) $ECHO_C" >&6
  11074. else
  11075. cat >conftest.$ac_ext <<_ACEOF
  11076. /* confdefs.h. */
  11077. _ACEOF
  11078. cat confdefs.h >>conftest.$ac_ext
  11079. cat >>conftest.$ac_ext <<_ACEOF
  11080. /* end confdefs.h. */
  11081. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11082. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11083. #define $ac_func innocuous_$ac_func
  11084. /* System header to define __stub macros and hopefully few prototypes,
  11085. which can conflict with char $ac_func (); below.
  11086. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11087. <limits.h> exists even on freestanding compilers. */
  11088. #ifdef __STDC__
  11089. # include <limits.h>
  11090. #else
  11091. # include <assert.h>
  11092. #endif
  11093. #undef $ac_func
  11094. /* Override any gcc2 internal prototype to avoid an error. */
  11095. #ifdef __cplusplus
  11096. extern "C"
  11097. {
  11098. #endif
  11099. /* We use char because int might match the return type of a gcc2
  11100. builtin and then its argument prototype would still apply. */
  11101. char $ac_func ();
  11102. /* The GNU C library defines this for functions which it implements
  11103. to always fail with ENOSYS. Some functions are actually named
  11104. something starting with __ and the normal name is an alias. */
  11105. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11106. choke me
  11107. #else
  11108. char (*f) () = $ac_func;
  11109. #endif
  11110. #ifdef __cplusplus
  11111. }
  11112. #endif
  11113. int
  11114. main ()
  11115. {
  11116. return f != $ac_func;
  11117. ;
  11118. return 0;
  11119. }
  11120. _ACEOF
  11121. rm -f conftest.$ac_objext conftest$ac_exeext
  11122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11123. (eval $ac_link) 2>conftest.er1
  11124. ac_status=$?
  11125. grep -v '^ *+' conftest.er1 >conftest.err
  11126. rm -f conftest.er1
  11127. cat conftest.err >&5
  11128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11129. (exit $ac_status); } &&
  11130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11132. (eval $ac_try) 2>&5
  11133. ac_status=$?
  11134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11135. (exit $ac_status); }; } &&
  11136. { ac_try='test -s conftest$ac_exeext'
  11137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11138. (eval $ac_try) 2>&5
  11139. ac_status=$?
  11140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11141. (exit $ac_status); }; }; then
  11142. eval "$as_ac_var=yes"
  11143. else
  11144. echo "$as_me: failed program was:" >&5
  11145. sed 's/^/| /' conftest.$ac_ext >&5
  11146. eval "$as_ac_var=no"
  11147. fi
  11148. rm -f conftest.err conftest.$ac_objext \
  11149. conftest$ac_exeext conftest.$ac_ext
  11150. fi
  11151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11152. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11153. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11154. cat >>confdefs.h <<_ACEOF
  11155. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11156. _ACEOF
  11157. fi
  11158. done
  11159. #autoscan suggested this....
  11160. #These are recommended by autoscan, but no code supports it currently
  11161. #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])
  11162. for ac_func in vsprintf
  11163. do
  11164. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11165. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11166. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11167. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11168. echo $ECHO_N "(cached) $ECHO_C" >&6
  11169. else
  11170. cat >conftest.$ac_ext <<_ACEOF
  11171. /* confdefs.h. */
  11172. _ACEOF
  11173. cat confdefs.h >>conftest.$ac_ext
  11174. cat >>conftest.$ac_ext <<_ACEOF
  11175. /* end confdefs.h. */
  11176. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11177. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11178. #define $ac_func innocuous_$ac_func
  11179. /* System header to define __stub macros and hopefully few prototypes,
  11180. which can conflict with char $ac_func (); below.
  11181. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11182. <limits.h> exists even on freestanding compilers. */
  11183. #ifdef __STDC__
  11184. # include <limits.h>
  11185. #else
  11186. # include <assert.h>
  11187. #endif
  11188. #undef $ac_func
  11189. /* Override any gcc2 internal prototype to avoid an error. */
  11190. #ifdef __cplusplus
  11191. extern "C"
  11192. {
  11193. #endif
  11194. /* We use char because int might match the return type of a gcc2
  11195. builtin and then its argument prototype would still apply. */
  11196. char $ac_func ();
  11197. /* The GNU C library defines this for functions which it implements
  11198. to always fail with ENOSYS. Some functions are actually named
  11199. something starting with __ and the normal name is an alias. */
  11200. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11201. choke me
  11202. #else
  11203. char (*f) () = $ac_func;
  11204. #endif
  11205. #ifdef __cplusplus
  11206. }
  11207. #endif
  11208. int
  11209. main ()
  11210. {
  11211. return f != $ac_func;
  11212. ;
  11213. return 0;
  11214. }
  11215. _ACEOF
  11216. rm -f conftest.$ac_objext conftest$ac_exeext
  11217. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11218. (eval $ac_link) 2>conftest.er1
  11219. ac_status=$?
  11220. grep -v '^ *+' conftest.er1 >conftest.err
  11221. rm -f conftest.er1
  11222. cat conftest.err >&5
  11223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11224. (exit $ac_status); } &&
  11225. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11227. (eval $ac_try) 2>&5
  11228. ac_status=$?
  11229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11230. (exit $ac_status); }; } &&
  11231. { ac_try='test -s conftest$ac_exeext'
  11232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11233. (eval $ac_try) 2>&5
  11234. ac_status=$?
  11235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11236. (exit $ac_status); }; }; then
  11237. eval "$as_ac_var=yes"
  11238. else
  11239. echo "$as_me: failed program was:" >&5
  11240. sed 's/^/| /' conftest.$ac_ext >&5
  11241. eval "$as_ac_var=no"
  11242. fi
  11243. rm -f conftest.err conftest.$ac_objext \
  11244. conftest$ac_exeext conftest.$ac_ext
  11245. fi
  11246. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11247. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11248. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11249. cat >>confdefs.h <<_ACEOF
  11250. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11251. _ACEOF
  11252. fi
  11253. done
  11254. if test "$ac_cv_func_vsprintf" = "no"
  11255. then
  11256. cat << 'EOF' >&2
  11257. configure: error:
  11258. Your system does not have the sprintf/vsprintf libraries.
  11259. These are required to compile almost anything. Sorry.
  11260. EOF
  11261. exit 1
  11262. fi
  11263. for ac_func in uname
  11264. do
  11265. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11266. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11267. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11268. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11269. echo $ECHO_N "(cached) $ECHO_C" >&6
  11270. else
  11271. cat >conftest.$ac_ext <<_ACEOF
  11272. /* confdefs.h. */
  11273. _ACEOF
  11274. cat confdefs.h >>conftest.$ac_ext
  11275. cat >>conftest.$ac_ext <<_ACEOF
  11276. /* end confdefs.h. */
  11277. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11278. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11279. #define $ac_func innocuous_$ac_func
  11280. /* System header to define __stub macros and hopefully few prototypes,
  11281. which can conflict with char $ac_func (); below.
  11282. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11283. <limits.h> exists even on freestanding compilers. */
  11284. #ifdef __STDC__
  11285. # include <limits.h>
  11286. #else
  11287. # include <assert.h>
  11288. #endif
  11289. #undef $ac_func
  11290. /* Override any gcc2 internal prototype to avoid an error. */
  11291. #ifdef __cplusplus
  11292. extern "C"
  11293. {
  11294. #endif
  11295. /* We use char because int might match the return type of a gcc2
  11296. builtin and then its argument prototype would still apply. */
  11297. char $ac_func ();
  11298. /* The GNU C library defines this for functions which it implements
  11299. to always fail with ENOSYS. Some functions are actually named
  11300. something starting with __ and the normal name is an alias. */
  11301. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11302. choke me
  11303. #else
  11304. char (*f) () = $ac_func;
  11305. #endif
  11306. #ifdef __cplusplus
  11307. }
  11308. #endif
  11309. int
  11310. main ()
  11311. {
  11312. return f != $ac_func;
  11313. ;
  11314. return 0;
  11315. }
  11316. _ACEOF
  11317. rm -f conftest.$ac_objext conftest$ac_exeext
  11318. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11319. (eval $ac_link) 2>conftest.er1
  11320. ac_status=$?
  11321. grep -v '^ *+' conftest.er1 >conftest.err
  11322. rm -f conftest.er1
  11323. cat conftest.err >&5
  11324. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11325. (exit $ac_status); } &&
  11326. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11327. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11328. (eval $ac_try) 2>&5
  11329. ac_status=$?
  11330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11331. (exit $ac_status); }; } &&
  11332. { ac_try='test -s conftest$ac_exeext'
  11333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11334. (eval $ac_try) 2>&5
  11335. ac_status=$?
  11336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11337. (exit $ac_status); }; }; then
  11338. eval "$as_ac_var=yes"
  11339. else
  11340. echo "$as_me: failed program was:" >&5
  11341. sed 's/^/| /' conftest.$ac_ext >&5
  11342. eval "$as_ac_var=no"
  11343. fi
  11344. rm -f conftest.err conftest.$ac_objext \
  11345. conftest$ac_exeext conftest.$ac_ext
  11346. fi
  11347. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11348. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11349. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11350. cat >>confdefs.h <<_ACEOF
  11351. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11352. _ACEOF
  11353. fi
  11354. done
  11355. if test "$ac_cv_func_uname" = "no"
  11356. then
  11357. cat << 'EOF' >&2
  11358. configure: error:
  11359. Your system does not have the uname() function.
  11360. This is required for the botpack.
  11361. EOF
  11362. exit 1
  11363. fi
  11364. # Make sure we have stdc headers, since we can't compile without them
  11365. if test "$ac_cv_header_stdc" = "no"
  11366. then
  11367. cat << 'EOF' >&2
  11368. configure: error:
  11369. Your system must support ANSI C Header files.
  11370. These are required for the language support. Sorry.
  11371. EOF
  11372. exit 1
  11373. fi
  11374. #checkpoint
  11375. cat >confcache <<\_ACEOF
  11376. # This file is a shell script that caches the results of configure
  11377. # tests run on this system so they can be shared between configure
  11378. # scripts and configure runs, see configure's option --config-cache.
  11379. # It is not useful on other systems. If it contains results you don't
  11380. # want to keep, you may remove or edit it.
  11381. #
  11382. # config.status only pays attention to the cache file if you give it
  11383. # the --recheck option to rerun configure.
  11384. #
  11385. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11386. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11387. # following values.
  11388. _ACEOF
  11389. # The following way of writing the cache mishandles newlines in values,
  11390. # but we know of no workaround that is simple, portable, and efficient.
  11391. # So, don't put newlines in cache variables' values.
  11392. # Ultrix sh set writes to stderr and can't be redirected directly,
  11393. # and sets the high bit in the cache file unless we assign to the vars.
  11394. {
  11395. (set) 2>&1 |
  11396. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11397. *ac_space=\ *)
  11398. # `set' does not quote correctly, so add quotes (double-quote
  11399. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11400. sed -n \
  11401. "s/'/'\\\\''/g;
  11402. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11403. ;;
  11404. *)
  11405. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11406. sed -n \
  11407. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11408. ;;
  11409. esac;
  11410. } |
  11411. sed '
  11412. t clear
  11413. : clear
  11414. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11415. t end
  11416. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11417. : end' >>confcache
  11418. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11419. if test -w $cache_file; then
  11420. test "x$cache_file" != "x/dev/null"
  11421. cat confcache >$cache_file
  11422. else
  11423. echo "not updating unwritable cache $cache_file"
  11424. fi
  11425. fi
  11426. rm -f confcache
  11427. # Where is Tcl? Is it here?
  11428. # ---------- begin robey's Tcl thingies
  11429. # (well, what used to be robey's Tcl thingies...)
  11430. # Latest tested Tcl version to recommend if Tcl isn't found
  11431. tclrecommendver="8.4"
  11432. # Site recommended to download Tcl from
  11433. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  11434. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  11435. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  11436. tcl8.0 tcl80"
  11437. # Tcl library filename suffixes
  11438. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  11439. # Tcl library search paths
  11440. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  11441. /usr/local/lib /usr/local/pkgs/tcl/lib \
  11442. /usr/lib /lib /usr/i486-linuxaout/lib \
  11443. /beos/system/lib /sys/lib"
  11444. # Tcl header filenames
  11445. tclheadernames="tcl.h"
  11446. # Tcl header search paths
  11447. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  11448. /usr/local/include /usr/local/pkgs/tcl/include \
  11449. /usr/include /beos/system/include /beos/devel/include \
  11450. /sys/include"
  11451. # oohh new configure --variables for those with multiple Tcl libs
  11452. # Check whether --with-tcllib or --without-tcllib was given.
  11453. if test "${with_tcllib+set}" = set; then
  11454. withval="$with_tcllib"
  11455. tcllibname="$withval"
  11456. fi;
  11457. # Check whether --with-tclinc or --without-tclinc was given.
  11458. if test "${with_tclinc+set}" = set; then
  11459. withval="$with_tclinc"
  11460. tclincname="$withval"
  11461. fi;
  11462. WARN=0
  11463. # Make sure either both or neither $tcllibname and $tclincname are set
  11464. if test ! "${tcllibname-x}" = "x"
  11465. then
  11466. if test "${tclincname-x}" = "x"
  11467. then
  11468. WARN=1
  11469. tcllibname=""
  11470. TCLLIB=""
  11471. TCLINC=""
  11472. fi
  11473. else
  11474. if test ! "${tclincname-x}" = "x"
  11475. then
  11476. WARN=1
  11477. tclincname=""
  11478. TCLLIB=""
  11479. TCLINC=""
  11480. fi
  11481. fi
  11482. if test "$WARN" = 1
  11483. then
  11484. cat << 'EOF' >&2
  11485. configure: warning:
  11486. You must specify both --with-tcllib and --with-tclinc for them to work.
  11487. configure will now attempt to autodetect both the Tcl library and header...
  11488. EOF
  11489. fi
  11490. WARN=0
  11491. # Make sure either both or neither $TCLLIB and $TCLINC are set
  11492. if test ! "${TCLLIB-x}" = "x"
  11493. then
  11494. if test "${TCLINC-x}" = "x"
  11495. then
  11496. WARN=1
  11497. WVAR1=TCLLIB
  11498. WVAR2=TCLINC
  11499. TCLLIB=""
  11500. fi
  11501. else
  11502. if test ! "${TCLINC-x}" = "x"
  11503. then
  11504. WARN=1
  11505. WVAR1=TCLINC
  11506. WVAR2=TCLLIB
  11507. TCLINC=""
  11508. fi
  11509. fi
  11510. if test "$WARN" = 1
  11511. then
  11512. cat << EOF >&2
  11513. configure: warning:
  11514. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  11515. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11516. configure will now attempt to autodetect both the Tcl library and header...
  11517. EOF
  11518. fi
  11519. # Look for Tcl library: if $tcllibname is set, check there first
  11520. if test ! "${tcllibname-x}" = "x"
  11521. then
  11522. if test -f "$tcllibname" && test -r "$tcllibname"
  11523. then
  11524. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  11525. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  11526. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  11527. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  11528. else
  11529. cat << EOF >&2
  11530. configure: warning:
  11531. The file '$tcllibname' given to option --with-tcllib is not valid.
  11532. configure will now attempt to autodetect both the Tcl library and header...
  11533. EOF
  11534. tcllibname=""
  11535. tclincname=""
  11536. TCLLIB=""
  11537. TCLLIBFN=""
  11538. TCLINC=""
  11539. TCLINCFN=""
  11540. fi
  11541. fi
  11542. # Look for Tcl header: if $tclincname is set, check there first
  11543. if test ! "${tclincname-x}" = "x"
  11544. then
  11545. if test -f "$tclincname" && test -r "$tclincname"
  11546. then
  11547. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  11548. TCLINCFN=`$BASENAME $tclincname`
  11549. else
  11550. cat << EOF >&2
  11551. configure: warning:
  11552. The file '$tclincname' given to option --with-tclinc is not valid.
  11553. configure will now attempt to autodetect both the Tcl library and header...
  11554. EOF
  11555. tcllibname=""
  11556. tclincname=""
  11557. TCLLIB=""
  11558. TCLLIBFN=""
  11559. TCLINC=""
  11560. TCLINCFN=""
  11561. fi
  11562. fi
  11563. # Look for Tcl library: if $TCLLIB is set, check there first
  11564. if test "${TCLLIBFN-x}" = "x"
  11565. then
  11566. if test ! "${TCLLIB-x}" = "x"
  11567. then
  11568. if test -d "$TCLLIB"
  11569. then
  11570. for tcllibfns in $tcllibnames
  11571. do
  11572. for tcllibext in $tcllibextensions
  11573. do
  11574. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  11575. then
  11576. TCLLIBFN="$tcllibfns$tcllibext"
  11577. TCLLIBEXT="$tcllibext"
  11578. TCLLIBFNS="$tcllibfns"
  11579. break 2
  11580. fi
  11581. done
  11582. done
  11583. fi
  11584. if test "${TCLLIBFN-x}" = "x"
  11585. then
  11586. cat << 'EOF' >&2
  11587. configure: warning:
  11588. Environment variable TCLLIB was set, but incorrect.
  11589. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11590. configure will now attempt to autodetect both the Tcl library and header...
  11591. EOF
  11592. TCLLIB=""
  11593. TCLLIBFN=""
  11594. TCLINC=""
  11595. TCLINCFN=""
  11596. fi
  11597. fi
  11598. fi
  11599. # Look for Tcl header: if $TCLINC is set, check there first
  11600. if test "${TCLINCFN-x}" = "x"
  11601. then
  11602. if test ! "${TCLINC-x}" = "x"
  11603. then
  11604. if test -d "$TCLINC"
  11605. then
  11606. for tclheaderfn in $tclheadernames
  11607. do
  11608. if test -r "$TCLINC/$tclheaderfn"
  11609. then
  11610. TCLINCFN="$tclheaderfn"
  11611. break
  11612. fi
  11613. done
  11614. fi
  11615. if test "${TCLINCFN-x}" = "x"
  11616. then
  11617. cat << 'EOF' >&2
  11618. configure: warning:
  11619. Environment variable TCLINC was set, but incorrect.
  11620. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  11621. configure will now attempt to autodetect both the Tcl library and header...
  11622. EOF
  11623. TCLLIB=""
  11624. TCLLIBFN=""
  11625. TCLINC=""
  11626. TCLINCFN=""
  11627. fi
  11628. fi
  11629. fi
  11630. echo "$as_me:$LINENO: checking for Tcl library" >&5
  11631. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  11632. # Attempt autodetect for $TCLLIBFN if it's not set
  11633. if test ! "${TCLLIBFN-x}" = "x"
  11634. then
  11635. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  11636. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  11637. else
  11638. for tcllibfns in $tcllibnames
  11639. do
  11640. for tcllibext in $tcllibextensions
  11641. do
  11642. for tcllibpath in $tcllibpaths
  11643. do
  11644. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  11645. then
  11646. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  11647. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  11648. TCLLIB="$tcllibpath"
  11649. TCLLIBFN="$tcllibfns$tcllibext"
  11650. TCLLIBEXT="$tcllibext"
  11651. TCLLIBFNS="$tcllibfns"
  11652. break 3
  11653. fi
  11654. done
  11655. done
  11656. done
  11657. fi
  11658. # Show if $TCLLIBFN wasn't found
  11659. if test "${TCLLIBFN-x}" = "x"
  11660. then
  11661. echo "$as_me:$LINENO: result: not found" >&5
  11662. echo "${ECHO_T}not found" >&6
  11663. fi
  11664. echo "$as_me:$LINENO: checking for Tcl header" >&5
  11665. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  11666. # Attempt autodetect for $TCLINCFN if it's not set
  11667. if test ! "${TCLINCFN-x}" = "x"
  11668. then
  11669. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  11670. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  11671. else
  11672. for tclheaderpath in $tclheaderpaths
  11673. do
  11674. for tclheaderfn in $tclheadernames
  11675. do
  11676. if test -r "$tclheaderpath/$tclheaderfn"
  11677. then
  11678. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  11679. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  11680. TCLINC="$tclheaderpath"
  11681. TCLINCFN="$tclheaderfn"
  11682. break 2
  11683. fi
  11684. done
  11685. done
  11686. # FreeBSD hack ...
  11687. if test "${TCLINCFN-x}" = "x"
  11688. then
  11689. for tcllibfns in $tcllibnames
  11690. do
  11691. for tclheaderpath in $tclheaderpaths
  11692. do
  11693. for tclheaderfn in $tclheadernames
  11694. do
  11695. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  11696. then
  11697. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  11698. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  11699. TCLINC="$tclheaderpath/$tcllibfns"
  11700. TCLINCFN="$tclheaderfn"
  11701. break 3
  11702. fi
  11703. done
  11704. done
  11705. done
  11706. fi
  11707. fi
  11708. # Show if $TCLINCFN wasn't found
  11709. if test "${TCLINCFN-x}" = "x"
  11710. then
  11711. echo "$as_me:$LINENO: result: not found" >&5
  11712. echo "${ECHO_T}not found" >&6
  11713. fi
  11714. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  11715. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  11716. egg_tcl_changed=yes
  11717. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  11718. if test ! "$egg_tcl_id" = ":::"
  11719. then
  11720. egg_tcl_cached=yes
  11721. if test "${egg_cv_var_tcl_id+set}" = set; then
  11722. echo $ECHO_N "(cached) $ECHO_C" >&6
  11723. else
  11724. egg_cv_var_tcl_id="$egg_tcl_id"
  11725. egg_tcl_cached=no
  11726. fi
  11727. if test "$egg_tcl_cached" = "yes"
  11728. then
  11729. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  11730. then
  11731. egg_tcl_changed=no
  11732. else
  11733. egg_cv_var_tcl_id="$egg_tcl_id"
  11734. fi
  11735. fi
  11736. fi
  11737. if test "$egg_tcl_changed" = "yes"
  11738. then
  11739. echo "$as_me:$LINENO: result: yes" >&5
  11740. echo "${ECHO_T}yes" >&6
  11741. else
  11742. echo "$as_me:$LINENO: result: no" >&5
  11743. echo "${ECHO_T}no" >&6
  11744. fi
  11745. #checkpoint
  11746. cat >confcache <<\_ACEOF
  11747. # This file is a shell script that caches the results of configure
  11748. # tests run on this system so they can be shared between configure
  11749. # scripts and configure runs, see configure's option --config-cache.
  11750. # It is not useful on other systems. If it contains results you don't
  11751. # want to keep, you may remove or edit it.
  11752. #
  11753. # config.status only pays attention to the cache file if you give it
  11754. # the --recheck option to rerun configure.
  11755. #
  11756. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11757. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11758. # following values.
  11759. _ACEOF
  11760. # The following way of writing the cache mishandles newlines in values,
  11761. # but we know of no workaround that is simple, portable, and efficient.
  11762. # So, don't put newlines in cache variables' values.
  11763. # Ultrix sh set writes to stderr and can't be redirected directly,
  11764. # and sets the high bit in the cache file unless we assign to the vars.
  11765. {
  11766. (set) 2>&1 |
  11767. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11768. *ac_space=\ *)
  11769. # `set' does not quote correctly, so add quotes (double-quote
  11770. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11771. sed -n \
  11772. "s/'/'\\\\''/g;
  11773. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11774. ;;
  11775. *)
  11776. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11777. sed -n \
  11778. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11779. ;;
  11780. esac;
  11781. } |
  11782. sed '
  11783. t clear
  11784. : clear
  11785. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11786. t end
  11787. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11788. : end' >>confcache
  11789. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11790. if test -w $cache_file; then
  11791. test "x$cache_file" != "x/dev/null"
  11792. cat confcache >$cache_file
  11793. else
  11794. echo "not updating unwritable cache $cache_file"
  11795. fi
  11796. fi
  11797. rm -f confcache
  11798. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  11799. TCL_FOUND=0
  11800. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  11801. then
  11802. TCL_FOUND=1
  11803. # Check Tcl's version
  11804. if test "$egg_tcl_changed" = "yes"
  11805. then
  11806. unset egg_cv_var_tcl_version
  11807. fi
  11808. echo "$as_me:$LINENO: checking for Tcl version" >&5
  11809. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  11810. if test "${egg_cv_var_tcl_version+set}" = set; then
  11811. echo $ECHO_N "(cached) $ECHO_C" >&6
  11812. else
  11813. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  11814. fi
  11815. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  11816. then
  11817. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  11818. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  11819. else
  11820. echo "$as_me:$LINENO: result: not found" >&5
  11821. echo "${ECHO_T}not found" >&6
  11822. TCL_FOUND=0
  11823. fi
  11824. # Check Tcl's patch level (if available)
  11825. if test "$egg_tcl_changed" = "yes"
  11826. then
  11827. unset egg_cv_var_tcl_patch_level
  11828. fi
  11829. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  11830. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  11831. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  11832. echo $ECHO_N "(cached) $ECHO_C" >&6
  11833. else
  11834. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  11835. fi
  11836. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  11837. then
  11838. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  11839. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  11840. else
  11841. egg_cv_var_tcl_patch_level="unknown"
  11842. echo "$as_me:$LINENO: result: unknown" >&5
  11843. echo "${ECHO_T}unknown" >&6
  11844. fi
  11845. fi
  11846. # Check if we found Tcl's version
  11847. if test "$TCL_FOUND" = 0
  11848. then
  11849. cat << 'EOF' >&2
  11850. configure: error:
  11851. I can't find Tcl on this system.
  11852. The download website is at:
  11853. http://www.tcl.tk/software/tcltk/download84.html
  11854. A nice direct link for the tarball is:
  11855. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  11856. OR
  11857. Just type: ./build -T
  11858. EOF
  11859. exit 1
  11860. fi
  11861. # Is this version of Tcl too old for us to use ?
  11862. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  11863. if test "$TCL_VER_PRE80" = "yes"
  11864. then
  11865. cat << EOF >&2
  11866. configure: error:
  11867. Your Tcl version is much too old for Eggdrop to use.
  11868. I suggest you download and compile a more recent version.
  11869. The most reliable current version is $tclrecommendver and
  11870. can be downloaded from $tclrecommendsite
  11871. EOF
  11872. exit 1
  11873. fi
  11874. # Set variables for Tcl library tests
  11875. TCL_TEST_LIB="$TCLLIBFNS"
  11876. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  11877. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11878. then
  11879. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  11880. fi
  11881. if test "$egg_tcl_changed" = "yes"
  11882. then
  11883. unset egg_cv_var_tcl_free
  11884. fi
  11885. # Check for Tcl_Free()
  11886. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  11887. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  11888. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11889. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11890. echo $ECHO_N "(cached) $ECHO_C" >&6
  11891. else
  11892. ac_check_lib_save_LIBS=$LIBS
  11893. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11894. cat >conftest.$ac_ext <<_ACEOF
  11895. /* confdefs.h. */
  11896. _ACEOF
  11897. cat confdefs.h >>conftest.$ac_ext
  11898. cat >>conftest.$ac_ext <<_ACEOF
  11899. /* end confdefs.h. */
  11900. /* Override any gcc2 internal prototype to avoid an error. */
  11901. #ifdef __cplusplus
  11902. extern "C"
  11903. #endif
  11904. /* We use char because int might match the return type of a gcc2
  11905. builtin and then its argument prototype would still apply. */
  11906. char Tcl_Free ();
  11907. int
  11908. main ()
  11909. {
  11910. Tcl_Free ();
  11911. ;
  11912. return 0;
  11913. }
  11914. _ACEOF
  11915. rm -f conftest.$ac_objext conftest$ac_exeext
  11916. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11917. (eval $ac_link) 2>conftest.er1
  11918. ac_status=$?
  11919. grep -v '^ *+' conftest.er1 >conftest.err
  11920. rm -f conftest.er1
  11921. cat conftest.err >&5
  11922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11923. (exit $ac_status); } &&
  11924. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11926. (eval $ac_try) 2>&5
  11927. ac_status=$?
  11928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11929. (exit $ac_status); }; } &&
  11930. { ac_try='test -s conftest$ac_exeext'
  11931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11932. (eval $ac_try) 2>&5
  11933. ac_status=$?
  11934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11935. (exit $ac_status); }; }; then
  11936. eval "$as_ac_Lib=yes"
  11937. else
  11938. echo "$as_me: failed program was:" >&5
  11939. sed 's/^/| /' conftest.$ac_ext >&5
  11940. eval "$as_ac_Lib=no"
  11941. fi
  11942. rm -f conftest.err conftest.$ac_objext \
  11943. conftest$ac_exeext conftest.$ac_ext
  11944. LIBS=$ac_check_lib_save_LIBS
  11945. fi
  11946. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11947. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11948. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11949. egg_cv_var_tcl_free="yes"
  11950. else
  11951. egg_cv_var_tcl_free="no"
  11952. fi
  11953. if test "$egg_cv_var_tcl_free" = "yes"
  11954. then
  11955. cat >>confdefs.h <<\_ACEOF
  11956. #define HAVE_TCL_FREE 1
  11957. _ACEOF
  11958. fi
  11959. if test "$egg_tcl_changed" = "yes"
  11960. then
  11961. unset egg_cv_var_tcl_threaded
  11962. fi
  11963. # Check for TclpFinalizeThreadData()
  11964. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11965. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11966. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11967. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11968. echo $ECHO_N "(cached) $ECHO_C" >&6
  11969. else
  11970. ac_check_lib_save_LIBS=$LIBS
  11971. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11972. cat >conftest.$ac_ext <<_ACEOF
  11973. /* confdefs.h. */
  11974. _ACEOF
  11975. cat confdefs.h >>conftest.$ac_ext
  11976. cat >>conftest.$ac_ext <<_ACEOF
  11977. /* end confdefs.h. */
  11978. /* Override any gcc2 internal prototype to avoid an error. */
  11979. #ifdef __cplusplus
  11980. extern "C"
  11981. #endif
  11982. /* We use char because int might match the return type of a gcc2
  11983. builtin and then its argument prototype would still apply. */
  11984. char TclpFinalizeThreadData ();
  11985. int
  11986. main ()
  11987. {
  11988. TclpFinalizeThreadData ();
  11989. ;
  11990. return 0;
  11991. }
  11992. _ACEOF
  11993. rm -f conftest.$ac_objext conftest$ac_exeext
  11994. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11995. (eval $ac_link) 2>conftest.er1
  11996. ac_status=$?
  11997. grep -v '^ *+' conftest.er1 >conftest.err
  11998. rm -f conftest.er1
  11999. cat conftest.err >&5
  12000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12001. (exit $ac_status); } &&
  12002. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12004. (eval $ac_try) 2>&5
  12005. ac_status=$?
  12006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12007. (exit $ac_status); }; } &&
  12008. { ac_try='test -s conftest$ac_exeext'
  12009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12010. (eval $ac_try) 2>&5
  12011. ac_status=$?
  12012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12013. (exit $ac_status); }; }; then
  12014. eval "$as_ac_Lib=yes"
  12015. else
  12016. echo "$as_me: failed program was:" >&5
  12017. sed 's/^/| /' conftest.$ac_ext >&5
  12018. eval "$as_ac_Lib=no"
  12019. fi
  12020. rm -f conftest.err conftest.$ac_objext \
  12021. conftest$ac_exeext conftest.$ac_ext
  12022. LIBS=$ac_check_lib_save_LIBS
  12023. fi
  12024. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  12025. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  12026. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  12027. egg_cv_var_tcl_threaded="yes"
  12028. else
  12029. egg_cv_var_tcl_threaded="no"
  12030. fi
  12031. enable_tcl_threads=no
  12032. if test "$egg_cv_var_tcl_threaded" = "yes"
  12033. then
  12034. if test "$enable_tcl_threads" = "no"
  12035. then
  12036. cat << 'EOF' >&2
  12037. configure: warning:
  12038. You have disabled threads support on a system with a threaded Tcl library.
  12039. Tcl features that rely on scheduled events may not function properly.
  12040. EOF
  12041. fi
  12042. # Add pthread library to $LIBS if we need it
  12043. if test ! "${ac_cv_lib_pthread-x}" = "x"
  12044. then
  12045. LIBS="$ac_cv_lib_pthread $LIBS"
  12046. fi
  12047. fi
  12048. if test "$EGG_CYGWIN" = "yes"
  12049. then
  12050. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12051. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12052. else
  12053. if test ! "$TCLLIBEXT" = ".a"
  12054. then
  12055. cat << 'EOF' >&2
  12056. configure: warning:
  12057. Your Tcl library is not compiled statically.
  12058. You will need to compile Tcl statically to successfully compile wraith.
  12059. EOF
  12060. exit 1
  12061. else
  12062. # Was the --with-tcllib option given ?
  12063. if test ! "${tcllibname-x}" = "x"
  12064. then
  12065. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12066. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  12067. else
  12068. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  12069. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  12070. fi
  12071. fi
  12072. fi
  12073. ac_config_commands="$ac_config_commands replace-if-changed"
  12074. #checkpoint
  12075. cat >confcache <<\_ACEOF
  12076. # This file is a shell script that caches the results of configure
  12077. # tests run on this system so they can be shared between configure
  12078. # scripts and configure runs, see configure's option --config-cache.
  12079. # It is not useful on other systems. If it contains results you don't
  12080. # want to keep, you may remove or edit it.
  12081. #
  12082. # config.status only pays attention to the cache file if you give it
  12083. # the --recheck option to rerun configure.
  12084. #
  12085. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12086. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12087. # following values.
  12088. _ACEOF
  12089. # The following way of writing the cache mishandles newlines in values,
  12090. # but we know of no workaround that is simple, portable, and efficient.
  12091. # So, don't put newlines in cache variables' values.
  12092. # Ultrix sh set writes to stderr and can't be redirected directly,
  12093. # and sets the high bit in the cache file unless we assign to the vars.
  12094. {
  12095. (set) 2>&1 |
  12096. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12097. *ac_space=\ *)
  12098. # `set' does not quote correctly, so add quotes (double-quote
  12099. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12100. sed -n \
  12101. "s/'/'\\\\''/g;
  12102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12103. ;;
  12104. *)
  12105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12106. sed -n \
  12107. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12108. ;;
  12109. esac;
  12110. } |
  12111. sed '
  12112. t clear
  12113. : clear
  12114. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12115. t end
  12116. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12117. : end' >>confcache
  12118. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12119. if test -w $cache_file; then
  12120. test "x$cache_file" != "x/dev/null"
  12121. cat confcache >$cache_file
  12122. else
  12123. echo "not updating unwritable cache $cache_file"
  12124. fi
  12125. fi
  12126. rm -f confcache
  12127. # ---------- end of (what used to be) robey's Tcl thingies
  12128. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  12129. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  12130. if ! test -f $srcdir/pack/pack.cfg; then
  12131. cat << EOF >&2
  12132. configure: error:
  12133. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  12134. EOF
  12135. exit 1
  12136. fi
  12137. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  12138. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  12139. cat >>confdefs.h <<_ACEOF
  12140. #define EGG_VERSION $version_num
  12141. _ACEOF
  12142. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  12143. u_define="S_$define"
  12144. cat >>confdefs.h <<_ACEOF
  12145. #define $u_define 1
  12146. _ACEOF
  12147. done
  12148. case "$srcdir" in
  12149. [\\/]* | ?:[\\/]*)
  12150. MOD_UPDIR=""
  12151. ;;
  12152. *)
  12153. MOD_UPDIR="../"
  12154. ;;
  12155. esac
  12156. 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"
  12157. for mf in $files; do
  12158. # Strip MF so we end up with the name of the file.
  12159. # echo "MF: $mf"
  12160. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12161. dirpart=`(dirname "$mf") 2>/dev/null ||
  12162. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12163. X"$mf" : 'X\(//\)[^/]' \| \
  12164. X"$mf" : 'X\(//\)$' \| \
  12165. X"$mf" : 'X\(/\)' \| \
  12166. . : '\(.\)' 2>/dev/null ||
  12167. echo X"$mf" |
  12168. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12169. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12170. /^X\(\/\/\)$/{ s//\1/; q; }
  12171. /^X\(\/\).*/{ s//\1/; q; }
  12172. s/.*/./; q'`
  12173. # echo "dirpart: $dirpart mf: $mf"
  12174. # rm -rf "$dirpart/.deps/"
  12175. rm -f "$dirpart/.deps/includes"
  12176. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  12177. for file in `sed -n -e '
  12178. /^OBJS = .*\\\\$/ {
  12179. s/^OBJS = //
  12180. :loop
  12181. s/\\\\$//
  12182. p
  12183. n
  12184. /\\\\$/ b loop
  12185. p
  12186. }
  12187. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  12188. do
  12189. base=`basename $file .o`
  12190. test -f "$dirpart/$base.c" || continue
  12191. if ! test -f "$dirpart/.deps/$base.Po"; then
  12192. echo '# dummy' > "$dirpart/.deps/$base.Po"
  12193. #Remove the .o file, because it needs to be recompiled for its dependancies.
  12194. if test -f "$dirpart/$base.o"; then
  12195. rm -f "$dirpart/$base.o"
  12196. fi
  12197. fi
  12198. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  12199. echo "_$base.c:" >> "$dirpart/.deps/includes"
  12200. done
  12201. done
  12202. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  12203. cat >confcache <<\_ACEOF
  12204. # This file is a shell script that caches the results of configure
  12205. # tests run on this system so they can be shared between configure
  12206. # scripts and configure runs, see configure's option --config-cache.
  12207. # It is not useful on other systems. If it contains results you don't
  12208. # want to keep, you may remove or edit it.
  12209. #
  12210. # config.status only pays attention to the cache file if you give it
  12211. # the --recheck option to rerun configure.
  12212. #
  12213. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  12214. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  12215. # following values.
  12216. _ACEOF
  12217. # The following way of writing the cache mishandles newlines in values,
  12218. # but we know of no workaround that is simple, portable, and efficient.
  12219. # So, don't put newlines in cache variables' values.
  12220. # Ultrix sh set writes to stderr and can't be redirected directly,
  12221. # and sets the high bit in the cache file unless we assign to the vars.
  12222. {
  12223. (set) 2>&1 |
  12224. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  12225. *ac_space=\ *)
  12226. # `set' does not quote correctly, so add quotes (double-quote
  12227. # substitution turns \\\\ into \\, and sed turns \\ into \).
  12228. sed -n \
  12229. "s/'/'\\\\''/g;
  12230. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  12231. ;;
  12232. *)
  12233. # `set' quotes correctly as required by POSIX, so do not add quotes.
  12234. sed -n \
  12235. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  12236. ;;
  12237. esac;
  12238. } |
  12239. sed '
  12240. t clear
  12241. : clear
  12242. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  12243. t end
  12244. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  12245. : end' >>confcache
  12246. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  12247. if test -w $cache_file; then
  12248. test "x$cache_file" != "x/dev/null"
  12249. cat confcache >$cache_file
  12250. else
  12251. echo "not updating unwritable cache $cache_file"
  12252. fi
  12253. fi
  12254. rm -f confcache
  12255. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  12256. # Let make expand exec_prefix.
  12257. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  12258. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  12259. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  12260. # trailing colons and then remove the whole line if VPATH becomes empty
  12261. # (actually we leave an empty line to preserve line numbers).
  12262. if test "x$srcdir" = x.; then
  12263. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  12264. s/:*\$(srcdir):*/:/;
  12265. s/:*\${srcdir}:*/:/;
  12266. s/:*@srcdir@:*/:/;
  12267. s/^\([^=]*=[ ]*\):*/\1/;
  12268. s/:*$//;
  12269. s/^[^=]*=[ ]*$//;
  12270. }'
  12271. fi
  12272. DEFS=-DHAVE_CONFIG_H
  12273. ac_libobjs=
  12274. ac_ltlibobjs=
  12275. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  12276. # 1. Remove the extension, and $U if already installed.
  12277. ac_i=`echo "$ac_i" |
  12278. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  12279. # 2. Add them.
  12280. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  12281. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  12282. done
  12283. LIBOBJS=$ac_libobjs
  12284. LTLIBOBJS=$ac_ltlibobjs
  12285. : ${CONFIG_STATUS=./config.status}
  12286. ac_clean_files_save=$ac_clean_files
  12287. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  12288. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  12289. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  12290. cat >$CONFIG_STATUS <<_ACEOF
  12291. #! $SHELL
  12292. # Generated by $as_me.
  12293. # Run this file to recreate the current configuration.
  12294. # Compiler output produced by configure, useful for debugging
  12295. # configure, is in config.log if it exists.
  12296. debug=false
  12297. ac_cs_recheck=false
  12298. ac_cs_silent=false
  12299. SHELL=\${CONFIG_SHELL-$SHELL}
  12300. _ACEOF
  12301. cat >>$CONFIG_STATUS <<\_ACEOF
  12302. ## --------------------- ##
  12303. ## M4sh Initialization. ##
  12304. ## --------------------- ##
  12305. # Be Bourne compatible
  12306. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  12307. emulate sh
  12308. NULLCMD=:
  12309. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  12310. # is contrary to our usage. Disable this feature.
  12311. alias -g '${1+"$@"}'='"$@"'
  12312. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  12313. set -o posix
  12314. fi
  12315. DUALCASE=1; export DUALCASE # for MKS sh
  12316. # Support unset when possible.
  12317. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  12318. as_unset=unset
  12319. else
  12320. as_unset=false
  12321. fi
  12322. # Work around bugs in pre-3.0 UWIN ksh.
  12323. $as_unset ENV MAIL MAILPATH
  12324. PS1='$ '
  12325. PS2='> '
  12326. PS4='+ '
  12327. # NLS nuisances.
  12328. for as_var in \
  12329. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  12330. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  12331. LC_TELEPHONE LC_TIME
  12332. do
  12333. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  12334. eval $as_var=C; export $as_var
  12335. else
  12336. $as_unset $as_var
  12337. fi
  12338. done
  12339. # Required to use basename.
  12340. if expr a : '\(a\)' >/dev/null 2>&1; then
  12341. as_expr=expr
  12342. else
  12343. as_expr=false
  12344. fi
  12345. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  12346. as_basename=basename
  12347. else
  12348. as_basename=false
  12349. fi
  12350. # Name of the executable.
  12351. as_me=`$as_basename "$0" ||
  12352. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  12353. X"$0" : 'X\(//\)$' \| \
  12354. X"$0" : 'X\(/\)$' \| \
  12355. . : '\(.\)' 2>/dev/null ||
  12356. echo X/"$0" |
  12357. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  12358. /^X\/\(\/\/\)$/{ s//\1/; q; }
  12359. /^X\/\(\/\).*/{ s//\1/; q; }
  12360. s/.*/./; q'`
  12361. # PATH needs CR, and LINENO needs CR and PATH.
  12362. # Avoid depending upon Character Ranges.
  12363. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  12364. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  12365. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  12366. as_cr_digits='0123456789'
  12367. as_cr_alnum=$as_cr_Letters$as_cr_digits
  12368. # The user is always right.
  12369. if test "${PATH_SEPARATOR+set}" != set; then
  12370. echo "#! /bin/sh" >conf$$.sh
  12371. echo "exit 0" >>conf$$.sh
  12372. chmod +x conf$$.sh
  12373. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  12374. PATH_SEPARATOR=';'
  12375. else
  12376. PATH_SEPARATOR=:
  12377. fi
  12378. rm -f conf$$.sh
  12379. fi
  12380. as_lineno_1=$LINENO
  12381. as_lineno_2=$LINENO
  12382. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12383. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12384. test "x$as_lineno_3" = "x$as_lineno_2" || {
  12385. # Find who we are. Look in the path if we contain no path at all
  12386. # relative or not.
  12387. case $0 in
  12388. *[\\/]* ) as_myself=$0 ;;
  12389. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12390. for as_dir in $PATH
  12391. do
  12392. IFS=$as_save_IFS
  12393. test -z "$as_dir" && as_dir=.
  12394. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  12395. done
  12396. ;;
  12397. esac
  12398. # We did not find ourselves, most probably we were run as `sh COMMAND'
  12399. # in which case we are not to be found in the path.
  12400. if test "x$as_myself" = x; then
  12401. as_myself=$0
  12402. fi
  12403. if test ! -f "$as_myself"; then
  12404. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  12405. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  12406. { (exit 1); exit 1; }; }
  12407. fi
  12408. case $CONFIG_SHELL in
  12409. '')
  12410. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12411. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  12412. do
  12413. IFS=$as_save_IFS
  12414. test -z "$as_dir" && as_dir=.
  12415. for as_base in sh bash ksh sh5; do
  12416. case $as_dir in
  12417. /*)
  12418. if ("$as_dir/$as_base" -c '
  12419. as_lineno_1=$LINENO
  12420. as_lineno_2=$LINENO
  12421. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  12422. test "x$as_lineno_1" != "x$as_lineno_2" &&
  12423. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  12424. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  12425. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  12426. CONFIG_SHELL=$as_dir/$as_base
  12427. export CONFIG_SHELL
  12428. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  12429. fi;;
  12430. esac
  12431. done
  12432. done
  12433. ;;
  12434. esac
  12435. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  12436. # uniformly replaced by the line number. The first 'sed' inserts a
  12437. # line-number line before each line; the second 'sed' does the real
  12438. # work. The second script uses 'N' to pair each line-number line
  12439. # with the numbered line, and appends trailing '-' during
  12440. # substitution so that $LINENO is not a special case at line end.
  12441. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  12442. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  12443. sed '=' <$as_myself |
  12444. sed '
  12445. N
  12446. s,$,-,
  12447. : loop
  12448. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  12449. t loop
  12450. s,-$,,
  12451. s,^['$as_cr_digits']*\n,,
  12452. ' >$as_me.lineno &&
  12453. chmod +x $as_me.lineno ||
  12454. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  12455. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  12456. { (exit 1); exit 1; }; }
  12457. # Don't try to exec as it changes $[0], causing all sort of problems
  12458. # (the dirname of $[0] is not the place where we might find the
  12459. # original and so on. Autoconf is especially sensible to this).
  12460. . ./$as_me.lineno
  12461. # Exit status is that of the last command.
  12462. exit
  12463. }
  12464. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  12465. *c*,-n*) ECHO_N= ECHO_C='
  12466. ' ECHO_T=' ' ;;
  12467. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  12468. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  12469. esac
  12470. if expr a : '\(a\)' >/dev/null 2>&1; then
  12471. as_expr=expr
  12472. else
  12473. as_expr=false
  12474. fi
  12475. rm -f conf$$ conf$$.exe conf$$.file
  12476. echo >conf$$.file
  12477. if ln -s conf$$.file conf$$ 2>/dev/null; then
  12478. # We could just check for DJGPP; but this test a) works b) is more generic
  12479. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  12480. if test -f conf$$.exe; then
  12481. # Don't use ln at all; we don't have any links
  12482. as_ln_s='cp -p'
  12483. else
  12484. as_ln_s='ln -s'
  12485. fi
  12486. elif ln conf$$.file conf$$ 2>/dev/null; then
  12487. as_ln_s=ln
  12488. else
  12489. as_ln_s='cp -p'
  12490. fi
  12491. rm -f conf$$ conf$$.exe conf$$.file
  12492. if mkdir -p . 2>/dev/null; then
  12493. as_mkdir_p=:
  12494. else
  12495. test -d ./-p && rmdir ./-p
  12496. as_mkdir_p=false
  12497. fi
  12498. as_executable_p="test -f"
  12499. # Sed expression to map a string onto a valid CPP name.
  12500. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  12501. # Sed expression to map a string onto a valid variable name.
  12502. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  12503. # IFS
  12504. # We need space, tab and new line, in precisely that order.
  12505. as_nl='
  12506. '
  12507. IFS=" $as_nl"
  12508. # CDPATH.
  12509. $as_unset CDPATH
  12510. exec 6>&1
  12511. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  12512. # report actual input values of CONFIG_FILES etc. instead of their
  12513. # values after options handling. Logging --version etc. is OK.
  12514. exec 5>>config.log
  12515. {
  12516. echo
  12517. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  12518. ## Running $as_me. ##
  12519. _ASBOX
  12520. } >&5
  12521. cat >&5 <<_CSEOF
  12522. This file was extended by $as_me, which was
  12523. generated by GNU Autoconf 2.59. Invocation command line was
  12524. CONFIG_FILES = $CONFIG_FILES
  12525. CONFIG_HEADERS = $CONFIG_HEADERS
  12526. CONFIG_LINKS = $CONFIG_LINKS
  12527. CONFIG_COMMANDS = $CONFIG_COMMANDS
  12528. $ $0 $@
  12529. _CSEOF
  12530. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  12531. echo >&5
  12532. _ACEOF
  12533. # Files that config.status was made for.
  12534. if test -n "$ac_config_files"; then
  12535. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  12536. fi
  12537. if test -n "$ac_config_headers"; then
  12538. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  12539. fi
  12540. if test -n "$ac_config_links"; then
  12541. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  12542. fi
  12543. if test -n "$ac_config_commands"; then
  12544. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  12545. fi
  12546. cat >>$CONFIG_STATUS <<\_ACEOF
  12547. ac_cs_usage="\
  12548. \`$as_me' instantiates files from templates according to the
  12549. current configuration.
  12550. Usage: $0 [OPTIONS] [FILE]...
  12551. -h, --help print this help, then exit
  12552. -V, --version print version number, then exit
  12553. -q, --quiet do not print progress messages
  12554. -d, --debug don't remove temporary files
  12555. --recheck update $as_me by reconfiguring in the same conditions
  12556. --file=FILE[:TEMPLATE]
  12557. instantiate the configuration file FILE
  12558. --header=FILE[:TEMPLATE]
  12559. instantiate the configuration header FILE
  12560. Configuration files:
  12561. $config_files
  12562. Configuration headers:
  12563. $config_headers
  12564. Configuration commands:
  12565. $config_commands
  12566. Report bugs to <bug-autoconf@gnu.org>."
  12567. _ACEOF
  12568. cat >>$CONFIG_STATUS <<_ACEOF
  12569. ac_cs_version="\\
  12570. config.status
  12571. configured by $0, generated by GNU Autoconf 2.59,
  12572. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  12573. Copyright (C) 2003 Free Software Foundation, Inc.
  12574. This config.status script is free software; the Free Software Foundation
  12575. gives unlimited permission to copy, distribute and modify it."
  12576. srcdir=$srcdir
  12577. _ACEOF
  12578. cat >>$CONFIG_STATUS <<\_ACEOF
  12579. # If no file are specified by the user, then we need to provide default
  12580. # value. By we need to know if files were specified by the user.
  12581. ac_need_defaults=:
  12582. while test $# != 0
  12583. do
  12584. case $1 in
  12585. --*=*)
  12586. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  12587. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  12588. ac_shift=:
  12589. ;;
  12590. -*)
  12591. ac_option=$1
  12592. ac_optarg=$2
  12593. ac_shift=shift
  12594. ;;
  12595. *) # This is not an option, so the user has probably given explicit
  12596. # arguments.
  12597. ac_option=$1
  12598. ac_need_defaults=false;;
  12599. esac
  12600. case $ac_option in
  12601. # Handling of the options.
  12602. _ACEOF
  12603. cat >>$CONFIG_STATUS <<\_ACEOF
  12604. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  12605. ac_cs_recheck=: ;;
  12606. --version | --vers* | -V )
  12607. echo "$ac_cs_version"; exit 0 ;;
  12608. --he | --h)
  12609. # Conflict between --help and --header
  12610. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  12611. Try \`$0 --help' for more information." >&5
  12612. echo "$as_me: error: ambiguous option: $1
  12613. Try \`$0 --help' for more information." >&2;}
  12614. { (exit 1); exit 1; }; };;
  12615. --help | --hel | -h )
  12616. echo "$ac_cs_usage"; exit 0 ;;
  12617. --debug | --d* | -d )
  12618. debug=: ;;
  12619. --file | --fil | --fi | --f )
  12620. $ac_shift
  12621. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  12622. ac_need_defaults=false;;
  12623. --header | --heade | --head | --hea )
  12624. $ac_shift
  12625. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  12626. ac_need_defaults=false;;
  12627. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  12628. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  12629. ac_cs_silent=: ;;
  12630. # This is an error.
  12631. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  12632. Try \`$0 --help' for more information." >&5
  12633. echo "$as_me: error: unrecognized option: $1
  12634. Try \`$0 --help' for more information." >&2;}
  12635. { (exit 1); exit 1; }; } ;;
  12636. *) ac_config_targets="$ac_config_targets $1" ;;
  12637. esac
  12638. shift
  12639. done
  12640. ac_configure_extra_args=
  12641. if $ac_cs_silent; then
  12642. exec 6>/dev/null
  12643. ac_configure_extra_args="$ac_configure_extra_args --silent"
  12644. fi
  12645. _ACEOF
  12646. cat >>$CONFIG_STATUS <<_ACEOF
  12647. if \$ac_cs_recheck; then
  12648. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  12649. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  12650. fi
  12651. _ACEOF
  12652. cat >>$CONFIG_STATUS <<_ACEOF
  12653. #
  12654. # INIT-COMMANDS section.
  12655. #
  12656. egg_tclinc="$TCLINC"
  12657. egg_tclincfn="$TCLINCFN"
  12658. _ACEOF
  12659. cat >>$CONFIG_STATUS <<\_ACEOF
  12660. for ac_config_target in $ac_config_targets
  12661. do
  12662. case "$ac_config_target" in
  12663. # Handling of arguments.
  12664. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12665. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12666. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  12667. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  12668. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  12669. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  12670. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  12671. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  12672. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  12673. { (exit 1); exit 1; }; };;
  12674. esac
  12675. done
  12676. # If the user did not use the arguments to specify the items to instantiate,
  12677. # then the envvar interface is used. Set only those that are not.
  12678. # We use the long form for the default assignment because of an extremely
  12679. # bizarre bug on SunOS 4.1.3.
  12680. if $ac_need_defaults; then
  12681. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12682. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12683. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12684. fi
  12685. # Have a temporary directory for convenience. Make it in the build tree
  12686. # simply because there is no reason to put it here, and in addition,
  12687. # creating and moving files from /tmp can sometimes cause problems.
  12688. # Create a temporary directory, and hook for its removal unless debugging.
  12689. $debug ||
  12690. {
  12691. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12692. trap '{ (exit 1); exit 1; }' 1 2 13 15
  12693. }
  12694. # Create a (secure) tmp directory for tmp files.
  12695. {
  12696. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  12697. test -n "$tmp" && test -d "$tmp"
  12698. } ||
  12699. {
  12700. tmp=./confstat$$-$RANDOM
  12701. (umask 077 && mkdir $tmp)
  12702. } ||
  12703. {
  12704. echo "$me: cannot create a temporary directory in ." >&2
  12705. { (exit 1); exit 1; }
  12706. }
  12707. _ACEOF
  12708. cat >>$CONFIG_STATUS <<_ACEOF
  12709. #
  12710. # CONFIG_FILES section.
  12711. #
  12712. # No need to generate the scripts if there are no CONFIG_FILES.
  12713. # This happens for instance when ./config.status config.h
  12714. if test -n "\$CONFIG_FILES"; then
  12715. # Protect against being on the right side of a sed subst in config.status.
  12716. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  12717. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  12718. s,@SHELL@,$SHELL,;t t
  12719. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  12720. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  12721. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  12722. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  12723. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  12724. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  12725. s,@exec_prefix@,$exec_prefix,;t t
  12726. s,@prefix@,$prefix,;t t
  12727. s,@program_transform_name@,$program_transform_name,;t t
  12728. s,@bindir@,$bindir,;t t
  12729. s,@sbindir@,$sbindir,;t t
  12730. s,@libexecdir@,$libexecdir,;t t
  12731. s,@datadir@,$datadir,;t t
  12732. s,@sysconfdir@,$sysconfdir,;t t
  12733. s,@sharedstatedir@,$sharedstatedir,;t t
  12734. s,@localstatedir@,$localstatedir,;t t
  12735. s,@libdir@,$libdir,;t t
  12736. s,@includedir@,$includedir,;t t
  12737. s,@oldincludedir@,$oldincludedir,;t t
  12738. s,@infodir@,$infodir,;t t
  12739. s,@mandir@,$mandir,;t t
  12740. s,@build_alias@,$build_alias,;t t
  12741. s,@host_alias@,$host_alias,;t t
  12742. s,@target_alias@,$target_alias,;t t
  12743. s,@DEFS@,$DEFS,;t t
  12744. s,@ECHO_C@,$ECHO_C,;t t
  12745. s,@ECHO_N@,$ECHO_N,;t t
  12746. s,@ECHO_T@,$ECHO_T,;t t
  12747. s,@LIBS@,$LIBS,;t t
  12748. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  12749. s,@CC@,$CC,;t t
  12750. s,@CFLAGS@,$CFLAGS,;t t
  12751. s,@LDFLAGS@,$LDFLAGS,;t t
  12752. s,@CPPFLAGS@,$CPPFLAGS,;t t
  12753. s,@ac_ct_CC@,$ac_ct_CC,;t t
  12754. s,@EXEEXT@,$EXEEXT,;t t
  12755. s,@OBJEXT@,$OBJEXT,;t t
  12756. s,@CPP@,$CPP,;t t
  12757. s,@EGREP@,$EGREP,;t t
  12758. s,@CCDEPMODE@,$CCDEPMODE,;t t
  12759. s,@CCDEBUG@,$CCDEBUG,;t t
  12760. s,@SET_MAKE@,$SET_MAKE,;t t
  12761. s,@HEAD_1@,$HEAD_1,;t t
  12762. s,@STRIP@,$STRIP,;t t
  12763. s,@AWK@,$AWK,;t t
  12764. s,@BASENAME@,$BASENAME,;t t
  12765. s,@OBJCOPY@,$OBJCOPY,;t t
  12766. s,@DISTCC@,$DISTCC,;t t
  12767. s,@UNAME@,$UNAME,;t t
  12768. s,@RESLIB@,$RESLIB,;t t
  12769. s,@RESINCLUDE@,$RESINCLUDE,;t t
  12770. s,@ZLIB@,$ZLIB,;t t
  12771. s,@SSL@,$SSL,;t t
  12772. s,@LIBOBJS@,$LIBOBJS,;t t
  12773. s,@TCLLIB@,$TCLLIB,;t t
  12774. s,@TCLLIBFN@,$TCLLIBFN,;t t
  12775. s,@TCLINC@,$TCLINC,;t t
  12776. s,@TCLINCFN@,$TCLINCFN,;t t
  12777. s,@TCL_REQS@,$TCL_REQS,;t t
  12778. s,@TCL_LIBS@,$TCL_LIBS,;t t
  12779. s,@VERSION@,$VERSION,;t t
  12780. s,@NUMVER@,$NUMVER,;t t
  12781. s,@PACKNAME@,$PACKNAME,;t t
  12782. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  12783. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  12784. CEOF
  12785. _ACEOF
  12786. cat >>$CONFIG_STATUS <<\_ACEOF
  12787. # Split the substitutions into bite-sized pieces for seds with
  12788. # small command number limits, like on Digital OSF/1 and HP-UX.
  12789. ac_max_sed_lines=48
  12790. ac_sed_frag=1 # Number of current file.
  12791. ac_beg=1 # First line for current file.
  12792. ac_end=$ac_max_sed_lines # Line after last line for current file.
  12793. ac_more_lines=:
  12794. ac_sed_cmds=
  12795. while $ac_more_lines; do
  12796. if test $ac_beg -gt 1; then
  12797. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12798. else
  12799. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  12800. fi
  12801. if test ! -s $tmp/subs.frag; then
  12802. ac_more_lines=false
  12803. else
  12804. # The purpose of the label and of the branching condition is to
  12805. # speed up the sed processing (if there are no `@' at all, there
  12806. # is no need to browse any of the substitutions).
  12807. # These are the two extra sed commands mentioned above.
  12808. (echo ':t
  12809. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  12810. if test -z "$ac_sed_cmds"; then
  12811. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  12812. else
  12813. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  12814. fi
  12815. ac_sed_frag=`expr $ac_sed_frag + 1`
  12816. ac_beg=$ac_end
  12817. ac_end=`expr $ac_end + $ac_max_sed_lines`
  12818. fi
  12819. done
  12820. if test -z "$ac_sed_cmds"; then
  12821. ac_sed_cmds=cat
  12822. fi
  12823. fi # test -n "$CONFIG_FILES"
  12824. _ACEOF
  12825. cat >>$CONFIG_STATUS <<\_ACEOF
  12826. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  12827. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12828. case $ac_file in
  12829. - | *:- | *:-:* ) # input from stdin
  12830. cat >$tmp/stdin
  12831. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12832. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12833. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12834. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12835. * ) ac_file_in=$ac_file.in ;;
  12836. esac
  12837. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  12838. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12839. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12840. X"$ac_file" : 'X\(//\)[^/]' \| \
  12841. X"$ac_file" : 'X\(//\)$' \| \
  12842. X"$ac_file" : 'X\(/\)' \| \
  12843. . : '\(.\)' 2>/dev/null ||
  12844. echo X"$ac_file" |
  12845. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12846. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12847. /^X\(\/\/\)$/{ s//\1/; q; }
  12848. /^X\(\/\).*/{ s//\1/; q; }
  12849. s/.*/./; q'`
  12850. { if $as_mkdir_p; then
  12851. mkdir -p "$ac_dir"
  12852. else
  12853. as_dir="$ac_dir"
  12854. as_dirs=
  12855. while test ! -d "$as_dir"; do
  12856. as_dirs="$as_dir $as_dirs"
  12857. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12858. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12859. X"$as_dir" : 'X\(//\)[^/]' \| \
  12860. X"$as_dir" : 'X\(//\)$' \| \
  12861. X"$as_dir" : 'X\(/\)' \| \
  12862. . : '\(.\)' 2>/dev/null ||
  12863. echo X"$as_dir" |
  12864. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12865. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12866. /^X\(\/\/\)$/{ s//\1/; q; }
  12867. /^X\(\/\).*/{ s//\1/; q; }
  12868. s/.*/./; q'`
  12869. done
  12870. test ! -n "$as_dirs" || mkdir $as_dirs
  12871. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12872. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12873. { (exit 1); exit 1; }; }; }
  12874. ac_builddir=.
  12875. if test "$ac_dir" != .; then
  12876. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12877. # A "../" for each directory in $ac_dir_suffix.
  12878. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12879. else
  12880. ac_dir_suffix= ac_top_builddir=
  12881. fi
  12882. case $srcdir in
  12883. .) # No --srcdir option. We are building in place.
  12884. ac_srcdir=.
  12885. if test -z "$ac_top_builddir"; then
  12886. ac_top_srcdir=.
  12887. else
  12888. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12889. fi ;;
  12890. [\\/]* | ?:[\\/]* ) # Absolute path.
  12891. ac_srcdir=$srcdir$ac_dir_suffix;
  12892. ac_top_srcdir=$srcdir ;;
  12893. *) # Relative path.
  12894. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12895. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12896. esac
  12897. # Do not use `cd foo && pwd` to compute absolute paths, because
  12898. # the directories may not exist.
  12899. case `pwd` in
  12900. .) ac_abs_builddir="$ac_dir";;
  12901. *)
  12902. case "$ac_dir" in
  12903. .) ac_abs_builddir=`pwd`;;
  12904. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12905. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12906. esac;;
  12907. esac
  12908. case $ac_abs_builddir in
  12909. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12910. *)
  12911. case ${ac_top_builddir}. in
  12912. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12913. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12914. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12915. esac;;
  12916. esac
  12917. case $ac_abs_builddir in
  12918. .) ac_abs_srcdir=$ac_srcdir;;
  12919. *)
  12920. case $ac_srcdir in
  12921. .) ac_abs_srcdir=$ac_abs_builddir;;
  12922. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12923. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12924. esac;;
  12925. esac
  12926. case $ac_abs_builddir in
  12927. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12928. *)
  12929. case $ac_top_srcdir in
  12930. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12931. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12932. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12933. esac;;
  12934. esac
  12935. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12936. # use $as_me), people would be surprised to read:
  12937. # /* config.h. Generated by config.status. */
  12938. if test x"$ac_file" = x-; then
  12939. configure_input=
  12940. else
  12941. configure_input="$ac_file. "
  12942. fi
  12943. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12944. sed 's,.*/,,'` by configure."
  12945. # First look for the input files in the build tree, otherwise in the
  12946. # src tree.
  12947. ac_file_inputs=`IFS=:
  12948. for f in $ac_file_in; do
  12949. case $f in
  12950. -) echo $tmp/stdin ;;
  12951. [\\/$]*)
  12952. # Absolute (can't be DOS-style, as IFS=:)
  12953. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12954. echo "$as_me: error: cannot find input file: $f" >&2;}
  12955. { (exit 1); exit 1; }; }
  12956. echo "$f";;
  12957. *) # Relative
  12958. if test -f "$f"; then
  12959. # Build tree
  12960. echo "$f"
  12961. elif test -f "$srcdir/$f"; then
  12962. # Source tree
  12963. echo "$srcdir/$f"
  12964. else
  12965. # /dev/null tree
  12966. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12967. echo "$as_me: error: cannot find input file: $f" >&2;}
  12968. { (exit 1); exit 1; }; }
  12969. fi;;
  12970. esac
  12971. done` || { (exit 1); exit 1; }
  12972. if test x"$ac_file" != x-; then
  12973. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12974. echo "$as_me: creating $ac_file" >&6;}
  12975. rm -f "$ac_file"
  12976. fi
  12977. _ACEOF
  12978. cat >>$CONFIG_STATUS <<_ACEOF
  12979. sed "$ac_vpsub
  12980. $extrasub
  12981. _ACEOF
  12982. cat >>$CONFIG_STATUS <<\_ACEOF
  12983. :t
  12984. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12985. s,@configure_input@,$configure_input,;t t
  12986. s,@srcdir@,$ac_srcdir,;t t
  12987. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12988. s,@top_srcdir@,$ac_top_srcdir,;t t
  12989. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12990. s,@builddir@,$ac_builddir,;t t
  12991. s,@abs_builddir@,$ac_abs_builddir,;t t
  12992. s,@top_builddir@,$ac_top_builddir,;t t
  12993. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12994. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12995. rm -f $tmp/stdin
  12996. if test x"$ac_file" != x-; then
  12997. mv $tmp/out $ac_file
  12998. else
  12999. cat $tmp/out
  13000. rm -f $tmp/out
  13001. fi
  13002. done
  13003. _ACEOF
  13004. cat >>$CONFIG_STATUS <<\_ACEOF
  13005. #
  13006. # CONFIG_HEADER section.
  13007. #
  13008. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  13009. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  13010. #
  13011. # ac_d sets the value in "#define NAME VALUE" lines.
  13012. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  13013. ac_dB='[ ].*$,\1#\2'
  13014. ac_dC=' '
  13015. ac_dD=',;t'
  13016. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  13017. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  13018. ac_uB='$,\1#\2define\3'
  13019. ac_uC=' '
  13020. ac_uD=',;t'
  13021. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  13022. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  13023. case $ac_file in
  13024. - | *:- | *:-:* ) # input from stdin
  13025. cat >$tmp/stdin
  13026. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13027. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13028. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13029. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  13030. * ) ac_file_in=$ac_file.in ;;
  13031. esac
  13032. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  13033. echo "$as_me: creating $ac_file" >&6;}
  13034. # First look for the input files in the build tree, otherwise in the
  13035. # src tree.
  13036. ac_file_inputs=`IFS=:
  13037. for f in $ac_file_in; do
  13038. case $f in
  13039. -) echo $tmp/stdin ;;
  13040. [\\/$]*)
  13041. # Absolute (can't be DOS-style, as IFS=:)
  13042. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13043. echo "$as_me: error: cannot find input file: $f" >&2;}
  13044. { (exit 1); exit 1; }; }
  13045. # Do quote $f, to prevent DOS paths from being IFS'd.
  13046. echo "$f";;
  13047. *) # Relative
  13048. if test -f "$f"; then
  13049. # Build tree
  13050. echo "$f"
  13051. elif test -f "$srcdir/$f"; then
  13052. # Source tree
  13053. echo "$srcdir/$f"
  13054. else
  13055. # /dev/null tree
  13056. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  13057. echo "$as_me: error: cannot find input file: $f" >&2;}
  13058. { (exit 1); exit 1; }; }
  13059. fi;;
  13060. esac
  13061. done` || { (exit 1); exit 1; }
  13062. # Remove the trailing spaces.
  13063. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  13064. _ACEOF
  13065. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  13066. # `conftest.undefs', that substitutes the proper values into
  13067. # config.h.in to produce config.h. The first handles `#define'
  13068. # templates, and the second `#undef' templates.
  13069. # And first: Protect against being on the right side of a sed subst in
  13070. # config.status. Protect against being in an unquoted here document
  13071. # in config.status.
  13072. rm -f conftest.defines conftest.undefs
  13073. # Using a here document instead of a string reduces the quoting nightmare.
  13074. # Putting comments in sed scripts is not portable.
  13075. #
  13076. # `end' is used to avoid that the second main sed command (meant for
  13077. # 0-ary CPP macros) applies to n-ary macro definitions.
  13078. # See the Autoconf documentation for `clear'.
  13079. cat >confdef2sed.sed <<\_ACEOF
  13080. s/[\\&,]/\\&/g
  13081. s,[\\$`],\\&,g
  13082. t clear
  13083. : clear
  13084. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  13085. t end
  13086. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  13087. : end
  13088. _ACEOF
  13089. # If some macros were called several times there might be several times
  13090. # the same #defines, which is useless. Nevertheless, we may not want to
  13091. # sort them, since we want the *last* AC-DEFINE to be honored.
  13092. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  13093. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  13094. rm -f confdef2sed.sed
  13095. # This sed command replaces #undef with comments. This is necessary, for
  13096. # example, in the case of _POSIX_SOURCE, which is predefined and required
  13097. # on some systems where configure will not decide to define it.
  13098. cat >>conftest.undefs <<\_ACEOF
  13099. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  13100. _ACEOF
  13101. # Break up conftest.defines because some shells have a limit on the size
  13102. # of here documents, and old seds have small limits too (100 cmds).
  13103. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  13104. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  13105. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  13106. echo ' :' >>$CONFIG_STATUS
  13107. rm -f conftest.tail
  13108. while grep . conftest.defines >/dev/null
  13109. do
  13110. # Write a limited-size here document to $tmp/defines.sed.
  13111. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  13112. # Speed up: don't consider the non `#define' lines.
  13113. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  13114. # Work around the forget-to-reset-the-flag bug.
  13115. echo 't clr' >>$CONFIG_STATUS
  13116. echo ': clr' >>$CONFIG_STATUS
  13117. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  13118. echo 'CEOF
  13119. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  13120. rm -f $tmp/in
  13121. mv $tmp/out $tmp/in
  13122. ' >>$CONFIG_STATUS
  13123. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  13124. rm -f conftest.defines
  13125. mv conftest.tail conftest.defines
  13126. done
  13127. rm -f conftest.defines
  13128. echo ' fi # grep' >>$CONFIG_STATUS
  13129. echo >>$CONFIG_STATUS
  13130. # Break up conftest.undefs because some shells have a limit on the size
  13131. # of here documents, and old seds have small limits too (100 cmds).
  13132. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  13133. rm -f conftest.tail
  13134. while grep . conftest.undefs >/dev/null
  13135. do
  13136. # Write a limited-size here document to $tmp/undefs.sed.
  13137. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  13138. # Speed up: don't consider the non `#undef'
  13139. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  13140. # Work around the forget-to-reset-the-flag bug.
  13141. echo 't clr' >>$CONFIG_STATUS
  13142. echo ': clr' >>$CONFIG_STATUS
  13143. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  13144. echo 'CEOF
  13145. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  13146. rm -f $tmp/in
  13147. mv $tmp/out $tmp/in
  13148. ' >>$CONFIG_STATUS
  13149. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  13150. rm -f conftest.undefs
  13151. mv conftest.tail conftest.undefs
  13152. done
  13153. rm -f conftest.undefs
  13154. cat >>$CONFIG_STATUS <<\_ACEOF
  13155. # Let's still pretend it is `configure' which instantiates (i.e., don't
  13156. # use $as_me), people would be surprised to read:
  13157. # /* config.h. Generated by config.status. */
  13158. if test x"$ac_file" = x-; then
  13159. echo "/* Generated by configure. */" >$tmp/config.h
  13160. else
  13161. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  13162. fi
  13163. cat $tmp/in >>$tmp/config.h
  13164. rm -f $tmp/in
  13165. if test x"$ac_file" != x-; then
  13166. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  13167. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  13168. echo "$as_me: $ac_file is unchanged" >&6;}
  13169. else
  13170. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  13171. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13172. X"$ac_file" : 'X\(//\)[^/]' \| \
  13173. X"$ac_file" : 'X\(//\)$' \| \
  13174. X"$ac_file" : 'X\(/\)' \| \
  13175. . : '\(.\)' 2>/dev/null ||
  13176. echo X"$ac_file" |
  13177. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13178. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13179. /^X\(\/\/\)$/{ s//\1/; q; }
  13180. /^X\(\/\).*/{ s//\1/; q; }
  13181. s/.*/./; q'`
  13182. { if $as_mkdir_p; then
  13183. mkdir -p "$ac_dir"
  13184. else
  13185. as_dir="$ac_dir"
  13186. as_dirs=
  13187. while test ! -d "$as_dir"; do
  13188. as_dirs="$as_dir $as_dirs"
  13189. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13190. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13191. X"$as_dir" : 'X\(//\)[^/]' \| \
  13192. X"$as_dir" : 'X\(//\)$' \| \
  13193. X"$as_dir" : 'X\(/\)' \| \
  13194. . : '\(.\)' 2>/dev/null ||
  13195. echo X"$as_dir" |
  13196. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13197. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13198. /^X\(\/\/\)$/{ s//\1/; q; }
  13199. /^X\(\/\).*/{ s//\1/; q; }
  13200. s/.*/./; q'`
  13201. done
  13202. test ! -n "$as_dirs" || mkdir $as_dirs
  13203. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13204. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13205. { (exit 1); exit 1; }; }; }
  13206. rm -f $ac_file
  13207. mv $tmp/config.h $ac_file
  13208. fi
  13209. else
  13210. cat $tmp/config.h
  13211. rm -f $tmp/config.h
  13212. fi
  13213. done
  13214. _ACEOF
  13215. cat >>$CONFIG_STATUS <<\_ACEOF
  13216. #
  13217. # CONFIG_COMMANDS section.
  13218. #
  13219. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  13220. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  13221. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  13222. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  13223. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13224. X"$ac_dest" : 'X\(//\)[^/]' \| \
  13225. X"$ac_dest" : 'X\(//\)$' \| \
  13226. X"$ac_dest" : 'X\(/\)' \| \
  13227. . : '\(.\)' 2>/dev/null ||
  13228. echo X"$ac_dest" |
  13229. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13230. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13231. /^X\(\/\/\)$/{ s//\1/; q; }
  13232. /^X\(\/\).*/{ s//\1/; q; }
  13233. s/.*/./; q'`
  13234. { if $as_mkdir_p; then
  13235. mkdir -p "$ac_dir"
  13236. else
  13237. as_dir="$ac_dir"
  13238. as_dirs=
  13239. while test ! -d "$as_dir"; do
  13240. as_dirs="$as_dir $as_dirs"
  13241. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  13242. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  13243. X"$as_dir" : 'X\(//\)[^/]' \| \
  13244. X"$as_dir" : 'X\(//\)$' \| \
  13245. X"$as_dir" : 'X\(/\)' \| \
  13246. . : '\(.\)' 2>/dev/null ||
  13247. echo X"$as_dir" |
  13248. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  13249. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  13250. /^X\(\/\/\)$/{ s//\1/; q; }
  13251. /^X\(\/\).*/{ s//\1/; q; }
  13252. s/.*/./; q'`
  13253. done
  13254. test ! -n "$as_dirs" || mkdir $as_dirs
  13255. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  13256. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  13257. { (exit 1); exit 1; }; }; }
  13258. ac_builddir=.
  13259. if test "$ac_dir" != .; then
  13260. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  13261. # A "../" for each directory in $ac_dir_suffix.
  13262. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  13263. else
  13264. ac_dir_suffix= ac_top_builddir=
  13265. fi
  13266. case $srcdir in
  13267. .) # No --srcdir option. We are building in place.
  13268. ac_srcdir=.
  13269. if test -z "$ac_top_builddir"; then
  13270. ac_top_srcdir=.
  13271. else
  13272. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  13273. fi ;;
  13274. [\\/]* | ?:[\\/]* ) # Absolute path.
  13275. ac_srcdir=$srcdir$ac_dir_suffix;
  13276. ac_top_srcdir=$srcdir ;;
  13277. *) # Relative path.
  13278. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  13279. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  13280. esac
  13281. # Do not use `cd foo && pwd` to compute absolute paths, because
  13282. # the directories may not exist.
  13283. case `pwd` in
  13284. .) ac_abs_builddir="$ac_dir";;
  13285. *)
  13286. case "$ac_dir" in
  13287. .) ac_abs_builddir=`pwd`;;
  13288. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  13289. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  13290. esac;;
  13291. esac
  13292. case $ac_abs_builddir in
  13293. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  13294. *)
  13295. case ${ac_top_builddir}. in
  13296. .) ac_abs_top_builddir=$ac_abs_builddir;;
  13297. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  13298. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  13299. esac;;
  13300. esac
  13301. case $ac_abs_builddir in
  13302. .) ac_abs_srcdir=$ac_srcdir;;
  13303. *)
  13304. case $ac_srcdir in
  13305. .) ac_abs_srcdir=$ac_abs_builddir;;
  13306. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  13307. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  13308. esac;;
  13309. esac
  13310. case $ac_abs_builddir in
  13311. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  13312. *)
  13313. case $ac_top_srcdir in
  13314. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  13315. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  13316. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  13317. esac;;
  13318. esac
  13319. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  13320. echo "$as_me: executing $ac_dest commands" >&6;}
  13321. case $ac_dest in
  13322. replace-if-changed )
  13323. egg_replace_file="lush.h"
  13324. cat > conftest.out << EOF
  13325. /* Ignore me but do not erase me. I am a kludge. */
  13326. #include "${egg_tclinc}/${egg_tclincfn}"
  13327. EOF
  13328. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  13329. echo "lush.h is unchanged"
  13330. else
  13331. echo "creating lush.h"
  13332. mv conftest.out $egg_replace_file
  13333. fi
  13334. rm -f conftest.out
  13335. ;;
  13336. esac
  13337. done
  13338. _ACEOF
  13339. cat >>$CONFIG_STATUS <<\_ACEOF
  13340. { (exit 0); exit 0; }
  13341. _ACEOF
  13342. chmod +x $CONFIG_STATUS
  13343. ac_clean_files=$ac_clean_files_save
  13344. # configure is writing to config.log, and then calls config.status.
  13345. # config.status does its own redirection, appending to config.log.
  13346. # Unfortunately, on DOS this fails, as config.log is still kept open
  13347. # by configure, so config.status won't be able to write to it; its
  13348. # output is simply discarded. So we exec the FD to /dev/null,
  13349. # effectively closing config.log, so it can be properly (re)opened and
  13350. # appended to by config.status. When coming back to configure, we
  13351. # need to make the FD available again.
  13352. if test "$no_create" != yes; then
  13353. ac_cs_success=:
  13354. ac_config_status_args=
  13355. test "$silent" = yes &&
  13356. ac_config_status_args="$ac_config_status_args --quiet"
  13357. exec 5>/dev/null
  13358. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13359. exec 5>>config.log
  13360. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13361. # would make configure fail if this is the last instruction.
  13362. $ac_cs_success || { (exit 1); exit 1; }
  13363. fi